/* Chawp operations workspace. Reporting styles are scoped to this portal. */
:root {
  --primary: #f8d83e; --primary-hover: #ebc92b; --primary-light: #fff9d9;
  --primary-glow: #f8d83e25; --bg-app: #f7f6f2; --bg-sidebar: #111111;
  --bg-card: #ffffff; --bg-input: #f8f8f5; --text-main: #191a19;
  --text-secondary: #74756f; --border: #e8e8e1; --report-border: #e9e9e3;
  --report-chart: #171717; --report-red: #d33840; --report-green: #287b4a;
  --sidebar-width: 232px; --radius-lg: 18px; --radius-md: 14px;
  --success: #308257; --error: #c63d43; --info: #4a648e;
}
[data-theme="dark"] {
  --primary: #f8d83e; --primary-hover: #ffe66d; --primary-light: #f8d83e15;
  --primary-glow: #f8d83e25; --bg-app: #171816; --bg-card: #20221f;
  --bg-input: #292c27; --text-main: #f4f3ed; --text-secondary: #a9aca2;
  --border: #35392f; --report-border: #35392f; --report-chart: #deded5;
  --report-green: #89c59e;
}
body { background: var(--bg-app); font-size: 13px; line-height: 1.5; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #b49916; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .45; }
.sidebar { width: var(--sidebar-width); padding: 27px 15px 18px; background: #111; border-right: 0; box-shadow: none; }
.logo-container { padding: 0 12px 22px; gap: 8px; border-bottom: 0; margin-bottom: 23px; align-items: center; }
.chawp-wordmark { color: #ffde42; font: italic 900 35px/1 var(--font-title); letter-spacing: -1.8px; position: relative; }
.chawp-wordmark::after { content: ''; position: absolute; height: 2px; background: #d23840; left: 4px; right: -2px; bottom: -5px; transform: rotate(-4deg); }
.admin-tag { font-size: 8px; letter-spacing: 1.25px; color: #111; background: #f4f4f0; font-weight: 800; padding: 3px 5px; border-radius: 3px; margin-left: auto; }
.sidebar-eyebrow { color: #7d7e78; font-size: 10px; letter-spacing: 2px; font-weight: 600; margin: 0 13px 9px; }
.command-nav { display: flex; flex-direction: column; gap: 5px; }
.command-nav-link { display: flex; align-items: center; gap: 12px; color: #c4c5bf; padding: 11px 13px; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background .15s; }
.command-nav-link svg { width: 17px; height: 17px; }
.command-nav-link:hover { background: #22231f; color: white; }
.command-nav-link.active { background: #ffdf46; color: #111; font-weight: 700; }
.sidebar-footer { border-top: 1px solid #2b2c27; margin-top: auto; padding-top: 16px; }
.report-profile { display: flex; align-items: center; gap: 10px; margin: 12px 9px 17px; }
.report-avatar { border-radius: 50%; background: #ffe04b; color: #111; display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; font-weight: 700; font-size: 11px; }
.report-profile strong { color: #eee; font-size: 12px; display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; }
.report-profile small { color: #81847b; font-size: 10px; }
.sidebar .theme-toggle { background: #20211d; border: 1px solid #30312a; padding: 3px; border-radius: 7px; }
.sidebar .theme-toggle-option { color: #999d91; padding: 6px 8px; font-size: 11px; }
.sidebar .theme-toggle-option.active { background: #393c31; color: #fff; box-shadow: none; }
.sidebar .btn-danger-outline { color: #adb0a4; border-color: #34372c; background: transparent; font-size: 11px; }
.main-content { margin-left: var(--sidebar-width); padding: 0; width: calc(100% - var(--sidebar-width)); max-width: none; min-width: 0; }
#dashboardTab { padding: 0 28px 40px; }
.report-topline { background: #e8f2e8; color: #3e6545; padding: 7px 28px; margin: 0 -28px; font-size: 10px; letter-spacing: .1px; display: flex; justify-content: space-between; gap: 10px; }
[data-theme="dark"] .report-topline { background: #233124; color: #afc9ad; }
.report-header { padding: 23px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.report-header h1 { font: italic 800 28px/1.2 var(--font-title); letter-spacing: -.9px; }
.report-header h1 span { font-style: normal; color: #a4a698; margin: 0 3px; }
.report-header p { color: var(--text-secondary); font-size: 11px; margin-top: 7px; }
.report-header-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; font-size: 10px; color: var(--text-secondary); }
.report-sync { border-radius: 20px; padding: 4px 9px; background: #e9efdf; color: #64814c; font-size: 10px; }
.report-sync::before { content: '●'; margin-right: 5px; font-size: 9px; }
.report-sync.partial { color: #926d17; background: #f7edcf; }
.report-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.report-filter-group, .report-toolbar-actions { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.report-filter-group label, .report-inline-filters label { display: flex; flex-direction: column; gap: 4px; color: var(--text-secondary); font-size: 9px; letter-spacing: .4px; font-weight: 600; }
.report-filter-group select, .report-filter-group input, .report-inline-filters select { color: var(--text-main); border: 1px solid var(--border); background: var(--bg-card); border-radius: 7px; padding: 8px 25px 8px 10px; font-size: 11px; height: 34px; max-width: 185px; }
.report-filter-group input { padding-right: 8px; }
.report-reset { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 7px 5px; color: var(--text-secondary); border: 0; background: transparent; font-size: 10px; cursor: pointer; }
.report-reset svg { width: 12px; height: 12px; }
.report-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 7px; padding: 8px 11px; color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 10px; white-space: nowrap; cursor: pointer; min-height: 34px; }
.report-button svg { width: 13px; height: 13px; }
.report-button:hover { border-color: #9c9f91; }
.report-button.primary { background: #171817; border-color: #171817; color: #fff; }
.report-button.yellow { background: #ffdc43; border-color: #ffdc43; color: #111; }
.report-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.report-tabs a { padding: 12px 13px 13px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--text-secondary); border-bottom: 2px solid transparent; white-space: nowrap; }
.report-tabs a.active { color: var(--text-main); border-bottom-color: #d33740; }
#reportContent { display: flex; flex-direction: column; gap: 19px; }
.report-hero { background: #131413; color: white; padding: 21px 23px 23px; border-radius: 16px; }
.hero-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 25px; }
.eyebrow { font-size: 9px; letter-spacing: 1.6px; color: #9b9e91; font-weight: 500; }
.hero-heading h2 { color: #fff; font-size: 19px; letter-spacing: -.4px; margin-top: 3px; }
.hero-heading p { font-size: 10px; color: #a0a399; margin-top: 4px; }
.hero-metrics { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr 1fr; gap: 22px; }
.hero-metrics > div { border-left: 1px solid #36382f; padding-left: 19px; min-width: 0; }
.hero-metrics > div:first-child { border: none; padding-left: 0; }
.hero-metrics span, .hero-metrics small { display: block; font-size: 10px; color: #aeb0a7; }
.hero-metrics strong { display: block; font-size: clamp(20px, 2vw, 29px); letter-spacing: -.9px; line-height: 1.3; margin: 4px 0; color: #fff; }
.hero-metrics small { font-size: 9px; color: #81867a; line-height: 1.55; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.report-metric { border: 1px solid var(--border); background: var(--bg-card); padding: 15px 17px; border-radius: 11px; min-width: 0; }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 10px; font-weight: 500; gap: 7px; }
.metric-label svg { width: 14px; height: 14px; color: #969a8b; flex-shrink: 0; }
.report-metric > strong { display: block; font-size: 23px; letter-spacing: -.7px; margin: 7px 0 4px; line-height: 1.25; }
.report-metric > p { font-size: 9px; color: var(--text-secondary); line-height: 1.6; }
.metric-delta { display: block; font-size: 9px; font-weight: 600; margin-top: 10px; color: var(--text-secondary); }
.metric-delta small { font-weight: 400; color: var(--text-secondary); margin-left: 3px; font-size: 8px; }
.metric-delta.positive { color: var(--report-green); }.metric-delta.negative { color: var(--report-red); }
.report-panel { background: var(--bg-card); border: 1px solid var(--border); padding: 19px 21px; border-radius: 14px; min-width: 0; overflow: hidden; }
.report-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.report-panel h2 { font-size: 12px; font-weight: 700; letter-spacing: -.1px; }
.report-panel-heading p { color: var(--text-secondary); font-size: 10px; margin-top: 4px; max-width: 670px; line-height: 1.6; }
.report-grid { display: grid; gap: 19px; align-items: start; }
.report-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-grid.overview-lower { grid-template-columns: 1.15fr 1fr; }
.report-chart { width: 100%; display: block; min-height: 150px; margin-top: 8px; overflow: visible; }
.report-chart text { fill: var(--text-secondary); font-size: 11px; font-family: var(--font-body); }
.report-bars { display: flex; flex-direction: column; gap: 14px; }
.bar-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; margin-bottom: 6px; }
.bar-meta span { overflow-wrap: anywhere; }.bar-meta strong { white-space: nowrap; font-size: 10px; }
.bar-track { height: 7px; border-radius: 3px; background: var(--bg-input); overflow: hidden; }
.bar-fill { height: 100%; background: var(--report-chart); border-radius: 3px; }.bar-fill.highlight { background: #e4bd27; }
.bar-row small { display: block; color: var(--text-secondary); margin-top: 5px; font-size: 9px; }
.report-alert { display: flex; gap: 10px; text-decoration: none; color: var(--text-main); padding: 12px 0; border-bottom: 1px solid var(--border); }
.report-alert:last-child { border-bottom: 0; padding-bottom: 0; }.report-alert:first-child { padding-top: 0; }
.report-alert > svg { width: 16px; height: 16px; flex-shrink: 0; color: #a7851f; margin-top: 2px; }.report-alert.danger > svg { color: var(--report-red); }
.report-alert > svg:last-child { margin-left: auto; width: 12px; color: #b0b3a5; }
.report-alert strong { font-size: 11px; font-weight: 600; }.report-alert p { font-size: 10px; color: var(--text-secondary); margin-top: 4px; line-height: 1.65; }
.report-badge { display: inline-flex; padding: 3px 7px; border-radius: 4px; background: var(--bg-input); color: var(--text-secondary); font-size: 9px; font-weight: 500; white-space: nowrap; }
.report-badge.positive, .report-badge.delivered { color: #307149; background: #eaf3e9; }
.report-badge.danger, .report-badge.cancelled { color: #b84046; background: #fbecef; }
.report-badge.warning, .report-badge.pending, .report-badge.ready { color: #947117; background: #faf1cf; }
.report-badge.transit, .report-badge.preparing { color: #456aa0; background: #edf2fb; }
.report-table-wrap { overflow-x: auto; max-width: 100%; }
.report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; min-width: 390px; }
.report-table th { color: var(--text-secondary); font-weight: 500; padding: 9px 10px 11px; border-bottom: 1px solid var(--border); background: var(--bg-input); font-size: 9px; white-space: nowrap; }
.report-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.report-table tbody tr:last-child td { border-bottom: 0; }.report-table tbody tr:hover { background: var(--bg-input); }
.report-table .primary-cell { font-weight: 600; }.report-table small { display: block; color: var(--text-secondary); font-size: 8px; font-weight: 400; margin-top: 3px; white-space: nowrap; }
.report-link { color: var(--text-main); font-size: 10px; font-weight: 600; border: 0; border-bottom: 1px dotted #a0a18f; background: transparent; padding: 0; cursor: pointer; text-align: left; }
.report-link:hover { color: #9f7b10; }.report-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 34px 20px; text-align: center; }
.report-empty svg { width: 25px; height: 25px; color: #b3b8a5; }.report-empty strong { font-size: 12px; }.report-empty p { color: var(--text-secondary); font-size: 10px; max-width: 460px; }
.report-notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid #c8c9b9; border-radius: 8px; }
.report-notice > svg { width: 16px; height: 16px; color: var(--text-secondary); flex-shrink: 0; margin-top: 1px; }.report-notice strong { font-size: 11px; }.report-notice p { font-size: 10px; color: var(--text-secondary); line-height: 1.7; margin-top: 3px; }.report-notice.warning { border-left-color: #dbb837; }.report-notice.danger { border-left-color: #cf4249; }
.report-body-copy { font-size: 11px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.allocation-track { display: flex; height: 30px; border-radius: 7px; overflow: hidden; margin: 16px 0 22px; gap: 3px; }.allocation-segment { min-width: 0; }
.allocation-0 { background: #1a1c1a; }.allocation-1 { background: #ffda3f; }.allocation-2 { background: #cf3940; }
.allocation-key { display: flex; flex-direction: column; gap: 12px; }.allocation-key > div { display: flex; align-items: center; gap: 7px; font-size: 10px; }.allocation-key strong { margin-left: auto; }.allocation-key small { color: var(--text-secondary); min-width: 36px; text-align: right; font-size: 9px; }.allocation-dot { width: 8px; height: 8px; border-radius: 2px; }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }.definition-grid strong { font-size: 11px; }.definition-grid p, .definition-list p { font-size: 10px; color: var(--text-secondary); line-height: 1.8; margin-top: 5px; }.definition-list article { padding: 15px 0; border-bottom: 1px solid var(--border); }.definition-list article:first-child { padding-top: 0; }.definition-list article:last-child { border: 0; }.definition-list h3 { font-size: 12px; }
.report-inline-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }.report-inline-filters .report-search { flex-direction: row; align-items: center; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-input); padding: 0 10px; min-width: min(100%, 270px); flex: 1; height: 35px; }.report-search svg { width: 13px; height: 13px; flex-shrink: 0; }.report-search input { background: transparent; border: 0; color: var(--text-main); font-size: 11px; padding: 8px; width: 100%; outline-offset: 0; }
.report-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 15px; }.report-pills button { padding: 5px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-card); color: var(--text-secondary); font-size: 10px; cursor: pointer; text-transform: capitalize; }.report-pills button.selected { background: #ffe04b; border-color: #ffe04b; color: #171717; }.report-pills button span { margin-left: 4px; opacity: .7; }
.report-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; color: var(--text-secondary); font-size: 10px; }.report-pagination > div { display: flex; align-items: center; gap: 10px; }.report-pagination .report-button { padding: 5px 9px; min-height: 28px; }
.report-coverage { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 9px; color: var(--text-secondary); flex-wrap: wrap; }.report-coverage svg { width: 12px; height: 12px; }.report-coverage a { color: inherit; margin-left: 4px; }
#reportDetailDialog { position: fixed; margin: auto; width: min(580px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-card); color: var(--text-main); }#reportDetailDialog::backdrop { background: #0008; }#reportDetailDialog h2 { font-size: 18px; margin-bottom: 16px; }#reportDetailDialog form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.legacy-back { display: inline-block; margin-bottom: 16px; color: var(--text-secondary); font-size: 11px; text-decoration: none; }
#vendorsTab, #ordersTab, #usersTab { padding: 28px; }.app-header h1 { font: italic 800 28px/1.2 var(--font-title); }.btn-primary { color: #181910; }.logo-text { background: none; -webkit-text-fill-color: currentColor; }
.login-card { background: #151713; border-color: #353a2e; }.login-header h2 { color: white; }.login-shield { background: #f8d83e12; border-color: #f8d83e35; }.login-form .form-label { color: #b5b8aa; }.login-form .form-input { background: #252820; color: white; border-color: #3b4032; }.login-footer { color: #9ba38c; }
@media (min-width: 901px) { .mobile-topbar { display: none; }.sidebar { display: flex; }.sidebar .logo-container { justify-content: flex-start; }.sidebar .theme-toggle span { display: inline; } }
@media (max-width: 1200px) and (min-width: 901px) { :root { --sidebar-width: 210px; }.sidebar { width: var(--sidebar-width); }.main-content { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); }#dashboardTab { padding: 0 20px 35px; }.report-topline { margin: 0 -20px; padding: 7px 20px; }.hero-metrics { gap: 15px; }.hero-metrics > div { padding-left: 13px; }.report-kpis { gap: 9px; }.report-metric { padding: 14px 12px; }.report-metric > strong { font-size: 21px; }.report-grid.two, .report-grid.overview-lower { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .app-screen { padding-top: 0; }
  .mobile-topbar { display: flex; position: fixed; height: 56px; background: #111; border-color: #2d3027; color: white; z-index: 1001; }.mobile-topbar .logo-text { color: #ffdc43; }.mobile-topbar .logo-icon { background: #ffdc43; color: #111; }.menu-toggle-btn { color: #fff; }.sidebar { width: 232px; padding: 25px 15px 18px; position: fixed; top: 0; bottom: 0; height: 100dvh; transform: translateX(-100%); z-index: 1100; display: flex; }.sidebar.active { transform: translateX(0); }.sidebar-overlay { z-index: 1050; }.main-content { margin-left: 0; width: 100%; padding-top: 56px; }#dashboardTab { padding: 0 18px 30px; }.report-topline { margin: 0 -18px; padding: 7px 18px; }.report-header { padding: 19px 0; }.report-header h1 { font-size: 25px; }.hero-metrics { grid-template-columns: 1fr 1fr; gap: 20px; }.hero-metrics > div { border: 0; padding: 0; }.hero-metrics strong { font-size: 25px; }.report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }.report-grid.two, .report-grid.overview-lower { grid-template-columns: 1fr; }.report-profile strong { max-width: 145px; }.report-toolbar-actions { margin-left: auto; }.logo-text, .theme-toggle span, .sidebar-footer .btn span { display: inline; }.logo-container { justify-content: flex-start; }
}
@media (max-width: 560px) {
  #dashboardTab { padding: 0 12px 25px; }.report-topline { margin: 0 -12px; padding: 7px 12px; font-size: 9px; }.report-topline > span:last-child { display: none; }.report-header { align-items: flex-start; gap: 9px; flex-direction: column; }.report-header h1 { font-size: 25px; }.report-header-meta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 9px; }.report-filter-group { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 9px; }.report-filter-group select, .report-filter-group input { max-width: none; min-width: 0; width: 100%; }.report-toolbar-actions { width: 100%; justify-content: space-between; }.report-toolbar-actions .report-button { flex: 1; }.report-toolbar { padding: 13px 0; }.report-tabs { margin-bottom: 15px; gap: 0; }.report-tabs a { padding: 11px; }.report-hero { padding: 19px 17px; }.hero-heading { align-items: flex-start; margin-bottom: 21px; }.hero-heading h2 { font-size: 18px; }.hero-heading p { font-size: 9px; }.hero-heading .report-button { padding: 7px; font-size: 9px; }.hero-heading .report-button svg { display: none; }.hero-metrics { column-gap: 16px; row-gap: 18px; }.hero-metrics strong { font-size: 23px; }.hero-metrics small { font-size: 8px; }.report-kpis { gap: 9px; }.report-metric { padding: 13px; }.metric-label { font-size: 9px; }.report-metric > strong { font-size: 23px; }.report-metric > p { font-size: 9px; }.metric-delta small { display: block; margin-left: 0; }.report-panel { padding: 16px 14px; }.report-panel-heading { gap: 9px; }.report-panel-heading .report-button { font-size: 9px; padding: 6px 8px; min-height: 29px; }.report-panel-heading .report-button svg { display: none; }.report-panel h2 { font-size: 12px; }.report-panel-heading p { font-size: 9px; }.report-chart { min-height: 110px; }.definition-grid { grid-template-columns: 1fr; }.report-pagination { align-items: flex-start; flex-direction: column; }.report-notice { padding: 12px; }.report-search { min-width: 100% !important; }#vendorsTab, #usersTab { padding: 18px 12px; }.app-header { flex-wrap: wrap; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.report-order-export { display: flex; justify-content: flex-end; margin: 0 0 12px; }

.modal-overlay:not(.active) { visibility: hidden; }
.modal-overlay.active { visibility: visible; }

.sidebar .theme-toggle-option { border: 0; background: transparent; }
@media (max-width: 900px) {
  .sidebar:not(.active) { visibility: hidden; }
  .sidebar.active { visibility: visible; }
}
@media (max-width: 560px) {
  .report-filter-group select, .report-filter-group input { height: 40px; }
  .report-toolbar-actions .report-button { min-height: 40px; }
  .report-table .report-link { min-height: 28px; display: inline-flex; align-items: center; }
}
