.client-context{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:8px 16px!important}
.error{color:#a52222!important;font-weight:600}
@media(max-width:650px){
 .mobile-cards{width:100%!important;min-width:0!important;table-layout:auto!important}
 .mobile-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-cards,.mobile-cards tbody{display:block}
 .mobile-cards tbody tr{display:block;margin:12px 0;padding:8px;border:1px solid #dce3ef;border-radius:12px;background:#fff}
 .mobile-cards tbody td{display:grid;grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:8px;width:auto!important;white-space:normal!important;padding:8px 4px!important;overflow-wrap:anywhere}
 .mobile-cards tbody td::before{content:attr(data-label);font-weight:600;color:#385075}
 .mobile-cards tbody td>*{min-width:0;max-width:100%;grid-column:2}
 .mobile-cards tbody td::before{grid-column:1;grid-row:1}
 .management-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 .management-stats article{padding:12px 8px!important;border-radius:12px!important}
 .management-stats strong{font-size:20px!important}
 .management-stats article span{font-size:11px!important}
 .section-head{flex-direction:column;align-items:stretch}
 .section-head>input[type=search]{width:100%}
 .mobile-cards button,.mobile-cards select,.document-toolbar select,.topbar-actions button{min-height:44px}
 .document-actions>div,.table-actions{flex-wrap:wrap}
 .plates-panel .table-wrap::before{content:'Scorri la tabella per modificare tutti i dati del piatto →';display:block;font-size:12px;padding:8px 0;color:#385075}
}
.client-context .context-icon{grid-row:1/3}
.client-context .field{min-width:0;width:100%}
.client-context select{width:100%;min-width:0}
.client-context .new-client-button{grid-column:2;justify-self:start;padding:0;font-size:12px;min-height:24px}
.labor-panel .labor-table{table-layout:fixed;max-width:620px;margin-left:0}
.labor-panel .labor-table th:first-child,.labor-panel .labor-table td:first-child{width:44%}
.labor-panel .labor-table th:nth-child(2),.labor-panel .labor-table td:nth-child(2){width:34%}
.labor-panel .labor-table th:nth-child(3),.labor-panel .labor-table td:nth-child(3){width:16%}
.labor-panel .labor-table th:last-child,.labor-panel .labor-table td:last-child{width:6%}
.labor-panel .labor-table td{padding:10px 6px}
.pricing-editor .discount-editor{grid-column:1/-1}
.pricing-editor .discount-input{display:grid;grid-template-columns:minmax(125px,1fr) minmax(70px,90px);gap:8px;margin-top:6px}
.pricing-editor .discount-input select,.pricing-editor .discount-input input{width:100%;min-width:0;box-sizing:border-box}
.document-toolbar,#client-search{display:flex;gap:12px;align-items:center;margin:20px 0}.document-toolbar input,#client-search input{flex:1;min-width:0}.document-toolbar select{max-width:260px}.client-category{display:inline-block;border:1px solid;padding:5px 9px;border-radius:7px;font-size:12px;font-weight:600}#category-form input[type=color]{width:44px;height:34px;padding:3px}#record-form .field:has(textarea){grid-column:1/-1}@media(max-width:650px){.document-toolbar{flex-direction:column;align-items:stretch}.document-toolbar select{max-width:none}}
