.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:4px 0 16px;overflow:auto}.tabs button{border:0;background:transparent;padding:11px 15px;white-space:nowrap;cursor:pointer;color:#52657a}.tabs button.active{color:var(--blue);border-bottom:2px solid var(--blue);font-weight:700}.photos{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.photo{aspect-ratio:4/3;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#f4f7fa}.photo img{width:100%;height:100%;object-fit:cover}.workflow-guide{background:linear-gradient(90deg,#eef6ff,#f8fbff);border:1px solid #d4e6fa;border-radius:12px;padding:14px 16px;margin-bottom:18px;display:flex;gap:10px;align-items:center;overflow:auto}.workflow-guide span{white-space:nowrap;color:#5d7187}.workflow-guide b{color:var(--blue)}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.chart-list{display:grid;gap:12px}.chart-row{display:grid;grid-template-columns:110px 1fr 80px;gap:10px;align-items:center}.chart-bar{height:12px;background:#e8eef5;border-radius:8px;overflow:hidden}.chart-bar i{display:block;height:100%;background:linear-gradient(90deg,#1677ff,#55b4ff)}.dictionary-layout{display:grid;grid-template-columns:210px 1fr;gap:16px}.dictionary-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:12px;border-radius:8px;cursor:pointer}.dictionary-menu button.active{background:#eaf3ff;color:#176ed4;font-weight:700}.receipt{font-family:"Microsoft YaHei",sans-serif;color:#111}.receipt h1{text-align:center}.receipt table{width:100%;border-collapse:collapse}.receipt td,.receipt th{border:1px solid #333;padding:7px}.print-only{display:none}.subtle{background:#f7f9fc;border:1px solid var(--line);border-radius:9px;padding:12px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}.section-title h3{margin:0}.status-actions{display:flex;gap:8px;flex-wrap:wrap}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.metric-note{font-size:13px;color:var(--muted);margin-top:4px}.dialog.extra-wide{width:min(1180px,96vw);max-height:94vh}.btn:disabled{opacity:.5;cursor:not-allowed}.full{width:100%}.dialog h3{margin:18px 0 10px}.history{max-height:260px;overflow:auto}@media print{body>*{display:none!important}#printArea{display:block!important;position:absolute;inset:0;background:white;padding:12mm;font-size:14px}.no-print{display:none!important}}@media(max-width:950px){.report-grid,.dictionary-layout{grid-template-columns:1fr}.photos{grid-template-columns:repeat(2,1fr)}}
.badge.REPAIR_COMPLETE{background:#e7f8f4;color:#087f6d}.repair-modal .history .btn{padding:4px 9px;font-size:12px}.repair-modal .timeline{padding-bottom:4px}
.scope-picker{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#52657a;font-size:14px}.scope-picker select{border:0;background:transparent;font-weight:700;color:#12324f;outline:0}.store-chip{padding:8px 12px;border-radius:20px;background:#eaf3ff;color:#176ed4;font-weight:700;font-size:14px}@media(max-width:760px){.scope-picker{order:3;width:100%}.scope-picker select{flex:1}}
.dictionary-menu{padding:8px;align-self:start;position:sticky;top:12px}.dictionary-menu button{display:flex;align-items:center;justify-content:space-between;margin:3px 0;border-left:4px solid transparent}.dictionary-menu button b{min-width:28px;text-align:center;padding:2px 7px;border-radius:12px;background:#edf1f6;color:#6a7b8d;font-size:12px}.dictionary-menu button:hover{background:#f2f7fd;color:#176ed4}.dictionary-menu button.active{background:#e5f1ff;color:#075fb9;border-left-color:#1677ff;box-shadow:0 2px 8px rgba(22,119,255,.12)}.dictionary-menu button.active b{background:#1677ff;color:#fff}.dictionary-panel{min-height:360px}.upload-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.upload-preview>.hint{grid-column:1/-1}.upload-preview-item{display:flex;gap:9px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;min-width:0}.upload-preview-item img{width:72px;height:58px;object-fit:cover;border-radius:6px;background:#e9eef4}.upload-preview-item span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-preview-item small{display:block;color:#718298;margin-top:5px}@media(max-width:760px){.upload-preview{grid-template-columns:1fr}.dictionary-menu{position:static}}
.dictionary-menu{padding:8px;align-self:start;position:sticky;top:12px}.dictionary-menu button{display:flex;align-items:center;justify-content:space-between;margin:3px 0;border-left:4px solid transparent}.dictionary-menu button b{min-width:28px;text-align:center;padding:2px 7px;border-radius:12px;background:#edf1f6;color:#6a7b8d;font-size:12px}.dictionary-menu button:hover{background:#f2f7fd;color:#176ed4}.dictionary-menu button.active{background:#e5f1ff;color:#075fb9;border-left-color:#1677ff;box-shadow:0 2px 8px rgba(22,119,255,.12)}.dictionary-menu button.active b{background:#1677ff;color:#fff}.dictionary-panel{min-height:360px}.upload-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.upload-preview>.hint{grid-column:1/-1}.upload-preview-item{display:flex;gap:9px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;min-width:0}.upload-preview-item img{width:72px;height:58px;object-fit:cover;border-radius:6px;background:#e9eef4}.upload-preview-item span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-preview-item small{display:block;color:#718298;margin-top:5px}.upload-preview-item small.compressing{color:#b26800}.upload-preview-item small.ready{color:#16803c}.upload-preview-item small.failed{color:#c73535;white-space:normal}@media(max-width:760px){.upload-preview{grid-template-columns:1fr}.dictionary-menu{position:static}}
.language-picker{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#52657a;font-size:13px}.language-picker select{border:0;background:transparent;outline:0;font-weight:700}.login-language{position:fixed;right:22px;top:18px}.attachment-zone{margin-top:8px;padding:14px;border:2px dashed #b9d5f5;border-radius:12px;background:#f7fbff}.attachment-zone h3{margin:0 0 10px;color:#176ed4}.inactive-row{opacity:.58;background:#f7f7f7}.btn.danger{color:#c73535;border-color:#efb8b8;background:#fff}.permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.permission-summary{display:block;max-width:380px;white-space:normal;line-height:1.5}.pending-photo{outline:2px solid #77aef0;border-radius:9px;padding:3px}@media(max-width:760px){.language-picker{order:4}.permission-grid{grid-template-columns:1fr 1fr}}
.dictionary-layout,.dictionary-layout>*{min-width:0}.dictionary-panel,#dictionaryPanel{min-width:0;max-width:100%}.dictionary-panel .table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.stock-editor{display:flex;align-items:center;gap:5px}.stock-editor .btn{padding:6px 10px}.stock-editor input{width:76px;padding:7px;text-align:center;border:1px solid var(--line);border-radius:7px}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.payment-filter label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px}.payment-cards{grid-template-columns:repeat(4,minmax(160px,1fr))}.read-only-card input,.read-only-card textarea,.read-only-card select{pointer-events:none;background:#f4f6f8}.main,.content{min-width:0;max-width:100%}@media(min-width:951px){.shell{grid-template-columns:245px minmax(0,1fr);width:100%;overflow-x:hidden}.main{width:calc(100vw - 245px);overflow-x:hidden}.top{gap:10px}.top .search{flex:1;min-width:180px;width:auto}.scope-picker,.language-picker,.user{flex-shrink:0}}@media(max-width:950px){.main{width:100%}.payment-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.payment-cards{grid-template-columns:1fr}.payment-filter label{width:100%;justify-content:space-between}.payment-filter input,.payment-filter select{flex:1}}

/* V4.3.2：紧凑页面布局与统一分页 */
.top{height:56px;padding:0 24px;justify-content:flex-end;gap:10px}
.content{padding:14px 24px 32px}
.pagehead{margin-bottom:12px;min-height:38px}
.pagehead>div{display:flex;align-items:baseline;gap:14px;min-width:0;flex-wrap:wrap}
.pagehead .hint{margin:0}
.pagehead h1{font-size:23px;line-height:1.2}
.workflow-guide{padding:10px 14px;margin-bottom:12px}
.toolbar{margin-bottom:10px}
.cards{gap:12px}
.card{padding:16px}
.grid2,.report-grid{margin-top:12px!important}
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:11px 4px 0;color:#5f7084;font-size:14px}
.pagination-total{margin-right:auto}
.pagination label{display:flex;align-items:center;gap:6px}
.pagination select,.pagination input{border:1px solid var(--line);background:#fff;border-radius:7px;padding:7px 9px;outline:none}
.pagination select{min-width:68px}
.pagination input{width:68px;text-align:center}
.pagination .btn{padding:7px 12px}
@media(max-width:760px){.top{height:auto;min-height:56px;flex-wrap:wrap;padding:8px 14px}.content{padding:12px 14px 28px}.pagehead>div{gap:6px}.pagination{justify-content:center}.pagination-total{width:100%;margin:0;text-align:center}.page-jump{width:auto}}

/* V4.4：多项目接单、门店设置、客户历史与双纸型回执 */
[hidden]{display:none!important}
.order-entry{padding:20px;background:#f6f8fb}.order-entry .dialog-head{position:sticky;top:-20px;z-index:3;background:#fff;margin:-20px -20px 12px;padding:16px 20px;border-bottom:1px solid var(--line)}.entry-section{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:10px 0}.entry-section>h3{margin:0 0 8px}.form-grid.three{grid-template-columns:repeat(3,1fr);gap:0 14px}.order-items-head,.order-item-row{display:grid;grid-template-columns:34px minmax(220px,1fr) 90px 130px 130px 74px;gap:8px;align-items:center}.order-items-head{padding:8px 10px;color:var(--muted);font-size:13px;background:#f6f8fb;border-radius:8px}.order-item-row{padding:8px 10px;border-bottom:1px solid #edf1f5}.order-item-row input{width:100%;border:1px solid var(--line);border-radius:8px;padding:9px}.item-index{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#eaf3ff;color:#176ed4;font-weight:700}.quote-total{text-align:right;padding:14px 10px 4px;font-size:17px}.quote-total b{font-size:24px;color:#176ed4;margin-left:10px}.sticky-actions{position:sticky;bottom:-20px;background:#fff;margin:14px -20px -20px;padding:14px 20px;border-top:1px solid var(--line);z-index:3}.pattern-wrap{display:flex;gap:18px;align-items:center;padding:10px;background:#f7faff;border:1px solid #dbe9f8;border-radius:12px}.pattern-wrap canvas{width:240px;height:240px;max-width:50vw;touch-action:none;background:#fff;border-radius:10px;cursor:crosshair}.pattern-preview{width:96px;height:96px;background:#f7faff;border-radius:8px}.pattern-preview line{stroke:#1677ff;stroke-width:5;stroke-linecap:round}.pattern-preview circle{fill:#cbd8e6}.pattern-preview circle.active{fill:#1677ff}.photo-item{position:relative;min-width:0}.photo-item small{display:block;margin:5px 0;overflow:hidden;text-overflow:ellipsis}.photo-delete{padding:4px 9px;font-size:12px;width:100%}.store-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:14px}.store-setting-card{text-align:center}.store-logo-preview{height:78px;display:grid;place-items:center;margin-bottom:8px}.store-logo-preview img{max-width:160px;max-height:70px;object-fit:contain}.store-logo-preview strong{font-size:24px;color:#123b5d}.disclaimer-preview{min-height:42px}.logo-upload-preview{min-height:100px;display:grid;place-items:center;border:1px dashed #b9cde2;border-radius:10px;padding:8px}.logo-upload-preview img{max-width:220px;max-height:100px;object-fit:contain}.customer-table tbody tr{cursor:pointer}.customer-table .selected-row{background:#eaf3ff!important;box-shadow:inset 4px 0 #1677ff}.customer-profile{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.customer-profile>div{padding:13px;background:#f6f9fc;border-radius:9px;display:grid;gap:5px}.customer-profile span{color:var(--muted);font-size:13px}.cards-three{grid-template-columns:repeat(3,1fr)}.sales-summary{margin-top:12px}.sale-value{font-size:24px;font-weight:800;color:#176ed4;margin:8px 0}.sale-complete{padding:10px;background:#e9f8ef;color:#13854b;border-radius:8px}.detail-total{text-align:right;font-size:17px;padding:13px 4px}.receipt-brand{display:flex;align-items:center;justify-content:center;gap:14px;text-align:left;border-bottom:2px solid #111;padding-bottom:8px}.receipt-brand img{max-width:120px;max-height:60px;object-fit:contain}.receipt-brand strong{font-size:25px}.receipt-brand h2,.receipt-brand p{margin:2px 0}.receipt-no{text-align:center}.receipt-items{margin-top:4px}.receipt-total{font-weight:800}.receipt-disclaimer{margin-top:14px;padding:9px;border:1px dashed #555;font-size:12px;line-height:1.55}.receipt-sign{display:flex;justify-content:space-between;gap:20px;margin-top:32px}.paper-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.paper-option{display:grid;gap:5px;border:2px solid var(--line);border-radius:12px;padding:18px;cursor:pointer}.paper-option:has(input:checked){border-color:#1677ff;background:#eef6ff}.paper-option input{justify-self:start}.paper-option span{color:var(--muted);font-size:13px}
@media print{#printArea.paper-a4{width:190mm;padding:0;margin:0 auto;font-size:13px}#printArea.paper-thermal{width:74mm;padding:0;margin:0;font-size:10px}#printArea.paper-thermal .receipt-brand{gap:6px}#printArea.paper-thermal .receipt-brand img{max-width:50px;max-height:36px}#printArea.paper-thermal .receipt-brand strong{font-size:17px}#printArea.paper-thermal h1{font-size:17px;margin:8px 0}#printArea.paper-thermal h2{font-size:13px}#printArea.paper-thermal h3{font-size:11px;margin:8px 0 4px}#printArea.paper-thermal .receipt td,#printArea.paper-thermal .receipt th{padding:3px;font-size:9px}#printArea.paper-thermal .receipt-sign{display:grid;gap:18px;margin-top:20px}}
@media(max-width:980px){.form-grid.three{grid-template-columns:1fr 1fr}.order-items-head{display:none}.order-item-row{grid-template-columns:30px 1fr 70px 100px}.order-item-row [data-item-subtotal]{grid-column:2/4}.store-settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.form-grid.three{grid-template-columns:1fr}.order-item-row{grid-template-columns:28px 1fr}.order-item-row input,.order-item-row button,.order-item-row b{grid-column:2}.pattern-wrap{display:grid}.pattern-wrap canvas{max-width:100%;width:220px;height:220px}.store-settings-grid,.customer-profile,.cards-three,.paper-options{grid-template-columns:1fr}}

/* V4.5：今日总结、字典检索与回执排版 */
.receipt-sign{display:flex!important;flex-wrap:nowrap;justify-content:space-between;gap:12px}.receipt-sign span{white-space:nowrap}.daily-summary-form{margin-bottom:16px}.daily-summary-list{margin-top:16px}.order-item-row input[readonly]{background:#eef2f6;color:#34495e;cursor:not-allowed}
@media print{#printArea.paper-thermal .receipt-sign{display:flex!important;gap:6px;margin-top:20px;font-size:8px}}

/* V4.6：维修配件出库与库存并发保护 */
.part-usage-table td{vertical-align:middle}.part-usage-table b{color:#176ed4;font-size:16px}.stock-warning{padding:10px 12px;border-radius:8px;background:#fff7e6;color:#9a5a00;border:1px solid #ffe0a3;line-height:1.55}

/* V4.7：紧凑订单、附件追加与双联回执 */
.order-entry{padding:14px}.order-entry .dialog-head{top:-14px;margin:-14px -14px 8px;padding:11px 14px}.order-entry .entry-section{padding:8px 12px;margin:5px 0}.order-entry .entry-section>h3{margin-bottom:5px}.order-entry .field{margin-bottom:5px}.order-entry .field label{margin-bottom:3px}.order-entry input,.order-entry select,.order-entry textarea{padding:7px 9px}.order-entry .order-item-row{padding:5px 8px}.order-entry .sticky-actions{bottom:-14px;margin:8px -14px -14px;padding:10px 14px}.compact-order .dialog-head{margin-bottom:6px}.upload-preview-item{grid-template-columns:72px minmax(0,1fr) auto!important}.upload-preview-item .btn{align-self:center}.receipt-copy-actions{flex-wrap:wrap}.receipt-copy2 .receipt-no{font-weight:700;border-bottom:1px solid #111;padding-bottom:6px}.receipt-copy2{padding-top:0}.receipt-copy2 .pattern-preview{width:70px;height:70px}
