/* Only customer records, client/local selection and the customer overview. */
body.piro-bootstrap #form-dialog:has(.customer-profile){width:min(94vw,820px);max-width:94vw;padding:.7rem .8rem}
body.piro-bootstrap #form-dialog:has(.customer-profile) .dialog-title h2{font-size:1.1rem;margin:0}
body.piro-bootstrap #form-dialog:has(.customer-profile) #resource-form{gap:.35rem}
body.piro-bootstrap .customer-profile{gap:.4rem}
body.piro-bootstrap .customer-profile label{margin:.15rem 0;font-size:.83rem;line-height:1.35;min-width:0}
body.piro-bootstrap .customer-profile .customer-identity{display:grid;gap:.25rem;padding:.4rem .5rem;border:1px solid #ded8d4;border-radius:.35rem;min-width:0}
body.piro-bootstrap .customer-profile .customer-identity h3{font-size:.95rem;margin:0 0 .2rem}
body.piro-bootstrap .customer-profile-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.15rem .65rem}
body.piro-bootstrap #resource-form .customer-profile :is(input:not([type=checkbox]),select,textarea){width:100%;min-height:32px;padding:.25rem .45rem;margin-top:.15rem;font-size:.85rem;line-height:1.35}
body.piro-bootstrap .customer-profile .accordion-item{padding:0;margin:.2rem 0}
body.piro-bootstrap .customer-profile .accordion-button{padding:.45rem .6rem;font-size:.9rem}
body.piro-bootstrap .customer-profile .accordion-body{padding:.4rem .5rem}
body.piro-bootstrap .customer-profile-row{padding-bottom:.35rem;margin-bottom:.35rem}
body.piro-bootstrap .customer-profile button{padding:.25rem .5rem;font-size:.8rem;min-height:30px;border:1px solid #ca211c}
body.piro-bootstrap #content .customer-tabular{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.piro-bootstrap #content .customer-tabular table{display:table!important;width:100%;min-width:480px;table-layout:auto;margin:0}
body.piro-bootstrap #content .customer-tabular thead{display:table-header-group!important}
body.piro-bootstrap #content .customer-tabular tbody{display:table-row-group!important}
body.piro-bootstrap #content .customer-tabular tr{display:table-row!important;border:0!important;margin:0!important;padding:0!important}
body.piro-bootstrap #content .customer-tabular :is(th,td){display:table-cell!important;padding:.25rem .4rem;vertical-align:middle;font-size:.85rem;overflow-wrap:normal;word-break:normal}
body.piro-bootstrap #content .customer-tabular :is(th,td):first-child{min-width:290px;width:32%;white-space:normal;overflow-wrap:break-word}
body.piro-bootstrap #content .customer-tabular td[data-label="Indirizzo"]{min-width:230px}
body.piro-bootstrap #content .customer-tabular :is(th,td):last-child{min-width:120px}
body.piro-bootstrap #content .customer-tabular :is([data-action="choose-client"],[data-action="choose-local"]){min-width:150px;white-space:normal;word-break:normal;overflow-wrap:break-word;text-align:left}
body.piro-bootstrap #content .customer-tabular td::before{display:none!important}
body.piro-bootstrap #content .customer-tabular [hidden]{display:none!important}
body.piro-bootstrap #content .customer-tabular .btn{padding:.2rem .45rem;font-size:.8rem;min-height:28px;border:1px solid #ca211c;color:#b8221d;background:white}
body.piro-bootstrap #content .customer-tabular [data-action^="archive-"]{color:#c71f1f;border:1px solid #c71f1f}
@media(max-width:575px){body.piro-bootstrap .customer-profile-fields{grid-template-columns:minmax(0,1fr)}body.piro-bootstrap #resource-form .customer-profile :is(input:not([type=checkbox]),select,textarea){min-height:40px}body.piro-bootstrap #content .customer-tabular .btn{min-width:40px;min-height:40px}body.piro-bootstrap #content .customer-tabular :is(th,td){font-size:.8rem}}
.local-order-tools{display:flex;align-items:center;gap:.35rem;margin-top:.3rem}.local-drag-handle{cursor:grab;font-size:1.4rem;padding:0 .25rem}.local-order-tools .btn{min-width:30px}#customer-billing{border-top:1px solid #ddd;margin-top:1.4rem;padding-top:1rem}body.piro-bootstrap #content .customer-tabular td[data-label="Azioni"]{white-space:nowrap;width:1%;min-width:120px}body.piro-bootstrap #content .customer-tabular td[data-label="Email"]{overflow-wrap:anywhere}@media(max-width:575px){body.piro-bootstrap #content .customer-tabular :is(th,td):first-child{min-width:230px}.local-drag-handle{display:none}}
