/* MotorLink — workshop workspace, independent from all other 4u-Labs apps. */
:root {
  color-scheme: light;
  --navy: #07162c;
  --navy-soft: #102440;
  --blue: #0875e8;
  --blue-dark: #075cb6;
  --blue-light: #eaf3ff;
  --green: #13835e;
  --green-light: #e7f7ef;
  --canvas: #f4f7fb;
  --surface: #ffffff;
  --ink: #15263c;
  --muted: #5b6b80;
  --line: #dfe6ee;
  --danger: #bb3444;
  --danger-light: #fff0f1;
  --amber: #9a5b05;
  --amber-light: #fff5df;
  --radius: 14px;
  --shadow: 0 8px 28px rgb(21 38 60 / 5%);
  --sidebar-width: 248px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.1vw, 34px); line-height: 1.2; letter-spacing: -.9px; font-weight: 750; margin-bottom: 8px; }
h2 { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
h3 { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
p { margin-bottom: 12px; }
small, .small { font-size: 13px; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid #50a9ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 12px 18px; background: white; color: var(--ink); border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.muted, .text-muted { color: var(--muted); }
.text-success { color: var(--green); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--amber); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.eyebrow { color: var(--blue-dark); font-size: 11px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; width: var(--sidebar-width); inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 27px 16px 16px; background: var(--navy); color: #d5dfef; border-right: 1px solid #172944; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 27px; color: white; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand-name, .brand strong { display: block; font-size: 23px; line-height: 1.15; font-weight: 750; letter-spacing: -.8px; color: white; }
.brand-name span, .brand strong span { color: #3ba9ff; }
.brand small { display: block; color: #9db0ca; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }
.workspace { display: flex; align-items: center; gap: 10px; background: #11243e; border: 1px solid #263952; border-radius: 10px; padding: 13px 12px; margin: 0 2px 25px; min-width: 0; }
.workspace > svg { color: #76b9ff; }
.workspace > div { min-width: 0; flex: 1; }
.workspace strong { display: block; color: #f6f9ff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace small { color: #a3b4cc; font-size: 11px; }
.workspace .badge { padding: 3px 6px; font-size: 9px; }
.nav-label, .sidebar-label { color: #8195b2; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; padding: 0 15px; margin: 0 0 10px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { appearance: none; display: flex; align-items: center; gap: 13px; text-align: left; padding: 12px 15px; min-height: 45px; width: 100%; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #aebed3; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.nav-link:hover { background: #142943; color: white; text-decoration: none; }
.nav-link.active, .nav-link[aria-current='page'] { background: #113d72; color: white; border-color: #1a518d; box-shadow: inset 3px 0 #3298ff; }
.nav-link.active svg { color: #7ac0ff; }
.nav-link .nav-count { margin-left: auto; font-size: 11px; color: #d6eaff; background: #245385; padding: 1px 6px; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-divider { border: 0; border-top: 1px solid #20324c; margin: 14px 8px; }
.sidebar .btn { justify-content: flex-start; color: #cbd8e9; font-size: 13px; }
.sidebar .btn:hover { background: #142943; }
.sidebar .btn.primary { background: #1479e4; color: white; justify-content: center; }
.sidebar-footer { padding: 12px 13px 0; color: #93a6c0; font-size: 11px; }
.sidebar-footer a { color: #bbcde3; }
.main { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { position: sticky; z-index: 25; top: 0; min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 32px; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); }
.page-context { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.page-context svg { width: 16px; height: 16px; color: #7d8ba0; }
.page-context .separator { color: #bcc6d2; margin: 0 4px; }
.page-context strong { font-weight: 650; color: var(--ink); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 12px; width: 17px; height: 17px; color: #8796a9; pointer-events: none; }
.search-box input, #global-search { padding-left: 37px; width: 260px; min-height: 38px; background: #f6f8fb; border-color: #e5eaf1; font-size: 12px; }
.search-box kbd { position: absolute; right: 9px; padding: 1px 5px; font-size: 10px; background: white; color: #77879c; border: 1px solid var(--line); border-radius: 4px; }
.language-switch, .lang-switch { display: inline-flex; align-items: center; padding: 3px; gap: 1px; border: 1px solid var(--line); background: white; border-radius: 7px; white-space: nowrap; }
.language-switch button, .lang-switch button { appearance: none; background: transparent; border: 0; border-radius: 4px; color: var(--muted); padding: 4px 6px; font-size: 11px; font-weight: 700; min-height: 27px; }
.language-switch button.active, .lang-switch button.active, .language-switch button[aria-pressed='true'], .lang-switch button[aria-pressed='true'] { color: var(--blue-dark); background: var(--blue-light); }
.language-switch span, .lang-switch span { color: #aab7c7; font-size: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 50%; background: #dceaff; color: #135ca6; font-size: 12px; font-weight: 750; border: 2px solid white; }
.profile-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 2px; }
.profile-button span:not(.avatar) { font-size: 12px; font-weight: 600; }
#nav-toggle { display: none; }
#nav-scrim { display: none; }
.mode-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; padding: 9px 32px; color: #365d7a; background: #eaf3ff; border-bottom: 1px solid #d5e6fb; font-size: 12px; }
.mode-banner > div, .mode-banner .banner-copy { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-banner svg { width: 16px; height: 16px; }
.mode-banner .btn { min-height: 28px; padding: 3px 9px; font-size: 11px; }
.mode-banner.local { background: #eef7f3; color: #27624b; border-bottom-color: #d4eade; }
.mode-banner.cloud { background: #eef7f3; color: #27624b; border-bottom-color: #d4eade; }
.content { max-width: 1800px; padding: 30px 32px 48px; margin: 0 auto; }
.dashboard-heading, .page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.dashboard-heading p, .page-heading p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 4px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font-size: 12px; }
.date-pill svg { width: 15px; height: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; appearance: none; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; line-height: 1.4; font-weight: 650; background: transparent; color: var(--ink); text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn svg { width: 17px; height: 17px; }
.btn.primary, .btn-primary { color: white; background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 6px rgb(8 117 232 / 12%); }
.btn.primary:hover, .btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.secondary, .btn-secondary { color: #314962; background: white; border-color: #d3deea; box-shadow: 0 1px 2px rgb(21 38 60 / 3%); }
.btn.secondary:hover, .btn-secondary:hover { background: #f6f9fd; border-color: #aebfd3; }
.btn.ghost:hover { background: #edf2f8; }
.btn.danger { color: var(--danger); background: var(--danger-light); border-color: #f0c9ce; }
.btn.danger:hover { background: #fbe2e5; }
.btn.success { color: white; background: var(--green); border-color: var(--green); }
.btn.small, .btn.sm { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.btn.full { width: 100%; }
.btn.link { padding: 3px 0; min-height: auto; color: var(--blue-dark); font-size: 12px; }
.icon-btn { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-btn:hover { background: #edf2f8; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4, .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel + .panel { margin-top: 22px; }
.grid > .panel + .panel, .stack > .panel + .panel, .grid-main > .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 22px 18px; border-bottom: 1px solid #ebeff4; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head h2 { font-size: 16px; }
.panel-head p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.panel-body { padding: 22px; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px; background: #fcfdff; border-top: 1px solid #ebeff4; font-size: 12px; color: var(--muted); }
.stat-card { min-width: 0; padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: white; box-shadow: 0 3px 12px rgb(21 38 60 / 2%); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.stat-card .label, .stat-label { color: var(--muted); font-size: 12px; font-weight: 550; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 10px; background: var(--blue-light); color: var(--blue); }
.stat-icon.green { background: #e8f7f0; color: var(--green); }
.stat-icon.amber { background: var(--amber-light); color: var(--amber); }
.stat-icon.purple { background: #f0edff; color: #7353c4; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-value { display: block; font-size: 29px; line-height: 1.2; letter-spacing: -1px; font-weight: 750; margin: 5px 0 9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-foot, .stat-card > small { color: var(--muted); font-size: 11px; }
.stat-trend { color: var(--green); font-size: 11px; font-weight: 650; }
.hero-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 27px 30px; background: var(--navy); color: white; border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; position: relative; }
.hero-panel .eyebrow { color: #7cc3ff; font-size: 10px; }
.hero-panel h2 { font-size: 24px; letter-spacing: -.5px; margin-bottom: 8px; }
.hero-panel p { color: #bacbe0; font-size: 13px; max-width: 500px; margin-bottom: 18px; }
.hero-panel .btn.secondary { background: #203b5f; border-color: #38516f; color: white; }
.hero-panel .btn.secondary:hover { background: #2e507b; }
.hero-panel .btn.primary { background: #1887f5; border-color: #1887f5; }
.hero-copy { position: relative; z-index: 1; }
.hero-metric { padding-left: 30px; border-left: 1px solid #30425e; min-width: 180px; }
.hero-metric strong { display: block; font-size: 38px; line-height: 1.2; letter-spacing: -1.5px; font-weight: 750; }
.hero-metric small { display: block; margin-top: 6px; color: #b1c3db; font-size: 12px; }
.hero-icon { width: 88px; height: 88px; color: #284971; opacity: .8; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-action { display: flex; align-items: center; text-align: left; gap: 12px; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 16px; min-height: 74px; font-size: 13px; font-weight: 650; }
.quick-action:hover { border-color: #86b9ec; background: #f5faff; }
.quick-action svg { color: var(--blue); width: 20px; height: 20px; }
.quick-action small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .search-box { flex: 1; min-width: 180px; max-width: 380px; }
.toolbar .search-box input { width: 100%; min-height: 40px; background: white; }
.toolbar-actions, .toolbar-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 145px; font-size: 12px; padding-top: 9px; padding-bottom: 9px; }
.filter-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); background: #eaf0f7; border-radius: 9px; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 7px; min-height: 33px; appearance: none; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 6px; padding: 6px 12px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.tab:hover { color: var(--ink); }
.tab.active, .tab[aria-selected='true'] { background: white; border-color: #dbe3ee; color: var(--ink); box-shadow: 0 1px 3px rgb(21 38 60 / 5%); }
.tab svg { width: 15px; height: 15px; }
.tab .count { padding: 1px 5px; border-radius: 4px; background: #edf1f6; color: #53677f; font-size: 10px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; padding: 4px 8px; border-radius: 5px; font-size: 10px; line-height: 1.35; font-weight: 700; color: #45607c; background: #eef2f7; white-space: nowrap; letter-spacing: .1px; }
.badge svg { width: 12px; height: 12px; }
.badge.blue, .badge.status-received { color: #145eaa; background: #eaf3ff; }
.badge.purple, .badge.status-diagnosis { color: #6d4daf; background: #f0ebfb; }
.badge.amber, .badge.status-approval, .badge.warning { color: #8c5a08; background: #fff3d9; }
.badge.status-repair { color: #0a6881; background: #e5f5fa; }
.badge.green, .badge.status-ready, .badge.success { color: #18734f; background: #e5f6ed; }
.badge.status-delivered { color: #4f6578; background: #edf1f5; }
.badge.red, .badge.status-cancelled, .badge.danger, .badge.high { color: #ac3543; background: #fcebef; }
.badge.outline { background: transparent; border: 1px solid currentColor; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.table-wrap { overflow-x: auto; width: 100%; overscroll-behavior-x: contain; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { padding: 13px 20px; background: #fafbfd; border-bottom: 1px solid var(--line); color: #62758c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; white-space: nowrap; }
td { padding: 17px 20px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
td strong { display: block; color: var(--ink); font-size: 12px; font-weight: 650; }
td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
td .badge { display: inline-flex; }
td.money, th.money { text-align: right; font-variant-numeric: tabular-nums; }
.cell-title { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.cell-icon { width: 34px; height: 34px; border: 1px solid #e3eaf3; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f6f9fd; color: #617c9b; }
.cell-icon svg { width: 18px; height: 18px; }
.row-actions { display: flex; gap: 3px; justify-content: flex-end; white-space: nowrap; }
.order-number { color: var(--blue-dark); font-weight: 750; font-size: 12px; }
.plate { display: inline-block; border: 1px solid #d5dfe9; background: #f4f7fb; border-radius: 4px; padding: 3px 6px; color: #3c526b; font-size: 10px; font-weight: 650; letter-spacing: .5px; white-space: nowrap; }
.empty-state { text-align: center; max-width: 520px; margin: 0 auto; padding: 64px 24px; color: var(--muted); }
.empty-state > svg { width: 42px; height: 42px; color: #93abc5; margin-bottom: 17px; stroke-width: 1.4; }
.empty-state h2, .empty-state h3 { color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 13px; margin-bottom: 21px; }
.empty-state .btn { margin: 0 4px 6px; }
.empty-mini { text-align: center; padding: 30px 18px; color: var(--muted); font-size: 13px; }
.kanban { display: grid; grid-auto-columns: minmax(245px, 1fr); grid-auto-flow: column; gap: 16px; align-items: start; padding: 0 2px 18px; overflow-x: auto; overscroll-behavior-x: contain; }
.kanban-column { min-width: 245px; background: #eaf0f6; border-radius: 12px; padding: 12px; min-height: 350px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 1px 15px; }
.kanban-head h2, .kanban-head h3 { font-size: 12px; margin: 0; font-weight: 700; }
.kanban-head .count { color: #59718b; font-size: 10px; background: #dce5ef; padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.kanban-head::before { content: ''; width: 7px; height: 7px; background: #5595de; border-radius: 50%; flex: 0 0 auto; }
.kanban-head h2, .kanban-head h3 { flex: 1; }
.kanban-column[data-status='diagnosis'] .kanban-head::before { background: #9175d1; }
.kanban-column[data-status='approval'] .kanban-head::before { background: #d39a30; }
.kanban-column[data-status='repair'] .kanban-head::before { background: #38a3bc; }
.kanban-column[data-status='ready'] .kanban-head::before { background: #35a576; }
.order-card { display: block; width: 100%; text-align: left; appearance: none; padding: 15px; margin-bottom: 12px; border: 1px solid #dce4ee; border-radius: 9px; background: white; color: var(--ink); box-shadow: 0 2px 6px rgb(21 38 60 / 3%); transition: border-color .15s, box-shadow .15s; }
.order-card:hover { border-color: #8bb8e9; box-shadow: 0 5px 14px rgb(21 38 60 / 7%); }
.order-card h3 { margin: 10px 0 2px; font-size: 13px; font-weight: 700; }
.order-card p { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.order-card .card-top, .order-card .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.order-card .card-bottom { border-top: 1px solid #edf1f6; margin-top: 12px; padding-top: 12px; font-size: 11px; color: var(--muted); }
.order-card .card-bottom strong { font-size: 12px; color: var(--ink); }
.order-card .avatar { width: 25px; height: 25px; font-size: 8px; }
.order-card .symptoms { font-size: 11px; color: #566b81; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0; }
.order-card .badge { font-size: 9px; }
.activity-list { display: flex; flex-direction: column; }
.activity-item, .appointment-row, .stock-alert { display: flex; align-items: flex-start; gap: 12px; padding: 17px 22px; border-bottom: 1px solid #edf1f6; }
.activity-item:last-child, .appointment-row:last-child, .stock-alert:last-child { border-bottom: 0; }
.activity-item .activity-dot { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 8px; color: #2674bd; background: #edf5fd; flex: 0 0 auto; }
.activity-item .activity-dot svg { width: 15px; height: 15px; }
.activity-item strong, .appointment-row strong, .stock-alert strong { display: block; font-size: 12px; }
.activity-item p, .appointment-row p, .stock-alert p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.activity-item time { margin-left: auto; font-size: 10px; color: #72849a; white-space: nowrap; }
.appointment-time { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 40px; border-radius: 7px; background: #eef4fc; color: #2b69aa; font-size: 11px; font-weight: 700; }
.appointment-row > div:nth-child(2), .stock-alert > div { flex: 1; min-width: 0; }
.stock-alert .stock-count { color: var(--danger); font-size: 12px; font-weight: 700; white-space: nowrap; }
.progress-bar { width: 100%; height: 6px; border-radius: 20px; background: #eaf0f6; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.chart-bars { display: flex; align-items: flex-end; gap: 14px; height: 155px; padding: 10px 10px 25px; }
.chart-bar { flex: 1; position: relative; background: #dcecff; border-radius: 5px 5px 0 0; min-height: 3px; }
.chart-bar.current { background: var(--blue); }
.chart-bar span { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
dialog { border: 1px solid #d6e1ee; padding: 0; color: var(--ink); background: white; width: min(760px, calc(100vw - 40px)); max-height: min(90dvh, 1000px); border-radius: 16px; box-shadow: 0 25px 100px rgb(7 22 44 / 28%); overflow: hidden; }
dialog::backdrop { background: rgb(7 22 44 / 55%); backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in .16s ease-out; }
@keyframes dialog-in { from { transform: translateY(10px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal-panel { display: flex; flex-direction: column; max-height: min(90dvh, 1000px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-bottom: 1px solid var(--line); background: #fff; flex: 0 0 auto; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.modal-body { padding: 24px 26px; overflow-y: auto; overscroll-behavior-y: contain; }
.modal-body > p { color: var(--muted); font-size: 14px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); background: #fafcfe; flex: 0 0 auto; }
.modal-actions .left { margin-right: auto; }
#editor-form { min-height: 0; display: flex; flex-direction: column; }
#editor-form .modal-body { flex: 1; }
#confirm-dialog { width: min(440px, calc(100vw - 32px)); }
#labs-dialog, #install-dialog { width: min(650px, calc(100vw - 32px)); }
#detail { width: min(1100px, calc(100vw - 40px)); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.field.full, .span-2 { grid-column: 1 / -1; }
.field label, label.field-label { font-size: 12px; font-weight: 650; color: #425970; }
.field label .required { color: var(--danger); }
.field small, .field-hint { color: var(--muted); font-size: 11px; line-height: 1.45; }
input, select, textarea { min-width: 0; max-width: 100%; width: 100%; border: 1px solid #cedae7; border-radius: 7px; background: white; color: var(--ink); padding: 10px 11px; min-height: 42px; outline: none; font-size: 14px; line-height: 1.4; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { border-color: #3794ed; box-shadow: 0 0 0 3px rgb(55 148 237 / 12%); }
input::placeholder, textarea::placeholder { color: #8797aa; opacity: 1; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: #f1f5f9; color: #60748a; }
input[type='checkbox'], input[type='radio'] { width: 17px; height: 17px; min-height: 17px; margin: 0; accent-color: var(--blue); }
input[type='file'] { padding: 8px; font-size: 12px; }
input[type='file']::file-selector-button { background: #eaf3ff; border: 0; border-radius: 5px; padding: 7px 10px; margin-right: 10px; color: #205a92; font-size: 12px; font-weight: 600; cursor: pointer; }
textarea { resize: vertical; min-height: 95px; }
select { padding-right: 25px; }
.check-field { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; margin: 1px 0 0; padding: 18px; }
.fieldset legend { font-size: 12px; font-weight: 700; padding: 0 7px; color: #42617f; }
.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.form-section h3 { font-size: 13px; margin-bottom: 15px; }
.form-error, .error-message { margin: 0 0 16px; color: var(--danger); background: var(--danger-light); border: 1px solid #f2d0d5; border-radius: 8px; padding: 11px 13px; font-size: 12px; }
.notice { display: flex; align-items: flex-start; gap: 10px; border-radius: 9px; background: #eef5fd; border: 1px solid #d8e8fa; color: #365d82; padding: 13px 15px; font-size: 12px; line-height: 1.5; }
.notice svg { width: 17px; height: 17px; margin-top: 1px; }
.notice.warning { color: #805a16; background: #fff8e8; border-color: #f3e0ae; }
.notice.success { color: #28644c; background: #ecf8f1; border-color: #d2ebde; }
.order-detail { min-width: 0; }
.order-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.order-summary dt, .info-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.order-summary dd, .info-grid dd { margin: 0; font-size: 13px; font-weight: 600; }
.order-summary dd small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.order-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 22px; overflow-x: auto; }
.order-tabs .tab { border-radius: 0; min-height: 43px; border-bottom: 2px solid transparent; padding: 10px 13px; }
.order-tabs .tab.active { background: transparent; border: 0; border-bottom: 2px solid var(--blue); color: var(--blue-dark); box-shadow: none; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-section + .detail-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 12px; font-size: 13px; }
.detail-section p { color: #4e657d; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.line-items { width: 100%; margin: 12px 0; }
.line-items th { padding: 10px 8px; font-size: 9px; }
.line-items td { padding: 10px 8px; font-size: 12px; }
.line-items input, .line-items select { min-height: 35px; padding: 7px 8px; font-size: 12px; }
.line-items input[type='number'] { min-width: 65px; }
.line-item-row { display: grid; grid-template-columns: minmax(140px, 1fr) 72px 105px 32px; align-items: end; gap: 10px; margin-bottom: 12px; }
.line-item-row .field label { font-size: 10px; }
.line-item-row .icon-btn { margin-bottom: 3px; }
.quote-totals { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0 auto; max-width: 300px; }
.quote-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.quote-totals > div strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.quote-totals .total { padding-top: 13px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); }
.quote-totals .total strong { font-size: 21px; }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-row { display: grid; grid-template-columns: minmax(120px, 1fr) 140px minmax(100px, 1fr); align-items: center; gap: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e5ebf2; border-radius: 8px; }
.checklist-row label { font-size: 12px; font-weight: 550; }
.checklist-row select, .checklist-row input { min-height: 35px; padding: 7px 9px; font-size: 12px; }
.check-result { display: flex; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid #ebeff5; font-size: 12px; }
.check-result small { margin-left: auto; color: var(--muted); font-size: 11px; }
.check-result.ok svg { color: var(--green); }
.check-result.urgent svg { color: var(--danger); }
.check-result.attention svg { color: var(--amber); }
.timeline { list-style: none; margin: 5px 0 0 6px; padding: 0 0 0 22px; border-left: 1px solid #d8e3ef; }
.timeline li { position: relative; padding: 0 0 20px; font-size: 12px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 4px; width: 9px; height: 9px; background: #5a9ddd; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #b4cee6; }
.timeline strong { display: block; }
.timeline time { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.timeline p { font-size: 12px; margin-top: 4px; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-grid figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #f8fafc; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { padding: 7px 9px; font-size: 10px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.photo-grid .icon-btn { position: absolute; top: 5px; right: 5px; background: white; color: var(--danger); width: 27px; height: 27px; padding: 5px; box-shadow: 0 2px 6px #0002; }
.photo-grid .icon-btn svg { width: 14px; height: 14px; }
.financial-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.finance-positive { color: var(--green); }
.finance-negative { color: var(--danger); }
.agenda-day { display: flex; align-items: center; gap: 13px; padding: 19px 22px; border-bottom: 1px solid var(--line); background: #fafcfe; }
.agenda-day strong { font-size: 16px; }
.agenda-day small { font-size: 12px; color: var(--muted); }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.settings-card { padding: 23px; }
.settings-card h2 { font-size: 16px; margin-bottom: 7px; }
.settings-card > p { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.settings-card .btn { margin-top: 18px; }
.mode-options { display: grid; gap: 12px; }
.mode-option { border: 1px solid var(--line); padding: 16px; border-radius: 10px; text-align: left; background: white; }
.mode-option.active { border-color: #4395e6; background: #f4f9ff; }
.mode-option strong { display: block; font-size: 13px; }
.mode-option p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.labs-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.labs-brand img { width: 55px; height: 55px; border-radius: 13px; }
.labs-brand strong { display: block; font-size: 22px; letter-spacing: -.6px; }
.labs-brand small { color: var(--muted); font-size: 12px; }
.labs-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.labs-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; background: #f6f9fd; border: 1px solid #e0e8f2; border-radius: 7px; font-size: 12px; font-weight: 550; }
.labs-links a:hover { background: #eaf3ff; border-color: #abcdf0; text-decoration: none; }
.labs-links a svg { width: 13px; height: 13px; color: #7b94ae; }
.install-steps { padding-left: 20px; font-size: 13px; color: var(--muted); }
.install-steps li { margin-bottom: 12px; padding-left: 5px; }
.install-steps strong { color: var(--ink); }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #74849a; font-size: 11px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.app-footer a { color: #57728f; }
.app-footer .footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.toast, #toast { position: fixed; z-index: 100; bottom: 24px; right: 28px; display: flex; align-items: center; gap: 10px; max-width: min(470px, calc(100vw - 32px)); color: white; background: #183750; padding: 14px 18px; border: 1px solid #2e506e; box-shadow: 0 10px 30px rgb(7 22 44 / 15%); border-radius: 10px; font-size: 13px; animation: dialog-in .2s ease; }
.toast.error, #toast.error { background: #9e2b38; border-color: #c85d69; }
.toast.success, #toast.success { background: #176a4d; border-color: #2d8665; }
.toast svg { width: 18px; height: 18px; }
.loading { padding: 80px 20px; color: var(--muted); text-align: center; font-size: 14px; }
.spinner { width: 26px; height: 26px; border: 3px solid #dbe8f6; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1650px) { .content { padding: 35px 42px 50px; } .topbar, .mode-banner { padding-left: 42px; padding-right: 42px; } .stat-card { padding: 24px; } .stat-value { font-size: 33px; } }
@media (max-width: 1250px) {
  :root { --sidebar-width: 218px; }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .brand { gap: 9px; padding-left: 8px; padding-right: 8px; }
  .brand-name, .brand strong { font-size: 21px; }
  .brand img { width: 37px; height: 37px; }
  .brand small { font-size: 9px; letter-spacing: 1px; }
  .topbar, .mode-banner { padding-left: 24px; padding-right: 24px; }
  .content { padding-left: 24px; padding-right: 24px; }
  .search-box input, #global-search { width: 210px; }
  .top-actions { gap: 9px; }
  .grid-4, .stats-grid { gap: 13px; }
  .stat-card { padding: 17px; }
  .stat-value { font-size: 26px; }
  .stat-icon { width: 32px; height: 32px; }
  .hero-panel { padding: 25px; }
  .hero-metric { min-width: 135px; padding-left: 20px; }
  .grid-main { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 17px; }
  .panel-head, .panel-body { padding-left: 18px; padding-right: 18px; }
  th, td { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 1050px) {
  .search-box input, #global-search { width: 180px; }
  .topbar { gap: 10px; }
  .page-context { font-size: 11px; gap: 5px; }
  .top-actions { gap: 7px; }
  .profile-button span:not(.avatar), .search-box kbd { display: none; }
  .grid-4, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-main > .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
  .hero-panel h2 { font-size: 21px; }
  .hero-panel p { font-size: 12px; }
  .hero-metric strong { font-size: 32px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 248px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; padding-left: 16px; padding-right: 16px; box-shadow: 12px 0 30px rgb(7 22 44 / 16%); }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  #nav-scrim { position: fixed; z-index: 35; inset: 0; border: 0; border-radius: 0; background: rgb(7 22 44 / 50%); backdrop-filter: blur(2px); width: 100%; height: 100%; }
  body.nav-open #nav-scrim { display: block; }
  #nav-toggle { display: inline-flex; margin-left: -5px; }
  .main { margin-left: 0; }
  .topbar { min-height: 65px; padding: 12px 20px; gap: 10px; }
  .page-context { font-size: 12px; flex: 1; }
  .page-context > svg, .page-context .separator, .page-context .breadcrumb-prefix { display: none; }
  .top-actions { gap: 8px; }
  .top-actions > .search-box { display: none; }
  .top-actions .btn { min-height: 34px; padding: 7px 10px; font-size: 11px; }
  .top-actions .btn svg { width: 14px; height: 14px; }
  .profile-button .avatar { width: 30px; height: 30px; font-size: 10px; }
  .mode-banner { padding: 9px 20px; font-size: 11px; gap: 10px; }
  .mode-banner .btn { font-size: 10px; padding: 4px 8px; white-space: nowrap; }
  .content { padding: 24px 20px 36px; }
  h1 { font-size: 27px; letter-spacing: -.8px; }
  .dashboard-heading, .page-heading { gap: 14px; margin-bottom: 22px; }
  .dashboard-heading p, .page-heading p { font-size: 12px; }
  .heading-actions .btn { padding: 8px 11px; font-size: 11px; }
  .date-pill { display: none; }
  .hero-panel { padding: 24px; gap: 18px; }
  .hero-panel h2 { font-size: 20px; }
  .hero-metric { min-width: 110px; }
  .hero-metric small { font-size: 10px; }
  .hero-metric strong { font-size: 30px; }
  .hero-panel .btn { padding: 8px 11px; font-size: 11px; min-height: 35px; }
  .grid { gap: 17px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-main > .stack { grid-template-columns: minmax(0, 1fr); }
  .panel-head { padding-top: 18px; padding-bottom: 15px; }
  .toolbar { gap: 12px; }
  .toolbar .search-box { max-width: none; }
  .toolbar-filters { width: 100%; }
  .filter-tabs { overflow-x: auto; }
  .tab { padding: 6px 10px; font-size: 11px; }
  .kanban { grid-auto-columns: minmax(255px, 80vw); gap: 13px; }
  .kanban-column { min-width: 255px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  table { font-size: 12px; }
  .financial-summary { gap: 12px; }
  .financial-summary .stat-card { padding: 15px; }
  .financial-summary .stat-value { font-size: 22px; }
  dialog, #detail { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 13px; }
  .modal-panel { max-height: calc(100dvh - 24px); }
  .modal-head { padding: 18px 20px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { padding: 20px; }
  .modal-actions { padding: 15px 20px; }
  .order-summary { gap: 15px; }
  .order-summary dd { font-size: 12px; }
  .checklist-row { grid-template-columns: minmax(0, 1fr) 130px; }
  .checklist-row input { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast, #toast { right: 16px; bottom: 16px; font-size: 12px; }
}
@media (max-width: 480px) {
  .topbar { padding-left: 15px; padding-right: 15px; gap: 6px; }
  .top-actions { gap: 5px; }
  .top-actions .btn { max-width: 125px; }
  .top-actions .btn svg { display: none; }
  .top-actions .profile-button { display: none; }
  .language-switch, .lang-switch { padding: 2px; }
  .language-switch button, .lang-switch button { padding: 3px 5px; min-height: 26px; font-size: 10px; }
  .content { padding: 21px 15px 30px; }
  .mode-banner { align-items: flex-start; padding: 9px 15px; line-height: 1.5; font-size: 10px; }
  .mode-banner > div, .mode-banner .banner-copy { display: block; }
  .mode-banner svg { margin-right: 4px; width: 13px; height: 13px; }
  .mode-banner .btn { flex: 0 0 auto; min-height: 29px; }
  .dashboard-heading, .page-heading { flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .heading-actions { width: 100%; padding-top: 0; gap: 8px; }
  .heading-actions .btn { min-height: 36px; padding: 8px 12px; }
  h1 { font-size: 26px; }
  .hero-panel { display: block; padding: 22px; margin-bottom: 18px; }
  .hero-panel h2 { font-size: 21px; }
  .hero-panel p { font-size: 12px; }
  .hero-metric { border-left: 0; border-top: 1px solid #30425e; padding: 18px 0 0; margin-top: 21px; display: flex; align-items: baseline; gap: 12px; }
  .hero-metric strong { font-size: 29px; }
  .hero-metric small { font-size: 11px; }
  .hero-icon { display: none; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .stats-grid { gap: 10px; }
  .stat-card { padding: 15px; border-radius: 10px; }
  .stat-top { gap: 5px; margin-bottom: 11px; }
  .stat-icon { width: 28px; height: 28px; border-radius: 7px; }
  .stat-icon svg { width: 15px; height: 15px; }
  .stat-card .label, .stat-label { font-size: 10px; }
  .stat-value { font-size: 25px; letter-spacing: -.6px; }
  .stat-foot, .stat-card > small { font-size: 10px; line-height: 1.45; }
  .panel { border-radius: 11px; }
  .panel-head { gap: 10px; padding: 17px 16px 14px; }
  .panel-head h2 { font-size: 14px; }
  .panel-head .btn { font-size: 10px; }
  .panel-body { padding: 17px 16px; }
  .panel-footer { padding: 12px 16px; }
  .quick-actions { gap: 9px; }
  .quick-action { padding: 12px 10px; gap: 9px; font-size: 11px; min-height: 75px; }
  .quick-action svg { width: 17px; height: 17px; }
  .quick-action small { font-size: 10px; }
  .activity-item, .appointment-row, .stock-alert { padding: 15px 16px; gap: 10px; }
  .activity-item time { font-size: 9px; }
  .toolbar { margin-bottom: 16px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn { flex: 1; font-size: 11px; }
  .toolbar select { min-width: 0; flex: 1; font-size: 11px; }
  .financial-summary { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .financial-summary .stat-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .financial-summary .stat-value { margin: 0; font-size: 24px; }
  .modal-head { padding: 16px; }
  .modal-head h2 { font-size: 17px; }
  .modal-body { padding: 18px 16px; }
  .modal-actions { padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
  .modal-actions .btn { min-height: 37px; font-size: 12px; padding: 9px 11px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .field.full, .span-2 { grid-column: auto; }
  .field label { font-size: 12px; }
  input, select, textarea { font-size: 16px; }
  .fieldset { grid-column: auto; padding: 14px; }
  .order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 18px; margin-bottom: 18px; }
  .order-tabs { margin-left: -5px; margin-right: -5px; }
  .order-tabs .tab { padding: 9px; font-size: 10px; }
  .line-item-row { grid-template-columns: 1fr 1fr 32px; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 15px; }
  .line-item-row > .field:first-child { grid-column: 1 / -1; }
  .line-item-row .field label { font-size: 10px; }
  .checklist-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
  .checklist-row input { grid-column: auto; }
  .checklist-row select, .checklist-row input { font-size: 14px; }
  .check-result { align-items: flex-start; flex-wrap: wrap; }
  .check-result small { width: 100%; padding-left: 29px; margin-left: 0; }
  .info-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .labs-links { gap: 7px; }
  .labs-links a { padding: 10px; font-size: 11px; }
  .labs-brand strong { font-size: 20px; }
  .app-footer { gap: 8px; font-size: 10px; }
  .app-footer .footer-links { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
  :root { color-scheme: light; }
  html, body { background: white !important; color: black !important; font-size: 11pt; overflow: visible !important; }
  body > .app-shell, .sidebar, .topbar, .mode-banner, .toast, #toast, #nav-scrim, .no-print, .modal-actions, .icon-btn, .order-tabs, .btn { display: none !important; }
  dialog:not([open]) { display: none !important; }
  dialog[open] { display: block !important; position: static !important; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; overflow: visible !important; }
  dialog::backdrop { display: none !important; }
  .modal-panel, .modal-body { display: block !important; max-height: none !important; overflow: visible !important; padding: 0 !important; }
  .modal-head { padding: 0 0 18px !important; margin-bottom: 20px; background: white !important; }
  .panel { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .badge { color: black !important; background: #eee !important; border: 1px solid #ccc; }
  .order-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .table-wrap { overflow: visible; }
  th, td { font-size: 9pt; padding: 8px; }
  .photo-grid img { max-height: 180px; object-fit: contain; }
  .detail-section, .timeline li, .check-result { break-inside: avoid; }
  a { color: black; text-decoration: none; }
  @page { margin: 16mm; size: A4; }
}
/* Exact shell markup. */
.brand > span { display: block; font-size: 23px; line-height: 1.15; font-weight: 750; letter-spacing: -.8px; color: #fff; }
.brand .brand-accent { color: #3ba9ff; }
.workspace { width: calc(100% - 4px); text-align: left; }
.workspace > span:nth-child(2) { min-width: 0; flex: 1; }
.workspace-avatar { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex: 0 0 auto; border: 1px solid #35506e; background: #1c3857; border-radius: 8px; color: #9bccff; font-size: 10px; font-weight: 750; }
.workspace > span:last-child { color: #8aa0bd; font-size: 17px; }
.labs-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: #a1c5ff; font-size: 12px; font-weight: 800; }
.external-mark { margin-left: auto; font-size: 15px; color: #8da1be; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sidebar-footer small { font-size: 9px; color: #8298b4; margin-left: 3px; }
.nav-link > [data-icon] { display: inline-flex; }
.main-footer { max-width: 1800px; margin: 0 auto; padding: 0 32px 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; color: #61758b; font-size: 10px; }
.main-footer > span:last-child { display: flex; gap: 16px; flex-wrap: wrap; }
.main-footer a { color: #536f8d; }
#detail-content { display: flex; flex-direction: column; min-height: 0; max-height: min(90dvh, 1000px); }
#editor-error { margin-left: 26px; margin-right: 26px; }
.field label, label.field-label { font-size: 14px; }
@media (min-width: 1650px) { .main-footer { padding-left: 42px; padding-right: 42px; } }
@media (max-width: 1250px) { .brand > span { font-size: 21px; } .main-footer { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 760px) { .main-footer { padding-left: 20px; padding-right: 20px; } #detail-content { max-height: calc(100dvh - 24px); } #editor-error { margin-left: 20px; margin-right: 20px; } }
@media (max-width: 480px) { .main-footer { padding: 0 15px 20px; font-size: 9px; } .main-footer > span:last-child { gap: 12px; } #editor-error { margin-left: 16px; margin-right: 16px; } .field label { font-size: 14px; } }
@media print { .main-footer { display: none; } #detail-content { display: block; max-height: none; } }
/* Operational views and record details. */
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 3px; }
.content > .stats-grid { margin-bottom: 24px; }
.content > .grid + .panel, .content > .panel + .grid { margin-top: 22px; }
.content > .notice { margin-bottom: 20px; }
.stats-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { text-align: left; }
button.stat-card { appearance: none; transition: border-color .15s, box-shadow .15s; }
button.stat-card:hover { border-color: #9dbfe3; box-shadow: 0 4px 18px rgb(21 38 60 / 6%); }
.stat-top > span:first-child { color: var(--muted); font-size: 12px; font-weight: 550; }
.text-button { appearance: none; border: 0; padding: 0; background: transparent; text-align: left; color: #176ab9; font-size: 12px; font-weight: 650; line-height: 1.5; }
.text-button:hover { color: #054e94; text-decoration: underline; }
.text-link { color: var(--blue-dark); font-size: 11px; font-weight: 600; white-space: nowrap; }
.danger-text, .btn.danger-text { color: var(--danger); }
.btn.ghost.danger-text:hover { background: #fff0f1; }
.amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.positive { color: var(--green); }
.priority-dot { display: inline-block; width: 6px; height: 6px; margin-left: 7px; background: #c44552; border-radius: 50%; vertical-align: middle; }
.mode-banner-copy { display: flex; align-items: center; gap: 9px; }
.mode-banner-copy > svg { flex: 0 0 auto; }
.mode-banner-copy strong { font-weight: 650; }
.workflow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 22px 12px; }
.workflow-item { appearance: none; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 6px; border: 0; border-right: 1px solid #e6edf5; background: white; border-radius: 0; }
.workflow-item:last-child { border-right: 0; }
.workflow-item:hover { background: #f6faff; }
.workflow-item strong { font-size: 25px; line-height: 1.2; margin: 9px 0 7px; font-weight: 700; letter-spacing: -.6px; }
.workflow-item > span:last-child { color: #63768d; font-size: 9px; line-height: 1.4; text-align: center; }
.workflow-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #5796dc; }
.workflow-dot.status-diagnosis { background: #9174cf; }
.workflow-dot.status-approval { background: #d39a35; }
.workflow-dot.status-repair { background: #42a1b7; }
.workflow-dot.status-ready { background: #3b9f70; }
.workflow-dot.status-delivered { background: #7b8fa5; }
.workflow-dot.status-cancelled { background: #c86472; }
.panel-foot { display: flex; align-items: center; gap: 7px; padding: 11px 19px; border-top: 1px solid #eaf0f6; background: #fafcfe; color: #697f96; font-size: 10px; }
.panel-foot svg { width: 14px; height: 14px; color: #6c9aca; }
.panel-empty { padding: 30px 22px; color: var(--muted); font-size: 12px; text-align: center; }
.attention-list { display: flex; flex-direction: column; }
.attention-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 17px 20px; appearance: none; border: 0; border-bottom: 1px solid #edf1f6; background: white; text-align: left; }
.attention-row:last-child { border-bottom: 0; }
button.attention-row:hover { background: #f8fbfe; }
.attention-row > span:nth-child(2) { min-width: 0; flex: 1; }
.attention-row strong { display: block; font-size: 12px; }
.attention-row small { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); line-height: 1.5; }
.attention-row > svg:last-child { width: 15px; height: 15px; color: #8a9eb5; }
.attention-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #eaf3ff; color: #2674be; flex: 0 0 auto; }
.attention-icon.amber { color: #a57220; background: #fff5e0; }
.attention-icon svg { width: 17px; height: 17px; }
.activity-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 17px 20px; border: 0; border-bottom: 1px solid #edf1f6; background: white; font-size: 12px; }
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { background: #f8fbff; }
.activity-row > span { flex: 1; min-width: 0; }
.activity-row strong { display: block; font-size: 12px; }
.activity-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.activity-row > svg { width: 16px; height: 16px; color: #7893b1; }
.time-chip { flex: 0 0 auto; padding: 7px 8px; background: #eef4fc; color: #286baa; border-radius: 6px; font-size: 11px !important; }
.action-grid { padding: 18px 20px; }
.action-grid .btn { justify-content: flex-start; font-size: 11px; padding: 12px; min-height: 50px; background: #fafdff; }
.action-grid .btn svg { color: #3f80bd; width: 17px; height: 17px; }
.view-toggle { display: flex; align-items: center; gap: 4px; }
.view-toggle > .tab.active { background: white; border-color: var(--line); }
.view-toggle > .btn { margin-left: 8px; }
.kanban-column > h2 { display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.5; margin: 0; padding: 4px 1px 16px; }
.kanban-column > h2 .count { display: inline-block; margin-left: auto; color: #5b7088; font-size: 10px; background: #dce5ef; padding: 1px 6px; border-radius: 4px; }
.kanban-empty { padding: 25px 10px; color: #7a8ba0; font-size: 11px; text-align: center; }
.order-card-top, .order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.order-card-top > strong { color: #1c72c4; font-size: 11px; }
.order-card-bottom { border-top: 1px solid #edf1f6; margin-top: 12px; padding-top: 12px; font-size: 10px; color: var(--muted); }
.order-card-bottom strong { font-size: 12px; color: var(--ink); }
.order-card-symptoms { color: #667b91; font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-card > small { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #6e839a; margin-top: 11px; }
.order-card > small svg { width: 12px; height: 12px; }
.inline-field { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-right: auto; }
.inline-field input { width: 165px; font-size: 13px; }
.details-list { margin: 0; padding: 5px 22px 18px; }
.details-list > div { display: grid; grid-template-columns: 135px minmax(0, 1fr); padding: 15px 0; gap: 18px; border-bottom: 1px solid #edf1f6; }
.details-list > div:last-child { border-bottom: 0; }
.details-list dt { color: var(--muted); font-size: 12px; }
.details-list dd { margin: 0; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; white-space: pre-wrap; }
.panel-body > p { color: #5c7188; font-size: 13px; }
.panel-body > p:last-child { margin-bottom: 0; }
.panel-body > hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.search-summary { color: var(--muted); font-size: 14px; margin-top: -10px; margin-bottom: 23px; }
.badge.status-electric { color: #18724f; background: #e6f6ee; }
.badge.status-hybrid { color: #26728a; background: #e6f5f9; }
.badge.status-combustion { color: #79582e; background: #fbf0e0; }
.badge.status-human { color: #637287; background: #edf1f6; }
.badge.status-attention, .badge.status-pending { color: #8c5a08; background: #fff3d9; }
.badge.status-ok, .badge.status-done { color: #18734f; background: #e5f6ed; }
.badge.status-urgent { color: #ac3543; background: #fcebef; }
.badge.status-scheduled { color: #145eaa; background: #eaf3ff; }
#detail-content { display: block; overflow-y: auto; overscroll-behavior-y: contain; }
#detail-content > .modal-head { position: sticky; z-index: 3; top: 0; }
#detail-content > .modal-body { overflow: visible; }
#detail-content > .order-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin: 0; padding: 22px 26px 17px; border: 0; background: #fafcfe; }
.order-summary > div:first-child { min-width: 0; }
.order-summary p { margin: 11px 0 0; font-size: 12px; }
.order-summary p.muted { font-size: 11px; margin-top: 5px; }
.order-summary .badge { margin: 0 4px 0 0; }
.order-summary-amount { flex: 0 0 auto; text-align: right; }
.order-summary-amount > strong { display: block; font-size: 26px; letter-spacing: -.7px; font-weight: 750; line-height: 1.3; }
.order-summary-amount > small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.order-summary-amount > small:last-child { margin-top: 5px; }
.order-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 26px 20px; background: #fafcfe; border-bottom: 1px solid var(--line); }
.order-tools .btn { min-height: 32px; padding: 6px 10px; font-size: 11px; background: white; }
.order-tools .btn svg { width: 14px; height: 14px; }
.heading-separator { color: #b4c2d1; margin: 0 5px; font-weight: 400; }
.service-request { padding: 19px 26px; font-size: 12px; }
.service-request > strong { font-size: 10px; color: #70839a; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.service-request p { margin: 6px 0 9px; font-size: 13px; color: #405971; white-space: pre-wrap; overflow-wrap: anywhere; }
.service-request > small { display: block; color: #637a91; font-size: 11px; margin-top: 5px; white-space: pre-wrap; }
#detail-content > .order-tabs { padding: 0 20px; margin: 0; background: white; }
.order-next { position: sticky; z-index: 2; bottom: 0; justify-content: space-between; gap: 15px; background: rgb(255 255 255 / 98%); box-shadow: 0 -6px 16px rgb(21 38 60 / 4%); }
.order-next > div:first-child { flex-shrink: 0; }
.order-next small { font-size: 11px; color: var(--muted); }
.order-next .btn { font-size: 12px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 19px; }
.section-heading h3 { font-size: 15px; margin-bottom: 5px; }
.section-heading p { font-size: 12px; margin: 0; }
.section-heading > strong { color: var(--muted); font-size: 11px; font-weight: 550; white-space: nowrap; }
.section-heading > .btn { flex: 0 0 auto; min-height: 35px; padding: 7px 11px; font-size: 11px; }
.quote-summary { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 25px auto; width: min(315px, 100%); padding: 18px 20px; border-radius: 10px; background: #f6f9fd; border: 1px solid #e0e8f2; }
.quote-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.quote-summary > div strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.quote-summary .text-button { font-size: 10px; font-weight: 550; margin-left: 3px; }
.quote-summary .grand-total { padding: 12px 0; margin: 1px 0 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 650; }
.quote-summary .grand-total strong { font-size: 21px; letter-spacing: -.5px; }
.approval-box { padding: 17px 18px; border: 1px solid #eadab7; border-radius: 10px; background: #fffaf0; }
.approval-box > div:first-child { display: flex; align-items: center; gap: 9px; color: #8b6726; }
.approval-box > div:first-child > strong { font-size: 12px; }
.approval-box > div:first-child > svg { width: 17px; height: 17px; }
.approval-box > div:first-child > small { margin-left: auto; font-size: 10px; color: #8c7851; }
.approval-box > p { color: #887148; margin: 9px 0 0; font-size: 11px; line-height: 1.6; }
.approval-box > .row-actions { margin-top: 15px; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.approval-box > .row-actions .btn { font-size: 11px; padding: 8px 11px; min-height: 35px; }
.approval-box.approved { background: #eff9f4; border-color: #cde7d9; }
.approval-box.approved > div:first-child, .approval-box.approved > p { color: #2c7455; }
.approval-box.declined { background: #fff3f4; border-color: #edcbd0; }
.approval-box.declined > div:first-child, .approval-box.declined > p { color: #a34651; }
.checklist { margin-bottom: 22px; }
.checklist-item { padding: 16px 18px; background: #f9fbfe; border: 1px solid #e1e9f2; border-radius: 10px; }
.checklist-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.checklist-label strong { font-size: 12px; font-weight: 650; }
.checklist-item .form-grid { grid-template-columns: minmax(130px, .8fr) minmax(0, 1.6fr); gap: 14px; }
.checklist-item .field label { font-size: 12px; }
.checklist-item input, .checklist-item select { min-height: 36px; padding: 7px 9px; font-size: 13px; }
.photo-grid figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: normal; }
.photo-grid figcaption > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.photo-grid figcaption .btn { font-size: 9px; padding: 5px 6px; min-height: 28px; }
.photo-grid figcaption .btn svg { width: 12px; height: 12px; }
.timeline small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.timeline-dot { display: none; }
.mode-option { display: flex; align-items: center; gap: 14px; width: 100%; }
button.mode-option:hover { background: #f4f9ff; border-color: #9fc5ed; }
.mode-option > svg { flex-shrink: 0; color: #4284c3; }
.mode-option > span { flex: 1; min-width: 0; }
.mode-option > span > small { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 5px; }
.mode-option > svg:last-child:not(:first-child) { width: 16px; height: 16px; color: #7a9ab8; }
.cloud-option { background: #f7fafd; border-style: dashed; }
.form-section p { color: var(--muted); font-size: 12px; margin: -7px 0 0; }
.print-only { display: none; }
@media (max-width: 1250px) {
  .workflow-grid { padding: 20px 8px; }
  .workflow-item { padding-left: 3px; padding-right: 3px; }
  .workflow-item > span:last-child { font-size: 8px; }
  .workflow-item strong { font-size: 23px; }
}
@media (max-width: 1050px) {
  .content > .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .workflow-grid { padding: 22px 14px; }
  .workflow-item > span:last-child { font-size: 10px; }
}
@media (max-width: 760px) {
  .stats-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-actions { padding-top: 0; }
  .page-actions .btn { min-height: 37px; padding: 8px 12px; font-size: 11px; }
  .mode-banner-copy { gap: 7px; align-items: flex-start; }
  .mode-banner-copy > svg { margin-top: 2px; }
  .inline-field input { font-size: 14px; }
  .details-list { padding-left: 18px; padding-right: 18px; }
  #detail-content > .order-summary { padding: 19px 20px 17px; }
  .order-tools { padding: 0 20px 18px; }
  .service-request { padding: 17px 20px; }
  .order-summary-amount > strong { font-size: 23px; }
  .order-next { gap: 8px; }
  .order-next .btn { font-size: 11px; }
  .checklist-item { padding: 15px; }
}
@media (max-width: 480px) {
  .page-actions { width: 100%; }
  .content > .stats-grid { margin-bottom: 18px; }
  .stats-grid.compact { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .stats-grid.compact .stat-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px 15px; }
  .stats-grid.compact .stat-top { margin: 0; }
  .stats-grid.compact .stat-icon { display: none; }
  .stats-grid.compact .stat-top > span:first-child { font-size: 12px; }
  .stats-grid.compact .stat-value { margin: 0; text-align: right; font-size: 25px; }
  .stat-top > span:first-child { font-size: 11px; }
  .mode-banner-copy { gap: 6px; }
  .mode-banner-copy > span > span { display: block; margin-top: 2px; }
  .workflow-grid { padding: 20px 7px; }
  .workflow-item > span:last-child { font-size: 8px; }
  .workflow-item strong { font-size: 24px; }
  .workflow-item { padding-left: 3px; padding-right: 3px; }
  .panel-foot { font-size: 9px; padding-left: 15px; padding-right: 15px; }
  .attention-row { padding: 15px; gap: 10px; }
  .attention-row strong { font-size: 11px; }
  .attention-row small { font-size: 10px; }
  .attention-icon { width: 30px; height: 30px; border-radius: 8px; }
  .activity-row { padding: 15px; gap: 10px; }
  .activity-row strong { font-size: 11px; }
  .action-grid { padding: 15px; }
  .action-grid .btn { padding: 11px 9px; font-size: 10px; min-height: 46px; }
  .view-toggle { width: 100%; }
  .view-toggle > .btn { margin-left: auto; font-size: 11px; }
  .inline-field { gap: 8px; width: 100%; }
  .inline-field input { flex: 1; min-width: 0; }
  .details-list { padding: 3px 16px 12px; }
  .details-list > div { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 0; }
  .details-list dt { font-size: 11px; }
  .details-list dd { font-size: 12px; }
  .stack-actions { gap: 8px; }
  .stack-actions .btn { font-size: 11px; }
  #detail-content > .modal-head h2 { font-size: 15px; }
  #detail-content > .order-summary { gap: 14px; padding: 16px; }
  .order-summary .badge { font-size: 8px; padding: 3px 5px; }
  .order-summary p { font-size: 11px; line-height: 1.5; }
  .order-summary p.muted { font-size: 10px; }
  .order-summary-amount > strong { font-size: 22px; }
  .order-summary-amount > small { font-size: 9px; }
  .order-tools { padding: 0 16px 15px; gap: 6px; }
  .order-tools .btn { font-size: 10px; padding: 6px 8px; min-height: 31px; }
  .order-tools .btn svg { width: 13px; height: 13px; }
  .service-request { padding: 16px; }
  .service-request p { font-size: 12px; }
  #detail-content > .order-tabs { padding: 0 9px; }
  #detail-content > .order-tabs .tab { font-size: 11px; }
  .order-next { flex-wrap: nowrap; padding: 11px 12px; gap: 5px; }
  .order-next .row-actions { white-space: normal; flex-wrap: wrap; gap: 6px; }
  .order-next .btn { font-size: 10px; min-height: 33px; padding: 7px 8px; }
  .order-next .btn svg { width: 13px; height: 13px; }
  .order-next > div:first-child { flex: 0 1 auto; }
  .section-heading { gap: 12px; }
  .section-heading h3 { font-size: 14px; }
  .section-heading p { font-size: 11px; }
  .section-heading > strong { font-size: 10px; white-space: normal; text-align: right; }
  .section-heading > .btn { min-height: 33px; padding: 7px 9px; font-size: 10px; }
  .quote-summary { width: 100%; margin-top: 18px; padding: 16px; }
  .approval-box { padding: 15px; }
  .approval-box > div:first-child { flex-wrap: wrap; gap: 7px; }
  .approval-box > div:first-child > small { width: 100%; padding-left: 24px; margin-left: 0; }
  .approval-box > .row-actions { gap: 6px; }
  .approval-box > .row-actions .btn { font-size: 10px; padding: 7px 9px; min-height: 34px; }
  .checklist-item { padding: 13px; }
  .checklist-label { align-items: flex-start; margin-bottom: 12px; gap: 8px; }
  .checklist-label strong { font-size: 12px; }
  .checklist-item .form-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .checklist-item input, .checklist-item select { font-size: 16px; }
  .mode-option { padding: 15px; gap: 11px; }
  .mode-option strong { font-size: 12px; }
  .mode-option > span > small { font-size: 11px; }
}
/* A printed work order is a single explicit document, never a copy of the UI. */
@media print {
  body > :not(#detail) { display: none !important; }
  #detail[open], #detail .modal-panel, #detail #detail-content { display: block !important; position: static !important; overflow: visible !important; max-height: none !important; width: 100% !important; }
  #detail #detail-content > :not(.print-record) { display: none !important; }
  #detail #detail-content > .print-record { display: block !important; font-size: 10pt; line-height: 1.5; }
  .print-header { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #193a60; margin-bottom: 22px; padding-bottom: 18px; }
  .print-header img { width: 64px; height: 64px; border-radius: 12px; }
  .print-header h1 { font-size: 19pt; margin: 0 0 5px; }
  .print-header p { font-size: 9pt; color: #444; margin: 0; }
  .print-record h2 { font-size: 14pt; }
  .print-record h3 { margin-top: 22px; font-size: 11pt; }
  .print-record > p { margin: 13px 0; overflow-wrap: anywhere; }
  .print-record table { margin: 20px 0; }
  .print-record th { background: #eee !important; }
  .print-record tr { break-inside: avoid; }
  .print-record small { font-size: 8pt; }
}
