/* Customer tools use the existing Fortress token palette; classic remains usable. */
#customerSection { display:grid; gap:16px; min-width:0; }
#customerSection[hidden],#customerSettings[hidden],#c4IncompleteFilter[hidden] { display:none; }
.c4-header h2 { margin:12px 0; font-size:clamp(24px,3vw,34px); }
.c4-header p { margin:8px 0; }
.c4-actions,.c4-card-head,.c4-attachments { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.c4-card-head { justify-content:space-between; }
.c4-tabs { display:flex; overflow-x:auto; gap:6px; padding:4px; }
.c4-tabs button { flex:1; min-width:max-content; min-height:44px; padding:10px 16px; border:1px solid var(--fx-edge,#d9e0e8); border-radius:8px; background:var(--fx-panel,#fff); color:var(--fx-ink,#152238); cursor:pointer; }
.c4-tabs [aria-selected="true"] { background:var(--fx-gold,#176b55); color:var(--fx-gold-ink,#fff); }
.c4-panel { min-width:0; }
.c4-card { padding:18px; border:1px solid var(--fx-edge,#d9e0e8); border-radius:12px; margin-bottom:16px; }
.c4-card h3 { margin:0 0 12px; }
.c4-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:18px 0; }
.c4-metrics small,.c4-metrics strong { display:block; overflow-wrap:anywhere; }
.c4-metrics strong { font-size:20px; margin-top:6px; }
.c4-timeline { list-style:none; padding:0 0 0 12px; margin:0; }
.c4-timeline li { display:grid; gap:5px; border-left:3px solid var(--fx-edge,#d9e0e8); padding:0 0 24px 20px; overflow-wrap:anywhere; }
.c4-timeline time,.c4-timeline small { color:var(--fx-muted,#5c6878); font-size:13px; }
.c4-doc-row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(160px,2fr); gap:14px; align-items:center; margin:12px 0; }
.c4-doc-badge { display:block; font-size:12px; color:var(--fx-muted,#5c6878); }
.c4-upload { display:grid; gap:8px; margin-top:20px; }
.c4-details { display:grid; grid-template-columns:minmax(80px,1fr) minmax(0,2fr); gap:10px; }
.c4-details dd { margin:0; overflow-wrap:anywhere; }
#customerSettings { grid-column:1/-1; }
#customerSettings fieldset { padding:16px; margin:16px 0; border:1px solid var(--fx-edge,#d9e0e8); border-radius:10px; min-width:0; }
#customerSettings label,#customerSection form label,#waTemplateContent label { display:grid; gap:6px; margin-bottom:12px; }
#customerSettings .c4-check { display:flex; align-items:center; gap:8px; }
#customerSettings input[type="checkbox"],#c4Incomplete { width:18px; height:18px; }
#customerSection textarea,#customerSettings textarea,#customerSettings input:not([type="checkbox"]),#waTemplateContent textarea,#waTemplateContent select,.c4-doc-row select { width:100%; min-width:0; padding:10px; border:1px solid var(--fx-edge,#cbd5e1); border-radius:6px; background:var(--fx-panel,#fff); color:var(--fx-ink,#152238); }
.c4-preview { padding:12px; background:var(--fx-bg,#f3f6f8); white-space:pre-wrap; overflow-wrap:anywhere; }
#waTemplateDialog { width:min(600px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; padding:24px; border:1px solid var(--fx-edge,#d9e0e8); border-radius:14px; }
#waTemplateDialog::backdrop { background:rgba(15,23,42,.5); }
#waTemplateContent h2 { margin:0 0 18px; }
#c4Missing { color:var(--fx-muted,#5c6878); }
#c4OpenWA[aria-disabled="true"] { opacity:.5; cursor:not-allowed; }
#c4MarkSent { margin-top:20px; border-top:1px solid var(--fx-edge,#d9e0e8); }
#c4IncompleteFilter { display:flex; align-items:center; gap:8px; padding:8px; }
.c4-name-button { border:0; padding:0; background:transparent; color:inherit; font:inherit; font-weight:700; text-align:left; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
@media(max-width:600px) { .c4-doc-row { grid-template-columns:1fr; gap:6px; } .c4-card { padding:12px; } .c4-metrics { gap:8px; } .c4-metrics strong { font-size:16px; } .c4-tabs button { padding:10px; } #waTemplateDialog { padding:16px; } }

#c4OrderList { grid-column:1/-1; }
#c4OrderList .c4-check { display:flex; align-items:center; gap:8px; }
#c4OrdersIncomplete { width:18px; height:18px; }
