.advanced-filters{background:#fff;border:1px solid var(--line);border-top:0}.advanced-filters summary{color:#1687b5;cursor:pointer;font-weight:bold;padding:10px 13px}.advanced-filters>div{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:10px 16px;padding:2px 13px 14px}.advanced-filters label{display:grid;grid-template-columns:105px 1fr;align-items:center}.advanced-filters input,.advanced-filters select{width:100%;min-height:31px;border:1px solid #bfc7cb;border-radius:2px;padding:5px 7px}.check-list{max-width:820px;border:1px solid var(--line);background:#fafbfb;padding:12px}.check-list>p{margin-top:0}.check-row{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:9px!important;min-height:36px;padding:5px 8px;border-bottom:1px solid #e0e5e7}.check-row input{width:17px!important;min-height:17px!important;margin:0}.check-row span{font-weight:normal}.franchise-help{border:1px solid var(--line);margin-bottom:14px;background:#fff}.franchise-help summary{cursor:pointer;font-weight:bold;background:#eef2f4;padding:10px 12px}.franchise-help>div{padding:8px 14px}.franchise-form{border:1px solid var(--line);padding:14px;margin-bottom:18px}.franchise-checks{max-width:none;margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.franchise-form>.form-actions{margin-top:12px}.module-table td strong{color:#1687b5}@media(max-width:1100px){.advanced-filters>div{grid-template-columns:1fr 1fr}.franchise-checks{grid-template-columns:1fr}}@media(max-width:700px){.advanced-filters>div{grid-template-columns:1fr}.advanced-filters label{grid-template-columns:105px 1fr}}

/* ABCP-style client registry refinements. */
.clients-workbench{max-width:1260px;margin:18px 0;border:1px solid #d2d9df;background:#fff;padding:20px 22px}
.clients-workbench .action-links{margin:0 0 16px;padding:0;border:0;background:transparent;display:grid;grid-template-columns:minmax(240px,1fr) minmax(300px,1fr);gap:8px 28px}
.clients-workbench .registration-filter{margin:0 0 12px;padding:0;border:0;background:transparent}
.clients-workbench .filter-panel{margin:0;padding:0;border:0;background:transparent;display:grid;grid-template-columns:110px minmax(220px,1fr) 135px minmax(220px,1fr);gap:8px 14px;align-items:center}
.clients-workbench .filter-panel label{display:contents}
.clients-workbench .filter-panel label>span{font-weight:600;color:#25343d}
.clients-workbench .filter-panel input,.clients-workbench .filter-panel select{width:100%;height:34px;min-width:0}
.clients-workbench .filter-panel .primary{grid-column:4;justify-self:end;min-width:92px;margin-top:4px}
.clients-workbench .advanced-filters{margin:10px 0 0;border-top:1px solid #e2e7eb;padding-top:8px}
.numbered-pagination{display:flex;align-items:center;gap:0;margin-left:auto}
.numbered-pagination button{width:34px;height:32px;border:1px solid #ccd5dc;border-right:0;background:#fff;color:#1477aa;cursor:pointer}
.numbered-pagination button:first-child{border-radius:3px 0 0 3px}
.numbered-pagination button:last-of-type{border-right:1px solid #ccd5dc;border-radius:0 3px 3px 0}
.numbered-pagination button.active{background:#e9edf0;color:#263641;font-weight:700}
.numbered-pagination .page-gap{height:32px;padding:7px 8px;border-left:1px solid #ccd5dc;border-top:1px solid #ccd5dc;border-bottom:1px solid #ccd5dc;background:#fff}
@media(max-width:900px){.clients-workbench{padding:14px}.clients-workbench .action-links{grid-template-columns:1fr}.clients-workbench .filter-panel{grid-template-columns:1fr}.clients-workbench .filter-panel label{display:grid;gap:4px}.clients-workbench .filter-panel .primary{grid-column:1;justify-self:stretch}.numbered-pagination{order:3;width:100%;overflow-x:auto;margin:8px 0 0}}
.guest-readonly{display:flex;align-items:center;gap:18px;padding:12px 14px;border:1px solid #d6dee3;background:#f4f7f8}.guest-readonly span{color:#53666d}.guest-rights{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:0 24px;max-width:1100px}.guest-rights>p,.guest-rights>.form-actions{grid-column:1/-1}.guest-options{max-width:900px;border:1px solid #d6dee3}.guest-option-row{display:grid;grid-template-columns:minmax(280px,1fr) 320px;align-items:center;gap:20px;padding:12px 14px;border-bottom:1px solid #dfe5e8}.guest-option-row:last-of-type{border-bottom:0}.guest-option-row select{width:100%}@media(max-width:900px){.guest-rights{grid-template-columns:1fr}.guest-rights>p,.guest-rights>.form-actions{grid-column:auto}.guest-option-row{grid-template-columns:1fr;gap:6px}}
.customer-form-dialog{width:min(920px,calc(100vw - 30px));max-height:calc(100vh - 40px);padding:0;border:1px solid #9ba8ae;border-radius:3px;box-shadow:0 12px 45px #0005}.customer-form-dialog::backdrop{background:#1b293188}.customer-form{padding:24px}.customer-form h2{margin:0 0 20px;font-size:21px}.customer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.customer-form-grid label{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:10px}.customer-form-grid label.wide{grid-column:1/-1}.customer-form-grid input,.customer-form-grid select,.customer-form-grid textarea{width:100%;min-height:33px;border:1px solid #bfc7cb;border-radius:2px;padding:6px 8px}.customer-form-grid textarea{min-height:70px;resize:vertical}.customer-form-checks{display:flex;flex-wrap:wrap;gap:18px;margin:18px 0}.customer-form-checks label{display:flex;align-items:center;gap:7px}.customer-form fieldset{margin:14px 0;padding:15px;border:1px solid #cfd7db}.customer-form legend{font-weight:700;padding:0 7px}.customer-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px}@media(max-width:760px){.customer-form-grid{grid-template-columns:1fr}.customer-form-grid label,.customer-form-grid label.wide{grid-column:1;grid-template-columns:1fr;gap:4px}.customer-form{padding:18px}}
.discount-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(520px,1fr);gap:24px}.discount-layout h2{font-size:16px;margin:0 0 10px}.discount-profiles{border:1px solid #d5dde1;background:#fafbfb}.discount-layout .module-table{min-width:520px}@media(max-width:900px){.discount-layout{grid-template-columns:1fr}.discount-layout .module-table{min-width:480px}}

/* Extended client card follows the compact tabbed layout used by ABCP. */
.customer-form-dialog{width:min(1180px,calc(100vw - 30px))}.customer-form-extended{padding:18px 22px}.customer-form-extended h2{margin-bottom:14px}.customer-subtabs{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid #cbd4da;margin:0 0 18px}.customer-subtab{border:0;border-bottom:3px solid transparent;background:transparent;color:#1687b5;font-weight:700;padding:10px 12px;cursor:pointer}.customer-subtab:hover{background:#f2f6f8}.customer-subtab.active{border-bottom-color:#1687b5;color:#273842;background:#edf4f7}.customer-tab-panel{display:none;min-height:310px}.customer-tab-panel.active{display:block}.customer-tab-panel h3{font-size:17px;margin:0 0 12px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.section-heading h3,.section-heading p{margin:0 0 5px}.form-help{color:#5d6e75;max-width:900px;margin:0 0 16px}.repeat-list,.contact-list{display:grid;gap:8px}.repeat-row{display:grid;grid-template-columns:1fr 38px;gap:8px;max-width:900px}.contact-row{display:grid;grid-template-columns:180px 240px 1fr 38px;gap:8px}.repeat-row input,.contact-row input,.stacked-label textarea{width:100%;min-height:34px;border:1px solid #bfc7cb;border-radius:2px;padding:6px 8px}.remove-repeat{width:38px;min-height:34px;border:1px solid #cbd3d8;background:#fff;color:#9b3030;font-size:21px;cursor:pointer}.settings-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;max-width:1000px;border:1px solid #d5dde1;background:#fafbfb;padding:8px 12px;margin-bottom:16px}.settings-check-grid label{display:flex;align-items:center;gap:9px;min-height:38px;border-bottom:1px solid #e1e6e9}.stacked-label{display:grid;gap:6px;max-width:900px;font-weight:700}.stacked-label textarea{min-height:100px;resize:vertical;font-weight:400}.customer-option-table{max-width:850px;border:1px solid #d5dde1}.customer-option-table label{display:grid;grid-template-columns:1fr 330px;align-items:center;gap:18px;padding:10px 12px;border-bottom:1px solid #e1e6e9}.customer-option-table label:last-child{border-bottom:0}.customer-option-table select{min-height:34px;border:1px solid #bfc7cb;background:#fff}.customer-form-extended .customer-form-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #d5dde1;padding:14px 0 2px;z-index:2}
.customer-garage-table{width:100%;margin-bottom:18px}.local-car-title{padding-top:2px}
@media(max-width:850px){.customer-subtabs{flex-wrap:nowrap;overflow-x:auto}.customer-subtab{white-space:nowrap}.contact-row{grid-template-columns:1fr}.settings-check-grid{grid-template-columns:1fr}.customer-option-table label{grid-template-columns:1fr;gap:5px}.customer-tab-panel{min-height:240px}}
