:root {
  --ink: #1c2742;
  --muted: #7b8498;
  --line: #e5e9f2;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --navy: #20285f;
  --navy-2: #3b4ba7;
  --teal: #5869e8;
  --teal-soft: #eef0ff;
  --orange: #e9954f;
  --orange-soft: #fff3e8;
  --red: #d45e6b;
  --yellow: #dcae48;
  --shadow: 0 14px 34px rgba(46, 59, 116, 0.1);
  font-family: "Noto Sans SC", "DM Sans", sans-serif;
  color: var(--ink);
  background: #f5f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
.batch-add-employee { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 11px 12px; border: 1px dashed #b9d8d3; background: #f4fbf9; }.batch-add-employee strong, .batch-add-employee small { display: block; }.batch-add-employee strong { font-size: 11px; color: var(--teal); }.batch-add-employee small { margin-top: 3px; color: var(--muted); font-size: 10px; }.batch-new-employee-panel { margin: 0 0 12px; padding: 13px; border: 1px solid #b9d8d3; background: #fbfefd; }.batch-new-employee-title { margin-bottom: 10px; }.batch-new-employee-title strong, .batch-new-employee-title small { display: block; }.batch-new-employee-title strong { font-size: 12px; }.batch-new-employee-title small { margin-top: 3px; color: var(--muted); font-size: 10px; }.batch-new-employee-panel .field { margin-bottom: 10px; }.batch-new-employee-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); }.batch-new-employee-stores .store-radio-card { padding: 9px; }.batch-new-employee-actions { display: flex; justify-content: flex-end; gap: 8px; }
body { margin: 0; min-width: 320px; background: #f5f7fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.employee-name-link { padding: 0; color: var(--teal); font-weight: 600; }
.employee-detail { display: grid; gap: 14px; }
.selected-store-summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); background: var(--soft); }
.selected-store-summary > span:nth-child(2), .transfer-employee-note > * { display: block; min-width: 0; }
.selected-store-summary strong, .selected-store-summary small { display: block; }
.selected-store-summary strong { font-size: 12px; }
.selected-store-summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.transfer-employee-note { display: grid; gap: 5px; margin-bottom: 16px; padding: 13px 14px; border: 1px solid #cfd6ff; background: #f7f8ff; }
.transfer-employee-note strong { color: var(--navy); font-size: 14px; }
.transfer-employee-note span { color: var(--ink); font-size: 12px; }
.transfer-employee-note small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.detail-back { margin-bottom: -2px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.detail-item { min-width: 0; padding: 12px; background: white; }
.detail-item small, .detail-item strong { display: block; }
.detail-item small { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.detail-item strong { font-size: 12px; overflow-wrap: anywhere; }
.employee-extra-fields { margin-top: 14px; }
.task-rules-panel { margin-top: 18px; }
.task-rule-list { display: grid; gap: 0; }
.task-rule-list > div { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task-rule-list > div:last-child { border-bottom: 0; }
.task-rule-list strong { min-width: 105px; font-size: 12px; }
.task-rule-list span { color: var(--muted); font-size: 11px; }
.warehouse-item { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.warehouse-status { color: var(--muted); font-size: 10px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--teal); font: 700 11px/1.2 "DM Sans", sans-serif; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 12px; }

/* login */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 16px; padding: 16px; background: #f2f4ff; }
.login-art { min-height: calc(100vh - 32px); background: #5266e7; border-radius: 20px; color: white; padding: 34px 6vw 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; }
.login-art::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -260px; border: 1px solid rgba(255,255,255,.22); transform: rotate(18deg); box-shadow: 0 0 0 34px rgba(255,255,255,.04), 0 0 0 68px rgba(255,255,255,.025); z-index: -1; }
.login-art::after { content: ""; position: absolute; width: 420px; height: 420px; left: -270px; bottom: -240px; border: 1px solid rgba(255,255,255,.16); transform: rotate(18deg); box-shadow: 0 0 0 28px rgba(255,255,255,.04); z-index: -1; }
.login-art-top, .login-art-footer { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; font: 600 11px "DM Sans", sans-serif; letter-spacing: 1.3px; color: rgba(255,255,255,.72); }
.brand-mark { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.6); border-radius: 9px; display: grid; place-items: center; color: white; font: 700 14px "DM Sans"; }
.brand-mark i { display: block; width: 12px; height: 12px; border: 3px solid currentColor; border-left-color: transparent; border-radius: 4px; transform: rotate(-45deg); }
.login-art-copy { max-width: 520px; position: relative; z-index: 2; margin: 5vh 0 0; }
.login-art-copy .eyebrow { color: #d9deff; }
.login-art-copy h1 { font-size: 56px; line-height: 1.14; letter-spacing: 0; margin: 0 0 22px; font-weight: 600; }
.login-art-copy h1 em { font-style: normal; color: #ffffff; }
.login-art-copy p:last-child { color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.8; max-width: 360px; margin: 0; }
.login-art-footer { gap: 28px; font-size: 10px; }
.login-art-scene { position: absolute; z-index: 1; width: 440px; height: 300px; right: -8px; bottom: 9%; transform: scale(.78); transform-origin: right bottom; }
.scene-ring { position: absolute; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; transform: rotate(-21deg); }
.scene-ring-one { width: 286px; height: 286px; right: 66px; top: 2px; }
.scene-ring-two { width: 360px; height: 150px; right: 30px; top: 68px; transform: rotate(-21deg); }
.scene-panel { position: absolute; border-radius: 14px; box-shadow: 0 18px 36px rgba(31, 43, 124, .24); }
.scene-panel-back { width: 272px; height: 180px; right: 12px; top: 26px; background: #8292f1; transform: rotate(8deg); padding: 20px; }
.scene-panel-back span { display: block; height: 9px; margin-bottom: 12px; border-radius: 3px; background: rgba(255,255,255,.38); }
.scene-panel-back span:first-child { width: 42%; }.scene-panel-back span:nth-child(2) { width: 72%; }.scene-panel-back span:nth-child(3) { width: 56%; }
.scene-panel-main { width: 310px; height: 202px; left: 56px; top: 42px; padding: 15px; background: rgba(255,255,255,.97); transform: rotate(-5deg); color: #273268; }
.scene-panel-head { display: flex; align-items: center; gap: 8px; font-size: 9px; }.scene-panel-head b { font-weight: 700; }.scene-panel-head small { margin-left: auto; color: #9aa2c0; font-size: 8px; }
.scene-window-dots { display: flex; gap: 3px; }.scene-window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #9caaf8; }.scene-window-dots i:nth-child(2) { background: #c4cbff; }.scene-window-dots i:nth-child(3) { background: #e1e5ff; }
.scene-panel-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; align-items: end; height: 150px; padding-top: 24px; }.scene-chart { display: flex; align-items: end; gap: 6px; height: 100%; padding: 0 8px 8px; border-bottom: 1px solid #e7eaff; }.scene-chart i { flex: 1; min-height: 18px; border-radius: 4px 4px 1px 1px; background: #9aa8fa; }.scene-chart i:nth-child(2), .scene-chart i:nth-child(5) { height: 52%; background: #596eea; }.scene-chart i:nth-child(3) { height: 76%; background: #b3bcff; }.scene-chart i:nth-child(4) { height: 91%; background: #7587f0; }.scene-chart i:nth-child(6) { height: 68%; background: #435bdc; }
.scene-summary { display: grid; gap: 9px; padding-bottom: 8px; }.scene-summary span { display: block; height: 27px; border-radius: 6px; background: #f0f2ff; border-left: 4px solid #596eea; }.scene-summary span:nth-child(2) { border-left-color: #b4bdfc; }.scene-summary span:nth-child(3) { border-left-color: #e2a65d; }
.scene-float { position: absolute; display: flex; align-items: center; border-radius: 10px; background: white; box-shadow: 0 14px 28px rgba(31, 43, 124, .2); }.scene-float-top { width: 104px; height: 48px; left: 6px; top: 3px; padding: 9px; gap: 7px; transform: rotate(-4deg); }.scene-float-top > i { width: 25px; height: 25px; border-radius: 8px; background: #e7eaff; }.scene-float-top span { display: grid; gap: 4px; }.scene-float-top b, .scene-float-top small { display: block; width: 48px; height: 4px; border-radius: 2px; background: #c8cffb; }.scene-float-top small { width: 34px; background: #e9ebf8; }.scene-float-bottom { width: 112px; height: 42px; right: 10px; bottom: 5px; padding: 9px 12px; gap: 5px; transform: rotate(5deg); }.scene-float-bottom span { width: 29px; height: 22px; border-radius: 5px; background: #e7eaff; }.scene-float-bottom i { width: 10px; height: 10px; border-radius: 3px; background: #7b8cf0; }.scene-float-bottom i:last-child { background: #f0c184; }
.login-panel { display: flex; flex-direction: column; justify-content: center; margin-right: 0; padding: 50px clamp(34px, 7vw, 110px); border-radius: 20px; background: white; box-shadow: 0 12px 40px rgba(50, 62, 125, .08); }
.login-panel-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 52px; color: #69738e; font-size: 12px; font-weight: 600; }.login-panel-brand .brand-mark { width: 30px; height: 30px; border-color: #d9def7; color: var(--teal); background: #f2f4ff; }
.login-panel h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: 0; color: #1d2743; }
.login-intro { margin: 0; font-size: 13px; }
.login-form { margin-top: 36px; }
.login-field { gap: 9px; }.login-field span { color: #68738e; font-size: 12px; font-weight: 600; }.login-field input { border-color: #e0e5f0; border-radius: 9px; background: #fbfcff; }.login-field input::placeholder { color: #b2b9ca; }.login-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(88,105,232,.13); background: #fff; }
.login-submit { min-height: 48px; border-radius: 9px; background: var(--teal); box-shadow: 0 9px 20px rgba(88,105,232,.2); }.login-submit:hover { background: #485bd7; box-shadow: 0 12px 24px rgba(88,105,232,.26); }.login-submit b { color: #e1e5ff; }
.login-note { font-size: 11px; color: #9aa2b4; margin-top: 35px; }

/* shell */
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; flex: 0 0 248px; background: var(--navy); color: white; padding: 28px 16px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 14px 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-brand .brand-mark { width: 32px; height: 32px; }
.sidebar-brand strong { font: 700 15px "DM Sans", sans-serif; letter-spacing: .3px; }
.sidebar-brand small { display: block; color: rgba(255,255,255,.45); font-size: 10px; margin-top: 3px; }
.nav-section { color: rgba(255,255,255,.38); font: 600 10px "DM Sans", sans-serif; letter-spacing: 1.3px; padding: 26px 14px 9px; }
.nav-list { display: grid; gap: 3px; }
.nav-item { color: rgba(255,255,255,.68); background: transparent; border: 0; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; font-size: 13px; transition: .15s; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.11); color: white; }
.nav-item.active { box-shadow: inset 3px 0 0 #aeb8ff; }
.nav-icon { width: 19px; text-align: center; font: 600 16px "DM Sans"; opacity: .85; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 17px 14px 0; color: rgba(255,255,255,.46); font-size: 11px; line-height: 1.7; }
.sidebar-footer b { color: rgba(255,255,255,.78); font-weight: 500; }
.main-area { min-width: 0; flex: 1; }
.topbar { height: 76px; padding: 0 34px; background: white; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb b { font-weight: 400; color: #b4c1c1; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.month-picker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.month-picker input { border: 1px solid var(--line); color: var(--ink); padding: 8px 10px; background: white; font-size: 12px; }
.icon-button { border: 0; background: transparent; color: var(--ink); font-size: 20px; width: 34px; height: 34px; display: grid; place-items: center; position: relative; }
.notification { color: var(--muted); font-size: 24px; }
.notification i { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.profile-button { border: 0; background: transparent; display: flex; align-items: center; gap: 9px; text-align: left; color: var(--ink); }
.profile-button > span:nth-child(2) { display: grid; gap: 2px; }
.profile-button b { font-size: 12px; font-weight: 600; }
.profile-button small { color: var(--muted); font-size: 10px; }
.profile-button > span:first-child { width: 31px; height: 31px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.chevron { color: var(--muted); margin-left: 4px; }
.mobile-menu { display: none; }
.content { padding: 30px 34px 60px; max-width: 1600px; margin: 0 auto; }

/* reusable */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { font-size: 27px; line-height: 1.2; letter-spacing: 0; margin: 0 0 7px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.button { border: 1px solid var(--line); background: white; color: var(--ink); padding: 10px 14px; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; transition: .15s; }
.button:hover { border-color: var(--teal); color: var(--teal); }
.button.primary { background: var(--navy); border-color: var(--navy); color: white; }
.button.primary:hover { background: var(--navy-2); }
.button.teal { background: var(--teal); color: white; border-color: var(--teal); }
.button.danger { color: var(--red); }
.button.text { border: 0; padding: 4px 0; background: transparent; color: var(--teal); }
.button.small { padding: 7px 10px; font-size: 11px; }
.panel { background: white; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(21,56,62,.025); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-header h3 { font-size: 14px; margin: 0; letter-spacing: 0; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { background: white; border: 1px solid var(--line); padding: 19px 20px; position: relative; min-height: 128px; }
.metric-card::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 3px; background: var(--teal); }
.metric-card.orange::after { background: var(--orange); }
.metric-card.navy::after { background: var(--navy); }
.metric-card.red::after { background: var(--red); }
.metric-label { color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.metric-value { font: 700 26px/1 "DM Sans", sans-serif; color: var(--ink); letter-spacing: 0; }
.metric-suffix { color: var(--muted); font-size: 11px; margin-left: 4px; font-weight: 500; }
.metric-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 10px; color: var(--muted); }
.trend-up { color: var(--teal); }
.trend-down { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); gap: 18px; }
.dashboard-grid + .dashboard-grid { margin-top: 18px; }
.dashboard-statistics { margin-top: 28px; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dashboard-section-heading h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: 0; }
.dashboard-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.dashboard-section-filter { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.dashboard-section-filter select { min-width: 190px; }
.dashboard-subheading { margin: 0 0 12px; font-size: 14px; }
.dashboard-statistics > .dashboard-grid + .dashboard-grid { margin-top: 18px; }
.chart-wrap { padding: 18px 20px 16px; }
.chart-tooltip { position: fixed; z-index: 1200; max-width: min(280px, calc(100vw - 24px)); padding: 9px 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(26, 43, 48, .96); box-shadow: 0 10px 26px rgba(22, 45, 50, .22); color: #fff; font: 500 11px/1.55 "Noto Sans SC", sans-serif; white-space: pre-line; pointer-events: none; }
.chart-point { cursor: help; outline: none; paint-order: stroke; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; touch-action: manipulation; transition: stroke-width .15s ease, opacity .15s ease; }
.chart-point:hover, .chart-point:focus { stroke-width: 3; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.chart-head strong { font: 700 22px "DM Sans"; }
.chart-head small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.chart-legend { color: var(--muted); font-size: 11px; display: flex; gap: 14px; }
.chart-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--teal); margin-right: 5px; }
.chart-legend span:last-child::before { background: var(--orange); }
.bar-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; height: 178px; border-bottom: 1px solid var(--line); align-items: end; padding: 0 4px; position: relative; }
.bar-chart::before, .bar-chart::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed #e9eeee; }
.bar-chart::before { top: 35%; }.bar-chart::after { top: 68%; }
.bar-group { display: flex; align-items: end; justify-content: center; gap: 5px; height: 100%; position: relative; z-index: 1; }
.bar { width: 13px; min-height: 3px; background: var(--teal); }.bar.orange { background: var(--orange); }
.bar-label { position: absolute; bottom: -23px; color: var(--muted); font-size: 10px; }
.store-list { display: grid; gap: 11px; }
.store-row { display: flex; align-items: center; gap: 10px; }
.store-dot { width: 28px; height: 28px; display: grid; place-items: center; background: #eef6f4; color: var(--teal); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.store-row-main { min-width: 0; flex: 1; }.store-row-main strong { display: block; font-size: 12px; font-weight: 600; }.store-row-main small { color: var(--muted); font-size: 10px; }
.store-row-value { text-align: right; font: 600 13px "DM Sans"; }.store-row-value small { display: block; color: var(--teal); font: 10px "Noto Sans SC"; margin-top: 3px; }
.progress-line { height: 4px; background: #edf2f1; margin-top: 6px; }.progress-line i { display: block; height: 100%; background: var(--teal); }
.todo-panel .panel-header { align-items: center; }.todo-summary { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 9px; background: var(--orange-soft); color: var(--orange); white-space: nowrap; }.todo-summary strong { font: 700 18px/1 "DM Sans", sans-serif; }.todo-summary span { font-size: 10px; }.todo-tabs { gap: 18px; margin-bottom: 12px; }.todo-tab { padding-top: 9px; padding-bottom: 9px; font-size: 11px; }.todo-list { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5d5d2 transparent; }.todo-list::-webkit-scrollbar { width: 6px; }.todo-list::-webkit-scrollbar-thumb { background: #c5d5d2; }.todo-item { min-height: 64px; padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 11px; align-items: flex-start; }.todo-item:last-child { border-bottom: 0; }.todo-bullet { width: 8px; height: 8px; background: var(--orange); margin-top: 5px; flex: 0 0 auto; }.todo-bullet.teal { background: var(--teal); }.todo-item > div { min-width: 0; flex: 1; }.todo-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }.todo-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; margin-top: 3px; }.todo-item .button.text { flex: 0 0 auto; min-height: 28px; padding: 4px 0 4px 8px; }.todo-scroll-hint { display: block; height: 14px; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 14px; text-align: right; }.todo-scroll-hint.is-hidden { visibility: hidden; }
.payment-task-intro { margin-bottom: 12px; padding: 10px 11px; background: #f4fbf9; border: 1px solid #d7ece8; color: var(--muted); font-size: 11px; line-height: 1.6; }.payment-task-list { display: grid; gap: 8px; }.payment-task-item { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 11px; border: 1px solid var(--line); background: white; cursor: pointer; }.payment-task-item:hover { border-color: var(--teal); }.payment-task-item input { flex: 0 0 auto; accent-color: var(--teal); }.payment-task-item span { min-width: 0; flex: 1; font-size: 12px; }.payment-task-item small { color: var(--muted); font-size: 10px; }.payment-task-item.completed { background: #f3f5f4; border-color: #e5e9e8; color: #9aa6a7; cursor: default; }.payment-submit { display: block; margin: 14px 0 0 auto; }
.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }.data-table th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 500; padding: 12px 15px; background: #fbfcfc; border-bottom: 1px solid var(--line); white-space: nowrap; }.data-table td { padding: 14px 15px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; }.data-table tbody tr:hover { background: #fbfdfc; }.data-table td strong { font-weight: 600; }.data-table td.amount { font-family: "DM Sans", sans-serif; font-weight: 600; }.data-table .row-muted { color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; padding: 4px 7px; font-size: 10px; color: var(--teal); background: var(--teal-soft); }.status.wait { color: #a8791e; background: #fff5d9; }.status.danger { color: var(--red); background: #fdebea; }.status.dark { color: var(--navy); background: #e7eff0; }
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }.switch input { position: absolute; opacity: 0; pointer-events: none; }.switch-track { width: 31px; height: 18px; background: #cbd7d6; position: relative; transition: background .15s ease; }.switch-track::after { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: white; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.16); }.switch input:checked + .switch-track { background: var(--teal); }.switch input:checked + .switch-track::after { transform: translateX(13px); }.switch-field { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); cursor: pointer; }.switch-field input { accent-color: var(--teal); }
.store-chip { display: inline-flex; gap: 6px; align-items: center; }.store-chip i { width: 7px; height: 7px; background: var(--teal); display: inline-block; }.store-chip small { color: var(--muted); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 12px 2px 11px; font-size: 12px; white-space: nowrap; }.tab.active { border-bottom-color: var(--teal); color: var(--ink); font-weight: 600; }
.master-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.storage-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 15px; background: #eef7f5; border: 1px solid #d9ece8; color: var(--muted); font-size: 11px; }
.filter-pill { border: 1px solid #d5e5e2; background: white; color: var(--ink); padding: 7px 10px; font-size: 11px; }.filter-pill.active { background: var(--teal); border-color: var(--teal); color: white; }.filter-pill small { margin-left: 5px; opacity: .7; }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 9px 14px; padding: 9px 0; }.checkbox-grid label { color: var(--ink); font-size: 12px; }.checkbox-grid input { margin-right: 6px; accent-color: var(--teal); }
.inline-field { display: flex; gap: 7px; align-items: center; }.inline-field select { flex: 1; }.inline-field .button { white-space: nowrap; }
.enum-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.enum-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 12px 14px; font-size: 12px; }
.enum-item > div { min-width: 0; flex: 1; }.enum-item > div strong { display: block; }.enum-item > div small { display: block; margin-top: 4px; }.category-kind { color: var(--muted); font-size: 10px; }.row-disabled { opacity: .55; }
.entry-meta { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 270px; }.storage-warning { background: #fffaf0; color: #9a741f; }
.filter-row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }.filter-row select, .filter-row input, .field input, .field select, .field textarea { border: 1px solid var(--line); background: white; color: var(--ink); padding: 9px 10px; font-size: 12px; min-width: 140px; }.field textarea { width: 100%; min-height: 75px; resize: vertical; }.field label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }.field { margin-bottom: 14px; }.field input, .field select { width: 100%; }
.summary-strip { background: var(--navy); color: white; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin-bottom: 18px; }.summary-strip .summary-item { padding: 19px 20px; border-right: 1px solid rgba(255,255,255,.14); }.summary-strip .summary-item:last-child { border-right: 0; }.summary-item small { display: block; color: rgba(255,255,255,.62); font-size: 10px; margin-bottom: 10px; }.summary-item strong { font: 700 21px "DM Sans"; }.summary-item em { color: #7ed6ca; font-style: normal; font-size: 11px; margin-left: 5px; }
.split-panels { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px; }.mini-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.mini-stat { padding: 15px; background: var(--soft); }.mini-stat small { color: var(--muted); font-size: 10px; display: block; margin-bottom: 7px; }.mini-stat strong { font: 700 19px "DM Sans"; }.mini-stat strong.teal { color: var(--teal); }.mini-stat strong.orange { color: var(--orange); }
.warehouse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.warehouse-card { padding: 15px; border: 1px solid var(--line); }.warehouse-card strong { display: block; font-size: 12px; margin-bottom: 4px; }.warehouse-card small { color: var(--muted); font-size: 10px; }.warehouse-actions { margin-top: 13px; display: flex; gap: 9px; }
.store-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.store-choice-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }.store-choice-card:hover { border-color: var(--teal); background: var(--teal-soft); }.store-choice-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; background: var(--navy); color: white; font: 700 13px "DM Sans"; }.store-choice-copy { min-width: 0; }.store-choice-copy strong, .store-choice-copy small { display: block; }.store-choice-copy strong { font-size: 12px; }.store-choice-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }.store-choice-arrow { margin-left: auto; color: var(--teal); font-size: 18px; }
.dashboard-store-select { min-width: 190px; }
.quick-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.quick-entry-group + .quick-entry-group { margin-top: 18px; }.quick-entry-group > strong { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.quick-entry { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); background: white; color: var(--ink); text-align: left; }
.quick-entry:hover { border-color: var(--teal); background: var(--teal-soft); }
.quick-entry-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; background: var(--navy); color: white; font-size: 13px; }
.quick-entry-copy { min-width: 0; flex: 1; }.quick-entry-copy strong, .quick-entry-copy small { display: block; }.quick-entry-copy strong { font-size: 12px; }.quick-entry-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.quick-entry-arrow { color: var(--teal); font-size: 16px; }
.task-list { display: grid; gap: 10px; }.task-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 17px; border: 1px solid var(--line); background: white; }.task-card:hover { border-color: var(--teal); }.task-card-main { display: flex; align-items: center; gap: 13px; min-width: 0; }.task-date { width: 42px; height: 42px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font: 700 11px "DM Sans"; flex: 0 0 auto; }.task-card strong { display: block; font-size: 13px; }.task-card small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }.task-card-actions { display: flex; align-items: center; gap: 12px; }
.count-banner { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 18px; background: #edf7f5; border: 1px solid #d2ece6; margin-bottom: 16px; }.count-banner strong { color: var(--teal); font-size: 13px; }.count-banner small { color: #5c7777; font-size: 11px; display: block; margin-top: 4px; }.inventory-list { display: grid; gap: 11px; }.inventory-card { border: 1px solid var(--line); background: white; }.inventory-card-head { display: flex; justify-content: space-between; gap: 12px; padding: 15px 17px 12px; border-bottom: 1px solid var(--line); }.inventory-card-head strong { font-size: 13px; }.inventory-card-head small { color: var(--muted); display: block; font-size: 10px; margin-top: 4px; }.inventory-card-value { text-align: right; }.inventory-card-value strong { color: var(--teal); font: 700 15px "DM Sans"; }.inventory-card-value small { color: var(--muted); font-size: 10px; display: block; }.count-entry-grid { padding: 13px 17px; display: grid; gap: 9px; }.count-entry { display: grid; grid-template-columns: minmax(120px, 1fr) 78px 78px 90px; gap: 9px; align-items: center; }.count-entry label { font-size: 11px; color: var(--muted); }.count-entry input { width: 100%; border: 1px solid var(--line); padding: 8px; font-size: 12px; text-align: right; }.count-entry .converted { text-align: right; font: 600 11px "DM Sans"; color: var(--ink); }.count-head { color: #a5b1b1 !important; font-size: 10px !important; }
.empty-state { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.number-positive { color: var(--teal); }.number-negative { color: var(--red); }
.cost-breakdown { display: grid; gap: 14px; }.breakdown-item { display: grid; grid-template-columns: 88px 1fr 70px; gap: 10px; align-items: center; font-size: 11px; }.breakdown-bar { height: 7px; background: #edf2f1; }.breakdown-bar i { display: block; height: 100%; background: var(--teal); }.breakdown-item:nth-child(2n) .breakdown-bar i { background: var(--orange); }.breakdown-item strong { text-align: right; font: 600 11px "DM Sans"; }
.cost-filter-panel { margin-bottom: 18px; }.cost-trend-panel { margin-bottom: 18px; }.cost-trend { display: grid; gap: 14px; }.cost-trend-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 94px; gap: 12px; align-items: center; font-size: 11px; }.cost-trend-row > span { color: var(--muted); }.cost-trend-row strong { text-align: right; font: 600 12px "DM Sans"; }.cost-trend-bar { height: 10px; background: #edf2f1; }.cost-trend-bar i { display: block; height: 100%; background: var(--teal); }
.rules-table td input { width: 70px; border: 1px solid var(--line); padding: 6px; font-size: 11px; text-align: right; }.rules-table th, .rules-table td { padding-left: 11px; padding-right: 11px; }
.tier-editor { display: grid; gap: 8px; }.tier-head, .tier-row { display: grid; grid-template-columns: 70px 1fr 1fr 20px; gap: 8px; align-items: center; }.tier-head { color: var(--muted); font-size: 10px; }.tier-row label { font-size: 11px; color: var(--muted); }.tier-row input { min-width: 0; width: 100%; }.tier-row span { color: var(--muted); font-size: 11px; }
.payroll-month-panel { overflow: hidden; }.payroll-month-summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 13px 17px; background: #edf7f5; border-bottom: 1px solid #d2ece6; color: #527170; font-size: 11px; }.payroll-month-summary strong { color: var(--teal); font: 700 14px "DM Sans"; white-space: nowrap; }.payroll-list { display: grid; gap: 12px; padding: 16px; background: #fbfcfc; }.payroll-row { border: 1px solid var(--line); background: white; }.payroll-row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }.payroll-row-head strong { display: block; font-size: 13px; }.payroll-row-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.payroll-row-total { text-align: right; }.payroll-row-total small { margin: 0 0 4px; }.payroll-row-total strong { color: var(--teal); font: 700 17px "DM Sans"; }.payroll-input-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; padding: 15px 16px 4px; }.payroll-input-grid .field.full { grid-column: 1/-1; }.payroll-input-grid input:disabled, .payroll-input-grid select:disabled { background: #f2f5f4; color: #a0aaaa; cursor: not-allowed; }.holiday-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 16px; padding: 10px 12px; background: #fffaf0; color: #8a6b2c; font-size: 11px; }.holiday-note strong { color: #6d5423; }.holiday-note small { color: #a1844b; }.payroll-breakdown { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px 14px; color: var(--muted); font-size: 10px; line-height: 1.6; }.payroll-breakdown span { white-space: nowrap; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(13,38,45,.43); display: grid; place-items: center; padding: 20px; }.modal { background: white; width: min(680px, 100%); max-height: min(720px, 90vh); overflow: auto; box-shadow: 0 20px 70px rgba(0,0,0,.2); }.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 21px 23px 17px; border-bottom: 1px solid var(--line); }.modal-header h3 { margin: 0; font-size: 17px; }.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.modal-close { border: 0; background: transparent; font-size: 20px; color: var(--muted); }.modal-body { padding: 21px 23px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }.form-grid .full { grid-column: 1/-1; }.modal-footer { padding: 14px 23px 21px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }.platform-inputs { display: grid; gap: 8px; }.platform-input { display: grid; grid-template-columns: 1fr 130px 130px; gap: 8px; align-items: center; }.platform-inputs-wide .platform-input { grid-template-columns: 1.15fr repeat(3, minmax(95px, 1fr)); }.platform-input span { font-size: 11px; color: var(--ink); }.platform-input input { width: 100%; border: 1px solid var(--line); padding: 8px; font-size: 11px; text-align: right; }
.login-form { display: grid; gap: 16px; margin-top: 34px; max-width: 390px; }.login-field { display: grid; gap: 8px; }.login-field span { color: var(--muted); font-size: 11px; }.login-field input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 13px; color: var(--ink); background: white; font-size: 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }.login-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,155,142,.12); }.login-submit { min-height: 46px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 8px; padding: 0 16px; background: var(--navy); color: white; font-size: 13px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }.login-submit:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(18,59,74,.18); }.login-submit b { color: #7ed6ca; font: 700 19px "DM Sans"; }.login-error { min-height: 17px; margin: -4px 0 -5px; color: var(--red); font-size: 11px; }.permission-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 9px 0 2px; }.permission-checks label { display: flex; align-items: flex-start; gap: 7px; min-height: 35px; padding: 9px 10px; border: 1px solid var(--line); background: #fbfcfc; color: var(--ink); font-size: 11px; }.permission-checks input { margin-top: 1px; accent-color: var(--teal); }.permission-section-title { display: block; margin: 4px 0 7px; color: var(--muted); font-size: 11px; font-weight: 600; }.auth-note { padding: 10px 11px; background: #f4fbf9; border: 1px solid #d7ece8; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 720px) { .permission-checks { grid-template-columns: 1fr; } .login-form { margin-top: 27px; max-width: none; } }
.toast-root { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 8px; }.toast { background: var(--navy); color: white; padding: 12px 15px; font-size: 12px; box-shadow: var(--shadow); animation: rise .2s ease; }.toast.success { border-left: 3px solid var(--teal); }.toast.warn { border-left: 3px solid var(--orange); } @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) { .sidebar { width: 218px; flex-basis: 218px; }.content { padding-left: 22px; padding-right: 22px; }.topbar { padding: 0 22px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid, .split-panels { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .login-screen { grid-template-columns: 1fr; }.login-art { min-height: 285px; padding: 24px 26px; }.login-art-copy { margin: 4vh 0 2vh; }.login-art-copy h1 { font-size: 39px; margin-bottom: 13px; }.login-art-copy p:last-child { font-size: 12px; margin: 0; }.login-art-footer { gap: 15px; font-size: 9px; }.login-art::after { width: 270px; height: 270px; right: -100px; bottom: -160px; }.login-panel { padding: 36px 25px 46px; }.login-panel h2 { font-size: 25px; }.login-choices { margin-top: 28px; }.login-note { margin-top: 28px; }.sidebar { position: fixed; left: -250px; transition: left .2s ease; width: 240px; box-shadow: 15px 0 40px rgba(0,0,0,.16); }.sidebar.open { left: 0; }.main-area { width: 100%; }.topbar { height: 65px; padding: 0 15px; gap: 12px; }.mobile-menu { display: grid; }.breadcrumb span, .breadcrumb b { display: none; }.topbar-actions { gap: 7px; }.month-picker { display: none; }.profile-button > span:nth-child(2), .profile-button .chevron { display: none; }.profile-button > span:first-child { width: 30px; height: 30px; }.content { padding: 22px 15px 42px; }.page-heading { display: block; margin-bottom: 20px; }.page-heading h1 { font-size: 23px; }.heading-actions { margin-top: 17px; }.metric-grid { gap: 9px; }.metric-card { padding: 14px; min-height: 112px; }.metric-value { font-size: 21px; }.metric-foot { margin-top: 12px; }.metric-label { font-size: 11px; margin-bottom: 9px; }.summary-strip { grid-template-columns: repeat(2, 1fr); }.summary-strip .summary-item { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }.summary-item strong { font-size: 17px; }.panel-header, .panel-body { padding: 15px; }.panel-header { align-items: flex-start; }.panel-header .filter-row { justify-content: flex-end; }.warehouse-grid { grid-template-columns: 1fr; }.count-entry { grid-template-columns: minmax(100px, 1fr) 64px 64px 72px; gap: 6px; }.count-entry input { padding: 7px 5px; }.inventory-card-head { padding: 13px; }.count-entry-grid { padding: 11px 13px; }.form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.platform-input { grid-template-columns: 1fr 1fr 1fr; }.toast-root { left: 15px; right: 15px; bottom: 15px; }.toast { text-align: center; } }
@media (max-width: 720px) { .enum-list { grid-template-columns: 1fr; }.platform-input, .platform-inputs-wide .platform-input { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 5px; }.platform-inputs-wide .platform-input span:first-child { grid-column: 1/-1; }.entry-meta { max-width: 180px; }.store-choice-grid { grid-template-columns: 1fr; }.quick-entry-grid { grid-template-columns: 1fr; }.quick-entry-copy small { white-space: normal; } }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; }.task-rule-list > div { display: block; }.task-rule-list span { display: block; margin-top: 5px; }.employee-detail .split-panels { gap: 12px; }.warehouse-actions { display: grid; gap: 8px; } }
@media (max-width: 720px) { .dashboard-statistics { margin-top: 24px; }.dashboard-section-heading { display: block; margin-bottom: 16px; }.dashboard-section-heading h2 { font-size: 19px; }.dashboard-section-filter { justify-content: stretch; margin-top: 12px; }.dashboard-section-filter select { flex: 1; min-width: 0; } }
@media (max-width: 720px) { .todo-panel .panel-header { align-items: flex-start; }.todo-summary { padding: 5px 8px; }.todo-summary strong { font-size: 16px; }.todo-tabs { gap: 16px; margin-right: -15px; padding-right: 15px; }.todo-tab { font-size: 12px; }.todo-list { height: 370px; }.todo-item { min-height: 74px; padding: 15px 0; gap: 8px; }.todo-item strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.todo-item small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.todo-item .button.text { min-height: 36px; padding: 8px 0 8px 6px; }.payment-task-item { align-items: flex-start; min-height: 52px; }.payment-submit { width: 100%; min-height: 44px; } }
@media (max-width: 720px) { .payroll-month-summary { align-items: flex-start; flex-direction: column; }.payroll-month-summary strong { white-space: normal; }.payroll-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 9px; padding-left: 13px; padding-right: 13px; }.payroll-row-head { padding-left: 13px; padding-right: 13px; }.payroll-row-total strong { font-size: 15px; }.holiday-note { margin-left: 13px; margin-right: 13px; }.payroll-breakdown { padding-left: 13px; padding-right: 13px; }.payroll-breakdown span { white-space: normal; }.cost-trend-row { grid-template-columns: 62px minmax(0, 1fr) 82px; gap: 8px; }.cost-trend-row strong { font-size: 11px; }.cost-filter-panel .panel-header { display: block; }.cost-filter-panel .filter-row { margin-top: 12px; justify-content: stretch; }.cost-filter-panel .filter-row select { flex: 1; min-width: 0; } }
.assistant-launcher { position: fixed; right: 25px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--navy); color: white; box-shadow: 0 10px 28px rgba(18,59,74,.26); cursor: grab; touch-action: none; user-select: none; }.assistant-launcher:hover { box-shadow: 0 12px 32px rgba(18,59,74,.34); }.assistant-launcher.dragging { cursor: grabbing; transform: scale(1.04); }.assistant-launcher.active { background: var(--teal); }.assistant-launcher span { font: 700 15px "DM Sans"; line-height: 1; }.assistant-launcher small { margin-top: 3px; font-size: 9px; }.assistant-panel { position: fixed; right: 25px; bottom: 94px; z-index: 39; display: flex; flex-direction: column; width: min(390px, calc(100vw - 30px)); height: min(650px, calc(100vh - 125px)); overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 18px 60px rgba(18,59,74,.2); }.assistant-login-panel { position: fixed; right: 25px; bottom: 94px; z-index: 39; width: min(270px, calc(100vw - 30px)); padding: 18px 20px 20px; border: 1px solid var(--line); background: white; box-shadow: 0 18px 60px rgba(18,59,74,.2); }.assistant-login-panel .assistant-icon-button { float: right; margin: -7px -9px 8px 10px; }.assistant-login-panel strong { display: block; font-size: 14px; }.assistant-login-panel p { clear: both; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.assistant-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 17px 14px; border-bottom: 1px solid var(--line); background: #f6faf9; }.assistant-header strong, .assistant-header small { display: block; }.assistant-header strong { font-size: 14px; }.assistant-header small { margin-top: 4px; color: var(--muted); font-size: 10px; }.assistant-icon-button { width: 30px; height: 30px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: 18px; line-height: 1; }.assistant-messages { flex: 1; overflow: auto; padding: 15px; background: #fbfcfc; }.assistant-message { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 11px; }.assistant-message > span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; background: var(--navy); color: white; font: 700 10px "DM Sans"; }.assistant-message.user { flex-direction: row-reverse; }.assistant-message.user > span { background: var(--teal); }.assistant-message p { max-width: 82%; margin: 0; padding: 9px 10px; background: white; border: 1px solid var(--line); color: var(--ink); font-size: 11px; line-height: 1.6; }.assistant-message.user p { background: var(--teal-soft); border-color: #c7e5df; }.assistant-draft { margin: 0 15px 12px; padding: 13px; border: 1px solid #b9d8d3; background: #f7fcfb; }.assistant-draft-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--teal); font-size: 11px; font-weight: 700; }.assistant-draft-title .assistant-icon-button { width: 24px; height: 24px; border: 0; background: transparent; }.assistant-draft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.assistant-field { min-width: 0; }.assistant-field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }.assistant-field input, .assistant-field select { width: 100%; min-width: 0; min-height: 34px; border: 1px solid var(--line); padding: 6px 7px; background: white; color: var(--ink); font-size: 11px; }.assistant-field:nth-child(odd):last-child, .assistant-field:last-child { grid-column: 1/-1; }.assistant-checkbox > span:last-child { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 7px; border: 1px solid var(--line); background: white; color: var(--ink); }.assistant-checkbox input { accent-color: var(--teal); }.assistant-draft-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }.assistant-composer { padding: 12px 15px 15px; border-top: 1px solid var(--line); background: white; }.assistant-composer textarea { display: block; width: 100%; min-height: 54px; resize: vertical; border: 1px solid var(--line); padding: 9px 10px; color: var(--ink); font-size: 12px; line-height: 1.5; }.assistant-composer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }.assistant-voice-button { min-height: 32px; border: 1px solid var(--line); padding: 0 11px; background: white; color: var(--ink); font-size: 11px; }.assistant-voice-button.listening { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
@media (max-width: 720px) { .assistant-launcher { right: 16px; bottom: 16px; width: 54px; height: 54px; }.assistant-panel { right: 0; bottom: 0; width: 100%; height: min(88vh, 720px); border-right: 0; border-bottom: 0; }.assistant-login-panel { right: 16px; bottom: 86px; width: min(270px, calc(100vw - 32px)); }.assistant-header { padding: 15px; }.assistant-messages { padding: 12px; }.assistant-draft { margin-left: 12px; margin-right: 12px; padding: 12px; }.assistant-composer { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }.assistant-field input, .assistant-field select { min-height: 40px; font-size: 14px; }.assistant-composer textarea { font-size: 15px; } }
.assistant-avatar { position: relative; display: block !important; width: 36px; height: 36px; border: 3px solid #fff; border-radius: 50%; background: #f5c98b; box-shadow: inset 0 -5px 0 rgba(18,59,74,.1); }
.assistant-avatar::before, .assistant-avatar::after { content: ""; position: absolute; top: 12px; width: 4px; height: 6px; border-radius: 50%; background: var(--navy); }
.assistant-avatar::before { left: 8px; } .assistant-avatar::after { right: 8px; }
.assistant-avatar i { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 6px; border-bottom: 2px solid var(--navy); border-radius: 50%; }
.assistant-avatar b { position: absolute; top: -7px; left: 13px; width: 5px; height: 7px; border-radius: 3px; background: #fff; }
.assistant-live-transcript { margin: 8px 0 12px; padding: 10px 11px; border: 1px solid #efc887; background: #fff8eb; color: var(--ink); font-size: 11px; line-height: 1.6; }
.assistant-live-transcript span { display: block; margin-bottom: 3px; color: var(--orange); font-size: 10px; font-weight: 700; }
.site-icp-footer { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 16px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(223, 231, 230, .92); background: rgba(255, 255, 255, .94); box-shadow: 0 -4px 16px rgba(26, 55, 62, .04); backdrop-filter: blur(10px); }
.site-icp-footer a { color: #718187; font-size: 12px; line-height: 1.4; text-decoration: none; transition: color .15s ease; }
.site-icp-footer a:hover, .site-icp-footer a:focus-visible { color: var(--teal); text-decoration: underline; }
.content { padding-bottom: 76px; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pagination-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pagination-actions strong { color: var(--ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.pagination-actions .button.text { min-height: 30px; padding: 5px 7px; }
.pagination-actions .button.text:disabled { opacity: .4; cursor: not-allowed; }
.pagination-actions select { min-height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; background: white; color: var(--ink); font-size: 11px; }
.employee-row-actions { display: inline-flex; align-items: center; gap: 12px; }
.leave-mode-options { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-choice { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); cursor: pointer; }
.radio-choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.radio-choice input { margin: 0; accent-color: var(--teal); }
.radio-choice small { color: var(--muted); font-size: 11px; }

/* Store pickers keep the location as the primary label and the brand as context. */
.store-choice-copy strong { font-size: 15px; font-weight: 700; }
.store-choice-copy small { margin-top: 5px; font-size: 10px; }
.attendance-store-card strong, .store-radio-copy strong { font-size: 14px; font-weight: 700; }
.attendance-store-card small, .store-radio-copy small { margin-top: 4px; font-size: 10px; }
.selected-store-summary strong { font-size: 14px; font-weight: 700; }
.selected-store-summary small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
@media (max-width: 720px) { .pagination-bar { align-items: flex-start; flex-direction: column; gap: 9px; }.pagination-actions { width: 100%; justify-content: space-between; gap: 6px; }.pagination-actions .button.text { min-height: 38px; }.pagination-actions select { min-height: 38px; font-size: 12px; } }
.nav-icon, .quick-entry-icon, .quick-entry-arrow, .quick-entry-manage { display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 18px; height: 18px; stroke-width: 1.9; }
.quick-entry-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.quick-entry-arrow svg { width: 16px; height: 16px; stroke-width: 2; }
.quick-entry-manage { gap: 6px; }
.quick-entry-manage svg { width: 15px; height: 15px; }
.quick-entry-manager-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-entry-manager-option { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.quick-entry-manager-option:has(input:checked) { border-color: #b8c1f4; background: #f7f8ff; }
.quick-entry-manager-option input { flex: 0 0 auto; accent-color: #5869e8; }
.quick-entry-manager-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: #eef0ff; color: #5869e8; }
.quick-entry-manager-icon svg { width: 16px; height: 16px; }
.quick-entry-manager-option > span:last-child { min-width: 0; }
.quick-entry-manager-option strong, .quick-entry-manager-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-entry-manager-option strong { color: var(--ink); font-size: 12px; }
.quick-entry-manager-option small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.quick-entry-empty { grid-column: 1 / -1; }
@media (max-width: 720px) { .quick-entry-manager-list { grid-template-columns: 1fr; gap: 8px; }.quick-entry-manager-option { min-height: 54px; padding: 10px; }.quick-entry-manager-option small { white-space: normal; line-height: 1.35; } }
.attendance-store-selector { margin-bottom: 18px; padding: 15px; border: 1px solid var(--line); background: #fbfcfc; }.attendance-store-selector-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }.attendance-store-selector-head strong { font-size: 13px; }.attendance-store-selector-head small { color: var(--muted); font-size: 10px; }.attendance-store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }.attendance-store-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }.attendance-store-card:hover, .attendance-store-card.selected { border-color: var(--teal); background: var(--teal-soft); }.attendance-store-card > span:last-child { min-width: 0; }.attendance-store-card strong, .attendance-store-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attendance-store-card strong { font-size: 11px; }.attendance-store-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }.opening-status { display: inline-block; margin-left: 6px; vertical-align: middle; }.store-radio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }.store-radio-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); background: white; cursor: pointer; }.store-radio-card.selected { border-color: var(--teal); background: var(--teal-soft); }.store-radio-card input { position: absolute; opacity: 0; pointer-events: none; }.store-radio-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; background: var(--navy); color: white; font: 700 12px "DM Sans"; }.store-radio-copy { min-width: 0; }.store-radio-copy strong, .store-radio-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.store-radio-copy strong { font-size: 11px; }.store-radio-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }.attendance-batch-head, .attendance-batch-employee { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(120px, 1fr); gap: 9px; align-items: center; }.attendance-batch-head { padding: 8px 10px; color: var(--muted); background: #f7f9f9; font-size: 10px; }.attendance-batch-rows { border: 1px solid var(--line); border-top: 0; }.attendance-batch-employee { padding: 10px; border-top: 1px solid var(--line); }.attendance-batch-employee:first-child { border-top: 0; }.attendance-employee-name strong, .attendance-employee-name small { display: block; }.attendance-employee-name strong { font-size: 12px; }.attendance-employee-name small { margin-top: 3px; color: var(--muted); font-size: 10px; }.attendance-batch-employee input, .attendance-batch-employee select { width: 100%; min-width: 0; border: 1px solid var(--line); padding: 9px 8px; background: white; color: var(--ink); font-size: 12px; }.attendance-batch-employee .batch-number { text-align: right; }.batch-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.batch-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }.batch-check input { width: auto; accent-color: var(--teal); }.hidden { display: none !important; }
@media (max-width: 720px) { .attendance-store-selector { padding: 12px; }.attendance-store-selector-head { display: block; }.attendance-store-selector-head small { display: block; margin-top: 4px; }.attendance-store-grid, .store-radio-grid { grid-template-columns: 1fr; }.attendance-store-card, .store-radio-card { min-height: 52px; padding: 10px 12px; }.attendance-store-card strong, .store-radio-copy strong { font-size: 12px; }.attendance-batch-head { display: none; }.attendance-batch-rows { border-top: 1px solid var(--line); }.attendance-batch-employee { grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 8px; padding: 12px 10px; }.attendance-batch-employee > input[data-batch-field="note"], .attendance-batch-employee > .batch-check + .hidden { grid-column: 2; }.attendance-batch-employee > .batch-pair + input[data-batch-field="note"] { grid-column: 1/-1; }.attendance-employee-name { align-self: start; }.batch-pair { gap: 5px; }.attendance-batch-employee input, .attendance-batch-employee select { min-height: 42px; font-size: 15px; }.attendance-batch-employee .batch-check { min-height: 42px; }.count-entry[data-count-entry] { grid-template-columns: minmax(78px, 1fr) 1fr 1fr; gap: 7px; }.count-entry[data-count-entry] .converted { grid-column: 2/-1; text-align: left; padding-top: 2px; }.count-entry[data-count-entry] input { min-height: 42px; padding: 8px 6px; font-size: 16px; }.count-entry-grid { padding: 10px 11px; }.modal-backdrop { place-items: end center; padding: 0; }.modal { width: 100%; max-height: 94vh; border-radius: 10px 10px 0 0; }.modal-header { padding: 16px 17px 13px; }.modal-header h3 { font-size: 16px; }.modal-body { padding: 16px 17px; }.modal-footer { position: sticky; bottom: 0; padding: 11px 17px calc(11px + env(safe-area-inset-bottom)); background: white; }.modal-footer .button { flex: 1; min-height: 44px; }.field input, .field select, .field textarea { min-height: 44px; font-size: 15px; }.field textarea { min-height: 88px; }.inline-field { align-items: stretch; }.inline-field .button { min-height: 44px; }.store-choice-card { min-height: 54px; }.quick-entry { min-height: 54px; } }
.batch-conversion { display: block; color: var(--teal); font-size: 10px; }
.inventory-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 6px; }
.sku-spec-tag, .storage-tag, .warehouse-tag { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; font-size: 10px; line-height: 1.2; font-weight: 700; }
.sku-spec-tag { border: 1px solid #f0c88f; background: #fff5e6; color: #9d5d1c; }
.storage-tag { border: 1px solid #b8d9d2; background: #e9f7f4; color: #137c71; }
.warehouse-tag { border: 1px solid #c5d3e8; background: #edf3fb; color: #315b8a; }
.row-risk td { background: #fff5f4; }
.attendance-confirm-summary { display: grid; gap: 12px; }
.attendance-confirm-summary .data-table { min-width: 520px; }
.attendance-batch-employee:has([data-batch-field="active"]:checked) { background: #f6fbfa; }
.attendance-batch-employee > [data-batch-field="active"] { accent-color: var(--teal); }
.preopening-entry-meta .batch-check { align-items: flex-end; padding-bottom: 10px; }
@media (max-width: 720px) { .attendance-confirm-summary .data-table { min-width: 0; }.preopening-entry-meta .batch-check { align-items: center; padding-bottom: 0; } }
.row-highlight td { background: #eef2ff; box-shadow: inset 0 2px 0 #5b5ce2, inset 0 -2px 0 #5b5ce2; }
.cell-mismatch { background: #fff0ef !important; color: #b5423e; font-weight: 700; }
.cell-mismatch small { display: block; margin-top: 4px; color: #c85b58; font-size: 10px; font-weight: 500; white-space: nowrap; }
.order-detail-table td { vertical-align: top; }
@media (max-width: 720px) { .inventory-tags { gap: 4px; }.sku-spec-tag, .storage-tag, .warehouse-tag { min-height: 25px; padding: 4px 7px; font-size: 10px; }.order-detail-table { min-width: 920px; } }

/* A restrained office-system layer: stronger hierarchy, quieter surfaces, and touch-safe controls. */
:root {
  --ink: #20343b;
  --muted: #6d7d82;
  --line: #dfe7e6;
  --soft: #f3f6f5;
  --navy: #193e4d;
  --navy-2: #245b6b;
  --teal: #2d9b8e;
  --teal-soft: #e7f4f1;
  --orange: #c9823f;
  --orange-soft: #fff3e7;
  --red: #c15d5b;
  --shadow: 0 1px 2px rgba(26, 55, 62, .04), 0 10px 28px rgba(26, 55, 62, .05);
}

html { background: var(--soft); }
body { background: var(--soft); -webkit-font-smoothing: antialiased; }
.topbar { box-shadow: 0 1px 0 rgba(26, 55, 62, .02); }
.content { max-width: 1660px; }
.page-heading h1 { font-weight: 700; color: #172f38; }
.page-heading p { line-height: 1.6; }
.panel, .metric-card, .attendance-store-selector, .task-card, .inventory-card, .quick-entry, .count-banner, .store-choice-card { border-radius: 7px; }
.panel, .metric-card { box-shadow: var(--shadow); }
.panel-header { min-height: 72px; }
.button, .filter-row select, .filter-row input, .field input, .field select, .field textarea { border-radius: 6px; }
.button { min-height: 40px; font-weight: 600; }
.button.primary { background: #193e4d; }
.button.primary:hover { background: var(--navy-2); }
.heading-actions { align-items: stretch; }
.summary-strip { box-shadow: var(--shadow); border-radius: 7px; overflow: hidden; }
.tabs { border-bottom-color: var(--line); }
.tab { min-height: 40px; font-weight: 600; }
.data-table th { background: #f7f9f9; font-weight: 600; }
.data-table td { color: #2d4147; }
.data-table tbody tr:hover { background: #f5faf8; }
.store-choice-card:hover, .attendance-store-card:hover, .attendance-store-card.selected, .quick-entry:hover { box-shadow: 0 4px 12px rgba(45, 155, 142, .09); }
.inventory-card-head { background: #fcfdfd; }
.count-entry input:focus, .field input:focus, .field select:focus, .field textarea:focus, .filter-row select:focus { outline: 3px solid rgba(45, 155, 142, .14); border-color: var(--teal); }
.assistant-launcher { box-shadow: 0 8px 22px rgba(25, 62, 77, .22); }

@media (max-width: 720px) {
  .content { padding-top: 18px; }
  .page-heading h1 { margin-bottom: 5px; }
  .heading-actions { gap: 8px; }
  .heading-actions .button, .heading-actions select { min-height: 44px; }
  .panel-header { flex-wrap: wrap; min-height: 0; }
  .panel-header > .filter-row, .panel-header > select { width: 100%; }
  .panel-header > .filter-row select { width: 100%; }
  .panel-body { overflow: hidden; }
  .table-wrap { margin: 0 -15px; padding: 0 15px 5px; }
  .data-table { min-width: 700px; }
  .inventory-record-table { min-width: 1080px; }
  .inventory-card-head { align-items: flex-start; }
  .inventory-card-value { min-width: 74px; }
  .count-entry label { min-width: 0; }
  .count-entry input { border-radius: 6px; }
  .attendance-store-selector { box-shadow: var(--shadow); }
  .attendance-store-card, .store-choice-card, .quick-entry { min-height: 56px; }
  .todo-list { height: 370px; }
  .modal { box-shadow: 0 -8px 32px rgba(26, 55, 62, .14); }
}

.inventory-analytics { margin-bottom: 18px; }
.inventory-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 18px; }
.inventory-analytics-panel { min-width: 0; }
.inventory-chart-wrap { min-width: 0; }
.inventory-mini-chart { position: relative; }
.inventory-trend-chart { display: block; width: 100%; height: auto; min-height: 250px; overflow: visible; }
.inventory-chart-grid-line { stroke: #e6eeee; stroke-width: 1; stroke-dasharray: 3 4; }
.inventory-chart-axis-label { fill: #7c8b8e; font: 10px "Noto Sans SC", sans-serif; }
.inventory-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.inventory-chart-average { fill: none; stroke-width: 1.5; stroke-dasharray: 6 5; opacity: .65; }
.inventory-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 5px; }
.inventory-chart-legend-item { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 10px; }
.inventory-chart-legend-item i { width: 18px; height: 3px; display: inline-block; background: var(--legend-color); }
.inventory-chart-legend-item small { color: var(--muted); font-size: 10px; }
.inventory-anomaly-list { min-height: 250px; max-height: 310px; overflow-y: auto; }
.inventory-anomaly-item { display: flex; align-items: flex-start; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.inventory-anomaly-item:first-child { padding-top: 0; }
.inventory-anomaly-item:last-child { border-bottom: 0; }
.inventory-anomaly-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: #ffe2dc; color: #a33b32; font: 800 12px "DM Sans"; }
.inventory-anomaly-item strong { display: block; color: #85332d; font-size: 11px; line-height: 1.4; }
.inventory-anomaly-item p, .inventory-anomaly-empty small { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.inventory-anomaly-empty { padding: 18px 0; }
.inventory-anomaly-empty strong { display: block; font-size: 12px; }
.inventory-latest-panel, .inventory-drilldown-panel { margin-top: 18px; }
.inventory-latest-total { color: var(--navy); font: 700 17px "DM Sans", sans-serif; white-space: nowrap; }
.inventory-latest-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.inventory-latest-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--line); background: #fbfcfc; }
.inventory-latest-card > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inventory-latest-card .store-dot { width: 27px; height: 27px; }
.inventory-latest-card > div > div { min-width: 0; }
.inventory-latest-card strong, .inventory-latest-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-latest-card strong { font-size: 11px; }
.inventory-latest-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.inventory-latest-card > b { color: var(--navy); font: 700 12px "DM Sans", sans-serif; white-space: nowrap; }
.inventory-drilldown-list { display: grid; gap: 9px; }
.inventory-drilldown-store { border: 1px solid var(--line); background: #fbfcfc; }
.inventory-drilldown-store[open] { background: white; }
.inventory-drilldown-store summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 13px; cursor: pointer; list-style: none; }
.inventory-drilldown-store summary::-webkit-details-marker { display: none; }
.inventory-drilldown-store summary::after { content: "+"; color: var(--teal); font-size: 18px; line-height: 1; }
.inventory-drilldown-store[open] summary::after { content: "−"; }
.inventory-drilldown-store summary > span { min-width: 0; }
.inventory-drilldown-store summary strong, .inventory-drilldown-store summary small { display: block; }
.inventory-drilldown-store summary strong { font-size: 12px; }
.inventory-drilldown-store summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.inventory-drilldown-store summary b { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.inventory-drilldown-store summary b.inventory-warning-count { color: var(--red); }
.inventory-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 0 13px 13px; }
.inventory-material-card { min-width: 0; padding: 10px; border: 1px solid var(--line); background: white; }
.inventory-material-card.has-anomaly { border-color: #efaaa0; background: #fffaf9; }
.inventory-material-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.inventory-material-head > div { min-width: 0; }
.inventory-material-head strong, .inventory-material-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-material-head strong { font-size: 11px; }
.inventory-material-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.inventory-material-head .status { flex: 0 0 auto; padding: 3px 5px; }
.inventory-mini-chart { height: 58px; margin-top: 6px; }
.inventory-mini-chart svg { display: block; width: 100%; height: 58px; overflow: visible; }
.inventory-mini-axis { fill: none; stroke: #e5eceb; stroke-width: 1; }
.inventory-mini-threshold { fill: none; stroke: #e5aaa2; stroke-width: 1; stroke-dasharray: 3 3; }
.inventory-mini-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inventory-material-card.has-anomaly .inventory-mini-line { stroke: var(--red); }
.inventory-mini-chart path:not(.inventory-mini-axis):not(.inventory-mini-threshold):not(.inventory-mini-line) { display: none; }
.inventory-mini-chart circle { fill: var(--teal); }
.inventory-material-card.has-anomaly .inventory-mini-chart circle { fill: var(--red); }
.inventory-anomaly-note, .inventory-material-foot { min-height: 30px; margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.inventory-anomaly-note { color: #a33b32; font-weight: 600; }

@media (max-width: 980px) {
  .inventory-analytics-grid { grid-template-columns: 1fr; }
  .inventory-latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .inventory-analytics-grid { gap: 12px; }
  .inventory-trend-chart { min-height: 210px; }
  .inventory-anomaly-list { min-height: 0; max-height: 260px; }
  .inventory-latest-panel .panel-header { display: block; }
  .inventory-latest-total { display: block; margin-top: 8px; }
  .inventory-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-material-grid { grid-template-columns: 1fr; }
  .inventory-drilldown-store summary { min-height: 58px; }
}

.category-kind-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border: 1px solid #dbe5e3; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 1.2; }
.category-kind-tag.cost { color: var(--muted); background: #f5f7f7; }
.category-kind-tag.deduction { color: #8f2f27; background: #ffe2dc; border-color: #efaaa0; font-weight: 800; box-shadow: 0 0 0 2px rgba(193, 93, 91, .08); }
.batch-labeled-input { display: block; min-width: 0; }
.batch-labeled-input > span, .preopening-date-range label > span, .preopening-entry-meta label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; line-height: 1.2; }
.batch-labeled-input input { width: 100%; }
.batch-row-active { background: #f5fbf9; }
.preopening-entry-fields { min-width: 0; }
.preopening-date-range, .preopening-entry-meta { display: grid; gap: 7px; min-width: 0; }
.preopening-date-range { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
.preopening-entry-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preopening-date-range-control { display: grid; gap: 5px; min-width: 0; }
.preopening-date-range-control > span { color: var(--muted); font-size: 10px; line-height: 1.2; }
.preopening-range-inputs { display: grid; grid-template-columns: minmax(135px, 1fr) auto minmax(135px, 1fr); gap: 7px; align-items: center; }
.preopening-range-inputs b { color: var(--muted); font-size: 11px; font-weight: 500; }
.preopening-entry-fields label { min-width: 0; }
.preopening-entry-fields input, .preopening-entry-fields select { box-sizing: border-box; width: 100%; min-width: 0; }
.preopening-entry-fields .batch-conversion { margin-top: 8px; line-height: 1.45; }

@media (max-width: 720px) {
  .batch-labeled-input > span, .preopening-date-range label > span, .preopening-entry-meta label > span { font-size: 11px; }
  .batch-labeled-input input { min-height: 42px; }
  .preopening-date-range { grid-template-columns: 1fr; gap: 9px; }
  .preopening-entry-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 7px; }
  .preopening-entry-meta label:last-child { grid-column: 1 / -1; }
  .preopening-entry-fields input, .preopening-entry-fields select { min-height: 42px; font-size: 15px; }
}

.preopening-batch-modal { width: min(1180px, calc(100vw - 32px)); }
.preopening-batch-modal .attendance-batch-head, .preopening-batch-modal .attendance-batch-employee { grid-template-columns: 135px minmax(760px, 1fr) 180px; }
.preopening-batch-modal .attendance-batch-employee { align-items: start; }
.preopening-batch-modal .preopening-entry-meta { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.preopening-batch-modal .preopening-date-range { display: none; }
.preopening-batch-modal .preopening-entry-fields { display: grid; gap: 8px; }
@media (max-width: 720px) {
  .preopening-batch-modal { width: 100%; }
  .preopening-batch-modal .attendance-batch-employee { grid-template-columns: 1fr; }
  .preopening-batch-modal .attendance-batch-employee > input[data-batch-field="note"] { grid-column: 1; }
  .preopening-batch-modal .preopening-entry-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preopening-batch-modal .preopening-entry-meta label:last-child { grid-column: 1 / -1; }
  .preopening-range-inputs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}

/* Final office-system pass: consistent surfaces, focus states, and touch targets. */
body { color: #20343b; background: #f1f5f4; }
.app-shell { background: #f1f5f4; }
.sidebar { width: 236px; flex-basis: 236px; padding: 24px 14px 18px; background: #163b49; }
.sidebar-brand { padding: 0 12px 24px; }
.nav-section { padding: 24px 12px 8px; }
.nav-list { gap: 4px; }
.nav-item { min-height: 42px; border-radius: 6px; padding: 10px 12px; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 #aeb8ff; }
.topbar { height: 70px; padding: 0 32px; border-bottom-color: #dce6e4; }
.month-picker input, .filter-row select, .dashboard-store-select { min-height: 38px; border-radius: 6px; }
.content { padding-top: 28px; }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { font-size: 26px; letter-spacing: 0; }
.panel, .metric-card { border-color: #dce6e4; box-shadow: 0 1px 2px rgba(26,55,62,.03), 0 8px 22px rgba(26,55,62,.04); }
.panel-header { padding: 17px 20px; border-bottom-color: #e2eae8; }
.panel-header h3 { color: #1b343d; }
.panel-body { padding: 19px 20px; }
.button { min-height: 40px; border-color: #d5e1df; border-radius: 6px; transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.button:hover { box-shadow: 0 3px 10px rgba(25,62,77,.08); transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible, .quick-entry:focus-visible { outline: 3px solid rgba(88,105,232,.22); outline-offset: 2px; }
.button.primary { background: #193e4d; border-color: #193e4d; }
.button.teal { background: #2d9b8e; border-color: #2d9b8e; }
.metric-card { min-height: 122px; padding: 18px 19px; }
.metric-value { font-size: 25px; }
.data-table th { padding: 11px 15px; color: #687b80; background: #f5f8f7; border-bottom-color: #dce6e4; }
.data-table td { padding: 13px 15px; border-bottom-color: #e5eceb; }
.data-table tbody tr:hover { background: #f4faf8; }
.status { border-radius: 4px; font-weight: 600; }
.quick-entry { border-color: #dce6e4; border-radius: 6px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.quick-entry:hover { border-color: #9bcfc7; box-shadow: 0 6px 16px rgba(45,155,142,.1); transform: translateY(-1px); }
.todo-summary { border: 1px solid #f0d9b8; border-radius: 5px; }
.todo-tab { color: #74858a; }
.todo-tab.active { color: #193e4d; }
.todo-list { scrollbar-color: #b9cbc7 transparent; }
.todo-item .button.text { color: #2d8f84; }
.modal-backdrop { background: rgba(15,37,44,.46); backdrop-filter: blur(3px); }
.modal { border: 1px solid #d8e4e2; border-radius: 9px; box-shadow: 0 22px 55px rgba(15,37,44,.2); }
.modal-header { background: #fbfdfc; border-bottom-color: #e2eae8; }
.modal-footer { background: #fbfdfc; border-top-color: #e2eae8; }
.field input, .field select, .field textarea { border-color: #d6e2e0; border-radius: 6px; background: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9c8c3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(88,105,232,.13); border-color: var(--teal); }
.payment-task-intro { border-color: #cfe5df; background: #f1faf7; color: #5e7377; }
.payment-select-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; margin: 0 0 10px; padding: 9px 11px; border: 1px solid #cbdedb; background: #f8fcfb; cursor: pointer; }
.payment-select-all-main { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.payment-select-all-main input { width: 17px; height: 17px; accent-color: var(--teal); }
.payment-select-all-main strong { color: var(--navy); font-size: 12px; }
.payment-select-all small { color: #6d7d82; font-size: 10px; white-space: nowrap; }
.payment-select-all[data-selection-state="partial"] { border-color: #8fc8bf; background: #f1faf7; }
.payment-select-all[data-selection-state="partial"] .payment-select-all-main::after { content: "部分选择"; margin-left: 2px; padding: 3px 6px; border-radius: 3px; background: #dff2ed; color: #2d7f76; font-size: 10px; font-weight: 600; }
.payment-select-all[data-selection-state="all"] { border-color: #8fc8bf; background: #eef9f6; }
.payment-task-item { border-color: #dce6e4; border-radius: 5px; transition: border-color .15s ease, background .15s ease; }
.payment-task-item:hover { background: #f7fcfa; border-color: #8dc8bf; }
.payment-task-item.completed:hover { background: #f3f5f4; border-color: #e5e9e8; }
.payment-submit { min-width: 148px; }

.attendance-perspective-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 12px; border: 1px solid #dce6e4; background: #f8fbfa; }
.attendance-view-switch { display: inline-flex; padding: 3px; border: 1px solid #cbdcd9; background: #eef5f3; }
.attendance-view-switch button { min-height: 36px; padding: 7px 16px; border: 0; background: transparent; color: #63767a; cursor: pointer; font: inherit; font-size: 13px; }
.attendance-view-switch button.active { background: var(--navy); color: #fff; box-shadow: 0 2px 5px rgba(46,59,116,.14); }
.attendance-perspective-filters { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.attendance-perspective-filters label { display: inline-flex; align-items: center; gap: 6px; color: #6b7d80; font-size: 12px; }
.attendance-perspective-filters select { min-width: 128px; min-height: 36px; padding: 6px 10px; border: 1px solid #d2e0de; border-radius: 5px; background: #fff; color: #20343b; }
.attendance-reset-detail { min-height: 36px; }
.attendance-summary-table th, .attendance-summary-table td { white-space: nowrap; }
.attendance-summary-table td:nth-child(2) { min-width: 92px; }
.attendance-summary-wrap { border: 1px solid #e1ebe9; }
.detail-filter-note { margin: -2px 0 12px; color: #6c7d81; font-size: 12px; }
.attendance-readonly-notice { margin-bottom: 14px; padding: 11px 13px; border: 1px solid #ead8b7; background: #fffaf1; color: #82663e; font-size: 12px; line-height: 1.5; }

@media (max-width: 720px) {
  .sidebar { left: 0; transform: translateX(-100%); }
  .sidebar.open { left: 0; transform: translateX(0); }
  .sidebar { width: min(292px, 86vw); flex-basis: min(292px, 86vw); }
  .topbar { height: 62px; padding: 0 15px; }
  .topbar-actions { gap: 8px; }
  .month-picker span, .profile-button > span:nth-child(2), .profile-button > .chevron { display: none; }
  .month-picker input { width: 126px; min-height: 40px; }
  .content { padding: 20px 15px 48px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 23px; }
  .panel-header { padding: 15px; }
  .panel-body { padding: 15px; }
  .metric-card { min-height: 112px; padding: 15px; }
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
  .payment-select-all { min-height: 50px; padding: 10px; }
  .payment-select-all-main input { width: 20px; height: 20px; }
  .payment-select-all-main strong { font-size: 13px; }
  .payment-submit { margin-top: 12px; }
  .attendance-perspective-bar { align-items: stretch; gap: 10px; padding: 10px; }
  .attendance-view-switch { width: 100%; }
  .attendance-view-switch button { flex: 1; min-height: 42px; }
  .attendance-perspective-filters { width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-perspective-filters label { display: grid; gap: 4px; }
  .attendance-perspective-filters select { width: 100%; min-width: 0; min-height: 42px; font-size: 14px; }
  .attendance-reset-detail { width: 100%; }
  .attendance-summary-wrap { overflow-x: auto; }
  .attendance-summary-table { min-width: 720px; }
}

/* Ant Design inspired finishing layer: neutral surfaces, clear hierarchy, and touch-friendly actions. */
:root {
  --ink: #1c2742;
  --muted: #7b8498;
  --line: #e5e9f2;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --navy: #20285f;
  --navy-2: #3b4ba7;
  --teal: #5869e8;
  --teal-soft: #eef0ff;
  --orange: #e9954f;
  --orange-soft: #fff3e8;
  --red: #d45e6b;
  --shadow: 0 2px 6px rgba(46, 59, 116, .04), 0 10px 26px rgba(46, 59, 116, .07);
}

html, body { background: var(--soft); }
body { color: var(--ink); overflow-x: hidden; }
.app-shell { background: var(--soft); }
.main-area { min-width: 0; }
.topbar { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(31, 45, 53, .03); }
.sidebar { background: var(--navy); box-shadow: 4px 0 16px rgba(46, 59, 116, .12); }
.sidebar { overflow-y: auto; }
.nav-item { border-radius: 8px; }
.nav-item.active { background: rgba(255, 255, 255, .14); }
.profile-button > span:first-child, .brand-mark, .store-dot { border-radius: 8px; }

.panel, .metric-card, .attendance-store-selector, .task-card, .inventory-card, .quick-entry, .count-banner, .store-choice-card {
  border-radius: 10px;
}
.panel, .metric-card { box-shadow: var(--shadow); }
.panel-header { min-height: 70px; }
.panel-header h3 { color: #242f4c; font-weight: 700; }
.page-heading h1 { color: #1d2948; font-weight: 750; }
.page-heading p { color: #7b8498; }

.button, .filter-row select, .filter-row input, .field input, .field select, .field textarea, .month-picker input, .dashboard-store-select {
  border-radius: 8px;
}
.button { min-height: 40px; font-weight: 600; }
.button:not(.primary):not(.teal):not(.text):hover { background: #f7fafb; }
.button.primary { background: var(--navy); border-color: var(--navy); }
.button.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.button.teal { background: var(--teal); border-color: var(--teal); }

.metric-card { min-height: 126px; border-color: #e1e8ec; overflow: hidden; }
.metric-card::after { height: 4px; width: 46px; border-radius: 0 0 0 4px; }
.metric-card.navy { background: #f7fbfc; }
.metric-card.orange { background: #fffaf4; }
.metric-card.red { background: #fff8f7; }
.metric-label { color: #6d7d86; font-weight: 600; }
.metric-value { color: #182f38; }

.quick-entry-panel { border-color: #dbe7e9; box-shadow: 0 3px 12px rgba(31, 45, 53, .06); }
.quick-entry-panel .panel-header { background: #fbfdfd; }
.quick-entry-grid { gap: 10px; }
.quick-entry {
  min-height: 68px;
  padding: 13px 14px;
  border-color: #dfe8e9;
  box-shadow: 0 1px 2px rgba(31, 45, 53, .02);
}
.quick-entry:hover { border-color: #aeb8f8; background: #f7f8ff; box-shadow: 0 7px 18px rgba(88, 105, 232, .14); }
.quick-entry-icon { width: 34px; height: 34px; border-radius: 9px; background: #eef0ff; color: #5869e8; font-weight: 800; }
.quick-entry:nth-child(1) { border-color: #b4bdf8; background: #f7f8ff; }
.quick-entry:nth-child(1) .quick-entry-icon { background: #5869e8; color: #fff; }
.quick-entry:nth-child(2) .quick-entry-icon { background: #fff0df; color: #b66b28; }
.quick-entry:nth-child(3) .quick-entry-icon { background: #f2edff; color: #7053a8; }
.quick-entry:nth-child(4) .quick-entry-icon { background: #eaf2ff; color: #3e70b8; }
.quick-entry:nth-child(5) .quick-entry-icon { background: #fff0f0; color: #ba5d5d; }
.quick-entry:nth-child(6) .quick-entry-icon { background: #edf4f5; color: #3c6972; }
.quick-entry-copy strong { color: #222d4b; font-weight: 700; }
.quick-entry-arrow { font-weight: 700; }

.todo-panel { border-color: #dfe7eb; }
.todo-summary { min-width: 76px; justify-content: center; border-radius: 8px; background: #fff4e5; color: #ad6a26; }
.todo-summary strong { font-size: 20px; }
.todo-tabs { gap: 8px; padding: 4px; border: 1px solid #e5ebef; border-radius: 9px; background: #f7f9fb; }
.todo-tab { border: 0; border-radius: 6px; padding: 9px 12px; }
.todo-tab.active { background: #fff; color: #2d3a89; box-shadow: 0 1px 4px rgba(46, 59, 116, .1); }
.todo-item { min-height: 64px; }
.todo-item .button.text { border-radius: 6px; }
.todo-bullet { border-radius: 50%; }

.dashboard-statistics { padding-top: 4px; }
.dashboard-section-heading { padding: 18px 20px; margin-bottom: 20px; border: 1px solid #dfe7eb; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.dashboard-section-heading .eyebrow { margin-bottom: 9px; }
.dashboard-section-heading h2 { font-size: 22px; }
.dashboard-section-filter select { background: #fff; }
.dashboard-subheading { color: #243c44; font-size: 15px; font-weight: 700; }

.cost-trend-row { min-height: 35px; }
.cost-trend-bar, .breakdown-bar { border-radius: 999px; overflow: hidden; }
.cost-trend-bar i, .breakdown-bar i { border-radius: inherit; }
.data-table th { background: #f7f9fb; color: #687983; font-weight: 700; }
.data-table tbody tr:hover { background: #f7f8ff; }
.status { border-radius: 6px; }
.category-kind-tag.deduction, .category-kind.deduction { box-shadow: 0 0 0 2px rgba(193, 93, 91, .06); }
.dashboard-grid, .split-panels, .dashboard-grid > *, .split-panels > * { min-width: 0; }

.assistant-panel, .assistant-login-panel { border-radius: 12px; box-shadow: 0 18px 48px rgba(20, 44, 53, .18); }
.assistant-header { background: #f7f8ff; }
.assistant-icon-button, .assistant-voice-button { border-radius: 8px; }
.assistant-composer textarea { border-radius: 8px; }

@media (max-width: 720px) {
  .content { padding-top: 18px; }
  .page-heading h1 { font-size: 24px; }
  .panel, .metric-card, .quick-entry-panel, .dashboard-section-heading { border-radius: 9px; }
  .panel-header { min-height: 0; }
  .metric-card { min-height: 116px; }
  .quick-entry-panel .panel-body { padding: 12px; }
  .quick-entry-grid { gap: 9px; }
  .quick-entry { min-height: 68px; padding: 13px 12px; }
  .quick-entry-icon { width: 36px; height: 36px; border-radius: 10px; }
  .quick-entry-copy strong { font-size: 13px; }
  .quick-entry-copy small { font-size: 11px; line-height: 1.45; }
  .todo-tabs { gap: 4px; padding: 4px; }
  .todo-tab { min-height: 42px; padding: 9px 10px; }
  .dashboard-section-heading { padding: 15px; }
  .dashboard-section-heading h2 { font-size: 20px; }
  .dashboard-section-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .dashboard-section-filter select { width: 100%; min-height: 44px; }
  .data-table th, .data-table td { min-height: 44px; }
  .panel { min-width: 0; }
  .table-wrap { width: auto; max-width: calc(100vw - 30px); min-width: 0; contain: inline-size paint; }
  .assistant-launcher { border: 3px solid #fff; box-shadow: 0 7px 20px rgba(20, 44, 53, .24); }
}

@media (max-width: 1050px) and (min-width: 721px) {
  .login-art { padding-left: 42px; padding-right: 42px; }
  .login-art-scene { right: -1%; transform: scale(.78); transform-origin: right bottom; }
  .login-art-copy h1 { font-size: 48px; }
  .login-panel { padding-left: 42px; padding-right: 42px; }
}

@media (max-width: 720px) {
  .login-screen { display: block; padding: 12px; background: #f2f4ff; }
  .login-art { min-height: 432px; padding: 24px 22px; border-radius: 18px; }
  .login-art-top { font-size: 10px; }
  .login-art-copy { margin: 42px 0 0; transform: translateY(-16px); }
  .login-art-copy h1 { font-size: 39px; line-height: 1.16; margin-bottom: 12px; }
  .login-art-copy p:last-child { font-size: 12px; }
  .login-art-scene { width: 440px; height: 300px; right: 4px; bottom: 178px; transform: scale(.62); transform-origin: right bottom; }
  .login-art-footer { position: absolute; left: 22px; right: 22px; bottom: 20px; gap: 0; justify-content: space-between; font-size: 9px; }
  .login-panel { min-height: 490px; margin-top: 12px; padding: 34px 23px 38px; border-radius: 16px; }
  .login-panel-brand { margin-bottom: 38px; }
  .login-panel h2 { font-size: 27px; }
  .login-form { margin-top: 30px; }
  .login-field input, .login-submit { min-height: 48px; }
  .login-note { margin-top: 30px; line-height: 1.6; }
}

@media (max-width: 380px) {
  .login-art { min-height: 410px; }
  .login-art-copy { margin-top: 32px; }
  .login-art-copy h1 { font-size: 35px; }
  .login-art-scene { transform: scale(.55); bottom: 168px; }
  .login-art-footer { font-size: 8px; }
  .login-panel { padding-left: 20px; padding-right: 20px; }
}

.login-submit { background: var(--teal); box-shadow: 0 9px 20px rgba(88,105,232,.2); }
.login-submit:hover { background: #485bd7; box-shadow: 0 12px 24px rgba(88,105,232,.26); }

.transfer-rule-note { padding: 11px 13px; border: 1px solid #dfe5f4; border-radius: 8px; background: #f7f8ff; color: #59647c; font-size: 12px; line-height: 1.55; }
.transfer-form .field.full { grid-column: 1 / -1; }
.transfer-item-picker { display: grid; gap: 10px; }
.transfer-search-box { position: relative; }
.transfer-search-box input { width: 100%; min-height: 44px; padding: 9px 38px 9px 12px; border: 1px solid #bfcbe8; border-radius: 8px; color: var(--ink); background: #fbfcff; }
.transfer-search-box span { position: absolute; right: 13px; top: 8px; color: #596bc7; font-size: 22px; pointer-events: none; }
.transfer-search-results { display: grid; gap: 6px; }
.transfer-search-hint { padding: 10px 12px; color: var(--muted); background: #f8fafc; border: 1px dashed #d5ddea; border-radius: 7px; font-size: 12px; }
.transfer-search-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 11px; border: 1px solid #dbe2f1; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.transfer-search-result:hover { border-color: #8898e4; background: #f7f8ff; }
.transfer-search-result.is-selected { border-color: #b9e4d4; background: #f0fbf6; }
.transfer-search-result span { min-width: 0; display: grid; gap: 3px; }
.transfer-search-result strong { font-size: 13px; }
.transfer-search-result small { color: var(--muted); font-size: 11px; white-space: normal; }
.transfer-search-result b { color: #485bd7; font-size: 12px; white-space: nowrap; }
.transfer-search-result input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0 1px 0 0; accent-color: #596bc7; pointer-events: none; }
.transfer-selected-title { display: flex; justify-content: space-between; align-items: center; padding-top: 5px; color: var(--ink); font-size: 12px; }
.transfer-selected-title span { color: var(--muted); font-weight: 400; }
.transfer-item-list, .transfer-selected-list { display: grid; gap: 8px; max-height: 430px; overflow-y: auto; padding: 4px; }
.transfer-item-row { display: grid; grid-template-columns: minmax(190px, 1fr) 92px 92px 100px; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.transfer-item-info { min-width: 0; display: grid; gap: 4px; }
.transfer-item-info strong { color: var(--ink); font-size: 13px; }
.transfer-item-info small { color: var(--muted); font-size: 11px; white-space: normal; }
.transfer-item-info em { color: #6f7890; font-size: 11px; font-style: normal; }
.transfer-item-row label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.transfer-item-row input { width: 100%; min-height: 38px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
.transfer-line-total { color: #3f50bd; font-size: 13px; text-align: right; white-space: nowrap; }
.transfer-remove-item { grid-column: 1 / -1; justify-self: end; min-height: 30px; padding: 3px 5px; }
.transfer-confirm-summary { display: grid; gap: 16px; }
.transfer-confirm-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px; border-radius: 9px; background: #f7f8ff; border: 1px solid #dfe5f4; }
.transfer-confirm-route div { display: grid; gap: 4px; }
.transfer-confirm-route small, .transfer-confirm-meta span { color: var(--muted); font-size: 11px; }
.transfer-confirm-route strong { color: var(--ink); font-size: 14px; }
.transfer-confirm-route > span { color: #596bc7; font-size: 19px; }
.transfer-confirm-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; align-items: center; }
.transfer-confirm-meta strong { color: #3f50bd; font-size: 16px; }
.transfer-confirm-table small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.transfer-confirm-submit { width: 100%; min-height: 44px; margin-top: 5px; }
.transfer-material-modal { width: min(620px, calc(100vw - 32px)); }
.transfer-material-picker { display: grid; gap: 12px; }
.transfer-picker-search { position: relative; }
.transfer-picker-search input { width: 100%; min-height: 46px; padding: 10px 38px 10px 13px; border: 1px solid #bfcbe8; border-radius: 9px; color: var(--ink); background: #fbfcff; }
.transfer-picker-search span { position: absolute; right: 13px; top: 8px; color: #596bc7; font-size: 22px; pointer-events: none; }
.transfer-picker-selected { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.transfer-picker-selected-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 32px; }
.transfer-picker-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 9px; border: 1px solid #cbd4f3; border-radius: 999px; background: #f7f8ff; color: var(--ink); cursor: pointer; }
.transfer-picker-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-picker-chip b { color: #596bc7; font-size: 14px; }
.transfer-picker-confirm { width: 100%; min-height: 44px; margin-top: 3px; }
.transfer-table th, .transfer-table td { white-space: nowrap; }
.transfer-table td:last-child .button + .button { margin-left: 7px; }
.transfer-store-direction-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
.transfer-store-direction-row label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 11px; }
.transfer-store-direction-row label span { white-space: nowrap; }
.transfer-store-direction-row select { width: 100%; min-height: 42px; }
.transfer-store-switch { display: inline-flex; align-items: center; justify-content: center; justify-self: center; width: 48px; min-height: 42px; padding: 0; border-color: #cbd2f0; color: #4e5bc1; background: #f7f8ff; }
.transfer-balance-actions { display: flex; justify-content: flex-end; margin: -4px 0 14px; }
.settlement-confirm { display: grid; gap: 14px; padding: 2px 0 4px; }
.settlement-confirm p { margin: 0; color: #526074; line-height: 1.6; }
.danger-text { color: #bd5c68 !important; }
.compact-summary { margin: 0; padding: 14px; border-bottom: 1px solid var(--line); }

@media (max-width: 720px) {
  .transfer-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .transfer-tabs .tab { flex: 0 0 auto; min-height: 42px; }
  .transfer-item-list, .transfer-selected-list { max-height: none; overflow: visible; }
  .transfer-item-row { grid-template-columns: minmax(0, 1fr) 74px 74px; gap: 8px; padding: 11px 10px; }
  .transfer-item-info { grid-column: 1 / -1; }
  .transfer-line-total { grid-column: 1 / -1; text-align: left; padding-top: 2px; }
  .transfer-item-row input { min-height: 42px; font-size: 14px; }
  .transfer-material-modal { width: calc(100vw - 20px); }
  .transfer-store-direction-row { grid-template-columns: 1fr; gap: 8px; }
  .transfer-store-direction-row label span { white-space: normal; line-height: 1.35; }
  .transfer-store-switch { width: 44px; min-height: 44px; }
  .transfer-confirm-route { grid-template-columns: 1fr; gap: 8px; }
  .transfer-confirm-route > span { transform: rotate(90deg); justify-self: center; }
  .transfer-store-switch { margin: 0; }
  .transfer-store-switch .button { width: 100%; min-height: 42px; }
  .transfer-balance-actions { margin: 0 0 12px; }
  .transfer-balance-actions .button { width: 100%; }
}

.task-rule-list { display: grid; gap: 10px; }
.task-rule-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.task-rule-card.is-disabled { opacity: .66; background: #f8f9fc; }
.task-rule-main { min-width: 0; flex: 1; }
.task-rule-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.task-rule-title strong { color: var(--ink); font-size: 14px; }
.task-rule-main p { margin: 8px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.task-rule-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.task-rule-meta span { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; background: #f3f5fa; color: #66708a; font-size: 11px; }
.task-rule-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.task-store-groups { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfe; }
.task-store-group > strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; }
.task-store-checks, .task-role-checks, .task-scope-options { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.task-store-checks label, .task-role-checks label, .task-scope-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink); font-size: 12px; }
.task-rule-form textarea { min-height: 78px; }
.manager-todo-panel { max-width: 920px; }
.manager-scope-note { max-width: 920px; margin-top: 18px; }
.manager-scope-note p { margin: 8px 0 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 720px) {
  .task-rule-card { display: block; padding: 14px; }
  .task-rule-actions { justify-content: flex-end; margin-top: 12px; }
  .task-rule-meta { display: grid; grid-template-columns: 1fr; }
  .task-rule-meta span { width: 100%; }
  .task-store-checks, .task-role-checks, .task-scope-options { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .task-store-checks label, .task-role-checks label, .task-scope-options label { min-height: 42px; }
}

/* Attendance refinements: keep the range picker readable and the five store metrics balanced. */
.preopening-date-range-control { width: 100%; }
.preopening-range-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; border: 1px solid #cfdad8; border-radius: 8px; background: #fbfdfc; }
.preopening-range-inputs:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 151, 149, .12); }
.preopening-range-inputs input { width: 100%; min-width: 0; border: 0; padding: 7px 2px; background: transparent; color: var(--ink); font: inherit; }
.preopening-range-inputs input:focus { outline: 0; }
.preopening-range-inputs b { color: var(--muted); text-align: center; font-weight: 600; }
.single-date-range-control { margin-top: 0; }
.attendance-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.attendance-metric-grid .metric-card.teal::after { background: var(--teal); }
.metric-dual-value { display: flex; align-items: baseline; gap: 16px; }
.metric-dual-value span { display: inline-flex; align-items: baseline; gap: 4px; }
.metric-dual-value small { color: var(--muted); font-size: 12px; font-weight: 600; }

@media (max-width: 1050px) {
  .attendance-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .attendance-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-metric-grid .metric-card:last-child { grid-column: 1 / -1; }
  .preopening-range-inputs { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 4px; padding-inline: 8px; }
}

/* The training date field behaves like one range picker while keeping native form values. */
.date-range-picker { position: relative; width: 100%; }
.range-picker-display { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; gap: 6px; min-height: 52px; padding: 4px 7px; border: 1px solid #cfdad8; border-radius: 9px; background: #fbfdfc; }
.range-picker-display:focus-within, .date-range-picker:has(.range-calendar:not([hidden])) .range-picker-display { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 151, 149, .12); }
.range-picker-value { min-width: 0; border: 0; border-bottom: 2px solid transparent; padding: 5px 7px 3px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.range-picker-value.active { border-bottom-color: var(--teal); }
.range-picker-value:hover { background: #f0f8f6; }
.range-picker-label, .range-picker-value strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.range-picker-label { color: var(--muted); font-size: 10px; line-height: 1.2; }
.range-picker-value strong { margin-top: 4px; font: 600 13px/1.2 "DM Sans", "Noto Sans SC", sans-serif; }
.range-picker-separator { align-self: center; color: var(--muted); font-size: 12px; text-align: center; }
.range-calendar { position: absolute; z-index: 20; top: calc(100% + 8px); left: 50%; display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) 30px; width: min(640px, calc(100vw - 36px)); transform: translateX(-50%); padding: 14px 10px 12px; border: 1px solid #d8e4e2; border-radius: 10px; background: #fff; box-shadow: 0 18px 45px rgba(20, 52, 59, .2); }
.range-calendar[hidden] { display: none; }
.range-calendar-month { min-width: 0; padding: 0 9px; }
.range-calendar-month + .range-calendar-month { border-left: 1px solid #e5eceb; }
.range-calendar-month-title { margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }
.range-calendar-weekdays, .range-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.range-calendar-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.range-calendar-day, .range-calendar-empty { min-width: 0; min-height: 31px; }
.range-calendar-day { position: relative; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: 500 12px/1 "DM Sans", "Noto Sans SC", sans-serif; cursor: pointer; }
.range-calendar-day:hover, .range-calendar-day.in-range { background: #e8f5f2; }
.range-calendar-day.selected { background: var(--teal); color: #fff; font-weight: 700; }
.range-calendar-day small { position: absolute; right: 3px; bottom: 2px; font-size: 7px; font-weight: 500; }
.range-calendar-nav { align-self: start; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.range-calendar-nav:hover { background: #f0f8f6; color: var(--teal); }
@media (max-width: 720px) {
  .range-picker-display { min-height: 48px; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 2px; padding-inline: 5px; }
  .range-picker-value { padding-inline: 5px; }
  .range-picker-value strong { font-size: 12px; }
  .range-calendar { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 24px; padding-inline: 4px; }
  .range-calendar-month { padding-inline: 4px; }
  .range-calendar-day, .range-calendar-empty { min-height: 29px; }
}

/* Keep summary cards and modal previews readable without page-level horizontal scrolling. */
.summary-strip { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cost-total-change { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cost-total-change strong { font: 700 14px "DM Sans", sans-serif; }
.cost-share-delta { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.modal { min-width: 0; }
.modal .table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
.modal .data-table { width: 100%; min-width: 0; table-layout: fixed; }
.modal .data-table th, .modal .data-table td, .modal .transfer-table th, .modal .transfer-table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.modal .data-table td .button { white-space: normal; }
.modal .summary-strip { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

@media (max-width: 720px) {
  .summary-strip, .modal .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-total-change { align-items: flex-start; flex-direction: column; gap: 5px; }
  .modal .data-table { font-size: 11px; }
  .modal .data-table th, .modal .data-table td { padding: 9px 7px; }
}
.attendance-store-card strong,
.store-radio-copy strong { font-size: 14px; font-weight: 700; }
.attendance-store-card small,
.store-radio-copy small { font-size: 10px; }
@media (max-width: 720px) {
  .attendance-store-card strong,
  .store-radio-copy strong { font-size: 15px; }
}
.attendance-store-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
@media (max-width: 720px) {
  .attendance-store-grid { grid-template-columns: 1fr; }
}
