#customerDialog{width:min(740px,calc(100% - 24px));max-width:740px;margin:auto;max-height:90dvh;border:1px solid #cbd5e1;border-radius:20px;padding:28px;color:#172b40;background:#fff;box-shadow:0 24px 80px #0005;overflow:auto}#customerDialog::backdrop{background:#0f172ab8}#customerDialog h2{font-size:1.65rem;font-weight:800;margin:12px 0}#customerDialog h3{font-size:1.15rem;font-weight:750;margin:16px 0 8px}#customerDialog p{line-height:1.6;margin:6px 0;color:#475569}#customerDialogContent{clear:both}.customer-close{float:right}.customer-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.customer-primary,.customer-secondary{border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}.customer-primary{background:#0369a1;color:#fff;border:1px solid #0369a1}.customer-secondary{background:#f1f5f9;color:#17364c;border:1px solid #cbd5e1}.customer-primary:disabled,.customer-secondary:disabled{opacity:.6;cursor:wait}.customer-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:20px}.customer-form label{font-size:.9rem;font-weight:650}.customer-form input:not([type=checkbox]),#customerAdminList input{display:block;width:100%;box-sizing:border-box;padding:12px;border:1px solid #94a3b8;border-radius:9px;background:#fff;color:#172b40;margin-top:6px}.customer-form input:focus{outline:3px solid #bae6fd;border-color:#0284c7}.customer-form>button,.customer-consent{grid-column:1/-1}.customer-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.5}.customer-consent input{margin-top:4px;width:18px;height:18px;flex:none}.customer-profile,.customer-empty{padding:16px;background:#f1f5f9;border-radius:12px}.customer-order{padding:16px;border:1px solid #cbd5e1;border-radius:12px;margin-top:14px;overflow-wrap:anywhere}.customer-order-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.customer-order-head h4{font-weight:800}.customer-status{padding:5px 10px;border-radius:100px;font-size:.82rem;font-weight:750}.customer-status.accepted{background:#dcfce7;color:#166534}.customer-status.rejected{background:#fee2e2;color:#991b1b}.customer-status.pending{background:#fef3c7;color:#92400e}#customerLive{min-height:24px;font-weight:650;color:#075985!important}.customer-booking-hint{padding:12px 16px;background:#e0f2fe;border-radius:10px;color:#075985;grid-column:1/-1}.customer-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin-top:16px}.customer-admin-card{padding:18px;border:1px solid #475569;border-radius:12px;background:#0f172a;color:#e2e8f0;overflow-wrap:anywhere}.customer-admin-card h3{font-weight:800;margin-bottom:8px}.customer-admin-card p{margin:5px 0}#customerAdminList input{max-width:340px;margin:0}@media(max-width:560px){#customerDialog{padding:18px}.customer-form{grid-template-columns:1fr}.customer-actions>button{width:100%}}

.customer-preferences{margin-top:14px}.customer-preferences form>button{margin-top:10px}

.customer-delete{margin:20px 0;padding:16px;border:1px solid #fca5a5;border-radius:12px}.customer-delete summary{font-weight:700;color:#991b1b;cursor:pointer}.customer-delete label{display:block;margin:12px 0}.customer-delete input[type=password]{display:block;width:100%;box-sizing:border-box;padding:12px;border:1px solid #94a3b8;border-radius:8px}.customer-delete input[type=checkbox]{margin-right:8px}.customer-delete-button{background:#b91c1c;color:#fff;padding:12px 16px;border-radius:9px}.customer-delete button:disabled{opacity:.6}.customer-account-state{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px;margin-bottom:10px}.customer-account-state:before{content:'';width:10px;height:10px;border-radius:50%;flex:none}.customer-account-state.is-active:before{background:#22c55e}.customer-account-state.is-inactive:before{background:#ef4444}.customer-admin-card.customer-inactive{background:#26313e;border-color:#64748b;color:#a8b2bf}.customer-admin-card.customer-inactive h3,.customer-admin-card.customer-inactive p{color:#a8b2bf}

.customer-inspection-pdf{display:block;margin:12px 0;color:#0369a1;text-decoration:underline;font-weight:650}

.customer-order-lookup{border:1px solid #64748b;border-radius:16px;padding:20px;margin:20px 0}.customer-order-lookup form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.customer-order-lookup label{display:grid;gap:6px;flex:1}.customer-order-lookup input{padding:12px;border:1px solid #64748b;border-radius:8px;width:100%}.customer-order-lookup dl{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:8px}.customer-order-lookup dt{font-weight:bold}.customer-order-lookup dd{margin:0;overflow-wrap:anywhere}.customer-order-action{display:flex;align-items:center;gap:8px;font-weight:bold}.customer-status-dot{width:13px;height:13px;flex:none;border-radius:50%;display:inline-block}.all-good .customer-status-dot{background:#15803d}.needs-action .customer-status-dot{background:#dc2626}@media(max-width:480px){.customer-order-lookup dl{grid-template-columns:1fr}.customer-order-lookup dd{margin-bottom:8px}}

.customer-secondary.customer-logout { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.customer-secondary.customer-logout:hover { background: #991b1b; border-color: #991b1b; }
