:root {
  color-scheme: light;
  --canvas: #f5f6f7;
  --surface: #fff;
  --ink: #242e2a;
  --muted: #78817c;
  --line: #e7ebe8;
  --green: #245b47;
  --green-deep: #173f35;
  --green-light: #edf4ef;
  --lime: #d9f3b5;
  --blue: #6787c4;
  --amber: #b68c4e;
  --red: #bd6c63;
  --radius: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { flex: 0 0 auto; }
button svg, .icon, .breadcrumbs svg, .login-help svg, .login-heading-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
button, a, input, select, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 2px solid #53836b; }
input:focus, select:focus { outline: 2px solid #53836b; outline-offset: 2px; }
::selection { color: #173f35; background: #d8e9c9; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--green-deep); color: white; padding: 12px 18px; border-radius: 8px; z-index: 20; }
.skip-link:focus { top: 12px; }

/* Workspace shell */
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand > span { color: #253a30; font-size: 19px; font-weight: 720; letter-spacing: -.7px; line-height: 1.2; }
.brand small { display: block; margin-top: 6px; color: #707871; font-size: 8px; font-weight: 600; letter-spacing: 1px; }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e9e8df; color: #757764; font-size: 14px; font-weight: 650; border: 3px solid #fff; }
.signout-button { border: 1px solid var(--line); background: transparent; display: flex; align-items: center; gap: 9px; padding: 8px 10px; color: #70786c; font-size: 13px; border-radius: 6px; text-align: left; }
.signout-button svg { width: 15px; height: 15px; }
.signout-button:hover { background: #f0f2ed; color: #405740; }
.workspace { min-width: 0; }
.topbar { height: 72px; padding: 0 34px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.breadcrumbs > span { color: #727774; }
.breadcrumbs strong { font-weight: 550; color: #606963; }
.breadcrumbs svg { width: 12px; height: 12px; color: #737772; }
.topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar .brand { padding: 0; }
.topbar .brand img { width: 32px; height: 32px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.integration-badge { display: flex; align-items: center; gap: 7px; color: #707871; font-size: 12px; white-space: nowrap; }
.integration-mark { background: #f0f2f7; border: 1px solid #e3e5ed; color: #60658f; border-radius: 6px; width: 24px; height: 24px; display: grid; place-items: center; font-style: italic; font-size: 13px; font-weight: 800; }
.topbar-divider { height: 23px; width: 1px; background: var(--line); }
.avatar-small { width: 31px; height: 31px; font-size: 12px; border-width: 2px; }
.dashboard-main { font-size: 14px; width: 100%; margin: 0 auto; padding: 33px 34px 0; }
#content { display: grid; gap: 22px; }

/* Heading, actions, and filters */
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 5px 0 4px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #72776e; font-size: 10px; font-weight: 650; letter-spacing: 1.65px; }
.eyebrow-dot { width: 5px; height: 5px; background: #92aa7b; border-radius: 50%; }
.page-heading h1 { font-size: clamp(26px, 2.5vw, 35px); font-weight: 640; line-height: 1.3; letter-spacing: -1.3px; margin-top: 7px; }
.page-heading h1 > span { color: #607e4e; }
.page-heading p { font-size: 13px; color: #727771; margin-top: 7px; }
.page-heading > div:first-child { min-width: 0; }
.source-account { display: inline-flex; align-items: center; gap: 5px; color: #737d70; font-size: 11px; margin-top: 8px; overflow-wrap: anywhere; }
.source-account .icon { width: 12px; height: 12px; }
.page-actions { display: flex; flex-shrink: 0; gap: 9px; padding-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; min-height: 38px; padding: 9px 14px; font-size: 13px; font-weight: 560; border: 1px solid transparent; line-height: 1.4; white-space: nowrap; transition: background .16s, border-color .16s, box-shadow .16s; }
.button svg { width: 15px; height: 15px; }
.button-primary { color: #fff; background: var(--green-deep); border-color: var(--green-deep); box-shadow: 0 2px 3px #173f3510; }
.button-primary:hover:not(:disabled) { background: #245743; border-color: #245743; box-shadow: 0 3px 7px #173f351c; }
.button-secondary { background: #fff; color: #616c64; border-color: #dfe5df; box-shadow: 0 1px 2px #222e2410; }
.button-secondary:hover:not(:disabled) { background: #f9fbf7; border-color: #bfcfc1; }
.button-small { min-height: 31px; padding: 6px 10px; font-size: 12px; }
.button-icon { padding: 8px; min-height: 32px; color: #707870; border-color: #e7ebe6; background: #fff; }
.button-icon:hover { color: #245b47; border-color: #b6ccbd; }
.filter-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px 15px; }
.date-navigation { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.date-navigation .button { min-height: 36px; }
.date-navigation .button:disabled { cursor: default; }
.date-navigation .button .icon { width: 13px; height: 13px; }
.date-previous-icon { transform: rotate(180deg); }
.date-navigation-label { text-align: center; min-width: 135px; }
.date-navigation-label strong { display: block; color: #4d6145; font-size: 12px; font-weight: 650; }
.date-navigation-label small { display: block; color: #717b69; font-size: 10px; margin-top: 2px; }
.filter-meta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.last-updated { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #737c6e; white-space: nowrap; }
.last-updated .icon { width: 12px; height: 12px; }
.filter-group { display: flex; align-items: center; min-width: 0; gap: 18px; }
.filter-control { display: flex; align-items: center; gap: 11px; min-width: 0; }
.filter-control > span { display: flex; align-items: center; color: #717870; gap: 7px; font-size: 12px; white-space: nowrap; }
.filter-control .icon { width: 14px; height: 14px; }
.filter-control select { background: #fff; border: 0; border-radius: 3px; color: #4d5b50; font-size: 14px; font-weight: 650; max-width: 280px; min-height: 27px; padding: 2px 19px 2px 2px; }
.filter-divider { width: 1px; height: 19px; background: var(--line); }
.custom-range { display: flex; align-items: end; flex-basis: 100%; flex-wrap: wrap; gap: 12px; padding: 14px 0 2px; border-top: 1px solid var(--line); }
.custom-range label { color: #6f786c; font-size: 12px; display: flex; align-items: center; gap: 9px; }
.custom-range input { padding: 7px 9px; color: #566851; border: 1px solid #dee5db; border-radius: 6px; background: #fff; max-width: 100%; }
.custom-range > span { align-self: center; color: #72786e; }

/* Make saved data coverage visible when the selected range is empty. */
.data-coverage { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 15px; margin-top: -10px; color: #70796c; font-size: 11px; }
.data-coverage strong { color: #4c6246; font-weight: 600; }
.empty-range-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid #dce7d1; border-radius: 9px; background: #f6f9f0; color: #53684a; }
.empty-range-notice strong { font-size: 13px; font-weight: 600; }
.empty-range-notice p { font-size: 12px; color: #6d7d60; margin-top: 4px; }

/* Summary and panels */
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.summary-card { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 16px 18px 14px; }
.summary-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.summary-card-top > span:first-child { color: #52634f; font-size: 14px; font-weight: 650; }
.summary-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.summary-icon svg { width: 16px; height: 16px; }
.icon-neutral { color: #6a7a6e; background: #f3f5f1; }
.icon-green { color: #527c5b; background: #f0f6ed; }
.icon-blue { color: #5f7798; background: #eff4fa; }
.icon-amber { color: #897250; background: #f9f4e9; }
.summary-value { display: block; color: #303f33; font-size: 34px; font-weight: 700; letter-spacing: -.85px; line-height: 1.15; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.summary-card p { color: #65705d; font-size: 12px; font-weight: 600; }
.section-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 1px -7px; }
.section-caption > span:first-child { color: #71786f; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; }
.section-caption > span:last-child { color: #73776f; font-size: 11px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; box-shadow: 0 2px 3px #183c2602; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 20px 0; }
.panel-heading-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 32px; border: 1px solid #e9ede5; background: #fcfdf9; color: #6c7a65; border-radius: 7px; flex-shrink: 0; }
.panel-icon .icon { width: 16px; height: 16px; }
.panel-heading h2 { color: #394b37; font-size: 16px; font-weight: 700; line-height: 1.5; }
.panel-heading p { color: #68725f; font-size: 12px; font-weight: 550; margin-top: 3px; }
.subtle-badge { color: #72786a; background: #f5f7f1; border: 1px solid #ecf0e5; font-size: 10px; font-weight: 500; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.charts-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.chart-panel { display: flex; flex-direction: column; }
.chart-layout { flex: 1; min-height: 219px; padding: 28px 21px 27px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 46px); }
.shiprocket-donut { width: 163px; height: 163px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transform: rotate(-.02deg); }
.shiprocket-donut-center { width: 123px; height: 123px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.shiprocket-donut-center > span { font-size: 27px; letter-spacing: -.7px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.shiprocket-donut-center small { font-size: 11px; color: #72786d; margin-top: 3px; }
.chart-legend { flex: 1; max-width: 245px; min-width: 140px; display: grid; gap: 11px; }
.legend-item { display: grid; grid-template-columns: minmax(0, 1fr) 45px 48px; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.legend-name { display: flex; align-items: center; gap: 7px; min-width: 0; color: #70786b; }
.legend-name i { width: 6px; height: 6px; border-radius: 2px; flex-shrink: 0; }
.legend-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-item > strong { color: #697660; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.legend-percentage { color: #5b6a53; text-align: right; font-size: 12px; font-weight: 650; }
.payment-panel .chart-layout { gap: 25px; }
.payment-panel .shiprocket-donut { width: 143px; height: 143px; }
.payment-panel .shiprocket-donut-center { width: 108px; height: 108px; }
.payment-panel .chart-legend { min-width: 120px; gap: 17px; }
.payment-panel .legend-item { grid-template-columns: minmax(0, 1fr) 48px 48px; gap: 8px; }
.chart-footnote { display: flex; align-items: center; gap: 6px; margin: 0 20px; padding: 12px 0; border-top: 1px solid #f0f2eb; color: #72786b; font-size: 10px; }
.tiny-dot { width: 4px; height: 4px; background: #a8b99a; border-radius: 50%; }

/* Product and regional tables */
.product-panel .panel-heading, .state-panel .panel-heading { padding-bottom: 20px; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d7dfd1 transparent; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table thead { background: #fafbf8; }
.data-table th { font-size: 12px; font-weight: 700; color: #727869; white-space: nowrap; padding: 12px 13px; border-top: 1px solid #edf0e9; border-bottom: 1px solid #edf0e9; }
.data-table .sortable-header { padding: 0; }
.table-sort { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; padding: 12px 13px; border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; white-space: nowrap; }
.sortable-header:nth-child(2) .table-sort { justify-content: flex-start; }
.table-sort:focus-visible { outline-offset: -4px; }
.table-sort:hover { color: #245b47; background: #eef3e9; }
.table-sort-icon { color: #9da897; font-size: 14px; line-height: 1; }
.sortable-header[aria-sort="ascending"], .sortable-header[aria-sort="descending"] { color: #245b47; background: #edf3e7; }
.sortable-header[aria-sort="ascending"] .table-sort-icon, .sortable-header[aria-sort="descending"] .table-sort-icon { color: #245b47; }
.data-table td { font-weight: 600; padding: 16px 13px; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid #f0f3eb; color: #707868; }
.data-table th:nth-child(n+3), .data-table td:nth-child(n+3) { text-align: center; }
.data-table .rn { width: 39px; padding-left: 20px; padding-right: 8px; font-size: 10px; color: #73776d; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fafcf7; }
.product-cell { min-width: 270px; max-width: 420px; white-space: normal; }
.product-cell strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; color: #3b5133; white-space: normal; overflow-wrap: anywhere; }
.product-cell small { display: block; font-size: 12px; font-weight: 550; color: #65725a; margin-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.table-total { font-size: 15px; font-weight: 700; color: #607055; }
.table-status { display: inline-block; padding: 3px 7px; border-radius: 5px; min-width: 28px; }
.status-green { background: #f0f5eb; color: #687c56; }
.shiprocket-count { font-size: 14px; font-weight: 700; }
.shiprocket-pct { display: block; margin-top: 3px; font-size: 12px; color: #5e6e58; font-weight: 650; }
.tone-green { color: #5c7e5f; }
.tone-blue { color: #637792; }
.tone-red { color: #946c62; }
.tone-amber { color: #86734f; }
.tone-purple { color: #7d7189; }
.tone-muted { color: #72786c; }
.table-footer { padding: 11px 20px; border-top: 1px solid #edf0e7; display: flex; justify-content: space-between; gap: 12px; color: #72786b; font-size: 10px; }
.table-empty { text-align: center !important; padding: 37px 20px !important; }
.table-empty > span { display: inline-flex; color: #6c7a65; padding: 12px; background: #f5f8ef; border-radius: 12px; margin-bottom: 10px; }
.table-empty strong { display: block; color: #6c7a63; font-size: 13px; font-weight: 550; }
.table-empty p { color: #717868; font-size: 12px; margin-top: 5px; white-space: normal; }
.insights-grid { display: grid; grid-template-columns: .92fr 1.3fr; align-items: start; gap: 20px; }
.status-breakdown { padding: 23px 20px 20px; display: grid; gap: 17px; max-height: 335px; overflow-y: auto; scrollbar-width: thin; }
.breakdown-item > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.breakdown-item span { font-size: 11px; color: #6f7966; }
.breakdown-item > div:first-child > span { display: flex; align-items: center; gap: 7px; }
.breakdown-item i { width: 5px; height: 5px; border-radius: 2px; }
.breakdown-item strong { font-size: 12px; color: #6b7b5d; font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown-item small { display: inline-block; width: 40px; text-align: right; font-size: 10px; font-weight: 400; color: #707868; margin-left: 10px; }
.breakdown-track { height: 4px; border-radius: 5px; background: #f2f5ed; overflow: hidden; }
.breakdown-track > span { display: block; height: 100%; border-radius: 5px; }
.state-name { color: #4f6543; font-size: 14px; font-weight: 650; }
.state-panel .data-table td { padding-top: 14px; padding-bottom: 14px; }
.state-panel .table-scroll { max-height: 336px; }
.state-panel thead th { position: sticky; top: 0; background: #fafbf8; }
.small-empty { text-align: center; padding: 25px 15px; color: #717869; }
.small-empty p { font-size: 12px; margin-top: 10px; }

/* Sync and feedback */
.sync-panel .panel-heading { padding-bottom: 17px; border-bottom: 1px solid #f0f3e9; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; padding: 5px 8px; border-radius: 20px; background: #f4f7ee; color: #6e7a62; white-space: nowrap; }
.status-pill i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-danger { background: #fff3ef; color: #986b5b; }
.status-running { background: #edf3f9; color: #63788a; }
.sync-body { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.sync-description { max-width: 50%; }
.sync-description h3 { font-size: 13px; font-weight: 550; color: #697b5c; }
.sync-description p { margin-top: 5px; font-size: 11px; line-height: 1.7; color: #717867; overflow-wrap: anywhere; }
.sync-timestamp { display: flex; align-items: center; gap: 5px; color: #72786a; font-size: 10px; margin-top: 10px; }
.sync-timestamp .icon { width: 11px; height: 11px; }
.sync-stats { display: flex; gap: 32px; text-align: right; }
.sync-stats strong { display: block; color: #677c56; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sync-stats span { display: block; color: #707967; font-size: 10px; margin-top: 3px; }
.sync-actions { padding: 12px 20px; background: #fcfdf9; border-top: 1px solid #f0f3e9; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sync-actions > span { font-size: 11px; color: #6f7966; }
.sync-actions > div { display: flex; flex-wrap: wrap; gap: 7px; }
.sync-progress-wrap { margin: 0 20px 20px; }
.sync-progress-label { display: flex; justify-content: space-between; color: #6f7965; font-size: 10px; margin-bottom: 6px; }
.sync-progress-label strong { font-weight: 500; }
.sync-progress { height: 5px; background: #f0f4ea; border-radius: 8px; overflow: hidden; }
.sync-progress > span { display: block; height: 100%; border-radius: 8px; background: #9ab384; transition: width .3s; }
.alert { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #f0dcd3; border-radius: 9px; background: #fff9f5; color: #a1675a; }
.alert-icon { width: 25px; height: 25px; border: 1px solid #e8c9b8; display: grid; place-items: center; font-size: 14px; border-radius: 50%; flex: 0 0 auto; }
.alert > div { flex: 1; min-width: 0; }
.alert strong { font-size: 13px; font-weight: 600; }
.alert p { font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.workspace-footer { padding: 25px 0 23px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #72786b; font-size: 10px; }
.footer-dot { margin: 0 5px; color: #73776d; }
.skeleton { border-radius: 10px; background: linear-gradient(100deg, #e9ede7 20%, #f1f4ed 40%, #e9ede7 60%); background-size: 200% 100%; animation: shimmer 1.8s ease-in-out infinite; }
.loading-state { padding: 15px 0; }
.loading-heading { width: 260px; height: 34px; }
.loading-subheading { width: 320px; max-width: 80%; height: 12px; margin-top: 13px; }
.loading-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 42px; }
.loading-cards > div { height: 130px; }
.loading-charts { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 25px; }
.loading-charts > div { height: 310px; }
.spinning { animation: spin 1.6s linear infinite; }

/* Sign in */
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #fcfcf9; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; background: #173f35; padding: 42px 54px 27px; color: #fff; overflow: hidden; }
.login-story::before, .login-story::after { content: ""; width: 620px; height: 620px; border: 1px solid #ffffff06; border-radius: 50%; position: absolute; bottom: -350px; right: -300px; pointer-events: none; }
.login-story::after { width: 850px; height: 850px; bottom: -465px; right: -415px; }
.brand-on-dark { padding: 0; }
.brand-on-dark > span { color: #f0f2dc; font-size: 20px; }
.brand-on-dark small { color: #92ac93; }
.brand-on-dark img { border: 1px solid #97bf7e26; border-radius: 12px; }
.login-story-content { margin-top: 60px; max-width: 510px; position: relative; z-index: 1; }
.light-eyebrow { color: #90b096; font-size: 10px; letter-spacing: 1.8px; }
.light-eyebrow > span { width: 5px; height: 5px; background: #b2d596; border-radius: 50%; }
.login-story h1 { margin: 24px 0 22px; font-size: clamp(38px, 4.3vw, 65px); font-weight: 480; line-height: 1.12; letter-spacing: -2.2px; color: #f6f5e8; }
.login-story h1 em { font-family: Georgia, "Times New Roman", serif; font-size: 1.04em; font-weight: 400; color: #d3ecb1; letter-spacing: -2.4px; }
.login-story-content > p { color: #99b19c; font-size: 13px; line-height: 1.85; font-weight: 400; }
.journey-art { position: relative; height: 240px; margin-top: 20px; width: 100%; max-width: 480px; }
.journey-path { position: absolute; width: 100%; height: 190px; top: 0; left: 0; }
.journey-package { position: absolute; display: grid; place-items: center; top: 90px; left: 5%; width: 74px; height: 78px; background: #d8d8ae; border: 1px solid #e0dfb5; border-radius: 13px; box-shadow: 7px 8px 0 #13382d; transform: rotate(-8deg); }
.journey-package svg { width: 40px; height: 40px; fill: none; stroke: #7e8e60; stroke-width: 1.3; stroke-linejoin: round; }
.journey-confirm { position: absolute; top: 48px; right: 3%; display: flex; align-items: center; gap: 12px; background: #f8f9e9; padding: 14px 21px 14px 14px; border-radius: 12px; box-shadow: 0 12px 30px #0c2d261c; transform: rotate(5deg); }
.journey-confirm > span { display: grid; place-items: center; background: #e7efd2; color: #749c5a; border: 1px solid #d6e6ba; width: 33px; height: 33px; border-radius: 50%; font-size: 17px; }
.journey-confirm > div { color: #6e8259; font-size: 14px; font-weight: 650; }
.journey-confirm small { display: block; color: #a6b191; font-size: 10px; margin-top: 3px; font-weight: 400; }
.journey-origin, .journey-destination { position: absolute; top: 184px; left: 5%; color: #78997f; font-size: 9px; letter-spacing: 1.8px; }
.journey-destination { left: auto; right: 3%; }
.login-story-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; color: #799980; font-size: 12px; }
.story-footer-mark { font-size: 28px; color: #bdd798; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 60px 60px 75px; position: relative; min-width: 0; }
.login-form-wrap { width: 100%; max-width: 340px; }
.login-heading-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; color: #667b5d; background: #f0f3e9; border: 1px solid #e6ebdc; border-radius: 13px; margin-bottom: 31px; }
.login-heading-icon svg { width: 23px; height: 23px; }
.login-form-wrap .eyebrow { font-size: 10px; color: #717866; letter-spacing: 1.8px; }
.login-form-wrap h2 { font-size: 36px; font-weight: 560; letter-spacing: -1.4px; color: #3e5139; margin-top: 9px; line-height: 1.3; }
.login-intro { font-size: 14px; color: #6e7963; margin-top: 9px; }
.login-form { display: grid; gap: 20px; margin-top: 35px; }
.login-form label { display: grid; gap: 8px; font-size: 13px; color: #697a5d; font-weight: 500; }
.login-form input:not([type="hidden"]) { width: 100%; min-width: 0; border: 1px solid #e2e8d9; background: #fff; border-radius: 8px; padding: 13px 14px; min-height: 47px; font-size: 13px; color: #637c52; box-shadow: 0 1px 2px #3c4f2d03; }
.login-form input::placeholder { color: #71776a; font-size: 12px; font-weight: 400; }
.login-submit { width: 100%; margin-top: 6px; min-height: 47px; justify-content: space-between; padding-left: 17px; padding-right: 17px; font-size: 13px; }
.login-help { border-top: 1px solid #e8eddf; padding-top: 20px; margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #707865; font-size: 11px; }
.login-help svg { width: 12px; height: 12px; }
.login-alert { margin-top: 24px; padding: 12px; }
.login-alert p { margin: 0; font-size: 12px; }
.login-bottom { position: absolute; bottom: 25px; right: 38px; left: 38px; display: flex; justify-content: space-between; gap: 15px; color: #727769; font-size: 10px; }
.login-mobile-brand { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Smaller screens retain every action and keep wide reports scrollable. */
@media (min-width: 1700px) {
  .dashboard-main { padding-top: 45px; }
  #content { gap: 26px; }
  .summary-card { padding: 22px; }
  .summary-value { font-size: 36px; }
  .chart-layout { min-height: 245px; }
}
@media (max-width: 1250px) {
  .brand > span { font-size: 17px; }
  .brand small { font-size: 8px; }
  .topbar { padding: 0 26px; }
  .dashboard-main { padding: 27px 26px 0; }
  .chart-layout { gap: 19px; padding-left: 17px; padding-right: 17px; }
  .shiprocket-donut { width: 142px; height: 142px; }
  .shiprocket-donut-center { width: 107px; height: 107px; }
  .payment-panel .chart-layout { gap: 16px; }
  .payment-panel .shiprocket-donut { width: 123px; height: 123px; }
  .payment-panel .shiprocket-donut-center { width: 92px; height: 92px; }
  .chart-legend { min-width: 115px; }
  .legend-item { grid-template-columns: minmax(0, 1fr) 45px 48px; gap: 7px; font-size: 12px; }
  .panel-heading { padding-left: 17px; padding-right: 17px; }
  .panel-heading .subtle-badge { display: none; }
  .summary-card { padding: 13px 14px; }
  .summary-card p { font-size: 11px; }
  .sync-stats { gap: 20px; }
  .login-story { padding-left: 38px; padding-right: 38px; }
}
@media (max-width: 1050px) {
  .charts-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .chart-layout, .payment-panel .chart-layout { flex-direction: column; min-height: 310px; gap: 22px; justify-content: flex-start; padding-top: 22px; }
  .shiprocket-donut, .payment-panel .shiprocket-donut { width: 142px; height: 142px; }
  .shiprocket-donut-center, .payment-panel .shiprocket-donut-center { width: 107px; height: 107px; }
  .chart-legend, .payment-panel .chart-legend { width: 100%; max-width: 230px; gap: 8px; flex: initial; }
  .payment-panel .legend-item, .legend-item { grid-template-columns: minmax(0, 1fr) 45px 48px; font-size: 12px; }
  .chart-footnote { min-height: 43px; }
  .insights-grid { grid-template-columns: 1fr; gap: 20px; }
  .summary-card-top > span:first-child { font-size: 13px; }
  .summary-icon { width: 25px; height: 25px; }
  .summary-icon svg { width: 14px; height: 14px; }
  .summary-grid { gap: 10px; }
  .summary-value { font-size: 27px; }
  .sync-actions { flex-wrap: wrap; }
  .login-story { padding-left: 30px; padding-right: 30px; }
  .login-main { padding-left: 40px; padding-right: 40px; }
  .login-story h1 { font-size: 47px; }
}
@media (max-width: 1000px) {
  .date-navigation { order: 2; width: 100%; margin-left: 0; padding-top: 12px; border-top: 1px solid var(--line); justify-content: space-between; }
  .date-navigation-label { flex: 1; min-width: 0; }
  .custom-range { order: 3; }
}
@media (max-width: 850px) {
  html { scroll-padding-top: 25px; }
  .brand { padding: 0; }
  .brand > span { font-size: 18px; }
  .brand img { width: 33px; height: 33px; }
  .brand small { font-size: 8px; }
  .signout-button { width: auto; font-size: 12px; border: 1px solid #e6eae2; padding: 7px 10px; }
  .workspace { margin-left: 0; }
  .topbar { padding: 0 23px; height: 64px; }
  .topbar-right { gap: 10px; }
  .topbar .avatar { display: none; }
  .integration-badge { font-size: 11px; }
  .integration-mark { width: 19px; height: 19px; border-radius: 5px; font-size: 13px; }
  .dashboard-main { padding: 25px 22px 0; }
  .page-actions { padding-top: 10px; }
  .page-heading h1 { font-size: 30px; }
  .charts-grid { grid-template-columns: 1.1fr 1fr; }
  .chart-layout, .payment-panel .chart-layout { flex-direction: column; min-height: 320px; }
  .section-caption { margin-top: 0; }
  .login-story { padding: 32px 30px 23px; }
  .login-story h1 { font-size: 43px; letter-spacing: -1.7px; }
  .login-story-content > p { font-size: 13px; }
  .light-eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .journey-confirm { padding: 12px; right: 0; }
  .journey-confirm > div { font-size: 12px; }
  .journey-confirm small { font-size: 9px; }
  .journey-package { width: 58px; height: 65px; }
  .login-main { padding-left: 30px; padding-right: 30px; }
  .login-form-wrap h2 { font-size: 31px; }
}
@media (max-width: 600px) {
  #content { gap: 18px; }
  .dashboard-main { padding: 24px 16px 0; }
  .topbar { height: 64px; padding-left: 18px; padding-right: 18px; }
  .topbar .breadcrumbs, .topbar-left > .topbar-divider, .topbar .integration-badge { display: none; }
  .topbar .brand > span { font-size: 18px; }
  .breadcrumbs { gap: 6px; font-size: 11px; }
  .integration-badge { font-size: 10px; gap: 5px; }
  .page-heading { align-items: start; flex-direction: column; gap: 16px; }
  .page-heading h1 { font-size: 30px; margin-top: 6px; }
  .page-heading p { font-size: 13px; }
  .page-actions { padding: 0; width: 100%; }
  .page-actions .button { flex: 1; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .filter-toolbar { padding: 11px 10px; gap: 9px; }
  .filter-group { gap: 11px; flex: 1; }
  .date-navigation { gap: 8px; }
  .date-navigation .button { padding: 7px 9px; font-size: 11px; }
  .date-navigation-label strong { font-size: 11px; }
  .filter-control { display: grid; gap: 3px; min-width: 0; }
  .filter-control > span { font-size: 10px; gap: 5px; }
  .filter-control .icon { width: 11px; height: 11px; }
  .filter-control select { font-size: 12px; width: 100%; max-width: 150px; }
  .filter-product { flex: 1; }
  .filter-divider { height: 30px; }
  .last-updated { display: none; }
  .button-small { min-height: 38px; }
  .filter-meta > .button-icon { padding: 7px; min-height: 29px; }
  .custom-range { gap: 8px; align-items: center; }
  .custom-range label { flex: 1; flex-direction: column; align-items: start; gap: 5px; }
  .custom-range input { width: 100%; font-size: 12px; }
  .custom-range > span { padding-top: 17px; }
  .custom-range .button { width: 100%; margin-top: 3px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .summary-card { padding: 14px; }
  .summary-card-top > span:first-child { font-size: 13px; }
  .summary-value { font-size: 29px; margin: 9px 0; }
  .summary-card p { font-size: 11px; }
  .section-caption > span:first-child { font-size: 9px; letter-spacing: 1.1px; }
  .section-caption > span:last-child { display: none; }
  .charts-grid { grid-template-columns: 1fr; gap: 18px; }
  .chart-layout, .payment-panel .chart-layout { min-height: 210px; flex-direction: column; gap: 24px; padding: 24px 19px; }
  .shiprocket-donut, .payment-panel .shiprocket-donut { width: 136px; height: 136px; }
  .shiprocket-donut-center, .payment-panel .shiprocket-donut-center { width: 103px; height: 103px; }
  .shiprocket-donut-center > span { font-size: 24px; }
  .chart-legend, .payment-panel .chart-legend { width: 100%; max-width: 300px; min-width: 0; flex: initial; gap: 12px; }
  .legend-item, .payment-panel .legend-item { grid-template-columns: minmax(0, 1fr) 45px 48px; gap: 6px; font-size: 12px; }
  .legend-percentage { display: block; font-size: 11px; }
  .panel-heading { padding: 17px 17px 0; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading p { font-size: 12px; }
  .panel-icon { width: 28px; height: 30px; }
  .product-panel .panel-heading, .state-panel .panel-heading { padding-bottom: 17px; }
  .product-panel .data-table th:nth-child(2), .product-panel .data-table td:nth-child(2) { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 3px 0 4px #394a2c06; }
  .product-panel .data-table th:nth-child(2) { background: #fafbf8; }
  .product-cell { min-width: 210px; max-width: 280px; }
  .product-cell strong, .product-cell small { max-width: none; }
  .table-footer { font-size: 9px; gap: 8px; padding-left: 17px; padding-right: 17px; }
  .sync-panel .panel-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .sync-panel .status-pill { margin-left: 38px; }
  .sync-body { flex-direction: column; align-items: stretch; gap: 20px; padding: 17px; }
  .sync-description { max-width: 100%; }
  .sync-stats { text-align: left; justify-content: space-between; padding-top: 15px; border-top: 1px solid #f0f3e9; gap: 12px; }
  .sync-stats strong { font-size: 20px; }
  .sync-actions { padding: 12px 17px; gap: 9px; }
  .sync-actions > div { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .sync-actions .button { font-size: 11px; }
  .workspace-footer { padding-top: 23px; padding-bottom: 20px; font-size: 9px; }
  .workspace-footer > span:last-child { display: none; }
  .alert { padding: 12px; gap: 9px; }
  .alert strong { font-size: 12px; }
  .alert p { font-size: 11px; }
  .loading-cards { grid-template-columns: 1fr 1fr; }
  .loading-charts { grid-template-columns: 1fr; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-main { min-height: 100vh; padding: 115px 30px 95px; }
  .login-mobile-brand { display: flex; align-items: center; gap: 9px; position: absolute; top: 30px; left: 30px; }
  .login-mobile-brand strong { font-size: 17px; font-weight: 650; color: #426036; letter-spacing: -.5px; }
  .login-form-wrap { max-width: 360px; }
  .login-form-wrap h2 { font-size: 36px; }
  .login-heading-icon { width: 44px; height: 44px; margin-bottom: 27px; }
  .login-form-wrap .eyebrow { font-size: 9px; }
  .login-bottom { left: 30px; right: 30px; bottom: 25px; font-size: 9px; }
  .login-help { font-size: 10px; }
}
@media (max-width: 360px) {
  .dashboard-main { padding-left: 12px; padding-right: 12px; }
  .brand > span { font-size: 16px; }
  .brand small { letter-spacing: 1px; }
  .integration-badge { font-size: 0; }
  .summary-card { padding: 11px; }
  .summary-card-top > span:first-child { font-size: 12px; }
  .summary-card p { font-size: 9px; }
  .chart-layout, .payment-panel .chart-layout { gap: 18px; padding-left: 16px; padding-right: 16px; }
  .shiprocket-donut, .payment-panel .shiprocket-donut { width: 120px; height: 120px; }
  .shiprocket-donut-center, .payment-panel .shiprocket-donut-center { width: 90px; height: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
