/* Liporon — an intentional, quiet workspace for a growing business. */
:root {
  --canvas: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #fafbf7;
  --forest: #234d39;
  --forest-deep: #193d2c;
  --forest-light: #edf3e9;
  --lime: #d9e7a8;
  --sage: #a8bd97;
  --gold: #bc9956;
  --ink: #24362c;
  --text: #46534a;
  --muted: #667269;
  --faint: #8a948b;
  --border: #e6eae0;
  --danger: #b44a41;
  --danger-soft: #fff0ed;
  --warning: #9c7029;
  --warning-soft: #faf4e7;
  --blue: #52727b;
  --blue-soft: #edf4f6;
  --radius: 15px;
  --radius-sm: 9px;
  --shadow: 0 3px 14px rgb(29 53 36 / 3%);
  --shadow-float: 0 18px 70px rgb(27 47 34 / 14%);
  --sidebar-width: 246px;
  --topbar-height: 81px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; color: var(--text); background: var(--canvas); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--forest); text-decoration: none; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #7e9b51; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1 { font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -.9px; }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
h3 { font-size: 15px; font-weight: 650; letter-spacing: -.15px; }
h4 { font-size: 14px; font-weight: 650; }
img { max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
small { font-size: 12px; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { color: var(--forest-deep); background: var(--lime); }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { border-radius: 10px; background: #d2d9cb; }
::-webkit-scrollbar-track { background: transparent; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 20px; background: var(--forest); color: white; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.muted { color: var(--muted); }
.text-small, .small { font-size: 12px; }
.text-green { color: var(--forest); }
.text-red { color: var(--danger); }
.text-gold { color: var(--warning); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.money, .numeric { font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.65px; text-transform: uppercase; }
.icon { vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }

/* The permanent frame. */
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; background: #fcfdf9; border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 11px; padding: 31px 25px 24px; }
.brand-mark { width: 38px; height: 38px; }
.brand-wordmark { display: flex; flex-direction: column; color: var(--forest); font-size: 22px; line-height: 1.15; font-weight: 720; letter-spacing: 2.8px; }
.brand-wordmark > span { margin-top: 6px; font-size: 7px; font-weight: 600; letter-spacing: 1.65px; color: var(--muted); }
.workspace-switcher { margin: 0 18px 22px; padding: 11px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 9px; background: white; box-shadow: 0 2px 3px rgb(25 61 44 / 2%); }
.workspace-symbol { display: grid; place-items: center; width: 30px; height: 32px; background: #f0f3e8; border: 1px solid #e4e9d8; border-radius: 7px; color: var(--forest); font-size: 16px; font-family: Georgia, serif; }
.workspace-switcher > span:nth-child(2) { flex: 1; }
.workspace-switcher strong { display: block; font-size: 12px; line-height: 1.4; }
.workspace-switcher small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.workspace-switcher > svg { color: var(--faint); }
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 18px; }
.nav-group { margin-bottom: 20px; }
.nav-group-label, .nav-label { margin: 18px 14px 8px; font-size: 9px; line-height: 1.5; font-weight: 700; letter-spacing: 1.5px; color: #8a9388; text-transform: uppercase; }
.nav-group:first-child .nav-group-label { margin-top: 0; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; width: 100%; padding: 9px 13px; margin: 3px 0; border: 0; border-radius: 8px; background: transparent; color: #6a746b; text-align: left; font-size: 12px; font-weight: 500; transition: background 160ms, color 160ms; }
.nav-link .icon { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { background: #f0f3eb; color: var(--forest); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--forest); background: #eaf0e2; font-weight: 650; }
.nav-link.active .icon { opacity: 1; }
.nav-count { display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 5px; background: #e6ecdd; color: var(--forest); margin-left: auto; font-size: 9px; font-weight: 650; }
.nav-link:not(.active) .nav-count { background: #f0f2ed; color: var(--muted); }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { display: flex; gap: 10px; align-items: flex-start; padding: 15px 12px; margin: 0 20px 20px; border-radius: 10px; border: 1px solid #e7ebda; background: #f3f6e9; font-size: 10px; line-height: 1.65; color: #7c876b; }
.sidebar-note strong { font-weight: 500; color: #59684b; }
.live-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; margin-top: 5px; border-radius: 50%; background: #89a05e; box-shadow: 0 0 0 3px #e6ecd7; }
.sidebar-user { min-height: 77px; display: flex; align-items: center; gap: 10px; padding: 17px 22px; border-top: 1px solid var(--border); }
.sidebar-user > .avatar { flex-shrink: 0; }
.sidebar-user .user-meta, .sidebar-user > div:not(.avatar) { min-width: 0; flex: 1; }
.sidebar-user strong { display: block; color: var(--ink); font-size: 11px; }
.sidebar-user small { display: block; font-size: 10px; color: var(--muted); }
.sidebar-user .icon-btn { width: 30px; height: 34px; min-width: 30px; color: var(--faint); }
.main { min-height: 100dvh; margin-left: var(--sidebar-width); }
.topbar { height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 37px; border-bottom: 1px solid var(--border); background: rgb(252 253 249 / 90%); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #889184; }
.breadcrumb svg { color: #b2baaa; width: 11px; }
.breadcrumb strong { color: var(--ink); font-weight: 500; }
.global-search { display: flex; align-items: center; gap: 9px; width: 240px; padding: 7px 0; color: #8a9485; }
.global-search input { min-width: 0; width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 11px; }
.global-search input::placeholder { color: #929a8c; }
.global-search:focus-within { color: var(--forest); }
.global-search:focus-within input { box-shadow: 0 1px var(--sage); }
.global-search kbd { display: grid; place-items: center; min-width: 19px; height: 20px; padding: 0 5px; font-size: 10px; color: #929a8c; border: 1px solid #e2e7d9; border-radius: 4px; background: #fafbf5; }
.topbar-divider { width: 1px; height: 23px; background: var(--border); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); transition: color 160ms, background 160ms; }
.icon-btn:hover { background: var(--forest-light); color: var(--forest); }
.icon-btn.small { min-width: 32px; width: 32px; height: 32px; }
.notification-btn { position: relative; }
.notification-dot { position: absolute; width: 5px; height: 5px; top: 8px; right: 9px; border-radius: 50%; background: #bc9956; box-shadow: 0 0 0 2px #fcfdf9; }
.header-avatar { width: 31px; height: 31px; border-radius: 50%; background: #e9ecdf; border: 1px solid #dfe5d4; display: grid; place-items: center; color: var(--forest); font-size: 10px; font-weight: 650; }
.mobile-menu { display: none; }
.nav-backdrop { display: none; }
.page-content { max-width: 1570px; margin: 0 auto; padding: 31px 37px 35px; min-height: calc(100dvh - 140px); }
.page-content:focus { outline: none; }
.page-footer { max-width: 1570px; margin: 0 auto; padding: 5px 37px 23px; display: flex; justify-content: space-between; font-size: 9px; color: #8c9588; }
.page-footer > span:first-child { letter-spacing: .25px; }
.footer-dot { margin: 0 5px; color: #c1c9b7; }
.initial-loading { display: grid; justify-items: center; align-content: center; min-height: 60vh; gap: 20px; color: var(--muted); font-size: 13px; }

/* Page rhythm and the common controls. */
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-heading .eyebrow { margin-bottom: 7px; font-size: 9px; letter-spacing: 1.8px; }
.page-heading p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: 12px; }
.page-heading .heading-actions, .heading-actions { display: flex; gap: 10px; align-items: center; }
.page-heading .btn { white-space: nowrap; }
.page-title-row { display: flex; align-items: center; gap: 11px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; background: #fcfdf9; color: var(--muted); font-size: 10px; }
.date-pill .icon { width: 14px; height: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; line-height: 1.4; font-weight: 600; transition: color 160ms, background 160ms, box-shadow 160ms; text-decoration: none; }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--forest); color: white; border-color: var(--forest); box-shadow: 0 2px 3px rgb(35 77 57 / 10%); }
.btn-primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); box-shadow: 0 4px 10px rgb(35 77 57 / 15%); }
.btn-secondary { color: var(--text); background: white; border-color: #dee4d8; box-shadow: 0 1px 2px rgb(35 77 57 / 2%); }
.btn-secondary:hover { color: var(--forest); background: #f8faf4; border-color: #cbd6bf; }
.btn-ghost { color: var(--forest); background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--forest-light); }
.btn-danger { color: var(--danger); background: var(--danger-soft); border-color: #efd7d1; }
.btn-danger:hover { background: #fce5e0; }
.btn-lime { color: var(--forest-deep); background: var(--lime); border-color: var(--lime); }
.btn-lime:hover { background: #e4edc6; }
.btn-sm { padding: 6px 10px; min-height: 32px; font-size: 10px; }
.btn-lg { min-height: 45px; padding: 12px 22px; font-size: 12px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; border: 0; background: transparent; color: var(--forest); font-size: 11px; font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 13px; height: 13px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 20px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.toolbar .input, .toolbar .select { min-height: 37px; font-size: 11px; }
.toolbar .input { width: 230px; }
.toolbar .select { min-width: 130px; width: auto; }
.search-input { position: relative; }
.search-input > .icon { position: absolute; left: 12px; top: 11px; width: 15px; height: 15px; color: var(--faint); }
.search-input > .input { padding-left: 36px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 1px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--forest); }
.tab.active { border-bottom-color: var(--forest); color: var(--forest); font-weight: 650; }
.tab-count { padding: 1px 6px; border-radius: 4px; color: var(--muted); background: #edf0e7; font-size: 9px; }
.tab.active .tab-count { background: #e5edda; color: var(--forest); }
.segmented { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 7px; background: #f7f9f2; }
.segmented button { padding: 5px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 10px; }
.segmented button.active { background: white; color: var(--forest); box-shadow: 0 1px 4px rgb(35 77 57 / 7%); }

/* Cards, numbers and the overview. */
.card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 23px 18px; }
.card-header h2 { font-size: 14px; }
.card-header p { font-size: 10px; margin-top: 3px; color: var(--muted); }
.card-header .eyebrow { font-size: 8px; }
.card-body { padding: 0 23px 23px; }
.card-body.padded { padding-top: 23px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 23px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.card-subtitle { color: var(--muted); font-size: 10px; margin-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.stat-card { position: relative; display: flex; flex-direction: column; padding: 20px 20px 17px; min-height: 144px; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.stat-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--forest); background: #eff3e8; border-radius: 8px; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-icon.gold { color: #a38b4d; background: #f8f4e8; }
.stat-icon.blue { color: #64848a; background: #f0f5f5; }
.stat-icon.sage { color: #849766; background: #f1f4ea; }
.stat-value { display: flex; align-items: baseline; gap: 5px; margin-top: 11px; color: var(--ink); font-size: 28px; line-height: 1.25; font-weight: 650; letter-spacing: -.9px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 12px; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 9px; color: #8a9485; }
.trend { display: inline-flex; align-items: center; gap: 3px; color: #587d41; font-size: 9px; font-weight: 600; }
.trend .icon { width: 11px; height: 11px; }
.trend.down { color: var(--danger); }
.stat-card.featured { color: #e5efdf; background: var(--forest); border-color: var(--forest); }
.stat-card.featured .stat-value { color: white; }
.stat-card.featured .stat-label, .stat-card.featured .stat-foot { color: #b7ccb9; }
.stat-card.featured .stat-icon { color: var(--lime); background: #365d46; }
.stat-card.featured .trend { color: var(--lime); }
.welcome-banner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 183px; padding: 27px 32px; overflow: hidden; border: 1px solid #dfe7d0; border-radius: 14px; background: #ebf0df; }
.welcome-copy { position: relative; z-index: 2; max-width: 65%; }
.welcome-kicker { display: flex; align-items: center; gap: 7px; color: #5f7550; font-size: 9px; font-weight: 650; letter-spacing: 1.25px; text-transform: uppercase; }
.welcome-kicker .icon { width: 13px; height: 13px; }
.welcome-title { margin: 9px 0; color: var(--forest-deep); font-size: 27px; font-weight: 600; letter-spacing: -.7px; line-height: 1.3; }
.welcome-title em { font-family: Georgia, serif; font-weight: 400; }
.welcome-caption { max-width: 445px; font-size: 11px; color: #758166; line-height: 1.7; }
.welcome-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 17px; color: #5b714a; font-size: 10px; }
.welcome-meta > span { display: flex; align-items: center; gap: 6px; }
.welcome-meta .icon { width: 13px; height: 13px; }
.botanical-art { position: absolute; right: 15px; top: -17px; bottom: -35px; width: 295px; opacity: .85; }
.botanical-art svg { width: 100%; height: 100%; }
.welcome-banner::after { content: ""; position: absolute; width: 230px; height: 230px; right: 55px; top: -42px; border: 1px solid rgb(160 180 128 / 19%); border-radius: 50%; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr); gap: 20px; margin-bottom: 20px; }
.dashboard-grid.equal { grid-template-columns: 1fr 1fr; }
.dashboard-grid.lower { grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-space { margin-top: 24px; }
.chart-card { min-height: 293px; }
.chart-card .card-header { padding-bottom: 10px; }
.chart-summary { display: flex; align-items: baseline; gap: 10px; padding: 0 23px; }
.chart-summary > strong { font-size: 24px; line-height: 1.3; color: var(--ink); letter-spacing: -.6px; }
.chart-summary > strong small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.chart-summary .muted { font-size: 9px; }
.chart-legend { display: flex; align-items: center; gap: 15px; font-size: 9px; color: var(--muted); }
.chart-legend > span { display: flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; background: var(--forest); border-radius: 50%; }
.legend-dot.sage { background: #a8bd97; }
.legend-dot.lime { background: #d8e3ba; }
.legend-dot.gold { background: #c7ad76; }
.legend-dot.gray { background: #e4e9dd; }
.legend-dot.blue { background: #94adb1; }
.chart-area { padding: 5px 20px 14px; }
.chart-svg { display: block; width: 100%; height: auto; min-height: 150px; overflow: visible; }
.chart-svg text { font-family: var(--font); fill: #99a08f; font-size: 9px; }
.chart-svg .chart-grid { stroke: #edf0e7; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-svg .chart-line { stroke: var(--forest); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .chart-point { fill: white; stroke: var(--forest); stroke-width: 2; }
.chart-tabs { display: flex; align-items: center; gap: 5px; }
.chart-tabs button { padding: 4px 7px; font-size: 9px; color: var(--muted); background: none; border: 0; border-radius: 4px; }
.chart-tabs button.active { background: #eef3e8; color: var(--forest); }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 27px; padding: 20px 22px 27px; }
.donut { position: relative; width: 146px; height: 146px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(var(--forest) 0 56%, #a8bd97 56% 77%, #d8e3ba 77% 90%, #c7ad76 90% 96%, #e4e9dd 96% 100%); }
.donut::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: white; }
.donut-center { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.donut-center strong { color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -.8px; }
.donut-center span { color: var(--muted); font-size: 9px; margin-top: 1px; }
.legend-list { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 95px; }
.legend-list > div { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.legend-list > div > strong { margin-left: auto; font-size: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-caption { padding: 12px 22px; border-top: 1px solid #f0f2eb; color: var(--muted); font-size: 9px; display: flex; align-items: center; gap: 7px; }
.chart-caption .icon { width: 12px; height: 12px; color: var(--sage); }
.inventory-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf0e7; }
.inventory-row:first-child { padding-top: 2px; }
.inventory-row:last-child { border-bottom: 0; padding-bottom: 1px; }
.item-visual { width: 36px; height: 39px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; border: 1px solid #e8ecdd; background: #f0f3e8; color: #7e9669; }
.item-visual.gold { background: #f7f3e8; border-color: #eee6d3; color: #b69b62; }
.item-visual.blue { background: #edf3f3; border-color: #e0e8e8; color: #8aa1a2; }
.item-visual .icon { width: 19px; height: 19px; }
.item-meta { flex: 1; min-width: 0; }
.item-meta strong { display: block; font-size: 11px; color: var(--ink); }
.item-meta small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.stock-count { font-size: 10px; font-weight: 650; text-align: right; color: var(--warning); white-space: nowrap; }
.stock-count small { display: block; margin-top: 2px; font-size: 8px; font-weight: 400; color: var(--muted); }
.progress { width: 100%; height: 4px; overflow: hidden; background: #eef1e7; border-radius: 10px; }
.progress > span { display: block; height: 100%; background: #b8c794; border-radius: inherit; }
.progress.warning > span { background: #c7aa6f; }
.progress.danger > span { background: #c98578; }
.activity-list { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.activity-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 0 0 22px; }
.activity-item:not(:last-child)::before { position: absolute; content: ""; left: 13px; top: 28px; bottom: 0; width: 1px; background: #e9eee2; }
.activity-item:last-child { padding-bottom: 0; }
.activity-dot { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%; background: #eff4e8; color: #7c9667; }
.activity-dot .icon { width: 12px; height: 12px; }
.activity-dot.gold { background: #f8f3e8; color: #b09b69; }
.activity-dot.blue { background: #eef4f4; color: #83a0a4; }
.activity-item p { color: var(--text); font-size: 10px; line-height: 1.6; }
.activity-item small { display: block; color: #98a08f; font-size: 8px; margin-top: 3px; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-link { display: flex; align-items: center; gap: 9px; padding: 13px 11px; border-radius: 8px; background: #f6f8f1; font-size: 11px; color: var(--forest); }
.quick-link:hover { background: #edf2e3; }
.quick-link .icon { width: 17px; height: 17px; }

/* Dense information still gets room to breathe. */
.table-wrap { width: 100%; overflow-x: auto; scrollbar-width: thin; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; white-space: nowrap; }
.data-table th { padding: 12px 18px; border-top: 1px solid #edf0e7; border-bottom: 1px solid #edf0e7; color: #919a87; background: #fafbf7; font-size: 9px; font-weight: 500; }
.data-table th:first-child, .data-table td:first-child { padding-left: 23px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 23px; }
.data-table td { padding: 16px 18px; border-bottom: 1px solid #edf0e7; color: var(--text); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 140ms; }
.data-table tbody tr:hover { background: #fcfdf9; }
.data-table td strong, .cell-primary { color: var(--ink); font-size: 11px; font-weight: 550; }
.cell-secondary { display: block; color: #97a08e; margin-top: 3px; font-size: 9px; }
.table-title { display: flex; align-items: center; gap: 9px; }
.table-title .avatar { width: 29px; height: 29px; font-size: 9px; }
.order-number { color: var(--forest); font-weight: 600; font-size: 10px; letter-spacing: .15px; }
.order-link { padding: 0; background: none; border: 0; color: var(--forest); font-size: 11px; font-weight: 600; }
.order-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.row-actions .icon-btn { min-width: 30px; width: 30px; height: 31px; }
.row-actions .icon { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 5px; color: #668653; background: #eff5e7; font-size: 9px; line-height: 1.3; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge.green, .badge.delivered, .badge.active, .badge.paid, .badge.settled { color: #5c7f45; background: #eef5e5; }
.badge.blue, .badge.shipped, .badge.in_transit { color: #63848c; background: #edf4f6; }
.badge.gold, .badge.pending, .badge.new, .badge.preparing { color: #aa8b4c; background: #faf5e8; }
.badge.confirmed { color: #738959; background: #f0f4e8; }
.badge.red, .badge.cancelled, .badge.failed { color: #b16f62; background: #faf0ed; }
.badge.returning, .badge.returned { color: #947d65; background: #f6f1eb; }
.badge.gray, .badge.inactive { color: #8b9384; background: #f1f3ed; }
.badge.owner { color: var(--forest); background: #eaf0e2; }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; color: #7d896b; background: #eef1e5; font-size: 10px; font-weight: 600; letter-spacing: .2px; }
.avatar.gold { color: #aa966f; background: #f6f0e3; }
.avatar.blue { color: #7b969c; background: #edf3f4; }
.avatar.large { width: 49px; height: 49px; font-size: 15px; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; padding: 13px 23px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.pagination-actions { display: flex; gap: 5px; }
.pagination-actions button { display: grid; place-items: center; min-width: 29px; height: 29px; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--muted); font-size: 10px; }
.pagination-actions button.active { background: var(--forest-light); color: var(--forest); border-color: #dbe5cf; }
.empty-state { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 260px; padding: 35px 25px; text-align: center; }
.empty-state > .icon, .empty-icon { display: grid; place-items: center; width: 46px; height: 46px; padding: 12px; border-radius: 13px; color: var(--sage); background: var(--forest-light); }
.empty-state h3 { font-size: 15px; }
.empty-state p { max-width: 340px; color: var(--muted); font-size: 12px; }
.empty-state .btn { margin-top: 4px; }

/* Offers and a product-focused inventory. */
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.offer-card { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--border); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.offer-cover { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 155px; padding: 25px; overflow: hidden; background: #edf2e4; color: #8da176; }
.offer-cover::before { position: absolute; content: ""; inset: -60% -5% auto; height: 260px; border: 1px solid rgb(135 158 102 / 12%); border-radius: 50%; transform: rotate(-15deg); }
.offer-cover.gold { background: #f7f1e4; color: #b59a63; }
.offer-cover.sage { background: #e4eddf; color: #809b77; }
.offer-cover.forest { background: var(--forest); color: #b8ce9a; }
.offer-cover > .icon { width: 55px; height: 55px; stroke-width: .8; }
.offer-cover .badge { position: absolute; top: 13px; right: 13px; }
.offer-body { padding: 21px; }
.offer-body h3 { font-size: 19px; line-height: 1.5; font-weight: 650; }
.offer-body > p { color: var(--muted); font-size: 11px; margin: 7px 0 19px; }
.offer-price { display: flex; align-items: baseline; gap: 5px; color: var(--forest); font-size: 27px; font-weight: 650; letter-spacing: -.7px; }
.offer-price small { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.offer-contents { display: flex; gap: 13px; margin: 14px 0 20px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.offer-contents span { display: inline-flex; align-items: center; gap: 5px; }
.offer-contents .icon { width: 13px; height: 13px; color: #8ca174; }
.offer-card .btn { width: 100%; }
.offer-select { display: block; width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: white; text-align: left; color: var(--text); }
.offer-select:hover, .offer-select.selected { border-color: #94ad75; background: #f5f8ee; box-shadow: 0 0 0 1px #94ad75; }
.offer-select strong { color: var(--ink); font-size: 15px; }
.offer-select p { font-size: 11px; color: var(--muted); margin: 5px 0 10px; }
.offer-select .offer-price { font-size: 20px; }
.product-card { padding: 21px; }
.product-card > .split { margin-bottom: 18px; }
.product-card .item-visual { width: 47px; height: 51px; }
.product-card .item-visual .icon { width: 25px; height: 25px; }
.product-card h3 { margin-bottom: 4px; }
.product-card .stock-values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 21px; padding-top: 18px; border-top: 1px solid var(--border); }
.stock-values > div { color: var(--muted); font-size: 9px; }
.stock-values strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 3px; font-weight: 600; }
.gift-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gift-option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.gift-option.selected { border-color: #a0b784; background: #f8fbf2; }
.gift-option .item-meta strong { font-size: 11px; }
.gift-option input { width: 54px; min-height: 34px; padding: 5px 8px; text-align: center; }
.gift-option .item-visual { width: 30px; height: 34px; }
.gift-summary { margin: 12px 0 0; padding: 9px 12px; border-radius: 7px; background: #f0f5e7; color: #708554; font-size: 11px; }
.courier-card { padding: 22px; }
.courier-card h3 { margin-bottom: 3px; }
.courier-logo { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: #f0f4e8; color: #829b6e; margin-bottom: 18px; }
.courier-card .contact-line { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.contact-line .icon { width: 13px; height: 13px; color: #95a586; }

/* Clear forms and transactional details. */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full, .span-2 { grid-column: 1 / -1; }
.field > label, .field > .label { color: var(--text); font-size: 11px; font-weight: 600; }
.field > label .required { color: #a68d5a; margin-left: 3px; }
.field small, .field-hint { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.6; }
.input, .select, .textarea { display: block; width: 100%; min-width: 0; min-height: 41px; padding: 10px 12px; border: 1px solid #dfe5d8; border-radius: 7px; outline: none; background: white; color: var(--ink); font-size: 12px; transition: border 160ms, box-shadow 160ms; }
.input::placeholder, .textarea::placeholder { color: #a1a895; }
.input:hover, .select:hover, .textarea:hover { border-color: #c5d1b8; }
.input:focus, .select:focus, .textarea:focus { border-color: #8ca675; box-shadow: 0 0 0 3px #edf2e4; }
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly] { color: #939b89; background: #f6f8f1; border-color: #e5e9de; }
.textarea { min-height: 92px; resize: vertical; }
.select { padding-right: 28px; cursor: pointer; }
.field-error { color: var(--danger); font-size: 10px; }
.field.has-error .input, .field.has-error .select { border-color: #d39f92; background: #fffdfb; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 12px; font-size: 11px; color: var(--muted); }
.input-prefix .input { padding-left: 44px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--text); cursor: pointer; }
.check-row input[type="checkbox"], input[type="checkbox"] { accent-color: var(--forest); width: 15px; height: 15px; cursor: pointer; }
.check-row input { margin: 2px 0 0; flex-shrink: 0; }
.check-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { display: block; color: var(--ink); font-size: 12px; }
.switch-row small { font-size: 10px; color: var(--muted); }
.section-label { margin: 25px 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--forest); font-size: 11px; font-weight: 650; }
.section-label:first-child { margin-top: 0; }
.form-section { margin-bottom: 25px; }
.form-section:last-child { margin-bottom: 0; }
.form-section > h3 { font-size: 13px; margin-bottom: 15px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.order-summary { padding: 23px; background: #f6f8f0; border: 1px solid #e3ead7; border-radius: 12px; }
.order-summary h3 { margin-bottom: 19px; font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 7px 0; color: var(--muted); font-size: 11px; }
.summary-row strong { color: var(--ink); font-weight: 550; }
.summary-row.total { margin-top: 13px; padding-top: 17px; border-top: 1px solid #dce5ce; font-size: 12px; color: var(--forest); }
.summary-row.total strong { font-size: 23px; color: var(--forest); letter-spacing: -.5px; }
.summary-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 17px; font-size: 10px; line-height: 1.6; color: #8b997b; }
.summary-note .icon { width: 13px; height: 13px; margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.detail-label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.detail-value { font-size: 13px; color: var(--ink); }
.detail-panel { padding: 21px; border: 1px solid var(--border); border-radius: 10px; background: #fafbf7; }
.detail-panel h3 { margin-bottom: 16px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 20px 25px; color: var(--text); font-size: 11px; }
.timeline li::before { content: ""; position: absolute; width: 7px; height: 7px; background: #9cb681; border: 3px solid #edf3e4; border-radius: 50%; left: 0; top: 3px; box-sizing: content-box; }
.timeline li:not(:last-child)::after { position: absolute; content: ""; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--border); }
.timeline small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #e7dfc5; border-radius: 8px; color: #937b43; background: #fbf7eb; font-size: 11px; line-height: 1.6; margin-bottom: 18px; }
.alert > .icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert.success { border-color: #dce8cd; background: #f3f8ec; color: #657f4b; }
.alert.info { border-color: #dce7e7; background: #f1f7f7; color: #69878a; }
.alert.error { border-color: #efd6cf; background: #fff3ef; color: var(--danger); }
.permissions-table { font-size: 11px; }
.permissions-table th:not(:first-child), .permissions-table td:not(:first-child) { text-align: center; }
.permission-section { padding: 17px 0; border-top: 1px solid var(--border); }
.permission-section h4 { margin-bottom: 12px; }
.permission-options { display: flex; flex-wrap: wrap; gap: 12px 22px; }

/* Layered interactions. */
.modal-overlay { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; overflow-y: auto; background: rgb(20 39 28 / 36%); backdrop-filter: blur(3px); animation: fade-in 160ms ease-out; }
.modal { display: flex; flex-direction: column; position: relative; width: 100%; max-width: 700px; max-height: calc(100dvh - 56px); overflow: hidden; border-radius: 16px; background: white; border: 1px solid rgb(255 255 255 / 50%); box-shadow: var(--shadow-float); animation: slide-in 180ms ease-out; }
.modal.wide, .modal-lg { max-width: 1050px; }
.modal.small, .modal-sm { max-width: 480px; }
.modal-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 27px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 20px; letter-spacing: -.5px; }
.modal-header p { margin-top: 4px; font-size: 11px; color: var(--muted); }
.modal-header > .icon-btn { margin-right: -7px; }
.modal-body { overflow-y: auto; padding: 25px 27px; }
.modal-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 27px; border-top: 1px solid var(--border); background: #fcfdf9; }
.modal-footer .muted { margin-right: auto; font-size: 10px; }
.toast-root { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: fixed; z-index: 200; right: 26px; bottom: 24px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 15px 17px; border: 1px solid #d8e4ce; border-radius: 10px; background: white; color: var(--forest); box-shadow: 0 8px 30px rgb(27 47 34 / 12%); pointer-events: auto; font-size: 12px; animation: toast-in 200ms ease-out; }
.toast .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.error { color: var(--danger); border-color: #efd6cf; }
.toast.warning { color: var(--warning); border-color: #e7dfc5; }
.toast button { margin-left: auto; flex-shrink: 0; border: 0; background: transparent; color: var(--faint); }
.demo-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 10px; padding: 8px 15px; background: #eaf0dc; border-bottom: 1px solid #dce5cd; color: #718254; font-size: 10px; }
.demo-banner .icon { width: 12px; height: 12px; }
.demo-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid #e0d9c0; border-radius: 4px; font-size: 8px; color: #9c8650; background: #f9f5e8; letter-spacing: .6px; text-transform: uppercase; }

/* A private, polished entry point. */
.login-shell { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; background: var(--canvas); overflow-y: auto; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 55px 65px; overflow: hidden; color: #d2dfc5; background: var(--forest); }
.login-story .brand { padding: 0; }
.login-story .brand-wordmark { color: #edf4e2; }
.login-story .brand-wordmark > span { color: #9bb18e; }
.login-story .brand-mark { border: 1px solid #58734e; border-radius: 13px; }
.login-story h1 { position: relative; z-index: 1; color: white; font-size: clamp(35px, 3.5vw, 58px); font-weight: 450; line-height: 1.2; letter-spacing: -1.8px; max-width: 440px; }
.login-story h1 em { color: var(--lime); font-family: Georgia, serif; font-weight: 400; }
.login-story p { position: relative; z-index: 1; max-width: 340px; margin-top: 24px; color: #a6bba0; font-size: 13px; line-height: 1.8; }
.login-story > small { position: relative; z-index: 1; color: #91a88a; font-size: 10px; }
.login-story::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 460px; height: 460px; border: 1px solid #416244; border-radius: 50%; box-shadow: 0 0 0 65px rgb(91 120 72 / 8%), 0 0 0 130px rgb(91 120 72 / 5%); }
.login-main { display: grid; place-items: center; padding: 50px; }
.login-card { width: 100%; max-width: 350px; }
.login-card .eyebrow { margin-bottom: 12px; font-size: 9px; }
.login-card h1, .login-card h2 { margin-bottom: 10px; font-size: 31px; letter-spacing: -.9px; }
.login-card > p { margin-bottom: 30px; font-size: 12px; color: var(--muted); }
.login-card .field { margin-bottom: 20px; }
.login-card .btn-primary { width: 100%; min-height: 44px; margin-top: 5px; }
.login-card .input { min-height: 44px; }
.login-card .login-note { text-align: center; margin-top: 22px; font-size: 10px; color: #95a085; }
.demo-access { padding: 17px; margin-top: 26px; border: 1px solid #e1e7d7; border-radius: 10px; background: #eef3e5; }
.demo-access h3 { font-size: 11px; }
.demo-access p { margin-top: 5px; color: #7b896a; font-size: 10px; line-height: 1.7; }
.demo-access .btn { margin-top: 13px; }
.error-page { display: grid; justify-content: center; align-content: center; min-height: 60vh; text-align: center; gap: 13px; }
.error-page .icon { margin: auto; color: var(--sage); width: 40px; height: 40px; }
.error-page p { max-width: 400px; font-size: 12px; color: var(--muted); }
.error-page .btn { justify-self: center; margin-top: 10px; }

/* Small charts for report cards. */
.bar-list { display: flex; flex-direction: column; gap: 17px; }
.bar-row .split { font-size: 11px; margin-bottom: 7px; }
.bar-row .split strong { color: var(--ink); font-size: 11px; }
.bar-row .progress { height: 6px; }
.bar-row .progress > span { background: #9cb783; }
.report-summary { padding: 15px 19px; display: flex; justify-content: space-between; align-items: center; border-radius: 9px; border: 1px solid #dfe8d2; background: #f3f7ec; margin-bottom: 20px; }
.report-summary > strong { color: var(--forest); font-size: 22px; letter-spacing: -.5px; }
.report-summary > span { color: #7e8d6a; font-size: 11px; }
.metric-list { margin: 0; }
.metric-list > div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); }
.metric-list > div:last-child { border-bottom: 0; }
.metric-list dt { font-size: 11px; color: var(--muted); }
.metric-list dd { margin: 0; font-weight: 600; font-size: 13px; color: var(--ink); }
.report-card-link { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; border-top: 1px solid var(--border); color: var(--forest); font-size: 11px; font-weight: 600; background: #fcfdf9; }
.report-card-link:hover { background: #f2f6e9; }
.upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 25px; border: 1px dashed #cdd9bd; border-radius: 9px; background: #fafcf6; color: #8c9e76; font-size: 11px; }
.upload-area input { max-width: 100%; color: var(--muted); font-size: 10px; }
.upload-area .icon { width: 24px; height: 24px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }

@media (min-width: 1700px) {
  :root { --sidebar-width: 264px; }
  .page-content { padding-top: 38px; }
  .welcome-banner { min-height: 201px; }
  .stat-card { min-height: 154px; }
  .chart-card { min-height: 320px; }
  .donut-wrap { padding-top: 30px; padding-bottom: 35px; }
}
@media (max-width: 1270px) {
  :root { --sidebar-width: 218px; }
  .brand { padding-left: 20px; padding-right: 18px; gap: 9px; }
  .brand-wordmark { font-size: 20px; letter-spacing: 2px; }
  .brand-wordmark > span { font-size: 6px; letter-spacing: 1.2px; }
  .workspace-switcher { margin-right: 14px; margin-left: 14px; }
  .sidebar-nav { padding-left: 10px; padding-right: 10px; }
  .sidebar-note { margin-left: 16px; margin-right: 16px; }
  .sidebar-user { padding-left: 18px; padding-right: 18px; }
  .topbar { padding-left: 27px; padding-right: 27px; }
  .page-content { padding: 27px; }
  .page-footer { padding-left: 27px; padding-right: 27px; }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 17px 16px 15px; }
  .stat-value { font-size: 25px; }
  .dashboard-grid, .dashboard-grid.lower { grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 16px; }
  .donut-wrap { gap: 20px; padding-left: 18px; padding-right: 18px; }
  .donut { width: 122px; height: 122px; }
  .donut::after { inset: 15px; }
  .legend-list { gap: 11px; }
  .legend-list > div { font-size: 9px; gap: 5px; }
  .offer-grid { gap: 13px; }
  .offer-body { padding: 17px; }
  .offer-body h3 { font-size: 17px; }
  .offer-contents { flex-wrap: wrap; gap: 7px; }
}
@media (max-width: 1100px) {
  .global-search { width: 200px; }
  .dashboard-grid, .dashboard-grid.lower { grid-template-columns: 1fr; }
  .dashboard-grid > .stack { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .donut-wrap { gap: 30px; max-width: 380px; margin: 0 auto; padding-top: 15px; padding-bottom: 24px; }
  .donut { width: 142px; height: 142px; }
  .donut::after { inset: 17px; }
  .legend-list > div { font-size: 10px; }
  .dashboard-grid.equal { grid-template-columns: 1fr 1fr; }
  .chart-area { padding-bottom: 15px; }
  .chart-card { min-height: 280px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .offer-cover { min-height: 145px; }
  .offer-body { padding: 22px; }
  .offer-contents { gap: 15px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 132px; }
  .page-heading { align-items: flex-start; }
  .page-heading .heading-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 230px; gap: 8px; }
  .welcome-copy { max-width: 70%; }
  .welcome-title { font-size: 25px; }
  .botanical-art { right: -40px; }
  .order-layout { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --sidebar-width: 246px; --topbar-height: 69px; }
  .sidebar { transform: translateX(-100%); transition: transform 200ms ease-out; box-shadow: none; }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 23px; gap: 15px; }
  .topbar-left { gap: 10px; }
  .topbar-right { gap: 10px; }
  .breadcrumb { font-size: 11px; gap: 9px; }
  .global-search { width: 210px; }
  .nav-open { overflow: hidden; }
  .nav-open .sidebar { transform: translateX(0); box-shadow: 15px 0 45px rgb(24 46 31 / 13%); }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgb(22 44 30 / 30%); backdrop-filter: blur(2px); }
  .page-content { padding: 26px 25px; }
  .page-footer { padding-left: 25px; padding-right: 25px; }
  .welcome-banner { min-height: 185px; }
  .dashboard-grid, .dashboard-grid.lower { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-value { font-size: 23px; }
  .stat-icon { width: 27px; height: 27px; }
  .stat-card { padding: 16px 14px; }
  .stat-label { font-size: 10px; }
  .stat-foot { font-size: 8px; }
  .stat-foot .trend { font-size: 8px; }
  .page-heading .heading-actions { max-width: none; }
  .login-story { padding: 40px; }
  .login-main { padding: 35px; }
  .login-story h1 { font-size: 39px; }
}
@media (max-width: 680px) {
  h1 { font-size: 26px; letter-spacing: -.6px; }
  .global-search { width: 150px; gap: 6px; }
  .global-search input { font-size: 10px; }
  .global-search kbd, .topbar-divider { display: none; }
  .topbar { padding-left: 14px; padding-right: 17px; }
  .topbar-right { gap: 6px; }
  .breadcrumb > span, .breadcrumb > svg { display: none; }
  .header-avatar { width: 28px; height: 28px; font-size: 9px; }
  .page-content { padding: 24px 18px; }
  .page-footer { padding-left: 18px; padding-right: 18px; font-size: 8px; }
  .page-footer > span:last-child { display: none; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 21px; }
  .page-heading p:not(.eyebrow) { font-size: 11px; }
  .page-heading .heading-actions { justify-content: flex-start; flex-wrap: nowrap; }
  .heading-actions .date-pill { margin-left: auto; padding: 9px 10px; font-size: 9px; }
  .heading-actions .btn { min-height: 39px; }
  .welcome-banner { min-height: 190px; padding: 24px 23px; }
  .welcome-copy { max-width: 77%; }
  .welcome-title { font-size: 24px; }
  .welcome-caption { font-size: 10px; max-width: 290px; }
  .welcome-meta { gap: 12px; font-size: 9px; }
  .botanical-art { right: -85px; opacity: .5; width: 270px; }
  .welcome-banner::after { right: -80px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 17px 0; gap: 12px; }
  .stat-card { min-height: 136px; padding: 18px; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 26px; }
  .stat-icon { width: 29px; height: 29px; }
  .stat-foot { font-size: 9px; }
  .stat-foot .trend { font-size: 9px; }
  .dashboard-grid.equal, .dashboard-grid > .stack { grid-template-columns: 1fr; }
  .card-header { padding: 20px 19px 16px; }
  .card-body { padding-left: 19px; padding-right: 19px; padding-bottom: 21px; }
  .card-footer { padding-left: 19px; padding-right: 19px; }
  .card-header h2 { font-size: 14px; }
  .chart-summary { padding-left: 19px; padding-right: 19px; }
  .chart-summary > strong { font-size: 23px; }
  .chart-area { padding-left: 12px; padding-right: 12px; }
  .chart-svg { min-height: 160px; }
  .chart-card .card-header { flex-wrap: wrap; }
  .chart-legend { gap: 12px; }
  .chart-tabs { margin-left: auto; }
  .donut-wrap { padding-top: 18px; padding-bottom: 28px; gap: 35px; }
  .donut { width: 145px; height: 145px; }
  .chart-caption { padding-left: 19px; padding-right: 19px; }
  .data-table { font-size: 11px; }
  .data-table td { padding: 15px; }
  .data-table th { padding: 12px 15px; }
  .data-table td:first-child, .data-table th:first-child { padding-left: 19px; }
  .data-table td:last-child, .data-table th:last-child { padding-right: 19px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 17px; }
  .offer-grid { gap: 13px; }
  .offer-cover { min-height: 125px; padding: 20px; }
  .offer-cover > .icon { width: 45px; height: 45px; }
  .offer-body { padding: 17px; }
  .offer-body h3 { font-size: 17px; }
  .offer-body > p { font-size: 10px; margin-bottom: 14px; }
  .offer-price { font-size: 24px; }
  .offer-contents { gap: 8px; flex-direction: column; font-size: 9px; margin-bottom: 16px; }
  .toolbar { align-items: stretch; gap: 12px; }
  .filter-group { width: 100%; }
  .filter-group .select { flex: 1; }
  .toolbar .input { width: 100%; }
  .toolbar .search-input { width: 100%; }
  .toolbar > .btn { align-self: flex-start; }
  .tabs { gap: 20px; margin-bottom: 20px; }
  .tab { font-size: 11px; min-height: 41px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; gap: 17px; }
  .form-grid .span-2 { grid-column: auto; }
  .field > label, .field > .label { font-size: 12px; }
  .input, .select, .textarea { font-size: 16px; padding: 10px 12px; }
  .toolbar .input, .toolbar .select { font-size: 12px; }
  .btn { min-height: 42px; font-size: 11px; }
  .icon-btn { min-width: 42px; width: 42px; height: 42px; }
  .row-actions .icon-btn { min-width: 36px; width: 36px; height: 36px; }
  .gift-picker { grid-template-columns: 1fr; }
  .detail-grid { gap: 20px 17px; }
  .modal-overlay { padding: 15px; }
  .modal { max-height: calc(100dvh - 30px); border-radius: 14px; }
  .modal-header { padding: 21px; }
  .modal-header h2 { font-size: 20px; }
  .modal-body { padding: 22px 21px; }
  .modal-footer { padding: 16px 21px; flex-wrap: wrap; }
  .modal-footer .muted { width: 100%; }
  .modal-footer .btn { flex: 1; }
  .toast-root { right: 16px; bottom: 16px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-main { min-height: 100dvh; padding: 35px 25px; }
  .login-card { max-width: 370px; }
  .login-card::before { display: block; content: "LIPORON"; color: var(--forest); font-size: 20px; letter-spacing: 4px; font-weight: 700; margin-bottom: 45px; }
}
@media (max-width: 390px) {
  .global-search { display: none; }
  .page-content { padding: 21px 14px; }
  .welcome-copy { max-width: 90%; }
  .welcome-title { font-size: 23px; }
  .welcome-caption { max-width: 260px; }
  .botanical-art { right: -115px; opacity: .25; }
  .stat-card { padding: 15px; }
  .stat-value { font-size: 23px; }
  .stat-value small { font-size: 10px; }
  .stat-icon { width: 25px; height: 25px; }
  .stat-label { font-size: 9px; }
  .heading-actions { flex-wrap: wrap !important; }
  .heading-actions .date-pill { margin-left: 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-cover { min-height: 145px; }
  .offer-contents { flex-direction: row; gap: 15px; }
  .donut-wrap { gap: 23px; }
  .donut { width: 132px; height: 132px; }
  .detail-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 8px; }
  .modal { max-height: calc(100dvh - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .sidebar, .topbar, .page-footer, .heading-actions, .toolbar, .row-actions, .modal-overlay, .toast-root, .demo-banner { display: none !important; }
  .main { margin: 0; }
  .page-content { padding: 0; max-width: none; }
  body { background: white; color: black; font-size: 11px; }
  .card, .stat-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .data-table { white-space: normal; }
  .page-heading { margin-bottom: 20px; }
  .dashboard-grid, .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Application-specific composition, sharing the same visual language. */
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 9px 13px; margin: 3px 0; border-radius: 8px; color: #6a746b; font-size: 11px; font-weight: 500; transition: background 160ms, color 160ms; }
.nav-item > .icon { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { color: var(--forest); background: #f0f3eb; }
.nav-item.active { color: var(--forest); background: #eaf0e2; font-weight: 650; }
.nav-item.active > .icon { opacity: 1; }
.nav-item .nav-count { font-size: 8px; height: 18px; }
.nav-alert { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #bd9a58; }
.user-info > span { display: block; font-size: 10px; color: var(--muted); text-transform: capitalize; }
.notification-count { position: absolute; top: 3px; right: 2px; min-width: 14px; height: 14px; padding: 0 3px; display: grid; place-items: center; color: white; background: #bda168; font-size: 8px; border: 2px solid #fcfdf9; border-radius: 10px; }
.period-select { min-height: 38px; width: 133px; padding: 9px 12px; border-color: #e1e7d8; border-radius: 7px; font-size: 10px; background: #fcfdf9; color: var(--muted); }
.welcome-copy > .eyebrow { color: #80916a; font-size: 8px; letter-spacing: 1.5px; }
.welcome-copy > h2 { font-size: 29px; line-height: 1.3; letter-spacing: -.8px; margin: 9px 0; color: var(--forest-deep); font-weight: 600; }
.welcome-period { color: #a2b675; }
.welcome-copy > p { color: #7d896c; font-size: 11px; line-height: 1.7; }
.welcome-copy > p strong { color: #5b7349; font-weight: 600; }
.welcome-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; color: #4d6c3b; font-size: 10px; font-weight: 600; }
.welcome-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.welcome-link .icon { width: 13px; height: 13px; }
.welcome-art { position: absolute; top: 0; right: 35px; bottom: 0; width: 270px; z-index: 1; }
.welcome-art > svg { position: relative; z-index: 1; width: 260px; height: 180px; top: 12px; }
.hero-circle { position: absolute; top: 10px; left: 50px; width: 190px; height: 190px; border-radius: 50%; background: #e0e7ce; opacity: .6; }
.welcome-date { position: absolute; z-index: 2; right: 25px; top: 21px; display: flex; align-items: center; gap: 6px; color: #95a184; font-size: 9px; }
.welcome-date .icon { width: 11px; height: 11px; }
.stat-top > span:first-child { font-size: 10px; font-weight: 500; color: var(--muted); }
.stat-caption { display: flex; align-items: center; gap: 5px; font-size: 9px; line-height: 1.5; color: #929b87; margin-top: 10px; }
.stat-icon.green { color: #7c9a64; background: #eff4e7; }
.revenue-summary { display: flex; align-items: baseline; gap: 10px; padding: 2px 23px 0; }
.revenue-summary > strong { font-weight: 650; color: var(--ink); font-size: 24px; letter-spacing: -.6px; }
.revenue-summary > span { font-size: 9px; }
.revenue-chart { width: 100%; padding: 14px 22px 16px; }
.revenue-chart > svg { display: block; width: 100%; height: auto; max-height: 215px; overflow: visible; }
.revenue-chart svg text { font-family: var(--font); }
.chart-period { padding: 4px 8px; border-radius: 5px; color: #8b977d; background: #f6f8f1; border: 1px solid #e7eddd; font-size: 9px; white-space: nowrap; }
.outcome-card { display: grid; grid-template-columns: 1.05fr 1fr; align-content: start; }
.outcome-card > .card-header { grid-column: 1 / -1; }
.outcome-card > .card-header > .muted { font-size: 9px; }
.outcome-chart { padding: 17px 0 30px 14px; }
.outcome-chart > svg { display: block; width: 100%; height: auto; max-height: 170px; }
.outcome-chart svg text { font-family: var(--font); }
.chart-legend { flex-direction: column; justify-content: center; align-items: stretch; gap: 13px; padding: 15px 20px 30px 8px; font-size: 9px; }
.chart-legend > div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chart-legend > div > strong { margin-left: auto; color: var(--ink); font-size: 10px; font-weight: 550; }
.chart-legend > div > .legend-dot { width: 6px; height: 6px; }
.chart-card:not(.outcome-card) > .outcome-chart { display: inline-block; width: 48%; vertical-align: middle; }
.chart-card:not(.outcome-card) > .chart-legend { display: inline-flex; vertical-align: middle; width: 50%; }
.lower-grid { align-items: start; }
.lower-grid .card-header { padding-top: 22px; padding-bottom: 19px; }
.lower-grid .card-header p { font-size: 9px; }
.recent-orders .data-table th { font-size: 8px; }
.recent-orders .data-table td { padding-top: 14px; padding-bottom: 14px; padding-left: 14px; padding-right: 14px; font-size: 10px; }
.recent-orders .data-table td:first-child, .recent-orders .data-table th:first-child { padding-left: 22px; }
.recent-orders .data-table th { padding-left: 14px; padding-right: 14px; }
.recent-orders .data-table td:last-child, .recent-orders .data-table th:last-child { padding-right: 17px; }
.recent-orders .text-link, .recent-orders .data-table td strong { font-size: 10px; }
.recent-orders .data-table .icon-btn { min-width: 24px; width: 24px; height: 28px; }
.recent-orders .badge { font-size: 8px; padding: 4px 6px; }
.customer-cell { display: flex; align-items: center; gap: 10px; }
.avatar-sm { width: 28px; height: 28px; font-size: 9px; }
.table-sub { display: block; margin-top: 3px; color: #98a18d; font-size: 9px; line-height: 1.4; }
.money-cell { color: var(--ink) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.recent-orders .money-cell { font-size: 10px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 23px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.stock-watch-list { padding: 0 22px 6px; }
.stock-watch-row { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf0e7; }
.stock-watch-row:first-child { padding-top: 1px; }
.stock-watch-row:last-child { border-bottom: 0; padding-bottom: 8px; }
.stock-watch-info { flex: 1; min-width: 0; }
.stock-watch-info > strong { display: block; color: var(--ink); font-size: 10px; font-weight: 550; }
.stock-watch-info > span { display: block; color: #a2aa97; font-size: 8px; margin-top: 3px; }
.stock-watch-info > .progress { margin-top: 8px; max-width: 120px; height: 3px; }
.stock-watch-info > .progress > span { background: #c5ad76; }
.stock-watch-qty { margin-left: 5px; text-align: right; }
.stock-watch-qty > strong { display: block; color: #a88c50; font-size: 16px; font-weight: 600; line-height: 1.3; }
.stock-watch-qty > span { display: block; color: #a3ab9a; font-size: 8px; margin-top: 2px; }
.stock-watch .card-footer { justify-content: flex-start; padding-top: 13px; padding-bottom: 13px; }
.stock-watch .card-footer .text-link { font-size: 10px; }
.product-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 35px; height: 39px; border: 1px solid #e3e9d7; border-radius: 7px; color: #91a479; background: #f0f4e8; }
.product-icon.gift-tone { border-color: #eee5d2; background: #f8f3e8; color: #b7a06a; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding: 2px 7px; border-radius: 6px; color: #9e8856; background: #f7f2e6; font-size: 9px; }
.dashboard-footnote { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 25px 0 0; color: #9aa390; font-size: 9px; }
.dashboard-footnote .icon { color: #a1af92; width: 11px; height: 11px; }
.badge::before { display: none; }
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge-active, .badge-delivered, .badge-settled, .badge-collected { color: #668653; background: #eff5e7; }
.badge-new, .badge-preparing, .badge-pending { color: #aa8b4c; background: #faf5e8; }
.badge-confirmed { color: #7d9461; background: #f0f4e8; }
.badge-shipped { color: #63848c; background: #edf4f6; }
.badge-failed, .badge-cancelled { color: #b16f62; background: #faf0ed; }
.badge-returning, .badge-returned, .badge-partial_return { color: #947d65; background: #f6f1eb; }
.badge-low { color: #b08d47; background: #fbf4e4; }
.badge-inactive { color: #939b89; background: #f1f3ec; }
.badge-funding { color: #768d59; background: #f1f5e9; }
.badge-ad_spend { color: #9d8858; background: #f8f3e7; }
.badge-operating { color: #69858b; background: #eff4f5; }
.stock-warning { color: #b09556 !important; }
.stock-ok { color: var(--forest) !important; }
.threshold-label { color: #9ba48e; font-size: 10px; }
.arabic { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
.role-label { display: inline-block; font-size: 10px; padding: 4px 8px; border-radius: 5px; background: #f2f5ec; color: #82916c; text-transform: capitalize; }
.audit-details { white-space: normal; max-width: 340px; font-size: 10px; color: var(--muted) !important; line-height: 1.7; }
.card > .toolbar { margin: 0; padding: 19px 23px; }
.search-input > input:not(.input) { width: 260px; max-width: 100%; min-height: 38px; padding: 9px 12px 9px 36px; border: 1px solid #e3e8da; border-radius: 7px; background: #fcfdf9; color: var(--ink); font-size: 11px; outline: none; }
.search-input > input:not(.input)::placeholder { color: #a3ab98; }
.search-input > input:not(.input):focus { border-color: #94ab7a; box-shadow: 0 0 0 3px #eff3e7; }
.tabs > .tab > span:not(.icon) { display: inline-grid; place-items: center; min-width: 19px; height: 18px; margin-left: 1px; padding: 0 5px; border-radius: 4px; background: #edf1e6; color: #8b9878; font-size: 9px; }
.field > span:first-child { color: var(--text); font-size: 11px; font-weight: 600; }
.expense-stats, .collection-stats { margin-bottom: 26px; }
.expense-stats .stat-card, .collection-stats .stat-card { min-height: 143px; }
.info-strip { display: flex; align-items: center; gap: 14px; margin-top: 23px; padding: 20px 22px; border: 1px solid #e4ead9; border-radius: 11px; color: #a1b087; background: #f0f4e8; }
.info-strip > .icon { width: 21px; height: 21px; color: #8a9f6d; }
.info-strip strong { display: block; color: #637a4b; font-size: 11px; font-weight: 600; }
.info-strip div > span { display: block; color: #8d9b7b; font-size: 10px; margin-top: 3px; line-height: 1.7; }
.offer-visual { position: relative; height: 198px; display: flex; justify-content: center; align-items: center; background: #eef2e5; overflow: hidden; }
.offer-visual.sage { background: #e9f0e0; }
.offer-visual.gold { background: #f5f0df; }
.offer-visual.rose { background: #f3eae3; }
.offer-visual.forest { background: #2d533e; }
.offer-orbit { position: absolute; width: 210px; height: 210px; border: 1px solid rgb(148 168 119 / 17%); border-radius: 50%; top: -28px; left: calc(50% - 105px); }
.offer-orbit::before, .offer-orbit::after { position: absolute; content: ""; inset: 20px; border: 1px solid rgb(148 168 119 / 12%); border-radius: 50%; }
.offer-orbit::after { inset: -25px; }
.offer-pack-stack { position: relative; display: flex; align-items: center; justify-content: center; height: 130px; padding: 0 15px 10px; transform: rotate(-6deg); }
.mini-pack { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 60px; height: 99px; padding: 18px 5px 0; border: 1px solid #c5cdb5; border-radius: 4px 4px 6px 6px; background: #fbf7e9; color: #b0bc8e; box-shadow: 4px 6px 12px rgb(60 82 40 / 8%); transform: translateY(calc(var(--pack-index, 0) * 4px)); margin-left: -13px; }
.mini-pack:first-child { margin-left: 0; }
.mini-pack-brand { color: #567048; font-size: 6px; letter-spacing: 1.1px; font-weight: 700; }
.mini-pack .icon { margin-top: 10px; margin-bottom: 13px; height: 20px; width: 20px; stroke-width: 1; }
.mini-pack-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 11px 0; border-radius: 0 0 4px 4px; background: #4a6842; color: #dfe7c8; font-size: 5px; letter-spacing: 1.8px; text-align: center; }
.offer-visual.forest .mini-pack { border-color: #99aa82; }
.offer-visual-tag { position: absolute; bottom: 16px; color: #8c9c73; font-size: 8px; font-weight: 600; letter-spacing: 1.2px; }
.offer-visual.gold .offer-visual-tag { color: #ac9a6a; }
.offer-visual.rose .offer-visual-tag { color: #b09a86; }
.offer-visual.forest .offer-visual-tag { color: #a8bf8d; }
.offer-card-body { padding: 18px 21px 0; }
.offer-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.offer-card-top .icon-btn { width: 25px; min-width: 25px; height: 25px; margin-right: -5px; }
.offer-card-body > h3 { font-size: 21px; line-height: 1.6; text-align: start; margin-bottom: 6px; }
.offer-card-body > p { min-height: 34px; font-size: 10px; line-height: 1.7; }
.offer-card-body .offer-price { margin: 15px 0; font-size: 26px; }
.offer-features { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 21px; }
.offer-features > span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #95a086; }
.offer-features > span > .icon { color: #9db080; width: 13px; height: 13px; }
.offer-card-footer { margin: 0 -21px; padding: 14px 20px; border-top: 1px solid var(--border); background: #fcfdf9; }
.offer-card-footer > span { display: block; color: #a4ac99; font-size: 9px; margin-bottom: 6px; }
.offer-card-footer .text-link { font-size: 10px; }
.courier-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.courier-card-head .courier-logo { margin-bottom: 20px; }
.courier-card-head .badge { margin-top: 4px; }
.courier-card > h3 { font-size: 18px; letter-spacing: -.35px; }
.courier-card > p { font-size: 11px; margin-top: 4px; }
.courier-contact { display: flex; align-items: center; gap: 7px; margin-top: 17px; color: #99a48b; font-size: 11px; }
.courier-contact .icon { width: 13px; height: 13px; }
.courier-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 23px 0; padding-top: 18px; border-top: 1px solid var(--border); }
.courier-numbers > div > strong { display: block; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
.courier-numbers > div > span { display: block; color: #a1aa96; font-size: 9px; margin-top: 3px; }
.courier-card .card-footer { margin: 0 -22px -22px; padding: 15px 22px; background: #fcfdf9; }
.courier-card .text-link { font-size: 10px; }
.toast-error { color: var(--danger); border-color: #efd6cf; }
.toast-warning { color: var(--warning); border-color: #e7dfc5; }

@media (max-width: 1270px) {
  .outcome-card { grid-template-columns: 1fr; }
  .outcome-chart { padding: 6px 20px 8px; }
  .outcome-chart > svg { max-height: 135px; margin: 0 auto; width: 135px; }
  .outcome-card > .chart-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 8px 22px 22px; }
  .outcome-card > .chart-legend > div { font-size: 8px; }
  .outcome-card > .chart-legend > div > strong { font-size: 9px; }
  .offer-card-body { padding-left: 17px; padding-right: 17px; }
  .offer-card-footer { margin-left: -17px; margin-right: -17px; padding-left: 17px; padding-right: 17px; }
  .offer-card-body > h3 { font-size: 19px; }
  .offer-card-body > p { min-height: 51px; }
  .offer-visual { height: 180px; }
  .offer-pack-stack { transform: rotate(-6deg) scale(.9); }
}
@media (max-width: 1100px) {
  .outcome-card { grid-template-columns: 1fr 1fr; align-items: center; }
  .outcome-card > .outcome-chart { padding: 10px 10px 26px 25px; }
  .outcome-card > .outcome-chart > svg { max-height: 165px; width: 165px; margin: auto; }
  .outcome-card > .chart-legend { display: flex; flex-direction: column; gap: 15px; padding: 10px 45px 26px 15px; }
  .outcome-card > .chart-legend > div { font-size: 11px; }
  .outcome-card > .chart-legend > div > strong { font-size: 11px; }
  .recent-orders .data-table td { padding-top: 16px; padding-bottom: 16px; }
  .stock-watch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
  .stock-watch-row:first-child { padding-top: 15px; }
  .stock-watch-row:nth-last-child(2) { border-bottom: 0; }
  .offer-card-body > p { min-height: 34px; }
  .revenue-chart > svg { max-height: 230px; }
  .welcome-art { right: 5px; }
  .expense-stats, .collection-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .expense-stats .stat-value, .collection-stats .stat-value { font-size: 22px; }
}
@media (max-width: 680px) {
  .welcome-copy > h2 { font-size: 26px; margin-top: 10px; }
  .welcome-copy > .eyebrow { font-size: 7px; letter-spacing: 1.1px; }
  .welcome-copy > p { font-size: 10px; }
  .welcome-art { right: -76px; top: 16px; opacity: .55; }
  .welcome-date { display: none; }
  .welcome-banner::after { opacity: .4; }
  .welcome-link { margin-top: 14px; }
  .welcome-copy { max-width: 82%; }
  .stat-top > span:first-child { font-size: 10px; }
  .stat-caption { font-size: 8px; margin-top: 10px; }
  .revenue-summary { padding-left: 19px; flex-direction: column; gap: 2px; }
  .revenue-summary > strong { font-size: 23px; }
  .revenue-summary > span { font-size: 8px; }
  .revenue-chart { padding: 15px 18px 15px; }
  .revenue-chart > svg { height: auto; max-height: none; min-height: 150px; }
  .chart-card { min-height: 280px; }
  .outcome-card { grid-template-columns: 1fr 1fr; }
  .outcome-card > .outcome-chart { padding-left: 15px; padding-right: 0; }
  .outcome-card > .outcome-chart > svg { width: 100%; max-height: 160px; }
  .outcome-card > .chart-legend { gap: 16px; padding-left: 10px; padding-right: 23px; }
  .outcome-card > .chart-legend > div { font-size: 9px; gap: 6px; }
  .outcome-card > .chart-legend > div > strong { font-size: 10px; }
  .stock-watch-list { grid-template-columns: 1fr; padding-left: 19px; padding-right: 19px; }
  .stock-watch-row:first-child { padding-top: 3px; }
  .stock-watch-row:nth-last-child(2) { border-bottom: 1px solid #edf0e7; }
  .stock-watch-info > strong { font-size: 11px; }
  .stock-watch-info > span { font-size: 9px; }
  .stock-watch-info .progress { max-width: 160px; }
  .stock-watch-qty > strong { font-size: 17px; }
  .stock-watch-qty > span { font-size: 9px; }
  .table-footer { padding: 14px 19px; flex-wrap: wrap; font-size: 9px; }
  .card > .toolbar { padding: 17px 19px; }
  .search-input > input:not(.input) { width: 100%; font-size: 12px; min-height: 41px; }
  .search-input > .icon { top: 13px; }
  .toolbar .filter-group .select { min-width: 125px; flex: 0 1 auto; }
  .offer-visual { height: 165px; }
  .offer-card-body > h3 { font-size: 18px; }
  .offer-card-body > p { min-height: 51px; font-size: 9px; }
  .offer-card-body .offer-price { font-size: 23px; }
  .offer-features > span { font-size: 9px; gap: 6px; }
  .offer-features > span > .icon { width: 12px; height: 12px; }
  .offer-card-footer { padding-top: 12px; padding-bottom: 13px; }
  .offer-card-footer > span { font-size: 8px; }
  .offer-card-footer .text-link { font-size: 9px; }
  .offer-pack-stack { transform: rotate(-6deg) scale(.8); }
  .offer-visual-tag { font-size: 7px; letter-spacing: 1px; bottom: 14px; }
  .info-strip { align-items: flex-start; padding: 18px; gap: 11px; }
  .info-strip strong { font-size: 11px; }
  .info-strip div > span { font-size: 10px; }
  .expense-stats, .collection-stats { grid-template-columns: 1fr; gap: 12px; }
  .expense-stats .stat-card, .collection-stats .stat-card { min-height: 132px; }
  .expense-stats .stat-value, .collection-stats .stat-value { font-size: 26px; }
  .field > span:first-child { font-size: 12px; }
  .dashboard-footnote { text-align: center; font-size: 8px; line-height: 1.8; }
  .heading-actions .period-select { width: 135px; flex-shrink: 0; font-size: 10px; }
  .nav-item { min-height: 43px; font-size: 12px; }
  #demo-label { display: none; }
}
@media (max-width: 390px) {
  .offer-card-body > p { min-height: 0; font-size: 11px; }
  .offer-card-body > h3 { font-size: 22px; }
  .offer-visual { height: 185px; }
  .offer-pack-stack { transform: rotate(-6deg); }
  .offer-features > span { font-size: 11px; }
  .offer-card-footer > span { font-size: 10px; }
  .offer-card-footer .text-link { font-size: 11px; }
  .outcome-card > .chart-legend { padding-right: 15px; }
  .outcome-card > .chart-legend > div { font-size: 8px; }
  .welcome-copy > h2 { font-size: 24px; }
  .welcome-copy > .eyebrow { font-size: 6.5px; }
}

/* The operational forms: guided steps, compact choices, a clear cash total. */
.modal-open { overflow: hidden; }
.modal.modal-wide { max-width: 980px; }
.modal.modal-order { max-width: 1110px; }
.modal-header .eyebrow { display: block; margin-bottom: 5px; color: #8fa078; font-size: 8px; letter-spacing: 1.5px; }
.modal-order .modal-body { background: #fdfefa; padding: 27px; }
.modal-order .order-layout { grid-template-columns: minmax(0, 1.85fr) minmax(255px, 1fr); align-items: start; gap: 29px; }
.order-fields { min-width: 0; }
.order-fields .form-grid { gap: 15px 18px; }
.form-section-heading { display: flex; align-items: center; gap: 11px; margin: 27px 0 17px; }
.form-section-heading:first-child { margin-top: 0; }
.form-section-heading h3 { color: var(--ink); font-size: 13px; font-weight: 650; }
.form-section-heading p { font-size: 10px; line-height: 1.65; margin-top: 3px; }
.form-section-heading > p { margin-left: auto; }
.form-section-heading .count-pill { min-height: 18px; min-width: 30px; margin-left: 5px; font-size: 9px; padding: 2px 5px; }
.step-number { display: inline-grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; border: 1px solid #dce7cd; border-radius: 8px; background: #f0f5e7; color: #8aa468; font-size: 10px; font-weight: 600; }
.order-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-offer { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-height: 123px; width: 100%; padding: 16px 17px; border: 1px solid #e4e9db; border-radius: 10px; background: white; text-align: start; color: var(--text); transition: border-color 160ms, background 160ms, box-shadow 160ms; }
.order-offer:hover { background: #fafcf5; border-color: #b9caa3; }
.order-offer.selected { background: #f4f8eb; border-color: #8da971; box-shadow: 0 0 0 1px #8da971; }
.order-offer > strong { font-size: 17px; color: #4a613c; margin-bottom: 2px; padding-right: 20px; line-height: 1.5; }
.order-offer > span:not(.offer-choice-dot) { color: #91a17e; font-size: 10px; }
.order-offer > b { margin-top: 5px; font-size: 15px; font-weight: 600; color: var(--forest); letter-spacing: -.2px; }
.offer-choice-dot { position: absolute; right: 15px; top: 17px; width: 13px; height: 13px; border: 1px solid #d1dcc4; border-radius: 50%; background: white; }
.order-offer.selected .offer-choice-dot { border: 4px solid #77965c; }
.gift-choice { display: flex; align-items: center; gap: 9px; min-height: 76px; padding: 12px; border: 1px solid #e5e9dd; border-radius: 9px; background: white; transition: border-color 160ms, background 160ms; }
.gift-choice.selected { border-color: #b4c799; background: #f7faf0; }
.gift-choice .product-icon { width: 29px; height: 34px; }
.gift-choice-info { flex: 1; min-width: 0; }
.gift-choice-info strong { display: block; color: #647456; font-size: 10px; line-height: 1.5; font-weight: 550; }
.gift-choice-info small { display: block; color: #a0ab94; font-size: 9px; margin-top: 4px; }
.quantity-stepper { display: flex; align-items: center; flex-shrink: 0; height: 29px; border: 1px solid #dde5d1; background: white; border-radius: 6px; overflow: hidden; }
.quantity-stepper button { display: grid; place-items: center; height: 29px; width: 24px; padding: 0; border: 0; background: #f8faf4; color: #7b9462; font-size: 16px; line-height: 1; }
.quantity-stepper button:hover:not(:disabled) { background: #eaf1df; color: var(--forest); }
.quantity-stepper button:disabled { opacity: .35; }
.quantity-stepper > span { display: grid; place-items: center; width: 22px; min-width: 22px; height: 29px; border-left: 1px solid #e7ecdf; border-right: 1px solid #e7ecdf; color: var(--forest); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-summary { position: sticky; top: 0; padding: 21px; background: #f4f7ed; border-color: #e1e8d5; }
.order-summary > .eyebrow { display: block; font-size: 8px; letter-spacing: 1.5px; color: #91a27a; }
.summary-product-art { margin: 16px -7px 18px; overflow: hidden; border: 1px solid #e4e9da; border-radius: 9px; }
.summary-product-art .offer-visual { height: 155px; background: #edf2e3; }
.summary-product-art .offer-orbit { width: 180px; height: 180px; top: -24px; left: calc(50% - 90px); }
.summary-product-art .offer-pack-stack { transform: rotate(-6deg) scale(.85); }
.summary-product-art .offer-visual-tag { bottom: 12px; font-size: 7px; }
.order-summary > h3 { color: var(--forest); font-size: 23px; margin: 0 0 15px; line-height: 1.5; }
.summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 10px; color: #8c9b79; }
.summary-line > strong { color: #6b8254; font-weight: 550; font-size: 11px; white-space: nowrap; }
.summary-gifts { display: flex; flex-direction: column; gap: 10px; padding: 13px 0; margin-bottom: 7px; border-bottom: 1px solid #e1e8d5; }
.summary-gifts > div { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #92a17e; }
.summary-gifts > div > .icon { width: 12px; height: 12px; color: #a4b38f; }
.summary-gifts > div > span { flex: 1; }
.summary-gifts > div > strong { margin-left: auto; color: #819969; font-weight: 500; }
.summary-gifts > p { font-size: 10px; color: #9da98e; line-height: 1.65; }
.summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 17px; border-top: 1px solid #d9e3ca; }
.summary-total > span { max-width: 75px; color: #6b8058; font-size: 11px; line-height: 1.5; }
.summary-total > strong { color: var(--forest); font-size: 24px; letter-spacing: -.5px; white-space: nowrap; }
.order-summary .summary-note { padding-top: 15px; border-top: 1px solid #e1e8d5; color: #9ba98a; font-size: 9px; }
.order-summary .alert { margin: 15px 0 0; padding: 10px; font-size: 10px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; padding: 11px 0; cursor: pointer; color: var(--text); font-size: 11px; line-height: 1.6; }
.checkbox-field > input { width: 15px; height: 15px; margin: 2px 0 0; flex-shrink: 0; }
.checkbox-field strong { display: block; color: #6d7c60; font-size: 11px; font-weight: 550; }
.checkbox-field small { display: block; color: #9aa58c; font-size: 9px; margin-top: 3px; }
.readonly-field { min-height: 41px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #e5eadb; border-radius: 7px; background: #f6f9f0; color: #8e9d7b; font-size: 11px; }
.readonly-field .icon { width: 14px; height: 14px; color: #99ac80; }
.input-number { min-width: 70px; max-width: 100px; padding: 8px 10px; font-size: 11px; }
.receipt-field { margin: 22px 0; }
.input[type="file"] { padding: 9px 11px; color: #9aa58b; font-size: 11px; }
.input[type="file"]::file-selector-button { padding: 5px 9px; margin: -2px 9px -2px -3px; border: 1px solid #e0e8d5; border-radius: 5px; background: #f0f5e7; color: #7c9365; font: inherit; font-size: 10px; cursor: pointer; }
.form-error { margin-bottom: 20px; padding: 12px 15px; border: 1px solid #eed7cf; border-radius: 8px; background: #fff4ef; color: #b17362; font-size: 11px; line-height: 1.6; }
.permission-table { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; }
.permission-table .data-table th { border-top: 0; font-size: 9px; }
.permission-table .data-table td { padding-top: 11px; padding-bottom: 11px; font-size: 10px; }
.permission-table .data-table th:not(:first-child), .permission-table .data-table td:not(:first-child) { text-align: center; padding-left: 12px; padding-right: 12px; }
.permission-table .permission-checkbox { width: 14px; height: 14px; }
.order-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.order-detail-top > .muted { font-size: 10px; }
.modal-wide .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 25px; margin-bottom: 6px; }
.detail-grid > section { padding: 19px; border: 1px solid #e5ebdb; border-radius: 9px; background: #fafcf6; }
.detail-grid > section h3 { font-size: 16px; margin-bottom: 8px; }
.detail-grid > section p { font-size: 11px; line-height: 1.8; margin-top: 4px; }
.detail-grid > section p .badge { margin-top: 6px; }
.modal-wide .detail-label { color: #a1ac93; font-size: 8px; letter-spacing: 1.1px; margin-bottom: 12px; }
.detail-label > span { letter-spacing: 0; color: #7f9369; font-size: 13px; }
.detail-totals { display: flex; flex-direction: column; gap: 11px; width: min(100%, 340px); margin: 22px 0 27px auto; padding: 18px 21px; background: #f5f8ee; border: 1px solid #e0e8d3; border-radius: 9px; }
.detail-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; color: #96a287; font-size: 10px; }
.detail-totals > div > strong { color: #6f8559; font-size: 11px; font-weight: 550; white-space: nowrap; }
.detail-totals > .detail-total { margin-top: 3px; padding-top: 13px; border-top: 1px solid #dfe8d2; color: #6d8256; }
.detail-totals > .detail-total > strong { color: var(--forest); font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.detail-note { padding: 15px 18px; margin: 0 0 22px; border: 1px solid #e5ebdc; background: #fafcf6; border-radius: 8px; }
.detail-note > strong { color: #7b8e66; font-size: 10px; }
.detail-note > p { color: #98a28e; font-size: 11px; line-height: 1.8; margin-top: 5px; white-space: pre-wrap; }
.modal-wide .activity-list { padding-top: 5px; }
.modal-wide .activity-item > div > strong { display: block; font-size: 10px; color: #7d9168; }
.modal-wide .activity-dot:empty { width: 12px; height: 12px; margin: 2px 7px 0; background: #d4e2bf; border: 3px solid #f1f6e8; }
.modal-wide .activity-item:not(:last-child)::before { left: 12px; top: 17px; }
.modal-body form > p { font-size: 12px; line-height: 1.8; margin-bottom: 15px; }
.modal-body form > .field, .modal-body form > .checkbox-field { margin-top: 18px; }
.modal-body form > .form-grid { margin-bottom: 18px; }
.modal-body form > .alert { margin-top: 21px; margin-bottom: 0; }
.modal-body > .stock-watch-list { display: block; padding: 22px 0 0; }
.modal-body > p.muted { font-size: 11px; }
.modal-order .modal-footer { justify-content: space-between; }

/* Sign-in has its own complete, edge-to-edge composition. */
body.login-page { background: #f9fbf5; }
body.login-page #app { min-height: 100dvh; }
body.login-page .page-footer { display: none; }
.login-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 49px 63px 36px; min-height: 100dvh; background: #234d39; overflow: hidden; }
.login-brand-panel .login-brand { position: relative; z-index: 1; padding: 0; gap: 13px; align-self: flex-start; }
.login-brand-panel .login-brand > img { width: 41px; height: 41px; border: 1px solid #55724f; border-radius: 12px; }
.login-brand-panel .brand-wordmark { color: #f0f5e8; font-size: 25px; letter-spacing: 3.3px; }
.login-brand-panel .brand-wordmark > span { color: #90aa85; font-size: 7px; letter-spacing: 1.8px; margin-top: 7px; }
.login-brand-copy { position: relative; z-index: 1; padding: 45px 0; }
.login-brand-copy > .eyebrow { display: block; color: #87a17a; font-size: 8px; letter-spacing: 2.1px; margin-bottom: 23px; }
.login-brand-copy > h1 { color: #f7faef; font-size: clamp(44px, 4.4vw, 69px); line-height: 1.13; font-weight: 450; letter-spacing: -2.4px; }
.login-brand-copy > h1 > em { color: #d5e59e; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -2px; }
.login-brand-copy > p { max-width: 320px; margin-top: 26px; color: #9bb28f; font-size: 12px; line-height: 1.9; }
.login-benefits { display: flex; flex-direction: column; gap: 14px; margin-top: 33px; }
.login-benefits > span { display: flex; align-items: center; gap: 10px; color: #b2c5a0; font-size: 10px; }
.login-benefits > span > .icon { width: 15px; height: 15px; color: #91ad77; stroke-width: 1.4; }
.login-brand-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #8aa17b; font-size: 8px; letter-spacing: 1.2px; }
.login-brand-footer > span { color: #65865e; font-size: 7px; letter-spacing: 1.3px; }
.login-leaf { position: absolute; right: -95px; bottom: -100px; width: 450px; height: 450px; border: 1px solid rgb(139 171 107 / 10%); border-radius: 50%; color: #4c7045; background: rgb(74 111 59 / 8%); transform: rotate(-15deg); }
.login-leaf::before, .login-leaf::after { position: absolute; content: ""; inset: -50px; border: 1px solid rgb(139 171 107 / 7%); border-radius: 50%; }
.login-leaf::after { inset: 50px; border-color: rgb(139 171 107 / 9%); }
.login-leaf > .icon { position: absolute; width: 240px; height: 240px; left: 80px; top: 70px; opacity: .45; stroke-width: .4; }
.login-form-panel { display: grid; place-items: center; padding: 50px 45px; min-height: 100dvh; background: #fbfcf7; }
.login-form-panel .login-card { max-width: 355px; }
.login-form-panel .login-card > .eyebrow { font-size: 8px; color: #9aaa85; letter-spacing: 1.7px; margin-bottom: 14px; }
.login-form-panel .login-card > h2 { color: var(--forest-deep); font-size: 30px; font-weight: 550; letter-spacing: -.85px; line-height: 1.3; margin-bottom: 9px; }
.login-form-panel .login-card > p { font-size: 11px; color: #9ca78e; margin-bottom: 31px; }
.login-form-panel .login-card .field { gap: 8px; margin-bottom: 20px; }
.login-form-panel .field > span { font-size: 10px; font-weight: 600; color: #7f8e6e; }
.login-form-panel .input { min-height: 44px; font-size: 12px; background: white; border-color: #e0e7d6; }
.login-form-panel .input::placeholder { color: #b2baa5; font-size: 11px; }
.login-submit { justify-content: space-between; min-height: 43px !important; padding: 11px 16px; margin-top: 8px !important; font-size: 11px; }
.demo-access { margin-top: 26px; padding: 17px; background: #f0f5e7; border: 1px solid #dfe8d1; border-radius: 9px; }
.demo-badge { display: inline-flex; padding: 3px 6px; border: 1px solid #d3dfbf; border-radius: 4px; color: #8a9f70; background: #e9f0dc; font-size: 7px; font-weight: 600; letter-spacing: .8px; }
.demo-access > p { font-size: 10px; line-height: 1.8; color: #9aa88a; margin: 9px 0 13px; }
.demo-access > .btn { justify-content: space-between; width: 100%; min-height: 35px; padding: 8px 11px; border-color: #dbe5cb; color: #7b9262; font-size: 10px; background: #fafcf6; }
.demo-access > .btn:hover { background: white; border-color: #a7bd8e; }
.login-form-panel .login-card > .login-security { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin: 23px 0 0; color: #aab49b; font-size: 8px; line-height: 1.7; }
.login-security > .icon { width: 12px; height: 12px; margin-top: 1px; color: #b3bda5; }

@media (min-width: 1700px) {
  .login-brand-panel { padding-left: 85px; padding-right: 85px; }
  .login-brand-copy > h1 { font-size: 77px; }
  .login-brand-copy > p { font-size: 14px; max-width: 380px; }
  .login-benefits { gap: 17px; }
  .login-benefits > span { font-size: 12px; }
}
@media (max-width: 1100px) {
  .modal-order .order-layout { grid-template-columns: minmax(0, 1.7fr) minmax(245px, 1fr); gap: 22px; }
  .modal-order .gift-picker { grid-template-columns: 1fr; }
  .gift-choice { min-height: 64px; }
  .gift-choice-info strong { font-size: 11px; }
  .login-brand-panel { padding: 40px; }
  .login-brand-copy > h1 { font-size: 53px; }
  .login-brand-copy > .eyebrow { font-size: 7px; letter-spacing: 1.4px; }
  .login-brand-footer { font-size: 7px; letter-spacing: .7px; }
  .login-brand-footer > span { font-size: 6px; letter-spacing: .7px; }
  .login-form-panel { padding: 40px; }
  .login-form-panel .login-card > h2 { font-size: 28px; }
}

/* Arabic is the workspace's primary language; layout follows the reading flow. */
html[dir="rtl"] { --font: "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .sidebar { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--border); }
[dir="rtl"] .main { margin-left: 0; margin-right: var(--sidebar-width); }
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .nav-label, [dir="rtl"] .nav-group-label, [dir="rtl"] .detail-label, [dir="rtl"] .demo-badge, [dir="rtl"] .demo-pill, [dir="rtl"] .login-brand-footer, [dir="rtl"] .login-brand-footer > span { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .eyebrow { font-size: 11px; font-weight: 600; }
[dir="rtl"] .nav-label, [dir="rtl"] .nav-group-label { font-size: 10px; margin-top: 19px; margin-bottom: 9px; }
[dir="rtl"] .brand-wordmark { direction: ltr; unicode-bidi: isolate; letter-spacing: 2.8px; }
[dir="rtl"] .brand-wordmark > span { direction: rtl; letter-spacing: 0; font-size: 10px; font-weight: 500; margin-top: 5px; }
[dir="rtl"] .brand { padding-right: 25px; padding-left: 20px; }
[dir="rtl"] .workspace-switcher strong { font-size: 13px; }
[dir="rtl"] .workspace-switcher small { font-size: 11px; }
[dir="rtl"] .workspace-symbol { font-family: Georgia, serif; }
[dir="rtl"] .nav-item, [dir="rtl"] .nav-link { text-align: right; font-size: 12px; }
[dir="rtl"] .nav-count, [dir="rtl"] .nav-alert { margin-left: 0; margin-right: auto; }
[dir="rtl"] .sidebar-note { font-size: 12px; line-height: 1.8; }
[dir="rtl"] .sidebar-user strong { font-size: 12px; }
[dir="rtl"] .sidebar-user small, [dir="rtl"] .user-info > span { font-size: 11px; }
[dir="rtl"] .sidebar-user .icon-btn { transform: scaleX(-1); }
[dir="rtl"] .breadcrumb { font-size: 12px; }
[dir="rtl"] .global-search input { text-align: right; font-size: 12px; }
[dir="rtl"] .notification-count { left: 2px; right: auto; }
[dir="rtl"] .notification-dot { right: auto; left: 9px; }
[dir="rtl"] .page-heading p:not(.eyebrow) { font-size: 13px; }
[dir="rtl"] .page-heading .eyebrow { font-size: 10px; letter-spacing: 0; }
[dir="rtl"] .btn { font-size: 12px; }
[dir="rtl"] .period-select { width: 139px; font-size: 11px; padding-right: 11px; padding-left: 25px; }
[dir="rtl"] .select { padding-left: 28px; padding-right: 12px; }
[dir="rtl"] .welcome-copy > .eyebrow { font-size: 10px; letter-spacing: 0; }
[dir="rtl"] .welcome-copy > h2 { font-size: 29px; letter-spacing: 0; line-height: 1.5; }
[dir="rtl"] .welcome-copy > p { font-size: 13px; line-height: 1.8; }
[dir="rtl"] .welcome-link { font-size: 12px; }
[dir="rtl"] .welcome-art { left: 35px; right: auto; direction: ltr; }
[dir="rtl"] .welcome-date { left: 25px; right: auto; font-size: 11px; }
[dir="rtl"] .welcome-banner::after { left: 55px; right: auto; }
[dir="rtl"] .botanical-art { left: 15px; right: auto; direction: ltr; }
[dir="rtl"] .stat-top > span:first-child, [dir="rtl"] .stat-label { font-size: 12px; }
[dir="rtl"] .stat-caption, [dir="rtl"] .stat-foot { font-size: 11px; }
[dir="rtl"] .stat-value { letter-spacing: 0; }
[dir="rtl"] .card-header h2, [dir="rtl"] .card-header h3 { font-size: 15px; }
[dir="rtl"] .card-header p, [dir="rtl"] .lower-grid .card-header p { font-size: 11px; }
[dir="rtl"] .chart-period, [dir="rtl"] .revenue-summary > span, [dir="rtl"] .outcome-card > .card-header > .muted { font-size: 11px; }
[dir="rtl"] .chart-legend > div { font-size: 11px; }
[dir="rtl"] .chart-legend > div > strong, [dir="rtl"] .legend-list > div > strong { margin-left: 0; margin-right: auto; }
[dir="rtl"] .chart-legend > div > strong { font-size: 11px; }
[dir="rtl"] .outcome-chart { padding-left: 0; padding-right: 14px; }
[dir="rtl"] .outcome-card > .chart-legend { padding-left: 20px; padding-right: 8px; }
[dir="rtl"] .revenue-chart, [dir="rtl"] .chart-svg, [dir="rtl"] .outcome-chart > svg { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .outcome-chart svg text { font-size: 12px; }
[dir="rtl"] .outcome-chart svg text:first-of-type { font-size: 28px; }
[dir="rtl"] .chart-svg text, [dir="rtl"] .revenue-chart svg text { unicode-bidi: plaintext; }
[dir="rtl"] .stock-watch-info > strong { font-size: 12px; }
[dir="rtl"] .stock-watch-info > span { font-size: 10px; unicode-bidi: plaintext; }
[dir="rtl"] .stock-watch-qty { text-align: left; margin-left: 0; margin-right: 5px; }
[dir="rtl"] .stock-watch-qty > span { font-size: 10px; }
[dir="rtl"] .stock-watch .card-footer .text-link, [dir="rtl"] .text-link { font-size: 12px; }
[dir="rtl"] .stock-count { text-align: left; }
[dir="rtl"] .stock-count small { font-size: 10px; }
[dir="rtl"] .progress > span { margin-left: auto; }
[dir="rtl"] .data-table { text-align: right; font-size: 12px; }
[dir="rtl"] .data-table th { font-size: 11px; }
[dir="rtl"] .data-table td strong, [dir="rtl"] .cell-primary { font-size: 12px; }
[dir="rtl"] .data-table th:first-child, [dir="rtl"] .data-table td:first-child { padding-left: 18px; padding-right: 23px; }
[dir="rtl"] .data-table th:last-child, [dir="rtl"] .data-table td:last-child { padding-right: 18px; padding-left: 23px; }
[dir="rtl"] .recent-orders .data-table th { font-size: 10px; }
[dir="rtl"] .recent-orders .data-table td { font-size: 11px; }
[dir="rtl"] .recent-orders .text-link, [dir="rtl"] .recent-orders .data-table td strong { font-size: 11px; }
[dir="rtl"] .recent-orders .data-table td:first-child, [dir="rtl"] .recent-orders .data-table th:first-child { padding-left: 14px; padding-right: 22px; }
[dir="rtl"] .recent-orders .data-table td:last-child, [dir="rtl"] .recent-orders .data-table th:last-child { padding-right: 14px; padding-left: 17px; }
[dir="rtl"] .table-sub, [dir="rtl"] .cell-secondary { font-size: 10px; unicode-bidi: plaintext; }
[dir="rtl"] .badge { font-size: 11px; }
[dir="rtl"] .recent-orders .badge { font-size: 10px; }
[dir="rtl"] .table-footer, [dir="rtl"] .table-pagination { font-size: 11px; }
[dir="rtl"] .search-input > .icon { left: auto; right: 12px; }
[dir="rtl"] .search-input > .input, [dir="rtl"] .search-input > input:not(.input) { padding-left: 12px; padding-right: 36px; font-size: 12px; text-align: right; }
[dir="rtl"] .input-prefix > span { left: auto; right: 12px; }
[dir="rtl"] .input-prefix > .input { padding-left: 12px; padding-right: 44px; }
[dir="rtl"] .offer-visual, [dir="rtl"] .offer-cover { direction: ltr; }
[dir="rtl"] .offer-visual-tag { letter-spacing: 0; direction: rtl; font-size: 10px; }
[dir="rtl"] .offer-card-top .icon-btn { margin-right: 0; margin-left: -5px; }
[dir="rtl"] .offer-card-body > h3 { font-size: 23px; }
[dir="rtl"] .offer-card-body > p { font-size: 12px; line-height: 1.8; }
[dir="rtl"] .offer-features > span { font-size: 11px; }
[dir="rtl"] .offer-card-footer > span { font-size: 11px; }
[dir="rtl"] .offer-card-footer .text-link { font-size: 11px; }
[dir="rtl"] .info-strip strong { font-size: 13px; }
[dir="rtl"] .info-strip div > span { font-size: 12px; }
[dir="rtl"] .courier-card > h3 { font-size: 20px; }
[dir="rtl"] .courier-card > p { font-size: 12px; }
[dir="rtl"] .courier-card .text-link { font-size: 12px; }
[dir="rtl"] .courier-numbers > div > span { font-size: 11px; }
[dir="rtl"] .tab { font-size: 13px; }
[dir="rtl"] .tabs > .tab > span:not(.icon) { margin-left: 0; margin-right: 1px; }
[dir="rtl"] .field > label, [dir="rtl"] .field > .label, [dir="rtl"] .field > span:first-child { font-size: 12px; }
[dir="rtl"] .field small, [dir="rtl"] .field-hint { font-size: 11px; }
[dir="rtl"] .input, [dir="rtl"] .select, [dir="rtl"] .textarea { text-align: right; }
[dir="rtl"] .input[type="email"], [dir="rtl"] .input[type="tel"], [dir="rtl"] .input[type="number"], [dir="rtl"] .input[type="password"], [dir="rtl"] input[name="sku"], [dir="rtl"] input[name="reference"], [dir="rtl"] input[name="trackingNumber"], [dir="rtl"] .bidi-ltr { direction: ltr; unicode-bidi: isolate; text-align: left; }
[dir="rtl"] .numeric, [dir="rtl"] .order-number, [dir="rtl"] .quantity-stepper, [dir="rtl"] kbd { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .money, [dir="rtl"] .money-cell, [dir="rtl"] .stat-value, [dir="rtl"] .offer-price, [dir="rtl"] .summary-total > strong, [dir="rtl"] .summary-line > strong, [dir="rtl"] .detail-totals strong { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
[dir="rtl"] .modal-header > .icon-btn { margin-left: -7px; margin-right: 0; }
[dir="rtl"] .modal-header .eyebrow { font-size: 10px; letter-spacing: 0; }
[dir="rtl"] .modal-footer > .muted { margin-left: auto; margin-right: 0; }
[dir="rtl"] .modal-footer .btn { font-size: 12px; }
[dir="rtl"] .form-section-heading h3 { font-size: 14px; }
[dir="rtl"] .form-section-heading p { font-size: 11px; }
[dir="rtl"] .form-section-heading > p { margin-left: 0; margin-right: auto; }
[dir="rtl"] .form-section-heading .count-pill { margin-left: 0; margin-right: 5px; }
[dir="rtl"] .step-number { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .order-offer { text-align: right; }
[dir="rtl"] .order-offer > strong { padding-left: 20px; padding-right: 0; font-size: 18px; }
[dir="rtl"] .offer-choice-dot { left: 15px; right: auto; }
[dir="rtl"] .order-offer > span:not(.offer-choice-dot) { font-size: 11px; }
[dir="rtl"] .gift-choice-info > strong { font-size: 12px; }
[dir="rtl"] .gift-choice-info > small { font-size: 10px; }
[dir="rtl"] .order-summary > .eyebrow { font-size: 10px; letter-spacing: 0; }
[dir="rtl"] .summary-product-art .offer-visual-tag { font-size: 9px; }
[dir="rtl"] .summary-line { font-size: 12px; }
[dir="rtl"] .summary-line > strong { font-size: 12px; }
[dir="rtl"] .summary-gifts > div, [dir="rtl"] .summary-gifts > p { font-size: 11px; }
[dir="rtl"] .summary-gifts > div > strong { margin-left: 0; margin-right: auto; }
[dir="rtl"] .summary-total > span { font-size: 13px; max-width: 95px; }
[dir="rtl"] .order-summary .summary-note { font-size: 11px; }
[dir="rtl"] .checkbox-field, [dir="rtl"] .checkbox-field strong { font-size: 12px; }
[dir="rtl"] .checkbox-field small { font-size: 11px; }
[dir="rtl"] .readonly-field { font-size: 12px; }
[dir="rtl"] .input[type="file"] { direction: rtl; text-align: right; }
[dir="rtl"] .input[type="file"]::file-selector-button { margin-left: 9px; margin-right: -3px; }
[dir="rtl"] .permission-table .data-table td, [dir="rtl"] .permission-table .data-table th { font-size: 11px; }
[dir="rtl"] .permission-table .data-table th:not(:first-child), [dir="rtl"] .permission-table .data-table td:not(:first-child) { text-align: center; }
[dir="rtl"] .detail-totals { margin-right: auto; margin-left: 0; }
[dir="rtl"] .detail-totals > div { font-size: 12px; }
[dir="rtl"] .detail-grid > section p, [dir="rtl"] .detail-note > p { font-size: 12px; }
[dir="rtl"] .detail-note > strong { font-size: 12px; }
[dir="rtl"] .modal-wide .detail-label { font-size: 10px; letter-spacing: 0; }
[dir="rtl"] .modal-wide .activity-item > div > strong { font-size: 12px; }
[dir="rtl"] .modal-wide .activity-item:not(:last-child)::before { right: 12px; left: auto; }
[dir="rtl"] .activity-item:not(:last-child)::before { left: auto; right: 13px; }
[dir="rtl"] .activity-item p { font-size: 11px; }
[dir="rtl"] .activity-item small { font-size: 10px; }
[dir="rtl"] .timeline li { padding-right: 25px; padding-left: 0; }
[dir="rtl"] .timeline li::before { right: 0; left: auto; }
[dir="rtl"] .timeline li:not(:last-child)::after { right: 6px; left: auto; }
[dir="rtl"] .alert, [dir="rtl"] .form-error { font-size: 12px; }
[dir="rtl"] .toast-root { left: 26px; right: auto; align-items: flex-start; }
[dir="rtl"] .toast { font-size: 13px; }
[dir="rtl"] .toast button { margin-left: 0; margin-right: auto; }
[dir="rtl"] .dashboard-footnote, [dir="rtl"] .page-footer { font-size: 11px; letter-spacing: 0; }
[dir="rtl"] .login-brand-panel .brand-wordmark > span { font-size: 11px; letter-spacing: 0; }
[dir="rtl"] .login-brand-copy > .eyebrow { font-size: 11px; letter-spacing: 0; }
[dir="rtl"] .login-brand-copy > h1 { font-size: clamp(43px, 4vw, 66px); line-height: 1.4; letter-spacing: -1px; }
[dir="rtl"] .login-brand-copy > h1 > em { font-family: var(--font); font-weight: 400; letter-spacing: 0; }
[dir="rtl"] .login-brand-copy > p { font-size: 14px; max-width: 350px; line-height: 1.95; }
[dir="rtl"] .login-benefits > span { font-size: 12px; }
[dir="rtl"] .login-brand-footer { font-size: 10px; }
[dir="rtl"] .login-brand-footer > span { font-size: 9px; }
[dir="rtl"] .login-leaf { right: auto; left: -95px; direction: ltr; }
[dir="rtl"] .login-form-panel .login-card > .eyebrow { font-size: 11px; letter-spacing: 0; }
[dir="rtl"] .login-form-panel .login-card > h2 { font-size: 29px; letter-spacing: 0; line-height: 1.5; }
[dir="rtl"] .login-form-panel .login-card > p { font-size: 13px; }
[dir="rtl"] .login-form-panel .field > span { font-size: 12px; }
[dir="rtl"] .login-form-panel .input::placeholder { font-size: 12px; }
[dir="rtl"] .login-submit { font-size: 13px; }
[dir="rtl"] .demo-badge { font-size: 10px; }
[dir="rtl"] .demo-access > p { font-size: 12px; }
[dir="rtl"] .demo-access > .btn { font-size: 12px; }
[dir="rtl"] .login-form-panel .login-card > .login-security { font-size: 11px; }
[dir="rtl"] svg.icon:has(> path[d="M5 12h14m-5-5 5 5-5 5"]), [dir="rtl"] svg.icon:has(> path[d="m9 5 7 7-7 7"]) { transform: scaleX(-1); }

@media (max-width: 1270px) {
  [dir="rtl"] .brand { padding-right: 20px; padding-left: 18px; }
  [dir="rtl"] .brand-wordmark > span { font-size: 9px; letter-spacing: 0; }
  [dir="rtl"] .outcome-chart { padding-left: 20px; padding-right: 20px; }
  [dir="rtl"] .outcome-card > .chart-legend { padding-left: 22px; padding-right: 22px; }
  [dir="rtl"] .outcome-card > .chart-legend > div { font-size: 10px; }
  [dir="rtl"] .offer-card-body > h3 { font-size: 21px; }
  [dir="rtl"] .stat-caption { font-size: 10px; }
}
@media (max-width: 1100px) {
  [dir="rtl"] .outcome-card > .outcome-chart { padding-left: 10px; padding-right: 25px; }
  [dir="rtl"] .outcome-card > .chart-legend { padding-left: 45px; padding-right: 15px; }
  [dir="rtl"] .outcome-card > .chart-legend > div { font-size: 12px; }
  [dir="rtl"] .welcome-art { left: 5px; right: auto; }
  [dir="rtl"] .login-brand-copy > h1 { font-size: 47px; }
  [dir="rtl"] .login-brand-copy > .eyebrow { font-size: 10px; }
  [dir="rtl"] .login-brand-copy > p { font-size: 13px; }
}
@media (max-width: 860px) {
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  [dir="rtl"] .main { margin-right: 0; }
  [dir="rtl"] .nav-open .sidebar { transform: translateX(0); box-shadow: -15px 0 45px rgb(24 46 31 / 13%); }
  [dir="rtl"] .stat-top > span:first-child { font-size: 11px; }
  [dir="rtl"] .stat-caption { font-size: 9px; }
  [dir="rtl"] .login-brand-copy > h1 { font-size: 40px; }
  [dir="rtl"] .login-brand-copy > .eyebrow { font-size: 9px; }
  [dir="rtl"] .login-brand-copy > p { font-size: 12px; }
  [dir="rtl"] .login-brand-footer { font-size: 9px; }
  [dir="rtl"] .login-brand-footer > span { font-size: 8px; }
}
@media (max-width: 680px) {
  [dir="rtl"] .brand { padding-right: 25px; padding-left: 20px; }
  [dir="rtl"] .brand-wordmark > span { font-size: 10px; }
  [dir="rtl"] .page-heading p:not(.eyebrow) { font-size: 12px; }
  [dir="rtl"] .heading-actions .period-select { width: 136px; font-size: 11px; }
  [dir="rtl"] .heading-actions .date-pill { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .global-search input { font-size: 11px; }
  [dir="rtl"] .welcome-copy > .eyebrow { font-size: 9px; }
  [dir="rtl"] .welcome-copy > h2 { font-size: 25px; }
  [dir="rtl"] .welcome-copy > p { font-size: 11px; }
  [dir="rtl"] .welcome-copy { max-width: 85%; }
  [dir="rtl"] .welcome-art { left: -76px; right: auto; }
  [dir="rtl"] .welcome-banner::after { left: -80px; right: auto; }
  [dir="rtl"] .botanical-art { left: -85px; right: auto; }
  [dir="rtl"] .welcome-link { font-size: 11px; }
  [dir="rtl"] .stat-top > span:first-child { font-size: 11px; }
  [dir="rtl"] .stat-caption { font-size: 10px; line-height: 1.7; }
  [dir="rtl"] .stat-card { min-height: 148px; }
  [dir="rtl"] .revenue-summary > span { font-size: 10px; }
  [dir="rtl"] .outcome-card > .outcome-chart { padding-left: 0; padding-right: 15px; }
  [dir="rtl"] .outcome-card > .chart-legend { padding-left: 23px; padding-right: 10px; }
  [dir="rtl"] .outcome-card > .chart-legend > div { font-size: 10px; }
  [dir="rtl"] .recent-orders .data-table td:first-child, [dir="rtl"] .recent-orders .data-table th:first-child { padding-right: 19px; }
  [dir="rtl"] .recent-orders .data-table td:last-child, [dir="rtl"] .recent-orders .data-table th:last-child { padding-left: 19px; }
  [dir="rtl"] .data-table td:first-child, [dir="rtl"] .data-table th:first-child { padding-right: 19px; padding-left: 15px; }
  [dir="rtl"] .data-table td:last-child, [dir="rtl"] .data-table th:last-child { padding-left: 19px; padding-right: 15px; }
  [dir="rtl"] .offer-card-body > h3 { font-size: 20px; }
  [dir="rtl"] .offer-card-body > p { font-size: 11px; }
  [dir="rtl"] .offer-features > span { font-size: 10px; }
  [dir="rtl"] .offer-card-footer > span { font-size: 10px; }
  [dir="rtl"] .offer-card-footer .text-link { font-size: 10px; }
  [dir="rtl"] .offer-visual-tag { font-size: 9px; }
  [dir="rtl"] .form-section-heading h3 { font-size: 14px; }
  [dir="rtl"] .order-offer > strong { font-size: 18px; }
  [dir="rtl"] .quantity-stepper > span { font-size: 12px; }
  [dir="rtl"] .summary-total > span { max-width: none; }
  [dir="rtl"] .summary-total > strong { font-size: 25px; }
  [dir="rtl"] .detail-totals { margin-right: 0; }
  [dir="rtl"] .toast-root { left: 16px; right: auto; }
  [dir="rtl"] .dashboard-footnote, [dir="rtl"] .page-footer { font-size: 10px; }
  [dir="rtl"] .login-form-panel .login-card::before { direction: ltr; unicode-bidi: isolate; text-align: right; }
  [dir="rtl"] .login-form-panel .input { font-size: 16px; }
  [dir="rtl"] .login-form-panel .input::placeholder { font-size: 13px; }
  [dir="rtl"] .login-form-panel .login-card > h2 { font-size: 29px; }
  [dir="rtl"] .login-form-panel .login-card > .login-security { font-size: 11px; }
}
@media (max-width: 390px) {
  [dir="rtl"] .welcome-copy > h2 { font-size: 23px; }
  [dir="rtl"] .welcome-copy > .eyebrow { font-size: 8px; }
  [dir="rtl"] .botanical-art { left: -115px; right: auto; }
  [dir="rtl"] .outcome-card > .chart-legend { padding-left: 15px; }
  [dir="rtl"] .outcome-card > .chart-legend > div { font-size: 9px; }
  [dir="rtl"] .offer-choice-dot { left: 11px; right: auto; }
  [dir="rtl"] .order-offer > strong { font-size: 17px; }
  [dir="rtl"] .heading-actions .date-pill { margin-right: 0; }
  [dir="rtl"] .offer-card-body > h3 { font-size: 24px; }
  [dir="rtl"] .offer-card-body > p { font-size: 12px; }
  [dir="rtl"] .offer-features > span, [dir="rtl"] .offer-card-footer .text-link { font-size: 12px; }
}
@media print {
  [dir="rtl"] .main { margin: 0; }
  [dir="rtl"] .sidebar { display: none !important; }
}

.legacy-dashboard-summary { margin: 0 0 23px; align-items: center; }
.legacy-dashboard-summary > div { flex: 1; }
.legacy-dashboard-summary > .btn { flex-shrink: 0; white-space: nowrap; }
.legacy-stats-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.legacy-stats .stat-value { font-size: 26px; }
.legacy-pagination { display: flex; align-items: center; gap: 11px; }
.legacy-pagination > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.legacy-source-table { table-layout: fixed; white-space: normal; margin: 1px 0 23px; }
.legacy-source-table th { width: 30%; min-width: 120px; font-weight: 500; vertical-align: top; border-top: 0; color: #81916f; }
.legacy-source-table td { width: 70%; }
.legacy-source-table tr:last-child th { border-bottom: 0; }
.legacy-source-value, .legacy-source-value > span { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.legacy-current-grid section h3 { overflow-wrap: anywhere; }
.legacy-provenance { margin-top: 23px; }
.legacy-provenance p { overflow-wrap: anywhere; }
.legacy-stats + .card .toolbar .search-input { flex: 1; min-width: 240px; }
.legacy-stats + .card .toolbar .search-input input { width: 100%; }
.legacy-stats + .card .toolbar .filter-group { flex: 0 1 auto; }
.order-source-content { display: block; max-width: 260px; white-space: pre-wrap; overflow-wrap: anywhere; }
.badge-in_transit, .badge-partially_delivered { color: #63848c; background: #edf4f6; }
.badge-deferred, .badge-shipping_warehouse, .badge-pending_approval { color: #aa8b4c; background: #faf5e8; }
.badge-returned_to_sender, .badge-return_warehouse, .badge-partially_returned { color: #947d65; background: #f6f1eb; }
.badge-unknown { color: #939b89; background: #f1f3ec; }
@media (max-width: 1100px) {
  .legacy-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .legacy-stats + .card .toolbar .filter-group { flex: 1 1 100%; }
}
@media (max-width: 680px) {
  .legacy-dashboard-summary { flex-wrap: wrap; align-items: flex-start; }
  .legacy-dashboard-summary > div { flex-basis: calc(100% - 40px); }
  .legacy-dashboard-summary > .btn { margin-top: 3px; margin-right: 34px; min-height: 40px; }
  .legacy-stats .stat-value { font-size: 21px; }
  .legacy-stats .stat-top > span:first-child { font-size: 10px; }
  .legacy-stats .stat-icon { display: none; }
  .legacy-stats .stat-caption { font-size: 9px; }
  .legacy-pagination { flex-wrap: wrap; gap: 9px; }
  .legacy-pagination .btn { min-height: 36px; }
  .legacy-source-table th { width: 35%; font-size: 11px; }
  .legacy-source-table td { width: 65%; font-size: 12px; }
  .legacy-source-table th:first-child { padding-right: 13px; padding-left: 10px; }
  .legacy-source-table td:last-child { padding-left: 13px; padding-right: 10px; }
}
@media (max-width: 860px) {
  .login-brand-panel { padding: 35px; }
  .login-brand-copy > h1 { font-size: 46px; letter-spacing: -1.7px; }
  .login-brand-copy > p { font-size: 11px; }
  .login-brand-copy > .eyebrow { font-size: 6px; letter-spacing: 1px; }
  .login-brand-panel .brand-wordmark { font-size: 23px; letter-spacing: 2.5px; }
  .login-brand-panel .brand-wordmark > span { font-size: 6px; letter-spacing: 1.3px; }
  .login-brand-panel .login-brand > img { width: 35px; height: 35px; border-radius: 11px; }
  .login-brand-footer { display: block; }
  .login-brand-footer > span { display: block; margin-top: 7px; }
  .login-form-panel { padding: 30px; }
  .login-form-panel .login-card > h2 { font-size: 25px; }
  .login-form-panel .login-card > .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
}
@media (max-width: 760px) {
  .modal-order .order-layout { grid-template-columns: 1fr; }
  .modal-order .order-summary { position: static; margin-top: 5px; }
  .modal-order .gift-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-product-art { display: none; }
  .order-summary > .eyebrow { margin-bottom: 12px; }
  .summary-gifts { gap: 9px; }
  .summary-gifts > div { font-size: 10px; }
  .summary-total > span { max-width: none; }
  .order-summary > h3 { font-size: 21px; }
}
@media (max-width: 680px) {
  .modal-order .modal-body { padding: 22px 20px; }
  .form-section-heading { margin-top: 26px; }
  .form-section-heading h3 { font-size: 13px; }
  .form-section-heading p { font-size: 10px; }
  .order-offers { gap: 10px; }
  .order-offer { min-height: 122px; padding: 15px; }
  .order-offer > strong { font-size: 17px; }
  .order-offer > span:not(.offer-choice-dot) { font-size: 9px; }
  .order-offer > b { font-size: 14px; }
  .modal-order .gift-picker { grid-template-columns: 1fr; }
  .gift-choice { min-height: 73px; padding: 12px; gap: 12px; }
  .gift-choice .product-icon { width: 33px; height: 38px; }
  .gift-choice-info > strong { font-size: 12px; }
  .gift-choice-info > small { font-size: 10px; }
  .quantity-stepper { height: 36px; }
  .quantity-stepper > button { width: 33px; height: 36px; font-size: 18px; }
  .quantity-stepper > span { width: 26px; height: 36px; font-size: 12px; }
  .readonly-field { min-height: 45px; font-size: 13px; }
  .checkbox-field { gap: 10px; padding: 12px 0; font-size: 12px; }
  .checkbox-field > input { width: 17px; height: 17px; }
  .checkbox-field strong { font-size: 12px; }
  .checkbox-field small { font-size: 10px; }
  .modal-wide .detail-grid { grid-template-columns: 1fr; gap: 15px; }
  .detail-grid > section { padding: 17px; }
  .detail-grid > section h3 { font-size: 17px; }
  .detail-grid > section p { font-size: 12px; }
  .order-detail-top { flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
  .order-detail-top > .muted { font-size: 9px; }
  .detail-totals { width: 100%; }
  .detail-totals > div { font-size: 11px; }
  .detail-totals > div > strong { font-size: 12px; }
  .detail-note > strong { font-size: 11px; }
  .detail-note > p { font-size: 12px; }
  .input-number { min-width: 70px; max-width: 85px; font-size: 16px; }
  .input[type="file"] { font-size: 12px; padding: 10px; }
  .input[type="file"]::file-selector-button { font-size: 11px; }
  .permission-table .data-table td { font-size: 11px; }
  .permission-table .data-table th:not(:first-child), .permission-table .data-table td:not(:first-child) { padding-left: 9px; padding-right: 9px; }
  .permission-table .permission-checkbox { width: 17px; height: 17px; }
  .modal-body form > p { font-size: 12px; }
  .modal-order .modal-footer { gap: 9px; }
  .modal-order .modal-footer > .btn:first-child { flex: 0 1 auto; }
  .modal-order .modal-footer > .btn:last-child { flex: 1; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100dvh; padding: 45px 28px; }
  .login-form-panel .login-card::before { font-size: 23px; letter-spacing: 4px; margin-bottom: 47px; }
  .login-form-panel .login-card > .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .login-form-panel .login-card > h2 { font-size: 30px; }
  .login-form-panel .login-card > p { font-size: 12px; }
  .login-form-panel .field > span { font-size: 12px; }
  .login-form-panel .input { font-size: 16px; min-height: 47px; }
  .login-form-panel .input::placeholder { font-size: 13px; }
  .login-submit { min-height: 45px !important; font-size: 12px; }
  .demo-access { margin-top: 26px; padding: 18px; }
  .demo-badge { font-size: 8px; }
  .demo-access > p { font-size: 11px; }
  .demo-access > .btn { min-height: 42px; font-size: 11px; }
  .login-form-panel .login-card > .login-security { font-size: 9px; }
}
@media (max-width: 390px) {
  .order-offer { padding: 14px 13px; }
  .order-offer > strong { font-size: 16px; }
  .order-offer > b { font-size: 13px; }
  .offer-choice-dot { right: 11px; }
  .modal-order .modal-body { padding: 21px 17px; }
  .summary-total > strong { font-size: 23px; }
  .login-form-panel { padding-left: 24px; padding-right: 24px; }
  .login-form-panel .login-card > h2 { font-size: 28px; }
}
/* A closed drawer must also be absent from keyboard and screen-reader navigation. */
@media (max-width: 860px) {
  .sidebar { visibility: hidden; }
  .nav-open .sidebar { visibility: visible; }
}
