:root {
  --sidebar: #071523;
  --sidebar-soft: #0d2033;
  --app-bg: #f4f7fa;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --text: #172332;
  --text-soft: #677587;
  --text-faint: #96a2af;
  --line: #e2e8ee;
  --line-soft: #edf1f4;
  --blue: #1098ed;
  --blue-dark: #0879ce;
  --blue-soft: #e8f6ff;
  --green: #1ab67a;
  --green-soft: #e9f9f2;
  --orange: #f59c2b;
  --orange-soft: #fff4e4;
  --violet: #7769ef;
  --violet-soft: #efedff;
  --red: #e65c62;
  --red-soft: #ffedef;
  --shadow: 0 12px 35px rgba(18, 39, 61, .07);
  --sidebar-width: 252px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; }
body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; overflow-x: clip; color: var(--text); background: var(--app-bg); font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid rgba(16,152,237,.38); outline-offset: 2px; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 19px 15px 17px; color: #a6b5c4; background: var(--sidebar); border-right: 1px solid rgba(255,255,255,.06); transition: transform .28s ease; }
.sidebar-top { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.demo-brand { display: flex; align-items: center; gap: 8px; }
.demo-logo-crop { position: relative; width: 98px; height: 28px; display: block; overflow: hidden; }
.demo-logo-crop img { position: absolute; top: -23px; left: -26px; width: 148px; max-width: none; }
.demo-badge { padding: 3px 6px; color: #74c7fb; background: rgba(16,152,237,.12); border: 1px solid rgba(16,152,237,.2); border-radius: 5px; font-size: .52rem; font-weight: 800; letter-spacing: .12em; }
.sidebar-close { display: none !important; color: white !important; }

.company-switch { width: 100%; display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; gap: 10px; margin: 19px 0 20px; padding: 11px; color: white; text-align: left; background: var(--sidebar-soft); border: 1px solid rgba(255,255,255,.07); border-radius: 11px; }
.company-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #18a8ff, #0873cb); border-radius: 9px; font-size: .67rem; font-weight: 800; }
.company-switch strong, .company-switch small { display: block; }
.company-switch strong { margin-bottom: 1px; font-size: .71rem; }
.company-switch small { color: #718397; font-size: .58rem; }
.company-switch > svg { width: 14px; color: #6d8093; }

.demo-nav { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.demo-nav p { margin: 18px 12px 7px; color: #526579; font-size: .53rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.demo-nav button { position: relative; width: 100%; height: 43px; display: flex; align-items: center; gap: 12px; margin: 2px 0; padding: 0 12px; color: #8fa0b1; background: transparent; border: 0; border-radius: 9px; text-align: left; transition: color .2s, background .2s; }
.demo-nav button:hover { color: #dbe6ef; background: rgba(255,255,255,.045); }
.demo-nav button.active { color: white; background: linear-gradient(90deg, rgba(16,152,237,.19), rgba(16,152,237,.08)); }
.demo-nav button.active::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 3px; background: var(--blue); border-radius: 0 3px 3px 0; }
.demo-nav button svg { width: 18px; height: 18px; }
.demo-nav button span { flex: 1; font-size: .73rem; font-weight: 650; }
.demo-nav button i { min-width: 20px; height: 20px; display: grid; place-items: center; color: #ffbd62; background: rgba(245,156,43,.14); border-radius: 6px; font-size: .56rem; font-style: normal; font-weight: 800; }

.sidebar-help { margin: 14px 3px 13px; padding: 14px; background: linear-gradient(145deg, rgba(16,152,237,.14), rgba(16,152,237,.04)); border: 1px solid rgba(16,152,237,.14); border-radius: 12px; }
.sidebar-help > span { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 9px; color: #69c4fc; background: rgba(16,152,237,.13); border-radius: 8px; }
.sidebar-help svg { width: 15px; }
.sidebar-help strong { display: block; color: white; font-size: .68rem; }
.sidebar-help p { margin: 3px 0 10px; color: #6f8295; font-size: .58rem; }
.sidebar-help button { padding: 0; color: #68c3fb; background: none; border: 0; font-size: .61rem; font-weight: 750; }
.back-site { display: flex; align-items: center; gap: 8px; padding: 7px 9px; color: #708296; font-size: .62rem; transition: color .2s; }
.back-site:hover { color: white; }

.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.app-header { position: sticky; z-index: 30; top: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.mobile-menu { display: none !important; }
.global-search-wrap { position: relative; width: min(390px, 36vw); }
.global-search { width: 100%; height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 11px; background: #f5f7f9; border: 1px solid transparent; border-radius: 9px; transition: background .2s, border-color .2s, box-shadow .2s; }
.global-search:focus-within { background: white; border-color: #acd9f6; box-shadow: 0 0 0 3px rgba(16,152,237,.08); }
.global-search svg { width: 17px; color: #8e9baa; }
.global-search input { flex: 1; min-width: 0; padding: 0; background: transparent; border: 0; outline: 0; font-size: .7rem; }
.global-search input::placeholder { color: #9aa6b2; }
.global-search kbd { padding: 2px 6px; color: #8f9ba8; background: white; border: 1px solid #dde3e9; border-radius: 5px; font-family: inherit; font-size: .54rem; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.global-results { position: absolute; z-index: 95; top: calc(100% + 8px); left: 0; width: min(440px, calc(100vw - 24px)); max-height: min(520px, calc(100vh - 90px)); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 18px 45px rgba(4,22,36,.16); }
.global-results button { width: 100%; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 9px; padding: 10px 12px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); }
.global-results button:last-child { border-bottom: 0; }
.global-results button:hover, .global-results button:focus-visible { background: var(--surface-soft); }
.global-results button > span:first-child { width: 31px; height: 31px; display: grid; place-items: center; color: var(--blue-dark); background: var(--blue-soft); border-radius: 8px; }
.global-results button svg { width: 15px; }
.global-results strong, .global-results small { display: block; }
.global-results strong { font-size: .66rem; }
.global-results small { color: var(--text-faint); font-size: .55rem; }
.global-empty { margin: 0; padding: 15px; color: var(--text-soft); font-size: .63rem; text-align: center; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.today { margin-right: 7px; color: #7b8897; font-size: .64rem; text-transform: capitalize; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #68778a; background: transparent; border: 1px solid transparent; border-radius: 9px; transition: color .2s, background .2s, border-color .2s; }
.icon-button:hover { color: var(--blue-dark); background: var(--blue-soft); border-color: #d9edf9; }
.icon-button svg { width: 18px; }
.notification-button { position: relative; }
.notification-button i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: #ef6268; border: 1px solid white; border-radius: 50%; }
.profile-button { display: grid; grid-template-columns: 33px auto 15px; align-items: center; gap: 8px; margin-left: 2px; padding: 3px 4px 3px 3px; background: transparent; border: 0; border-radius: 9px; text-align: left; }
.profile-button:hover { background: #f4f7f9; }
.profile-button > span:first-child { width: 33px; height: 33px; display: grid; place-items: center; color: #096dad; background: #dff3ff; border-radius: 9px; font-size: .65rem; font-weight: 800; }
.profile-button strong, .profile-button small { display: block; }
.profile-button strong { color: #273446; font-size: .64rem; }
.profile-button small { color: #99a4af; font-size: .54rem; }
.profile-button > svg { width: 13px; color: #9ca7b2; }

.demo-notice { position: sticky; z-index: 25; top: var(--header-height); min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 30px; color: #21567b; background: rgba(233,247,255,.96); border-bottom: 1px solid #d7edfa; backdrop-filter: blur(12px); }
.demo-notice > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue-dark); background: white; border-radius: 7px; }
.demo-notice svg { width: 15px; }
.demo-notice p { flex: 1; margin: 0; font-size: .63rem; }
.demo-notice-actions { display: flex; align-items: center; gap: 8px; }
.demo-notice button, .demo-notice a { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px; border-radius: 7px; font-size: .61rem; font-weight: 750; white-space: nowrap; }
.demo-notice .simulation-button { color: white; background: linear-gradient(135deg, #10334f, #0a2035); border: 0; box-shadow: 0 6px 15px rgba(7,25,40,.16); }
.demo-notice .simulation-button:hover { background: linear-gradient(135deg, #0c8edc, #0877c9); transform: translateY(-1px); }
.demo-notice .notice-reset { color: #21567b; background: rgba(255,255,255,.8); border: 1px solid #c8e4f5; }
.demo-notice .notice-reset:hover { background: white; border-color: #9fd4f3; }
.demo-notice a { color: white; background: var(--blue); }

.content-shell { width: min(1330px, 100%); margin: 0 auto; padding: 28px 30px 55px; }
.app-panel { display: none; animation: panel-in .35s ease; }
.app-panel.active { display: block; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-title-row { min-height: 78px; display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 24px; }
.page-kicker { margin: 0 0 4px; color: var(--blue-dark) !important; font-size: .57rem !important; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.page-title-row h1 { margin: 0 0 4px; color: var(--text); font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.page-title-row h1 span { font-size: .8em; }
.page-title-row p { margin: 0; color: var(--text-soft); font-size: .7rem; }
.title-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-top: 7px; }
.primary-button, .secondary-button, .filter-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-size: .67rem; font-weight: 750; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.primary-button { color: white; background: linear-gradient(135deg, #16a3f7, #087dd6); border: 0; box-shadow: 0 8px 20px rgba(16,152,237,.18); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(16,152,237,.26); }
.secondary-button, .filter-button { color: #536174; background: var(--surface); border: 1px solid var(--line); }
.secondary-button:hover, .filter-button:hover { color: var(--blue-dark); border-color: #b9dff7; background: #f7fcff; }
.primary-button svg, .secondary-button svg, .filter-button svg { width: 15px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 10px rgba(22,42,63,.025); }
.kpi-card.alert-card { border-color: #f5dfc3; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kpi-icon, .quick-icon, .movement-icon, .report-file { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; }
.kpi-icon svg, .quick-icon svg, .movement-icon svg, .report-file svg { width: 18px; }
.blue { color: var(--blue-dark) !important; background: var(--blue-soft) !important; }
.green { color: var(--green) !important; background: var(--green-soft) !important; }
.orange { color: var(--orange) !important; background: var(--orange-soft) !important; }
.violet { color: var(--violet) !important; background: var(--violet-soft) !important; }
.trend { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 5px; font-size: .52rem; font-weight: 750; }
.trend svg { width: 10px; height: 10px; stroke-width: 2; }
.trend.positive { color: #159768; background: #ebf9f3; }
.trend.neutral { color: #6f64d7; background: #f0eeff; }
.trend.warning { color: #cb7a13; background: #fff4e4; }
.kpi-card > p { margin: 0 0 2px; color: var(--text-soft); font-size: .64rem; }
.kpi-card > strong { display: block; margin-bottom: 1px; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.035em; }
.kpi-card > small { color: var(--text-faint); font-size: .55rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(275px, .85fr); gap: 15px; }
.widget { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 11px rgba(22,42,63,.025); }
.widget-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 19px 0; }
.widget-head h2 { margin: 0 0 2px; color: var(--text); font-size: .83rem; letter-spacing: -.01em; }
.widget-head p { margin: 0; color: var(--text-faint); font-size: .57rem; }
.widget-head > button { padding: 2px 0; color: var(--blue-dark); background: transparent; border: 0; font-size: .58rem; font-weight: 750; }
.widget-head select { padding: 7px 27px 7px 9px; color: var(--text-soft); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; outline: none; font-size: .58rem; }
.chart-widget { min-height: 350px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 14px; margin: 8px 20px -2px; color: var(--text-soft); font-size: .54rem; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.chart-legend .entry { background: var(--blue); }
.chart-legend .exit { background: #97a6b7; }
.main-chart { position: relative; height: 264px; margin: 0 18px 10px 43px; }
.chart-scale { position: absolute; top: 10px; bottom: 25px; left: -32px; display: flex; flex-direction: column; justify-content: space-between; color: #a3adb8; font-size: .5rem; }
.main-chart > svg { width: 100%; height: 228px; overflow: visible; }
.grid-lines path { fill: none; stroke: #e9edf1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.main-chart .area { fill: url(#fillEntry); stroke: none; }
.main-chart .line { fill: none; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.entry-line { stroke: var(--blue); }
.exit-line { stroke: #a1adba; stroke-dasharray: 5 5; }
.chart-labels { display: flex; justify-content: space-between; color: #96a1ad; font-size: .51rem; }

.quick-widget { min-height: 350px; }
.quick-grid { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 8px 10px 11px; }
.quick-grid > button { display: grid; grid-template-columns: 37px 1fr 17px; align-items: center; gap: 10px; padding: 10px; color: var(--text); text-align: left; background: transparent; border: 0; border-radius: 9px; transition: background .2s, transform .2s; }
.quick-grid > button:hover { background: var(--surface-soft); transform: translateX(2px); }
.quick-grid strong, .quick-grid small { display: block; }
.quick-grid strong { margin-bottom: 2px; font-size: .65rem; }
.quick-grid small { color: var(--text-faint); font-size: .54rem; }
.quick-arrow { width: 14px; color: #a4afba; }

.alert-widget, .activity-widget { min-height: 265px; }
.alert-list, .activity-list { padding: 8px 18px 15px; }
.alert-item, .activity-item { display: grid; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.alert-item:last-child, .activity-item:last-child { border-bottom: 0; }
.alert-item { width: 100%; grid-template-columns: 34px 1fr auto; color: inherit; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.alert-item:hover { background: var(--surface-soft); }
.activity-item { grid-template-columns: 32px 1fr auto; }
.product-thumb { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-soft); border: 1px solid var(--line-soft); border-radius: 8px; font-size: 1rem; }
.alert-item strong, .alert-item small, .activity-item strong, .activity-item small { display: block; }
.alert-item strong, .activity-item strong { font-size: .61rem; }
.alert-item small, .activity-item small { margin-top: 2px; color: var(--text-faint); font-size: .52rem; }
.stock-number { text-align: right; }
.stock-number strong { color: var(--orange); }
.stock-number small { white-space: nowrap; }
.activity-marker { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; }
.activity-marker svg { width: 14px; }
.activity-amount { text-align: right; }
.activity-amount strong.in { color: var(--green); }
.activity-amount strong.out { color: var(--red); }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.summary-strip div { padding: 16px 20px; }
.summary-strip div + div { border-left: 1px solid var(--line); }
.summary-strip span, .summary-strip strong { display: block; }
.summary-strip span { color: var(--text-soft); font-size: .59rem; }
.summary-strip strong { margin-top: 2px; font-size: 1.05rem; }
.orange-text { color: var(--orange); }
.table-widget { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-toolbar > label { width: min(330px, 42%); height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.table-toolbar > label svg { width: 15px; color: #98a4b0; }
.table-toolbar input { width: 100%; padding: 0; background: transparent; border: 0; outline: 0; font-size: .62rem; }
.table-toolbar > div { display: flex; gap: 8px; }
.table-toolbar select { padding: 8px 29px 8px 10px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: .61rem; }
.filter-button { min-height: 36px; padding: 7px 11px; }
.advanced-filters { display: grid; grid-template-columns: repeat(3, minmax(145px, 1fr)) auto; align-items: end; gap: 10px; padding: 12px 16px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.advanced-filters label, .custom-period label { color: var(--text-soft); font-size: .57rem; font-weight: 700; }
.advanced-filters select, .custom-period input { width: 100%; display: block; margin-top: 4px; padding: 8px 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .61rem; }
.clear-filters { min-height: 36px; padding: 7px 11px; color: var(--blue-dark); background: transparent; border: 0; border-radius: 7px; font-size: .6rem; font-weight: 750; }
.clear-filters:hover { background: var(--blue-soft); }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; contain: inline-size; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; color: #8492a2; background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: .54rem; font-weight: 750; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 14px; color: #536174; border-bottom: 1px solid var(--line-soft); font-size: .6rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfd; }
.product-cell { display: flex; align-items: center; gap: 9px; }
.product-cell .product-thumb { width: 31px; height: 31px; font-size: .85rem; }
.product-cell strong, .product-cell small { display: block; }
.product-cell strong { color: var(--text); font-size: .61rem; }
.product-cell small { color: var(--text-faint); font-size: .5rem; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 100px; font-size: .51rem; font-weight: 750; }
.status-pill.ok { color: #188e63; background: var(--green-soft); }
.status-pill.low, .status-pill.waiting { color: #bf741b; background: var(--orange-soft); }
.status-pill.processing { color: #147fbe; background: var(--blue-soft); }
.row-menu { width: 36px; height: 36px; display: grid; place-items: center; color: #8491a0; background: transparent; border: 0; border-radius: 7px; }
.row-menu:hover { background: var(--surface-soft); }
.row-menu svg { width: 15px; }
.quantity-cell { color: var(--text); font-weight: 750; }
.quantity-cell.low { color: var(--orange); }
.movement-type { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; }
.movement-type.in { color: var(--green); }
.movement-type.out { color: var(--red); }
.movement-type svg { width: 12px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--text-faint); border-top: 1px solid var(--line); font-size: .55rem; }
.table-footer div { display: flex; gap: 4px; }
.table-footer button { min-width: 36px; height: 36px; padding: 0 8px; color: #8794a1; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-size: .63rem; }
.table-footer button.current { color: white; background: var(--blue); border-color: var(--blue); }

.movement-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.movement-summary article { display: flex; align-items: center; gap: 12px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.movement-icon.in { color: var(--green); background: var(--green-soft); }
.movement-icon.out { color: var(--red); background: var(--red-soft); }
.movement-icon.adjust { color: var(--violet); background: var(--violet-soft); }
.movement-summary span:not(.movement-icon), .movement-summary strong, .movement-summary small { display: block; }
.movement-summary span:not(.movement-icon) { color: var(--text-soft); font-size: .57rem; }
.movement-summary strong { font-size: .95rem; }
.movement-summary small { color: var(--text-faint); font-size: .5rem; }

.production-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 16px; padding: 19px 21px; color: white; background: linear-gradient(115deg, #08233a, #0d3856); border-radius: 13px; overflow: hidden; }
.production-banner > div { display: flex; align-items: center; gap: 14px; }
.production-banner > div > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #5fc0fc; background: rgba(16,152,237,.14); border: 1px solid rgba(16,152,237,.25); border-radius: 11px; }
.production-banner h2 { margin: 0 0 3px; font-size: .82rem; }
.production-banner p { margin: 0; color: #9fb2c3; font-size: .6rem; }
.production-banner > button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: white; background: var(--blue); border: 0; border-radius: 8px; font-size: .61rem; font-weight: 750; white-space: nowrap; }
.production-banner > button svg { width: 14px; }
.production-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 15px; }
.live-label { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: .53rem; font-weight: 750; }
.live-label i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(26,182,122,.1); }
.batch-list { padding: 8px 18px 18px; }
.batch { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.batch:last-child { border-bottom: 0; }
.batch-top { display: flex; justify-content: space-between; align-items: center; }
.batch-top strong, .batch-top small { display: block; }
.batch-top strong { margin-bottom: 1px; font-size: .63rem; }
.batch-top small { color: var(--text-soft); font-size: .57rem; }
.progress { height: 6px; margin: 11px 0 7px; overflow: hidden; background: #edf1f4; border-radius: 100px; }
.progress i { height: 100%; display: block; background: linear-gradient(90deg, var(--blue), #52b9f6); border-radius: inherit; }
.batch-info { display: flex; justify-content: space-between; color: var(--text-faint); font-size: .5rem; }
.recipe-list { padding: 8px 10px 12px; }
.recipe-list button { width: 100%; display: grid; grid-template-columns: 36px 1fr 15px; align-items: center; gap: 9px; padding: 10px; text-align: left; background: transparent; border: 0; border-radius: 9px; }
.recipe-list button:hover { background: var(--surface-soft); }
.recipe-emoji { width: 35px; height: 35px; display: grid; place-items: center; background: var(--surface-soft); border-radius: 9px; font-size: 1rem; }
.recipe-list strong, .recipe-list small { display: block; }
.recipe-list strong { font-size: .61rem; }
.recipe-list small { color: var(--text-faint); font-size: .51rem; }
.recipe-list svg { width: 13px; color: #a3aeba; }

.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.branch-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; transition: transform .2s, box-shadow .2s; }
.branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.branch-card.main-branch { border-color: #b9e1fa; box-shadow: inset 0 3px var(--blue); }
.branch-head { display: flex; justify-content: space-between; align-items: center; }
.branch-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue-dark); background: var(--blue-soft); border-radius: 10px; }
.branch-card h2 { margin: 17px 0 2px; font-size: .92rem; }
.branch-card > p { margin: 0 0 18px; color: var(--text-faint); font-size: .56rem; }
.branch-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 0; border-block: 1px solid var(--line-soft); }
.branch-stats div + div { padding-left: 11px; border-left: 1px solid var(--line-soft); }
.branch-stats span, .branch-stats strong { display: block; }
.branch-stats span { color: var(--text-faint); font-size: .49rem; }
.branch-stats strong { margin-top: 2px; font-size: .78rem; }
.branch-health { margin: 16px 0; }
.branch-health > span, .branch-health > strong { font-size: .52rem; }
.branch-health > span { color: var(--text-soft); }
.branch-health > strong { float: right; color: var(--green); }
.branch-health > div { height: 5px; margin-top: 7px; background: #edf1f4; border-radius: 5px; }
.branch-health i { height: 100%; display: block; background: var(--green); border-radius: inherit; }
.branch-card > button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px; color: var(--blue-dark); background: var(--blue-soft); border: 0; border-radius: 7px; font-size: .57rem; font-weight: 750; }
.branch-card > button svg { width: 12px; }
.transfer-widget { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; padding: 19px; }
.transfer-widget > div { display: flex; align-items: center; gap: 12px; }
.transfer-widget > div > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 10px; }
.transfer-widget h2 { margin: 0 0 2px; font-size: .75rem; }
.transfer-widget p { margin: 0; color: var(--text-soft); font-size: .56rem; }

.report-filters { display: flex; justify-content: space-between; margin-bottom: 16px; }
.report-filters > div { display: flex; padding: 3px; background: #e9eef2; border-radius: 8px; }
.report-filters button { padding: 6px 11px; color: #778594; background: transparent; border: 0; border-radius: 6px; font-size: .56rem; font-weight: 700; }
.report-filters button.active { color: var(--blue-dark); background: white; box-shadow: 0 2px 7px rgba(20,42,64,.08); }
.report-filters select { padding: 7px 28px 7px 10px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .58rem; }
.custom-period { display: flex; align-items: end; justify-content: flex-end; gap: 10px; margin: -6px 0 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.custom-period label { min-width: 145px; }
.custom-period .primary-button { min-height: 36px; }
.report-summary { margin-bottom: 15px; }
.report-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 15px; }
.report-chart, .report-value { min-height: 330px; }
.bar-chart { display: grid; gap: 17px; padding: 26px 21px; }
.bar-chart > div { display: grid; grid-template-columns: 95px 1fr 38px; align-items: center; gap: 12px; }
.bar-chart span { color: var(--text-soft); font-size: .55rem; }
.bar-chart i { height: 9px; display: block; overflow: hidden; background: #edf1f4; border-radius: 100px; }
.bar-chart b { height: 100%; display: block; background: linear-gradient(90deg, #139cf0, #5fc2fa); border-radius: inherit; }
.bar-chart strong { font-size: .57rem; text-align: right; }
.report-empty { grid-column: 1 / -1; padding: 44px 15px !important; text-align: center; }
.donut { width: 145px; height: 145px; display: grid; place-items: center; margin: 22px auto 15px; background: conic-gradient(var(--blue) 0 52%, var(--violet) 52% 83%, var(--green) 83% 100%); border-radius: 50%; }
.donut::before { content: ""; grid-area: 1/1; width: 96px; height: 96px; background: var(--surface); border-radius: 50%; }
.donut div { z-index: 1; grid-area: 1/1; text-align: center; }
.donut strong, .donut span { display: block; }
.donut strong { font-size: .9rem; }
.donut span { color: var(--text-faint); font-size: .51rem; }
.report-value ul { padding: 0 24px 18px; margin: 0; list-style: none; }
.report-value li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; padding: 4px 0; color: var(--text-soft); font-size: .51rem; }
.report-value li i { width: 7px; height: 7px; border-radius: 50%; }
.blue-dot { background: var(--blue); }.violet-dot { background: var(--violet); }.green-dot { background: var(--green); }
.report-value li strong { color: var(--text); }
.report-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
.report-cards > button { display: grid; grid-template-columns: 37px 1fr 18px; align-items: center; gap: 10px; padding: 15px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s, transform .2s; }
.report-cards > button:hover { border-color: #b9dff7; transform: translateY(-2px); }
.report-cards strong, .report-cards small { display: block; }
.report-cards strong { margin-bottom: 2px; font-size: .63rem; }
.report-cards small { color: var(--text-faint); font-size: .51rem; }
.report-cards > button > svg { width: 16px; color: #8d9aa8; }

.notification-drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(375px, 100%); height: 100vh; padding: 22px; background: var(--surface); box-shadow: -20px 0 50px rgba(6,20,33,.16); transform: translateX(105%); transition: transform .28s ease; }
.notification-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-head > div { display: flex; align-items: center; gap: 9px; }
.drawer-head h2 { margin: 0; font-size: 1rem; }
.drawer-head span { padding: 3px 6px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 5px; font-size: .53rem; font-weight: 750; }
.notification-item { position: relative; width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 16px 5px; color: inherit; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); }
.notification-item:hover { background: var(--surface-soft); }
.notification-item.unread::after { content: ""; position: absolute; top: 20px; right: 2px; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.notification-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; }
.notification-icon svg { width: 17px; }
.notification-icon.warning { color: var(--orange); background: var(--orange-soft); }
.notification-icon.success { color: var(--green); background: var(--green-soft); }
.notification-icon.blue { color: var(--blue); background: var(--blue-soft); }
.drawer-list strong { font-size: .68rem; }
.drawer-list p { margin: 3px 14px 3px 0; color: var(--text-soft); font-size: .6rem; }
.drawer-list small { color: var(--text-faint); font-size: .51rem; }

.modal-backdrop, .mobile-overlay { position: fixed; z-index: 60; inset: 0; background: rgba(3,13,22,.53); opacity: 0; visibility: hidden; backdrop-filter: blur(2px); transition: opacity .25s, visibility .25s; }
.modal-backdrop.open, .mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-overlay { z-index: 35; }
.modal { position: fixed; z-index: 70; top: 50%; left: 50%; width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 35px); overflow-y: auto; padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 28px 80px rgba(3,15,27,.27); opacity: 0; visibility: hidden; transform: translate(-50%, -47%) scale(.98); transition: opacity .25s, visibility .25s, transform .25s; }
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.modal-head p { margin: 0 0 2px; color: var(--blue-dark); font-size: .54rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal-head h2 { margin: 0; font-size: 1rem; }
.modal form { padding-top: 17px; }
.modal form > label, .form-row label { display: block; margin-bottom: 13px; color: #475669; font-size: .61rem; font-weight: 750; }
.modal label > span { color: var(--text-faint); font-weight: 500; }
.modal input:not([type="radio"]), .modal select, .modal textarea { width: 100%; margin-top: 5px; padding: 10px 11px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; outline: none; resize: vertical; font-size: .65rem; transition: border-color .2s, box-shadow .2s; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: #91cff5; box-shadow: 0 0 0 3px rgba(16,152,237,.09); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.type-selector label { cursor: pointer; }
.type-selector input { position: absolute; opacity: 0; pointer-events: none; }
.type-selector span { display: grid; grid-template-columns: 31px 1fr; align-items: center; column-gap: 8px; padding: 11px; color: var(--text-soft); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; transition: border-color .2s, background .2s; }
.type-selector span svg { grid-row: 1 / 3; width: 17px; height: 17px; padding: 6px; box-sizing: content-box; color: var(--blue-dark); background: var(--blue-soft); border-radius: 7px; }
.type-selector span strong, .type-selector span small { display: block; }
.type-selector span strong { color: var(--text); font-size: .62rem; }
.type-selector span small { font-size: .51rem; }
.type-selector input:checked + span { background: #f1faff; border-color: #87cdf8; box-shadow: 0 0 0 2px rgba(16,152,237,.07); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; padding-top: 15px; border-top: 1px solid var(--line); }
.operation-preview { display: grid; gap: 7px; margin-bottom: 14px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; }
.operation-preview > strong { color: var(--text); font-size: .63rem; }
.operation-preview > div { display: flex; justify-content: space-between; gap: 15px; padding-top: 6px; color: var(--text-soft); border-top: 1px solid var(--line-soft); font-size: .57rem; }
.operation-preview > div strong { font-size: .56rem; text-align: right; }
.operation-preview .available strong, .available-text { color: var(--green) !important; }
.operation-preview .missing strong, .missing-text { color: var(--red) !important; }
.product-detail { padding: 18px 0 4px; }
.detail-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.detail-heading .product-thumb { width: 44px; height: 44px; font-size: 1.2rem; }
.detail-heading strong, .detail-heading small { display: block; }
.detail-heading strong { font-size: .8rem; }
.detail-heading small { color: var(--text-faint); font-size: .58rem; }
.detail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-metrics div { padding: 11px; background: var(--surface-soft); border: 1px solid var(--line-soft); border-radius: 8px; }
.detail-metrics span, .detail-metrics strong { display: block; }
.detail-metrics span { color: var(--text-faint); font-size: .54rem; }
.detail-metrics strong { margin-top: 2px; font-size: .68rem; }
.detail-locations { margin-top: 15px; }
.detail-locations h3 { margin: 0 0 5px; font-size: .65rem; }
.detail-locations > div { display: flex; justify-content: space-between; padding: 8px 2px; color: var(--text-soft); border-bottom: 1px solid var(--line-soft); font-size: .59rem; }
.detail-history { margin-top: 17px; }
.detail-history .positive-text { color: var(--green); }
.detail-history .negative-text { color: var(--red); }
.profile-summary { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.profile-summary .company-avatar { width: 46px; height: 46px; flex: 0 0 auto; }
.profile-summary strong { display: block; font-size: .72rem; }
.profile-summary p { margin: 3px 0 0; color: var(--text-soft); font-size: .6rem; }

.tour-popover { position: fixed; z-index: 110; right: 28px; bottom: 28px; width: min(345px, calc(100% - 28px)); padding: 20px; color: white; background: #0b2032; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 22px 55px rgba(2,12,21,.3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, visibility .25s, transform .25s; }
.tour-popover.open { opacity: 1; visibility: visible; transform: none; }
.tour-step { color: #57bbf8; font-size: .52rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tour-progress { height: 4px; margin: 9px 0 12px; overflow: hidden; background: rgba(255,255,255,.09); border-radius: 100px; }
.tour-progress i { width: 4.166%; height: 100%; display: block; background: linear-gradient(90deg, #1da7f7, #63c8ff); border-radius: inherit; transition: width .3s ease; }
.tour-popover h2 { margin: 7px 0 5px; font-size: .9rem; }
.tour-popover p { margin: 0 0 16px; color: #9cabb9; font-size: .62rem; }
.tour-popover > div { display: flex; justify-content: space-between; }
.tour-nav { display: flex; gap: 6px; }
.tour-popover button { padding: 7px 11px; border-radius: 7px; font-size: .59rem; font-weight: 750; }
.tour-popover [data-tour-close] { color: #8c9cab; background: transparent; border: 0; }
.tour-popover [data-tour-prev] { color: #bdc9d3; background: rgba(255,255,255,.08); border: 0; }
.tour-popover [data-tour-prev]:disabled { opacity: .4; cursor: default; }
.tour-popover [data-tour-next] { color: white; background: var(--blue); border: 0; }
.tour-highlight { position: relative; z-index: 101 !important; box-shadow: 0 0 0 4px rgba(16,152,237,.38), 0 20px 50px rgba(4,19,31,.2) !important; }
body.tour-active::after { content: ""; position: fixed; z-index: 100; inset: 0; background: rgba(3,13,22,.26); pointer-events: auto; }

.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: 360px; display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 10px; padding: 13px 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 18px 50px rgba(5,20,32,.18); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s, visibility .25s, transform .25s; }
.toast.show { opacity: 1; visibility: visible; transform: none; }
.toast > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 9px; }
.toast.error > span { color: var(--red); background: var(--red-soft); }
.toast svg { width: 17px; }
.toast strong { display: block; font-size: .65rem; }
.toast p { margin: 2px 0 0; color: var(--text-soft); font-size: .56rem; }

body.dark-mode { --app-bg: #091521; --surface: #102131; --surface-soft: #0d1c2a; --text: #e8f0f6; --text-soft: #9aabba; --text-faint: #6f8292; --line: #203447; --line-soft: #1b2e40; --shadow: 0 12px 35px rgba(0,0,0,.2); }
body.dark-mode .app-header { background: rgba(12,28,41,.92); }
body.dark-mode .global-search kbd, body.dark-mode .report-filters button.active { color: var(--text); background: #182b3c; border-color: #294054; }
body.dark-mode .profile-button strong { color: var(--text); }
body.dark-mode tbody tr:hover { background: #122638; }
body.dark-mode .donut::before { background: var(--surface); }
body.dark-mode .notification-button i { border-color: var(--surface); }

@media (max-width: 1150px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .chart-widget { grid-column: 1 / -1; }
  .production-grid, .report-grid { grid-template-columns: 1fr; }
  .branch-grid { grid-template-columns: 1fr 1fr; }
  .today { display: none; }
}

@media (max-width: 850px) {
  :root { --header-height: 64px; }
  .sidebar { transform: translateX(-105%); box-shadow: 18px 0 45px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid !important; }
  .app-main { margin-left: 0; }
  .mobile-menu { display: grid !important; flex: 0 0 auto; }
  .app-header { padding: 0 18px; gap: 10px; }
  .global-search-wrap { flex: 1; width: auto; }
  .profile-button > span:nth-child(2), .profile-button > svg, .header-actions > .icon-button:first-of-type { display: none; }
  .demo-notice { padding-inline: 18px; }
  .content-shell { padding: 24px 18px 45px; }
}

@media (max-width: 650px) {
  .global-search kbd, .profile-button { display: none; }
  .app-header { justify-content: flex-start; }
  .header-actions { margin-left: auto; }
  .demo-notice { align-items: flex-start; flex-wrap: wrap; padding-block: 10px; }
  .demo-notice p { flex: 1 1 calc(100% - 40px); }
  .demo-notice-actions { width: calc(100% - 35px); margin-left: 35px; }
  .demo-notice-actions > * { flex: 1; }
  .page-title-row { flex-direction: column; }
  .page-title-row .primary-button:not(.title-actions .primary-button) { width: 100%; }
  .title-actions { width: 100%; }
  .title-actions > * { flex: 1; }
  .kpi-grid, .dashboard-grid, .movement-summary, .branch-grid, .report-cards { grid-template-columns: 1fr; }
  .chart-widget { grid-column: auto; }
  .kpi-grid { gap: 10px; }
  .kpi-card { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .kpi-top { grid-column: 1 / -1; }
  .kpi-card > p { align-self: start; }
  .kpi-card > strong { grid-column: 2; grid-row: 2 / 4; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-strip div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .summary-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-toolbar > label { width: 100%; }
  .table-toolbar > div { display: grid; grid-template-columns: 1fr auto; }
  .table-toolbar select { min-width: 0; }
  [data-panel="movements"] .table-toolbar > div { grid-template-columns: 1fr 1fr; }
  [data-panel="movements"] .table-toolbar > div .filter-button { grid-column: 1 / -1; }
  .advanced-filters { grid-template-columns: 1fr 1fr; }
  .advanced-filters .clear-filters { min-height: 42px; }
  .table-scroll { position: relative; }
  table { width: 760px; min-width: 760px; max-width: none; }
  .production-banner, .transfer-widget { align-items: stretch; flex-direction: column; }
  .production-banner > button, .transfer-widget > button { width: 100%; }
  .report-filters { align-items: stretch; flex-direction: column; gap: 9px; }
  .report-filters > div { overflow-x: auto; }
  .report-filters button { flex: 1; white-space: nowrap; }
  .report-filters select { width: 100%; }
  .custom-period { display: grid; grid-template-columns: 1fr 1fr; }
  .custom-period label { min-width: 0; }
  .custom-period .primary-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 430px) {
  .content-shell { padding-inline: 13px; }
  .app-header { padding-inline: 12px; }
  .global-search input { font-size: .62rem; text-overflow: ellipsis; }
  .page-title-row h1 span[aria-hidden="true"] { display: none; }
  .demo-notice { padding-inline: 13px; }
  .demo-notice-actions { width: 100%; margin-left: 0; }
  .demo-notice-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .demo-notice-actions .simulation-button { grid-column: 1 / -1; }
  .summary-strip div { padding: 13px; }
  .form-row, .type-selector { grid-template-columns: 1fr; }
  .advanced-filters { grid-template-columns: 1fr; }
  .custom-period { grid-template-columns: 1fr; }
  .custom-period .primary-button { grid-column: auto; }
  .modal { padding: 19px; }
  .chart-widget { min-height: 315px; }
  .main-chart { height: 225px; }
  .main-chart > svg { height: 188px; }
  .batch-info { gap: 6px; flex-wrap: wrap; }
  .branch-stats div + div { padding-left: 7px; }
  .detail-metrics { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions > * { width: 100%; }
  .tour-popover, .toast { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}