/* Approved silver workspace: compact, readable and action-first. */
:root {
  color-scheme: light;
  --bg: #e9edf2; --panel: #fff; --panel-soft: #f4f6f9;
  --text: #283344; --ink: #152134; --muted: #667286;
  --line: #d8dfe9; --line-strong: #bac6d6;
  --brand: #1260ec; --brand-dark: #064acb; --primary: #1260ec;
  --ok: #06975f; --success: #06975f; --danger: #d94051;
}
* { letter-spacing: 0 !important; }
body { background: var(--bg); color: var(--text); font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 13px; }
.layout { grid-template-columns: 184px minmax(0,1fr); }
.sidebar { padding: 12px 10px; background: #e5eaf0; border-right: 1px solid #d0d9e5; }
.brand { position: static; display: flex; justify-content: center; align-items: center; padding: 0 4px 12px; margin: 0 0 12px; min-height: 96px; border-bottom: 1px solid #cfd8e4; }
.brand-logo { position: static; width: 142px; height: 92px; max-width: 100%; object-fit: contain; border: 0; border-radius: 0; filter: none; mix-blend-mode: multiply; }
.nav { gap: 8px; scrollbar-color: #becada transparent; }
.nav-group-label { color: #768198; font-size: 11px; min-height: 22px; padding: 6px 12px 3px; }
.nav .nav-item { color: #3e4e65; min-height: 36px; padding: 7px 12px; border: 0; border-radius: 4px; gap: 11px; font-size: 13px; }
.nav .nav-item svg { width: 18px; height: 18px; color: #596983; }
.nav .nav-item:hover { background: #dce5f1; color: #124eac; }
.nav .nav-item.active { color: #0d59dc; background: #d4e3fc; box-shadow: inset 3px 0 #1260ec; font-weight: 600; }
.nav .nav-item.active svg { color: #1260ec; }
.sidebar-bottom { border-color: #cfd8e4; color: #68778c; font-size: 11px; }
.environment-dot { background: #138663; }
.main { background: var(--bg); }
.topbar { background: #f6f8fb; border-bottom: 1px solid #d3dce7; min-height: 54px; height: 54px; padding: 0 24px; }
.topbar h2 { color: #263449; font-weight: 600; font-size: 13px; }
.topbar-heading { min-width: 0; }
.breadcrumb-root,.breadcrumb-divider { color: #7b879b; }
.userbox { gap: 9px; color: #48566d; font-size: 12px; }
.user-avatar { background: #dae3f1; color: #3d587e; border: 0; width: 28px; height: 28px; }
.content { padding: 24px 24px 32px; max-width: none; }
.workspace-page-heading,.dashboard-titlebar { margin-bottom: 18px; align-items: center; }
.workspace-page-heading h1,.dashboard-titlebar h1 { font-size: 25px; font-weight: 650; color: #162237; line-height: 1.35; }
.workspace-page-heading > span { display: none; }
.panel,.visual-panel,.quote-surface { background: #fff; border: 0; border-radius: 0; box-shadow: none; padding: 18px 20px; }
.panel h3,.visual-head h3,.section-titlebar h3,.table-titlebar h3 { color: #29394d; font-weight: 600; font-size: 15px; }
.btn { min-height: 34px; padding: 7px 12px; border-radius: 4px; border-color: #cbd5e4; background: #fff; color: #465974; font-size: 12px; line-height: 1.3; }
.btn:hover { color: #1158cc; background: #f1f6ff; border-color: #9db9e6; }
.btn.primary,.dashboard-toolbar .btn.primary,.volume .btn.primary,.highPromo .btn.primary { background: #1260ec; border-color: #1260ec; color: #fff; box-shadow: 0 1px 2px #193e7315; }
.btn.primary:hover { background: #0751d7; }
.btn.icon-only { width: 34px; height: 34px; min-height: 34px; padding: 0; }
.btn svg { width: 16px; height: 16px; }
.btn.danger { color: #d23d4d; }
.input,select,textarea,.field input:not([type=checkbox]):not([type=radio]) { min-height: 35px; border: 1px solid #cbd5e4; border-radius: 4px; padding: 7px 10px; background: #fff; color: #2f4059; font-size: 13px; }
.field input[type=hidden] { display: none; }
input::placeholder,textarea::placeholder { color: #8d98aa; }
.input:focus,select:focus,textarea:focus { border-color: #6298ed; box-shadow: 0 0 0 2px #e3eeff; }
.field > label,.filter-field > span { font-weight: 500; color: #586980; font-size: 12px; }
.field small { font-size: 11px; line-height: 1.5; }
.field { min-width: 0; }
textarea { min-height: 64px; resize: vertical; }
.grid { gap: 12px; }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.content > .toolbar,.filter-workspace { background: #fff; border: 0; padding: 14px 16px !important; }
.filter-periods { margin: 0 0 12px; gap: 6px; }
.period-choice { min-height: 28px; padding: 4px 11px; background: #f0f3f7; color: #53647d; }
.period-choice.active { background: #eaf1ff; color: #1260ec; border-color: #c6d9fd; }
.filter-workspace .filter-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.filter-workspace .filter-actions { border-color: #e5eaf2; padding-top: 10px; }
.filter-result-bar { margin: 10px 0; gap: 12px; }
.filter-pending { color: #a76a13; }
.filter-chip { background: #edf4ff; border-color: #ccdffa; color: #3464a5; padding: 3px 7px; }
.ts-wrapper.single .ts-control,.ts-control { min-height: 35px; padding: 7px 31px 6px 9px; border-color: #cbd5e4; border-radius: 4px; }
.ts-wrapper.single::after { top: 12px; }
.ts-dropdown { z-index: 100; }
.table-wrap { border: 1px solid #e0e6ef; border-radius: 4px; }
th { background: #f1f4f9; color: #62738d; border-color: #e3e9f1; height: 37px; padding: 8px; }
td { padding: 9px 8px; color: #40516a; border-color: #e8edf4; }
tbody tr:nth-child(even) td { background: #fafbfd; }
tbody tr:hover td { background: #eff5ff; }
.orders-data-grid.tabulator { border-radius: 4px; }
.orders-data-grid .tabulator-header,.orders-data-grid .tabulator-header .tabulator-col { background: #f2f5fa; color: #637592; }
.orders-data-grid .tabulator-header .tabulator-col .tabulator-col-content { padding: 11px 6px; }
.orders-data-grid .tabulator-cell,.online-orders-grid .tabulator-cell { padding: 5px 6px; }
.orders-data-grid .tabulator-row { color: #435573; border-bottom: 1px solid #e8edf5; }
.orders-data-grid .tabulator-row.tabulator-row-even { background: #fafbfd; }
.orders-data-grid .tabulator-row:hover { background: #edf4ff; }
.grid-cell-content,.size-description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-number-link { color: #415a81; font-size: 11px; font-variant-numeric: tabular-nums; }
.grid-cell-content small { font-size: 10px; }
.inline-order-actions { gap: 3px; }
.inline-order-actions .btn { border: 0; background: transparent; padding: 0 5px; min-height: 29px; height: 29px; font-size: 12px; }
.inline-order-actions .aftersale-order,.inline-order-actions .compensation-order { background: transparent; color: #1260ec; }
.inline-order-actions .btn.icon-only { width: 27px; min-width: 27px; }
.inline-order-actions .btn:hover { background: #dfeaff; }
.inline-order-actions .delete-order { margin-left: 0; }
.cell-positive,.cell-positive strong,.good-text { color: #07965e !important; }
.cell-negative,.cell-negative strong { color: #d73a4f !important; }
.pagination { border-top: 1px solid #e4eaf2; padding-top: 12px; margin-top: 8px; }
.grid-tools { gap: 6px; }
.status-pill { border: 0; padding: 2px 5px; background: #edf3fc; border-radius: 3px; font-size: 11px; }
.cards .metric,.dashboard-cards .metric { background: #fff; border: 0; border-right: 1px solid #e0e7f0; border-radius: 0; min-height: 78px; padding: 14px 18px; box-shadow: none; }
.cards { background: #fff; gap: 0; }
.cards .metric:last-child { border-right: 0; }
.cards .metric strong { color: #20324c; font-size: 24px; font-weight: 600; }
.cards .metric.good strong { color: #07965e; }
.cards .metric.warn strong { color: #d73a4f; }
.dashboard-toolbar { margin-bottom: 16px; gap: 10px; }
.dashboard-hero { padding: 22px 24px; background: #fff; border: 0; border-bottom: 1px solid #d9e2ef; }
.dashboard-hero > div { min-height: 138px; padding: 0 24px; }
.hero-profit > strong { color: #07965e; font-size: 36px; margin: 12px 0; }
.hero-profit.warn > strong { color: #d73a4f; }
.hero-revenue > strong,.hero-volume > strong { color: #213853; font-size: 33px; margin: 12px 0; }
.hero-profit em { color: #76859a; font-size: 11px; max-width: none; }
.workspace-tabs { border-color: #cbd7e8; }
.workspace-tab.active { border-color: #1260ec; color: #1260ec; }
.dashboard-grid { gap: 18px; margin-top: 18px; }
.dashboard-grid .visual-panel { padding: 20px; }
.visual-head { margin-bottom: 16px; }
.cost-ring > div { background: #fff; }
.staff-card b { color: #128867; }
.dashboard-utilities > details[open] { background: #fff; }
.entry-layout { grid-template-columns: minmax(0,1fr) 276px; gap: 20px; }
body[data-view=orderForm] #orderForm { padding: 0; background: transparent; border: 0; }
.entry-main,.entry-aside { background: #fff; padding: 0 18px; min-width: 0; }
.entry-aside { position: sticky; top: 70px; }
.entry-section { border-top: 0; border-bottom: 1px solid #e0e6ef; padding: 17px 0; }
.entry-section > h3 { margin: 0 0 16px; border-left: 3px solid #1260ec; padding-left: 9px; font-size: 15px; }
#entry-basic .grid.two { margin-top: 12px; }
.entry-main > .entry-section:last-child,.entry-aside > .entry-section:last-child { border-bottom: 0; }
.entry-aside .grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 0 !important; }
.entry-jumpbar { display: none; }
#entry-basic .grid.two:has(.shop-picker) { grid-template-columns: minmax(0,1fr) minmax(180px,220px); }
#entry-basic .shop-picker { display: flex; flex-wrap: wrap; gap: 10px; border: 0; background: transparent; padding: 4px; }
#entry-basic .shop-chip { border-radius: 5px; min-width: 82px; min-height: 44px; max-width: 100%; padding: 8px 16px; font-size: 14px; font-weight: 700; background: var(--shop-color,#eceff3); color: #21384d; border: 2px solid transparent; overflow-wrap: anywhere; }
#entry-basic .shop-color-0 { --shop-color: #dff6ed; }
#entry-basic .shop-color-1 { --shop-color: #e5edff; }
#entry-basic .shop-color-2 { --shop-color: #fff0cf; }
#entry-basic .shop-color-3 { --shop-color: #f0e8ff; }
#entry-basic .shop-color-4 { --shop-color: #ffe5e5; }
#entry-basic .shop-color-5 { --shop-color: #dcf5ff; }
#entry-basic .shop-color-6 { --shop-color: #eceff3; }
#entry-basic .shop-color-7 { --shop-color: #e9f8d8; }
#entry-basic .shop-chip:hover { border-color: #7b91aa; transform: none; }
#entry-basic .shop-chip.active { border-color: #155bc3; color: #163f7c; box-shadow: 0 0 0 2px #155bc32b; }
#entry-basic .shop-chip:focus-visible { outline: 2px solid #155bc3; outline-offset: 3px; }
#entry-basic .field:has(.shop-picker) > .shop-selected { background: #eaf2ff; border-color: #b7cff1; color: #284f87; }
#entry-basic .field:has(.shop-picker) > .shop-selected.empty { background: #fff4db; border-color: #efcc81; color: #8a4b08; }
@media (max-width: 1100px) {
  #entry-basic .grid.two:has(.shop-picker) { grid-template-columns: minmax(0,1fr); }
}
.shop-selected { background: #f7f9fc; color: #59718f; border: 1px solid #dce4ee; padding: 8px; border-radius: 4px; margin-bottom: 6px; font-size: 12px; }
.item-row { display: grid; grid-template-columns: minmax(52px,.7fr) minmax(52px,.7fr) minmax(46px,.55fr) minmax(98px,1.4fr) minmax(55px,.65fr) minmax(89px,1.1fr) minmax(68px,.8fr) 30px; gap: 7px; padding: 10px 0; border: 0; border-bottom: 1px solid #e3e9f2; background: transparent; border-radius: 0; align-items: end; }
.item-row.staff-item-row { grid-template-columns: minmax(55px,1fr) minmax(55px,1fr) minmax(46px,.7fr) minmax(100px,1.7fr) minmax(58px,.8fr) minmax(95px,1.4fr) 30px; }
.item-row .input,.item-row select,.item-row .field input:not([type=hidden]) { min-height: 33px; padding: 6px; font-size: 12px; }
.item-row .field > label { font-size: 11px; margin-bottom: 5px; }
.item-row .remove-item,.remove-offline-item { width: 29px; min-width: 29px; padding: 0; }
.material-picker { min-width: 0; }
#entry-sizes > div { margin-top: 0 !important; }
#addItem { margin-top: 10px; }
.entry-aftersale-details > summary { color: #4d607a; padding: 15px 0; cursor: pointer; font-weight: 600; }
.entry-aftersale-details .entry-section { padding-top: 0; }
.entry-aftersale-details h3 { display: none; }
#entry-preview .summary-line { display: grid; gap: 12px; font-size: 12px; }
#entry-preview .summary-line > span { display: block; }
.entry-savebar { position: sticky; bottom: 0; z-index: 15; margin: 16px -1px 0 !important; padding: 13px 20px; border: 1px solid #dbe3ef; background: #f9fbfd; box-shadow: 0 -4px 12px #344c7610; }
.entry-save-state { color: #8a96a8; font-size: 12px; }
.entry-savebar .btn.primary { min-width: 126px; }
.offline-mode-bar { border: 0; background: transparent; padding: 0 0 14px; }
.offline-mode-bar > div:first-child > span,.offline-detail-section .section-titlebar span,#offlineOrderForm > .toolbar > .muted { display: none; }
.offline-detail-section { background: transparent; padding: 17px 0; border: 0; }
.offline-detail-row { background: #f7f9fc; border: 1px solid #dde5f0; border-radius: 4px; padding: 10px; margin-bottom: 10px; }
.offline-detail-row .grid { gap: 8px; }
.offline-detail-row .input,.offline-detail-row select { min-height: 33px; }
.segmented-control { padding: 3px; background: #edf1f7; border: 1px solid #d5deeb; border-radius: 4px; }
.segmented-control button.active { color: #1260ec; background: #fff; }
.quote-workspace { grid-template-columns: minmax(380px,.85fr) minmax(0,1.6fr); gap: 18px; align-items: start; }
.quote-editor { padding: 17px 20px; background: #fff; border: 0; }
.quote-editor .quote-field-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quote-editor .quote-field-grid > .field:has([name=material]) { grid-column: 1 / -1; }
.quote-size-head { margin-top: 15px; margin-bottom: 0; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.quote-size-head .summary-line { flex-wrap: wrap; gap: 5px 10px; }
.quote-surface-head { margin-bottom: 14px; padding-bottom: 12px; }
.quote-result-wrap { position: sticky; top: 72px; }
.quote-result { border: 0; padding: 0; }
.quote-item-row { grid-template-columns: 20px repeat(3,minmax(0,1fr)) !important; padding: 10px; gap: 8px; border-bottom: 1px solid #e1e7f0; align-items: end; }
.quote-modes { gap: 12px; }
.quote-mode-card,.quote-mode-card.normal,.quote-mode-card.volume,.quote-mode-card.highPromo { padding: 17px 14px; border: 1px solid #d4dfec; border-top: 3px solid #1260ec; background: #fff; border-radius: 5px; box-shadow: none; }
.quote-mode-card.volume { border-top-color: #1d9671; }
.quote-mode-card.highPromo { border-top-color: #bd8632; }
.quote-mode-card.highPromo .quote-mode-title { color: #8d6222; }
.quote-mode-price { color: #15375f; }
.quote-extra { border-top: 1px solid #e1e7f0; margin-top: 10px; padding-top: 9px; color: #6f8099; }
.quote-reference { margin: 0; padding: 16px 20px 14px; background: #eaf2ff; border-top: 3px solid #3978df; border-bottom: 1px solid #c8daf3; }
.quote-reference-head,.quote-logistics-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.quote-reference-head h3,.quote-logistics-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: #283e5a; font-weight: 600; }
.quote-reference-head h3 svg,.quote-logistics-head h3 svg { width: 18px; height: 18px; color: #4d79bc; }
.quote-reference-head > span,.quote-logistics-head > span { font-size: 11px; color: #7b8ba0; }
.quote-reference-head h3 { color: #204d8b; font-size: 18px; font-weight: 700; }
.quote-reference-head h3 svg { width: 21px; height: 21px; color: #2866c6; }
.quote-reference-head > span { color: #5374a1; font-size: 12px; }
.quote-reference .quote-history { border: 0; border-radius: 0; background: transparent; padding: 0; margin: 0; gap: 0; color: #3c506e; }
.quote-history-coverage { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: #5a7193; font-size: 12px; }
.quote-history-coverage > span:first-child { color: #365880; font-size: 13px; }
.quote-history-coverage strong { color: #155cc5; font-size: 20px; margin: 0 3px; }
.quote-history-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 12px 0; border-bottom: 1px solid #cbdcf2; }
.quote-history-stats > div { min-width: 0; padding: 0 14px; border-left: 1px solid #cbdcf2; }
.quote-history-stats > div:first-child { padding-left: 0; border-left: 0; }
.quote-history-stats span { display: block; font-size: 12px; color: #506a90; }
.quote-history-stats strong { display: block; margin-top: 6px; color: #213f65; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.quote-history-stats small { display: block; margin-top: 4px; color: #637c9f; font-size: 11px; font-weight: 400; }
.quote-reference .quote-scenario-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 12px 0; }
.quote-reference .quote-deal-price { grid-template-columns: auto minmax(0,1fr); gap: 5px 12px; padding: 0 18px; min-width: 0; }
.quote-reference .quote-deal-price:first-child { padding-left: 0; border-right: 1px solid #cbdcf2; }
.quote-reference .quote-deal-price:last-child { padding-right: 0; }
.quote-reference .quote-deal-price span { color: #284f87; font-size: 13px; font-weight: 600; }
.quote-reference .quote-deal-price strong { color: #175dc1; font-size: 28px; font-weight: 700; justify-self: start; min-width: 0; overflow-wrap: anywhere; }
.quote-reference .quote-deal-price em { grid-column: 1 / -1; font-size: 12px; line-height: 1.6; color: #58769f; font-weight: 400; }
.quote-reference .quote-history-basis { padding-bottom: 0; font-size: 11px; font-weight: 400; color: #637b9b; line-height: 1.6; }
.quote-reference .quote-history-empty { display: flex; align-items: center; gap: 12px; padding: 18px 0 6px; }
.quote-history-empty > svg { width: 22px; height: 22px; color: #93a6bf; flex: none; }
.quote-history-empty strong { display: block; color: #536c8a; font-size: 13px; font-weight: 500; }
.quote-history-empty span { display: block; color: #8392a6; margin-top: 5px; line-height: 1.6; font-size: 12px; }
.quote-result .quote-logistics { display: block; margin-top: 18px; padding: 16px 18px; background: #f1f5fb; border-top: 2px solid #bdcfe8; border-bottom: 1px solid #d9e3f0; border-radius: 0; }
.quote-logistics .quote-logistics-head { margin-bottom: 17px; }
.quote-logistics .quote-logistics-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1.3fr; gap: 0; }
.quote-logistics .logistics-metric { min-width: 0; padding: 0 14px; border-left: 1px solid #d6e0ef; }
.quote-logistics .logistics-metric:first-child { padding-left: 0; border-left: 0; }
.quote-logistics .logistics-metric:last-child { padding-right: 0; }
.quote-logistics .logistics-label { display: flex; align-items: center; gap: 6px; color: #7085a0; font-size: 11px; }
.logistics-label svg { width: 15px; height: 15px; flex: none; color: #839abb; }
.quote-logistics .logistics-metric > strong { display: block; margin: 9px 0 5px; font-size: 18px; line-height: 1.5; color: #334d6e; font-weight: 600; overflow-wrap: anywhere; }
.quote-logistics .logistics-metric > strong small { font-size: 11px; color: #7c8fa8; font-weight: 400; white-space: nowrap; }
.quote-logistics .logistics-metric > small { display: block; font-size: 10px; line-height: 1.7; color: #7b8fa8; overflow-wrap: anywhere; }
.quote-logistics .logistics-freight > strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; margin-top: 5px; }
.quote-logistics .logistics-carrier { color: #466e9e; font-size: 13px; }
.quote-logistics .logistics-price { color: #225fae; font-size: 24px; font-variant-numeric: tabular-nums; }
.quote-logistics .logistics-metric > .logistics-dimensions { font-size: 16px; }
@media (max-width: 900px) {
  .quote-logistics .quote-logistics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 18px; }
  .quote-logistics .logistics-metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .quote-logistics .logistics-metric:nth-child(even) { padding-right: 0; }
}
@media (max-width: 560px) {
  .quote-reference { padding: 14px; }
  .quote-history-stats { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 14px; }
  .quote-history-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .quote-reference .quote-scenario-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .quote-reference .quote-deal-price { padding: 0; }
  .quote-reference .quote-deal-price:first-child { padding-bottom: 12px; border-right: 0; border-bottom: 1px solid #e2e9f2; }
  .quote-result .quote-logistics { padding: 14px 12px; }
}
.draft-banner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; background: #fff6df; border: 1px solid #edd79f; padding: 10px 14px; margin-bottom: 14px; }
.draft-banner > span { margin-right: auto; color: #90651e; }
.health-lines p { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e2e8f1; padding: 12px 0; }
.modal,.order-preview-drawer { border-radius: 6px; color: #2a3b54; background: #fff; }
.modal-head { border-color: #dce4ef; }
.record-footer { color: #7c8ba0; }
.login-logo { width: 138px; height: 110px; object-fit: contain; border: 0; border-radius: 0; filter: none; mix-blend-mode: multiply; }
@media (max-width: 1440px) {
  .layout { grid-template-columns: 176px minmax(0,1fr); }
  .content { padding: 20px 16px 28px; }
  .topbar { padding: 0 16px; }
  .entry-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 14px; }
  .entry-main,.entry-aside { padding: 0 14px; }
  .panel { padding: 16px; }
  .item-row { gap: 5px; }
}
@media (max-width: 1150px) {
  .quote-workspace { grid-template-columns: minmax(0,1fr); }
  .quote-result-wrap { position: static; }
}
@media (max-width: 1100px) {
  .entry-layout { grid-template-columns: 1fr; }
  .entry-aside { position: static; }
  .entry-aside .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-workspace .filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .quote-field-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-hero > div { padding: 0 16px; }
  .hero-profit > strong,.hero-revenue > strong,.hero-volume > strong { font-size: 29px; }
}
@media (max-width: 850px) {
  .layout { display: block; }
  .sidebar { width: 184px; }
  .content { padding: 16px 12px 24px; }
  .topbar { padding: 0 12px; }
  .breadcrumb-root,.breadcrumb-divider { display: none; }
  .userbox { gap: 5px; }
  .userbox > span:not(.user-avatar) { display: none; }
  .workspace-page-heading h1,.dashboard-titlebar h1 { font-size: 22px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-hero { display: grid; grid-template-columns: 1fr 1fr; padding: 15px; }
  .dashboard-hero > div { min-height: 0; padding: 14px 10px; }
  .dashboard-hero > .hero-profit { grid-column: 1/-1; padding: 0 0 14px; border-bottom: 1px solid #e0e7f0; }
  .dashboard-hero > div + div { border-left: 0; }
  .dashboard-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quote-modes { grid-template-columns: 1fr; }
  .quote-field-grid,.filter-workspace .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid.three,.grid.four,.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .item-row,.item-row.staff-item-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 12px 0; }
  .item-row > .field:nth-child(4) { grid-column: span 2; }
  .quote-item-row { grid-template-columns: 20px repeat(3,minmax(0,1fr)) !important; gap: 8px; }
  .quote-item-row .field:has([data-key=craft]) { grid-column: 2/4; }
  .entry-savebar { padding: 10px 12px; }
  .entry-savebar .toolbar-right { gap: 6px; }
  .cost-composition { grid-template-columns: 130px minmax(0,1fr); gap: 14px; }
  .cost-ring { width: 130px; }
  .page-actions { gap: 5px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .health-lines p { flex-wrap: wrap; }
}
