/* Shared finishing details. No additional background panels or business-state styles. */
.toolbar-group{display:flex;align-items:center;gap:var(--space-1);flex-wrap:wrap;min-width:0}
.toolbar-group+.toolbar-group{margin-left:var(--space-1)}
.toolbar-group:has(>button):not(:has(>button:not([hidden]))){display:none}
.toolbar-view{padding-right:var(--space-2);border-right:1px solid var(--ui-border)}
.toolbar :is(input[type=search],input[type=date],select){min-height:var(--control-h)}
.toolbar [role=group]{background:transparent;box-shadow:none}
.admin-inline-controls{display:flex;gap:var(--space-2);align-items:center;flex-wrap:wrap;padding:var(--space-1) 0}
.admin-inline-controls #clMonth{width:170px;max-width:100%;min-height:var(--control-h)}
.admin-close-form{max-width:660px}
.admin-partners-table td:nth-child(2),.admin-migration-table td:nth-child(4),.admin-migration-table td:nth-child(7){white-space:normal;line-height:1.45;padding-top:var(--space-1);padding-bottom:var(--space-1);overflow-wrap:anywhere}
.admin-partners-table td:nth-child(5) .inline{margin-right:var(--space-1)}
.admin-partners-table :is(.ap-biz,#apBiz){max-width:100%}
.admin-partners-table td:last-child{white-space:nowrap}

/* Keep button nodes/text in place so existing event targets and accessible actions stay intact. */
#dlgLegend span.ui-icon-button,button.ui-icon-button,button.ui-icon-label{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-1);vertical-align:middle}
:is(button.ui-icon-button,.dlg-head button.x.ui-icon-button,.grid .btn.sm.ui-icon-button){width:var(--control-h);min-width:var(--control-h);height:var(--control-h);padding:0;font-size:0;line-height:1;flex:none}
#dlgLegend span.ui-icon-button::before,button.ui-icon-button::before,button.ui-icon-label::before{content:"";display:block;width:18px;height:18px;flex:none;background:currentColor;mask:var(--ui-icon) center/contain no-repeat;-webkit-mask:var(--ui-icon) center/contain no-repeat;pointer-events:none}
.ui-icon-print{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V3h10v5M7 17H4V9h16v8h-3M7 14h10v7H7z'/%3E%3Cpath d='M17 11h.01'/%3E%3C/svg%3E")}
.ui-icon-refresh{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7v5h-5M4 17v-5h5M6.1 6.1A8 8 0 0 1 19.8 10M4.2 14a8 8 0 0 0 13.7 3.9'/%3E%3C/svg%3E")}
.ui-icon-close{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E")}
.ui-icon-expand{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E")}
.ui-icon-wrap{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18M3 10h14a4 4 0 0 1 0 8h-5m3-3-3 3 3 3M3 15h5'/%3E%3C/svg%3E")}
.grid .btn.sm.ui-icon-expand{width:var(--control-small);min-width:var(--control-small);height:var(--control-small)}
button.ui-icon-expand[aria-expanded=true]::before{transform:rotate(90deg)}
button.ui-icon-button>*{pointer-events:none}
button.ui-icon-button:focus-visible,button.ui-icon-label:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}

/* Icon tags (js/helpers.js IconTag, 11-19 plan tab compact): outline only. Border and text take one tone colour; there is never a filled background.
   An icon-only tag (.bare) is a lone icon with no border. Icons are the same CSS masks as the buttons above (currentColor), so a .ui-icon-* class works on both. */
.itag{display:inline-flex;align-items:center;gap:3px;box-sizing:border-box;height:18px;padding:0 5px 0 4px;border:1px solid currentColor;border-radius:4px;background:transparent;font-size:var(--text-small);line-height:16px;white-space:nowrap;vertical-align:middle;flex:none}
.itag::before{content:"";display:block;width:12px;height:12px;flex:none;background:currentColor;mask:var(--ui-icon) center/contain no-repeat;-webkit-mask:var(--ui-icon) center/contain no-repeat;pointer-events:none}
.itag.no-icon{min-width:18px;padding:0 4px;justify-content:center;font-weight:600}
.itag.no-icon::before{content:none}
.itag.bare{width:16px;height:16px;padding:0;border:0;justify-content:center}
.itag.bare::before{width:15px;height:15px}
.itag+.itag{margin-left:4px}
.sheet td>.itag{vertical-align:middle}
.itag.tone-bad{color:var(--bad)}.itag.tone-warn{color:var(--warn)}.itag.tone-ok{color:var(--ok)}.itag.tone-muted{color:var(--muted)}.itag.tone-info{color:var(--ui-info)}
.itag.tone-ready{color:var(--state-ready-text)}.itag.tone-contended{color:var(--state-contended-text)}.itag.tone-planned{color:var(--state-planned-text)}.itag.tone-partial{color:var(--state-partial-text)}
.itag.tone-unplanned{color:var(--state-unplanned-text)}.itag.tone-risk{color:var(--state-risk-text)}.itag.tone-unknown{color:var(--state-unknown-text)}
/* Tag icons: plan list states, schedule, route, row marks, queue warnings, sent kinds, document statuses, inventory and journal kinds. */
.ui-icon-circle{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E")}
.ui-icon-circle-half{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4a8 8 0 0 1 0 16z' fill='currentColor'/%3E%3C/svg%3E")}
.ui-icon-form{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18H5z'/%3E%3Cpath d='M12 3v5h7M15.5 3v5'/%3E%3Cpath d='M8 12h8M8 15.5h8M8 19h5'/%3E%3C/svg%3E")} /* 수주서(결재란 서식) — 종이 오른쪽 위 결재 칸, 목록 「인쇄」 그림과 가른다(11-20 폰 인쇄) */
.ui-icon-clipboard{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H7a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='2.5' width='6' height='3.5' rx='1'/%3E%3Cpath d='M9 11h6M9 15h6'/%3E%3C/svg%3E")}
.ui-icon-cart{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h3l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.1L21 8H6.6'/%3E%3C/svg%3E")}
.ui-icon-truck{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5.5h11v11H2zM13 9.5h4.2l3.3 3.3v3.7H13'/%3E%3Ccircle cx='6.5' cy='17.5' r='2'/%3E%3Ccircle cx='16.5' cy='17.5' r='2'/%3E%3C/svg%3E")}
.ui-icon-play{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m10 8.5 5.5 3.5-5.5 3.5z'/%3E%3C/svg%3E")}
.ui-icon-alert{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 18a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9.5v4M12 17h.01'/%3E%3C/svg%3E")}
.ui-icon-alert-circle{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E")}
.ui-icon-box-alert{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h19v4h-19zM4 8v11a1.5 1.5 0 0 0 1.5 1.5h13A1.5 1.5 0 0 0 20 19V8M12 11v4M12 17.8h.01'/%3E%3C/svg%3E")}
.ui-icon-clock{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E")}
.ui-icon-flag{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4'/%3E%3Cpath d='M5 4h12.5l-2.5 4.5 2.5 4.5H5z' fill='currentColor'/%3E%3C/svg%3E")} /* 긴급(11-20 출고 한 줄 — 수주번호 뒤 빨간 깃발, ship.js SHIP_URGENT) */
.ui-icon-calendar-x{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3.5 10h17M10 13.2l4 4M14 13.2l-4 4'/%3E%3C/svg%3E")}
.ui-icon-calendar-help{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3.5 10h17M10.2 13.6a1.9 1.9 0 0 1 3.7.5c0 1.3-1.9 1.7-1.9 1.7M12 18.3h.01'/%3E%3C/svg%3E")}
.ui-icon-gear{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.8'/%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E")}
.ui-icon-boxes{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='9.5' width='10' height='10' rx='1'/%3E%3Cpath d='M8.5 9.5v-4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-5'/%3E%3C/svg%3E")}
.ui-icon-link{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3.5-3.5a4 4 0 0 0-5.7-5.7L12 6.3M14 10a4 4 0 0 0-5.7 0l-3.5 3.5a4 4 0 0 0 5.7 5.7l1.5-1.5'/%3E%3C/svg%3E")}
.ui-icon-shield{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 4.5 5.5v6c0 4.6 3.2 8.3 7.5 10 4.3-1.7 7.5-5.4 7.5-10v-6z'/%3E%3C/svg%3E")}
.ui-icon-split{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8M12 13 6 7M12 13l6-6M6 12V7h5M18 12V7h-5'/%3E%3C/svg%3E")}
.ui-icon-arrow-up{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V4M5.5 10.5 12 4l6.5 6.5'/%3E%3C/svg%3E")}
.ui-icon-arrow-down{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M5.5 13.5 12 20l6.5-6.5'/%3E%3C/svg%3E")}
.ui-icon-arrow-right{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13.5 5.5 20 12l-6.5 6.5'/%3E%3C/svg%3E")}
.ui-icon-arrows-h{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M7 8l-4 4 4 4M17 8l4 4-4 4'/%3E%3C/svg%3E")}
.ui-icon-plus{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.ui-icon-plus-minus{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v9M7.5 8h9M7 19h10'/%3E%3C/svg%3E")}
.ui-icon-slash{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20 20 4M4 12.5 12.5 4M11.5 20 20 11.5'/%3E%3C/svg%3E")}
.ui-icon-slash-circle{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.6 5.6 12.8 12.8'/%3E%3C/svg%3E")}
.ui-icon-check{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.ui-icon-x-circle{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m9 9 6 6M15 9l-6 6'/%3E%3C/svg%3E")}
.ui-icon-team{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3.5 19.5a5.5 5.5 0 0 1 11 0M16 5.4a3 3 0 0 1 0 5.4M17.5 14.2a5 5 0 0 1 3 5.3'/%3E%3C/svg%3E")}
.ui-icon-approx{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9.5c2.3-2 4.7-2 7 0s4.7 2 7 0M5 15.5c2.3-2 4.7-2 7 0s4.7 2 7 0'/%3E%3C/svg%3E")}
/* Plan list icons (11-19, docs/계획_계획목록아이콘_20261119.md): the state icons help and hourglass are back (the state cell is one icon again), the 반 icons (공작 press, 사출 nozzle, 전기 bolt, 가공 cog; 조립 keeps boxes) and the kind pictograms (motor, shaft, casting lump, fan, fan cover grille, bearing; an item with no kind gets the empty frame). The fan cover is a ring with parallel bars and no inner ring, so it does not read as the bearing at 18px. */
.ui-icon-help{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.2 9.2a3 3 0 0 1 5.8 1c0 2-3 2.8-3 2.8M12 17h.01'/%3E%3C/svg%3E")}
.ui-icon-hourglass{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5h12M6 21.5h12M7 2.5v3.6a5 5 0 0 0 2 4L12 12l3-1.9a5 5 0 0 0 2-4V2.5M7 21.5v-3.6a5 5 0 0 1 2-4L12 12l3 1.9a5 5 0 0 1 2 4v3.6'/%3E%3C/svg%3E")}
.ui-icon-press{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3h16M12 3v4'/%3E%3Crect x='6' y='7' width='12' height='4' rx='1' fill='currentColor'/%3E%3Cpath d='m9.5 13.8 2.5 2 2.5-2M7 18h10M3 21h18'/%3E%3C/svg%3E")}
.ui-icon-nozzle{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v3l-4 5h-4L6 6z'/%3E%3Cpath d='M12 13.5c-1.9 2.4-2.9 4-2.9 5.2a2.9 2.9 0 0 0 5.8 0c0-1.2-1-2.8-2.9-5.2z' fill='currentColor'/%3E%3C/svg%3E")}
.ui-icon-bolt{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 2.5 5 13.5h6.5l-1 8 8.5-11h-6.5z' fill='currentColor'/%3E%3C/svg%3E")}
.ui-icon-cog{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7.5' stroke-width='4' stroke-dasharray='2.95 2.94' stroke-linecap='butt'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3C/svg%3E")}
.ui-icon-motor{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6.5' width='14' height='10' rx='2'/%3E%3Cpath d='M6.5 6.5v10M10.5 6.5v10M16.5 11.5h5M5 16.5 4 20h11l-1-3.5'/%3E%3C/svg%3E")}
.ui-icon-shaft{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 10h4v4h-4zM6.5 8.5h11v7h-11zM17.5 10h4v4h-4zM9.5 12h5'/%3E%3C/svg%3E")}
.ui-icon-casting{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5 7 6l3.5 1L13 4.5l3.5 2 3 .5 1 3.5-1.5 2.5 1 3.5-3 2.5-3.5-.5-3 1.5-3.5-1.5L4 17l.5-3.5L3 11.5z'/%3E%3Cpath d='M9 12h.01M14 11h.01M12 15h.01'/%3E%3C/svg%3E")}
.ui-icon-fan{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(25 12 12)'%3E%3Cellipse cx='12' cy='6.3' rx='2.4' ry='3.8'/%3E%3Cellipse cx='17.7' cy='12' rx='3.8' ry='2.4'/%3E%3Cellipse cx='12' cy='17.7' rx='2.4' ry='3.8'/%3E%3Cellipse cx='6.3' cy='12' rx='3.8' ry='2.4'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3C/svg%3E")}
.ui-icon-fcover{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M4.21 7.5h15.58M3 12h18M4.21 16.5h15.58'/%3E%3C/svg%3E")}
.ui-icon-bearing{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='3.8'/%3E%3Ccircle cx='18.4' cy='12' r='1.3' fill='currentColor' stroke='none'/%3E%3Ccircle cx='15.2' cy='17.54' r='1.3' fill='currentColor' stroke='none'/%3E%3Ccircle cx='8.8' cy='17.54' r='1.3' fill='currentColor' stroke='none'/%3E%3Ccircle cx='5.6' cy='12' r='1.3' fill='currentColor' stroke='none'/%3E%3Ccircle cx='8.8' cy='6.46' r='1.3' fill='currentColor' stroke='none'/%3E%3Ccircle cx='15.2' cy='6.46' r='1.3' fill='currentColor' stroke='none'/%3E%3C/svg%3E")}
.ui-icon-frame{--ui-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10V5a1 1 0 0 1 1-1h5M14 4h5a1 1 0 0 1 1 1v5M20 14v5a1 1 0 0 1-1 1h-5M10 20H5a1 1 0 0 1-1-1v-5'/%3E%3C/svg%3E")}
/* 반 icons and kind pictograms are 18px: at 15px the small pictures read as boxes. Kind symbols (ST · RT · S · R · RD · M · RB) are the outline text tag (.itag.no-icon). */
.itag.bare:is(.ui-icon-press,.ui-icon-nozzle,.ui-icon-bolt,.ui-icon-cog,.ui-icon-boxes,.ui-icon-motor,.ui-icon-shaft,.ui-icon-casting,.ui-icon-fan,.ui-icon-fcover,.ui-icon-bearing,.ui-icon-frame){width:20px;height:20px}
.itag.bare:is(.ui-icon-press,.ui-icon-nozzle,.ui-icon-bolt,.ui-icon-cog,.ui-icon-boxes,.ui-icon-motor,.ui-icon-shaft,.ui-icon-casting,.ui-icon-fan,.ui-icon-fcover,.ui-icon-bearing,.ui-icon-frame)::before{width:18px;height:18px}
/* Category colours (theme.css --cat-*) on text, border and icon only: the plan list kind icon and the inventory 유형 cell. */
.tone-cat-fin{color:var(--cat-fin)}.tone-cat-semi{color:var(--cat-semi)}.tone-cat-raw{color:var(--cat-raw)}.tone-cat-sub{color:var(--cat-sub)}

/* Screen legends (js/helpers.js Legend, 11-19, docs/계획_화면범례_20261119.md). The 「?」 is a bordered text button (not .ui-icon-help: that circled question mark is the plan list's 판정 불가 icon),
   the size of the icon buttons beside it: 32px, 44px on the phone. A 28px pane head sizes its own. In a dialog head it stands just before the × and the × keeps the far right.
   The window is one <dialog id="dlgLegend">: small group titles, then rows of [the screen's own mark] meaning. No panels, no numbering. Row-colour swatches reuse the screens' own tint rules.
   On the phone the shared dialog rules (style.css) make it full screen and the body scrolls. Print already hides both (style.css @media print). */
button.lg-btn{width:var(--control-h);min-width:var(--control-h);height:var(--control-h);padding:0;font-weight:700;line-height:1;flex:none}
.dlg-head button.lg-btn{margin-left:auto}
.dlg-head button.lg-btn+.x{margin-left:0}
.we-head button.lg-btn{margin-left:auto} /* a wrapped phone head keeps the 「?」 at the right end; on wider screens .grow already takes the space */
.toolbar>button.lg-btn{margin-left:auto} /* a toolbar's own 「?」 (재고 · 입고 · 불출 · 수주/발주/출고) is its last item: where .grow shares its row the flex-grow takes all free space and this margin stays 0; on the phone (.grow hidden) and on a wrapped row it keeps the right end */
#dlgLegend{width:720px}
#dlgLegend .dlg-body h3{margin:var(--space-4) 0 var(--space-2);font-size:var(--text-base)}
#dlgLegend .dlg-body h3:first-child{margin-top:0}
#dlgLegend .dlg-body h3+p{margin:calc(-1 * var(--space-1)) 0 var(--space-2);font-size:var(--text-small)}
.lg-list{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--space-1) var(--space-3);align-items:center;margin:0}
.lg-list dt{display:block;min-width:0} /* block, not a flex column: a mark made of pieces (반 icon + truck, cart + 업체) stays on one line as in the cell; .lg-cell pieces stack */
.lg-list dd{margin:0;line-height:1.45}
.lg-swatch{display:inline-block;width:56px;height:var(--row-h);border:1px solid var(--grid);vertical-align:middle}
.lg-cell{display:block;font-size:var(--text-base)}
#dlgLegend .lg-judge{display:inline-block;min-width:150px;height:var(--row-h);line-height:calc(var(--row-h) - 2px);padding:0 var(--space-2);border:1px solid var(--grid);vertical-align:middle;white-space:nowrap} /* 출고 판정 칸 견본(docs.js 'docs'): 칸의 칠 · 테두리 색 · 글자색은 style 로 칸과 같은 Planning.statusStyles — 사용자가 정한 판정 칠 예외 그대로 */
#dlgLegend span.ui-icon-button{width:28px;min-width:28px;height:28px;padding:0;font-size:0;line-height:1;flex:none} /* an icon-button sample (× 빼기, › 상세) is a span that cannot be pressed; the icon-button rules above draw it, at the pane-head size */
@media(max-width:767px){
  button.lg-btn{width:var(--control-touch);min-width:var(--control-touch);height:var(--control-touch)}
  #dlgLegend{width:100vw}
  .lg-list{grid-template-columns:minmax(0,1fr);row-gap:0} /* phone: each mark above its meaning — wide marks would leave the meaning a narrow column */
  .lg-list dd{margin-bottom:var(--space-2)}
}

/* An indicator only appears on a real horizontal scroll container, never on a fitting table. */
.ui-scrollable::before{content:attr(data-ui-scroll-label);display:block;position:sticky;left:0;top:auto;z-index:1;width:max-content;max-width:100%;box-sizing:border-box;padding:2px 6px;margin:0 0 2px;color:var(--ui-muted);background:var(--ui-surface);font:var(--text-small)/1.5 var(--font-body);pointer-events:none;white-space:nowrap}
/* Horizontal order cards are a flex row: use an edge fade without inserting another flex item. */
.planning-token-scroll.ui-scrollable::before{display:none}
.planning-token-scroll.ui-scroll-right{mask-image:linear-gradient(to right,var(--ui-text) calc(100% - 18px),transparent)}
.planning-token-scroll.ui-scroll-left{mask-image:linear-gradient(to right,transparent,var(--ui-text) 18px)}
.planning-token-scroll.ui-scroll-left.ui-scroll-right{mask-image:linear-gradient(to right,transparent,var(--ui-text) 18px,var(--ui-text) calc(100% - 18px),transparent)}

@media(max-width:767px){
  .toolbar-group+.toolbar-group{margin-left:0}
  .toolbar-group{gap:var(--space-1)}
  .toolbar-group.toolbar-actions:has(>#btnNewItem){display:none}
  .toolbar-view{padding-right:var(--space-1)}
  :is(button.ui-icon-button,.dlg-head button.x.ui-icon-button,.grid .btn.sm.ui-icon-button){width:var(--control-touch);min-width:var(--control-touch);height:var(--control-touch)}
  .toolbar .wrapbtn.ui-icon-button{display:none}
  #btnPrintSo.ui-icon-label{width:var(--control-touch);min-width:var(--control-touch);height:var(--control-touch);padding:0;font-size:0;gap:0;flex:none} /* 폰 수주서는 그림만(읽는 이름 「수주서 인쇄」) — 그림 + 글이면 360 에서 「?」가 둘째 줄로 꺾였다(11-20 폰 인쇄) */
  .admin-inline-controls #clMonth{min-height:var(--control-touch)}
  .admin-close-form{max-width:none}
}
@media print{
  .ui-scrollable::before{display:none!important}
  .planning-token-scroll{mask-image:none!important}
}
