/* Customers workspace */
#view-customers.cw-listmode .oc31-selector-bar,
#view-customers.cw-listmode .customer-workspace{display:none!important}
#view-customers:not(.cw-listmode) .oc31-selector-bar{display:none!important}
.cw{margin:12px 0}
.cw-back{margin:4px 0 8px}
.cw-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:12px}
.cw-sum>div{background:var(--panel,#fff);border:1px solid var(--line,#e2e5ea);border-radius:10px;padding:10px 14px;display:flex;flex-direction:column}
.cw-sum b{font-size:22px;line-height:1.2}.cw-sum span{font-size:12px;opacity:.7}
.cw-sum .ok b{color:#1a7f4b}.cw-sum .warn b{color:#b45309}
.cw-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.cw-tools input{flex:1 1 220px;min-width:180px;padding:8px 10px;border:1px solid var(--line,#cfd4dc);border-radius:8px;font:inherit}
.cw-chip{border:1px solid var(--line,#cfd4dc);background:transparent;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer;color:inherit}
.cw-chip.on{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.cw-chip b{margin-left:3px}
.cw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.cw-card{border:1px solid var(--line,#e2e5ea);border-left:4px solid #94a3b8;border-radius:10px;padding:12px 14px;background:var(--panel,#fff);cursor:pointer;display:flex;flex-direction:column;gap:8px}
.cw-card:hover,.cw-card:focus-visible{box-shadow:0 2px 10px rgba(0,0,0,.12);outline:none}
.cw-card.cw-ready{border-left-color:#1a7f4b}.cw-card.cw-setup{border-left-color:#d97706}.cw-card.cw-held{border-left-color:#dc2626}
.cw-card header{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.cw-card h3{margin:0;font-size:16px}.cw-card small{opacity:.65}
.cw-pill{font-size:12px;padding:3px 9px;border-radius:999px;white-space:nowrap;background:#e5e7eb;color:#111}
.cw-pill.cw-ready{background:#dcfce7;color:#14532d}.cw-pill.cw-setup{background:#fef3c7;color:#78350f}.cw-pill.cw-held{background:#fee2e2;color:#7f1d1d}
.cw-card dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:0}
.cw-card dt{font-size:11px;opacity:.65}.cw-card dd{margin:0;font-weight:600;font-size:14px}
.cw-bill,.cw-note{margin:0;font-size:13px}.cw-note.ok{color:#1a7f4b}
.cw-fix{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.cw-fix li{display:flex;gap:8px;justify-content:space-between;align-items:center;font-size:13px;background:rgba(217,119,6,.08);border-radius:8px;padding:6px 8px}
.cw-go{border:1px solid #d97706;background:transparent;color:inherit;border-radius:6px;padding:4px 8px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.cw-empty{padding:24px;text-align:center;opacity:.75;grid-column:1/-1}.cw-empty.bad{color:#b91c1c;opacity:1}
@media (prefers-color-scheme:dark){.cw-pill{background:#374151;color:#f3f4f6}.cw-pill.cw-ready{background:#14532d;color:#dcfce7}.cw-pill.cw-setup{background:#78350f;color:#fef3c7}.cw-pill.cw-held{background:#7f1d1d;color:#fee2e2}}
.cw-note.warn{color:#b45309}

/* The standalone New customer row is gone; the button sits at the end of the search row. */
#view-customers .oc27-customer-header{display:none!important}
.cw-tools .cw-new{margin-left:auto;white-space:nowrap}
