/* Steelwise visual system from the four reference boards. Screen-only;
   existing module markup, controls, permissions and document print layouts remain intact. */
@media screen {
  html[data-sw-color-scheme="light"] body:not([data-tenant="weko"]) {
    --sw-surface:#ffffff;--sw-surface-soft:#f4f8fd;--sw-border:#dbe5f0;
    --sw-shadow:0 5px 22px rgba(33,68,109,.055);--sw-ink:#172b44;
  }
  html[data-sw-color-scheme="dark"] body:not([data-tenant="weko"]) {
    --sw-surface:#152b3e;--sw-surface-soft:#1a3349;--sw-border:#34506a;
    --sw-shadow:0 5px 24px rgba(1,10,21,.16);--sw-ink:#eef5fd;
  }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) :is(.topbar,.content,.table-wrap,.panel,.kpi,.master-card,.newsletter-card,.import-paste,.import-capability) { min-width:0; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .content { max-width:none; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .topbar { border-bottom:1px solid var(--sw-border);padding-block:17px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .topbar h1 { letter-spacing:-.025em; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) :is(.panel,.kpi,.master-card,.newsletter-card,.import-paste,.import-capability,.table-wrap,.customer-management-kpi) {
    background:var(--sw-surface);border-color:var(--sw-border);border-radius:9px;box-shadow:var(--sw-shadow);
  }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) :is(.btn,.icon-btn,.status-pill) { border-radius:6px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) :is(.field input,.field select,.field textarea,.import-paste textarea) { border-radius:6px;background:var(--sw-surface); }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) :is(.field input,.field select,.field textarea,.import-paste textarea):focus-visible { outline:2px solid var(--brass-bright);outline-offset:1px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .table-wrap { border:1px solid var(--sw-border);overflow-x:auto; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .table-wrap table { border-collapse:collapse; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .table-wrap thead th { background:var(--sw-surface-soft);color:var(--muted);font-size:.67rem;letter-spacing:.025em;white-space:nowrap; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .table-wrap tbody tr:hover { background:var(--sw-surface-soft); }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) :is(.sw-dashboard-card,.sw-dashboard-kpi) { background:var(--sw-surface);border-color:var(--sw-border);box-shadow:var(--sw-shadow); }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .sw-dashboard-card-head { padding-bottom:10px;border-bottom:1px solid var(--sw-border); }

  /* Import: compact workbench above the complete, unchanged import controls. */
  .sw-import-toolbar { display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:0 0 12px;padding:13px 16px;border:1px solid var(--sw-border);border-radius:9px;background:var(--sw-surface); }
  .sw-import-toolbar strong,.sw-import-toolbar span { display:block; }
  .sw-import-toolbar strong { font-size:.85rem;color:var(--sw-ink); }
  .sw-import-toolbar span { margin-top:3px;font-size:.7rem;color:var(--muted); }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-batch-summary { gap:10px;border:0;background:transparent; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-batch-summary>div { min-width:0;border:1px solid var(--sw-border);border-radius:8px;background:var(--sw-surface);box-shadow:var(--sw-shadow); }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-intro { gap:12px;margin-bottom:20px;grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr); }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-dropzone { min-height:215px;border-radius:9px;background:var(--sw-surface-soft);padding:19px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-dropzone:hover,
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-dropzone.is-dragging { background:var(--sw-surface); }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-drop-icon { width:38px;height:38px;margin-bottom:8px;border-radius:7px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-drop-icon svg { width:21px;height:21px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-dropzone h2 { font-size:1.03rem; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-dropzone p { font-size:.73rem;line-height:1.4; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-format-chips { margin-top:9px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-format-chip { background:var(--sw-surface);border-color:var(--sw-border);border-radius:4px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-actions { margin-top:12px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-capabilities { grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-capability { display:block;padding:9px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-capability>strong { width:auto;height:auto;border:0;text-align:left;display:block; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-capability h3 { font-size:.68rem; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-capability p { font-size:.62rem; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-paste { padding:12px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-paste h3 { font-size:.78rem;margin-bottom:7px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-paste textarea { min-height:66px; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-history-head { scroll-margin-top:20px; }

  /* Production board uses live ERP data, then the original editable table. */
  .sw-workbench { display:grid;gap:13px;margin-bottom:18px; }
  .sw-workbench-head h2,.sw-management-shortcuts h2 { margin:0;font-size:1.2rem;letter-spacing:-.025em;color:var(--sw-ink); }
  .sw-workbench-head p,.sw-management-shortcuts p { margin:4px 0 0;color:var(--muted);font-size:.73rem; }
  .sw-workbench-kpis { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px; }
  .sw-workbench-kpi { text-align:left;cursor:pointer;padding:14px 17px;border:1px solid var(--sw-border);border-left:4px solid #3393f2;border-radius:8px;background:var(--sw-surface);color:var(--sw-ink);box-shadow:var(--sw-shadow); }
  .sw-workbench-kpi[data-tone="green"] { border-left-color:#28b88b; }
  .sw-workbench-kpi[data-tone="amber"] { border-left-color:#eaa83f; }
  .sw-workbench-kpi[data-tone="violet"] { border-left-color:#8279ee; }
  .sw-workbench-kpi:hover,.sw-workbench-links button:hover,.sw-management-links button:hover { border-color:var(--brass-bright); }
  .sw-workbench-kpi strong { display:block;font-size:1.35rem; }
  .sw-workbench-kpi span { display:block;margin-top:4px;color:var(--paper);font-size:.72rem; }
  .sw-workbench-grid { display:grid;grid-template-columns:1.3fr 1fr;gap:10px; }
  .sw-workbench-card { min-width:0;padding:15px 17px;border:1px solid var(--sw-border);border-radius:9px;background:var(--sw-surface);box-shadow:var(--sw-shadow); }
  .sw-workbench-card h3 { margin:0 0 9px;font-size:.86rem; }
  .sw-workbench-card p { font-size:.73rem;color:var(--muted); }
  .sw-workbench-links { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }
  .sw-workbench-links button,.sw-management-links button { display:flex;justify-content:space-between;gap:9px;align-items:center;cursor:pointer;padding:9px 11px;border:1px solid var(--sw-border);border-radius:6px;background:var(--sw-surface-soft);color:var(--paper);font:600 .72rem "IBM Plex Sans",sans-serif;text-align:left; }
  .sw-workbench-list-heading { margin:5px 0 0;padding-top:13px;border-top:1px solid var(--sw-border);font-size:.88rem; }
  .sw-management-shortcuts { display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:2px 0 18px;padding:15px 17px;border:1px solid var(--sw-border);border-radius:9px;background:var(--sw-surface);box-shadow:var(--sw-shadow); }
  .sw-management-links { display:flex;gap:7px;flex-wrap:wrap; }
  html[data-sw-color-scheme] body:not([data-tenant="weko"]) .sw-management-links button { white-space:nowrap; }

  @media(max-width:1150px) { .sw-workbench-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .sw-workbench-grid { grid-template-columns:1fr; } html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-intro { grid-template-columns:1fr; } }
  @media(max-width:720px) { .sw-workbench-links { grid-template-columns:1fr; } .sw-import-toolbar { align-items:stretch; } .sw-import-toolbar .btn { width:100%; } html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-batch-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media(max-width:480px) { .sw-workbench-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .sw-management-links { width:100%; } .sw-management-links button { flex:1 1 45%; } html[data-sw-color-scheme] body:not([data-tenant="weko"]) .import-capabilities { grid-template-columns:1fr; } }
}
