/* ATLAS design — loaded only when the switch is on (<html class="atlas">). Off = this file is not loaded.
   Colours: SpringBlinds 4 Apps design guide → SB HUB = Monochrome Graphite (11/09). Status colours (green / red / amber) stay.
   No pill shapes (rounded rectangles only). Customer documents (견적·인보이스 print pages, PDFs, mail) do not use base.html.
   11/12 tidy: every colour token in one place (the light set, then the dark set); the old Indigo + Lavender values are gone. */

html.atlas {
  --sbw: 236px; --page: #F7F8F9; --panel: #FFFFFF; --panel2: #F3F4F6; --line: #E2E5E8; --line2: #ECEEF0; --ink: #252A2F; --ink2: #4E555D;
  --ink3: #6E757D; --topbar: #FFFFFF; --nav: #30353B; --nav-ink: #ECEEF1; --nav-active: rgba(255,255,255,.12); --nav-bar: #D8DEE4;
  --nav-hover: #3B4148; --nav-label: #A9B0B8; --link: #30353B; --focus: 0 0 0 3px rgba(48,53,59,.22); --accent: #30353B; --accent-solid: #30353B;
  --accent-soft: #EEF0F2; --accent-line: #C9CED4; --chart: #30353B; --chart2: #A3AAB2; --brand: #30353B; --brand-ink: #30353B; --ok: #2E9A6A;
  --t-ok: #1F7A52; --ok-bg: #E6F5EE; --ok-line: #B3DFCA; --danger: #D9534F; --red: #D9534F; --t-red: #B83A36; --err-bg: #FCEBEA; --err-line: #F1BEBC;
  --t-warn: #A86A12; --warn-bg: #FDF3E2; --warn-line: #EED3A3; --amber: #E0A84E; --row-alt: #FAFAFB; --row-hover: #F2F3F5; --radius-card: 12px;
  --shadow-card: 0 1px 2px rgba(20,24,28,.04), 0 4px 14px rgba(20,24,28,.05); --st-grey-bg: #EEF0F2; --st-grey: #4E555D;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --tile-in: #2E9A6A; --tile-out: #30353B; --tile-move: #6E757D; --tile-adj: #A3AAB2; --t-in: #1F7A52; --t-out: #A86A12; --t-move: #4E555D;
  --t-adj: #30353B; --t-outbound: #30353B; --soft-in: #E6F5EE; --soft-out: #EEF0F2; --soft-move: #F0F1F3; --soft-adj: #F0F1F3; --line-red: #D9534F;
  --line-amber: #E0963C; --line-green: #3F9A64;
}
@media (prefers-color-scheme: dark) {
  html.atlas {
    --page: #171B1F; --panel: #252A30; --panel2: #2B3138; --line: #373E46; --line2: #30363D; --ink: #F0F3F6; --ink2: #C9CFD6; --ink3: #A3AAB2;
    --topbar: #1E2227; --nav: #1E2227; --nav-ink: #E3E7EB; --nav-active: rgba(216,222,228,.12); --nav-hover: #2A2F35; --nav-label: #8E959D;
    --link: #D8DEE4; --focus: 0 0 0 3px rgba(216,222,228,.25); --accent: #D8DEE4; --accent-solid: #545C66; --accent-soft: #2E343B;
    --accent-line: #4A525B; --chart: #D8DEE4; --chart2: #7D858E; --brand: #1E2227; --brand-ink: #D8DEE4; --ok: #45B583; --t-ok: #7FD1A9;
    --ok-bg: rgba(84, 190, 128, .14); --ok-line: rgba(84, 190, 128, .38); --danger: #E46A66; --red: #E46A66; --t-red: #F19C99;
    --err-bg: rgba(228, 106, 102, .15); --err-line: rgba(228, 106, 102, .40); --t-warn: #F5BC74; --warn-bg: rgba(255, 255, 255, .07);
    --warn-line: rgba(245, 166, 70, .38); --row-alt: #282D33; --row-hover: #2E343B; --st-grey-bg: #30363D; --st-grey: #C9CFD6; --tile-in: #45B583;
    --tile-out: #D8DEE4; --tile-move: #A3AAB2; --tile-adj: #7D858E; --t-in: #7FD1A9; --t-out: #EBB467; --t-adj: #D8DEE4; --t-outbound: #D8DEE4;
    --soft-in: #1B3329; --soft-out: rgba(255, 255, 255, .05); --soft-move: #2B3138; --soft-adj: #2E343B; --line-red: #E46A66; --line-amber: #E8A04A;
    --line-green: #5BBE84;
  }
}
html.atlas body { background: var(--page); color: var(--ink); padding-left: var(--sbw); }

/* ---------- left sidebar (the same menu, same permissions — only laid out down the side) ---------- */
html.atlas .menubar {
  position: fixed !important; top: 0; left: 0; bottom: 0; width: var(--sbw); height: auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 1px;
  padding: 0 10px 20px; margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: var(--nav) !important; border: 0 !important; box-shadow: none; z-index: 60; scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
html.atlas .menubar .sb-brand { display: flex; align-items: center; gap: 8px; height: 56px; flex: 0 0 56px; padding: 0 8px; margin: 0 -10px 8px;
  padding-left: 18px; border-bottom: 1px solid rgba(255,255,255,.07) !important; color: #fff !important; text-decoration: none; background: transparent !important; }
html.atlas .menubar .sb-brand b { font-family: "Quantico", var(--font); font-size: 18px; letter-spacing: -1.2px; font-weight: 700; color: #fff; }
html.atlas .menubar .sb-brand:hover { background: transparent !important; }
html.atlas .menubar > a:not(.sb-brand), html.atlas .menubar .nav-menu a {
  display: flex !important; align-items: center; justify-content: flex-start; gap: 9px; height: 36px; min-height: 36px; padding: 0 12px !important;
  border: 0 !important; border-radius: 6px !important; color: var(--nav-ink) !important; background: transparent !important;
  font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
html.atlas .menubar > a:not(.sb-brand):hover, html.atlas .menubar .nav-menu a:hover { background: var(--nav-hover) !important; color: #fff !important; }
html.atlas .menubar > a.active:not(.sb-brand), html.atlas .menubar .nav-menu a.active {
  background: var(--nav-active) !important; color: #fff !important; font-weight: 650 !important; box-shadow: inset 3px 0 0 var(--nav-bar); }
html.atlas .menubar svg { width: 16px; height: 16px; flex-shrink: 0; }
html.atlas .menubar .sep { display: block; width: auto; height: 1px; flex: 0 0 1px; margin: 8px 4px; background: rgba(255,255,255,.08) !important; }
html.atlas .menubar .nav-group { display: block !important; position: static; }
html.atlas .menubar .nav-btn {
  display: flex !important; align-items: center; gap: 6px; width: 100%; height: 30px !important; padding: 0 12px !important; margin-top: 6px;
  background: none !important; border: 0 !important; cursor: default; pointer-events: none;
  color: var(--nav-label) !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .04em; text-transform: uppercase; }
html.atlas .menubar .nav-btn .nav-count { pointer-events: auto; }
html.atlas .menubar .caret-d { display: none; }
html.atlas .menubar .nav-menu {
  display: flex !important; flex-direction: column; gap: 1px; position: static !important; top: auto !important; left: auto !important;
  min-width: 0; padding: 0; margin: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.atlas .menubar .nav-menu a { justify-content: space-between; }

/* number badges: rounded rectangles (radius 5), never pills */
html.atlas .nav-count { border-radius: 5px !important; padding: 0 6px; line-height: 18px; min-width: 18px; text-align: center; background: var(--danger); color: #fff; }

/* ---------- top bar ---------- */
html.atlas .topbar { position: sticky; top: 0; z-index: 40; height: 56px; padding: 0 24px; background: var(--topbar); border-bottom: 1px solid var(--line); }
html.atlas .topbar .brand { display: none; }
html.atlas .global-search { max-width: 520px; }
html.atlas .global-search input { border-radius: 6px; border: 1px solid var(--line); background-color: var(--panel2); height: 36px; }
html.atlas .segmented { border-radius: 6px; border-color: var(--line); }
html.atlas .segmented a.active { background: var(--accent-solid); color: #fff; }
html.atlas .who-badge { border-radius: 5px !important; }
html.atlas .sb-burger { display: none; width: 38px; height: 38px; margin-left: -8px; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; flex-shrink: 0; }
html.atlas .sb-burger svg { width: 22px; height: 22px; }
html.atlas .sb-scrim { position: fixed; inset: 0; background: rgba(20,22,40,.5); z-index: 55; }

/* ---------- page ---------- */
html.atlas main { padding: 24px 28px 48px; max-width: 1560px; }
html.atlas .card, html.atlas .portlet, html.atlas .bt, html.atlas .b-tile, html.atlas .table-wrap, html.atlas .sch-day {
  border-radius: var(--radius-card) !important; border-color: var(--line); box-shadow: var(--shadow-card); }
html.atlas h1, html.atlas .page-title { letter-spacing: -.015em; color: var(--ink); }

/* buttons & fields */
html.atlas .btn { border-radius: 6px !important; height: 34px; font-weight: 600; }
html.atlas .btn:not(.secondary):not(.danger):not(.ghost) { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
html.atlas .btn.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
html.atlas .btn-xs { height: 26px; border-radius: 5px !important; }
:where(html.atlas) :is(input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time],
input[type=password], input[type=email], select, textarea) { border-radius: 6px; border-color: var(--line); }
html.atlas .flash, html.atlas .warn-box { border-radius: 8px; }

/* tables */
/* :where() keeps these as weak as the base rules, so a table with its own look (e.g. the invoice paper preview .di-paper) keeps it */
:where(html.atlas) th { background: var(--panel2); color: var(--ink3); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
html.atlas table.tracker thead th { text-align: center; }   /* 11/10 Aaron: order tracker headers centred */
:where(html.atlas) tbody tr:hover td { background: var(--row-hover); }
:where(html.atlas) .di-paper tbody tr:hover td { background: transparent; }

/* status / tags: rounded rectangles; '접수' (new / open) grey, 진행 blue, 출고 violet, 완료 green */
html.atlas .status, html.atlas .kind, html.atlas .badge, html.atlas .pill, html.atlas .check-tag, html.atlas .status-chips a,
html.atlas .hero-chips span, html.atlas .b-chips span, html.atlas .bp-type, html.atlas .cb-tag, html.atlas .period-select,
html.atlas .chip, html.atlas .tag { border-radius: 5px !important; }
html.atlas .status-chips a { border-radius: 6px !important; }
html.atlas .status.st-new, html.atlas .status.st-open, html.atlas .status-chips .st-open { background: var(--st-grey-bg); color: var(--st-grey); }
html.atlas .status.st-in_progress, html.atlas .status.st-progress { background: var(--accent-soft); color: var(--accent); }
html.atlas .status.st-done, html.atlas .status.st-closed { background: var(--ok-bg); color: var(--t-ok); }
html.atlas .status.st-cancelled { background: var(--panel2); color: var(--ink3); }
html.atlas body[data-page="moves"] .status.st-open { background: var(--ok-bg); color: var(--t-ok); }   /* there 'st-open' means 입고, not 접수 */
html.atlas .b-hero .b-split { border-radius: 4px; }
html.atlas [style*="border-radius:999px"], html.atlas [style*="border-radius: 999px"] { border-radius: 5px !important; }

/* side panel / pop-ups keep their place */
html.atlas .peek { border-radius: 0; }

/* ---------- tablet & phone: the sidebar slides in from the ☰ button ---------- */
@media (max-width: 1000px) {
  html.atlas body { padding-left: 0; }
  html.atlas .menubar { width: 264px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  html.atlas.sb-open .menubar { transform: none; }
  html.atlas .sb-burger { display: inline-flex; }
  html.atlas .topbar { padding: 0 14px; gap: 10px; }
  html.atlas .topbar .brand { display: flex; }
  html.atlas main { padding: 16px 14px 40px; }
}
@media (max-width: 640px) {
  html.atlas .topbar .brand .brand-name { font-size: 17px; }
  html.atlas .global-search { display: none; }
}
@media (prefers-reduced-motion: reduce) { html.atlas .menubar { transition: none; } }

/* print: a printed screen never shows the sidebar */
@media print {
  html.atlas body { padding-left: 0; background: #fff; }
  html.atlas .menubar, html.atlas .topbar, html.atlas .sb-scrim { display: none !important; }
}

/* ---------- home & '오늘' tiles: white cards, colour only in numbers and icons (입고 green · 출고 blue) ---------- */


html.atlas .b-hero, html.atlas .b-hero.b-hero-out { background: var(--panel); border: 1px solid var(--line); }
html.atlas .b-hero .b-label, html.atlas .b-hero.b-hero-out .b-label { color: var(--ink2); }
html.atlas .b-hero .b-big { color: var(--accent); } html.atlas .b-hero.b-hero-out .b-big { color: var(--ink); }
html.atlas .b-hero .b-sub, html.atlas .b-hero.b-hero-out .b-sub { color: var(--ink2); }
html.atlas .b-hero .b-chips span, html.atlas .b-hero.b-hero-out .b-chips span { background: var(--panel2); color: var(--ink2); border: 1px solid var(--line2); }
html.atlas .b-hero .b-split { background: var(--accent); opacity: 1; height: 8px; }
html.atlas .b-hero .b-split span, html.atlas .b-hero .b-split-legend i.o { background: var(--chart2); }
html.atlas .b-hero .b-split-legend { color: var(--ink2); } html.atlas .b-hero .b-split-legend i.p { background: var(--accent); }
html.atlas .b-label { font-weight: 650; color: var(--ink2); }
html.atlas .b-action, html.atlas .b-action.in, html.atlas .b-action.out, html.atlas .b-action.move, html.atlas .b-action.adj { background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
html.atlas .b-action.in svg { color: var(--tile-in); } html.atlas .b-action.out svg { color: var(--tile-out); }
html.atlas .b-action.move svg { color: var(--tile-move); } html.atlas .b-action.adj svg { color: var(--tile-adj); }
html.atlas .b-action:hover { border-color: var(--accent-line); filter: none; }
html.atlas .b-alert-list a, html.atlas .b-alert-list .calm a, html.atlas .b-alert-list .blue a, html.atlas .b-alert-list .outb a { background: var(--panel2); border-radius: 6px; }
html.atlas .b-alert-list .red a { background: var(--err-bg); } html.atlas .b-alert-list .amber a { background: var(--warn-bg); }
html.atlas .b-alert-list .calm .n, html.atlas .b-alert-list .blue .n { color: var(--accent); }
html.atlas .who-badge { background: var(--accent-soft); color: var(--accent); }
html.atlas .admin-link.on { background: transparent !important; color: var(--ink2) !important; border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; font-size: 12.5px; text-decoration: none; }
@media (max-width: 1000px) {
  html.atlas .topbar { height: auto; min-height: 56px; flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
}

/* ---------- '오늘' (ATLAS only): money cards (CEO·이사) and charts from real data ---------- */
html.atlas .at-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
html.atlas .at-row:empty { display: none; }
html.atlas .at-kpi { display: block; padding: 14px 16px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
html.atlas .at-kpi .at-l { font-size: 12.5px; font-weight: 650; color: var(--ink2); }
html.atlas .at-kpi .at-n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
html.atlas .at-kpi .at-s { font-size: 12px; color: var(--ink3); }
html.atlas .at-kpi.at-warn .at-n { color: var(--t-warn); } html.atlas .at-kpi.at-ok .at-n { color: var(--t-ok); }
html.atlas a.at-kpi:hover { border-color: var(--accent-line); }
html.atlas .at-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 0 0 16px; }
html.atlas .at-chart .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
html.atlas .at-bars { display: flex; align-items: stretch; gap: 10px; height: 170px; padding-top: 22px; }
html.atlas .at-b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
html.atlas .at-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
html.atlas .at-fill { position: relative; width: min(40px, 70%); background: var(--chart); border-radius: 4px 4px 0 0; }
html.atlas .at-bars.money .at-fill { background: var(--ok); }
html.atlas .at-fill b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 3px; font-size: 11.5px; font-weight: 650; color: var(--ink2); white-space: nowrap; }
html.atlas .at-b > span { font-size: 12px; color: var(--ink3); }
@media (max-width: 1000px) { html.atlas .at-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } html.atlas .at-kpi .at-n { font-size: 22px; } }
@media (max-width: 420px) { html.atlas .at-fill b { font-size: 10px; } html.atlas .at-bars { gap: 6px; } }
html.atlas .td-bar .td-o, html.atlas .td-legend i.td-o { background: #C3CBD6; }
html.atlas .td-bar .td-p, html.atlas .td-legend i.td-p { background: var(--chart); }
html.atlas .td-bar .td-d, html.atlas .td-legend i.td-d { background: var(--ok); }
/* wide tables (주문 트래커 …) keep their first column on one line next to the narrower page */
html.atlas #tracker td.pick-cell { min-width: 56px; }
html.atlas #tracker .pick-wrap { display: inline-flex !important; flex-wrap: nowrap; }
html.atlas .status-chips a.active { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
/* the page header is one row (56px) instead of logo row + menu row */
html.atlas { --hdr: 56px; scroll-padding-top: 64px; }
html.atlas .sb-foot { display: none; }
@media (max-width: 1000px) {
  /* phone / tablet: one slim bar on top (☰ + name); who's signed in, sign out and language move to the bottom of the menu */
  html.atlas .topbar { position: sticky; top: 0; height: 56px; min-height: 0; flex-wrap: nowrap; padding: 0 12px; }
  html.atlas .topbar .top-right { display: none; }
  html.atlas .topbar .global-search { display: flex; flex: 1; min-width: 0; }
  html.atlas .sb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }
  html.atlas .sb-foot .who-badge { background: rgba(255,255,255,.1); color: #fff; }
  html.atlas .sb-foot .sb-out { color: var(--nav-ink); font-size: 13px; text-decoration: none; padding: 4px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; }
  html.atlas .sb-foot .sb-lang { display: flex; margin-left: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; overflow: hidden; }
  html.atlas .sb-foot .sb-lang a { padding: 4px 9px; font-size: 12px; color: var(--nav-ink); text-decoration: none; }
  html.atlas .sb-foot .sb-lang a.active { color: #fff; }
}
@media (max-width: 640px) {
  html.atlas .topbar .global-search { display: none; }
}
html.atlas .menubar .sb-foot a { height: auto; min-height: 0; border-bottom: 0; white-space: nowrap; }

/* --t-out is also the warning (amber) colour (확인 필요·보류·줄어듦), so it stays amber; 출고 has its own colour (--t-outbound, --tile-out = blue).
   The tags that had their tint written in as a fixed colour follow the same palette here. */
html.atlas .badge.in { background: var(--soft-in); }
html.atlas .badge.out, html.atlas .status.st-outbound { background: var(--soft-out); color: var(--t-outbound); }
html.atlas .badge.transfer { background: var(--soft-move); }
html.atlas .badge.adjust { background: var(--soft-adj); }
html.atlas .b-action.out { color: var(--ink); }
html.atlas .status-chips .st-progress { background: var(--accent-soft); color: var(--accent); }
html.atlas .status-chips .st-closed { background: var(--ok-bg); color: var(--t-ok); }
html.atlas .status-chips a.active.st-open, html.atlas .status-chips a.active.st-progress, html.atlas .status-chips a.active.st-closed { background: var(--accent-solid); color: #fff; }
/* tables keep short words on one line (이력보기 · 수정 · 'Part Room 100' …); long names wrap instead */
html.atlas main td:last-child > a.small-link, html.atlas main td .btn-xs, html.atlas main td.breakdown > span, html.atlas main td .badge, html.atlas main td .status { white-space: nowrap; }
@media (max-width: 1500px) and (min-width: 1001px) {
  html.atlas { --sbw: 220px; }
  html.atlas .menubar > a:not(.sb-brand), html.atlas .menubar .nav-menu a { padding: 0 10px !important; font-size: 13px; }
}
@media (max-width: 1500px) and (min-width: 1001px) {
  html.atlas .menubar .sb-brand b { font-size: 16px; letter-spacing: -1px; }
  html.atlas .menubar .sb-brand { padding-left: 14px; }
}

/* ---------- menu icons (thin line, drawn from each link address — the menu markup is unchanged) ---------- */
html.atlas .menubar > a:not(.sb-brand):not([href="/home"])::before, html.atlas .menubar .nav-menu a::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px;
  background: currentColor; opacity: .85; -webkit-mask: var(--ic, none) center / 16px 16px no-repeat; mask: var(--ic, none) center / 16px 16px no-repeat; }
html.atlas .menubar .nav-menu a { justify-content: flex-start; }
html.atlas .menubar .nav-menu a .nav-count { margin-left: auto; }
html.atlas .menubar a[href="/boss"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/></svg>"); }
html.atlas .menubar a[href="/stock"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/><path d='M12 12l8-4.5M12 12v9M12 12L4 7.5'/></svg>"); }
html.atlas .menubar a[href="/inbound"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 10l5 5 5-5M5 20h14'/></svg>"); }
html.atlas .menubar a[href="/outbound"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20V9M7 14l5-5 5 5M5 4h14'/></svg>"); }
html.atlas .menubar a[href="/transfer"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8h15M15 4l4 4-4 4M20 16H5M9 12l-4 4 4 4'/></svg>"); }
html.atlas .menubar a[href="/adjust"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='4' width='14' height='17' rx='2'/><path d='M9 4V3h6v1M9 12l2 2 4-4'/></svg>"); }
html.atlas .menubar a[href="/moves"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/></svg>"); }
html.atlas .menubar a[href="/receiving"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7h11v9H3zM14 10h4l3 3v3h-7z'/><circle cx='7' cy='18' r='1.8'/><circle cx='17' cy='18' r='1.8'/></svg>"); }
html.atlas .menubar a[href="/reorder"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='19' r='1.5'/><circle cx='17' cy='19' r='1.5'/><path d='M3 4h2l2.5 11h11l2-8H6.5'/></svg>"); }
html.atlas .menubar a[href="/po-list"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/><path d='M14 3v6h6'/><path d='M8 13h8M8 17h5'/></svg>"); }
html.atlas .menubar a[href="/purchase-prices"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20V10M10 20V4M16 20v-7M22 20H2'/></svg>"); }
html.atlas .menubar a[href="/report/usage"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h16M7 16v-5M12 16V6M17 16v-8'/></svg>"); }
html.atlas .menubar a[href="/report/top"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2'/><path d='M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2'/><path d='M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3'/><path d='M4 22h16'/><path d='M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z'/><path d='M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3'/></svg>"); }
html.atlas .menubar a[href="/items"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z'/><path d='M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193'/><circle cx='10.5' cy='6.5' r='.5' fill='currentColor'/></svg>"); }
html.atlas .menubar a[href="/parties"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 2v2'/><path d='M7 21v-2a2 2 0 012-2h6a2 2 0 012 2v2'/><path d='M8 2v2'/><circle cx='12' cy='10' r='3'/><rect x='3' y='3' width='18' height='18' rx='2'/></svg>"); }
html.atlas .menubar a[href="/locations"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11a7 7 0 0114 0c0 4.8-7 11-7 11z'/><circle cx='12' cy='10' r='2.5'/></svg>"); }
html.atlas .menubar a[href="/sales"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19l5-6 4 3 7-9'/><path d='M15 7h5v5'/></svg>"); }
html.atlas .menubar a[href="/ferguson"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 21V5l8-2v18M12 7l8 2v12M3 21h18M7 8h1M7 12h1M7 16h1M16 12h1M16 16h1'/></svg>"); }
html.atlas .menubar a[href="/board"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='16' rx='2'/><path d='M8 3v4M16 3v4M4 10h16'/></svg>"); }
html.atlas .menubar a[href="/cutback"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5.42 9.42 8 12'/><circle cx='4' cy='8' r='2'/><path d='m14 6-8.58 8.58'/><circle cx='4' cy='16' r='2'/><path d='M10.8 14.8 14 18'/><path d='M16 12h-2'/><path d='M22 12h-2'/></svg>"); }
html.atlas .menubar a[href="/production/fascia"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h3v15h4v3H9z'/></svg>"); }
html.atlas .menubar a[href="/plan"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='16' rx='2'/><path d='M8 3v4M16 3v4M4 10h16M8 14h3v3H8z'/></svg>"); }
html.atlas .menubar a[href="/orders"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='4' width='14' height='17' rx='2'/><path d='M9 4V3h6v1M9 10h6M9 14h6M9 18h3'/></svg>"); }
html.atlas .menubar a[href="/dealers"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m11 17 2 2a1 1 0 1 0 3-3'/><path d='m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4'/><path d='m21 3 1 11h-2'/><path d='M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3'/><path d='M3 4h8'/></svg>"); }
html.atlas .menubar a[href="/apartments"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 12h4'/><path d='M10 8h4'/><path d='M14 21v-3a2 2 0 0 0-4 0v3'/><path d='M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2'/><path d='M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16'/></svg>"); }
html.atlas .menubar a[href="/inbox"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>"); }
html.atlas .menubar a[href="/report/monthly"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16v5'/><path d='M16 14.639V21'/><path d='M20 10.656V21'/><path d='m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15'/><path d='M4 18.463V21'/><path d='M8 14.656V21'/></svg>"); }
html.atlas .menubar a[href="/dealer-invoice"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8z'/><path d='M14 3v5h5M9 13h6M9 17h4M9 9h2'/></svg>"); }
html.atlas .menubar a[href="/somfy"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4h18'/><path d='M5 4v16c2-1 4-1 6 0V4'/><path d='M17 9l-2 3.5h3L16 16'/></svg>"); }   /* 11/17: curtain + power (F) */
html.atlas .menubar a[href="/tools/calc"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><ellipse cx='5' cy='12' rx='2' ry='4'/><path d='M5 8h14M5 16h14'/><path d='M19 8a2 4 0 010 8'/></svg>"); }   /* 11/14: tube calculator (roller tube + shade) */
html.atlas .menubar a[href="/tools/cordless"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12h3'/><path d='M5 12c0-5 3-5 3 0s3 5 3 0 3-5 3 0 3 5 3 0'/><path d='M17 12h5'/></svg>"); }   /* 11/15: cordless calculator (spring) */
html.atlas .menubar a[href="/cs"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 14v-2a8 8 0 0116 0v2'/><rect x='3' y='13' width='4' height='6' rx='1.5'/><rect x='17' y='13' width='4' height='6' rx='1.5'/><path d='M19 19v.5a2.5 2.5 0 01-2.5 2.5H13'/></svg>"); }   /* 11/10: customer service (headset) */
html.atlas .menubar a[href="/parts"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z'/></svg>"); }   /* 11/10: parts stock (wrench) */
html.atlas .menubar a[href="/orders/duplicates"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='8' y='8' width='12' height='12' rx='2'/><path d='M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2'/></svg>"); }   /* 11/10: suspected duplicates (two copies) */
html.atlas .menubar a[href="/warranty"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z'/><path d='M14 2v5a1 1 0 0 0 1 1h5'/><path d='m9 15 2 2 4-4'/></svg>"); }
html.atlas .menubar a[href="/admin"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 00.3 1.8l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.8-.3 1.7 1.7 0 00-1 1.5V21a2 2 0 11-4 0v-.1a1.7 1.7 0 00-1.1-1.5 1.7 1.7 0 00-1.8.3l-.1.1a2 2 0 11-2.8-2.8l.1-.1a1.7 1.7 0 00.3-1.8 1.7 1.7 0 00-1.5-1H3a2 2 0 110-4h.1a1.7 1.7 0 001.5-1.1 1.7 1.7 0 00-.3-1.8l-.1-.1a2 2 0 112.8-2.8l.1.1a1.7 1.7 0 001.8.3H9a1.7 1.7 0 001-1.5V3a2 2 0 114 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.8-.3l.1-.1a2 2 0 112.8 2.8l-.1.1a1.7 1.7 0 00-.3 1.8V9a1.7 1.7 0 001.5 1H21a2 2 0 110 4h-.1a1.7 1.7 0 00-1.5 1z'/></svg>"); }

/* ---------- top bar: where am I · notifications ---------- */
html.atlas .sb-crumb { display: flex; align-items: center; gap: 6px; min-width: 0; margin-right: 16px; font-size: 13px; color: var(--ink3); white-space: nowrap; }
html.atlas .sb-crumb i { font-style: normal; color: var(--ink3); }
html.atlas .sb-crumb b { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
html.atlas .sb-bell-wrap { position: relative; margin-left: auto; margin-right: 8px; flex-shrink: 0; }
html.atlas .sb-bell { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink2); cursor: pointer; }
html.atlas .sb-bell svg { width: 19px; height: 19px; }
html.atlas .sb-bell b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px;
  background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
html.atlas .sb-bell-panel { position: absolute; right: 0; top: 44px; width: 260px; z-index: 70; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(36,43,74,.18); padding: 6px; }
html.atlas .sb-bell-panel .h { font-size: 12px; font-weight: 700; color: var(--ink3); padding: 6px 10px 4px; }
html.atlas .sb-bell-panel a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; }
html.atlas .sb-bell-panel a:hover { background: var(--row-hover); }
html.atlas .sb-bell-panel a b { min-width: 22px; padding: 0 6px; border-radius: 5px; background: var(--err-bg); color: var(--t-red); text-align: center; font-size: 12px; line-height: 20px; }
html.atlas .sb-bell-panel .e { margin: 4px 10px 8px; color: var(--ink3); font-size: 13px; }
html.atlas .topbar .global-search { margin-right: 0; }
@media (max-width: 1100px) { html.atlas .sb-crumb { display: none; } }

/* ---------- light / dark / system (bottom of the side menu, every screen size) ---------- */
html.atlas .sb-foot { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding: 14px 4px 4px; border-top: 1px solid rgba(255,255,255,.08); }
html.atlas .sb-theme { display: flex; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; overflow: hidden; }
html.atlas .menubar .sb-theme a { flex: 1; display: flex; align-items: center; justify-content: center; height: 30px; min-height: 0; padding: 0 4px !important;
  font-size: 12px; color: var(--nav-ink) !important; text-decoration: none; border: 0 !important; border-radius: 0 !important; background: transparent; white-space: nowrap; }
html.atlas .menubar .sb-theme a + a { border-left: 1px solid rgba(255,255,255,.12) !important; }
html.atlas .menubar .sb-theme a.active { background: rgba(255,255,255,.16) !important; color: #fff !important; }
html.atlas .sb-acct { display: none; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 1000px) {
  html.atlas .sb-acct { display: flex; }
  html.atlas .sb-bell-wrap { margin-right: 0; }
  html.atlas .sb-bell-panel { position: fixed; right: 10px; top: 54px; width: min(300px, calc(100vw - 20px)); }
}

/* ---------- '오늘' (guide dashboard, from the Hub's own data) ---------- */
html.atlas .at-kpi.at-bad .at-n { color: var(--t-red); }
html.atlas .at-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0 0 14px; }
html.atlas .at-strip > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 16px; }
html.atlas .at-strip > div + div { border-left: 1px solid var(--line); }
html.atlas .at-strip .at-l { font-size: 12.5px; color: var(--ink3); font-weight: 650; width: 100%; }
html.atlas .at-strip b { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
html.atlas .at-strip b.w { color: var(--t-warn); } html.atlas .at-strip b.g { color: var(--t-ok); }
html.atlas .at-strip .at-s { font-size: 12px; color: var(--ink3); }
html.atlas .at-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
html.atlas .at-seg button { border: 0; background: var(--panel); color: var(--ink2); font: inherit; font-size: 12.5px; padding: 4px 12px; cursor: pointer; }
html.atlas .at-seg button + button { border-left: 1px solid var(--line); }
html.atlas .at-seg button.on { background: var(--accent-solid); color: #fff; }
html.atlas .at-unit { margin: 2px 0 0; }
html.atlas .at-bars[hidden] { display: none; }
html.atlas .at-empty { margin: 18px 0; color: var(--ink3); font-size: 13.5px; text-align: center; width: 100%; align-self: center; }
html.atlas .at-pr { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px; align-items: center; gap: 10px; margin: 12px 0; }
html.atlas .at-pr .nm { font-size: 13.5px; color: var(--ink2); }
html.atlas .at-pr .bar { height: 10px; border-radius: 5px; background: var(--panel2); border: 1px solid var(--line2); overflow: hidden; }
html.atlas .at-pr .bar i { display: block; height: 100%; border-radius: 5px; background: var(--chart); }
html.atlas .at-pr .bar i.k-o { background: #A7AEC6; } html.atlas .at-pr .bar i.k-s { background: var(--chart2); } html.atlas .at-pr .bar i.k-x { background: var(--amber); } html.atlas .at-pr .bar i.k-d { background: var(--ok); }
html.atlas .at-pr .v { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
html.atlas .at-wl-n { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 8px; }
html.atlas .at-wl-n a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2);
  color: var(--ink2); font-size: 12px; text-decoration: none; }
html.atlas .at-wl-n a b { font-size: 18px; color: var(--ink); } html.atlas .at-wl-n a b.bad { color: var(--t-red); }
html.atlas .at-wl { width: 100%; font-size: 13px; border-collapse: collapse; }
html.atlas .at-wl td { padding: 6px 4px; border-top: 1px solid var(--line2); }
html.atlas .at-wl td.nm { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0; width: 100%; }
html.atlas .at-wl b.bad { color: var(--t-red); }
html.atlas .at-recent { margin: 0 0 16px; }
@media (max-width: 1000px) { html.atlas .at-strip { grid-template-columns: 1fr; } html.atlas .at-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  html.atlas .at-wl-n { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* money: each source and all together (이사 · CEO) */
html.atlas .at-money { margin: 0 0 14px; }
html.atlas .at-mt td, html.atlas .at-mt th { padding: 9px 12px; }
html.atlas .at-mt td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
html.atlas .at-mt td.w { color: var(--t-warn); } html.atlas .at-mt td.g { color: var(--t-ok); }
html.atlas .at-mt tr.at-tot td { font-weight: 700; border-top: 2px solid var(--line); background: var(--panel2); }
html.atlas .at-mt .at-err { color: var(--t-red); }
html.atlas .at-note { margin: 8px 2px 0; }
html.atlas .at-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }
html.atlas .s-bld { background: var(--chart); } html.atlas .s-dlr { background: var(--chart2); } html.atlas .s-web { background: var(--amber); }
html.atlas .at-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink2); }
html.atlas .at-bars.money .at-fill.at-stack { background: transparent; display: flex; flex-direction: column; overflow: visible; }
html.atlas .at-fill.at-stack > i { display: block; width: 100%; }
html.atlas .at-fill.at-stack > i:first-of-type { border-radius: 4px 4px 0 0; }
html.atlas .at-pr .bar i.k-f { background: var(--chart); }
@media (max-width: 640px) {
  /* phone: the money table becomes one small card per source (4 numbers in 2 × 2) */
  html.atlas .at-mt thead { display: none; }
  html.atlas .at-mt, html.atlas .at-mt tbody { display: block; }
  html.atlas .at-mt tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
  html.atlas .at-mt td { padding: 0 !important; border: 0 !important; background: transparent !important; text-align: left !important; }
  html.atlas .at-mt td:first-child, html.atlas .at-mt td[colspan] { grid-column: 1 / -1; font-weight: 650; }
  html.atlas .at-mt td[colspan] { font-weight: 500; color: var(--ink3); }
  html.atlas .at-mt td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 500; color: var(--ink3); }
  html.atlas .at-mt tr.at-tot { background: var(--panel2); border-radius: 8px; padding: 10px; border: 0; margin-top: 6px; }
  html.atlas .at-money .table-wrap { border: 0 !important; box-shadow: none !important; overflow: visible; }
  html.atlas .sb-bell-wrap { margin-right: 6px; }
}

/* ---------- 11/08 Aaron ---------- */
/* the SB mark is black on transparent: white on the side menu; on the phone top bar it follows the theme */
html.atlas .menubar .sb-brand img { filter: brightness(0) invert(1); width: 26px; height: 26px; }
@media (prefers-color-scheme: dark) { html.atlas .topbar .brand-mark { filter: brightness(0) invert(1); } }
/* the bell sits at the right with the account buttons, not in the middle of the bar */
html.atlas .topbar .sb-bell-wrap ~ .top-right { margin-left: 0; }
html.atlas .topbar .sb-bell-wrap { margin-right: 4px; }
/* KPI cards: a small icon tile on the soft accent */
html.atlas .at-kpi { position: relative; padding-left: 64px; min-height: 92px; }
html.atlas .at-kpi::before { content: ""; position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); }
html.atlas .at-kpi::after { content: ""; position: absolute; left: 25px; top: 25px; width: 18px; height: 18px; background: var(--accent);
  -webkit-mask: var(--kic) center / contain no-repeat; mask: var(--kic) center / contain no-repeat; }
html.atlas .at-kpi { --kic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='4' width='14' height='17' rx='2'/><path d='M9 9h6M9 13h6M9 17h3'/></svg>"); }
html.atlas .at-kpi[href="#at-money"] { --kic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18M16.5 7.5c0-1.7-2-3-4.5-3s-4.5 1.3-4.5 3 2 2.6 4.5 3 4.5 1.4 4.5 3.3-2 3.2-4.5 3.2-4.5-1.4-4.5-3.2'/></svg>"); }
html.atlas .at-kpi[href="/board"] { --kic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='16' rx='2'/><path d='M8 3v4M16 3v4M4 10h16'/></svg>"); }
html.atlas .at-kpi[href^="/stock"] { --kic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><path d='M12 5v9M12 19v.5'/></svg>"); }
html.atlas .at-kpi[href^="/receiving"] { --kic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7l9-4 9 4v10l-9 4-9-4z'/><path d='M3 7l9 4 9-4M12 11v10'/></svg>"); }
html.atlas .at-kpi.at-bad::before { background: var(--err-bg); } html.atlas .at-kpi.at-bad::after { background: var(--t-red); }
html.atlas .at-kpi.at-warn::before { background: var(--warn-bg); } html.atlas .at-kpi.at-warn::after { background: var(--t-warn); }
@media (max-width: 640px) { html.atlas .at-kpi { padding-left: 14px; padding-top: 58px; min-height: 0; } html.atlas .at-kpi::before { left: 14px; top: 14px; } html.atlas .at-kpi::after { left: 23px; top: 23px; } }
/* phone: no half-empty rows — a field alone on its row takes the whole row, buttons share their row evenly */
@media (max-width: 760px) {
  html.atlas .filter-bar { display: flex !important; flex-wrap: wrap; gap: 8px; align-items: stretch; }
  html.atlas .filter-bar > * { flex: 1 1 calc(50% - 4px); min-width: 0; width: auto !important; max-width: none !important; margin: 0; }
  html.atlas .filter-bar > input[type=text], html.atlas .filter-bar > input[type=search],
  html.atlas .filter-bar > .inline-label, html.atlas .filter-bar > .segmented { flex-basis: 100%; }
  html.atlas .filter-bar > .btn { flex: 1 1 calc(33.33% - 6px); justify-content: center; white-space: nowrap; padding-left: 4px; padding-right: 4px; }
  html.atlas .filter-bar > input[type=hidden], html.atlas .filter-bar > span:not(.inline-label):not(.segmented):not(.check) { display: none; }
  html.atlas .filter-bar > .check { display: flex; align-items: center; min-height: 34px; }
  html.atlas .doc-tools { display: flex; gap: 8px; }
  html.atlas .doc-tools > .btn { flex: 1 1 0; justify-content: center; }
  /* 영업 (table app): the table picker fills its row with + at the end, the view picker fills its row, 더보기 spans the row */
  html.atlas .sm-entry { display: flex; } html.atlas .sm-entry > .btn { flex: 1 1 auto; justify-content: center; }
  html.atlas .sb-tabs { display: flex; align-items: center; gap: 8px; } html.atlas .sb-tabs > select { flex: 1 1 auto; min-width: 0; }
  html.atlas .sb-side select { width: 100%; }
  html.atlas .filter-bar > script { display: none; }
  html.atlas .filter-bar > .check { flex: 1 1 calc(50% - 4px) !important; }
  html.atlas .filter-bar > .stk-checks { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; min-height: 34px; }
  /* page-top buttons (새 주문 · 지난 주문 · 더보기 …) share their rows instead of leaving a gap at the end */
  html.atlas .page-head > .toolbar { width: 100%; }
  html.atlas .page-head > .toolbar > .btn, html.atlas .page-head > .toolbar > .more-menu { flex: 1 1 auto; justify-content: center; }
  html.atlas .page-head > .toolbar > .more-menu > .btn { width: 100%; justify-content: center; }
  /* filter chips: a chip row stretches to the edge instead of stopping short */
  html.atlas .status-chips { display: flex; flex-wrap: wrap; }
  html.atlas .status-chips > a, html.atlas .status-chips > .nav-group, html.atlas .status-chips > span { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* 11/08 check 2 ---------- */
/* Korean words never split in the middle in tables ('공급처' not '공급 / 처') */
html.atlas td, html.atlas th { word-break: keep-all; }
/* a left colour bar keeps a straight left edge (schedule events and the legend looked like '(') */
html.atlas .bd-ev { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
/* PC filter rows: every field grows, so no row stops short (a row of buttons alone shares the row evenly) */
@media (min-width: 761px) {
  html.atlas .filter-bar > :is(input[type=text], input[type=search], input[type=date], select, .check, .stk-checks, .inline-label, .btn) { flex: 1 1 auto; }
  html.atlas .filter-bar > :is(input[type=text], input[type=search]) { flex-basis: 200px; max-width: none !important; }
  html.atlas .filter-bar > .btn { justify-content: center; min-width: 84px; }
  html.atlas .filter-bar > .stk-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  /* 입출고내역: the totals and 모두 펼치기 / 접기 on one line */
  html.atlas .doc-totals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 28px; padding-right: 210px; }
  html.atlas .doc-totals + .doc-tools { display: flex; justify-content: flex-end; gap: 6px; margin-top: -28px; pointer-events: none; }
  html.atlas .doc-totals + .doc-tools > * { pointer-events: auto; }
}
@media (max-width: 760px) { html.atlas .upload-row > .btn, html.atlas .up + .btn { flex: 1 1 100%; width: 100%; justify-content: center; } }
/* building overview: its fixed light reds follow the theme (dark mode had a bright pink box and dim red text) */
html.atlas .ov-bill.bad { background: var(--err-bg); color: var(--t-red); }
html.atlas .bs-card.bad .v, html.atlas .ov .bs-t td.bad, html.atlas .ov .ov-bt tr.late td { color: var(--t-red); }
html.atlas .bs-card.ok .v { color: var(--t-ok); }
/* 설정: the status tiles fill the row instead of stopping at 900px */

/* 11/09 Aaron 'HUB 로고가 너무 오른쪽에 붙어 있어 — 두 줄로': SPRINGBLINDS / HUB, room on the right */
html.atlas .menubar .sb-brand { gap: 10px; padding-left: 18px !important; }
html.atlas .menubar .sb-brand b, html.atlas .menubar .sb-brand b { display: flex; flex-direction: column; line-height: 1; font-size: 17px; letter-spacing: -0.6px; }
html.atlas .menubar .sb-brand .sbb-2 { font-size: 10.5px; letter-spacing: 4.2px; margin-top: 4px; font-weight: 700; }
html.atlas .menubar .sb-brand img { width: 28px; height: 28px; }
@media (max-width: 1500px) and (min-width: 1001px) { html.atlas .menubar .sb-brand b { font-size: 16px; letter-spacing: -0.5px; } }
/* 11/09 Aaron: TEAM — letters together, bold, closer to SPRINGBLINDS; sidebar a little wider (216 -> 236, small PC 200 -> 220) */
html.atlas .menubar .sb-brand .sbb-2 { font-size: 13px; letter-spacing: 0; font-weight: 800; margin-top: 1px; color: #C9CED4; }
/* 11/09 Aaron: the words start a little below the mark's top and end the same distance above its bottom (mark 32px, words centred) */
html.atlas .menubar .sb-brand img { width: 32px; height: 32px; }
/* 11/09 Aaron: side-menu groups fold / open — the group name is a button with a chevron (no pills) */
html.atlas .menubar .nav-group.foldable > .nav-btn { pointer-events: auto; cursor: pointer; border-radius: 6px !important; }
html.atlas .menubar .nav-group.foldable > .nav-btn:hover { color: #fff !important; background: var(--nav-hover) !important; }
html.atlas .menubar .nav-group.foldable > .nav-btn::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  flex: 0 0 7px; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; opacity: .8; }
html.atlas .menubar .nav-group.foldable.folded > .nav-btn::after { transform: rotate(-45deg); }
html.atlas .menubar .nav-group.foldable > .nav-btn .nav-count { order: 2; margin-left: auto; }
html.atlas .menubar .nav-group.foldable > .nav-btn .nav-count + * { margin-left: 8px; }
html.atlas .menubar .nav-group.foldable > .nav-btn:has(.nav-count)::after { margin-left: 8px; order: 3; }
html.atlas .menubar .nav-group.folded > .nav-menu { display: none !important; }
/* pinned menus (CEO / 이사) */
html.atlas .menubar .nav-pins { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
html.atlas .menubar .nav-pins .np-head { display: flex; align-items: center; height: 30px; padding: 0 4px 0 12px; color: var(--nav-label); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
html.atlas .menubar .nav-pins .np-edit { margin-left: auto; height: 24px; padding: 0 8px; border: 1px solid rgba(255,255,255,.16) !important; border-radius: 5px !important; background: transparent !important;
  color: var(--nav-ink) !important; font-size: 11.5px; font-weight: 600; cursor: pointer; }
html.atlas .menubar .nav-pins .np-edit:hover { background: var(--nav-hover) !important; color: #fff !important; }
html.atlas.np-editing .menubar .nav-pins .np-edit { background: var(--nav-bar) !important; color: #1B1D20 !important; border-color: var(--nav-bar) !important; }
html.atlas .menubar .nav-pins .np-empty { padding: 2px 12px 4px; color: var(--nav-label); font-size: 12px; line-height: 1.4; }
html.atlas .menubar .nav-pins a.np-here { color: #fff !important; }
html.atlas .menubar .np-star { margin-left: auto; padding-left: 8px; font-size: 14px; line-height: 1; color: var(--nav-label); }
html.atlas .menubar .np-star.on { color: var(--nav-bar); }
html.atlas .menubar a .nav-count ~ .np-star { margin-left: 8px; }
html.atlas .menubar .nav-pins .np-list { gap: 1px; }
/* 11/09 Aaron: the edit control out of sight — pencil only on hover (PC), faint on touch screens; '☆ 메뉴 고정' at the bottom when nothing is pinned */
html.atlas .menubar .nav-pins[hidden] { display: none !important; }
html.atlas .menubar .nav-pins .np-edit:not(.np-done) { width: 26px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; opacity: 0; transition: opacity .12s; }
html.atlas .menubar .nav-pins .np-edit:not(.np-done) svg { width: 14px; height: 14px; }
html.atlas .menubar .nav-pins:hover .np-edit, html.atlas .menubar .nav-pins .np-edit:focus-visible { opacity: 1; }
@media (hover: none) { html.atlas .menubar .nav-pins .np-edit:not(.np-done) { opacity: .55; } }
html.atlas .menubar .sb-foot .np-foot { height: 30px; border: 1px dashed rgba(255,255,255,.2) !important; border-radius: 6px !important; background: transparent !important; color: var(--nav-ink) !important; font-size: 12.5px; cursor: pointer; }
html.atlas .menubar .sb-foot .np-foot:hover { background: var(--nav-hover) !important; color: #fff !important; }
html.atlas .menubar .sb-foot .np-foot[hidden] { display: none !important; }
/* 11/09 Aaron: pinned box stands apart; folded groups look folded; logo stays on top */
html.atlas .menubar .sb-brand { position: sticky; top: 0; z-index: 3; background: var(--nav) !important; }
html.atlas .menubar .nav-pins { margin: 10px 0 8px; padding: 4px 4px 6px; border: 0 !important; border-radius: 8px; background: rgba(255,255,255,.06); box-shadow: none; }
html.atlas .menubar .nav-pins .np-head { color: var(--nav-bar) !important; padding-left: 8px; }
html.atlas .menubar .nav-pins .np-list a { padding-left: 8px !important; }
html.atlas .menubar .nav-pins a.np-here { background: var(--nav-active) !important; color: #fff !important; font-weight: 650 !important; box-shadow: inset 3px 0 0 var(--nav-bar); }
/* big categories: the only button-like rows; the small group names inside stay plain labels */
html.atlas .menubar .nav-cat { margin: 6px 0 2px; }
html.atlas .menubar .nav-cat > .nc-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 12px; border: 0 !important; border-radius: 7px !important;
  background: transparent !important; color: #fff !important; font: 700 13.5px var(--font);   /* 11/10 Aaron: no button-like shade */ letter-spacing: -.01em; cursor: pointer; text-align: left; }
html.atlas .menubar .nav-cat > .nc-btn:hover { background: var(--nav-hover) !important; }
html.atlas .menubar .nav-cat > .nc-btn .nc-n { display: none; padding: 0 6px; line-height: 17px; border-radius: 4px; background: rgba(255,255,255,.12); color: var(--nav-ink); font-size: 11px; font-weight: 600; }
html.atlas .menubar .nav-cat.shut > .nc-btn .nc-n { display: inline-block; }
html.atlas .menubar .nav-cat > .nc-btn .nc-badge { display: none; margin-left: auto; }
html.atlas .menubar .nav-cat.shut > .nc-btn .nc-badge { display: inline-block; }
html.atlas .menubar .nav-cat > .nc-btn::after { content: ""; margin-left: auto; flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); opacity: .75; }
html.atlas .menubar .nav-cat.shut > .nc-btn::after { transform: rotate(-45deg); }
html.atlas .menubar .nav-cat.shut > .nc-btn .nc-badge + * , html.atlas .menubar .nav-cat > .nc-btn .nc-badge { order: 2; }
html.atlas .menubar .nav-cat.shut > .nc-btn:has(.nc-badge)::after { margin-left: 8px; order: 3; }
html.atlas .menubar > .nc-item.nc-hide:not(.sb-brand) { display: none !important; }
html.atlas .menubar .nav-cat + .nc-item { margin-top: 4px; }
/* 11/09 Aaron '스크롤 다운하니까 겹친다': the drop-down menus' old z-index (50) put them over the sticky logo; the logo keeps its colour on hover */
html.atlas .menubar .nav-menu { z-index: auto !important; }
html.atlas .menubar .sb-brand, html.atlas .menubar .sb-brand:hover { z-index: 5; background: var(--nav) !important; }
/* settings: the three design buttons on one line, same top */
html.atlas #ui-design .upload-row { align-items: center !important; }
html.atlas #ui-design .upload-row > form { display: inline-flex !important; margin: 0; }
html.atlas #ui-design .upload-row .btn { margin: 0 !important; vertical-align: top; }
html.atlas .menubar .nav-cat.shut > .nc-btn .nc-badge { display: inline-flex; }
/* 11/09 Aaron '파일 선택 버튼과 올리기 버튼 높이가 달라': the button next to an upload box sits on the same line as 파일 선택 */
html.atlas .upload-row:has(> .up), html.atlas form:has(> .up) { align-items: center; }
html.atlas .upload-row > .btn, html.atlas form:has(> .up) > .btn { margin-top: 0; }
html.atlas .up-pick, html.atlas .upload-row > .btn, html.atlas form:has(> .up) > .btn { height: 34px; }
/* 11/09: the 추가 button as tall as the scan box next to it (입고·출고 등록) */
html.atlas .scan-row #scan-add { height: 40px; }
/* 11/09 alignment sweep */
/* order list: the tick box and the ▸ button the same size, on one line */
html.atlas .pick-wrap { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
html.atlas .pick-wrap .prod-pick { width: 20px; height: 20px; margin: 0; }
html.atlas .pick-wrap .expander { width: 20px; height: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
/* search rows (PC): the search box takes the room, buttons keep their own width — no stretched 검색 / 초기화 */
@media (min-width: 761px) {
  html.atlas .filter-bar > :is(input[type=text], input[type=search]) { flex: 3 1 260px; }
  html.atlas .filter-bar > select { flex: 1 1 180px; }
  html.atlas .filter-bar > .btn { flex: 0 0 auto; min-width: 96px; padding-left: 16px; padding-right: 16px; }
}
/* a small button right after a date box: as tall as the box */
html.atlas form input[type=date] + .btn-xs { height: 34px; }


html.atlas .sb-foot .sb-lang a.active { background: rgba(255,255,255,.16) !important; }
/* links inside tables: charcoal, a step bolder (11/09 '보라색 글씨가 문제') — underline on hover */
html.atlas table td a:not(.btn) { font-weight: 600; }
html.atlas table td a:not(.btn):hover { text-decoration: underline; }
/* 11/09 Aaron '뱃지 정렬이 이상': badge digits in Arial bold (same on Windows and phones) — measured, the digits sat ~1.5px high
   in an 18px box, so 2px on top (text snaps to whole pixels; this leaves at most half a pixel) */
html.atlas .nav-count, html.atlas .sb-bell b {
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif !important; font-weight: 700 !important; font-size: 11px !important;
  display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 18px;
  padding: 1px 5px 0 !important; line-height: 1 !important; box-sizing: border-box; letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* 11/09: the grey menu-count chips next to 재고 / 영업·일정 / 주문 — same Arial digits and centring as the red badges */
html.atlas .menubar .nav-cat > .nc-btn .nc-n {
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif !important; font-weight: 700; font-size: 11px;
  align-items: center; justify-content: center; height: 18px; min-width: 18px; padding: 1px 5px 0; line-height: 1; box-sizing: border-box; }
html.atlas .menubar .nav-cat.shut > .nc-btn .nc-n { display: inline-flex; }
/* 11/09 Aaron (입출고내역: 출고 and 조정 both grey after Graphite): 입고 = green · 출고 = amber · 이동 = charcoal outline ·
   조정 = grey fill — each with its word, as the design guide asks for states */
html.atlas .badge.out, html.atlas .status.st-outbound { background: var(--warn-bg) !important; color: var(--t-warn) !important; box-shadow: none; }
html.atlas .badge.transfer { background: var(--panel) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
html.atlas .badge.adjust { background: var(--st-grey-bg) !important; color: var(--ink2) !important; }
html.atlas .badge.in { color: var(--t-ok) !important; }
/* 11/09 Aaron '메뉴가 잘린다' (English: 'Building Estimates · Invoices'): a long menu name goes on two lines instead of '…' */
html.atlas .menubar > a:not(.sb-brand), html.atlas .menubar .nav-menu a {
  white-space: normal !important; height: auto !important; min-height: 36px; line-height: 1.25; padding-top: 7px !important; padding-bottom: 7px !important; text-overflow: clip; }

/* 11/09 Aaron '설정쪽 정리 · 상태칸도 크기 정렬': status in three labelled rows of same-size cards; the page one width */
html.atlas .set-status-wrap { max-width: 1140px; margin: 4px 0 6px; display: grid; gap: 10px; }
html.atlas .set-sg { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
html.atlas .set-sgl { font-size: 12px; font-weight: 650; color: var(--ink3); letter-spacing: .02em; }
html.atlas .set-status { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: none; margin: 0; }
html.atlas .set-status > .st { flex: none; min-height: 58px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
html.atlas .set-status > .st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.atlas .set-else { max-width: 1140px; margin: 2px 0 10px 108px; }
html.atlas .settings-tabs, html.atlas .set-card { max-width: 1140px; }
@media (max-width: 1100px) { html.atlas .set-status { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  html.atlas .set-sg { grid-template-columns: 1fr; gap: 4px; }
  html.atlas .set-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.atlas .set-else { margin-left: 0; }
}

/* 11/10 Aaron '눈에 잘 안띄는데' → A, '너무 강한 색은 말고': each order state its own soft colour —
   접수 = soft amber (still to be worked on) · 진행중 = soft blue · 완료 = soft green · 취소 = faint grey.
   Order list, filter chips, pickers, duplicates page. 입출고내역 keeps its own meaning of st-open (입고). */
html.atlas .status.st-new, html.atlas .status.st-open, html.atlas .status-chips .st-open { background: #FAEBD5 !important; color: #8A5212 !important; box-shadow: none !important; font-weight: 600; }
html.atlas .status.st-in_progress, html.atlas .status.st-progress, html.atlas .status-chips .st-progress { background: #DFE9F5 !important; color: #24507E !important; box-shadow: none !important; font-weight: 600; }
html.atlas .status.st-done, html.atlas .status.st-closed, html.atlas .status-chips .st-closed { background: #DFF0E5 !important; color: #23683F !important; box-shadow: none !important; font-weight: 600; }
html.atlas .status-chips a.active.st-open, html.atlas .status-chips a.active.st-progress, html.atlas .status-chips a.active.st-closed { background: var(--accent-solid) !important; color: #fff !important; }
html.atlas body[data-page="moves"] .status.st-open { background: var(--ok-bg) !important; color: var(--t-ok) !important; }
@media (prefers-color-scheme: dark) {
  /* dark: a see-through tint + coloured word (no muddy solid fill) */
  html.atlas .status.st-in_progress, html.atlas .status.st-progress, html.atlas .status-chips .st-progress { background: rgba(108, 160, 232, .15) !important; color: #9DC2F2 !important; box-shadow: none !important; }
  html.atlas .status.st-done, html.atlas .status.st-closed, html.atlas .status-chips .st-closed { background: rgba(84, 190, 128, .14) !important; color: #86D6A6 !important; box-shadow: none !important; }
  html.atlas .status-chips a.active.st-open, html.atlas .status-chips a.active.st-progress, html.atlas .status-chips a.active.st-closed { background: var(--accent-solid) !important; color: #fff !important; box-shadow: none !important; }
  html.atlas body[data-page="moves"] .status.st-open { background: var(--ok-bg) !important; color: var(--t-ok) !important; box-shadow: none !important; }
}
/* 11/10 Aaron '다크로 하니까 비고의 글자가 아예 안보이네': the memo cell keeps its pale yellow in light; in dark a faint lighter panel, normal text and a thin amber line on the left */
@media (prefers-color-scheme: dark) {
  html.atlas td.remark-cell.has-remark { background: rgba(255, 255, 255, .045) !important; color: var(--ink) !important; box-shadow: inset 3px 0 0 rgba(245, 188, 116, .55); }
}

/* 11/10 Aaron '저 똥색들 좀 어떻게 해줘' (dark): the amber / red / green backgrounds were solid muddy browns (#362C1C ...).
   In dark they are now see-through tints over the charcoal, the same family as the order states — every page that uses them follows. */
@media (prefers-color-scheme: dark) {
  html.atlas .scan-row #scan { background: var(--panel2) !important; border-color: var(--accent-line) !important; }   /* scan box: no yellow, grey edge */
  html.atlas .pill.bad, html.atlas .cs-kind.problem { background: var(--err-bg) !important; color: #F4A6A3 !important; }
  html.atlas .cs-kind.ship { background: rgba(108, 160, 232, .15) !important; color: #9DC2F2 !important; }
  html.atlas .cs-kind.question { background: var(--ok-bg) !important; color: #86D6A6 !important; }
  html.atlas .cs-kind.order { background: var(--warn-bg) !important; color: var(--t-warn) !important; }
}
/* 11/10 Aaron '제품 문제 배지를 합계 다름 색으로': same red as the 합계 다름 badge (light) */
html.atlas .cs-kind.problem { background: #fde3e3; color: #b42318; }
/* 11/10 Aaron '모양 통일': every small label is one shape — 5px corners, flat fill, no outline. Sizes may differ. */
html.atlas .status, html.atlas .kind, html.atlas .badge, html.atlas .pill, html.atlas .check-tag, html.atlas .chip, html.atlas .tag,
html.atlas .cs-kind, html.atlas .new-tag, html.atlas .dup-tags .chip, html.atlas .bp-type, html.atlas .cb-tag {
  border-radius: 5px !important; border: 0 !important; }
html.atlas .dup-tags .chip { color: var(--ink2); }                 /* '유닛 같음' was dark text on the dark panel */
html.atlas :where(.cs-kind) { background: var(--panel2); }   /* default only; the kind colours win
*/ html.atlas .cs-kind { padding: 2px 8px; font-weight: 600; }
/* 11/10 the last hard-coded dark browns (style.css / Work Sheet code table / calendar): same see-through tints */
@media (prefers-color-scheme: dark) {
  html.atlas .kpi-t.out { background: rgba(245, 166, 70, .12) !important; }
  html.atlas .prodc tr.pc-warnrow td { background: rgba(245, 166, 70, .10) !important; }
  html.atlas .pl-ev.k-appt { background: rgba(245, 166, 70, .16) !important; color: #F5BC74 !important; }
}
/* 11/10 Aaron '라이트모드 비고칸도 바꾸자': light memo cell = faint cream + the same thin amber line on the left as dark */
html.atlas td.remark-cell.has-remark { background: #FFFCF4; }
/* 11/10 Aaron '똥색 ㅋㅋㅋ' (dark 접수): see-through orange over charcoal still reads brown — so in dark every amber thing
   gets a neutral grey-glass fill and only the word stays amber (접수, 출고, 주의 숫자, 품목 일부 같음 …). */
@media (prefers-color-scheme: dark) {
  html.atlas .status.st-new, html.atlas .status.st-open, html.atlas .status-chips .st-open { background: rgba(255, 255, 255, .08) !important; color: #F7C27E !important; }
  html.atlas .kpi-t.out, html.atlas .prodc tr.pc-warnrow td { background: rgba(255, 255, 255, .05) !important; }
  html.atlas .pl-ev.k-appt { background: rgba(255, 255, 255, .08) !important; color: #F7C27E !important; }
}
/* 11/10 Aaron '배경색 때문에 지금 주문이 티가 잘 안나' (발주 추천): the red row wash hid the red badge — no row wash,
   a thin red line at the row start instead, and the badge = the 합계 다름 red */
html.atlas tr.ro-urgent td { background: transparent !important; }
html.atlas tr.ro-urgent td:first-child { box-shadow: inset 3px 0 0 #D9534F; }
html.atlas .status.st-urgent { background: #fde3e3 !important; color: #b42318 !important; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  html.atlas .status.st-urgent { background: rgba(228, 106, 102, .24) !important; color: #F8B4B1 !important; }
  html.atlas tr.ro-urgent td:first-child { box-shadow: inset 3px 0 0 #E46A66; }
}
/* 11/10 Aaron '배경이 들어가는 부분 전부 발주 추천처럼 (라이트·다크 다)': rows / boxes that were washed with a state colour
   now keep the normal background and show the state as a thin coloured line at the start — red = 문제·부족,
   amber = 주의·다름, green = 됨. Selection / group / total rows (grey) stay as they are. */


html.atlas tr.low-stock td, html.atlas .doc-lines tr.over td, html.atlas .rcv-table tr.miss td, html.atlas tr.ro-urgent td,
html.atlas .dup-cmp tr.dup-diff td, html.atlas table.apt-table tr.unit-line.hit td, html.atlas .prodc tr.pc-warnrow td,
html.atlas tr.aic-bad td, html.atlas tr.di-rw td, html.atlas .dp-t tr.on td, html.atlas #pick-body tr.added td { background: transparent !important; }
html.atlas #pick-body tr.added { background: transparent !important; }
html.atlas tr.low-stock td:first-child, html.atlas .doc-lines tr.over td:first-child, html.atlas .rcv-table tr.miss td:first-child,
html.atlas tr.ro-urgent td:first-child { box-shadow: inset 3px 0 0 var(--line-red) !important; }
html.atlas .dup-cmp tr.dup-diff td:first-child, html.atlas table.apt-table tr.unit-line.hit td:first-child, html.atlas .prodc tr.pc-warnrow td:first-child,
html.atlas tr.aic-bad td:first-child, html.atlas tr.di-rw td:first-child { box-shadow: inset 3px 0 0 var(--line-amber) !important; }
html.atlas .dp-t tr.on td:first-child, html.atlas #pick-body tr.added td:first-child { box-shadow: inset 3px 0 0 var(--line-green) !important; }
html.atlas td.remark-cell.has-remark { box-shadow: inset 3px 0 0 var(--line-amber) !important; }
/* the 오늘 alert tiles: same panel as the calm ones + the state line */
html.atlas .b-alert-list .red a, html.atlas .b-alert-list .amber a { background: var(--panel2) !important; }
html.atlas .b-alert-list .red a { box-shadow: inset 3px 0 0 var(--line-red); }
html.atlas .b-alert-list .amber a { box-shadow: inset 3px 0 0 var(--line-amber); }
/* phone cards: a low-stock card keeps the normal card colour with a red line on the left */
@media (max-width: 640px) { html.atlas table.m-cards > tbody > tr.low-stock { background: var(--panel) !important; box-shadow: inset 3px 0 0 var(--line-red); } }
/* 11/10 Aaron '전부 꽉차게': every page uses the whole width next to the side menu (no 1560px / 1140px / 1400px cap,
   which left some pages narrow with empty space on the right). */
html.atlas main { max-width: none !important; }
html.atlas .cs-kpis, html.atlas .cs-tabs, html.atlas .cs-card, html.atlas .cs-note, html.atlas main > .card[style*="max-width"],
html.atlas .cbk, html.atlas .set-status-wrap, html.atlas .set-else, html.atlas .settings-tabs, html.atlas .set-card,
html.atlas .set-group, html.atlas .set-status { max-width: none !important; }
/* 11/10 Aaron '칸이 잘려 나오네' (Work Sheet 점검): the code boxes were too narrow for codes like CCH-0… — wider boxes,
   and a too-wide table scrolls sideways instead of being cut off; the 확인 rows: the same thin amber line instead of a wash */
html.atlas .chk-t input { min-width: 74px !important; padding: 0 6px !important; }
html.atlas .chk-t th, html.atlas .chk-t td { padding-left: 6px !important; padding-right: 6px !important; }
html.atlas .chk-t td:nth-child(5) input { min-width: 108px !important; }                       /* SYS: XR-5R1A/SA */
html.atlas .chk-t td:nth-child(7) input, html.atlas .chk-t td:nth-child(9) input,
html.atlas .chk-t td:nth-child(10) input, html.atlas .chk-t td:nth-child(12) input { min-width: 56px !important; }   /* MT · DIR · TB SIZE · OPTION: short */
html.atlas .chk-t td.who { min-width: 130px !important; } html.atlas .chk-t td.ln { min-width: 150px !important; } html.atlas .chk-t td.wn { min-width: 140px !important; }
html.atlas .chk .table-wrap { overflow-x: auto !important; }
html.atlas .chk-t tr.need td, html.atlas .chk-t tbody tr.need:hover td { background: transparent !important; }
html.atlas .chk-t tr.need td:first-child { box-shadow: inset 3px 0 0 var(--line-amber) !important; }
/* 11/10 Aaron '너무 꽉차있어' / '조금 더 줄여줄래?': full width on every page with a margin around the content */
@media (min-width: 1001px) and (max-width: 1500px) { html.atlas main { padding: 28px 36px 56px !important; } }
@media (min-width: 1501px) { html.atlas main { padding: 32px 72px 64px !important; } }
/* 11/10 Aaron '아이폰에 페이지가 이상하게 보이네': on iPhone Safari the page could be dragged sideways (left part cut off) —
   the closed side panel (#peek) waits just off the right edge, and Safari counts it as page width. The closed panel is now
   hidden, and the page itself never scrolls sideways (tables keep their own sideways scroll). */
html.atlas, html.atlas body { overflow-x: clip; }
@supports not (overflow: clip) { html.atlas body { overflow-x: hidden; } }
html.atlas .peek:not(.open) { visibility: hidden; transition: transform .22s ease-out, visibility 0s linear .22s; }
html.atlas .peek.open { visibility: visible; transition: transform .22s ease-out; }
/* 11/10 Aaron '확대 되어서 보이는 거였어': iPhone Safari zooms the page in when a box with text under 16px is tapped (일정 등록
   form, search …) and stays zoomed after. On iPhone / iPad only, typing boxes use 16px text, so it never zooms. */
@supports (-webkit-touch-callout: none) {
  html.atlas input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]), html.atlas select, html.atlas textarea { font-size: 16px !important; }
}

/* 11/11 Aaron '체크 박스도 고쳐줘. 이질적이야': the browser's own checkbox (thick border, square corners) did not match the
   Hub's boxes and buttons -> drawn by the Hub: thin graphite-grey line, 4px corners, filled graphite with a white tick when on.
   The order list's tick box and its ▸ button now share the same line. */
html.atlas input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none; box-sizing: border-box; display: inline-block; vertical-align: -3px;
  width: 16px; height: 16px; margin: 0 4px 0 0; padding: 0; cursor: pointer;
  border: 1px solid var(--accent-line); border-radius: 4px; background: var(--panel) center / 12px 12px no-repeat;
  transition: background-color .12s, border-color .12s;
}
html.atlas input[type=checkbox]:hover { border-color: var(--ink3); }
html.atlas input[type=checkbox]:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 1px; }
html.atlas input[type=checkbox]:checked, html.atlas input[type=checkbox]:indeterminate { background-color: var(--accent-solid); border-color: var(--accent-solid); }
html.atlas input[type=checkbox]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html.atlas input[type=checkbox]:indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
html.atlas input[type=checkbox]:disabled { opacity: .45; cursor: default; }
html.atlas .pick-wrap .prod-pick { width: 20px; height: 20px; margin: 0; background-size: 14px 14px; vertical-align: middle; }
html.atlas .pick-wrap .expander { border-color: var(--accent-line); border-radius: 4px; }
/* 11/12 Aaron '저 비고가 너무 눈부시네 글자는 눈에 안띄고' (order 비고 banner): the same look as the 비고 cell —
   faint panel, normal text, a thin amber line on the left; only the word 비고 stays amber */
html.atlas .remark-banner { background: #FFFCF4 !important; border: 1px solid var(--line, #E3E6EA) !important; color: var(--ink) !important;
  box-shadow: inset 3px 0 0 var(--line-amber) !important; }
html.atlas .remark-banner b { color: var(--line-amber); margin-right: 6px; }
@media (prefers-color-scheme: dark) {
  html.atlas .remark-banner { background: rgba(255, 255, 255, .045) !important; border-color: rgba(255, 255, 255, .08) !important; color: var(--ink) !important; }
  html.atlas .remark-banner b { color: #F5BC74; }
}
/* 11/12 Aaron '사이드바 메뉴 간격이 다르네': a group label inside a big category (입출고, 보고서 …) takes one row like the menus
   (36px, no extra top margin), so every row in the sidebar is the same step */
html.atlas .menubar .nav-group.nc-item > .nav-btn { height: 36px !important; margin-top: 0 !important; }
/* 11/12 (phone order cards): the 비고 line is not glued to its amber bar */
@media (max-width: 640px) {
  html.atlas table.m-cards > tbody > tr > td.remark-cell.has-remark { padding: 2px 0 2px 10px !important; border-radius: 4px; }
}
/* 11/12 Aaron '간격을 좀 줄여도 될 것 같아' (phone / tablet side menu): rows 36 -> 32px, category heads 38 -> 34px */
@media (max-width: 1000px) {
  html.atlas .menubar > a:not(.sb-brand), html.atlas .menubar .nav-menu a { height: 32px; min-height: 32px; }
  html.atlas .menubar .nav-group.nc-item > .nav-btn { height: 32px !important; }
  html.atlas .menubar .nav-cat > .nc-btn { height: 34px; }
  html.atlas .menubar .sep { margin: 6px 4px; }
}

/* 11/13 Aaron '배경색이 저렇게 진하게?': warning boxes are not painted either — card colour + a 3px line on the left (status = a line) */
html.atlas .warn-box { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-amber); }
html.atlas .warn-box.bad { background: var(--panel); border-left-color: var(--line-red); }

/* 11/16 Aaron '이것만 모서리 곡률이 다르네': 영업 테이블 판(탭 줄 + 본문)도 다른 카드와 같은 12px 모서리 */
html.atlas .sb .sb-tabs, html.atlas .sb-tabs { border-radius: var(--radius-card) var(--radius-card) 0 0 !important; }
html.atlas .sb-body { border-radius: 0 0 var(--radius-card) var(--radius-card) !important; }

/* 11/16 Aaron '카드 사이 간격이 다 달라': 첫 화면 카드 사이 = 가로·세로 모두 16px.
   (카드 자체의 아래 여백 16px + 줄 여백 14px 이 겹쳐 세로만 30px 이었음) */
html.atlas .at-row, html.atlas .at-charts, html.atlas .td-grid, html.atlas .td-side, html.atlas .boss-grid { gap: 16px; }
html.atlas .at-row, html.atlas .at-charts, html.atlas .td-grid, html.atlas .at-money, html.atlas .at-recent { margin: 0 0 16px; }
html.atlas .boss-grid { margin: 0; }
html.atlas .at-row > .card, html.atlas .at-charts > .card, html.atlas .td-grid > .card, html.atlas .td-side > .card, html.atlas .boss-grid > .card { margin: 0; }

/* 11/20 Aaron: 표 첫 칸 머리글도 다른 머리글처럼 음영 (sticky 칸이 흰색으로 덮었음) */
html.atlas .bs-t thead th:first-child { background: var(--panel2); }

/* 11/20 Aaron: 영업 — 현장 견적 · 라이브러리 (Lucide clipboard-pen · library) */
html.atlas .menubar a[href="/site-quote"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='8' height='4' x='8' y='2' rx='1'/><path d='M10.4 12.6a2 2 0 0 1 3 3L8 21l-4 1 1-4Z'/><path d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5'/><path d='M4 13.5V6a2 2 0 0 1 2-2h2'/></svg>"); }
html.atlas .menubar a[href="/library"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m16 6 4 14'/><path d='M12 6v14'/><path d='M8 8v12'/><path d='M4 4v16'/></svg>"); }

/* 11/20 Aaron '모바일 사이드바 메뉴들 좀만 키워줘' → '올린 것의 반만' (phone / tablet): text 13.5 -> 14.5px, icons 16 -> 17px, rows 32 -> 36px */
@media (max-width: 1000px) {
  html.atlas .menubar > a:not(.sb-brand), html.atlas .menubar .nav-menu a { font-size: 14.5px; min-height: 36px !important; height: auto !important; gap: 10px; }
  html.atlas .menubar > a:not(.sb-brand)::before, html.atlas .menubar .nav-menu a::before { flex-basis: 17px !important; width: 17px !important; height: 17px !important; }
  html.atlas .menubar .nav-group.nc-item > .nav-btn { height: 36px !important; font-size: 14.5px !important; }
  html.atlas .menubar .nav-cat > .nc-btn { height: 38px; font-size: 14.5px; }
  html.atlas .menubar .nav-count { font-size: 11.5px; }
}

/* 11/22 Aaron '생산팀 워크시트 앞 아이콘 왜저래': the 생산팀 Work Sheet link had no icon of its own, so the mask was empty and a
   filled square showed. Lucide clipboard-list (Aaron 11/22 chose it over printer). */
html.atlas .menubar a[href="/production/sheets"] { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='8' y='2' width='8' height='4' rx='1'/><path d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/><path d='M12 11h4'/><path d='M12 16h4'/><path d='M8 11h.01'/><path d='M8 16h.01'/></svg>"); }
