:root { color-scheme: light; --bg:#f4f6f8; --panel:#fff; --text:#18212b; --muted:#687583; --line:#dce2e8; --primary:#166534; --primary-soft:#dcfce7; --warning:#9a3412; --warning-bg:#fff7ed; }
* { box-sizing:border-box; }
.danger-zone { border-color:#fecaca; background:#fffafa; }.danger-zone>summary { color:#b91c1c; font-weight:700; cursor:pointer; }.danger-zone>div { margin-top:18px; padding-top:18px; border-top:1px solid #fecaca; }.danger-zone h2 { color:#991b1b; }.danger-zone form { display:grid; grid-template-columns:minmax(240px,1fr) auto; gap:14px; align-items:end; }.danger-zone .danger-button { white-space:nowrap; }
.similar-case-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }.similar-case { display:grid; gap:8px; padding:16px; border:1px solid var(--line); border-radius:11px; background:#fbfcfc; color:var(--text); }.similar-case:hover { border-color:#86b89a; box-shadow:0 5px 16px rgba(24,33,43,.07); }.similar-case>div { display:flex; align-items:center; justify-content:space-between; gap:10px; }.similar-case p,.similar-case dl { margin:0; }.similar-case small { color:var(--primary); }.similar-case dl { display:grid; grid-template-columns:42px 1fr; gap:5px 8px; padding-top:8px; border-top:1px solid var(--line); font-size:.82rem; }.similar-case dt { color:var(--muted); }.similar-case dd { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.activity-list { display:grid; }.activity-list article { display:grid; grid-template-columns:150px 70px 1fr; gap:14px; align-items:start; padding:15px 4px; border-bottom:1px solid var(--line); }.activity-list article:last-child { border-bottom:0; }.activity-list time { color:var(--muted); font-size:.84rem; }.activity-list p { margin:4px 0 0; color:var(--muted); }.activity-delete { background:#fee2e2; color:#b91c1c; }.activity-archive { background:#e2e8f0; color:#475569; }.activity-restore { background:var(--primary-soft); color:var(--primary); }
.import-upload form { display:grid; grid-template-columns:1fr auto; gap:14px; align-items:end; }.preview-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }.preview-summary>div { display:grid; gap:5px; padding:15px; border:1px solid var(--line); border-radius:10px; background:#fbfcfc; }.preview-summary span,.preview-summary small { color:var(--muted); }.preview-summary strong { font-size:1.35rem; }.hash-line { display:grid; gap:5px; margin:18px 0 0; }.hash-line code { overflow-wrap:anywhere; color:var(--muted); }.quality-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }.quality-grid>div { display:flex; justify-content:space-between; padding:14px; border-radius:9px; }.quality-ok { background:#ecfdf5; color:#047857; }.quality-warning { background:#fff7ed; color:#c2410c; }.import-warning { margin:18px 0 0; }
body { display:grid; grid-template-columns:238px minmax(0,1fr); margin:0; font-family:"Segoe UI","Microsoft JhengHei",sans-serif; color:var(--text); background:var(--bg); transition:grid-template-columns .2s ease; }
.environment-banner { position:fixed; z-index:120; inset:0 0 auto; display:flex; align-items:center; justify-content:center; gap:12px; min-height:38px; padding:7px 14px; border-bottom:1px solid #f59e0b; background:#fef3c7; color:#78350f; box-shadow:0 3px 12px rgba(120,53,15,.14); text-align:center; }.environment-banner strong { padding:3px 8px; border-radius:999px; background:#f59e0b; color:#fff; }.environment-banner small { opacity:.8; }.environment-nonproduction .sidebar { top:38px; height:calc(100vh - 38px); }.environment-nonproduction .container { padding-top:68px; }
.sidebar { position:fixed; z-index:50; inset:0 auto 0 0; display:flex; flex-direction:column; width:238px; padding:18px 13px; background:linear-gradient(180deg,#0d281c 0%,#10231a 100%); color:#fff; box-shadow:4px 0 22px rgba(15,23,42,.09); transition:width .2s ease; }.sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:0 4px 16px; border-bottom:1px solid rgba(255,255,255,.1); }.sidebar-brand { display:flex; align-items:center; min-width:0; gap:10px; color:#fff; font-weight:750; white-space:nowrap; }.brand-mark { display:grid; place-items:center; flex:0 0 auto; width:34px; height:34px; border-radius:10px; background:#2b7d50; color:#fff; }.sidebar-toggle { display:grid; place-items:center; flex:0 0 auto; width:29px; height:29px; padding:0; border:1px solid rgba(255,255,255,.16); border-radius:8px; background:rgba(255,255,255,.07); color:#eaf4ee; font-size:1.4rem; cursor:pointer; }.sidebar nav { display:grid; gap:5px; margin-top:17px; }.sidebar nav a { display:flex; align-items:center; gap:12px; min-height:45px; padding:8px 11px; border-radius:10px; color:#dcebe2; white-space:nowrap; transition:background .15s,color .15s; }.sidebar nav a:hover { background:rgba(255,255,255,.08); color:#fff; }.sidebar nav a.active { background:#e5f5ea; color:#14532d; font-weight:700; }.nav-icon { display:grid; place-items:center; flex:0 0 auto; width:27px; height:27px; border-radius:8px; background:rgba(255,255,255,.09); font-size:.78rem; font-weight:750; }.active .nav-icon { background:#ccebd6; }.api-icon { font-size:.58rem; }.sidebar-create { margin-top:9px; background:#26754a; color:#fff!important; }.sidebar-create.active { background:#fff!important; color:#14532d!important; }.sidebar-footer { display:grid; gap:2px; margin-top:auto; padding:14px 11px 4px; color:#a9c4b5; font-size:.8rem; }.sidebar-footer small { color:#7fa18f; }.nav-label { overflow:hidden; opacity:1; transition:opacity .12s; }.container { width:auto; max-width:none; margin:0 0 0 238px; padding:30px clamp(22px,2.2vw,42px) 80px; transition:margin-left .2s ease; }.container>* { width:100%; margin-left:0; margin-right:0; }.nav-collapsed .sidebar { width:76px; }.nav-collapsed .container { margin-left:76px; }.nav-collapsed .nav-label { width:0; opacity:0; pointer-events:none; }.nav-collapsed .sidebar-heading { justify-content:center; flex-wrap:wrap; }.nav-collapsed .sidebar-brand { gap:0; }.nav-collapsed .sidebar-toggle { order:2; }.nav-collapsed .sidebar nav a { justify-content:center; padding-inline:8px; }.nav-collapsed .sidebar-footer { display:none; }
.container { grid-column:2; width:100%; min-width:0; min-height:100vh; margin-left:0; transition:none; }.nav-collapsed { grid-template-columns:76px minmax(0,1fr); }.nav-collapsed .container { width:100%; margin-left:0; }
a { color:#155e75; text-decoration:none; }
.topbar { min-height:64px; padding:0 5vw; display:flex; align-items:center; justify-content:space-between; background:#10231a; color:#fff; }
.topbar a { color:#eaf4ee; }.topbar nav { display:flex; gap:22px; align-items:center; }.brand { font-size:1.1rem; font-weight:700; }.primary-link { padding:8px 13px; background:#26754a; border-radius:8px; }
.container { width:min(1180px,92vw); margin:34px auto 80px; }.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }.page-heading h1 { margin:2px 0 6px; font-size:2rem; }.page-heading p { margin:0; color:var(--muted); }.eyebrow { text-transform:uppercase; letter-spacing:.08em; font-size:.8rem; font-weight:700; color:var(--primary)!important; }
.heading-actions { display:flex; align-items:center; gap:9px; }.heading-actions form { margin:0; }
.order-sticky-heading{position:sticky;z-index:40;top:14px;align-items:center;margin:-10px 0 22px;padding:13px 15px;border:1px solid rgba(205,217,211,.92);border-radius:14px;background:rgba(247,250,248,.95);box-shadow:0 10px 28px rgba(17,50,33,.11);backdrop-filter:blur(12px)}
.order-sticky-heading h1{font-size:1.45rem}
.order-heading-title{min-width:0}
.order-heading-title h1,.order-heading-title p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-jump-control{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.75rem;white-space:nowrap}
.order-jump-control select{width:132px;min-height:42px;padding:8px 28px 8px 10px;border-color:#ccd8d1;background:#fff;color:var(--text);font-size:.82rem;cursor:pointer}
#workflow,#overview,#follow-ups,#record,#parts-used,#conditions,#photos{scroll-margin-top:105px}
.order-important-control{position:relative;flex:0 0 auto}
.order-important-toggle{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #b9cec1;border-radius:12px;background:#f1f7f3;color:#17643a;font:800 1.25rem/1 inherit;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.order-important-toggle:hover,.order-important-toggle[aria-expanded="true"]{border-color:#70a986;background:#e3f2e8;box-shadow:0 5px 16px rgba(22,101,52,.14)}
.order-important-toggle.has-items{border-color:#f0a45f;background:#fff7ed;color:#c2410c}
.order-important-toggle.has-items:hover,.order-important-toggle.has-items[aria-expanded="true"]{border-color:#e6792d;background:#ffedd5;box-shadow:0 5px 16px rgba(194,65,12,.16)}
.order-important-toggle b{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#c2410c;color:#fff;font-size:.68rem;line-height:1}
.order-important-popover{position:absolute;z-index:60;top:54px;right:0;width:min(760px,calc(100vw - 64px));max-height:calc(100vh - 105px);padding:15px;overflow:auto;border:1px solid #ccd8d1;border-radius:14px;background:#f7faf8;box-shadow:0 22px 55px rgba(15,40,27,.24)}
.order-important-popover[hidden]{display:none}
.order-important-popover-heading{position:sticky;z-index:2;top:-15px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:-15px -15px 13px;padding:14px 16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(10px)}
.order-important-popover-heading>div{display:grid;gap:2px}
.order-important-popover-heading small{color:var(--muted)}
.order-important-popover-heading button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:9px;background:#eef2f0;color:var(--text);font-size:1.35rem;cursor:pointer}
.order-important-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.order-important-summary>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.order-important-summary span{font-size:.78rem;color:var(--muted)}
.order-important-summary strong{grid-row:1/3;grid-column:2;align-self:center;color:#17643a;font-size:1.35rem}
.order-important-summary small{overflow:hidden;color:#7b8b82;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.order-important-summary .needs-attention{border-color:#f3bd85;background:#fff9f0}
.order-important-summary .needs-attention strong{color:#c2410c}
.order-important-popover>.panel{margin:0 0 12px;box-shadow:none}
.order-important-popover>.panel:last-child{margin-bottom:0}
.order-important-alert{margin:0 0 12px}
.order-important-popover .follow-up-form{grid-template-columns:145px minmax(220px,1fr) auto}
.order-important-popover .follow-up-list article{grid-template-columns:125px minmax(180px,1fr) auto}
.export-picker { position:relative; }.export-picker>summary { list-style:none; }.export-picker>summary::-webkit-details-marker { display:none; }.export-picker>form { position:absolute; z-index:20; top:50px; right:0; width:min(620px,88vw); padding:18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 18px 45px rgba(15,23,42,.18); }.export-picker-heading { display:grid; gap:3px; margin-bottom:13px; }.export-picker-heading small { color:var(--muted); }.export-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; max-height:330px; overflow:auto; }.export-fields label { display:flex; align-items:center; gap:7px; padding:8px; border:1px solid var(--line); border-radius:8px; font-size:.82rem; }.export-fields input { width:auto; }.export-actions { display:flex; justify-content:flex-end; margin-top:14px; }
.select-column { width:42px; min-width:42px; text-align:center; }.select-column input { width:17px; height:17px; accent-color:var(--primary); cursor:pointer; }
.source-list-filters { display:grid; grid-template-columns:minmax(240px,2fr) repeat(2,minmax(140px,1fr)) auto; gap:14px; align-items:end; margin-bottom:18px; padding:18px; }.source-list-filters label { margin:0; }.source-status-panel { display:flex; align-items:center; justify-content:space-between; gap:20px; }.source-status-panel h2,.source-status-panel p { margin:0 0 5px; }.source-status-panel form { margin:0; }.danger-button { border-color:#fecaca; background:#fff1f2; color:#b91c1c; }
.contact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; margin-top:17px; }.contact-card { position:relative; display:flex; justify-content:space-between; gap:12px; padding:15px; border:1px solid var(--line); border-radius:10px; background:#fbfcfc; }.contact-card strong { margin-right:8px; }.contact-card p { margin:10px 0 5px; }.contact-card small { display:block; color:var(--muted); margin-top:4px; }
.primary-contact-label { margin-left:6px; padding:3px 7px; border-radius:999px; background:var(--primary-soft); color:var(--primary); font-size:.72rem; font-weight:700; }.contact-actions { display:flex; gap:12px; margin-top:12px; padding-top:9px; border-top:1px solid var(--line); }.contact-actions form { margin:0; }.contact-actions button { padding:0; border:0; background:transparent; color:#155e75; font:inherit; font-size:.82rem; cursor:pointer; }.contact-actions .danger-link { color:#b91c1c; }
.contact-edit { position:relative; }.contact-edit summary { color:#155e75; font-size:.82rem; cursor:pointer; }.contact-edit>form { position:absolute; z-index:10; top:26px; left:-120px; display:grid; gap:8px; width:min(360px,80vw); padding:14px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 14px 35px rgba(15,23,42,.18); }.contact-edit label { font-size:.78rem; }.contact-edit .button { padding:7px 10px; color:#fff; }
.contact-link { text-decoration:underline; text-decoration-color:#a7c7ba; text-underline-offset:3px; }.map-link { width:max-content; margin:2px 0 14px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:9px 16px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--text); font:inherit; cursor:pointer; }.button.primary { background:var(--primary); border-color:var(--primary); color:#fff; }.button.ghost { background:transparent; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:13px; margin-bottom:24px; }.stat-card { padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--muted); }.stat-card strong { display:block; margin-top:8px; color:var(--text); font-size:2rem; }
.today-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; overflow:hidden; margin-bottom:25px; border:1px solid var(--line); border-radius:13px; background:var(--line); }.today-summary>div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 19px; background:#fff; }.today-summary span { color:var(--muted); }.today-summary strong { color:var(--primary); font-size:1.55rem; }.today-summary .pending-summary { background:#f0f8f3; }.dashboard-section-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 2px 12px; }.dashboard-section-title h2 { margin:0; font-size:1.05rem; }.dashboard-section-title span { color:var(--muted); font-size:.82rem; }.stat-card:hover { border-color:#86b89a; transform:translateY(-1px); box-shadow:0 6px 18px rgba(24,33,43,.08); }
.attention-summary { display:grid; grid-template-columns:minmax(190px,1.4fr) repeat(3,1fr); gap:10px; margin-bottom:25px; }.attention-summary>div,.attention-summary>a { padding:15px 17px; border:1px solid #fed7aa; border-radius:11px; background:#fffaf4; }.attention-summary h2,.attention-summary p { margin:0 0 4px; }.attention-summary p,.attention-summary span { color:#9a3412; font-size:.84rem; }.attention-summary>a { display:flex; align-items:center; justify-content:space-between; }.attention-summary strong { color:#c2410c; font-size:1.45rem; }
.panel { margin-bottom:20px; padding:22px; border:1px solid var(--line); border-radius:13px; background:var(--panel); box-shadow:0 3px 14px rgba(24,33,43,.04); }.panel h2 { margin:0 0 18px; font-size:1.15rem; }.panel h3 { margin-top:24px; }.section-heading { display:flex; justify-content:space-between; align-items:center; }
.table-wrap { overflow-x:auto; }table { width:100%; border-collapse:collapse; }th,td { padding:13px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }th { color:var(--muted); font-size:.83rem; }td small { display:block; color:var(--muted); margin-top:3px; }.empty { padding:40px 12px; text-align:center; color:var(--muted); }
.order-sort-link { display:inline-flex; align-items:center; gap:6px; color:inherit; text-decoration:none; white-space:nowrap; }.order-sort-link:hover { color:var(--primary); }.order-sort-link.active { color:var(--primary); font-weight:800; }.sort-indicator { display:inline-grid; place-items:center; width:18px; height:18px; border-radius:5px; color:#94a3b8; font-size:.65rem; }.order-sort-link:hover .sort-indicator,.order-sort-link.active .sort-indicator { background:#e3f4e9; color:var(--primary); }
.order-sort-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:9px; margin:0 0 12px; }.order-sort-toolbar>span { color:var(--muted); font-size:.86rem; font-weight:700; }.order-sort-toolbar select { width:auto; min-width:210px; padding-block:9px; background-color:#fff; }
@media (max-width:720px) { .order-sort-toolbar { align-items:stretch; flex-direction:column; }.order-sort-toolbar select { width:100%; } }
.badge,.tag { display:inline-flex; padding:5px 9px; border-radius:999px; background:#e8edf1; font-size:.82rem; white-space:nowrap; }.badge.large { padding:8px 13px; font-size:.95rem; }.status-completed,.status-delivered { background:var(--primary-soft); color:var(--primary); }.status-waiting_confirmation,.status-waiting_parts { background:#fef3c7; color:#92400e; }.status-repairing,.status-testing { background:#dbeafe; color:#1e40af; }.status-archived { background:#e2e8f0; color:#475569; }
.pending-text { color:#b45309!important; font-weight:600; }
.serial-cell { min-width:120px; }.serial-cell strong { overflow-wrap:anywhere; }.serial-cell small { margin-top:5px; }.serial-state { display:inline-flex; padding:4px 8px; border-radius:999px; background:#eef2f4; color:#52606c; font-size:.78rem; white-space:nowrap; }.serial-state.warning-state { background:#ffedd5; color:#9a3412; }.serial-state.pending-state { background:#fef3c7; color:#92400e; }
.search-bar { display:flex; gap:10px; margin-bottom:18px; }.search-bar input { flex:1; }.form-layout { display:grid; gap:20px; }.form-section { margin:0; }.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }label { display:grid; gap:7px; color:#34414d; font-size:.92rem; }input,select,textarea { width:100%; padding:10px 11px; border:1px solid #bcc7d0; border-radius:8px; background:#fff; color:var(--text); font:inherit; }textarea { resize:vertical; }fieldset { margin:0; padding:9px 12px; border:1px solid #bcc7d0; border-radius:8px; }legend { padding:0 5px; }.inline { display:inline-flex; grid-template-columns:auto auto; align-items:center; margin-right:18px; }.inline input,.check-card input { width:auto; }
.check-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }.check-card { display:flex; align-items:center; gap:9px; padding:12px; border:1px solid var(--line); border-radius:9px; }.alert-option { border-color:#fdba74; background:#fffaf4; }.hint,.muted { color:var(--muted); }.form-actions { display:flex; justify-content:flex-end; gap:10px; }
.full-width { grid-column:1 / -1; }.source-picker { display:grid; gap:13px; padding:16px; border:1px solid var(--line); border-radius:11px; background:#f9fbfa; }.source-picker-heading,.source-search-row,.selected-source,.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }.source-picker-heading p,.selected-source p { margin:4px 0 0; }.source-search-row>input { flex:1; }.filter-pills { display:flex; flex-wrap:wrap; gap:6px; }.filter-pills button { padding:7px 10px; border:1px solid var(--line); border-radius:999px; background:#fff; cursor:pointer; }.filter-pills button.active { border-color:var(--primary); background:var(--primary-soft); color:var(--primary); }.source-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:9px; max-height:270px; overflow:auto; }.source-card { display:grid; gap:5px; padding:13px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--text); text-align:left; cursor:pointer; }.source-card:hover,.source-card:focus { border-color:#4b8d68; box-shadow:0 0 0 3px #dcfce7; }.source-card small { color:var(--muted); }.source-type { width:max-content; padding:3px 7px; border-radius:999px; background:#e8edf1; color:#52606c; font-size:.75rem; }.pending-source { border-style:dashed; }.selected-source { padding:13px; border:1px solid #86b89a; border-radius:10px; background:var(--primary-soft); }.selected-source strong { display:block; margin-top:6px; }.source-dialog { width:min(650px,92vw); padding:0; border:0; border-radius:14px; box-shadow:0 24px 70px rgba(0,0,0,.25); }.source-dialog::backdrop { background:rgba(15,23,42,.55); }.source-dialog form { display:grid; gap:16px; padding:24px; }.dialog-heading h2 { margin:2px 0; }.dialog-close { width:38px; height:38px; border:0; border-radius:50%; background:#eef2f4; font-size:1.6rem; cursor:pointer; }.form-error { margin:0; padding:10px 12px; border-radius:8px; background:#fee2e2; color:#991b1b; }
.warning { margin-bottom:20px; padding:14px 17px; border:1px solid #fdba74; border-radius:10px; background:var(--warning-bg); color:var(--warning); }.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }.detail-grid .panel { margin:0 0 20px; }dl { display:grid; grid-template-columns:120px 1fr; gap:10px 15px; margin:0; }dt { color:var(--muted); }dd { margin:0; }.long-text { white-space:pre-wrap; line-height:1.7; }.tags { display:flex; flex-wrap:wrap; gap:8px; }.tag-alert { background:#ffedd5; color:#9a3412; }
.fault-tag-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.fault-tag-list .tag{align-items:center;gap:6px;background:#e7f4eb;color:#176b3a}.fault-tag-list form{display:inline-flex;margin:0}.fault-tag-list button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:rgba(23,107,58,.12);color:inherit;cursor:pointer}.fault-tag-form{display:flex;align-items:end;gap:10px;max-width:520px;margin-top:16px}.fault-tag-form label{flex:1;margin:0}.fault-tag-form .button{flex:none}
.handoff-check { margin-bottom:20px; padding:0; overflow:hidden; }.handoff-check>summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px 20px; cursor:pointer; list-style:none; }.handoff-check>summary::-webkit-details-marker { display:none; }.handoff-check>summary>span:first-child { display:grid; gap:3px; }.handoff-check>summary small { color:var(--muted); font-weight:400; }.handoff-check>ul { columns:2; margin:0; padding:17px 42px; border-top:1px solid var(--line); background:#fffbf5; }.handoff-check li { break-inside:avoid; margin:5px 0; }.handoff-actions,.handoff-ready-content { display:flex; align-items:center; flex-wrap:wrap; gap:9px; padding:15px 20px; border-top:1px solid var(--line); }.handoff-ready { border-color:#a7d7b8; background:#f6fcf8; }.handoff-ready-content { justify-content:space-between; }.handoff-ready-content p { margin:0; color:#166534; }
.report-download-history { margin-bottom:20px; padding:0; overflow:hidden; }.report-download-history>summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 20px; cursor:pointer; list-style:none; }.report-download-history>summary::-webkit-details-marker { display:none; }.report-download-history>summary>span:first-child { display:grid; gap:2px; }.report-download-history>summary small { color:var(--muted); font-weight:400; }.report-download-history>ol { margin:0; padding:0 20px; list-style:none; border-top:1px solid var(--line); }.report-download-history li { display:grid; grid-template-columns:160px 1fr; gap:15px; padding:11px 0; border-bottom:1px solid var(--line); }.report-download-history li:last-child { border-bottom:0; }.report-download-history time { color:var(--muted); font-size:.84rem; }.report-download-history>p { margin:0; padding:15px 20px; border-top:1px solid var(--line); color:var(--muted); }
.follow-up-form { display:grid; grid-template-columns:180px 1fr auto; gap:10px; align-items:end; }.follow-up-list { display:grid; gap:8px; margin-top:16px; }.follow-up-list article { display:grid; grid-template-columns:150px 1fr auto; align-items:center; gap:14px; padding:12px 14px; border:1px solid var(--line); border-radius:9px; }.follow-up-list article.due-today { border-color:#f59e0b; background:#fffbeb; }.follow-up-list article.overdue { border-color:#fb923c; background:#fff7ed; }.follow-up-list time { display:flex; align-items:center; gap:7px; }.follow-up-list time span { padding:2px 6px; border-radius:999px; background:#ffedd5; color:#9a3412; font-size:.72rem; }.follow-up-list p { margin:0; }.follow-up-actions { display:flex; align-items:center; gap:7px; }.follow-up-actions details { position:relative; }.follow-up-actions details>summary { cursor:pointer; color:#0f6074; list-style:none; }.follow-up-actions details>form { position:absolute; z-index:4; right:0; top:28px; display:grid; gap:8px; width:280px; padding:13px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.16); }.completed-follow-ups { margin-top:14px; }.completed-follow-ups ul { display:grid; gap:7px; padding-left:22px; }.completed-follow-ups li { display:grid; grid-template-columns:110px 1fr auto; gap:10px; color:var(--muted); }.due-follow-ups>div:last-child { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.due-follow-ups a { display:grid; gap:4px; padding:13px; border:1px solid #f5c36a; border-radius:9px; background:#fffbeb; color:var(--text); text-decoration:none; }.due-follow-ups a.overdue { border-color:#fb923c; background:#fff7ed; }.due-follow-ups time,.due-follow-ups span { color:var(--muted); font-size:.8rem; }.upcoming-follow-ups a { border-color:var(--line); background:#f8faf9; }
.photo-upload-form { display:grid; gap:15px; margin:18px 0; padding:17px; border:1px solid #9bbbaa; border-radius:11px; background:#f2fbf5; }.photo-upload-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.photo-upload-form .form-grid>label { width:100%; min-width:0; align-content:start; }.photo-upload-form .form-grid select { width:100%; }.media-selection-summary{padding:10px 12px;border:1px solid #c7d9cd;border-radius:9px;background:#fff;color:#376047;font-size:.85rem}.media-selection-summary.has-error{border-color:#f0a45f;background:#fff7ed;color:#9a3412}.photo-upload-form.is-uploading{border-color:#70a986;box-shadow:0 0 0 3px rgba(112,169,134,.12)}.photo-upload-form.is-uploading input,.photo-upload-form.is-uploading select,.photo-upload-form.is-uploading textarea{pointer-events:none}.media-upload-progress{display:grid;gap:9px;padding:13px 14px;border:1px solid #a8cbb5;border-radius:10px;background:#fff}.media-upload-progress.has-error{border-color:#f0a45f;background:#fff7ed;color:#9a3412}.media-progress-heading,.media-progress-details{display:flex;align-items:center;justify-content:space-between;gap:12px}.media-progress-heading span{color:#176b3a;font-weight:800}.media-progress-details{color:var(--muted);font-size:.82rem}.media-progress-track{height:11px;overflow:hidden;border-radius:999px;background:#dfe9e2}.media-progress-track>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f9660,#176b3a);transition:width .15s ease}.media-processing-status{display:flex;align-items:center;gap:11px;margin-top:3px;padding-top:11px;border-top:1px solid #e0ebe3}.media-processing-status>div{display:grid;gap:3px}.media-processing-status small{color:var(--muted)}.media-processing-spinner{width:22px;height:22px;flex:0 0 auto;border:3px solid #cfe1d5;border-top-color:#176b3a;border-radius:50%;animation:media-spin .8s linear infinite}@keyframes media-spin{to{transform:rotate(360deg)}}.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; margin-top:18px; }.photo-card { overflow:hidden; border:1px solid var(--line); border-radius:11px; background:#fff; }.photo-card.cover-photo { border-color:#4b8d68; box-shadow:0 0 0 2px #dcfce7; }.photo-card>a { display:block; aspect-ratio:4/3; background:#e7ece9; }.photo-card img { width:100%; height:100%; object-fit:cover; display:block; }.photo-meta { display:grid; gap:8px; padding:12px; }.photo-meta strong { font-size:.93rem; }.photo-meta small { color:var(--muted); }.cover-label { margin-left:6px; color:var(--primary); font-size:.77rem; font-weight:700; }.photo-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; border-top:1px solid var(--line); padding-top:9px; }.photo-actions form { margin:0; }.photo-actions button,.photo-actions a { padding:0; border:0; background:transparent; color:#155e75; font:inherit; font-size:.83rem; cursor:pointer; }.photo-actions .danger-link { color:#b91c1c; }.photo-empty { padding:26px 10px; }
.firmware-heading>div{display:flex;align-items:center;gap:12px}.firmware-heading h2{margin-bottom:4px}.firmware-heading-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e5f4e9;color:#166534;font-size:1.25rem}.firmware-upload-form{display:grid;gap:16px;margin:18px 0;padding:18px;border:1px solid #b9d5c3;border-radius:12px;background:linear-gradient(145deg,#f7fcf8,#eef8f1)}.firmware-upload-form[hidden]{display:none}.firmware-type-picker{margin:0;padding:0;border:0}.firmware-type-picker legend{margin-bottom:9px;font-weight:700}.firmware-type-picker>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.firmware-type-picker label{position:relative;cursor:pointer}.firmware-type-picker input{position:absolute;opacity:0;pointer-events:none}.firmware-type-picker span{display:grid;gap:3px;padding:13px 15px;border:1px solid #cbd8cf;border-radius:10px;background:#fff;transition:.15s ease}.firmware-type-picker small{color:var(--muted)}.firmware-type-picker label:hover span{border-color:#72a984}.firmware-type-picker input:checked+span{border-color:#23824a;background:#e4f4e9;box-shadow:0 0 0 2px rgba(35,130,74,.12)}.firmware-upload-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.firmware-upload-form label{min-width:0}.firmware-file-field input{padding:9px;background:#fff}.firmware-empty{display:grid;justify-items:center;gap:5px;margin-top:16px;padding:24px;border:1px dashed #c9d8cf;border-radius:11px;background:#fafcfb;color:var(--muted);text-align:center}.firmware-empty strong{color:#425247}.firmware-empty-icon{display:grid;place-items:center;width:38px;height:38px;margin-bottom:2px;border-radius:50%;background:#edf5ef;color:#23703f;font-size:1.3rem}.firmware-backup-list{display:grid;gap:10px;margin-top:16px}.firmware-backup-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fff}.firmware-file-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:9px;background:#e4f3e8;color:#166534;font-size:.72rem;font-weight:800}.firmware-file-info{display:grid;gap:5px;min-width:0}.firmware-file-info>div{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.firmware-file-info strong{overflow-wrap:anywhere}.firmware-file-info small{color:var(--muted)}.firmware-file-info p{margin:2px 0 0;white-space:pre-wrap}.firmware-file-actions{display:flex;align-items:center;gap:10px}.firmware-file-actions form{margin:0}.firmware-file-actions .danger-link{border:0;background:transparent;color:#b91c1c;cursor:pointer}
@media (max-width:720px){.firmware-heading{align-items:flex-start;gap:12px}.firmware-heading>div{align-items:flex-start}.firmware-type-picker>div,.firmware-upload-fields{grid-template-columns:1fr}.firmware-backup-list article{grid-template-columns:auto minmax(0,1fr)}.firmware-file-actions{grid-column:1/-1;justify-content:flex-end}.firmware-empty{padding:20px 14px}}
.condition-form .form-grid { align-items:start; }
.condition-form .form-grid>label { min-width:0; align-content:start; align-self:start; }
.condition-choice-fieldset { padding:14px; border-color:#b7d5c2; background:#fff; }.condition-choice-fieldset legend { color:#245a39; font-weight:700; }.condition-choice-fieldset>p { margin:0 0 12px; }.condition-choice-grid { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }.condition-choice-grid .check-card { cursor:pointer; transition:border-color .15s ease,background .15s ease,box-shadow .15s ease; }.condition-choice-grid .check-card:hover { border-color:#72b48a; }.condition-choice-grid .check-card:has(input:checked) { border-color:#23824a; background:#e7f5ec; box-shadow:0 0 0 2px rgba(35,130,74,.12); }.condition-choice-grid .alert-option:has(input:checked) { border-color:#ea8a32; background:#fff1df; }
.delivery-form-grid { align-items:start; }
.delivery-form-grid>label { min-width:0; align-content:start; align-self:start; }
.field-help { color:var(--muted); font-weight:400; }
.photo-stage-filters { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }.photo-stage-filters button { padding:7px 11px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--text); cursor:pointer; }.photo-stage-filters button.active { border-color:var(--primary); background:var(--primary-soft); color:var(--primary); }.photo-edit { width:100%; }.photo-edit summary { color:#155e75; font-size:.83rem; cursor:pointer; }.photo-edit form { display:grid; gap:9px; margin-top:10px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#f8faf9; }.photo-edit label { font-size:.8rem; }.small-button { min-height:35px; padding:6px 10px!important; color:var(--text); }
.removed-media { margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }.removed-media>summary { color:#7f1d1d; cursor:pointer; font-weight:700; }.removed-media-list { display:grid; gap:9px; margin-top:12px; }.removed-media-list>article { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid #ead5d5; border-radius:9px; background:#fffafa; }.removed-media-list article div:first-child { display:grid; gap:3px; }.removed-media-list small { color:var(--muted); }.removed-media-list form { margin:0; }.removed-media-list details form { display:grid; gap:8px; min-width:280px; padding:10px 0 2px; }
.health-overview { margin-bottom:18px; padding:20px; border:1px solid; border-radius:13px; }.health-overview>div { display:flex; align-items:center; gap:14px; }.health-overview>div>span { display:grid; place-items:center; flex:0 0 auto; width:42px; height:42px; border-radius:50%; font-size:1.4rem; font-weight:800; }.health-overview h2,.health-overview p { margin:0; }.health-overview p { margin-top:4px; }.health-ok { border-color:#86c99d; background:#effaf2; color:#14532d; }.health-ok>div>span { background:#ccebd6; }.health-warning { border-color:#f0b27a; background:#fff7ed; color:#9a3412; }.health-warning>div>span { background:#fed7aa; }.health-summary>div { display:grid; gap:4px; }.health-summary small { color:var(--muted); }.health-file-list { display:grid; gap:7px; padding-left:20px; }.health-file-list code { overflow-wrap:anywhere; }
.mobile-media-inputs { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.photo-view-toolbar { display:flex; justify-content:space-between; gap:12px; margin-bottom:18px; }.photo-view-toolbar>div { display:flex; gap:8px; }.photo-viewer { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#101512; }.photo-viewer img { display:block; width:100%; max-height:calc(100vh - 230px); object-fit:contain; }.photo-viewer>div { padding:16px 20px; background:#fff; }.photo-viewer h1,.photo-viewer p { margin:0; }.photo-viewer p { margin-top:6px; color:var(--muted); }
.workflow-steps { display:grid; grid-template-columns:repeat(6,1fr); gap:7px; margin:18px 0; }.workflow-step { display:grid; justify-items:center; gap:6px; padding:11px 5px; border-radius:9px; color:var(--muted); background:#eef2f4; font-size:.82rem; text-align:center; }.workflow-step span { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#fff; font-weight:700; }.workflow-step.done { color:var(--primary); background:#e8f5ec; }.workflow-step.current { color:#fff; background:var(--primary); }.workflow-step.current span { color:var(--primary); }.waiting-banner { margin-bottom:14px; padding:10px 13px; border-radius:8px; background:#fef3c7; color:#92400e; }.workflow-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }.workflow-actions form { margin:0; }.workflow-detail { min-width:230px; padding:9px 12px; border:1px solid var(--line); border-radius:9px; }.workflow-detail summary { color:#155e75; cursor:pointer; }.workflow-detail>form { display:grid; gap:10px; margin-top:12px; }.complete-detail { flex:1 1 620px; }.status-history { margin-top:18px; border-top:1px solid var(--line); padding-top:13px; }.status-history summary { color:#155e75; cursor:pointer; }.status-history ol { display:grid; gap:10px; padding-left:24px; }.status-history li span { margin-right:12px; color:var(--muted); font-size:.82rem; }.status-history li p { margin:4px 0 0; color:var(--muted); }
.workflow-help { margin:8px 0 0; color:var(--muted); font-size:.84rem; }.workflow-step small { font-size:.7rem; font-weight:500; opacity:.8; }.workflow-step-action { margin:0; padding:0; border:1px solid transparent; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }.workflow-step-action:hover { transform:translateY(-2px); border-color:#72b48a; box-shadow:0 6px 16px rgba(22,101,52,.12); }.workflow-step-action button { display:grid; justify-items:center; gap:6px; width:100%; height:100%; padding:10px 5px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }.workflow-step-action button span { color:var(--primary); }
.workflow-step.returned { color:#b42318; background:#fff0ee; box-shadow:inset 0 0 0 1px #f0aaa3; }.workflow-step.returned span,.workflow-step-action.returned button span { color:#b42318; }.workflow-step-action.returned:hover { border-color:#dc6b61; box-shadow:0 6px 16px rgba(180,35,24,.14); }
.record-sections { display:grid; gap:10px; margin-top:16px; }.record-editor { border:1px solid var(--line); border-radius:10px; background:#fbfcfc; }.record-editor summary { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:14px 16px; cursor:pointer; }.record-editor summary span { font-weight:700; }.record-editor summary small { color:var(--muted); }.record-editor>form { display:grid; gap:14px; padding:16px; border-top:1px solid var(--line); background:#fff; }
.condition-form { display:grid; gap:14px; margin:16px 0; padding:16px; border:1px solid #9bbbaa; border-radius:12px; background:#f2fbf5; }.condition-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:12px; margin-top:18px; }.condition-item { position:relative; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; min-height:128px; padding:16px; border:1px solid var(--line); border-left:4px solid #94a3b8; border-radius:11px; background:#fff; box-shadow:0 2px 8px rgba(24,33,43,.04); }.condition-item.condition-alert { border-color:#fed7aa; border-left-color:#ea580c; background:linear-gradient(135deg,#fffaf4 0%,#fff 70%); }.condition-main { min-width:0; }.condition-heading { display:flex; align-items:center; gap:9px; padding-right:42px; }.condition-heading strong { font-size:1rem; }.condition-icon { display:grid; place-items:center; flex:0 0 auto; width:25px; height:25px; border-radius:50%; background:#e8edf1; color:#52606c; font-size:.78rem; font-weight:800; }.condition-alert .condition-icon { background:#ffedd5; color:#c2410c; }.condition-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }.condition-badges span { padding:4px 8px; border-radius:999px; background:#eef2f4; color:#52606c; font-size:.76rem; }.condition-badges .severity-minor { background:#ecfdf5; color:#047857; }.condition-badges .severity-moderate { background:#fef3c7; color:#92400e; }.condition-badges .severity-severe { background:#fee2e2; color:#b91c1c; }.condition-item p { margin:11px 0 0; color:#34414d; line-height:1.55; }.condition-item .condition-no-note { color:#94a3b8; font-size:.85rem; }.condition-remove { position:absolute; top:12px; right:12px; padding:5px 8px; border:0; border-radius:7px; background:transparent; color:#94a3b8; font-size:.78rem; cursor:pointer; }.condition-remove:hover,.condition-remove:focus { background:#fee2e2; color:#b91c1c; }.condition-empty { display:grid; justify-items:center; gap:5px; margin-top:16px; padding:28px 15px; border:1px dashed #cbd5e1; border-radius:11px; color:#64748b; text-align:center; }.condition-empty small { color:#94a3b8; }
.condition-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:14px; }.condition-actions summary { color:var(--link); cursor:pointer; }.condition-actions details[open] { width:100%; }.condition-actions details form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:9px; background:#f8faf9; }.condition-actions details form label:last-of-type,.condition-actions details form button { grid-column:1/-1; }
.compact-note { margin-top:18px; }.compact-note h2 { margin-top:0; }.compact-note p { margin-bottom:0; line-height:1.7; }
.order-filters { display:grid; grid-template-columns:minmax(260px,2fr) repeat(3,minmax(130px,1fr)) auto; gap:14px; align-items:end; margin-bottom:14px; padding:18px; }.order-filters label,.filter-search { display:grid; gap:7px; margin:0; color:#475569; font-size:.84rem; font-weight:650; }.order-filters input,.order-filters select { width:100%; }.filter-actions { display:flex; gap:8px; align-items:center; padding-bottom:1px; }.list-summary { display:flex; align-items:baseline; gap:7px; margin:0 3px 12px; color:var(--muted); }.list-summary strong { color:var(--text); font-size:1.35rem; }.empty { display:grid; justify-items:center; gap:10px; text-align:center; }.empty strong { color:var(--text); font-size:1.05rem; }
.advanced-filters { grid-column:1/-1; border-top:1px solid var(--line); padding-top:12px; }.advanced-filters summary { width:max-content; color:#155e75; font-size:.88rem; font-weight:650; cursor:pointer; }.advanced-filters summary span { margin-left:7px; padding:3px 7px; border-radius:999px; background:#dcfce7; color:#166534; font-size:.72rem; }.advanced-filter-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:13px; }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:-4px; padding:14px 4px; color:var(--muted); }.page-buttons { display:flex; gap:8px; }.pagination .button { min-width:94px; text-align:center; }.page-size-form { margin:0; }.page-size-form label { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.85rem; }.page-size-form select { width:auto; min-width:92px; padding:7px 30px 7px 9px; }
@media (max-width:980px) { .order-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.filter-search { grid-column:1/-1; }.filter-actions { align-self:end; } }
@media (max-width:720px) { html,body { max-width:100%; overflow-x:hidden; }.sidebar,.nav-collapsed .sidebar { position:sticky; top:0; width:100%; height:72px; min-height:72px; padding:9px 12px; }.sidebar-heading,.nav-collapsed .sidebar-heading { justify-content:space-between; flex-wrap:nowrap; height:54px; padding:0 2px; border-bottom:0; }.sidebar-toggle,.nav-collapsed .sidebar-toggle { display:grid; order:initial; }.sidebar-footer { display:none; }.sidebar nav { position:fixed; z-index:70; top:72px; bottom:0; left:0; display:grid; align-content:start; grid-template-columns:1fr; gap:6px; width:min(320px,86vw); margin:0; padding:14px 12px 24px; overflow-y:auto; background:linear-gradient(180deg,#0d281c 0%,#10231a 100%); box-shadow:8px 14px 25px rgba(15,23,42,.24); }.nav-collapsed .sidebar nav { display:none; }.sidebar nav a,.nav-collapsed .sidebar nav a { justify-content:flex-start; min-width:0; min-height:46px; padding:8px 12px; }.sidebar-create { margin-top:6px; }.sidebar .nav-label,.nav-collapsed .sidebar .nav-label { width:auto; opacity:1; pointer-events:auto; text-overflow:ellipsis; }.sidebar-brand .nav-label { display:inline; }.nav-icon { width:27px; height:27px; }.container,.nav-collapsed .container { width:100%; margin:0; padding:18px 10px 52px; }.page-heading,.detail-grid { grid-template-columns:1fr; display:grid; }.page-heading { margin-bottom:18px; }.form-grid,.photo-upload-form .form-grid,.order-filters,.advanced-filter-grid,.source-list-filters,.import-upload form { grid-template-columns:minmax(0,1fr); }.source-list-filters { gap:12px; padding:14px; }.source-list-filters>* { min-width:0; }.source-list-filters .button { width:100%; }.preview-summary,.quality-grid { grid-template-columns:1fr 1fr; }.filter-search { grid-column:auto; }.filter-actions { display:grid; grid-template-columns:1fr 1fr; }.filter-actions .button { text-align:center; }.pagination { align-items:stretch; flex-direction:column; }.page-buttons { display:grid; grid-template-columns:1fr 1fr; }.table-wrap { width:100%; max-width:100%; margin:0; overflow-x:auto; }.panel { max-width:100%; padding:15px; border-radius:11px; }.source-picker,.source-picker>* { min-width:0; }.source-picker-heading,.source-search-row,.selected-source { align-items:stretch; flex-direction:column; }.source-picker-heading .button,.selected-source .button { width:100%; }.filter-pills { width:100%; }.source-cards { grid-template-columns:minmax(0,1fr); max-height:330px; }.workflow-steps { grid-template-columns:repeat(3,1fr); }.workflow-actions { display:grid; }.workflow-detail { min-width:0; } }
@media (max-width:720px){.order-sticky-heading{top:80px;display:flex;align-items:center;gap:8px;margin:-6px 0 16px;padding:10px}.order-heading-title{flex:1}.order-sticky-heading h1{margin:0;font-size:1rem}.order-sticky-heading .eyebrow,.order-heading-title>p:last-child{display:none}.order-sticky-heading .heading-actions{gap:6px}.order-sticky-heading .heading-actions>a{min-height:38px;padding:7px 10px;font-size:.8rem}.order-sticky-heading .badge.large{padding:6px 8px;font-size:.78rem}.order-jump-control{position:relative;width:38px;height:38px}.order-jump-control span{position:absolute;z-index:1;inset:0;display:grid;place-items:center;border:1px solid #ccd8d1;border-radius:10px;background:#fff;color:#17643a;font-size:0;font-weight:700;pointer-events:none}.order-jump-control span::after{content:'跳';font-size:.78rem}.order-jump-control select{position:absolute;inset:0;width:38px;min-height:38px;padding:0;opacity:0;cursor:pointer}.order-important-toggle{width:38px;height:38px}.order-important-popover{position:fixed;top:82px;right:10px;left:10px;width:auto;max-height:calc(100vh - 94px);padding:12px}.order-important-popover-heading{top:-12px;margin:-12px -12px 11px}.order-important-summary{gap:5px}.order-important-summary>div{padding:9px 8px}.order-important-summary small{display:none}.order-important-summary strong{grid-row:1;align-self:auto;font-size:1.1rem}.order-important-popover .follow-up-form,.order-important-popover .follow-up-list article{grid-template-columns:1fr}.order-important-popover .handoff-check>ul{columns:1}#workflow,#overview,#follow-ups,#record,#parts-used,#conditions,#photos{scroll-margin-top:135px}}
@media (max-width:720px) { body,body.nav-collapsed { display:block; }.container,.nav-collapsed .container { grid-column:auto; } }
@media (max-width:720px) { .environment-banner { justify-content:flex-start; min-height:42px; overflow:hidden; white-space:nowrap; }.environment-banner span { overflow:hidden; text-overflow:ellipsis; }.environment-banner small { display:none; }.environment-nonproduction .sidebar { top:42px; height:72px; }.environment-nonproduction .container,.environment-nonproduction.nav-collapsed .container { padding-top:18px; } }

/* Mobile off-canvas navigation: dim the page and close from the backdrop. */
.nav-backdrop { display:none; }
@media (max-width:720px) {
  body:not(.nav-collapsed) { overflow:hidden; }
  .nav-backdrop {
    position:fixed;
    z-index:60;
    inset:72px 0 0 0;
    display:block;
    width:100%;
    height:auto;
    padding:0;
    border:0;
    border-radius:0;
    background:rgba(15,23,42,.52);
    opacity:1;
    visibility:visible;
    cursor:pointer;
    transition:opacity .2s ease,visibility .2s ease;
  }
  .nav-collapsed .nav-backdrop {
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
  .sidebar nav,
  .nav-collapsed .sidebar nav {
    display:grid;
    transform:translateX(0);
    transition:transform .2s ease;
  }
  .nav-collapsed .sidebar nav {
    transform:translateX(-105%);
    pointer-events:none;
  }
}
.auth-page { display:block; min-height:100vh; background:radial-gradient(circle at top left,#dff3e6 0,#f3f6f4 42%,#edf1ef 100%); }
.auth-shell { display:grid; place-items:center; min-height:100vh; padding:24px; }
.auth-card { display:grid; gap:24px; width:min(440px,100%); padding:34px; border:1px solid #cbd8d0; border-radius:18px; background:#fff; box-shadow:0 18px 55px rgba(15,45,31,.12); }
.auth-card.wide { width:min(560px,100%); }
.auth-card h1 { margin:4px 0 8px; font-size:2rem; }
.auth-card form { display:grid; gap:16px; }
.auth-card form label { display:grid; gap:7px; }
.auth-card form .button { margin-top:4px; }
.auth-brand { display:flex; align-items:center; gap:12px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.auth-brand .brand-mark { width:42px; height:42px; font-size:1.1rem; }
.auth-brand div { display:grid; gap:2px; }
.auth-brand small { color:var(--muted); }
.sidebar-logout { width:100%; margin-top:8px; padding:7px 9px; border:1px solid rgba(255,255,255,.14); border-radius:8px; background:rgba(255,255,255,.06); color:#dcebe2; text-align:left; cursor:pointer; }
.sidebar-logout:hover { background:rgba(255,255,255,.12); color:#fff; }
.permission-tools { display:flex; flex-wrap:wrap; gap:8px; }
.form-grid>.checkbox-line { display:flex; grid-column:1/-1; align-items:center; gap:10px; width:100%; padding:13px 15px; border:1px solid var(--line); border-radius:9px; background:#f7faf8; font-weight:700; cursor:pointer; }
.form-grid>.checkbox-line input { flex:0 0 auto; width:18px; height:18px; margin:0; padding:0; accent-color:var(--primary); }
.form-grid>.checkbox-line:has(input:checked) { border-color:#9bc6aa; background:#e8f5ec; color:#145c31; }
.permission-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; width:100%; min-width:0; }
.permission-group { display:grid; align-content:start; gap:8px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:11px; }
.permission-group legend { padding:0 7px; color:var(--primary); font-weight:750; }
.permission-group label { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; gap:10px; min-width:0; padding:10px 12px; border-radius:8px; background:#f7faf8; cursor:pointer; }
.permission-group label:has(input:checked) { background:#e8f5ec; }
.permission-group input { width:16px; height:16px; min-width:16px; margin:3px 0 0; padding:0; accent-color:var(--primary); }
.permission-group span { display:grid; gap:2px; min-width:0; }
.permission-group strong { overflow-wrap:anywhere; line-height:1.45; }
.permission-group small { overflow-wrap:anywhere; color:var(--muted); font-family:ui-monospace,monospace; font-size:.7rem; line-height:1.35; }
@media (max-width:800px) { .permission-groups { grid-template-columns:1fr; } }

@media (max-width:720px) {
  .condition-actions details form { grid-template-columns:minmax(0,1fr); }
  .condition-actions details form label,.condition-actions details form button { grid-column:1; }
}
.contact-rule { margin:14px 0 10px; padding:10px 12px; border-left:4px solid #2b8a57; border-radius:7px; background:#eef8f1; color:#315c41; font-size:.86rem; }
.pending-contact-option { width:max-content; max-width:100%; margin-top:10px; padding:10px 12px; border:1px solid #c8d6cc; border-radius:9px; background:#f8faf9; }
.contact-client-error { margin:9px 0 0; color:#b91c1c; font-size:.86rem; font-weight:650; }
.photo-card>video { display:block; width:100%; aspect-ratio:4/3; background:#111; object-fit:contain; }
.completion-readings { margin:15px 0; padding:14px; border-color:#b9d5c3; background:#f3faf5; }.completion-readings legend { color:#166534; font-weight:700; }.completion-readings .field-help { display:block; margin:0 0 12px; }
.report-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }.report-options { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }.repair-report { max-width:1050px!important; margin:0 auto!important; padding:38px 42px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 5px 25px rgba(15,23,42,.07); }.repair-report section { padding:22px 0; border-top:1px solid var(--line); }.repair-report h2 { margin:0 0 14px; color:#174c2d; font-size:1.1rem; }.report-header { display:flex; align-items:flex-start; justify-content:space-between; gap:25px; padding-bottom:26px; }.report-header p,.report-header h1 { margin:0; }.report-header p { color:var(--primary); font-weight:700; }.report-header h1 { margin:4px 0; font-size:2.35rem; }.report-header span { color:var(--muted); }.report-header dl { grid-template-columns:80px auto; font-size:.88rem; }.report-data-grid,.report-columns { display:grid; grid-template-columns:1fr 1fr; gap:32px; }.report-data-grid dl { grid-template-columns:90px 1fr; }.report-text { margin:0; white-space:pre-wrap; line-height:1.75; }.report-condition-list { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }.report-condition-list>div { padding:11px 13px; border:1px solid var(--line); border-radius:8px; }.report-condition-list span { display:block; margin-top:3px; color:var(--muted); font-size:.8rem; }.report-condition-list p { margin:7px 0 0; }.reading-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-top:16px; }.reading-strip>div { display:grid; gap:5px; padding:12px; border-radius:8px; background:#f1f7f3; }.reading-strip span { color:var(--muted); font-size:.8rem; }.report-result { display:grid; grid-template-columns:2fr 1fr; gap:20px; }.report-result>div { padding:15px; border-radius:9px; background:#edf7f0; }.report-result span { display:block; color:var(--muted); }.report-result strong { font-size:1.35rem; }.report-photo-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }.report-photo-grid figure { margin:0; break-inside:avoid; }.report-photo-grid img { display:block; width:100%; max-height:330px; border-radius:8px; object-fit:contain; background:#eef2ef; }.report-photo-grid figcaption { padding:7px 2px; color:var(--muted); font-size:.8rem; }.report-video-list span { display:block; margin-top:5px; color:var(--muted); }.report-history { display:grid; gap:6px; padding-left:22px; }.report-footer { display:grid; grid-template-columns:repeat(3,1fr); gap:25px; padding-top:35px; color:#34414d; }
.report-header address { margin-top:12px; color:var(--muted); font-size:.82rem; font-style:normal; line-height:1.6; }.report-policy { background:#f8faf9; }.report-note { margin:14px 0 0; color:var(--muted); font-size:.86rem; }.settings-saved { margin-bottom:18px; padding:12px 15px; border:1px solid #86b89a; border-radius:9px; background:#edf9f0; color:#166534; }
.report-readiness { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:18px; }.report-readiness div { display:grid; gap:3px; }.report-readiness span { display:block; color:inherit; opacity:.8; font-size:.85rem; }.report-readiness ul { columns:2; margin:0; padding-left:22px; }.report-readiness li { break-inside:avoid; margin:2px 0; }.report-readiness.ready { padding:13px 16px; border:1px solid #86b89a; border-radius:10px; background:#edf9f0; color:#166534; }
.report-brand { display:flex; align-items:flex-start; gap:16px; }.report-logo { width:72px; height:72px; object-fit:contain; }.logo-setting { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }.logo-setting>div { display:grid; place-items:center; width:110px; height:90px; border:1px dashed var(--line); border-radius:10px; background:#f8faf9; }.logo-setting img { max-width:95px; max-height:76px; object-fit:contain; }.logo-placeholder { padding:10px; color:var(--muted); font-size:.78rem; text-align:center; }.logo-setting small { display:block; margin-top:6px; color:var(--muted); }.checkbox-line { display:flex!important; align-items:center; gap:7px; width:auto!important; }
@media (max-width:720px) { .report-toolbar { align-items:stretch; flex-direction:column; }.report-options { display:grid; grid-template-columns:1fr 1fr; }.report-readiness { display:grid; }.report-readiness ul,.handoff-check>ul { columns:1; }.handoff-actions .button { flex:1 1 100%; }.report-download-history li,.follow-up-form,.follow-up-list article,.completed-follow-ups li { grid-template-columns:1fr; gap:7px; }.follow-up-actions { flex-wrap:wrap; }.follow-up-actions details>form { position:fixed; left:18px; right:18px; top:25%; width:auto; }.due-follow-ups>div:last-child { grid-template-columns:1fr; }.repair-report { padding:24px 18px; }.report-header,.report-data-grid,.report-columns,.report-result { grid-template-columns:1fr; display:grid; }.report-condition-list,.report-photo-grid { grid-template-columns:1fr; }.reading-strip { grid-template-columns:1fr 1fr; }.report-footer { grid-template-columns:1fr; } }
@media print { @page { size:A4; margin:12mm; } body { display:block!important; background:#fff; color:#111; } .menu-launcher,.sidebar,.nav-backdrop,.report-toolbar { display:none!important; }.container,.nav-collapsed .container { width:100%!important; padding:0!important; margin:0!important; }.repair-report { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; border:0!important; box-shadow:none!important; }.repair-report section { break-inside:avoid; }.report-photo-grid img { max-height:250px; } }
@media (max-width:720px) { .mobile-media-inputs { grid-template-columns:1fr; }.photo-view-toolbar { align-items:stretch; flex-direction:column; }.photo-view-toolbar>div { display:grid; grid-template-columns:1fr 1fr; }.photo-view-toolbar .button { text-align:center; }.photo-viewer img { max-height:calc(100vh - 280px); } }
.api-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:20px; }.api-guide-grid .panel { margin:0; }.api-guide-grid code { display:block; margin:7px 0; padding:8px 10px; border-radius:7px; background:#eef4f0; color:#14532d; overflow-wrap:anywhere; }.api-guide-grid p { margin-bottom:0; color:var(--muted); }.api-example pre { overflow:auto; padding:15px; border-radius:9px; background:#10271d; color:#e9fff0; }.api-example .warning { margin:16px 0 0; }
.parts-used-form { display:grid; grid-template-columns:2fr .7fr .8fr 1fr 2fr auto; gap:9px; align-items:end; }.parts-used-table { margin-top:18px; }.parts-used-table td:last-child { display:flex; align-items:center; gap:10px; }.part-edit { position:relative; }.part-edit>summary { cursor:pointer; color:#0f6074; list-style:none; }.part-edit>form { position:absolute; z-index:5; right:0; top:26px; display:grid; gap:7px; width:300px; padding:13px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 12px 30px rgba(15,23,42,.16); }
@media (max-width:720px) { .api-guide-grid { grid-template-columns:1fr; }.parts-used-form { grid-template-columns:1fr 1fr; }.parts-used-form label:first-child,.parts-used-form label:nth-child(5),.parts-used-form .button { grid-column:1/-1; }.part-edit>form { position:fixed; left:18px; right:18px; top:18%; width:auto; } }

/* One floating navigation pattern for desktop and mobile. */
body,
body.nav-collapsed,
body.nav-open {
  display:block;
}

.menu-launcher {
  position:fixed;
  z-index:75;
  top:18px;
  left:18px;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid rgba(255,255,255,.2);
  border-radius:13px;
  background:#0d281c;
  color:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.2);
  font:700 1.35rem/1 "Segoe UI",sans-serif;
  cursor:pointer;
  transition:opacity .18s ease,transform .18s ease,background .18s ease;
}
.menu-launcher:hover,
.menu-launcher:focus-visible { background:#17653b; transform:translateY(-1px); }
.nav-open .menu-launcher { opacity:0; pointer-events:none; }

.sidebar,
.nav-collapsed .sidebar {
  position:fixed;
  z-index:80;
  inset:0 auto 0 0;
  display:flex;
  flex-direction:column;
  width:290px;
  height:100dvh;
  padding:18px 14px;
  transform:translateX(-105%);
  background:linear-gradient(180deg,#0d281c 0%,#10231a 100%);
  box-shadow:14px 0 45px rgba(15,23,42,.28);
  transition:transform .24s cubic-bezier(.22,.75,.25,1);
}
.nav-open .sidebar { transform:translateX(0); }

.sidebar-heading,
.nav-collapsed .sidebar-heading {
  justify-content:space-between;
  flex-wrap:nowrap;
  min-height:48px;
  padding:0 5px 16px;
}
.sidebar-close {
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  background:rgba(255,255,255,.07);
  color:#fff;
  font-size:1.45rem;
  line-height:1;
  cursor:pointer;
}
.sidebar-close:hover,
.sidebar-close:focus-visible { background:rgba(255,255,255,.15); }

body .sidebar nav,
body.nav-collapsed .sidebar nav {
  position:static;
  display:grid;
  align-content:start;
  grid-template-columns:1fr;
  gap:6px;
  width:auto;
  margin-top:17px;
  padding:0;
  overflow-y:auto;
  background:transparent;
  box-shadow:none;
  transform:none;
  pointer-events:auto;
}
body .sidebar nav a,
body.nav-collapsed .sidebar nav a {
  justify-content:flex-start;
  min-height:48px;
  padding:9px 12px;
}
body .sidebar .nav-label,
body.nav-collapsed .sidebar .nav-label {
  width:auto;
  opacity:1;
  pointer-events:auto;
}
.sidebar nav a.active {
  background:rgba(255,255,255,.17);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 5px 14px rgba(0,0,0,.12);
}
.sidebar nav a.active .nav-icon {
  background:#56b77c;
  color:#082b19;
}
.sidebar-create,
.sidebar-create.active {
  margin-top:10px;
  border:1px solid rgba(255,255,255,.16);
  background:#2b8a57!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}
.sidebar-create:hover { background:#35a468!important; }
.sidebar-footer,
.nav-collapsed .sidebar-footer { display:grid; }

.nav-backdrop,
.nav-collapsed .nav-backdrop {
  position:fixed;
  z-index:70;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:rgba(9,23,15,.45);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  cursor:pointer;
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  transition:opacity .22s ease,visibility .22s ease;
}
.nav-open .nav-backdrop {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.nav-open { overflow:hidden; }

.container,
.nav-collapsed .container {
  width:100%;
  max-width:none;
  min-width:0;
  min-height:100vh;
  margin:0;
  padding:30px clamp(24px,3vw,56px) 80px 88px;
}

@media (max-width:720px) {
  .menu-launcher { top:14px; left:14px; width:44px; height:44px; }
  .sidebar,
  .nav-collapsed .sidebar { width:min(320px,86vw); height:100dvh; padding:16px 13px; }
  .container,
  .nav-collapsed .container { padding:76px 16px 52px; }
}

/* Unified application layout: desktop is the canonical full-width canvas. */
@media (min-width:721px) {
  .container,
  .nav-collapsed .container {
    grid-column:auto;
    width:100%;
    max-width:none;
    min-width:0;
    min-height:100vh;
    margin:0;
    padding:30px clamp(24px,3vw,56px) 80px 88px;
  }
  .container > * {
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
  }
}
.part-preset-bar { display:flex; align-items:end; justify-content:space-between; gap:14px; margin:-6px 0 12px; padding:14px 16px; border:1px solid #b9d8c4; border-radius:10px; background:#f1f8f3; }.part-preset-fields{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1fr) minmax(280px,1.25fr);gap:12px;flex:1;min-width:0}.part-preset-title{display:flex;align-items:baseline;gap:10px;grid-column:1/-1}.part-preset-title small{color:var(--muted)}.part-preset-fields label{min-width:0}.part-preset-bar a { white-space:nowrap; }
.compact-filter { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }.compact-filter>label:first-child { flex:1 1 300px; }.table-actions { display:flex; align-items:center; gap:10px; }.text-button { padding:0; border:0; background:none; color:#0f6074; cursor:pointer; font:inherit; }
@media (max-width:900px) { .part-preset-bar { align-items:stretch; flex-direction:column; }.part-preset-fields{grid-template-columns:1fr}.part-preset-bar label { min-width:0; } }

/* Order detail: per-account customizable module layout. */
.order-layout-editor{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:15px 17px;border:1px solid #aad0b8;border-radius:14px;background:#eef8f1;box-shadow:0 6px 18px rgba(15,69,42,.06)}.order-layout-editor[hidden]{display:none}
.order-layout-editor>div:first-child{display:grid;gap:3px}.order-layout-editor small{color:var(--muted)}.order-layout-editor-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.order-layout-status{position:fixed;z-index:90;right:24px;bottom:24px;padding:12px 18px;border-radius:10px;background:#176d3d;color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.18)}.order-layout-status.is-error{background:#a9362a}
.order-layout-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.order-layout-module{grid-column:1/-1;min-width:0}.order-layout-module.layout-width-half{grid-column:span 1}
.order-layout-module-content>.panel,.order-layout-module-content>.detail-grid,.order-layout-module-content>.part-preset-bar{margin-top:0}.order-layout-module-content>:last-child{margin-bottom:0}
.order-layout-module-controls{display:none;align-items:center;gap:7px;margin-bottom:7px;padding:8px 10px;border:1px solid #c9ddd0;border-radius:10px;background:#f7fbf8;color:#164f32}.order-layout-module-controls button{min-height:32px;padding:4px 9px;border:1px solid #c6d5cc;border-radius:8px;background:#fff;color:#254e38;cursor:pointer}.order-layout-module-controls button:hover{border-color:#5b9c73;background:#edf7f0}.layout-drag{font-size:1.35rem;cursor:grab}.layout-control-spacer{flex:1}
.order-layout-grid.is-editing .order-layout-module{padding:8px;border:2px dashed #a8c9b4;border-radius:14px;background:rgba(239,248,242,.55)}.order-layout-grid.is-editing .order-layout-module-controls,.order-layout-module.is-collapsed-module>.order-layout-module-controls{display:flex}.order-layout-grid.is-editing .order-layout-module.is-dragging{opacity:.45}.order-layout-grid.is-editing .is-hidden-module{opacity:.55;background:#f3f3f3;border-color:#b8b8b8}.order-layout-grid:not(.is-editing) .is-hidden-module{display:none}.order-layout-module.is-collapsed-module:not(.is-hidden-module)>.order-layout-module-content{display:none}.order-layout-grid.is-editing .order-layout-module.is-collapsed-module>.order-layout-module-content{display:block;max-height:160px;overflow:hidden;opacity:.45;pointer-events:none}
@media (max-width:900px){.order-layout-grid{grid-template-columns:minmax(0,1fr);gap:14px}.order-layout-module.layout-width-half{grid-column:1/-1}.order-layout-editor{align-items:stretch;flex-direction:column}.order-layout-editor-actions{justify-content:stretch}.order-layout-editor-actions .button{flex:1}.order-layout-edit-button{font-size:0;width:38px;padding:0}.order-layout-edit-button::after{content:'版';font-size:.8rem}.order-layout-module-controls{flex-wrap:wrap}.layout-control-spacer{display:none}.order-layout-module-controls strong{flex:1}.order-layout-module-controls button{flex:1}}
@media print{.order-layout-editor,.order-layout-status,.order-layout-module-controls,.order-layout-edit-button{display:none!important}.order-layout-grid{display:block}.order-layout-module{break-inside:avoid}.order-layout-module+.order-layout-module{margin-top:18px}.order-layout-grid:not(.is-editing) .is-hidden-module{display:none}}
.stock-hero { display:grid; gap:3px; min-width:150px; padding:12px 16px; border:1px solid #a7d7b8; border-radius:10px; background:#f1f8f3; color:#166534; }.stock-hero strong { font-size:1.35rem; }.stock-hero.low { border-color:#fb923c; background:#fff7ed; color:#9a3412; }.stock-adjust-form { display:grid; grid-template-columns:1fr 1fr 2fr auto; gap:10px; align-items:end; }.stock-history { margin-top:18px; }.stock-in { color:#047857; font-weight:700; }.stock-out { color:#b45309; font-weight:700; }.low-stock-row { background:#fff7ed; }.low-stock-row td:first-child small { display:block; margin-top:3px; color:#c2410c; }.low-stock-summary>div:last-child { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }.low-stock-summary>div:last-child a { display:grid; gap:4px; padding:12px; border:1px solid #fb923c; border-radius:9px; background:#fff7ed; color:var(--text); text-decoration:none; }.low-stock-summary span,.low-stock-summary small { color:var(--muted); font-size:.8rem; }
.average-cost-display{display:grid;align-content:center;gap:3px;padding:11px 13px;border:1px solid #b8d7c3;border-radius:9px;background:#f1f8f3}.average-cost-display span{color:#426454;font-size:.82rem}.average-cost-display strong{color:#14532d;font-size:1.08rem}.average-cost-display small{color:var(--muted)}.restock-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;gap:11px;align-items:end;padding:16px;border:1px solid #a7d7b8;border-radius:12px;background:#f1f8f3}.restock-title{grid-column:1/-1;display:flex;align-items:baseline;gap:12px}.restock-title strong{color:#14532d;font-size:1.05rem}.restock-title small{color:var(--muted)}.restock-preview{grid-column:1/-2;display:flex;align-items:center;gap:12px;min-height:42px;padding:9px 12px;border:1px dashed #9bc8aa;border-radius:9px;background:#fff}.restock-preview span,.restock-preview small{color:var(--muted)}.restock-preview strong{color:#14532d}.manual-stock-adjust{margin-top:14px;border:1px solid #d7e0da;border-radius:10px;background:#fff}.manual-stock-adjust>summary{padding:12px 14px;color:#356148;font-weight:700;cursor:pointer}.manual-stock-adjust .stock-adjust-form{padding:0 14px 14px}.stock-history th,.stock-history td{white-space:nowrap}.stock-history td:nth-child(6){min-width:180px;white-space:normal}
@media (max-width:900px){.restock-form{grid-template-columns:1fr 1fr}.restock-preview{grid-column:1/-1}.restock-form>.button{grid-column:1/-1}.restock-title{align-items:flex-start;flex-direction:column;gap:3px}}@media (max-width:720px) { .stock-adjust-form,.low-stock-summary>div:last-child,.restock-form { grid-template-columns:1fr; }.restock-title,.restock-preview,.restock-form>.button{grid-column:1}.stock-history{overflow-x:auto} }
.inventory-heading { margin-bottom:18px; }.inventory-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:14px; border:1px solid #cdd4dc; border-radius:10px; background:#fff; overflow:hidden; }.inventory-summary>div { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 16px; border-right:1px solid #d8dee5; }.inventory-summary>div:last-child { border-right:0; }.inventory-summary span { color:var(--muted); }.inventory-summary strong { font-size:1.2rem; }.inventory-summary .alert { background:#fff7ed; color:#c2410c; }.inventory-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:10px; padding:12px 14px; border:1px solid #cbd3dc; border-bottom:0; border-radius:8px 8px 0 0; background:#f5f7fa; }.inventory-toolbar label { display:grid; gap:5px; }.inventory-toolbar label>span { color:#465466; font-size:.78rem; font-weight:700; }.inventory-search { flex:1 1 320px; }.inventory-inactive { display:flex!important; align-items:center; align-self:center; margin-top:18px; }.inventory-grid-panel { border:1px solid #bfc8d2; background:#fff; }.inventory-table-wrap { max-width:100%; overflow:auto; }.inventory-table { min-width:1420px; border-collapse:separate; border-spacing:0; font-size:.84rem; }.inventory-table th,.inventory-table td { padding:10px 9px; border-right:1px solid #cbd3dc; border-bottom:1px solid #cbd3dc; vertical-align:top; }.inventory-table th:last-child,.inventory-table td:last-child { border-right:0; }.inventory-table thead th { position:sticky; top:0; z-index:3; height:48px; background:#e8edf3; color:#1f2937; text-align:left; white-space:nowrap; }.inventory-table thead a { display:flex; align-items:center; justify-content:space-between; gap:12px; color:inherit; text-decoration:none; }.inventory-table tbody tr:nth-child(even) td { background:#f3f5f8; }.inventory-table tbody tr:hover td { background:#eef8f1; }.inventory-table .inventory-select { position:sticky; left:0; z-index:2; width:38px; min-width:38px; text-align:center; background:#fff; }.inventory-table thead .inventory-select { z-index:5; background:#e8edf3; }.inventory-table .inventory-product { position:sticky; left:38px; z-index:2; min-width:300px; max-width:300px; background:#fff; box-shadow:2px 0 0 #cbd3dc; }.inventory-table thead .inventory-product { z-index:5; background:#e8edf3; }.inventory-table tbody tr:nth-child(even) .inventory-select,.inventory-table tbody tr:nth-child(even) .inventory-product { background:#f3f5f8; }.inventory-product>div { display:grid; gap:3px; }.inventory-product strong { color:#164e75; font-size:.94rem; }.part-number { color:#111827; font-weight:600; }.inventory-product small,.inventory-number small,.inventory-price small { display:block; color:var(--muted); }.inventory-number,.inventory-price { min-width:115px; text-align:right; }.inventory-number strong { font-size:1rem; }.inventory-status { display:inline-flex; padding:4px 8px; border-radius:999px; white-space:nowrap; }.inventory-status.ok { background:#dcfce7; color:#166534; }.inventory-status.low { background:#ffedd5; color:#c2410c; }.inventory-status.inactive { background:#e2e8f0; color:#64748b; }.stock-dot { display:inline-block; width:11px; height:11px; border-radius:50%; }.stock-dot.ok { background:#22c55e; }.stock-dot.low { background:#f97316; }.stock-dot.inactive { background:#94a3b8; }.inventory-table .low-stock-row td { background:#fff8ef; }.inventory-table .inactive-stock-row { opacity:.7; }.inventory-actions { display:grid; gap:7px; min-width:110px; }.inventory-actions .button { text-align:center; }.inventory-table tbody tr:last-child td { border-bottom:0; }
.inventory-table .inventory-select { white-space:nowrap; }.inventory-table .inventory-select input { width:15px; height:15px; margin:0 4px 0 0; vertical-align:middle; accent-color:#15803d; }.inventory-table .inventory-select .stock-dot { vertical-align:middle; width:8px; height:8px; }
.quick-stock>summary { cursor:pointer; color:#087354; font-weight:700; white-space:nowrap; }.quick-stock[open] { min-width:190px; }.quick-stock form { display:grid; gap:7px; margin-top:8px; padding:9px; border:1px solid #cdd8d2; border-radius:8px; background:#f7faf8; }.quick-stock label { display:grid; gap:3px; color:#516070; font-size:.75rem; }.quick-stock input,.quick-stock select { min-width:0; padding:7px 8px; font-size:.8rem; }
.inventory-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 2px; color:var(--muted); }.inventory-pagination>div { display:flex; gap:8px; }
.usage-history-table { min-width:1120px; }.usage-history-table th:first-child,.usage-history-table td:first-child { min-width:145px; white-space:nowrap; }.usage-history-table th:nth-child(2),.usage-history-table td:nth-child(2) { min-width:135px; }.usage-history-table th:nth-child(3),.usage-history-table td:nth-child(3) { min-width:170px; }.usage-history-table th:nth-child(4),.usage-history-table td:nth-child(4) { min-width:200px; }.usage-history-toolbar input[type="date"] { min-width:155px; }
@media (min-width:1200px) { body:has(.inventory-grid-panel) .container { width:calc(100vw - 72px); max-width:none; } }
.inventory-table .table-subline { display:block; margin-top:.35rem; color:#497083; font-size:.78rem; line-height:1.35; }.inventory-table a.table-subline { color:#087354; font-weight:700; text-decoration:none; }.inventory-table a.table-subline:hover { text-decoration:underline; }.form-grid .full-width { grid-column:1 / -1; }
@media (max-width:720px) { .inventory-summary { grid-template-columns:1fr 1fr; }.inventory-summary>div:nth-child(2) { border-right:0; }.inventory-summary>div:nth-child(-n+2) { border-bottom:1px solid #d8dee5; }.inventory-toolbar .button { flex:1; }.inventory-table { min-width:1250px; }.inventory-table .inventory-product { min-width:240px; max-width:240px; } }

@media (max-width:720px) {
  .container,
  .nav-collapsed .container {
    width:100%;
    max-width:none;
    margin:0;
    padding:76px 16px 52px;
  }
  .container > * {
    width:100%;
    max-width:none;
    margin-left:0;
    margin-right:0;
  }
}
.service-log{max-height:28rem;overflow:auto;margin:1rem 0 0;padding:1rem;border-radius:.75rem;background:#10211a;color:#d9f5e7;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.health-live-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.health-live-state{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #cfe3d7;border-radius:999px;background:#f3faf5;color:#23613b;font-size:.8rem;white-space:nowrap}.health-live-state i{width:8px;height:8px;border-radius:50%;background:#22a35a;box-shadow:0 0 0 4px rgba(34,163,90,.12)}.health-live-state[data-state="updating"] i{animation:health-pulse 1s infinite}.health-live-state[data-state="paused"]{border-color:#dce1e5;background:#f5f6f7;color:#68727d}.health-live-state[data-state="paused"] i{background:#8a949e;box-shadow:none}.health-live-state[data-state="error"]{border-color:#f1b8ad;background:#fff5f2;color:#a83b28}.health-live-state[data-state="error"] i{background:#d34b35;box-shadow:0 0 0 4px rgba(211,75,53,.12)}[data-health-refresh][aria-busy="true"]{opacity:.65;pointer-events:none}@keyframes health-pulse{50%{opacity:.35;transform:scale(.75)}}
.health-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.health-group{min-width:0;overflow:hidden;border:1px solid #d6e0da;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(24,33,43,.045)}.health-group>header{display:flex;align-items:center;gap:12px;padding:17px 18px;border-bottom:1px solid #dfe7e2;background:linear-gradient(135deg,#f5faf7,#fbfcfb)}.health-group-icon{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:11px;background:#dff2e5;color:#166534;font-size:.82rem;font-weight:800}.health-group h2,.health-group p,.health-group dl,.health-group dd{margin:0}.health-group dl{display:block;grid-template-columns:none;gap:0}.health-group h2{font-size:1.05rem}.health-group header p{margin-top:3px;color:var(--muted);font-size:.78rem}.health-group dl>div{display:grid;grid-template-columns:minmax(88px,.42fr) minmax(0,1fr);gap:13px;align-items:start;padding:14px 18px;border-bottom:1px solid #edf1ef}.health-group dl>div:last-child{border-bottom:0}.health-group dt{padding-top:2px;color:var(--muted);font-size:.83rem}.health-group dd{display:grid;justify-items:end;gap:4px;min-width:0;text-align:right}.health-group dd strong{max-width:100%;color:#122033;font-size:1.02rem;overflow-wrap:normal;word-break:keep-all}.health-group dd small{max-width:100%;color:var(--muted);font-size:.75rem;line-height:1.4;overflow-wrap:anywhere}
@media (max-width:1180px){.health-groups{grid-template-columns:1fr 1fr}.health-group:last-child{grid-column:1/-1}.health-group:last-child dl{display:grid;grid-template-columns:1fr 1fr}.health-group:last-child dl>div:nth-child(odd){border-right:1px solid #edf1ef}}
@media (max-width:720px){.health-groups{grid-template-columns:1fr;gap:12px}.health-group:last-child{grid-column:auto}.health-group:last-child dl{display:block}.health-group:last-child dl>div:nth-child(odd){border-right:0}.health-group>header{padding:14px 15px}.health-group dl>div{grid-template-columns:100px minmax(0,1fr);padding:12px 15px}.health-group dd strong{font-size:.96rem}}
@media (max-width:720px){.health-live-controls{justify-content:flex-start;width:100%}.health-live-state{order:-1;width:100%;justify-content:center}}

/* Report and business settings layout */
.settings-heading{align-items:flex-end}
.settings-form{display:grid;gap:18px}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);gap:20px;align-items:start}
.settings-column{display:grid;gap:20px;min-width:0}
.settings-card{margin:0;padding:24px}
.settings-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}
.settings-section-heading>div{display:flex;align-items:center;gap:12px;min-width:0}
.settings-section-heading h2,.settings-section-heading p{margin:0}
.settings-section-heading p{margin-top:3px;color:var(--muted);font-size:.88rem}
.settings-section-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;background:#e6f4ea;color:#166534;font-weight:800}
.settings-tag{flex:none;padding:5px 9px;border-radius:999px;background:#f0f4f1;color:#48705a;font-size:.75rem}
.compact-settings-card{padding:21px 22px}
.compact-settings-card .settings-section-heading{margin-bottom:16px}
.setting-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:#f8faf9;cursor:pointer}
.setting-toggle>span{display:grid;gap:3px;min-width:0}
.setting-toggle small{color:var(--muted);font-weight:400;line-height:1.45}
.setting-toggle input{flex:0 0 auto;width:22px;height:22px;accent-color:var(--primary)}
.danger-toggle{border-color:#f0d0c5;background:#fffaf7}
.compact-warning{margin-top:4px;padding:11px 13px;font-size:.86rem}
.proxy-readiness{display:grid;gap:3px;margin-top:4px;padding:11px 13px;border:1px solid #9bc9aa;border-radius:9px;background:#f0faf3;color:#166534;font-size:.86rem}
.proxy-readiness span{color:#39724d}
.logo-upload{flex:1;min-width:230px}
.settings-save-bar{position:sticky;z-index:5;bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;border:1px solid #b8d6c2;border-radius:13px;background:rgba(248,253,249,.96);box-shadow:0 10px 32px rgba(13,52,31,.14);backdrop-filter:blur(10px)}
.settings-save-bar>div{display:grid;gap:2px}
.settings-save-bar span{color:var(--muted);font-size:.82rem}
.settings-save-bar .button:disabled{border-color:#9aa7a0;background:#9aa7a0;color:#fff;cursor:not-allowed;opacity:.72}
.settings-form.has-unsaved-changes .settings-save-bar{border-color:#82b996;background:#eff9f2;box-shadow:0 12px 30px rgba(22,101,52,.14)}
.session-expiry-warning{position:fixed;z-index:120;right:22px;bottom:22px;display:flex;align-items:center;gap:18px;max-width:min(520px,calc(100vw - 44px));padding:15px 16px;border:1px solid #f0b36f;border-radius:13px;background:#fff9ed;box-shadow:0 18px 45px rgba(60,39,12,.24);color:#7c3d08}
.session-expiry-warning[hidden]{display:none}
.session-expiry-warning>div{display:grid;gap:3px}
.session-expiry-warning span{font-size:.84rem;line-height:1.45}
.session-expiry-warning .button{flex:0 0 auto}
@media (max-width:720px){.session-expiry-warning{right:10px;bottom:10px;left:10px;max-width:none;align-items:stretch;flex-direction:column;gap:11px}.session-expiry-warning .button{width:100%}}
.certificate-card{margin-top:20px}
.text-link{white-space:nowrap;color:var(--primary);font-size:.84rem;font-weight:700}
.stack-list{display:grid;gap:12px}
.stack-list>.inline-form{padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8faf9}
.inline-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,2fr) auto auto;align-items:end;gap:12px}
.inline-form>.checkbox-line{align-self:center;white-space:nowrap}
.condition-create-form{grid-template-columns:minmax(280px,1fr) max-content max-content}
.condition-settings-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.condition-settings-list>.condition-setting-form{display:grid;grid-template-columns:minmax(0,1fr) max-content max-content;align-items:center;gap:12px;padding:16px}
.condition-settings-list>.condition-setting-form>label:first-child{grid-column:1/-1}
.condition-stage-settings{grid-column:1/-1;padding:11px 12px;border-color:#d5dfd9;background:#fff}.condition-stage-settings legend{color:#52606c;font-size:.8rem;font-weight:700}.condition-stage-settings>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.condition-stage-settings .switch-track{width:36px;height:21px}.condition-stage-settings .switch-track::after{width:15px;height:15px}.condition-stage-settings input:checked+.switch-track::after{transform:translateX(15px)}
.condition-settings-list>.condition-setting-form>.checkbox-line{justify-self:start;margin:0}
.switch-control{display:inline-flex;align-items:center;gap:9px;width:max-content;color:#475569;cursor:pointer;user-select:none}.switch-control input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.switch-track{position:relative;display:inline-block;flex:0 0 auto;width:42px;height:24px;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);transition:background .18s ease,box-shadow .18s ease}.switch-track::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.3);transition:transform .18s ease}.switch-control input:checked+.switch-track{background:#218049;box-shadow:inset 0 0 0 1px rgba(20,83,45,.15)}.switch-warning input:checked+.switch-track{background:#e87817}.switch-control input:checked+.switch-track::after{transform:translateX(18px)}.switch-control input:focus-visible+.switch-track{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}.switch-control:hover .switch-track{box-shadow:inset 0 0 0 1px rgba(15,23,42,.16),0 0 0 3px rgba(33,128,73,.08)}
.permission-group label.permission-switch{grid-template-columns:42px minmax(0,1fr);align-items:center}.permission-switch input{position:absolute;width:1px;height:1px;min-width:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.permission-switch .switch-track{grid-column:1;grid-row:1}.permission-switch>span:last-child{grid-column:2;grid-row:1}.permission-switch input:checked+.switch-track{background:#218049}.permission-switch input:checked+.switch-track::after{transform:translateX(18px)}.permission-switch input:focus-visible+.switch-track{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}
.setting-toggle>.switch-track{display:inline-block;min-width:42px;gap:0}
.inventory-inactive input{position:relative;display:inline-block;flex:0 0 auto;width:42px!important;height:24px;margin:0;padding:0!important;border:0;border-radius:999px;appearance:none;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);cursor:pointer;transition:background .18s ease}.inventory-inactive input::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.3);transition:transform .18s ease}.inventory-inactive input:checked{background:#218049}.inventory-inactive input:checked::after{transform:translateX(18px)}.inventory-inactive input:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}
.condition-settings-list>.condition-setting-form>.button{justify-self:end}
.part-category-create-form{grid-template-columns:minmax(280px,1fr) minmax(140px,220px) max-content}
.part-category-settings-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.part-category-settings-list>.part-category-setting-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,150px);align-items:end;gap:12px;padding:16px}
.part-category-usage{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 12px;border:1px solid #dce6df;border-radius:9px;background:#fff;color:var(--muted);font-size:.82rem}
.part-category-usage strong{color:#123f27;font-size:1.05rem}
.part-category-setting-form>.switch-control{align-self:center}
.part-category-setting-form>.button{justify-self:end;min-width:92px}
.vehicle-model-form{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(180px,1.2fr) minmax(120px,.8fr) minmax(220px,1.5fr) auto auto;align-items:end;gap:12px}
.stack-list>.vehicle-model-form{padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8faf9}
.vehicle-model-form>.checkbox-line{align-self:center;white-space:nowrap}
.vehicle-model-list>.vehicle-model-item{padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8faf9}
.vehicle-model-usage{display:flex;gap:8px;margin-top:12px}.vehicle-model-usage>span{padding:5px 9px;border-radius:999px;background:#e8f3ec;color:#52606c;font-size:.78rem}.vehicle-model-usage strong{color:#145c31}
.vehicle-model-delete-note{margin:10px 0 0;color:var(--muted);font-size:.8rem}
.vehicle-model-delete{margin-top:10px;padding:10px 12px;border:1px solid #fecaca;border-radius:9px;background:#fffafa}.vehicle-model-delete>summary{font-size:.82rem}.vehicle-model-delete form{margin-top:12px;padding-top:12px}

.report-toolbar.panel{padding:14px 16px}
.report-toolbar-title{display:flex;align-items:center;gap:14px;min-width:0}
.report-toolbar-title>div{display:grid;gap:2px;min-width:0}
.report-toolbar-title span{overflow:hidden;color:var(--muted);font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.report-options .button.selected{border-color:#9bc6aa;background:#e8f5ec;color:#145c31}
.report-download-button{padding-left:18px;padding-right:18px}
.repair-report{overflow:hidden;padding:0!important}
.repair-report>header,.repair-report>section,.repair-report>footer{padding-left:42px;padding-right:42px}
.repair-report section{padding-top:24px;padding-bottom:24px}
.report-header{padding-top:38px;padding-bottom:30px;background:linear-gradient(135deg,#f6fbf7 0%,#fff 62%)}
.report-version{display:inline-flex;padding:4px 9px;border-radius:999px;background:#e4f3e9;color:#166534!important;font-size:.75rem;font-weight:700}
.report-identity{display:grid;min-width:220px;padding:15px 17px;border:1px solid #cfe3d6;border-radius:11px;background:#fff;text-align:right}
.report-identity>span,.report-identity>small{color:var(--muted);font-size:.76rem}
.report-identity>strong{margin:3px 0;color:#123f27;font-size:1.25rem}
.report-header address span{display:inline-block;min-width:46px;color:#51715e;font-weight:700}
.report-section-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.report-section-title>span{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#e6f4ea;color:#166534;font-size:.72rem;font-weight:800}
.report-section-title h2{margin:0}
.report-overview{background:#fbfdfb}
.report-data-grid dl{margin:0;padding:16px 18px;border:1px solid #e0e9e3;border-radius:10px;background:#fff}
.report-emphasis{padding:15px 17px;border-left:4px solid #4b9566;border-radius:0 9px 9px 0;background:#f5faf6}
.report-ready-mark{display:grid!important;place-items:center;width:34px;height:34px;border-radius:50%;background:#1f7a40;color:#fff;font-weight:800;opacity:1!important}
.report-result{padding-top:22px!important;padding-bottom:22px!important;background:#f8fbf9}
.report-footer{padding-bottom:38px}

@media (max-width:980px){
  .settings-grid{grid-template-columns:1fr}
  .settings-column{gap:16px}
}
@media (max-width:720px){
  .settings-heading{align-items:stretch}
  .settings-heading .button{width:100%}
  .settings-card{padding:18px 16px}
  .settings-section-heading{align-items:flex-start}
  .settings-tag{display:none}
  .setting-toggle{align-items:flex-start}
  .settings-save-bar{bottom:8px;align-items:stretch;flex-direction:column;padding:12px}
  .settings-save-bar>div{display:none}
  .settings-save-bar .button{width:100%}
  .certificate-card .section-heading{align-items:stretch;flex-direction:column}
  .report-toolbar-title{align-items:stretch;flex-direction:column}
  .report-options{grid-template-columns:1fr 1fr}
  .report-download-button{grid-column:1/-1}
  .repair-report>header,.repair-report>section,.repair-report>footer{padding-left:18px;padding-right:18px}
  .report-header{padding-top:24px}
  .report-identity{min-width:0;text-align:left}
  .report-data-grid dl{padding:14px}
  .inline-form{grid-template-columns:1fr}
  .inline-form .button{width:100%}
  .condition-settings-list{grid-template-columns:1fr}
  .condition-settings-list>.condition-setting-form{grid-template-columns:1fr 1fr}
  .condition-settings-list>.condition-setting-form>.button{grid-column:1/-1;justify-self:stretch}
  .part-category-settings-list{grid-template-columns:1fr}
  .part-category-settings-list>.part-category-setting-form{grid-template-columns:1fr 1fr}
  .part-category-setting-form>.button{justify-self:stretch}
  .vehicle-model-form{grid-template-columns:1fr}
  .vehicle-model-form .button{width:100%}
}
@media print{
  .repair-report>header,.repair-report>section,.repair-report>footer{padding-left:0;padding-right:0}
  .report-header{background:#fff}
  .report-identity{border:0;padding-right:0}
  .report-section-title>span{border:1px solid #bbb;background:#fff;color:#111}
}

/* Shared popup editors keep dense row actions readable on desktop and mobile. */
body.ui-modal-open{overflow:hidden}
[data-modal-panel][hidden]{display:none!important}
.ui-modal-backdrop{position:fixed;z-index:198;inset:0;width:100%;height:100%;border:0;border-radius:0;background:rgba(15,32,43,.48);backdrop-filter:blur(2px);cursor:default}
.ui-modal-backdrop[hidden]{display:none}
.ui-modal-panel:not([hidden]),.ui-modal-details[open]{position:fixed!important;z-index:200!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;display:block!important;width:min(680px,calc(100vw - 32px))!important;max-width:680px!important;max-height:min(84vh,820px)!important;margin:0!important;padding:0!important;overflow:auto!important;transform:translate(-50%,-50%)!important;border:1px solid #c7d8cf!important;border-radius:18px!important;background:#fff!important;box-shadow:0 24px 64px rgba(17,38,29,.28)!important}
.ui-modal-details[open]{min-width:0!important}
.ui-modal-details[open]>summary{position:sticky;z-index:2;top:0;display:flex!important;align-items:center;justify-content:space-between;gap:16px;margin:0!important;padding:20px 24px!important;border:0!important;border-bottom:1px solid #e1e9e5!important;border-radius:0!important;background:#f7faf8!important;color:#153d2b!important;font-size:1.08rem;font-weight:750;cursor:pointer;list-style:none}
.ui-modal-details[open]>summary::-webkit-details-marker{display:none}
.ui-modal-details[open]>summary::after{content:'×';display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#e7f2eb;color:#176b3a;font-size:1.45rem;font-weight:400;line-height:1}
.ui-modal-details[open]>form{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;width:auto!important;min-width:0!important;margin:0!important;padding:22px 24px 24px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;transform:none!important}
.ui-modal-details[open]>form>*{grid-column:1!important;min-width:0}
.ui-modal-details[open] label{display:grid;gap:7px;margin:0;color:#435b50}
.ui-modal-details[open] input,.ui-modal-details[open] select,.ui-modal-details[open] textarea{width:100%;min-width:0}
.ui-modal-panel:not([hidden]){padding:0!important}
.ui-modal-panel>.ui-modal-header{position:sticky;z-index:2;top:0}
.ui-modal-panel>.ui-modal-header~*{margin-left:24px;margin-right:24px}
.ui-modal-panel>.ui-modal-header~*:last-child{margin-bottom:24px}
.ui-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid #e1e9e5;background:#f7faf8}
.ui-modal-header h3{margin:0;color:#153d2b;font-size:1.1rem}
.ui-modal-header p{margin:4px 0 0;color:#718179;font-size:.9rem}
.ui-modal-header>button{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;padding:0;border:0;border-radius:50%;background:#e7f2eb;color:#176b3a;font-size:1.45rem;cursor:pointer}
.ui-modal-context{margin:0!important;padding:11px 13px;border-radius:10px;background:#edf7f1;color:#315c47;font-weight:650}

@media (max-width:720px){
  .ui-modal-panel:not([hidden]),.ui-modal-details[open]{top:auto!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;max-height:88dvh!important;transform:none!important;border-width:1px 0 0!important;border-radius:20px 20px 0 0!important}
  .ui-modal-details[open]>summary{padding:18px 20px!important}
  .ui-modal-details[open]>form{padding:18px 20px 24px!important}
  .ui-modal-panel>.ui-modal-header~*{margin-left:20px;margin-right:20px}
  .ui-modal-header{padding:16px 18px}
}
@media print{
  .ui-modal-backdrop,.ui-modal-panel,.ui-modal-details{display:none!important}
}
