/* Shared visual language: quiet surfaces, clear hierarchy, one brand accent. */
:root {
  --bg: #f4f5f6;
  --panel: #fff;
  --ink: #1b2924;
  --muted: #66736d;
  --green: #205943;
  --lime: #dceee4;
  --line: #e3e8e5;
  --danger: #a43b36;
  --radius: 22px;
  --surface: #f7f9f8;
  --soft: #eaf3ee;
  --shadow: 0 4px 24px #152d2005;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { font-size: 15px; line-height: 1.6; }
::selection { background: #cfe7db; color: #173c2b; }
h1 { font-size: clamp(32px, 3.3vw, 44px); letter-spacing: -.045em; line-height: 1.12; font-weight: 650; }
h2 { font-size: 21px; letter-spacing: -.025em; font-weight: 650; }
h3 { letter-spacing: -.015em; }
em { color: var(--green); }
code { background: #edf1ef; border-radius: 6px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .13em; font-weight: 600; }
.help { font-size: 13px; }
.heading-dot { color: var(--green); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #65a98b; outline-offset: 3px; }
.button { min-height: 46px; border-radius: 12px; font-size: 13px; padding: 12px 18px; gap: 9px; transition: background .18s, border-color .18s, box-shadow .18s; }
.primary { background: var(--green); box-shadow: 0 2px 3px #153e2010; }
.primary:hover:not(:disabled) { background: #174832; }
.secondary { color: var(--ink); border-color: var(--line); background: var(--panel); }
.secondary:hover { background: var(--surface); border-color: #bacbc1; }
.text-button { font-size: 13px; padding-block: 8px; }
.icon-button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 12px; }
.icon-button:hover { background: var(--surface); }
.button-row { gap: 10px; }
.badge { padding: 6px 10px; font-size: 11px; font-weight: 550; letter-spacing: 0; }
.green { background: var(--soft); color: var(--green); }
.gray { background: #f0f2f1; color: #647069; }
.dot { background: #438b68; }
.count { background: var(--soft); color: var(--green); border-radius: 8px; }
.panel, .stat, .machine-card, .product-card { box-shadow: var(--shadow); }
.panel { padding: 28px; }
.stack { gap: 20px; }
label, .stack label { font-size: 13px; font-weight: 550; gap: 9px; }
input, select, textarea { min-height: 46px; padding: 12px 14px; border-color: #dce3df; border-radius: 12px; font-size: 15px; background: #fff; transition: border-color .18s; }
input:hover, select:hover, textarea:hover { border-color: #b8c7be; }
input::placeholder { color: #85918b; }
input[readonly], input:disabled { background: var(--surface); }
input[type=checkbox] { width: 19px; height: 19px; min-height: 19px; border-radius: 5px; }
.check { line-height: 1.5; }
.check small { font-size: 12px; }
.alert { border-radius: 14px; font-size: 14px; background: #fcf6e8; border-color: #ede0be; color: #79602e; }
.alert.success { background: var(--soft); border-color: #d7e8de; color: #285e43; }
.alert.error { background: #fcf0ef; border-color: #eed6d3; }
.note { background: var(--surface); border-radius: 10px; }

/* Workspace */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 12px 18px; border-radius: 10px; background: var(--green); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: #fff; }
.sidebar { width: 252px; padding: 28px 18px 20px; border-color: var(--line); z-index: 5; }
.sidebar .brand { margin: 0 12px 36px; max-width: none; }
.sidebar .brand-logo { width: 182px; }
.sidebar > .eyebrow { margin-left: 14px; font-size: 9px; letter-spacing: .12em; margin-bottom: 16px; }
.sidebar nav { gap: 4px; }
.sidebar nav a { min-height: 44px; padding: 10px 13px; color: #65726b; font-size: 13px; font-weight: 500; border-radius: 12px; gap: 12px; }
.sidebar nav a:hover { color: var(--ink); background: var(--surface); }
.sidebar nav a.selected { color: var(--green); background: var(--soft); font-weight: 650; }
.nav-icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-bottom { padding-top: 18px; gap: 10px; }
.sidebar-bottom > div { flex: 1; }
.sidebar-bottom strong { font-size: 11px; line-height: 1.4; }
.sidebar-bottom small { font-size: 10px; max-width: 145px; margin-top: 3px; }
.avatar { width: 34px; height: 36px; border-radius: 11px; color: var(--green); background: var(--soft); font-size: 13px; }
.nav-toggle { display: none; }
.admin-body { margin-left: 252px; }
.topbar { height: 76px; padding-inline: 40px; font-size: 12px; background: var(--bg); border-bottom-color: var(--line); }
.topbar > a { color: var(--muted); }
.workspace { padding: 38px 40px 32px; max-width: 1560px; }
.page-heading { margin-bottom: 28px; gap: 20px; }
.page-heading .eyebrow { font-size: 10px; margin-bottom: 12px; }
.page-heading p { font-size: 13px; }
.admin-footer { max-width: 1560px; font-size: 11px; color: #79877f; padding-inline: 40px; }
.section-header h2 { font-size: 19px; }
.search { border-radius: 12px; min-height: 44px; }
.search input { min-height: 42px; font-size: 13px; }
.search .text-button { font-size: 12px; }
.stat { padding: 24px; border-radius: 20px; }
.stat > span { font-size: 13px; color: var(--muted); }
.stat > strong { font-variant-numeric: tabular-nums; font-size: 36px; letter-spacing: -.045em; }
.stat small { color: var(--muted); font-size: 11px; }
.machine-card { padding: 24px 24px 0; border-radius: 20px; transition: border-color .18s, box-shadow .18s; }
.machine-card:hover { border-color: #c3d2c9; box-shadow: 0 8px 26px #152d2008; }
.model-icon { background: var(--soft); color: var(--green); border-radius: 12px; }
.card-title { font-size: 20px; letter-spacing: -.025em; }
.location { font-size: 13px; min-height: 38px; }
.card-meta { font-size: 11px; color: var(--muted); }
.card-actions, .card-actions .text-button { font-size: 12px; }
.mini-lockers span { background: var(--surface); border-color: var(--line); color: #85928a; border-radius: 7px; font-size: 9px; }
.mini-lockers .filled { background: var(--soft); border-color: #d3e4da; color: #4c8063; }
th { padding: 10px 14px 14px; font-size: 11px; font-weight: 550; }
td { padding: 17px 14px; font-size: 13px; }
tbody tr:hover { background: var(--surface); }
.panel:has(> table) { overflow-x: auto; }
.back-link { font-size: 13px; color: var(--muted); }
.slot-edit { border-radius: 16px; padding: 20px; background: #fcfdfc; }
.slot-edit legend { color: var(--green); font-size: 13px; }
.slot-description .compact { font-size: 12px; }
.tip-card { background: var(--soft); border: 1px solid #dce9e1; border-radius: 20px; }
.tip-card p { color: var(--muted); font-size: 13px; }
.qr-placeholder, .model-photo { background: var(--surface); border-radius: 16px; }
.copy-field input { font-size: 12px; }
.qr-panel .button { min-height: 44px; }
.settings-list > div { font-size: 14px; }
.reset-row > strong { font-size: 13px; }

/* Income and overview */
.dashboard-period form { padding: 4px; border-radius: 13px; background: #e9eeeb; gap: 3px; }
.dashboard-period form > span { padding-left: 12px; font-size: 12px; }
.period-button { min-height: 38px; border-radius: 10px; font-size: 12px; padding: 8px 14px; }
.period-button:hover { background: #f7f9f8; }
.period-button.is-active { background: #fff; color: var(--ink); border-color: #dde4df; box-shadow: 0 2px 4px #152d2008; font-weight: 600; }
.dashboard-kpis { gap: 16px; }
.dashboard-kpis .stat { padding: 24px; }
.dashboard-kpis .stat > strong { margin-block: 16px 10px; font-size: clamp(23px, 2.25vw, 36px); }
.dashboard-kpis .stat > small { font-size: 11px; line-height: 1.5; }
.dashboard-kpis .dashboard-income { background: #205943; border-color: #205943; }
.dashboard-kpis .dashboard-income > span, .dashboard-kpis .dashboard-income > small { color: #d2e8db; }
.chart-grid-line { stroke: #edf0ee; }
.chart-baseline { stroke: #b7c9be; }
.chart-area { fill: #e8f3ec; }
.chart-line { stroke-width: 2.8; }
.dashboard-footnote, .dashboard-chart-dates, .dashboard-chart-scale { font-size: 11px; }
.dashboard-chart-empty { background: var(--surface); border-radius: 16px; }
.dashboard-chart-empty p { font-size: 13px; }
.dashboard-empty-mark, .dashboard-machine-symbol { background: var(--soft); color: var(--green); border-radius: 12px; }
.dashboard-machine-symbol { width: 42px; height: 44px; }
.dashboard-fleet-metrics > div { padding-block: 12px; }
.dashboard-fleet-metrics dt { font-size: 13px; }
.dashboard-machine-row, .dashboard-order-row { padding-block: 17px; }
.dashboard-machine-row strong, .dashboard-order-row strong { font-size: 13px; }
.dashboard-machine-row small, .dashboard-order-row small { font-size: 11px; }
.dashboard-machine-row:hover, .dashboard-order-row:hover { color: var(--green); }
.dashboard-empty h3 { font-size: 17px; }

/* Public pages and catalogue */
.public-nav { padding-block: 28px; }
.public-nav .brand-logo { width: 215px; height: auto; }
.public-nav > a:last-child { font-size: 13px; }
.public-content { padding-top: 24px; }
.public-footer { color: var(--muted); font-size: 12px; }
.login-grid { gap: 80px; max-width: 1000px; margin-top: 36px; }
.login-intro h1 { font-size: clamp(46px, 5vw, 68px); letter-spacing: -.055em; line-height: 1.04; }
.login-intro > p { font-size: 15px; max-width: 350px; }
.login-panel { padding: 36px; border-radius: 26px; }
.login-panel h2 { font-size: 28px; }
.login-panel > .muted { font-size: 14px; }
.login-panel > .help { font-size: 12px; }
.locker-art { transform: none; border-radius: 22px; gap: 7px; padding: 12px; max-width: 240px; background: #e4eee8; border: 1px solid #d8e4dc; }
.locker-art > span { height: 62px; border-color: #cfdfd3; background: #f8fbf9; border-radius: 10px; }
.locker-art small { color: #71867a; font-size: 9px; }
.locker-art > span::after { content: ''; width: 3px; height: 12px; border-radius: 2px; background: #9ab6a3; position: absolute; right: 8px; top: 25px; }
.home-hero { margin-block: 75px 60px; }
.home-hero h1 { letter-spacing: -.055em; }
.home-hero > p { line-height: 1.7; }
.home-steps { font-size: 13px; gap: 40px; }
.home-steps b { color: var(--green); }
.catalogue-heading h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.045em; }
.catalogue-heading p { font-size: 14px; }
.install-card { border-radius: 24px; background: var(--soft); border-color: #dce9e1; gap: 26px; margin-bottom: 32px; }
.install-card .app-mark { width: 80px; height: 80px; }
.install-card h2 { font-size: 27px; letter-spacing: -.035em; }
.install-card p { font-size: 14px; color: var(--muted); }
.install-card .help { font-size: 12px; }
.install-card .button { font-size: 13px; }
.product-card { border-radius: 22px; }
.product-art, .product-card:nth-child(n) .product-art { background: #f2f5f3; border-radius: 15px; margin: 10px; height: 216px; }
.slot-tag { font-size: 11px; background: #fffffff0; border-color: #e7ede8; color: #536c5e; border-radius: 7px; padding: 5px 9px; backdrop-filter: blur(8px); }
.product-info { padding: 14px 22px 24px; }
.product-info h3 { font-size: 20px; letter-spacing: -.025em; }
.product-info > p { font-size: 14px; min-height: 44px; }
.product-bottom > strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.product-buy { font-size: 14px; }
.product-photo-empty { font-size: 14px; }
.catalogue-note { font-size: 13px; color: var(--muted); }
.machine-code { font-size: 11px; color: var(--muted); }
.purchase-dialog { padding: 30px; border-radius: 24px; box-shadow: 0 24px 100px #142f2630; }
.purchase-dialog::backdrop { background: #142d225c; backdrop-filter: blur(8px); }
.purchase-status { background: var(--soft); border-radius: 13px; font-size: 14px; }
.photo-upload { border-radius: 16px; border-color: #c8d7ce; background: var(--surface); padding: 20px; }
.photo-upload:hover { background: #eff5f1; border-color: #82a18f; }
.photo-upload:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #dceee4; }
.photo-upload-preview { border-radius: 12px; border-color: var(--line); }
.photo-upload-title { font-size: 14px; }
.photo-upload-formats, .photo-upload-input { font-size: 12px; }
.photo-upload-input { border-radius: 8px; min-height: 38px; }
.photo-upload-input::file-selector-button { border-color: #d4e0d8; border-radius: 9px; padding: 10px 13px; }
.photo-upload-input:hover::file-selector-button { background: var(--soft); border-color: #95b5a2; }
.photo-upload-note, .photo-upload-empty { color: var(--muted); font-size: 11px; }
.photo-upload-status { background: var(--soft); color: var(--green); font-size: 12px; border-radius: 10px; }
.photo-remove { font-size: 12px; padding: 10px 12px; border-radius: 10px; }

@media (min-width: 901px) {
  .sidebar nav { gap: 4px; scrollbar-width: thin; scrollbar-color: #d6e1d9 transparent; }
}
@media (max-width: 1180px) {
  .sidebar { width: 230px; padding-inline: 14px; }
  .sidebar .brand { margin-inline: 10px; }
  .admin-body { margin-left: 230px; }
  .workspace { padding: 32px 26px; }
  .topbar, .admin-footer { padding-inline: 26px; }
  .dashboard-kpis .stat { padding: 20px; }
  .login-grid { gap: 44px; }
}
@media (max-width: 900px) {
  .sidebar { position: relative; width: auto; padding: 16px 24px; flex-wrap: wrap; gap: 12px; }
  .sidebar .brand { margin: 0; }
  .sidebar .brand-logo { width: 168px; }
  .sidebar > .eyebrow { display: none; }
  .sidebar-bottom { margin: 0 0 0 auto; padding: 0; border: 0; }
  .sidebar-bottom > div, .sidebar-bottom .avatar { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); padding: 10px 13px; min-height: 44px; font-size: 13px; border-radius: 12px; color: var(--ink); }
  .sidebar nav { order: 4; flex: 1 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding-top: 10px; }
  .sidebar nav a { font-size: 13px; white-space: normal; }
  .nav-ready .sidebar nav { display: none; }
  .nav-ready .sidebar[data-nav-open] nav { display: grid; }
  .nav-toggle[aria-expanded=true] { background: var(--soft); color: var(--green); }
  .admin-body { margin: 0; }
  .topbar { height: 54px; font-size: 11px; }
  .workspace { padding: 28px 24px; }
  .page-heading h1 { font-size: 36px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .product-art, .product-card:nth-child(n) .product-art { height: 180px; }
  .product-bottom { flex-wrap: wrap; flex-direction: row; align-items: center; }
  .login-panel { padding: 28px; }
}
@media (max-width: 700px) {
  .sidebar { padding: 14px 18px; gap: 8px; }
  .sidebar-bottom { margin-left: 0; }
  .topbar { padding-inline: 18px; }
  .workspace { padding: 26px 18px; }
  .page-heading { gap: 18px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading > .button-row { width: 100%; }
  .page-heading > .button-row .button { flex: 1; }
  .stats-grid { gap: 12px; }
  .stats-grid:not(.dashboard-kpis):not(.income-grid) { grid-template-columns: 1fr; }
  .stat { padding: 20px; }
  .stat > strong { font-size: 32px; }
  .stat > span { font-size: 13px; }
  .stat small { font-size: 11px; }
  .dashboard-kpis .stat { padding: 18px; }
  .dashboard-kpis .stat > strong { font-size: 25px; }
  .dashboard-kpis .stat > small { font-size: 11px; }
  .dashboard-period { gap: 12px; }
  .dashboard-period form { flex-shrink: 0; }
  .panel, .detail-grid > .panel { padding: 22px; border-radius: 20px; }
  .dashboard-chart-plot { grid-template-columns: 54px minmax(0, 1fr); gap: 8px; }
  .dashboard-chart-dates { margin-left: 62px; }
  .detail-grid { grid-template-columns: 1fr; }
  .machine-grid { grid-template-columns: 1fr; }
  .machine-card { padding: 22px 22px 0; }
  .card-title { font-size: 20px; }
  .card-meta { flex-direction: row; font-size: 11px; }
  input, select, textarea, .search input, .copy-field input { font-size: 16px; }
  .slot-fields, .form-row { grid-template-columns: 1fr; }
  .slot-edit { padding: 16px; }
  .slot-description .compact { white-space: normal; }
  .admin-footer { padding-inline: 18px; font-size: 10px; }
  .public-nav { padding: 22px; gap: 15px; }
  .public-nav .brand-logo { width: 180px; height: auto; }
  .public-nav > a:last-child { font-size: 12px; }
  .public-content { padding-inline: 18px; }
  .login-grid { margin-top: 12px; gap: 26px; }
  .login-intro h1 { font-size: 48px; }
  .login-intro > p { font-size: 14px; }
  .login-panel { padding: 26px; }
  .home-hero { margin-block: 40px; }
  .home-steps { gap: 24px; font-size: 12px; }
  .install-card { padding: 24px; gap: 18px; }
  .install-card .app-mark { width: 56px; height: 56px; }
  .install-card h2 { font-size: 26px; }
  .install-card .button-row { align-items: stretch; }
  .product-grid { gap: 12px; }
  .product-art, .product-card:nth-child(n) .product-art { height: 150px; margin: 8px; border-radius: 12px; }
  .product-info { padding: 10px 14px 18px; }
  .product-info h3 { font-size: 17px; }
  .product-info > p { font-size: 13px; }
  .product-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-bottom > strong { font-size: 19px; }
  .product-bottom .badge, .slot-tag { font-size: 10px; }
  .product-buy { padding-inline: 8px; font-size: 13px; }
  .purchase-dialog { padding: 24px; }
  .photo-upload { padding: 16px; gap: 14px; }
  .photo-upload-input::file-selector-button { padding: 9px 10px; }
}
@media (max-width: 390px) {
  .sidebar .brand-logo { width: 144px; }
  .sidebar nav { grid-template-columns: 1fr; }
  .dashboard-kpis { grid-template-columns: 1fr; }
  .public-nav .brand-logo { width: 160px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-art, .product-card:nth-child(n) .product-art { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .skip-link, .nav-toggle { display: none !important; }
  .admin-body { margin: 0; }
  body { background: #fff; }
  .workspace, .public-content { padding: 0; }
  .panel, .stat, .machine-card, .product-card { box-shadow: none; }
}

/* Fleet health, service mode and user profiles. */
.warning { background: #fbf2df; color: #805b23; }
.machine-needs-attention { border-color: #e6d8b9; }
.machine-issues { margin: 16px 0; }
.machine-issues ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.machine-issues li { position: relative; padding-left: 14px; font-size: 12px; line-height: 1.55; color: #80602f; overflow-wrap: anywhere; }
.machine-issues li::before { content: ''; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: #bd9450; }
.machine-ready { font-size: 12px; color: var(--green); margin-block: 16px; }
.fleet-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.fleet-filters a { padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 13px; }
.fleet-filters a.is-active { color: var(--green); background: var(--soft); border-color: #c5dbcd; font-weight: 600; }
.problem-machine-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.problem-machine-grid > article { padding: 20px; border: 1px solid #eadfc9; background: #fffdf9; border-radius: 16px; min-width: 0; }
.problem-machine-grid .card-title { font-size: 17px; }
.fleet-attention > .help { margin: 0; }
.maintenance-form { display: flex; align-items: end; gap: 16px; margin-top: 22px; }
.maintenance-form label { flex: 1; }
.maintenance-form .button { flex-shrink: 0; }
.maintenance-note { background: var(--surface); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.sales-history-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin: 22px 0 16px; }
.sales-history-filters > label:not(.check) { flex: 1; min-width: 160px; }
.sales-history-filters .check { min-height: 46px; }
.compact-stats { gap: 12px; margin-block: 24px; }
.compact-stats .stat { background: var(--surface); padding: 18px; box-shadow: none; }
.compact-stats .stat strong { display: block; font-size: clamp(20px,2.2vw,30px); }
.archive-users summary, .user-edit summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.archive-users summary .count { margin-left: 12px; }
.archive-users[open] summary, .user-edit[open] summary { margin-bottom: 24px; }
.user-card-grid { display: grid; grid-template-columns: minmax(280px,1fr) minmax(0,1.65fr); gap: 24px; align-items: start; }
.user-card-grid > section { min-width: 0; }
.user-profile-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.user-profile-heading h2 { overflow-wrap: anywhere; margin-bottom: 10px; }
.profile-avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--soft); color: var(--green); font-size: 25px; font-weight: 600; flex-shrink: 0; }
.user-profile .settings-list > div { flex-direction: column; gap: 5px; }
.user-machine-list > article { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.user-machine-list .card-title { font-size: 17px; }
.user-machine-list .section-header { margin-bottom: 0; }
.user-machine-list .section-header > div { min-width: 0; }
.user-machine-list .text-button { flex-shrink: 0; }
.permission-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.permission-chips > span { border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; font-size: 12px; }
.user-invitation-actions { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
@media (max-width: 1180px) { .problem-machine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .user-card-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 700px) { .problem-machine-grid { grid-template-columns: 1fr; } .maintenance-form { align-items: stretch; flex-direction: column; } .maintenance-form label { width: 100%; } .sales-history-filters { flex-direction: column; align-items: stretch; } .sales-history-filters > label:not(.check) { width: 100%; } .fleet-attention .section-header { align-items: flex-start; flex-wrap: wrap; } }
@media (max-width: 700px) {
  .sales-history-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
  .sales-history-filters > label:not(.check) { min-width: 0; }
  .sales-history-filters .check { grid-column: 1 / -1; }
  .sales-history-filters > .text-button { min-height: 46px; }
  .compact-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .compact-stats .stat strong { font-size: 22px; }
}
@media (max-width: 390px) { .sales-history-filters, .compact-stats { grid-template-columns: 1fr; } }
/* Purchase progress and buyer support */
.purchase-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:20px 0;font-size:12px}
.purchase-progress li{display:flex;flex-direction:column;gap:8px;padding:12px 8px;border-radius:12px;background:var(--surface,#fff);color:#65716b;border:1px solid #e1e8e4}
.purchase-progress li span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#edf1ef;font-weight:700}
.purchase-progress .current{color:#184c37;border-color:#35745a;background:#edf6f0}.purchase-progress .current span,.purchase-progress .done span{background:#245e46;color:white}
.purchase-progress .done{color:#245e46}.purchase-help{border-top:1px solid #dfe6e1;margin-top:24px;padding-top:20px}.support-message{white-space:pre-wrap;overflow-wrap:anywhere}.purchase-history-label{max-width:480px;margin-bottom:20px}
@media(max-width:480px){.purchase-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Current operational work, separate from historical financial periods. */
.dashboard-tasks { margin-bottom: 24px; }
.dashboard-tasks > .help { display: none; }
.dashboard-tasks .section-header { align-items: center; margin-bottom: 18px; }
.dashboard-tasks .section-header h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.dashboard-tasks .section-header .eyebrow { margin-bottom: 8px; }
.dashboard-task-summary { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; white-space: nowrap; }
.dashboard-task-filters { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f4f7f5; }
.task-filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 600; }
.task-filter span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #e6ece8; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.task-filter.is-active { color: var(--green); border-color: #dce6df; background: #fff; box-shadow: 0 1px 3px #183e250a; }
.task-filter.is-active span { background: var(--soft); }
.task-filter:hover { color: var(--green); background: #fff; }
.dashboard-task-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.dashboard-task { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.dashboard-task:hover { border-color: #c7d8cd; background: #fbfdfc; }
.dashboard-task:has(.dashboard-task-mark.is-urgent) { border-color: #ead7ba; background: #fffcf7; }
.dashboard-task-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--green); background: var(--soft); font-size: 16px; font-weight: 600; }
.dashboard-task-mark.is-urgent { color: #8c5118; background: #fff0dc; }
.dashboard-task-meta { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.dashboard-task-content h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.dashboard-task-content .count { min-width: 20px; min-height: 20px; margin-left: 4px; font-size: 10px; }
.dashboard-task-content p { max-width: 740px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dashboard-task-details { margin-top: 4px; }
.dashboard-task-details summary { cursor: pointer; width: fit-content; color: var(--muted); font-size: 12px; }
.dashboard-task-details p { margin-top: 7px; }
.dashboard-task-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; max-width: 210px; margin: 0; padding: 8px 12px; border: 1px solid #d8e3dc; border-radius: 9px; background: #f7faf8; color: var(--green); font-size: 12px; font-weight: 600; line-height: 1.35; white-space: normal; text-align: center; }
.dashboard-task-action:hover { border-color: #b8d2c2; background: var(--soft); }
.dashboard-task-more { padding-top: 12px; }
.dashboard-task-more summary, .fleet-attention > summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 600; }
.dashboard-task-more summary { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; }
.dashboard-task-more[open] summary { margin-bottom: 12px; }
.dashboard-task-empty { display: flex; align-items: center; gap: 16px; padding: 28px 0 8px; }
.dashboard-task-empty > span { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--soft); color: var(--green); }
.dashboard-task-empty h3 { font-size: 15px; margin: 0 0 6px; }
.dashboard-task-empty p { margin: 0; }
.fleet-attention-body { padding-top: 24px; }
#connection, #tasks, #products, #operations { scroll-margin-top: 24px; }
@media(max-width: 760px) {
  .dashboard-tasks .section-header { flex-wrap: wrap; gap: 10px; }
  .dashboard-task-filters { display: flex; width: 100%; }
  .task-filter { flex: 1 1 auto; }
  .dashboard-task { grid-template-columns: 32px minmax(0,1fr); gap: 12px; align-items: start; padding: 14px; }
  .dashboard-task-mark { width: 32px; height: 32px; }
  .dashboard-task .dashboard-task-action { grid-column: 2; justify-self: start; max-width: 100%; margin-top: 2px; }
}
@media(prefers-reduced-motion:reduce) { .dashboard-task { transition: none; } }
.sidebar nav a .notification-count { display: inline-grid; place-items: center; flex-shrink: 0; min-width: 20px; height: 20px; padding-inline: 5px; background: var(--green); color: white; font-size: 10px; line-height: 1; border-radius: 7px; margin-left: auto; }
.notification-settings > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.notification-settings form { margin-top: 20px; max-width: 640px; }
.notification-item { padding: 16px 0 16px 14px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); }
.notification-item.is-unread { border-left-color: var(--green); }
.notification-item:last-of-type { border-bottom: 0; }
.notification-item h2 { font-size: 14px; margin: 8px 0; }
.notification-item p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.notification-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 10px; }
.notification-list > .help { margin: 14px 0 0; }
