:root {
  color-scheme: light;
  --ink: #10271f;
  --muted: #6c7b75;
  --line: #dce4df;
  --paper: #f4f7f5;
  --panel: #ffffff;
  --green: #176b4d;
  --green-dark: #0d4935;
  --green-soft: #e6f2ec;
  --amber: #eea12a;
  --red: #c54a42;
  --shadow: 0 16px 44px rgba(20, 47, 37, .08);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body.mobile-sheet-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-view { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px 24px 70px; background: radial-gradient(circle at 25% 15%, #2d7f61 0, #10271f 42%, #07140f 100%); }
.login-card { width: min(400px, 100%); background: rgba(255,255,255,.98); border-radius: 24px; padding: 38px; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 15px; font-weight: 900; letter-spacing: -1px; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; }
.eyebrow, .panel-label { margin: 18px 0 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-card h1 { margin: 4px 0; font-size: 34px; }
.muted, .form-error { color: var(--muted); }
.login-mobile-copy, .login-username-field { display: none !important; }
.login-card label { display: block; margin: 28px 0 8px; font-size: 13px; font-weight: 700; }
.login-card input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.primary-button { width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 10px; color: white; background: var(--green); font-weight: 800; }
.form-error { min-height: 20px; font-size: 13px; color: var(--red); }
.app-shell { min-height: 100vh; }
.app-shell[data-theme="out"] {
  --green: #c54a42;
  --green-dark: #9d3731;
  --green-soft: #f8e7e5;
  background: #fdf1ef;
}
.app-shell[data-theme="history"],
.app-shell[data-theme="stock"] {
  --green: #234b6d;
  --green-dark: #16344f;
  --green-soft: #e6edf4;
  background: #eef2f6;
}
.topbar { height: 68px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: white; }
.app-shell[data-theme="out"] .topbar { background: #8d342e; }
.app-shell[data-theme="history"] .topbar,
.app-shell[data-theme="stock"] .topbar { background: #102c44; }
.brand, .brand > div, .topbar-actions { display: flex; align-items: center; gap: 11px; }
.brand > div { align-items: baseline; gap: 8px; }
.brand b { font-size: 19px; }
.brand span, .topbar-actions { color: #b8c8c1; font-size: 13px; }
.text-button { border: 0; background: transparent; color: white; }
.topbar-actions .text-button { padding: 7px 5px; border-radius: 7px; }
.topbar-actions .text-button:hover { background: rgba(255,255,255,.1); }
.workspace { position: relative; min-height: calc(100vh - 68px); padding: 14px; display: grid; grid-template-columns: var(--nav-column-width, 160px) var(--category-column-width, var(--category-panel-width, 195px)) var(--subcategory-column-width, var(--subcategory-panel-width, 195px)) minmax(430px, var(--detail-column-width, 1fr)) minmax(333px, var(--today-column-width, .9fr)); column-gap: 16px; row-gap: 12px; }
.panel { min-width: 0; background: var(--panel); border: 1px solid rgba(16,39,31,.08); border-radius: 16px; box-shadow: var(--shadow); }
.main-nav, .filter-panel, .subcategory-panel { padding: 19px 10px 16px; }
.main-nav > .panel-label { padding: 0 8px; margin: 0 0 8px; line-height: 18px; }
.filter-panel > section:first-child > .panel-label,
.subcategory-panel > section:first-child > .panel-label,
.detail-heading .panel-label,
.today-heading .panel-label { margin: 0 0 8px; line-height: 18px; }
.nav-item { width: 100%; position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 2px 6px; text-align: left; border: 0; border-radius: 11px; padding: 12px 8px; margin-bottom: 6px; color: var(--ink); background: transparent; }
.nav-item > span { grid-row: 1 / span 2; color: var(--green); font-size: 20px; }
.nav-item b { font-size: 14px; }
.nav-item small { color: var(--muted); font-size: 10px; }
.nav-item small { white-space: nowrap; }
.nav-item:hover { background: #f2f6f3; }
.nav-item.active { color: white; background: var(--green); }
.nav-item.active span, .nav-item.active small { color: #dff2e9; }
.filter-panel section + section { margin-top: 25px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.choice-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.choice-list .choice { width: 100%; text-align: left; }
.choice { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 9px; padding: 8px 10px; font-size: 13px; }
.choice, .product-item b { white-space: nowrap; }
.choice:hover { border-color: #97baa9; }
.choice.active { border-color: var(--green); background: var(--green); color: white; font-weight: 800; }
.category-choice-sortable { position: relative; cursor: pointer; touch-action: pan-y; }
.category-sort-active .category-choice-sortable,
.category-dragging { cursor: grabbing; }
.category-dragging { opacity: .45; }
.category-order-saving .category-choice-sortable { pointer-events: none; }
.category-drop-before::before,
.category-drop-after::after { content: ""; position: absolute; z-index: 2; left: 4px; right: 4px; height: 3px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.category-drop-before::before { top: -5px; }
.category-drop-after::after { bottom: -5px; }
.subcategory-group + .subcategory-group { margin-top: 25px; }
.subcategory-group-title { margin: 2px 4px 12px; color: var(--green); font-size: 16px; font-weight: 900; line-height: 24px; letter-spacing: .06em; }
.subcategory-group-list { display: grid; grid-template-columns: 1fr; gap: 7px; }
.subcategory-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subcategory-choice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.subcategory-choice b { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 12px; }
.subcategory-choice:not(.active) b { color: var(--green); }
.category-choice { display: grid; gap: 4px; }
.category-choice small { color: var(--muted); font-size: 10px; font-weight: 500; }
.category-choice.active small { color: #dff2e9; }
.panel-heading, .detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading .panel-label { margin-top: 0; }
h2 { margin: 2px 0 12px; font-size: 20px; }
.count-pill { border-radius: 99px; background: var(--green-soft); color: var(--green); padding: 5px 8px; font-size: 11px; font-weight: 800; }
.product-list { margin-top: 4px; max-height: calc(100vh - 160px); overflow: auto; }
.product-item { width: 100%; min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; text-align: left; padding: 10px 11px; margin-bottom: 7px; background: white; color: var(--ink); }
.product-item b { font-size: 14px; }
.product-item small { color: var(--muted); font-size: 11px; font-weight: 500; }
.product-item:hover { border-color: #97baa9; background: #f8fbf9; }
.product-item.active { background: var(--green); color: white; font-weight: 800; }
.product-item.active small { color: #d6eee4; }
.detail-panel, .today-panel { position: relative; padding: 19px 14px; overflow: hidden; }
.today-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.today-list-wrap { min-height: 420px; max-height: calc(100vh - 205px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.today-table { table-layout: fixed; font-size: 12px; }
.today-table th, .today-table td { padding: 9px 7px; }
.today-table tfoot { position: sticky; bottom: 0; background: #edf3ef; color: var(--ink); font-weight: 800; }
.today-table tfoot td { border-top: 2px solid var(--line); }
.today-product b { display: block; }
.delete-action { border: 1px solid #efcbc7; border-radius: 7px; padding: 6px 8px; background: #fff5f4; color: var(--red); font-size: 11px; font-weight: 800; }
.today-empty { min-height: 300px; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 12px; }
.today-empty span { color: #a9bbb3; font-size: 28px; }
.today-empty p { margin: 7px 0; }
.detail-tools { display: flex; align-items: center; gap: 8px; }
.inventory-tools { display: flex; align-items: center; gap: 6px; }
.inventory-tool-button { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: white; color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap; }
.inventory-tool-button:hover { border-color: var(--green); background: var(--green-soft); }
.inventory-tool-button.danger-button { border-color: #efcbc7; color: var(--red); }
.inventory-tool-button.danger-button:hover { border-color: var(--red); background: #fff5f4; }
.inventory-settings-dialog { position: fixed; z-index: 55; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 20, 15, .45); }
.mobile-account-settings-dialog { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 20, 15, .48); }
.mobile-account-settings-card { width: min(760px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 28px 90px rgba(7, 20, 15, .3); }
.mobile-account-settings-heading > div { min-width: 0; }
.mobile-account-settings-heading h2 { margin-bottom: 5px; }
.mobile-account-settings-heading p:not(.panel-label) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-password-section { margin-top: 18px; padding: 16px; border: 1px solid #d7e2dc; border-radius: 13px; background: #f4f8f6; }
.admin-password-section > p { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-password-status { border-radius: 99px; padding: 4px 8px; background: #e3f1e9; color: var(--green) !important; font-weight: 900; }
.admin-password-status.warning { background: #fff0d8; color: #a66508 !important; }
.admin-password-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 10px; }
.admin-password-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.admin-password-form input { min-width: 0; width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; outline: none; background: white; }
.admin-password-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.admin-password-form .primary-button { width: auto; height: 40px; margin: 0; padding: 0 14px; white-space: nowrap; }
.admin-password-error { min-height: 0; margin: 8px 0 0 !important; color: var(--red) !important; }
.mobile-account-create-form { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf9; }
.mobile-account-form-heading, .mobile-account-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-account-form-heading span, .mobile-account-list-heading span { color: var(--muted); font-size: 12px; }
.mobile-account-fields { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr auto; align-items: end; gap: 10px; margin-top: 12px; }
.mobile-account-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.mobile-account-fields input, .mobile-account-reset-form input { min-width: 0; width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; outline: none; background: white; }
.mobile-account-fields input:focus, .mobile-account-reset-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.mobile-account-fields .primary-button { width: auto; height: 40px; margin: 0; padding: 0 14px; white-space: nowrap; }
.mobile-account-list-heading { margin: 20px 2px 9px; }
.mobile-account-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.mobile-account-row { min-height: 70px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto; align-items: center; gap: 14px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.mobile-account-row:last-child { border-bottom: 0; }
.mobile-account-identity { min-width: 0; display: grid; gap: 4px; }
.mobile-account-identity > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mobile-account-identity > small, .mobile-account-login-time { color: var(--muted); font-size: 11px; }
.mobile-account-status { display: inline-flex; width: fit-content; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 7px; background: #e7f3ed; color: var(--green); font-size: 10px; font-weight: 900; }
.mobile-account-status.disabled { background: #eff1f0; color: #7d8984; }
.mobile-account-actions { display: flex; gap: 7px; }
.mobile-account-actions button { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: white; color: var(--green); font-size: 11px; font-weight: 800; }
.mobile-account-actions button[data-mobile-account-action="disable"] { color: var(--red); }
.mobile-account-actions button[data-mobile-account-action="enable"] { color: var(--green); }
.mobile-account-empty { min-height: 90px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.mobile-account-reset-form { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(200px, 1fr) auto auto; align-items: center; gap: 9px; margin-top: 12px; padding: 13px; border: 1px solid #d7e0dc; border-radius: 12px; background: #f4f8f6; }
.mobile-account-reset-form > div { display: grid; gap: 3px; }
.mobile-account-reset-form small { color: var(--muted); font-size: 10px; }
.mobile-account-reset-form .primary-button { width: auto; height: 40px; margin: 0; padding: 0 14px; }
.mobile-account-reset-form .secondary-button { height: 40px; padding: 0 12px; }
.inventory-settings-card { width: min(520px, 100%); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 28px 90px rgba(7, 20, 15, .28); }
.inventory-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.inventory-settings-heading .panel-label { margin-top: 0; }
.settings-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; cursor: pointer; }
.settings-switch-row > span:first-child { display: grid; gap: 6px; }
.settings-switch-row b { font-size: 14px; }
.settings-switch-row small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.settings-switch { position: relative; flex: 0 0 46px; width: 46px; height: 26px; }
.settings-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.settings-switch i { position: absolute; inset: 0; border-radius: 99px; background: #b8c4bf; transition: background .18s ease; }
.settings-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .18s ease; }
.settings-switch input:checked + i { background: var(--green); }
.settings-switch input:checked + i::after { transform: translateX(20px); }
.settings-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--green-soft); }
.column-resize-handle { position: absolute; z-index: 8; width: 26px; height: 26px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 8px; padding: 0; background: white; color: var(--green); box-shadow: 0 5px 14px rgba(16,39,31,.16); cursor: col-resize; font-size: 14px; font-weight: 900; touch-action: none; user-select: none; }
.column-resize-handle:hover { border-color: var(--green); background: var(--green-soft); }
.workspace-column-resize-handle { font-size: 12px; }
body.column-resizing, body.column-resizing * { cursor: col-resize !important; user-select: none !important; }
.sku-master-dialog { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(7, 20, 15, .45); }
.sku-master-card { width: min(1180px, 100%); max-height: min(820px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 28px 90px rgba(7, 20, 15, .28); }
.sku-master-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 13px; border-bottom: 1px solid var(--line); }
.sku-master-heading h2 { margin-bottom: 6px; }
.sku-master-heading p:not(.panel-label) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sku-master-tools { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.sku-master-search { width: min(270px, 24vw); min-width: 190px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 13px; outline: none; }
.sku-master-search:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sku-master-tools .count-pill { margin-left: auto; }
.sku-master-notice { margin: 0 22px 12px; padding: 9px 11px; border: 1px solid #efb7b1; border-radius: 9px; background: #fff2f0; color: #a8312b; font-size: 13px; line-height: 1.5; }
.sku-master-table-wrap { min-height: 300px; overflow-y: auto; overflow-x: hidden; }
.sku-master-table { width: 100%; table-layout: fixed; }
.sku-master-table th, .sku-master-table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.sku-master-table .sku-select-column, .sku-master-table .sku-row-actions { white-space: nowrap; overflow-wrap: normal; }
.sku-select-col { width: 42px; }
.sku-type-col, .sku-category-col { width: 8%; }
.sku-group-col { width: 10%; }
.sku-subcategory-col { width: 13%; }
.sku-product-col { width: 22%; }
.sku-code-col { width: 7%; }
.sku-code-id-col { width: 13%; }
.sku-actions-col { width: 112px; }
.sku-select-column { width: 42px; min-width: 42px; text-align: center; }
.sku-select-column input { width: 16px; height: 16px; accent-color: var(--green); }
.sku-row-actions { display: flex; gap: 6px; }
.sku-edit-button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: white; color: var(--green); font-size: 12px; font-weight: 800; }
.sku-edit-button:hover { border-color: var(--green); background: var(--green-soft); }
.sku-delete-button { border: 1px solid #efcbc7; border-radius: 7px; padding: 6px 10px; background: #fff5f4; color: var(--red); font-size: 12px; font-weight: 800; }
.sku-delete-button:hover { border-color: var(--red); }
.sku-edit-dialog { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 20, 15, .52); }
.sku-edit-card { width: min(600px, 100%); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 28px 90px rgba(7, 20, 15, .3); }
.sku-edit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.sku-edit-heading .panel-label { margin-top: 0; }
.sku-edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.sku-edit-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.sku-edit-fields input, .sku-edit-fields select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; outline: none; }
.sku-edit-fields input:focus, .sku-edit-fields select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sku-edit-fields .wide-field { grid-column: 1 / -1; }
.sku-edit-note { margin: 14px 0; color: var(--muted); font-size: 12px; }
.sku-edit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sku-edit-actions .primary-button { margin-top: 0; }
.secondary-button { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f8; color: var(--ink); font-weight: 800; }
.import-mode-dialog { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 20, 15, .5); }
.import-mode-card { width: min(560px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 28px 90px rgba(7, 20, 15, .3); }
.import-mode-card h2 { margin: 4px 0 8px; }
.import-mode-hint { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.import-mode-options { display: grid; gap: 10px; }
.import-mode-option { display: grid; gap: 5px; width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--green); text-align: left; }
.import-mode-option:hover { border-color: var(--green); background: var(--green-soft); }
.import-mode-option b { font-size: 14px; }
.import-mode-option small { color: var(--muted); line-height: 1.5; }
.import-mode-option.danger-option { color: var(--red); border-color: #efcbc7; }
.import-mode-option.danger-option:hover { border-color: var(--red); background: #fff5f4; }
.import-cancel-button { display: block; width: 100%; margin-top: 14px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f8; color: var(--ink); font-weight: 800; }
.import-cancel-button:hover { border-color: #aebdb6; background: #eef2f0; }
.history-date-controls { position: relative; display: flex; align-items: center; gap: 6px; }
.history-day-buttons { display: flex; align-items: center; }
.date-nav-button, .date-display-button { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green); font-size: 12px; font-weight: 800; }
.date-nav-button { padding: 0 11px; }
.history-day-buttons .date-nav-button { border-radius: 0; }
.history-day-buttons .date-nav-button + .date-nav-button { margin-left: -1px; }
.history-day-buttons .date-nav-button:first-child { border-radius: 8px 0 0 8px; }
.history-day-buttons .date-nav-button:last-child { border-radius: 0 8px 8px 0; }
.date-display-button { min-width: 142px; padding: 0 9px; cursor: pointer; }
.date-nav-button:hover, .date-display-button:hover { border-color: var(--green); background: var(--green-soft); }
.calendar-popover { position: absolute; z-index: 20; top: 42px; right: 0; width: 278px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 18px 45px rgba(16,39,31,.2); }
.calendar-header { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; text-align: center; margin-bottom: 9px; }
.calendar-header button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: 20px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-weekdays { margin-bottom: 5px; color: var(--muted); text-align: center; font-size: 11px; }
.calendar-day { aspect-ratio: 1; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font-size: 12px; }
.calendar-day:hover { background: var(--green-soft); }
.calendar-day.selected { background: var(--green); color: white; font-weight: 800; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--green); font-size: 20px; }
.detail-hint { display: none; }
.table-wrap { min-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
.movement-table { table-layout: fixed; }
thead { position: sticky; top: 0; z-index: 2; background: #edf3ef; color: var(--muted); }
th { position: relative; padding: 11px 10px; text-align: left; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.table-column-resizer { position: absolute; z-index: 4; top: 50%; right: -9px; width: 18px; height: 26px; display: none; place-items: center; transform: translateY(-50%); border: 1px solid #b9c8c1; border-radius: 6px; padding: 0; background: white; color: var(--green); box-shadow: 0 2px 7px rgba(16,39,31,.12); cursor: col-resize; font-size: 13px; font-weight: 900; line-height: 1; touch-action: none; user-select: none; }
.app-shell.table-column-resize-enabled .table-column-resizer { display: grid; }
.table-column-resizer:hover { border-color: var(--green); background: var(--green-soft); }
td { padding: 10px; border-top: 1px solid #edf1ef; vertical-align: middle; }
tr:hover td { background: #fafcfb; }
.product-cell b { display: block; font-size: 13px; }
.product-group-cell { background: white; }
.product-group-start:not(:first-child) td { border-top: 1px solid #cbdcd2; }
.stock-number { font-variant-numeric: tabular-nums; font-weight: 800; }
.quantity { display: inline-grid; min-width: 28px; height: 28px; place-items: center; border-radius: 7px; background: #f1f5f3; font-weight: 800; }
.action-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.quantity-operation { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.quantity-operation .action { min-width: 50px; padding: 7px 6px; white-space: nowrap; }
.operation-quantity { width: 48px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; text-align: center; font-weight: 800; outline: none; }
.operation-quantity:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.action { border: 0; border-radius: 8px; padding: 7px 10px; color: white; font-weight: 800; font-size: 12px; }
.action.subtract { background: var(--red); }
.app-shell[data-theme="out"] .action.subtract { background: var(--green); }
.action.add { background: var(--green); }
.action.undo { border: 1px solid #d9c9a8; background: #fff9ec; color: #8a6319; }
.empty-state { min-height: 360px; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.empty-state span { font-size: 34px; color: #a9bbb3; }
.empty-state b { color: var(--ink); margin-top: 8px; }
.empty-state p { margin: 5px; font-size: 12px; }
.toast { position: absolute; right: 22px; bottom: 22px; padding: 11px 15px; border-radius: 10px; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 13px; }
.mobile-notice { display: none; }
.mobile-inventory-view { display: none; }
.mobile-selector-dialog { position: fixed; z-index: 90; inset: 0; }
.mobile-selector-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7, 20, 32, .48); }
.mobile-selector-sheet { position: absolute; right: 0; bottom: 0; left: 0; max-height: min(76vh, 680px); display: flex; flex-direction: column; border-radius: 22px 22px 0 0; background: white; box-shadow: 0 -18px 54px rgba(7, 20, 32, .18); }
.mobile-selector-sheet-handle { width: 42px; height: 5px; margin: 8px auto 3px; border-radius: 99px; background: #ccd4dc; }
.mobile-selector-sheet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 18px 10px; }
.mobile-selector-sheet-heading p { min-height: 17px; margin: 0 0 4px; color: #667684; font-size: 12px; }
.mobile-selector-sheet-heading h2 { margin: 0; color: #10271f; font-size: 20px; }
.mobile-selector-sheet-heading button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef2f6; color: #425466; font-size: 22px; }
.mobile-selector-search { margin: 0 18px 10px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d8e0e7; border-radius: 11px; background: #f8fafc; color: #71808c; }
.mobile-selector-search input { min-width: 0; flex: 1; height: 42px; border: 0; outline: 0; background: transparent; color: #17242f; }
.mobile-selector-options { min-height: 120px; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
.mobile-selector-option { width: 100%; min-height: 52px; display: grid; grid-template-columns: 1fr auto 22px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #e7ecf0; padding: 8px 4px; text-align: left; background: white; color: #17242f; }
.mobile-selector-option > span { min-width: 0; font-size: 15px; font-weight: 700; }
.mobile-selector-option small { color: #6b7985; font-size: 12px; }
.mobile-selector-option i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #bbc6cf; border-radius: 50%; color: transparent; font-style: normal; font-size: 12px; }
.mobile-selector-option.active i { border-color: #24538a; background: #24538a; color: white; }
.mobile-selector-no-results { padding: 32px 0; text-align: center; color: #73808a; font-size: 13px; }
.mobile-movement-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-movement-summary { min-height: 118px; display: flex; flex-direction: column; padding: 15px; }
.mobile-movement-summary > span { color: #5f6f7b; font-size: 12px; font-weight: 800; }
.mobile-movement-summary b { display: block; margin-top: 6px; font-size: 14px; }
.mobile-movement-summary strong { margin-right: 2px; font-size: 31px; font-variant-numeric: tabular-nums; }
.mobile-movement-summary small { margin-top: auto; color: #72808b; font-size: 11px; }
.mobile-movement-summary.outbound { border-color: #efd3d0; background: #fff9f8; }
.mobile-movement-summary.outbound b { color: #b83b34; }
.mobile-movement-summary.returns { border-color: #cfe4da; background: #f8fcfa; }
.mobile-movement-summary.returns b { color: #19704e; }
.mobile-segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 14px 0 19px; padding: 4px; border-radius: 11px; background: #e3e9ee; }
.mobile-segmented-control button { min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: #63727e; font-size: 13px; font-weight: 800; }
.mobile-segmented-control button.active { background: white; color: #24538a; box-shadow: 0 2px 8px rgba(16, 44, 68, .1); }
.mobile-movement-section + .mobile-movement-section { margin-top: 22px; }
.mobile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 9px; }
.mobile-section-heading > div { display: flex; align-items: center; gap: 8px; }
.mobile-section-heading span { min-width: 38px; border-radius: 7px; padding: 5px 7px; color: white; text-align: center; font-size: 11px; font-weight: 900; }
.mobile-section-heading span.outbound { background: #bb413a; }
.mobile-section-heading span.return { background: #1d7654; }
.mobile-section-heading h2 { margin: 0; color: #162a39; font-size: 17px; }
.mobile-section-heading > b { color: #5e6e7a; font-size: 11px; }
.mobile-movement-list { overflow: hidden; box-shadow: none; }
.mobile-movement-row { min-height: 68px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid #e6ebef; }
.mobile-movement-row:last-child { border-bottom: 0; }
.mobile-movement-time { color: #64737f; font-size: 12px; font-variant-numeric: tabular-nums; }
.mobile-movement-product { min-width: 0; display: grid; gap: 4px; }
.mobile-movement-product b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #233542; font-size: 13px; }
.mobile-movement-product small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #76838d; font-size: 10px; }
.mobile-movement-quantity { min-width: 42px; text-align: right; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.mobile-movement-list.outbound .mobile-movement-quantity { color: #b83b34; }
.mobile-movement-list.returns .mobile-movement-quantity { color: #19704e; }
.mobile-list-empty { min-height: 130px; display: grid; place-items: center; color: #74828c; box-shadow: none; font-size: 12px; }
.mobile-history-date-card { display: grid; grid-template-columns: 45px 1fr 45px; align-items: center; overflow: hidden; box-shadow: none; }
.mobile-history-date-card > button { min-height: 66px; border: 0; background: white; color: #24538a; }
.mobile-history-date-card > button:first-child, .mobile-history-date-card > button:last-child { font-size: 28px; }
.mobile-history-date-card > button:nth-child(2) { display: grid; place-content: center; gap: 3px; border-right: 1px solid #e4e9ed; border-left: 1px solid #e4e9ed; }
.mobile-history-date-card b { color: #183044; font-size: 16px; }
.mobile-history-date-card small { color: #6e7d88; font-size: 11px; }
.mobile-history-today-button { display: block; margin: 8px auto 12px; border: 0; background: transparent; color: #24538a; font-size: 12px; font-weight: 800; }
.mobile-history-summary-grid { margin-top: 12px; }
.mobile-calendar-sheet { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.mobile-calendar-heading { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 9px 16px 12px; }
.mobile-calendar-heading h2 { margin: 0; text-align: center; color: #163044; font-size: 18px; }
.mobile-calendar-heading button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #eef2f6; color: #24538a; font-size: 24px; }
.mobile-calendar-weekdays, .mobile-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 0 16px; }
.mobile-calendar-weekdays { margin-bottom: 6px; color: #75828c; text-align: center; font-size: 11px; }
.mobile-calendar-days button, .mobile-calendar-days span { min-height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: white; color: #253844; font-size: 13px; }
.mobile-calendar-days button.today { color: #24538a; font-weight: 900; }
.mobile-calendar-days button.selected { background: #24538a; color: white; font-weight: 900; }
.mobile-calendar-today-button { min-height: 42px; margin: 12px 16px 0; border: 0; border-radius: 10px; background: #e6edf4; color: #24538a; font-size: 13px; font-weight: 900; }
.mobile-bottom-nav { display: none; }
.beian-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; min-height: 36px; padding: 8px 14px; color: #77847f; font-size: 12px; }
.beian-footer a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.beian-footer a:hover { color: var(--green); text-decoration: underline; }
.beian-footer img { width: 18px; height: 20px; object-fit: contain; }
.login-beian-footer { position: absolute; right: 0; bottom: 16px; left: 0; color: rgba(255,255,255,.74); }
.mobile-beian-footer { display: none; }
.workspace.compact-detail .detail-panel { grid-column: 4 / -1; }
.workspace.history-mode { grid-template-columns: 160px minmax(0, 1fr); }
.workspace.history-mode .detail-panel { grid-column: 2; }
.workspace.history-mode .detail-heading { flex-wrap: wrap; }
.history-kind { display: inline-block; min-width: 58px; border-radius: 6px; padding: 4px 6px; text-align: center; font-size: 11px; font-weight: 800; background: var(--green-soft); color: var(--green); }
.history-kind.undo { background: #fff3da; color: #8a6319; }
.history-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.history-section { min-width: 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; }
.history-section-heading { min-height: 68px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; background: var(--green-soft); }
.history-section-heading > div { display: flex; align-items: center; gap: 9px; }
.history-section-heading span { display: grid; place-items: center; min-width: 42px; height: 27px; border-radius: 7px; color: white; background: var(--green); font-size: 12px; font-weight: 800; }
.history-section-heading h3 { margin: 0; font-size: 17px; }
.history-section-heading > b { color: var(--green); font-size: 13px; }
.history-table-wrap { position: relative; min-height: 360px; max-height: calc(100vh - 245px); overflow: auto; }
.history-table-wrap table { font-size: 12px; }
.history-table-wrap tfoot { position: sticky; bottom: 0; background: #edf3ef; font-weight: 800; }
.history-table-wrap tfoot td { border-top: 2px solid var(--line); }
.history-list-empty { min-height: 260px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

@media (min-width: 721px) {
  .workspace { height: calc(100vh - 104px); min-height: 0; align-items: stretch; overflow-y: hidden; }
  .workspace > .panel { min-height: 0; max-height: 100%; }
  .main-nav, .filter-panel, .subcategory-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .main-nav, .filter-panel, .subcategory-panel { scrollbar-width: thin; scrollbar-color: #b9c8c1 transparent; }
  .main-nav::-webkit-scrollbar, .filter-panel::-webkit-scrollbar, .subcategory-panel::-webkit-scrollbar { width: 8px; }
  .main-nav::-webkit-scrollbar-thumb, .filter-panel::-webkit-scrollbar-thumb, .subcategory-panel::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: #b9c8c1; background-clip: padding-box; }
  .detail-panel, .today-panel { display: flex; flex-direction: column; }
  .table-wrap, .today-list-wrap { flex: 1; min-height: 0; max-height: none; }
  .history-board { flex: 1; min-height: 0; }
  .history-section { display: flex; min-height: 0; flex-direction: column; }
  .history-table-wrap { flex: 1; min-height: 0; max-height: none; }
}

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 160px var(--category-panel-width, 195px) var(--subcategory-panel-width, 195px) 430px 333px; overflow-x: auto; }
  .workspace.history-mode { grid-template-columns: 160px minmax(0, 1fr); }
  .column-resize-handle { display: none !important; }
}
@media (max-width: 720px) {
  .login-view { padding: 18px 18px 70px; }
  .login-card { padding: 28px 24px; }
  .login-desktop-copy { display: none; }
  .login-mobile-copy { display: block !important; line-height: 1.55; }
  .login-username-field { display: block !important; }
  .login-card label { margin-top: 18px; }
  body { background: #f2f5f8; }
  .app-shell, .app-shell[data-theme="out"], .app-shell[data-theme="return"], .app-shell[data-theme="history"], .app-shell[data-theme="stock"] { background: #f2f5f8; }
  .topbar, .app-shell[data-theme="out"] .topbar, .app-shell[data-theme="history"] .topbar, .app-shell[data-theme="stock"] .topbar { height: 60px; padding: 0 14px; background: #102c44; }
  .brand > div span, #businessDate { display: none; }
  #openMobileAccountSettingsButton { display: none; }
  .mobile-notice { display: none; }
  .workspace { display: none; }
  .mobile-inventory-view { display: block; width: min(100%, 560px); margin: 0 auto; padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); }
  .desktop-beian-footer { display: none; }
  .mobile-beian-footer { display: flex; margin-top: 24px; padding: 8px 0; color: #71808b; }
  .mobile-page { min-height: calc(100vh - 170px); }
  .mobile-inventory-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
  .mobile-inventory-intro h1 { margin: 2px 0 5px; color: #132635; font-size: 28px; letter-spacing: -.03em; }
  .mobile-inventory-intro > div > p:last-child { margin: 0; color: #667684; font-size: 13px; line-height: 1.5; }
  .mobile-readonly-label { width: fit-content; margin: 0 0 6px; border-radius: 99px; padding: 4px 8px; background: #e4ebf3; color: #24538a; font-size: 11px; font-weight: 800; }
  .mobile-refresh-button { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #d4dde5; border-radius: 12px; background: white; color: #24538a; box-shadow: 0 5px 15px rgba(16, 44, 68, .06); font-size: 22px; }
  .mobile-card { border: 1px solid #dbe3e9; border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(16, 44, 68, .06); }
  .mobile-selector-card { padding: 17px; }
  .mobile-selector-card > h2 { margin: 0 0 13px; color: #132635; font-size: 17px; }
  .mobile-selector-rows { overflow: hidden; border: 1px solid #d9e1e7; border-radius: 12px; }
  .mobile-selector-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 18px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #e3e9ed; padding: 0 13px; text-align: left; background: white; color: #17242f; }
  .mobile-selector-row:last-child { border-bottom: 0; }
  .mobile-selector-row:disabled { cursor: default; opacity: .48; }
  .mobile-selector-row span { color: #61717e; font-size: 13px; }
  .mobile-selector-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .mobile-selector-row i { color: #71808c; font-style: normal; font-size: 24px; line-height: 1; }
  .mobile-view-inventory-button { width: 100%; min-height: 48px; margin-top: 13px; border: 0; border-radius: 11px; background: #24538a; color: white; font-size: 15px; font-weight: 800; }
  .mobile-view-inventory-button:disabled { background: #bac5cf; cursor: default; }
  .mobile-recent-section { margin-top: 22px; }
  .mobile-recent-section > h2 { margin: 0 2px 10px; color: #132635; font-size: 17px; }
  .mobile-recent-list { overflow: hidden; border: 1px solid #dbe3e9; border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(16, 44, 68, .05); }
  .mobile-recent-item { width: 100%; min-height: 65px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #e5eaee; padding: 10px 14px; text-align: left; background: white; color: #17242f; }
  .mobile-recent-item:last-child { border-bottom: 0; }
  .mobile-recent-item > span { min-width: 0; display: grid; gap: 5px; }
  .mobile-recent-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .mobile-recent-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #70808c; font-size: 11px; }
  .mobile-recent-item > strong { color: #24538a; font-size: 14px; white-space: nowrap; }
  .mobile-recent-item > i { color: #72818c; font-style: normal; font-size: 22px; }
  .mobile-inventory-detail { display: grid; gap: 15px; }
  .mobile-stock-summary { padding: 17px; }
  .mobile-stock-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .mobile-stock-heading > div { min-width: 0; }
  .mobile-stock-heading p { margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6d7d89; font-size: 11px; }
  .mobile-stock-heading h2 { margin: 0; color: #132635; font-size: 19px; line-height: 1.4; }
  .mobile-stock-heading button { flex: 0 0 auto; min-height: 35px; border: 1px solid #9fb4cb; border-radius: 9px; padding: 0 10px; background: white; color: #24538a; font-size: 12px; font-weight: 800; }
  .mobile-stock-total { position: relative; margin-top: 16px; padding-top: 15px; border-top: 1px solid #e4e9ed; }
  .mobile-stock-total > span { display: block; color: #6c7b86; font-size: 12px; }
  .mobile-stock-total b { display: block; margin-top: 2px; color: #24538a; font-size: 15px; }
  .mobile-stock-total strong { margin-right: 2px; font-size: 38px; letter-spacing: -.04em; }
  .mobile-stock-total small { position: absolute; right: 0; bottom: 7px; color: #74828d; font-size: 11px; }
  .mobile-stock-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
  .mobile-stock-list-heading h2 { margin: 0; color: #132635; font-size: 17px; }
  .mobile-stock-list-heading span { color: #6d7b86; font-size: 11px; }
  .mobile-stock-list { overflow: hidden; box-shadow: none; }
  .mobile-stock-product + .mobile-stock-product { border-top: 6px solid #f2f5f8; }
  .mobile-stock-product-name { padding: 11px 13px 8px; border-bottom: 1px solid #e7ebee; background: #f8fafb; color: #293a48; font-size: 13px; font-weight: 800; line-height: 1.4; }
  .mobile-stock-row { min-height: 55px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 13px; border-bottom: 1px solid #e7ebee; }
  .mobile-stock-row:last-child { border-bottom: 0; }
  .mobile-stock-row span { color: #4f606d; font-size: 14px; font-weight: 700; }
  .mobile-stock-row b { min-width: 54px; text-align: right; color: #24538a; font-size: 24px; font-variant-numeric: tabular-nums; }
  .mobile-stock-row b small { margin-left: 2px; color: #74828d; font-size: 11px; font-weight: 600; }
  .mobile-stock-row.low-stock b { color: #c46a16; }
  .mobile-stock-row.out-of-stock b { color: #b5433d; }
  .mobile-stock-empty { min-height: 230px; display: grid; place-content: center; justify-items: center; color: #71808b; text-align: center; }
  .mobile-stock-empty span { font-size: 30px; }
  .mobile-stock-empty b { margin-top: 8px; color: #263845; }
  .mobile-stock-empty p { margin: 5px 16px 0; font-size: 12px; }
  .mobile-bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 50%; width: min(100%, 560px); min-height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); transform: translateX(-50%); border-top: 1px solid #d9e1e7; padding: 6px 8px env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); box-shadow: 0 -10px 28px rgba(16, 44, 68, .08); backdrop-filter: blur(14px); }
  .mobile-bottom-nav button { min-height: 52px; display: grid; place-content: center; justify-items: center; gap: 3px; border: 0; border-radius: 10px; background: transparent; color: #74818b; }
  .mobile-bottom-nav span { font-size: 20px; line-height: 1; }
  .mobile-bottom-nav b { font-size: 11px; }
  .mobile-bottom-nav button.active { color: #24538a; background: #edf2f7; }
  .panel { margin-bottom: 10px; border-radius: 13px; }
  .main-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 7px; position: sticky; top: 0; z-index: 5; }
  .main-nav .panel-label, .nav-item small { display: none; }
  .nav-item { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 0; padding: 9px 4px; text-align: center; }
  .nav-item > span { font-size: 16px; }
  .nav-item b { font-size: 13px; }
  .filter-panel, .subcategory-panel { padding: 13px; }
  .filter-panel section + section { margin-top: 14px; }
  .detail-panel, .today-panel { padding: 14px 10px; }
  .detail-heading { align-items: flex-start; }
  .detail-tools { flex-wrap: wrap; justify-content: flex-end; }
  .sku-master-dialog { padding: 10px; }
  .sku-master-heading { padding: 15px 15px 11px; }
  .sku-master-tools { padding: 10px 15px; flex-wrap: wrap; }
  .sku-master-search { width: 100%; min-width: 0; order: 2; }
  .sku-master-tools .count-pill { margin-left: 0; }
  .sku-master-notice { margin: 0 15px 10px; }
  .detail-heading h2 { font-size: 17px; }
  .detail-hint { line-height: 1.5; }
  .table-wrap { min-height: 300px; }
  th, td { padding: 9px 7px; }
  .desktop-action { display: none; }
  .today-list-wrap { min-height: 220px; max-height: none; }
  .today-empty { min-height: 180px; }
  .today-table .delete-action { display: none; }
  .table-column-resizer { display: none !important; }
  .history-board { grid-template-columns: 1fr; }
  .history-date-controls { flex-wrap: wrap; justify-content: flex-end; }
}
