:root {
  --brand: #005bff; --brand-hover: #004bdb; --ink: #17212e;
  --muted: #788ba3; --line: #e5ebf2; --soft: #f5f7fa;
  --bs-primary: #005bff; --bs-link-color: #005bff;
}
body { margin: 0; background: #fff; color: var(--ink); font: 14px/1.5 Arial, Helvetica, sans-serif; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select { font: inherit; }
.workspace, .header-inner { width: min(1440px, calc(100% - 80px)); margin-inline: auto; }
.site-header { background: #fff; border-top: 4px solid var(--brand); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; color: var(--ink); }
.brand-mark { font-size: 32px; font-weight: 800; letter-spacing: -1.7px; color: var(--brand); }
.brand-label { font-size: 18px; font-weight: 600; }
.header-caption { margin-right: auto; border-left: 1px solid var(--line); padding-left: 24px; color: var(--muted); }
.settings-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; padding: 8px 10px; border-radius: 8px; }
.settings-link:hover, .settings-link.is-active { color: var(--brand); background: #edf5ff; }
.account-button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); max-width: 260px; }
.account-name { overflow: hidden; text-overflow: ellipsis; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; color: var(--brand); background: #e4efff; font-weight: 700; text-transform: uppercase; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #17212e12; font-size: 14px; padding: 8px; }
.dropdown-item { border-radius: 7px; padding: 9px 12px; }
.top-nav { display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.top-nav a { position: relative; display: block; padding: 14px 0 17px; color: var(--muted); white-space: nowrap; }
.top-nav a:hover { color: var(--brand); }
.top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a[aria-current="page"]::after { content: ''; position: absolute; height: 2px; background: var(--brand); bottom: 0; left: 0; right: 0; }
.top-nav a.nav-in-development { color: #855b00; background: #fff4bd; padding-inline: 12px; border-radius: 8px 8px 0 0; }
.top-nav a.nav-in-development:hover, .top-nav a.nav-in-development[aria-current="page"] { color: #614200; background: #ffe28a; }
.top-nav a.nav-in-development[aria-current="page"]::after { background: #d99b00; }
.workspace { padding-top: 30px; padding-bottom: 40px; }
.workspace-auth { min-height: calc(100vh - 210px); padding-top: 56px; }
.page-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; padding-bottom: 24px; font-size: 12px; color: var(--muted); }
.breadcrumb-line { display: flex; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.breadcrumb-line a { color: var(--muted); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h1, .h3 { font-size: 30px; font-weight: 700; letter-spacing: -.6px; }
h2, .h5 { font-size: 18px; font-weight: 600; }
.page-heading h1 { margin: 0 0 6px; }
.page-description { color: var(--muted); margin: 0; }
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.btn { font-size: 14px; font-weight: 600; border-radius: 8px; padding: 11px 18px; white-space: nowrap; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-hover); --bs-btn-hover-border-color: var(--brand-hover); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #d7e5ff; --bs-btn-hover-bg: #edf5ff; --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: #d7e5ff; }
.btn-outline-secondary { color: var(--ink); border-color: transparent; background: var(--soft); }
.btn-outline-secondary:hover { color: var(--ink); border-color: var(--line); background: #eaf0f6; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.card { border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.card-body { padding: 24px; }
.form-control, .form-select { min-height: 44px; border-radius: 8px; border-color: #dce4ee; font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #005bff12; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.form-text, .text-secondary { color: var(--muted) !important; }
fieldset.border { border-color: var(--line) !important; border-radius: 12px !important; }
.badge { border-radius: 6px; font-size: 11px; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; font-size: 12px; background: var(--soft); color: var(--muted); }
.status-pill.ready { color: #078651; background: #e9fbf0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.section-tab { padding: 0 0 14px; border-bottom: 2px solid var(--brand); color: var(--ink); }
.count-label { margin-left: 6px; background: var(--soft); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.table { --bs-table-color: var(--ink); --bs-table-border-color: var(--line); font-size: 14px; }
.table thead th { color: #6a7e98; background: #f6f8fc; font-size: 12px; font-weight: 500; padding: 15px 18px; white-space: nowrap; }
.table tbody td { padding: 18px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover { --bs-table-hover-bg: #f8fbff; }
.table-responsive { border-radius: 12px; }
.empty-state { padding: 54px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 16px; color: var(--brand); background: #edf5ff; font-size: 24px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 430px; margin: 0 auto 20px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 20px; align-items: start; }
.dashboard-notifications { min-width: 0; overflow-wrap: anywhere; }
.ozon-balance-card .card-body { padding: 12px; }
.balance-sidebar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
@media (max-width: 575px) { .balance-sidebar-grid { grid-template-columns: 1fr; } }
.ozon-balance-primary { padding: 10px 14px; }
.ozon-balance-payout { margin: 12px 2px 0; padding: 12px 12px 4px; border-top: 1px solid var(--line); }
.ozon-balance-label { margin: 0 0 4px; color: var(--muted); font-size: 14px; font-weight: 400; }
.ozon-balance-value { color: var(--ink); font-size: 24px; font-weight: 700; line-height: 1.25; }
.overview-panel { background: var(--soft); padding: 18px; border-radius: 20px; }
.panel-label { color: var(--muted); font-weight: 600; margin: 0 0 16px 5px; }
.chart-empty { display: grid; place-items: center; min-height: 230px; border-radius: 14px; background: #fff; text-align: center; padding: 24px; }
.chart-empty p { color: var(--muted); margin: 8px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.metric-tile { background: white; padding: 20px; border-radius: 14px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { font-size: 27px; font-weight: 600; margin-top: 8px; }
.quick-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 24px; color: var(--ink); margin-bottom: 16px; }
.quick-card:hover { border-color: #b2ceff; background: #fbfdff; }
.quick-card-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 12px; font-size: 16px; }
.quick-card p { margin: 0; color: var(--muted); }
.notice-panel { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 12px; background: #edf6ff; color: #455f80; margin-bottom: 24px; }
.notice-panel strong { display: block; color: var(--ink); margin-bottom: 2px; }
.rnp-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding-bottom: 24px; }
.rnp-toolbar .form-control { width: 200px; }
.rnp-product-filter { position: relative; width: 300px; }
.rnp-product-filter summary.form-control { width: 100%; cursor: pointer; padding: 10px 12px; }
.rnp-product-menu { position: absolute; z-index: 20; top: 100%; left: 0; width: min(360px, 85vw); max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #17212e18; }
.rnp-product-menu .form-control { width: calc(100% - 16px); }
.rnp-product-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; overflow-wrap: anywhere; }
.rnp-product-option input { flex-shrink: 0; }
.rnp-period-label { margin-left: auto; padding-bottom: 12px; color: var(--muted); font-size: 13px; }
.rnp-summary { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--soft); border-radius: 16px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.rnp-summary .metric-tile { padding: 16px 20px; border-radius: 12px; }
.rnp-table-wrap { max-height: 650px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.rnp-table { table-layout: fixed; min-width: 1180px; width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.rnp-table .rnp-date-width { width: 64px; }
.rnp-by-product .rnp-date-width { width: 220px; }
.rnp-table.rnp-by-product .date-col { min-width: 220px; max-width: 320px; white-space: normal; text-align: left; }
.rnp-table th, .rnp-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; overflow-wrap: anywhere; line-height: 1.25; }
.rnp-table thead th { position: sticky; top: 0; z-index: 3; background: #f6f8fc; color: #667d99; font-size: 12px; font-weight: 500; }
.rnp-table thead tr:first-child th { height: 38px; }
.rnp-table thead tr:nth-child(2) th { top: 38px; height: 58px; }
.rnp-table .group-heading { text-align: center; font-weight: 600; color: var(--ink); background: #edf4ff; padding: 8px 14px; }
.rnp-table .date-col { position: sticky; left: 0; z-index: 2; background: #fff; text-align: center; white-space: nowrap; box-shadow: 2px 0 0 #dce5f0; }
.rnp-table thead .date-col { z-index: 5; background: #f6f8fc; }
.rnp-table tbody td, .rnp-table tbody th { text-align: right; color: var(--ink); font-size: 12px; height: 29px; }
.rnp-table .rnp-fact { margin-top: 3px; font-size: .75em; line-height: 1.3; }
.rnp-table tbody .date-col { color: var(--ink); }
.rnp-table tbody tr:hover td { background: #f7faff; }
.rnp-table .total-row td, .rnp-table .total-row th { font-weight: 600; background: #f0f5ff; color: #667d99; }
.rnp-table tr:last-child td { border-bottom: 0; }
.rnp-table th:last-child, .rnp-table td:last-child { border-right: 0; }
.rnp-footnote { margin-top: 12px; color: var(--muted); font-size: 12px; }
.rnp-matrix .matrix-product, .rnp-matrix .matrix-metric { position: sticky; background: #fff; text-align: left; }
.rnp-matrix .matrix-product { left: 0; z-index: 2; vertical-align: top; }
.rnp-matrix .matrix-metric { left: 200px; z-index: 2; box-shadow: 2px 0 0 var(--line); font-weight: 500; }
.rnp-matrix thead .matrix-product, .rnp-matrix thead .matrix-metric { z-index: 5; background: #f6f8fc; }
.rnp-matrix tbody + tbody tr:first-child > * { border-top: 3px solid #cbd7e6; }
.rnp-matrix .matrix-total { font-weight: 700; background: #f0f5ff; }
.rnp-table.rnp-matrix th, .rnp-table.rnp-matrix td { border-right-color: #9baec4; border-bottom-color: #9baec4; }
.rnp-matrix tbody + tbody tr:first-child > * { border-top-color: #71869f; }
.matrix-red { --metric-fill: #f29b9b; --metric-ink: #542020; }
.matrix-orange { --metric-fill: #ffc182; --metric-ink: #5b310a; }
.matrix-yellow { --metric-fill: #fff099; --metric-ink: #51450a; }
.matrix-green { --metric-fill: #91d6a8; --metric-ink: #153622; }
.rnp-matrix td:is(.matrix-red, .matrix-orange, .matrix-yellow, .matrix-green) { background: var(--metric-fill); color: var(--metric-ink); }
.rnp-matrix .matrix-weekend { color: #d74770; }
.rnp-matrix .matrix-product-link { display: flex; align-items: flex-start; gap: 8px; padding: 6px 2px; overflow-wrap: anywhere; }
.matrix-product-link img { width: 42px; height: 56px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.rnp-matrix-page .page-heading { margin-bottom: 12px; }
.rnp-matrix-page .page-heading h1 { font-size: 26px; margin-bottom: 4px; }
.rnp-matrix-page .page-description { font-size: 13px; }
.rnp-matrix-page .rnp-summary { margin-bottom: 14px; border-radius: 8px; }
.rnp-matrix-page .rnp-summary .metric-tile { padding: 7px 12px; }
.rnp-matrix-page .rnp-summary .metric-label { font-size: 11px; }
.rnp-matrix-page .rnp-summary .metric-value { font-size: 18px; }
.rnp-matrix th:not(.matrix-product):not(.matrix-metric), .rnp-matrix td { white-space: nowrap; }
.rnp-matrix-page .rnp-table-wrap { max-height: 72vh; }
.rnp-matrix tbody tr:hover td { box-shadow: inset 0 0 0 999px #466ca509; }
.rnp-matrix tbody tr:hover td:is(.matrix-red, .matrix-orange, .matrix-yellow, .matrix-green) { background: var(--metric-fill); }
.detail-grid dt { color: var(--muted); font-size: 13px; font-weight: 400; }
.detail-grid dd { padding-bottom: 16px; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; background: white; padding: 10px; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 80px #17212e30; }
.modal-header, .modal-footer { border-color: var(--line); padding: 20px 24px; }
.modal-body { padding: 24px; }
.modal-title { font-size: 23px; font-weight: 700; }
.listing-picker-table { border: 1px solid var(--line); max-height: 380px; }
.receipt-rules-table { min-width: 530px; }
.receipt-rules-table .form-control { min-width: 125px; padding: 8px 10px; }
.receipt-rules-table th { font-size: 12px; color: var(--muted); font-weight: 500; }
.listing-picker-table thead th { position: sticky; top: 0; z-index: 1; }
.listing-picker-table tbody td { padding: 12px 14px; overflow-wrap: anywhere; }
.listing-picker-table td:first-child { width: 42px; }
.listing-picker-table label { cursor: pointer; }
.form-check-input { width: 18px; height: 18px; cursor: pointer; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.catalog-load-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 24px; background: var(--soft); border-radius: 14px; }
.catalog-load-panel h2 { font-size: 16px; }
.order-selection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: var(--soft); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.scheme-fbo { color: #005bff; background: #edf4ff; font-weight: 600; }
.scheme-fbs { color: #7553bf; background: #f1ecfc; font-weight: 600; }
.order-excluded-badge { color: #9a6231; background: #fff3df; }
.order-list-table .order-excluded td { background: #fffcf6; }
.order-list-table td { vertical-align: top; }
.catalog-load-panel .form-select { width: 210px; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; max-width: 700px; }
.offer-tag { padding: 4px 8px; background: var(--soft); border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.supply-product-picker { position: relative; }
.supply-product-input-wrap { position: relative; }
.supply-product-input-wrap .form-control { padding-left: 40px; padding-right: 48px; min-height: 48px; }
.supply-search-icon { position: absolute; left: 14px; top: 8px; font-size: 23px; color: var(--muted); pointer-events: none; }
.supply-product-toggle { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 36px; border: 0; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 20px; }
.supply-product-toggle:hover { background: #e4efff; color: var(--brand); }
.supply-product-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; max-height: min(380px, 55vh); overflow-y: auto; background: #fff; border: 1px solid #d7e5ff; border-radius: 12px; box-shadow: 0 12px 32px #17212e20; margin-top: 6px; }
.supply-product-caption { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 11px; color: var(--muted); background: #fafbfe; }
.supply-product-option { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: #fff; text-align: left; padding: 12px 14px; overflow-wrap: anywhere; }
.supply-product-option-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; background: #edf4ff; color: var(--brand); font-size: 18px; }
.supply-product-option-name { min-width: 0; flex: 1; font-weight: 600; }
.supply-product-option-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.supply-product-option-check { visibility: hidden; color: var(--brand); }
.supply-product-option[aria-selected="true"] .supply-product-option-check { visibility: visible; }
.supply-product-selected { color: #078651; font-size: 12px; margin: 6px 0 0; }
.supply-product-empty { padding: 22px 14px; text-align: center; }
.supply-product-option:hover, .supply-product-option[aria-selected="true"] { color: var(--brand); background: #edf5ff; }
@media (min-width: 1700px) { .workspace, .header-inner { width: min(1520px, calc(100% - 160px)); } }
@media (max-width: 850px) {
  .workspace, .header-inner { width: calc(100% - 32px); }
  .header-caption { display: none; }
  .brand { margin-right: auto; }
  .header-top { gap: 10px; flex-wrap: wrap; padding-block: 12px; }
  .header-top { min-height: 72px; }
  .top-nav { gap: 24px; }
  .overview-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  h1, .h3 { font-size: 26px; }
  .rnp-summary { grid-template-columns: repeat(2, 1fr); }
  .rnp-period-label { margin-left: 0; padding: 0; }
  .rnp-table .date-col { left: 0; }
  .account-button { max-width: 180px; }
}
@media (max-width: 480px) {
  .brand-label { font-size: 14px; }
  .brand-mark { font-size: 28px; }
  .metric-grid { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; }
  .page-footer { gap: 16px; flex-direction: column; }
}

/* Gross order history on the dashboard. */
.orders-chart-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 5px 16px; color: var(--muted); }
.orders-chart-heading strong { font-size: 14px; }
.orders-chart-badge { display: inline-block; margin-left: 8px; border-radius: 6px; padding: 3px 8px; background: #6550e8; color: white; font-size: 11px; font-weight: 600; }
.orders-chart-period { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.orders-chart-period .form-select { width: 98px; min-height: 32px; border: 0; background-color: transparent; color: var(--muted); font-size: 12px; }
.orders-chart-period .btn { padding: 6px 9px; font-size: 12px; }
.orders-chart-surface { background: white; border-radius: 18px; padding: 10px 5px 0; overflow-x: auto; }
.orders-chart { width: 100%; min-width: 500px; display: block; }
.orders-chart-grid { stroke: #bed8f6; stroke-dasharray: 2 6; }
.orders-chart-axis, .orders-chart-weekday { fill: var(--muted); font-size: 11px; }
.orders-chart-area { fill: #e3f4ff; }
.orders-chart-line { fill: none; stroke: #2998ff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.orders-chart-baseline { stroke: #b8dfff; }
.orders-chart-dot { fill: white; stroke: #2998ff; stroke-width: 1.7; }
.orders-chart-hit { fill: transparent; }
.orders-chart-point { outline: none; cursor: default; }
.orders-chart-point:hover .orders-chart-dot, .orders-chart-point:focus .orders-chart-dot { fill: #005bff; stroke: #005bff; stroke-width: 4; }
.orders-chart-day { fill: var(--ink); font-size: 11px; }
.orders-chart-weekday.is-weekend { fill: #7c8ca5; font-weight: 600; }
.orders-chart-empty { color: var(--muted); font-size: 12px; text-align: center; margin: 0; padding-bottom: 12px; }

.advertising-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.advertising-toolbar > div { min-width: 155px; }
.advertising-product-filter { flex: 1 1 270px; max-width: 390px; }
.advertising-search { flex: 1 1 220px; }
.advertising-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--soft); border-radius: 18px; padding: 5px; margin-bottom: 26px; }
.advertising-summary .metric-value { font-size: clamp(20px, 2vw, 27px); }
.advertising-count { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 600; }
.advertising-count > span:last-child { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.advertising-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.advertising-table { min-width: 1180px; font-size: 13px; }
.advertising-table th, .advertising-table td { padding: 15px 14px; border-color: var(--line); white-space: nowrap; }
.advertising-table thead th { background: #f5f8fc; color: var(--muted); font-size: 12px; font-weight: 500; white-space: normal; vertical-align: middle; }
.advertising-table .ad-name-col { min-width: 250px; max-width: 330px; white-space: normal; border-right: 1px solid var(--line); }
.ad-campaign-name { overflow-wrap: anywhere; margin-bottom: 3px; }
.advertising-table .advertising-total > * { background: #edf4ff; font-weight: 600; }
@media (max-width: 760px) { .advertising-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .advertising-count { flex-wrap: wrap; } }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-refresh-form { position: relative; margin: 0; }
.header-refresh-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--brand); background: #f0f6ff; border: 1px solid #e0ebfc; border-radius: 12px; }
.header-refresh-button:hover { color: var(--brand); background: #edf5ff; }
.header-refresh-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.header-refresh-button:disabled { color: var(--brand); background: #edf5ff; cursor: wait; }
.header-refresh-button:disabled svg { animation: header-refresh-spin 1s linear infinite; }
@keyframes header-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .header-refresh-button:disabled svg { animation: none; } }

.orders-chart-container { position: relative; }
.orders-chart-guide { stroke: #b7c9df; stroke-width: 1; stroke-dasharray: 3 3; visibility: hidden; pointer-events: none; }
.orders-chart-point.is-hovered .orders-chart-guide { visibility: visible; }
.orders-chart-point.is-hovered .orders-chart-dot { fill: #2998ff; stroke-width: 3; }
.orders-day-tooltip { position: fixed; z-index: 1040; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px 20px; border-radius: 12px; background: #25394a; color: #fff; box-shadow: 0 8px 28px #17212e24; font-size: 13px; }
.orders-tooltip-date { color: #afc3d4; font-size: 12px; margin-bottom: 13px; }
.orders-tooltip-total { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 13px; font-weight: 600; }
.orders-tooltip-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #279bff; margin-right: 8px; }
.orders-tooltip-products { border-top: 1px solid #ffffff20; padding-top: 5px; max-height: 260px; overflow-y: auto; }
.orders-tooltip-product { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding-top: 10px; }
.orders-tooltip-product > div { min-width: 0; overflow-wrap: anywhere; }
.orders-tooltip-product strong { white-space: nowrap; font-size: 12px; }
.orders-tooltip-shop { display: block; font-size: 11px; color: #afc3d4; margin-top: 2px; }
.orders-tooltip-empty { color: #afc3d4; font-size: 12px; }
.orders-tooltip-pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: #afc3d4; }
.orders-tooltip-pagination button { color: #b8e0ff; border: 0; background: transparent; padding: 0 0 0 12px; }
.orders-tooltip-pagination button:hover { color: white; text-decoration: underline; }

.header-refresh-feedback { position: fixed; top: 88px; right: 40px; z-index: 1080; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.header-refresh-feedback > * { pointer-events: auto; }
.header-refresh-progress { display: none; padding: 16px 18px; border-radius: 14px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 36px #17212e18; color: var(--muted); font-size: 13px; }
.header-refresh-progress.htmx-request { display: block; }
.header-refresh-notice { padding: 17px 18px; border: 1px solid #dcebe2; border-radius: 14px; background: white; box-shadow: 0 10px 36px #17212e18; max-height: calc(100vh - 112px); overflow: auto; font-size: 13px; }
.header-refresh-notice.is-warning { border-color: #efdfbd; }
.header-refresh-notice-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.header-refresh-notice-heading strong { font-size: 14px; }
.header-refresh-notice-symbol { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; color: #078651; background: #e9fbf0; font-weight: 700; }
.is-warning .header-refresh-notice-symbol { color: #9d6500; background: #fff4d9; }
.header-refresh-notice-heading button { margin-left: auto; padding: 0 3px; border: 0; background: transparent; color: var(--muted); font-size: 23px; line-height: 1; }
.header-refresh-notice p { margin: 0 0 8px; color: var(--muted); overflow-wrap: anywhere; }
.header-refresh-notice .header-refresh-notice-period { font-size: 11px; }
.header-refresh-notice .header-refresh-notice-error { color: #9d6500; }
@media (min-width: 1520px) { .header-refresh-feedback { right: calc((100vw - 1440px) / 2); } }
@media (max-width: 760px) { .header-refresh-feedback { right: 16px; } }

.orders-chart-period { flex-wrap: wrap; }
.chart-mode-toggle { display: inline-flex; align-items: center; margin: 0 8px 0 0; padding: 3px; border: 1px solid #e0e7f0; border-radius: 9px; background: #edf1f7; }
.chart-mode-toggle label { padding: 6px 10px; margin: 0; border-radius: 6px; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: 12px; }
.chart-mode-toggle .btn-check:checked + label { background: white; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px #17212e12; }
.chart-mode-toggle .btn-check:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; }
.orders-chart-point.is-missing .orders-chart-dot { stroke: #a5b4c5; fill: #f5f7fa; stroke-dasharray: 2 2; }

.orders-chart-axis { paint-order: stroke; stroke: white; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }

.dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.status-pill.order-status-returned { background: #fee2e2; color: #991b1b; }
.status-pill.order-status-delivered { background: #dcfce7; color: #166534; }
.status-pill.order-status-cancelled { background: #e5e7eb; color: #4b5563; }
.status-pill.order-status-in_progress { background: #dbeafe; color: #1e40af; }
.status-pill.order-status-unknown { background: #f3f4f6; color: #4b5563; }
.rnp-table col[data-metric="comment"] { width: 260px; }
.rnp-table td[data-metric="comment"] { text-align: left; }
.rnp-comment-form textarea { min-width: 230px; resize: vertical; }
.notification-settings-form .notification-setting-field { width: 220px; max-width: 100%; }
.notification-settings-form .form-select { width: 180px; max-width: 100%; }
.product-photo { position: relative; display: inline-block; width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 8px; border: 1px solid #e0e7f0; background: #f5f7fa; vertical-align: middle; }
.product-photo-large { width: 120px; height: 120px; }
.product-photo-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a9ab0; font-size: 24px; }
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.rnp-date-picker { position: relative; }
.rnp-date-picker .rnp-date-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 290px; max-width: 100%; text-align: left; white-space: nowrap; }
.rnp-calendar-day:disabled { opacity: .3; cursor: default; }
.rnp-date-trigger[hidden], .rnp-date-panel[hidden] { display: none; }
.single-date-field .form-control { min-width: 0; }
.single-date-field button[hidden] { display: none; }
.rnp-date-panel { position: fixed; z-index: 1050; max-height: calc(100dvh - 24px); overflow: auto; padding: 16px 20px 12px; background: #fff; border: 1px solid #edf1f7; border-radius: 10px; box-shadow: 0 8px 28px #17212e1f; }
.rnp-calendar-navigation { display: flex; justify-content: space-between; align-items: center; height: 24px; }
.rnp-calendar-navigation button { border: 0; background: transparent; color: #667d99; width: 28px; height: 28px; border-radius: 6px; font-size: 22px; line-height: 1; }
.rnp-calendar-navigation button:hover { background: #f0f5ff; color: #065bff; }
.rnp-calendar-navigation button:disabled { opacity: .3; cursor: default; }
.rnp-calendar-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rnp-calendar-title { margin: 0 0 16px; text-align: center; font-size: 14px; font-weight: 600; color: #101828; }
.rnp-calendar-title span { color: #8295ae; font-weight: 400; }
.rnp-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.rnp-calendar-weekday { text-align: center; color: #8295ae; font-size: 12px; padding-bottom: 6px; }
.rnp-calendar-day { position: relative; display: flex; align-items: center; justify-content: center; height: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #101828; font-size: 13px; font-variant-numeric: tabular-nums; }
.rnp-calendar-day.is-weekend { color: #ec4899; }
.rnp-calendar-day.is-outside { color: #c2cddd; text-decoration: line-through; }
.rnp-calendar-day.is-in-range { background: #f3f6fb; }
.rnp-calendar-day.is-selected { background: #065bff; color: white; border-radius: 7px; }
.rnp-calendar-day.is-today::after { content: ''; position: absolute; bottom: 4px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; }
.rnp-calendar-day:is(button):hover { background: #e5edff; color: #065bff; border-radius: 7px; }
.rnp-calendar-day.is-selected:hover { background: #0049d6; color: white; }
.rnp-calendar-day:focus-visible, .rnp-calendar-navigation button:focus-visible { outline: 2px solid #065bff; outline-offset: 2px; z-index: 1; }
.rnp-calendar-hint { margin: 12px 0 0; font-size: 12px; color: #8295ae; }
@media (max-width: 540px) {
  .rnp-calendar-months { grid-template-columns: 1fr; gap: 18px; }
  .rnp-calendar-title { margin-bottom: 10px; }
}
.orders-status-area { stroke-width: 1; pointer-events: none; }
.orders-status-bought { fill: #b8e6d0; stroke: #61bf92; background: #61bf92; }
.orders-status-failed { fill: #f6c7ca; stroke: #df9299; background: #df9299; }
.orders-status-transit { fill: #c8e7ff; stroke: #8bc5f3; background: #8bc5f3; }
.orders-status-unknown { fill: #e3e6eb; stroke: #a3adbb; background: #a3adbb; }
.orders-status-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 14px 12px; color: var(--muted); font-size: 12px; }
.orders-status-legend > span, .orders-tooltip-statuses span { display: inline-flex; align-items: center; gap: 6px; }
.orders-status-swatch { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; border-radius: 3px; }
.orders-tooltip-statuses { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 12px; }
.orders-tooltip-statuses > div { display: flex; justify-content: space-between; gap: 16px; }
.orders-chart-period #chart-product { width: 200px; max-width: 100%; border: 1px solid #e0e7f0; border-radius: 8px; background-color: #fff; }

.rnp-tone-swatch { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--metric-fill); color: var(--metric-ink); font-size: 12px; }
.transaction-manual-income { color: #7c3aed !important; }
