@import"https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Roboto+Mono:wght@500&display=swap";:root{font-family:Noto Sans SC,Microsoft YaHei,sans-serif;color:#17202b;background:#edf1f4;font-synthesis:none;--nav:#172432;--blue:#2457d6;--line:#d5dde5;--muted:#687687;--paper:#fff;--soft:#f5f7f9;--green:#167a53;--amber:#a86409;--red:#bd3440}*{box-sizing:border-box}body{margin:0;min-width:1100px;min-height:100vh}button,input,select,textarea{font:inherit}button,a{transition:.16s ease}.app-shell{min-height:100vh;display:grid;grid-template-columns:226px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:var(--nav);color:#dbe4ed;padding:22px 14px 14px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 25px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:#f4f6f8;color:#142234;font-weight:800;letter-spacing:-1px;border-radius:4px}.brand strong,.brand small{display:block}.brand small{color:#8fa0b0;font-size:11px;letter-spacing:2px;margin-top:1px}.sidebar nav{display:grid;gap:3px}.sidebar nav a{display:flex;align-items:center;gap:11px;color:#afbdc9;text-decoration:none;padding:10px 11px;border-radius:5px;font-size:14px}.sidebar nav a:hover{background:#213344;color:#fff}.sidebar nav a.active{background:#f2f5f7;color:#142234;font-weight:600}.sidebar-foot{margin-top:auto;border-top:1px solid #30404e;padding:14px 4px 2px;display:flex;align-items:center;justify-content:space-between}.user-chip{display:flex;align-items:center;gap:8px}.user-chip>span{width:29px;height:29px;border:1px solid #506171;border-radius:50%;display:grid;place-items:center}.user-chip strong,.user-chip small{display:block;font-size:12px}.user-chip small{color:#8091a1}.icon-button{border:0;background:transparent;color:inherit;padding:7px;display:grid;place-items:center;border-radius:4px;cursor:pointer}.icon-button:hover{background:#e8edf1}.sidebar .icon-button:hover{background:#2a3a48}.workspace{grid-column:2;min-width:0}.titlebar{height:56px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:4}.titlebar>div{display:flex;align-items:center;gap:18px}.workspace-name{font-weight:650}.connection-state{font-size:12px;color:var(--muted)}.connection-state i,.live-label i{display:inline-block;width:7px;height:7px;background:#2b9b6b;border-radius:50%;margin-right:6px}.quick-hint{font-size:12px;color:var(--muted)}kbd{background:#f0f3f5;border:1px solid #ccd4dc;border-radius:3px;padding:1px 5px}main{padding:28px;max-width:1600px;margin:auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.page-header h1{font-size:26px;margin:0 0 5px;letter-spacing:-.5px}.page-header p{margin:0;color:var(--muted);font-size:14px}.page-actions{display:flex;gap:8px}.button{border:1px solid transparent;border-radius:4px;padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;font-size:13px;cursor:pointer;text-decoration:none}.button:disabled{opacity:.5;cursor:not-allowed}.button-primary{background:var(--blue);color:#fff}.button-primary:hover{background:#1948bd}.button-secondary{background:#fff;color:#273647;border-color:#cbd4dc}.button-ghost{color:#536170;background:transparent}.button-danger{background:var(--red);color:#fff}.metric-strip{display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border:1px solid var(--line);border-radius:5px;margin-bottom:16px}.metric-strip>div{padding:17px 20px;border-right:1px solid var(--line)}.metric-strip>div:last-child{border:0}.metric-strip strong{font:500 27px/1.25 Roboto Mono,monospace}.workbench-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;margin-bottom:16px}.ledger-panel,.exception-panel,.focus-panel{background:#fff;border:1px solid var(--line);border-radius:5px}.panel-heading{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start}.panel-heading h2,.settings-grid h2{font-size:15px;margin:0 0 3px}.panel-heading p,.settings-grid p{font-size:12px;color:var(--muted);margin:0}.panel-heading a{font-size:13px;color:var(--blue);text-decoration:none}.live-label{font-size:11px;color:var(--green)}.process-rail{display:grid;grid-template-columns:repeat(5,1fr);padding:18px;gap:1px;background:#f4f6f8}.process-stop{position:relative;background:#fff;border:1px solid #dbe1e6;padding:12px;min-height:74px;display:flex;gap:9px;align-items:flex-start}.process-stop>span{font:500 11px Roboto Mono;color:#91a0af}.process-stop strong,.process-stop small{display:block}.process-stop strong{font-size:13px}.process-stop small{font-size:11px;color:var(--muted);margin-top:4px}.process-stop svg{position:absolute;right:-9px;top:29px;z-index:2;background:#fff;color:#9aa7b3}.exception-panel .panel-heading svg{color:var(--amber)}.exception-list>div{display:flex;align-items:center;gap:10px;padding:15px 16px;border-bottom:1px solid #e7ebef}.exception-list span{flex:1}.exception-list strong,.exception-list small{display:block;font-size:12px}.exception-list small{color:var(--muted);margin-top:2px}.exception-list b{font:500 18px Roboto Mono}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:5px}.ledger-panel .table-wrap{border:0;border-radius:0}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-size:11px;color:#667586;background:#f4f6f8;font-weight:600;padding:10px 13px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:12px 13px;border-bottom:1px solid #e5eaee;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fafb}td strong,td small{display:block}td small{font-size:11px;color:var(--muted);margin-top:2px}.code-cell{font:500 12px Roboto Mono;color:#274561;white-space:nowrap}.status-tag{display:inline-flex;padding:3px 7px;border-radius:3px;font-size:11px;font-weight:600;background:#edf0f3;color:#566574}.status-success{background:#e4f3ed;color:var(--green)}.status-warning{background:#fff0d7;color:var(--amber)}.status-danger{background:#fde7e9;color:var(--red)}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.toolbar-note{font-size:12px;color:var(--muted);display:flex;gap:6px}.search-box{height:37px;width:330px;background:#fff;border:1px solid #cbd4dc;border-radius:4px;display:flex;align-items:center;gap:8px;padding:0 10px;color:#708090}.search-box input{border:0;outline:0;flex:1;background:transparent}.empty-state,.loading-state,.error-state{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#738191;background:#fff;border:1px solid var(--line);border-radius:5px}.empty-state strong{color:#344353}.empty-state span{font-size:13px}.loading-state,.error-state{flex-direction:row;min-height:100px}.error-state{color:var(--red);background:#fff7f7}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.drawer-backdrop{position:fixed;inset:0;background:#10202f66;z-index:20}.form-drawer{position:absolute;right:0;top:0;bottom:0;width:620px;background:#fff;box-shadow:-18px 0 50px #1122332b;display:flex;flex-direction:column}.form-drawer>header{padding:22px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.form-drawer h2{margin:0 0 4px;font-size:20px}.form-drawer header p{margin:0;color:var(--muted);font-size:12px}.form-drawer form{padding:23px 25px;overflow:auto;display:grid;gap:16px}.form-drawer footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:17px}.form-grid{display:grid;gap:12px}.form-grid.two{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:repeat(3,1fr)}.field{display:grid;gap:6px}.field-label{font-size:12px;font-weight:600;color:#3e4d5d}.field-hint,.field-error{font-size:11px;color:var(--muted)}.field-error{color:var(--red)}.input{width:100%;border:1px solid #c8d1da;background:#fff;border-radius:4px;padding:8px 10px;outline:0;color:#1d2b38}.input:focus{border-color:var(--blue);box-shadow:0 0 0 2px #2457d61c}.textarea{resize:vertical}.check-row{display:flex;gap:22px;font-size:13px}.check-row label{display:flex;gap:6px;align-items:center}.focus-panel{text-align:center;padding:80px 30px}.focus-panel svg{color:var(--blue)}.focus-panel h2{margin:13px 0 5px}.focus-panel p{max-width:530px;margin:0 auto 20px;color:var(--muted);font-size:13px}.settings-grid{padding:20px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.settings-grid>div{background:#f5f7f9;border:1px solid #dce3e8;padding:18px}.boot-screen{height:100vh;display:flex;align-items:center;justify-content:center;gap:14px;color:#536170}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 520px;background:#142331}.auth-panel{grid-column:2;background:#f7f9fa;padding:12vh 65px}.auth-panel h1{font-size:28px}.auth-panel form{display:grid;gap:15px;margin-top:30px}.auth-panel .brand-mark{margin-bottom:30px;background:#172432;color:#fff}@media(max-width:1250px){.process-rail,.metric-strip{grid-template-columns:repeat(3,1fr)}.metric-strip>div:nth-child(3){border-right:0}.workbench-grid,.settings-grid{grid-template-columns:1fr}}.money{font-variant-numeric:tabular-nums;font-weight:650}.market-strip{display:flex;align-items:stretch;background:#fff;border:1px solid #e3e8ee;border-radius:12px;box-shadow:0 1px 3px #1724320f;margin-bottom:12px;overflow:hidden}.market-cell{display:flex;align-items:center;gap:12px;padding:11px 16px;min-width:188px}.market-cell+.market-cell{border-left:1px solid #eef1f5}.market-symbol{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font:700 12px Roboto Mono,monospace;flex:none}.market-cell.gold .market-symbol{background:linear-gradient(135deg,#fdf1cf,#f7e4aa);color:#8a6a12;border:1px solid #ecd99a}.market-cell.platinum .market-symbol{background:linear-gradient(135deg,#eef2f6,#e0e7ee);color:#3d5266;border:1px solid #d5dde5}.market-cell.silver .market-symbol{background:linear-gradient(135deg,#f3f5f7,#e6eaef);color:#48586a;border:1px solid #dbe1e7}.market-cell small,.market-cell strong{display:block}.market-cell small{font-size:10px;letter-spacing:.4px;color:#8a97a5}.market-cell strong{font:700 19px Roboto Mono,monospace;color:#172432;margin-top:2px;line-height:1.1}.market-range{display:block;font-size:10px;color:#9aa6b2;margin-top:4px;font-family:Roboto Mono,monospace;white-space:nowrap}.market-range b{color:#b8860b;font-weight:600}.market-action{margin-left:auto;display:flex;align-items:center;gap:14px;padding:0 16px;white-space:nowrap}.market-live{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:#1c7c43}.market-live i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px #22c55e24}.market-live small{display:block;font-weight:400;color:#8a97a5;font-size:10px}.market-live.stale{color:#b45309}.market-live.stale i{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b24}.quote-ledger{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #d5dde5}.quote-ledger>div{padding:8px 10px;border-right:1px solid #d5dde5;background:#f7f9fa}.quote-ledger span,.quote-ledger b{display:block}.quote-ledger span{font-size:8px;color:#687687}.quote-ledger b{font:600 11px Roboto Mono,monospace;margin-top:2px}.quote-ledger .quote-grand{grid-column:1/-1;background:#172432;color:#fff;border:0;display:flex;align-items:center;justify-content:space-between;padding:10px 14px}.quote-grand span{color:#c8d3dc;font-size:10px}.quote-grand strong{font:600 20px Roboto Mono,monospace}.quote-context{display:flex;align-items:end;gap:12px;background:#fff;border:1px solid var(--line);padding:10px 14px;margin-bottom:10px}.quote-context .field{flex:1}.text-action{border:0;background:transparent;color:var(--blue);font-size:11px;cursor:pointer;padding:6px}.quote-calculator-layout{display:grid;grid-template-columns:minmax(280px,.6fr) minmax(600px,1.4fr);gap:12px;align-items:start}.quote-image-panel,.quote-calc-panel{background:#fff;border:1px solid var(--line)}.quote-panel-heading{min-height:46px;padding:8px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.quote-panel-heading h2{font-size:14px;margin:0}.quote-panel-heading span{font-size:10px;color:var(--muted)}.original-image-drop{margin:12px;height:260px;border:1px dashed #9eabb7;background:#f7f9fa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#687687;cursor:pointer;overflow:hidden}.original-image-drop strong{font-size:12px;color:#344353}.original-image-drop span{font-size:10px}.original-image-drop.has-image{border-style:solid}.original-image-drop img{width:100%;height:100%;object-fit:contain}.recognition-note{margin:0 12px 10px;padding:7px;background:#e8f4ee;color:#167a53;font-size:10px}.quote-reference-prices{margin:12px;border-top:1px solid var(--line);padding-top:10px}.quote-reference-prices h3{font-size:12px;margin:0}.quote-reference-prices>div span{font-size:9px;color:var(--muted)}.quote-reference-prices dl{display:grid;grid-template-columns:1fr 1fr;margin:10px 0 0;border:1px solid var(--line)}.quote-reference-prices dl div{padding:7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.quote-reference-prices dt{font-size:9px;color:var(--muted)}.quote-reference-prices dd{margin:2px 0 0;font:600 11px Roboto Mono,monospace}.quote-live-total{font:600 20px Roboto Mono,monospace;color:var(--blue)}.quote-input-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:10px 12px}.labor-row{margin:0 12px 12px;padding:10px;background:#f4f6f8;display:grid;grid-template-columns:1fr 180px 1fr;align-items:end;gap:12px}.labor-row>label{align-self:center;font-size:11px;display:flex;align-items:center;gap:6px}.labor-row output{font-size:10px;color:var(--muted);align-self:center}.stone-section-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-top:1px solid var(--line)}.stone-section-heading>div{display:flex;align-items:center;gap:6px}.stone-section-heading h3{margin:0;font-size:13px}.stone-section-heading span{font-size:9px;color:var(--muted)}.cultured-toggle{border:1px solid #c6d0da;background:#fff;padding:5px 8px;font-size:10px;cursor:pointer}.cultured-toggle.active{background:#172432;color:#fff;border-color:#172432}.original-stone-table{margin:0 12px 12px}.stone-table-head,.original-stone-row{display:grid;grid-template-columns:minmax(64px,.85fr) minmax(88px,1.4fr) minmax(54px,.65fr) minmax(54px,.65fr) minmax(54px,.65fr) auto;gap:8px;align-items:center}.stone-table-head{padding-bottom:4px;font-size:12px;font-weight:500;color:#475569}.stone-table-head span:last-child{width:40px}.stone-table-head .auto-hint{font-size:10px;font-weight:500;color:#8b5cf6;margin-left:2px}.original-stone-row{margin-bottom:8px}.stone-cell{width:100%;height:auto;min-height:38px;border:2px solid #e2e8f0;border-radius:8px;font-size:13px;line-height:1.5;background:#fff;color:#1e293b;padding:6px 9px;box-sizing:border-box}.original-stone-row .stone-cell:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf61f;outline:none}.original-stone-row .stone-cell.auto-filled{background:#f5f3ff;border-color:#c4b5fd}.original-stone-row .stone-cell:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}.stone-actions{display:flex;gap:6px;flex-shrink:0;align-items:center}.stone-btn{width:38px;height:38px;box-sizing:border-box;border:2px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;font-size:19px;font-weight:600;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.stone-btn.add:hover{border-color:#8b5cf6;color:#8b5cf6;background:#f5f3ff}.stone-btn.remove{border-color:#fca5a5;color:#ef4444;background:#fef2f2}.stone-btn.remove:hover{border-color:#ef4444;color:#dc2626;background:#fee2e2}.stone-summary{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-top:4px;font-size:12px;color:#475569}.stone-summary .summary-label{color:#64748b}.stone-summary b{font-weight:600;color:#1e293b;font-variant-numeric:tabular-nums}.stone-summary .summary-divider{color:#cbd5e1}.quote-ledger.original{margin:0 12px 12px}.quote-history{margin-top:12px}.settings-section{margin-top:16px}.settings-section>.table-wrap{border:0;border-radius:0}.ai-settings-form{display:grid;grid-template-columns:2fr 1fr 1.4fr auto;gap:12px;align-items:end;padding:18px}.ai-settings-form .button{height:36px}.ai-setting-actions{display:flex;gap:6px}.connection-ok,.connection-warning{margin:0 18px 18px;padding:9px 11px;font-size:11px}.connection-ok{background:#e4f3ed;color:#167a53}.connection-warning{background:#fff0d7;color:#a86409}.ai-settings>.error-state{margin:0 18px 18px;min-height:55px}.setting-group-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:14px}.settings-zone-tabs{display:flex;gap:8px;margin-bottom:12px}.settings-zone-tabs button{border:1px solid var(--line);background:#fff;padding:9px 22px;font-size:13px;font-weight:600;color:#536170;cursor:pointer}.settings-zone-tabs button.active{background:#172432;border-color:#172432;color:#fff}.settings-sub-tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.settings-sub-tabs button{border:1px solid var(--line);background:#fff;padding:7px 16px;font-size:12px;color:#536170;cursor:pointer}.settings-sub-tabs button.active{background:#eef4ff;border-color:var(--blue);color:var(--blue);font-weight:600}.setting-group-tabs button{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--line);background:#fff;padding:13px;cursor:pointer;color:#536170}.setting-group-tabs button svg{flex:0 0 auto}.setting-group-tabs button strong,.setting-group-tabs button small{display:block}.setting-group-tabs button strong{font-size:13px;color:#273647}.setting-group-tabs button small{font-size:9px;margin-top:3px}.setting-group-tabs button.active{border-color:var(--blue);box-shadow:inset 0 -2px var(--blue);color:var(--blue)}.setting-fields{padding:18px;display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px}.setting-formula{grid-column:1/-1;background:#f4f6f8;padding:13px 15px;display:flex;gap:14px;font-size:11px}.setting-formula span{color:var(--muted)}.process-picker{padding:4px 0}.process-picker span{cursor:pointer;border:1px solid #d9e1e8;-webkit-user-select:none;user-select:none}.process-picker span.checked{background:#e7f4ee;border-color:#1d5e45;color:#1d5e45;font-weight:600}@media print{body{min-width:0;background:#fff}.sidebar,.titlebar,.page-actions,.toolbar,.button{display:none!important}.app-shell,.workspace{display:block}.workspace main{padding:0}.page-header{border-bottom:2px solid #172432;padding-bottom:12px}.table-wrap{border:0}th{background:#fff;border-bottom:1px solid #172432}td{padding:8px}.status-tag{border:1px solid #aaa;background:#fff;color:#222}}.row-link{color:#2457d6;display:grid;place-items:center}.back-link{display:inline-flex;align-items:center;gap:5px;color:#687687;text-decoration:none;font-size:12px;margin-bottom:15px}.detail-header{display:flex;justify-content:space-between;align-items:flex-start}.detail-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.detail-header h1{font-size:28px;margin:3px 0}.detail-header p{margin:0;color:#687687}.eyebrow{font:500 12px Roboto Mono;color:#2457d6}.detail-summary{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #d5dde5;margin:22px 0 16px}.detail-summary>div{padding:16px;border-right:1px solid #d5dde5}.detail-summary>div:last-child{border:0}.detail-summary span,.detail-summary strong,.detail-summary small{display:block}.detail-summary span,.detail-summary small{font-size:11px;color:#687687}.detail-summary strong{font-size:18px;margin:4px 0}.route-panel{margin-bottom:16px}.route-line{display:flex;overflow:auto;padding:18px}.route-line>div{min-width:105px;position:relative;padding-top:28px}.route-line>div:before{content:"";position:absolute;left:12px;right:-12px;top:11px;height:1px;background:#cbd4dc}.route-line>div:last-child:before{right:auto;width:0}.route-line span{position:absolute;top:0;left:0;width:23px;height:23px;border:1px solid #9eacb9;background:#fff;border-radius:50%;display:grid;place-items:center;font:10px Roboto Mono;z-index:1}.route-line b{font-size:11px;font-weight:500}.route-line .current span{background:#2457d6;border-color:#2457d6;color:#fff}.route-line .current b{color:#2457d6;font-weight:700}.detail-section{margin-bottom:16px}.detail-section>.table-wrap{border:0;border-radius:0}.heading-with-icon{display:flex;gap:10px}.heading-with-icon>svg{color:#2457d6;width:18px}.negative{color:#bd3440;font-weight:700}.order-drawer{width:720px}.order-drawer form{background:#f6f8fa}.form-section{display:grid;gap:12px;background:#fff;border:1px solid #d5dde5;padding:14px}.form-section-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3e8ec;padding-bottom:8px}.form-section-title>div>strong,.form-section-title>div>span{display:block}.form-section-title>div>strong{font-size:13px}.form-section-title>div>span{font-size:11px;color:#687687;margin-top:2px}.new-customer-box{display:grid;gap:12px;padding:14px;background:#f3f6f8;border:1px solid #d7dfe6}.new-customer-box .error-state{min-height:54px;padding:8px}.new-customer-box>.button{justify-self:start}.paste-badge{display:flex;align-items:center;gap:5px;color:#2457d6;font-size:11px;font-weight:600}.image-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.image-slot{height:130px;border:1px dashed #aab6c2;background:#f7f9fa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#71808f;cursor:pointer;position:relative;overflow:hidden}.image-slot:hover{border-color:#2457d6;background:#f1f5ff}.image-slot>strong{font-size:12px;color:#405061}.image-slot>span{font-size:10px}.image-slot.filled{border-style:solid;background:#e9eef2}.image-slot img{width:100%;height:100%;object-fit:contain}.image-slot button{position:absolute;right:6px;top:6px;width:28px;height:28px;border:0;background:#172432dc;color:#fff;display:grid;place-items:center;cursor:pointer}.print-preview-backdrop{position:fixed;inset:0;background:#101c28c7;z-index:40;overflow:auto;padding:30px}.print-preview-shell{width:174mm;margin:auto}.print-preview-actions{height:52px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #d5dde5}.print-preview-actions>span{font-weight:650}.print-preview-actions>div{display:flex;gap:8px}.a5-order-sheet{width:148mm;height:210mm;background:#fff;margin:0 auto;padding:7mm 8mm;color:#17202b;display:flex;flex-direction:column;font-family:Noto Sans SC,Microsoft YaHei,sans-serif}.a5-order-sheet>header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2.5px double #172432;padding-bottom:3mm}.a5-order-sheet h1{font-size:18px;letter-spacing:3px;margin:0;font-weight:700}.a5-order-sheet header p{font-size:6.5px;letter-spacing:1.5px;margin:1mm 0 0;color:#8a97a5}.order-number{text-align:right}.order-number span,.order-number strong,.order-number small{display:block}.order-number span{font-size:6.5px;color:#8a97a5;letter-spacing:1px}.order-number strong{font:600 11px Roboto Mono,monospace;margin:.5mm 0;letter-spacing:.5px}.order-number small{font-size:7px;color:#a0aab4}.a5-fields{display:grid;grid-template-columns:repeat(4,1fr);border-left:1px solid #bcc5cd;margin-top:3mm}.a5-fields>div{min-height:11mm;border-right:1px solid #bcc5cd;border-bottom:1px solid #bcc5cd;padding:1.5mm 2mm}.a5-fields>div:nth-child(-n+4){border-top:1px solid #bcc5cd}.a5-fields .wide{grid-column:span 2}.a5-fields span,.a5-notes>span,.a5-route>span{font-size:6.5px;color:#8a97a5;letter-spacing:.5px}.a5-fields b{font-size:10px;margin-top:1mm;font-weight:600}.a5-images{display:grid;grid-template-columns:repeat(3,1fr);gap:2mm;margin-top:3mm}.a5-images>div{height:50mm;border:1px solid #bcc5cd;display:grid;place-items:center;background:#f9fafb;color:#a0aab4;font-size:7px}.a5-images img{width:100%;height:100%;object-fit:contain}.a5-notes{border:1px solid #bcc5cd;margin-top:3mm;min-height:25mm;padding:2mm 2.5mm}.a5-notes p{white-space:pre-wrap;font-size:8.5px;line-height:1.7;margin:1mm 0 0}.a5-route{border:1px solid #bcc5cd;border-top:0;padding:2mm 2.5mm}.a5-route p{font-size:7.5px;margin:1mm 0 0;color:#5a6773;letter-spacing:.3px}.a5-order-sheet>footer{margin-top:auto;display:grid;grid-template-columns:repeat(3,1fr);font-size:7.5px;border-top:1.5px solid #172432;padding-top:2.5mm;color:#4a5568}.a5-order-sheet>footer div{text-align:center}@media print{@page{size:A5 portrait;margin:0}html,body{width:148mm;height:210mm;background:#fff}body *{visibility:hidden!important}.a5-order-sheet,.a5-order-sheet *{visibility:visible!important}.print-preview-backdrop{position:absolute!important;inset:0!important;padding:0!important;background:#fff!important;overflow:visible!important}.print-preview-shell{width:148mm!important;margin:0!important}.print-preview-actions{display:none!important}.a5-order-sheet{position:absolute;left:0;top:0;margin:0!important;box-shadow:none!important}}.order-entry-inline{position:static;right:auto;top:auto;bottom:auto;width:auto;max-height:none;box-shadow:none;margin-bottom:14px}.order-entry-inline form{max-height:none;overflow:visible}.form-split{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;align-items:start;justify-content:center;max-width:1120px;margin:0 auto;width:100%}.form-split .image-slots{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.form-split .image-slot{height:132px}.toolbar-left{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-buttons,.row-actions{display:flex;align-items:center;gap:4px}.filter-group{display:grid;gap:6px;margin-bottom:10px}.filter-group-title{font-size:11px;font-weight:600;color:var(--muted)}.process-tabs{display:flex;gap:10px;flex-wrap:nowrap;overflow-x:auto}.process-tabs button{flex:1;min-width:76px;height:34px;border:1px solid #d9e1e8;border-radius:999px;background:#fff;padding:0 14px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}.process-tabs button strong{font-size:13px;color:#233447;white-space:nowrap}.process-tabs button span{font-size:10px;color:var(--muted)}.process-tabs button.active{background:#172432;border-color:#172432}.process-tabs button.active strong{color:#fff}.process-tabs button.active span{color:#cbd5df}.craftsman-settings{background:#fff;border:1px solid var(--line);padding:13px 15px;margin-bottom:10px;display:grid;grid-template-columns:1fr auto;gap:10px 18px}.craftsman-settings>div:first-child strong,.craftsman-settings>div:first-child span{display:block}.craftsman-settings>div:first-child span{color:var(--muted);font-size:10px;margin-top:3px}.craftsman-add{display:flex;gap:6px}.craftsman-add .input{width:180px}.craftsman-chips{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}.craftsman-chips>span{display:flex;align-items:center;gap:5px;background:#eef2f5;padding:5px 7px;font-size:11px}.craftsman-chips button{border:0;background:transparent;cursor:pointer;color:#7e8a96}.master-tabs{display:flex;align-items:center;gap:5px;min-height:32px}.master-tabs button{border:1px solid #d9e1e8;background:#f4f6f8;padding:6px 12px;font-size:11px;cursor:pointer;border-radius:999px}.master-tabs button b{margin-left:6px;color:var(--muted)}.master-tabs button.active{background:#172432;border-color:#172432;color:#fff}.master-tabs button.active b{color:#cbd5df}.master-total{margin-left:auto;font-size:11px;color:var(--muted)}.compact-handover-wrap{overflow:auto;background:#fff;border:1px solid var(--line)}.compact-handover-table{width:800px;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}.compact-handover-table th,.compact-handover-table td{padding:1px 2px;font-size:10px;min-width:0;overflow:hidden}.compact-handover-table .input{padding:1px 2px;height:22px;font-size:10px;box-sizing:border-box}.compact-handover-table input,.compact-handover-table select{box-sizing:border-box}.compact-handover-table select.input{padding:1px;font-size:10px}.compact-handover-table .order-thumb{width:24px;height:24px}.compact-handover-table .order-thumb img{width:100%;height:100%;object-fit:cover}.compact-handover-table th,.compact-handover-table td{border-bottom:1px solid var(--line);padding:2px 5px;text-align:center;font-size:10px}.compact-handover-table tbody td{height:30px}.compact-handover-table th{background:#f2f5f7;color:#526273;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-handover-table th{width:58px}.compact-handover-table th:nth-child(1){width:30px}.compact-handover-table th:nth-child(2){width:116px;text-align:left}.compact-handover-table th:nth-child(3){width:60px}.compact-handover-table th:nth-last-child(3){width:74px}.compact-handover-table th:nth-last-child(2){width:56px}.compact-handover-table th:last-child{width:80px}.compact-handover-table td:nth-child(2){text-align:left}.compact-handover-table td strong,.compact-handover-table td small{display:block}.compact-handover-table td small{margin-top:1px;color:var(--muted)}.compact-handover-table th:nth-child(-n+3),.compact-handover-table td:nth-child(-n+3){position:sticky}.compact-handover-table th:nth-child(1),.compact-handover-table td:nth-child(1){left:0}.compact-handover-table th:nth-child(2),.compact-handover-table td:nth-child(2){left:30px}.compact-handover-table th:nth-child(3),.compact-handover-table td:nth-child(3){left:146px;box-shadow:1px 0 0 var(--line)}.compact-handover-table th:nth-child(-n+3){background:#f2f5f7;z-index:3}.compact-handover-table td:nth-child(-n+3){background:#fff;z-index:2}.compact-handover-table tbody tr:hover td:nth-child(-n+3){background:#f8fafb}.compact-handover-table tbody tr.inline-entry-row td:nth-child(-n+3){background:#eef4ff}.muted-code{font-size:10px}.order-thumb{width:34px;height:34px;background:#f0f3f5;display:grid;place-items:center;overflow:hidden;margin:auto;color:#8b97a2;font-size:9px}.order-thumb img{width:100%;height:100%;object-fit:cover}.inline-entry-row td{background:#eef4ff;padding:2px 5px}.inline-entry-row .input{min-width:0;width:100%;max-width:100%;padding:2px 3px;height:22px;font-size:10px;overflow:hidden;text-overflow:ellipsis}.compact-handover-table input[type=number]::-webkit-inner-spin-button,.compact-handover-table input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.calculation-pending{text-align:center;color:var(--muted);font-size:10px}.row-actions button,.table-delete{border:0;background:transparent;color:#526273;cursor:pointer;padding:3px;white-space:nowrap}.row-actions button:hover,.table-delete:hover{background:#e6ebef;color:var(--red)}.row-actions button:disabled{opacity:.35}.fee-cell{font-variant-numeric:tabular-nums;font-weight:650;color:#1d5e45}.stone-editor-card{background:#f8fafb;border:1px solid var(--line);padding:8px;border-radius:6px;min-width:420px}.stone-editor-error{border-color:#d94e5c;box-shadow:0 0 0 1px #d94e5c}.stone-section{margin-bottom:8px}.stone-section:last-child{margin-bottom:0}.stone-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:11px;font-weight:600;color:#344454}.stone-add-row{border:0;background:#172432;color:#fff;border-radius:4px;padding:4px 6px;cursor:pointer;display:flex;align-items:center}.stone-add-row:hover{opacity:.9}.stone-grid-header,.stone-grid-row{display:grid;grid-template-columns:90px 80px 72px 72px 72px 28px;gap:4px;align-items:center}.stone-grid-header span{font-size:9px;color:var(--muted);text-align:center}.stone-grid-row .select,.stone-grid-row input{width:100%;height:24px;font-size:10px;padding:2px 4px;border:1px solid #d9e1e8;border-radius:3px;background:#fff}.stone-grid-row .select{padding-left:2px}.stone-remove-row{border:0;background:transparent;color:#d94e5c;cursor:pointer;padding:2px;display:flex;align-items:center;justify-content:center}.stone-remove-row:hover{background:#fee}.stone-totals{display:flex;gap:12px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:6px;margin-top:6px;font-size:10px;color:var(--muted)}.stone-totals b{color:#344454}.stone-summary-cell{font-size:10px;line-height:1.35;padding:4px}.stone-summary-cell div{margin-bottom:3px}.stone-summary-cell b{margin-right:4px;color:#344454}.stone-summary-cell span{display:inline-flex;gap:3px;margin-right:8px;white-space:nowrap}.delivery-page .page-header{margin-bottom:12px}.settlement-sheet{position:relative;background:#fff;border:1px solid var(--line);padding:12px}.settlement-sheet>h1{text-align:center;font-size:19px;margin:0 0 6px}.settlement-meta{display:grid;grid-template-columns:1fr 160px;gap:12px;align-items:end;margin-bottom:7px}.settlement-table-wrap{overflow:auto;width:100%}.settlement-table{width:100%;min-width:1180px;border:1px solid #45515c;table-layout:fixed;font-family:Microsoft YaHei,sans-serif}.settlement-table th,.settlement-table td{border:1px solid #7c858d;text-align:center;padding:1px;height:31px}.settlement-table th{background:#f2f3f4;color:#202830;font-size:9px;line-height:1.15}.settlement-table th:nth-child(1){width:24px}.settlement-table th:nth-child(2){width:44px}.settlement-table th:nth-child(3){width:150px}.settlement-table th:nth-child(4){width:38px}.settlement-table th:nth-child(n+5):nth-child(-n+20){width:50px}.settlement-table th:last-child{width:22px}.settlement-table tbody tr{height:68px}.settlement-table .input{border:0;border-radius:0;padding:3px 2px;text-align:center;min-width:0;width:100%;height:27px;font-size:9px}.calculated-cell{font-variant-numeric:tabular-nums;background:#f8f9fa;font-size:9px}.muted-cell{color:#9aa5af;background:#fafbfc;font-size:9px}.gold-debt-strip{display:grid;grid-template-columns:auto repeat(4,1fr);gap:8px;align-items:end;border:1px solid #7c858d;border-top:0;background:#fff8ec;padding:7px 9px;font-size:11px}.gold-debt-strip>span{font-weight:600;color:#8a5a00;align-self:center}.gold-debt-strip label{display:grid;gap:2px;font-size:10px;color:#5b6b7c}.gold-debt-strip label output{font-weight:650;color:#202830}.gold-debt-strip .input{height:26px;font-size:11px}.delivery-item-cell{height:66px;display:grid;grid-template-columns:62px 1fr;gap:3px;align-items:stretch;padding:2px;background:#fff}.delivery-item-cell.active{box-shadow:inset 0 0 0 2px var(--blue)}.delivery-row-image{width:62px;height:62px;background:#eef1f3;display:grid;place-items:center;cursor:pointer;overflow:hidden;color:#7a8793;font-size:9px;line-height:1.3}.delivery-row-image img{width:100%;height:100%;object-fit:cover}.delivery-item-cell>div{display:grid;grid-template-rows:1fr 1fr;gap:2px}.settlement-table tfoot td{font-weight:650;background:#f0f2f3;height:29px}.settlement-footer{display:grid;grid-template-columns:1fr 480px;border:1px solid #7c858d;border-top:0}.settlement-footer>.field{padding:7px}.settlement-accounts{display:grid;grid-template-columns:repeat(2,1fr);border-left:1px solid #7c858d}.settlement-accounts label{display:grid;grid-template-columns:78px 1fr;align-items:center;border-bottom:1px solid #7c858d;padding-left:7px;font-size:10px}.settlement-accounts label:last-child{grid-column:1/-1;border-bottom:0}.settlement-accounts .input{border:0;border-radius:0}.settlement-accounts output{font-weight:650}.add-settlement-row{display:flex;justify-content:flex-end;margin-top:7px}.settlement-history{margin-top:14px}.settlement-list-compact{max-height:420px;overflow:auto;border:1px solid var(--line)}.settlement-list-compact .table-wrap{max-height:none;overflow:visible}.settlement-list-compact table{font-size:12px}.settlement-list-compact td{padding:5px 8px}.settlement-list-compact td.code-cell{font-size:11px}.settlement-list-compact .entry-receive-button{padding:3px 8px}.settlement-pager{display:flex;align-items:center;gap:10px;justify-content:flex-end;padding-top:10px;font-size:12px;color:var(--muted)}.settlement-filters{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}.settlement-filters .input{width:auto;min-width:130px}.print-settlement-meta{display:none}@media(max-width:1300px){.master-total{display:none}.settlement-table{min-width:1360px}}.ocr-import-list{display:grid;gap:8px;margin-top:10px;max-height:52vh;overflow:auto}.ocr-import-item{display:grid;grid-template-columns:72px 1fr;gap:10px;border:1px solid var(--line);border-radius:8px;padding:8px;background:#fafbfc}.ocr-thumb{width:72px;height:72px;background:#eef1f3;border-radius:6px;overflow:hidden;display:grid;place-items:center;color:#8a97a5;font-size:10px}.ocr-thumb img{width:100%;height:100%;object-fit:cover}.ocr-body{display:grid;gap:6px}.ocr-name{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.ocr-status{font-size:10px;padding:1px 8px;border-radius:999px}.ocr-status.done{background:#e5f6ec;color:#1c7c43}.ocr-status.error{background:#fdeaea;color:#c62828}.ocr-status.pending{background:#eef2f5;color:#5b6b7c}.ocr-body textarea{width:100%;min-height:52px;font-size:12px;border:1px solid var(--line);border-radius:6px;padding:6px 8px}.ocr-actions{display:flex;justify-content:flex-end}.process-执模 .compact-handover-table{width:1112px}.process-执模 .compact-handover-table th:nth-child(1),.process-执模 .compact-handover-table td:nth-child(1){width:36px}.process-执模 .compact-handover-table th:nth-child(2),.process-执模 .compact-handover-table td:nth-child(2){width:94px}.process-执模 .compact-handover-table th:nth-child(3),.process-执模 .compact-handover-table td:nth-child(3){width:56px}.process-执模 .compact-handover-table th:nth-child(4),.process-执模 .compact-handover-table td:nth-child(4){width:38px}.process-执模 .compact-handover-table th:nth-child(5),.process-执模 .compact-handover-table td:nth-child(5),.process-执模 .compact-handover-table th:nth-child(6),.process-执模 .compact-handover-table td:nth-child(6),.process-执模 .compact-handover-table th:nth-child(7),.process-执模 .compact-handover-table td:nth-child(7),.process-执模 .compact-handover-table th:nth-child(8),.process-执模 .compact-handover-table td:nth-child(8),.process-执模 .compact-handover-table th:nth-child(9),.process-执模 .compact-handover-table td:nth-child(9){width:50px}.process-执模 .compact-handover-table th:nth-child(10),.process-执模 .compact-handover-table td:nth-child(10){width:40px}.process-执模 .compact-handover-table th:nth-child(11),.process-执模 .compact-handover-table td:nth-child(11){width:48px}.process-执模 .compact-handover-table th:nth-child(12),.process-执模 .compact-handover-table td:nth-child(12),.process-执模 .compact-handover-table th:nth-child(13),.process-执模 .compact-handover-table td:nth-child(13){width:46px}.process-执模 .compact-handover-table th:nth-child(14),.process-执模 .compact-handover-table td:nth-child(14),.process-执模 .compact-handover-table th:nth-child(15),.process-执模 .compact-handover-table td:nth-child(15){width:48px}.process-执模 .compact-handover-table th:nth-child(16),.process-执模 .compact-handover-table td:nth-child(16){width:54px}.process-执模 .compact-handover-table th:nth-child(17),.process-执模 .compact-handover-table td:nth-child(17){width:44px}.process-执模 .compact-handover-table th:nth-child(18),.process-执模 .compact-handover-table td:nth-child(18){width:118px}.process-出水 .compact-handover-table{width:764px}.process-出水 .compact-handover-table th:nth-child(1),.process-出水 .compact-handover-table td:nth-child(1){width:36px}.process-出水 .compact-handover-table th:nth-child(2),.process-出水 .compact-handover-table td:nth-child(2){width:94px}.process-出水 .compact-handover-table th:nth-child(3),.process-出水 .compact-handover-table td:nth-child(3){width:56px}.process-出水 .compact-handover-table th:nth-child(4),.process-出水 .compact-handover-table td:nth-child(4){width:62px}.process-出水 .compact-handover-table th:nth-child(5),.process-出水 .compact-handover-table td:nth-child(5),.process-出水 .compact-handover-table th:nth-child(6),.process-出水 .compact-handover-table td:nth-child(6),.process-出水 .compact-handover-table th:nth-child(7),.process-出水 .compact-handover-table td:nth-child(7),.process-出水 .compact-handover-table th:nth-child(8),.process-出水 .compact-handover-table td:nth-child(8),.process-出水 .compact-handover-table th:nth-child(9),.process-出水 .compact-handover-table td:nth-child(9){width:50px}.process-出水 .compact-handover-table th:nth-child(10),.process-出水 .compact-handover-table td:nth-child(10){width:54px}.process-出水 .compact-handover-table th:nth-child(11),.process-出水 .compact-handover-table td:nth-child(11){width:44px}.process-出水 .compact-handover-table th:nth-child(12),.process-出水 .compact-handover-table td:nth-child(12){width:118px}.process-电金 .compact-handover-table{width:880px}.process-电金 .compact-handover-table th:nth-child(1),.process-电金 .compact-handover-table td:nth-child(1){width:36px}.process-电金 .compact-handover-table th:nth-child(2),.process-电金 .compact-handover-table td:nth-child(2){width:94px}.process-电金 .compact-handover-table th:nth-child(3),.process-电金 .compact-handover-table td:nth-child(3){width:56px}.process-电金 .compact-handover-table th:nth-child(4),.process-电金 .compact-handover-table td:nth-child(4){width:72px}.process-电金 .compact-handover-table th:nth-child(5),.process-电金 .compact-handover-table td:nth-child(5){width:38px}.process-电金 .compact-handover-table th:nth-child(6),.process-电金 .compact-handover-table td:nth-child(6),.process-电金 .compact-handover-table th:nth-child(7),.process-电金 .compact-handover-table td:nth-child(7),.process-电金 .compact-handover-table th:nth-child(8),.process-电金 .compact-handover-table td:nth-child(8),.process-电金 .compact-handover-table th:nth-child(9),.process-电金 .compact-handover-table td:nth-child(9),.process-电金 .compact-handover-table th:nth-child(10),.process-电金 .compact-handover-table td:nth-child(10){width:50px}.process-电金 .compact-handover-table th:nth-child(11),.process-电金 .compact-handover-table td:nth-child(11){width:48px}.process-电金 .compact-handover-table th:nth-child(12),.process-电金 .compact-handover-table td:nth-child(12){width:54px}.process-电金 .compact-handover-table th:nth-child(13),.process-电金 .compact-handover-table td:nth-child(13){width:44px}.process-电金 .compact-handover-table th:nth-child(14),.process-电金 .compact-handover-table td:nth-child(14){width:118px}.process-配石 .compact-handover-table{width:1054px}.process-配石 .compact-handover-table th:nth-child(1),.process-配石 .compact-handover-table td:nth-child(1){width:36px}.process-配石 .compact-handover-table th:nth-child(2),.process-配石 .compact-handover-table td:nth-child(2){width:94px}.process-配石 .compact-handover-table th:nth-child(3),.process-配石 .compact-handover-table td:nth-child(3){width:56px}.process-配石 .compact-handover-table th:nth-child(n+4):nth-child(-n+13){width:50px}.process-配石 .compact-handover-table th:nth-child(14),.process-配石 .compact-handover-table td:nth-child(14){width:56px}.process-配石 .compact-handover-table th:nth-child(15),.process-配石 .compact-handover-table td:nth-child(15){width:54px}.process-配石 .compact-handover-table th:nth-child(16),.process-配石 .compact-handover-table td:nth-child(16){width:44px}.process-配石 .compact-handover-table th:nth-child(17),.process-配石 .compact-handover-table td:nth-child(17){width:118px}.process-镶石 .compact-handover-table{width:1344px}.process-镶石 .compact-handover-table th:nth-child(1),.process-镶石 .compact-handover-table td:nth-child(1){width:36px}.process-镶石 .compact-handover-table th:nth-child(2),.process-镶石 .compact-handover-table td:nth-child(2){width:94px}.process-镶石 .compact-handover-table th:nth-child(3),.process-镶石 .compact-handover-table td:nth-child(3){width:56px}.process-镶石 .compact-handover-table th:nth-child(4),.process-镶石 .compact-handover-table td:nth-child(4){width:38px}.process-镶石 .compact-handover-table th:nth-child(5),.process-镶石 .compact-handover-table td:nth-child(5),.process-镶石 .compact-handover-table th:nth-child(6),.process-镶石 .compact-handover-table td:nth-child(6),.process-镶石 .compact-handover-table th:nth-child(7),.process-镶石 .compact-handover-table td:nth-child(7){width:50px}.process-镶石 .compact-handover-table th:nth-child(8),.process-镶石 .compact-handover-table td:nth-child(8),.process-镶石 .compact-handover-table th:nth-child(9),.process-镶石 .compact-handover-table td:nth-child(9),.process-镶石 .compact-handover-table th:nth-child(10),.process-镶石 .compact-handover-table td:nth-child(10){width:46px}.process-镶石 .compact-handover-table th:nth-child(11),.process-镶石 .compact-handover-table td:nth-child(11){width:48px}.process-镶石 .compact-handover-table th:nth-child(12),.process-镶石 .compact-handover-table td:nth-child(12){width:42px}.process-镶石 .compact-handover-table th:nth-child(13),.process-镶石 .compact-handover-table td:nth-child(13),.process-镶石 .compact-handover-table th:nth-child(14),.process-镶石 .compact-handover-table td:nth-child(14){width:46px}.process-镶石 .compact-handover-table th:nth-child(15),.process-镶石 .compact-handover-table td:nth-child(15){width:42px}.process-镶石 .compact-handover-table th:nth-child(16),.process-镶石 .compact-handover-table td:nth-child(16),.process-镶石 .compact-handover-table th:nth-child(17),.process-镶石 .compact-handover-table td:nth-child(17){width:46px}.process-镶石 .compact-handover-table th:nth-child(18),.process-镶石 .compact-handover-table td:nth-child(18){width:48px}.process-镶石 .compact-handover-table th:nth-child(19),.process-镶石 .compact-handover-table td:nth-child(19){width:52px}.process-镶石 .compact-handover-table th:nth-child(20),.process-镶石 .compact-handover-table td:nth-child(20){width:54px}.process-镶石 .compact-handover-table th:nth-child(21),.process-镶石 .compact-handover-table td:nth-child(21){width:44px}.process-镶石 .compact-handover-table th:nth-child(22),.process-镶石 .compact-handover-table td:nth-child(22){width:118px}.quote-export-card{background:#f5f7f9;padding:12px;border:1px solid transparent}.quote-export-title{display:none;background:#172432;color:#fff;padding:16px 18px;align-items:center;justify-content:space-between;margin-bottom:10px}.quote-export-title>div:last-child{text-align:right}.quote-export-title strong,.quote-export-title b,.quote-export-title span{display:block}.quote-export-title strong{font-size:21px}.quote-export-title b{font-size:14px}.quote-export-title span{font-size:10px;color:#cbd5df;margin-top:3px}.quote-export-card.is-exporting{width:1180px;padding:18px;background:#f5f7f9}.quote-export-card.is-exporting .quote-export-title{display:flex}.quote-export-card.is-exporting .quote-calculator-layout{grid-template-columns:360px 1fr}.quote-export-card.is-exporting .original-image-drop{height:300px}.quote-export-card.is-exporting .quote-context{display:none}.metal-options{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:14px 16px 0}.metal-options button{height:32px;border:1px solid #cbd4dc;border-radius:999px;background:#fff;color:#344454;font-weight:650;font-size:11px;cursor:pointer}.metal-options button.active{background:#172432;color:#fff;border-color:#172432}.quote-input-grid.exact{grid-template-columns:repeat(3,1fr);padding-top:12px}.quote-input-grid.exact .field-label{white-space:nowrap}.original-stone-row input:disabled{background:#eef2f4;color:#344454}.quote-history .table-buttons{white-space:nowrap}.quote-export-card+.connection-ok,.quote-export-card+.connection-warning{margin:10px 0}.diamond-price-settings{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px}.diamond-price-settings>div{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}.diamond-price-settings>div span{font-size:10px;color:var(--muted)}.diamond-price-settings table{width:100%;border-collapse:collapse;table-layout:fixed}.diamond-price-settings th,.diamond-price-settings td{border:1px solid var(--line);padding:4px;text-align:center;font-size:10px}.diamond-price-settings th{background:#f2f5f7;color:#526273}.diamond-price-settings .input{height:30px;padding:4px;text-align:center;border:0;border-radius:0}.diamond-price-settings th:nth-child(1){width:90px}.diamond-price-settings th:nth-child(2){width:130px}@media(max-width:1300px){.quote-calculator-layout{grid-template-columns:300px minmax(620px,1fr)}.quote-input-grid.exact{grid-template-columns:repeat(3,1fr)}}.quote-save-path{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-top:0;padding:7px 10px;margin-top:-14px;margin-bottom:12px;font-size:10px;color:var(--muted)}.quote-save-path span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quote-save-path b{color:#344454;font-weight:550}.quote-save-path button{border:0;background:transparent;color:var(--blue);display:flex;align-items:center;gap:4px;cursor:pointer;padding:5px}.quote-image-actions{display:flex;align-items:center;gap:4px}.quote-image-actions .button{font-size:10px;padding-inline:8px}.quote-history-thumb{width:52px;height:52px;background:#eef2f4;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-size:9px}.quote-history-thumb img{width:100%;height:100%;object-fit:cover}.quote-history tbody td:first-child{width:58px}.process-summary{display:flex;align-items:stretch;background:#172432;color:#fff;border:1px solid #172432;margin-top:8px;overflow:auto}.process-summary>strong{display:flex;align-items:center;padding:10px 14px;white-space:nowrap;font-size:12px}.process-summary>span{min-width:110px;padding:8px 11px;border-left:1px solid #40505e}.process-summary small,.process-summary b{display:block}.process-summary small{font-size:8px;color:#b8c6d1}.process-summary b{font-size:11px;margin-top:3px;font-variant-numeric:tabular-nums;white-space:nowrap}.settlement-table{min-width:1510px}.settlement-table th:nth-child(2){width:225px}.settlement-table tbody tr{height:88px}.delivery-item-cell{height:86px;grid-template-columns:82px 1fr}.delivery-row-image{width:82px;height:82px}.delivery-item-cell>div{grid-template-rows:1.35fr 1fr}.delivery-item-cell .select{font-size:8px;padding-left:3px}.quote-calc-panel .quote-panel-heading{padding-left:36px}.quote-page{font-size:12px}.quote-page .page-header h1{font-size:17px}.quote-image-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.quote-image-actions .field{min-width:180px}.quote-image-actions .field .field-label{display:none}.quote-image-actions .input{height:28px;font-size:11px}body{min-width:0}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}.req-thumb-cell{text-align:center;white-space:nowrap}.req-thumb{position:relative;width:64px;height:64px;border-radius:8px;overflow:hidden;background:#eef1f3;border:1px solid #e3e8ec;display:inline-block}.req-thumb img{width:100%;height:100%;object-fit:cover;display:block}.req-thumb-count{position:absolute;right:3px;bottom:3px;background:#172432b8;color:#fff;font-size:9px;line-height:1;padding:2px 4px;border-radius:4px}.req-thumb-none{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:8px;background:#f2f5f7;color:#8a97a5;font-size:10px;border:1px dashed #d9e1e8}.req-no{display:block;margin-top:4px;font-size:10px;color:#8a97a5;font-family:Roboto Mono,monospace;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ship-processing{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#a86409;background:#fff0d7;border:1px solid #f3e2c2;border-radius:999px;padding:5px 10px;white-space:nowrap}.img-lightbox{position:fixed;inset:0;background:#0a121cdb;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}.img-lightbox-bar{position:absolute;top:0;left:0;right:0;height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;color:#fff;font-size:13px}.img-lightbox-close{border:0;background:#ffffff1f;color:#fff;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;cursor:pointer}.img-lightbox-close:hover{background:#ffffff3d}.img-lightbox img{max-width:min(92vw,1200px);max-height:calc(100vh - 80px);object-fit:contain;border-radius:6px;box-shadow:0 12px 40px #00000080;cursor:zoom-out}.req-thumb,.req-thumb-none,.ec-product-img{cursor:zoom-in}.customer-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.customer-card{background:#fff;border:1px solid #e3e8ec;border-radius:12px;display:grid;overflow:hidden;box-shadow:0 1px 3px #1724320d;transition:box-shadow .16s ease}.customer-card:hover{box-shadow:0 4px 14px #17243217}.customer-card.inactive{opacity:.65}.customer-card-head{display:flex;align-items:center;gap:12px;padding:14px 16px 12px;border-bottom:1px solid #eef1f4;background:linear-gradient(180deg,#fbfcfd,#f6f8fa)}.customer-avatar{flex:0 0 auto;width:44px;height:44px;border-radius:8px;background:#172432;color:#fff;display:grid;place-items:center;font:700 18px/1 Noto Sans SC,sans-serif}.customer-title{flex:1 1 auto;min-width:0}.customer-title strong,.customer-title span{display:block}.customer-title strong{font-size:15px;color:#172432}.customer-title .cust-code{font-size:11px;color:#8a97a5;font-family:Roboto Mono,monospace;margin-top:2px}.cust-status{font-size:11px;font-weight:650;padding:3px 9px;border-radius:999px;color:#167a53;background:#e4f3ed;white-space:nowrap}.cust-status.inactive{color:#a86409;background:#fff0d7}.customer-card-body{display:grid;gap:8px;padding:12px 16px}.cust-row{display:flex;gap:10px;align-items:baseline;min-width:0}.cust-row span{flex:0 0 54px;font-size:11px;color:#8a97a5}.cust-row b{font-size:13px;color:#273647;font-weight:550;word-break:break-all}.cust-row.note b{font-weight:400;color:#56616e;font-size:12px}.customer-card-actions{display:flex;align-items:center;gap:6px;padding:10px 16px;border-top:1px solid #eef1f4;background:#fbfcfd;flex-wrap:wrap}.customer-card-actions .table-delete{color:#d94e5c}.month-filter{display:flex;align-items:center;gap:8px}.month-filter input[type=month]{height:32px;border:1px solid #cbd4dc;border-radius:4px;padding:0 8px;font-size:12px;color:#273647}.month-all{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.water-plating-wrap{display:grid;gap:12px}.wp-section{display:grid;gap:6px}.wp-head{display:flex;align-items:center;justify-content:space-between}.wp-head h3{margin:0;font-size:13px;color:#344454}.customer-list{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.customer-list strong{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.customer-list span{display:inline-flex;align-items:center;gap:6px;background:#eef2f5;padding:5px 8px;font-size:12px;margin:0 6px 6px 0;border-radius:4px}.customer-list button{border:0;background:transparent;color:#7e8a96;cursor:pointer;font-size:14px;line-height:1}.customer-list button:hover{color:var(--red)}.plating-entry td{background:#d7e6ff}.compact-handover-table tbody tr.plating-entry td:nth-child(-n+3){background:#d7e6ff}.compact-handover-table td.note-cell{max-width:140px;white-space:normal;word-break:break-all;color:#56616e;font-size:12px}main{padding:clamp(14px,2vw,28px);max-width:none;width:100%}.quick-hint{font-size:12px;color:var(--muted);border:0;background:transparent;display:flex;align-items:center;gap:7px;cursor:pointer}.titlebar-actions{display:flex;align-items:center;gap:12px}.title-logout{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#526273;border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 12px;cursor:pointer}.title-logout:hover{border-color:var(--red);color:var(--red)}.metric-strip{grid-template-columns:repeat(4,1fr)}.metric-strip>a{padding:17px 20px;border-right:1px solid var(--line);text-decoration:none;color:inherit}.metric-strip>a:last-child{border:0}.metric-strip>a:hover{background:#f6f8fb}.metric-strip span{display:block;font-size:12px;color:var(--muted)}.metric-strip strong{display:block;font:500 27px/1.25 Roboto Mono,monospace}.metric-strip small{display:block;color:var(--blue);font-size:10px;margin-top:3px}.process-stop{text-decoration:none;color:inherit}.process-stop:hover{border-color:#9fb1c4;background:#fbfdff}.command-backdrop{position:fixed;inset:0;background:#10202f70;z-index:80;padding-top:11vh;display:flex;justify-content:center}.command-palette{width:min(620px,calc(100vw - 28px));align-self:flex-start;background:#fff;border-radius:8px;box-shadow:0 24px 80px #0c192844;overflow:hidden}.command-palette>label{height:58px;display:flex;align-items:center;gap:11px;padding:0 17px;border-bottom:1px solid var(--line);color:var(--muted)}.command-palette input{border:0;outline:0;font-size:16px;flex:1}.command-results{max-height:420px;overflow:auto;padding:7px}.command-results button{width:100%;border:0;background:#fff;text-align:left;padding:10px 12px;border-radius:5px;cursor:pointer}.command-results button:hover{background:#edf3ff}.command-results strong,.command-results span{display:block}.command-results span,.command-results p{font-size:12px;color:var(--muted)}.command-palette footer{padding:9px 17px;background:#f4f6f8;color:var(--muted);font-size:11px}.traffic-light{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;white-space:nowrap}.traffic-light i{width:9px;height:9px;border-radius:50%;background:currentColor}.traffic-light.green,.traffic-text.green{color:var(--green)}.traffic-light.amber,.traffic-text.amber{color:var(--amber)}.traffic-light.red,.traffic-text.red{color:var(--red)}.plain-row-link,.code-cell a{color:inherit;text-decoration:none}.table-delete{cursor:pointer}.row-title-link{color:inherit;text-decoration:none;display:block}.row-title-link strong{color:inherit}.row-title-link small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.entry-save-button{display:inline-flex;align-items:center;gap:5px;background:#167a53;border:1px solid #167a53;color:#fff;padding:7px 14px;border-radius:6px;font-weight:650;cursor:pointer;white-space:nowrap}.entry-save-button:disabled{opacity:.5;cursor:not-allowed}.entry-cancel-button{display:inline-flex;align-items:center;background:transparent;border:1px solid #d5dde5;color:#56616e;padding:7px 12px;border-radius:6px;cursor:pointer}.entry-receive-button{background:#2457d6;border:1px solid #2457d6;color:#fff;padding:4px 10px;border-radius:5px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.input-error{border-color:#bd3440!important;box-shadow:0 0 0 1px #bd3440}.order-drawer{width:820px;max-width:96vw}.order-drawer .form-section{padding:9px 14px}.order-drawer .form-section-title{margin-bottom:6px}.order-drawer .form-section-title strong{font-size:13px}.order-drawer .form-grid{gap:8px}.order-drawer .image-slot{height:104px}.order-drawer .field-label{font-size:11px}.order-drawer .input{padding:6px 9px}.order-drawer form{flex:1;overflow:auto}.process-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.settlement-table{min-width:1220px}.settlement-table th:nth-child(2){width:190px}.settlement-table th:nth-child(n+4):nth-child(-n+19){width:52px}.settlement-table tbody tr{height:76px}.delivery-item-cell{height:74px;grid-template-columns:70px 1fr}.delivery-row-image{width:70px;height:70px}@media(max-width:1300px){.master-total{display:none}.settlement-table{min-width:1140px}}@media(max-width:1000px){.app-shell{grid-template-columns:76px 1fr}.sidebar{width:76px;padding-inline:8px}.brand{padding-inline:5px}.brand>div,.sidebar nav span,.sidebar-foot .user-chip>div{display:none}.sidebar nav a{justify-content:center;padding:12px}.titlebar{padding:0 16px}.connection-state{display:none}.page-header{gap:12px}.page-actions{flex-wrap:wrap;justify-content:flex-end}.form-drawer{width:min(620px,100vw)}.process-tabs{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.toolbar{align-items:stretch;gap:8px;flex-direction:column}.search-box{width:100%}.page-header{flex-direction:column}.page-actions{justify-content:flex-start}.form-grid.three,.form-grid.two{grid-template-columns:1fr}.titlebar .workspace-name{display:none}}@media print{.delivery-page>.page-header,.settlement-history,.add-settlement-row,.table-delete,.print-preview-toolbar,.settlement-saved-no{display:none!important}.settlement-sheet{border:0;padding:0}.settlement-meta{display:none}.print-settlement-head{display:flex;justify-content:flex-start;align-items:baseline;gap:14px;font-size:10px;margin-bottom:4px;border-bottom:1px solid #45515c;padding-bottom:3px}.print-settlement-head span:last-child{margin-left:auto}.settlement-table-wrap{overflow:visible;max-width:none}.settlement-table{min-width:0;width:100%;font-size:6px}.settlement-table th,.settlement-table td{height:34px;padding:0}.settlement-table tbody tr{height:34px}.settlement-table .input{font-size:6px;padding:0;height:15px}.delivery-item-cell{height:34px;grid-template-columns:32px 1fr;padding:1px}.delivery-row-image{width:32px;height:32px;font-size:5px}.settlement-footer{grid-template-columns:1fr 44%;font-size:7px}.settlement-footer textarea,.settlement-footer input{font-size:7px}@page{size:A4 landscape;margin:6mm}}.print-preview-toolbar{position:fixed;top:0;left:0;right:0;z-index:99;background:#172432;color:#dbe4ed;align-items:center;justify-content:space-between;padding:10px 18px;font-size:13px}.print-preview-toolbar>div{display:flex;gap:8px}.print-preview-toolbar .button{color:#fff;border-color:#3a4c5e}.delivery-page.preview-mode{background:#e9edf0}.delivery-page.preview-mode>*:not(.settlement-sheet){display:none!important}.delivery-page.preview-mode .settlement-sheet{margin:52px auto 20px;box-shadow:0 4px 24px #0002;transform:scale(.92);transform-origin:top center}.delivery-page.preview-mode .settlement-meta{display:none}.delivery-page.preview-mode .settlement-table-wrap{overflow:hidden}.delivery-page.preview-mode .print-settlement-head{display:flex}.print-settlement-head{display:none}.settlement-saved-no{display:block;text-align:right;font-size:11px;color:#526273;margin:-4px 0 4px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 560px;background:#172432}.auth-context{color:#fff;padding:15vh 9vw;position:relative;background:linear-gradient(145deg,#182838,#22394a)}.auth-context:after{content:"";position:absolute;inset:20px;border:1px solid #ffffff14;pointer-events:none}.auth-symbol{width:56px;height:56px;display:grid;place-items:center;border:1px solid #ffffff45;margin-bottom:55px}.auth-context h1{font-size:48px;line-height:1.17;letter-spacing:-2px;margin:0 0 20px}.auth-context p{max-width:490px;color:#b8c5cf;line-height:1.85}.auth-proof{display:flex;gap:8px;margin-top:40px}.auth-proof span{font-size:11px;border:1px solid #566b7c;padding:6px 10px}.auth-layout .auth-panel{grid-column:2;padding:14vh 70px;background:#f4f6f7}.auth-card{max-width:380px}.auth-card>svg{color:#2457d6}.auth-card h2{font-size:27px;margin:18px 0 5px}.auth-card>p{font-size:13px;color:#687687;margin:0}.form-stack{display:grid;gap:15px;margin-top:28px}.form-stack .error-state{min-height:55px;padding:10px}.portal{max-width:680px;margin:0 auto;padding:14px 14px 60px;display:grid;gap:14px}.portal-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.portal-head strong{display:block;font-size:19px;color:#172432}.portal-head span{font-size:12px;color:var(--muted)}.portal-logout{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font-size:12px;color:#526273;cursor:pointer}.portal-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.portal-stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 10px;text-align:center;display:grid;gap:5px}.portal-stat span{font-size:12px;color:var(--muted)}.portal-stat b{font-size:18px;font-variant-numeric:tabular-nums;color:#172432}.portal-stat.highlight{background:#172432;border-color:#172432}.portal-stat.highlight span{color:#9fb2c2}.portal-stat.highlight b{color:#fff}.portal-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px}.portal-card h2{font-size:14px;margin:0 0 10px;color:#233447}.portal-toggle{border:0;background:transparent;font-size:14px;font-weight:600;color:#233447;cursor:pointer;padding:0}.portal-empty{color:var(--muted);font-size:13px;margin:6px 0}.portal-table{width:100%;border-collapse:collapse;font-size:13px}.portal-table th{color:var(--muted);font-weight:500;font-size:12px;text-align:left;padding:6px 4px;border-bottom:1px solid var(--line)}.portal-table td{padding:8px 4px;border-bottom:1px solid #eef1f4;font-variant-numeric:tabular-nums}.portal-item{display:grid;grid-template-columns:84px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid #eef1f4}.portal-item.history-item{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.portal-item.history-item .portal-item-img{flex:0 0 84px}.portal-item.history-item .portal-item-body{flex:1 1 230px;min-width:0}.portal-item-side{flex:1 1 230px;min-width:0;display:grid;gap:5px;align-content:start;padding-left:12px;border-left:1px dashed #dfe6ec}.portal-item-detail{display:flex;flex-wrap:wrap;gap:6px}.portal-item-detail span{font-size:12px;color:#1d5e45;background:#eefaf3;border:1px solid #cdeeda;border-radius:6px;padding:3px 8px;white-space:nowrap}@media(max-width:560px){.portal-item-side{padding-left:0;border-left:0}}.portal-item:last-child{border-bottom:0}.portal-item-img{width:84px;height:84px;border-radius:8px;background:#f0f3f5;overflow:hidden;display:grid;place-items:center;color:#8b97a2;font-size:11px}.portal-item-img img{width:100%;height:100%;object-fit:cover}.portal-item-body{display:grid;gap:5px;align-content:start}.portal-item-head{display:flex;align-items:center;gap:8px}.portal-item-head b{font-size:14px;color:#172432}.portal-process{font-size:11px;background:#eef4ff;color:#2457d6;border-radius:999px;padding:2px 9px}.portal-item-meta{font-size:12px;color:var(--muted)}.portal-item-note{font-size:12px;color:#8a5a00;background:#fff7e6;border:1px solid #ffe1ad;border-radius:6px;padding:4px 8px;margin-top:2px;white-space:pre-wrap;word-break:break-all}.portal-item-desc{font-size:12px;color:#172432;background:#f2f6fa;border:1px solid #dde6ee;border-radius:6px;padding:4px 8px;margin-top:2px;white-space:pre-wrap;word-break:break-all}.portal-item-spec{color:#3d5a80;font-weight:600}.portal-item-fill{display:flex;gap:8px;margin-top:4px;flex-wrap:wrap}.portal-item-fill input{flex:1 1 40%;min-width:0;height:44px;border:1px solid #d9e1e8;border-radius:8px;padding:0 12px;font-size:16px;background:#fff;box-sizing:border-box}.portal-item-fill button{flex:1 1 100%;display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border:0;border-radius:8px;background:#1d5e45;color:#fff;font-size:14px;cursor:pointer;white-space:nowrap}.portal-item-fill button:disabled{opacity:.5}.portal-error{color:#c62828;font-size:12px}@media(max-width:900px){.auth-layout{grid-template-columns:1fr;background:#f4f6f7}.auth-context{display:none}.auth-layout .auth-panel{grid-column:1;padding:8vh 20px}.auth-card{max-width:none}}.mobile-entry-wrap,.mobile-nav,.mobile-delivery-card{display:none}@media(max-width:820px){body{min-width:0}.app-shell{display:block;min-height:100vh}.sidebar{display:none}.mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;gap:2px;background:#fff;border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px #0f1e2e14;overflow-x:auto;-webkit-overflow-scrolling:touch}.mobile-nav a{flex:1 0 auto;min-width:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 6px 5px;border-radius:8px;color:#6b7a88;text-decoration:none;font-size:9px;white-space:nowrap}.mobile-nav a svg{width:21px;height:21px}.mobile-nav a.active{color:var(--blue);background:#edf3ff;font-weight:700}.workspace{grid-column:auto}.titlebar{height:52px;padding:0 12px}.titlebar .workspace-name{display:inline;font-size:14px}.titlebar .connection-state{display:none}.quick-hint{font-size:11px;padding:6px 8px}.quick-hint kbd{display:none}.titlebar-actions{gap:8px!important}.titlebar-actions .quick-hint{white-space:nowrap}.title-logout{font-size:11px;padding:6px 9px}main{padding-bottom:84px}.page-header{flex-direction:column;align-items:stretch;gap:10px}.page-header h1{font-size:20px}.page-header p{font-size:12px}.page-actions{justify-content:flex-start;flex-wrap:wrap}.toolbar{flex-direction:column;align-items:stretch;gap:8px}.search-box{width:100%}.metric-strip{grid-template-columns:repeat(2,1fr)}.metric-strip>a{padding:14px 16px;border-right:0;border-bottom:1px solid var(--line)}.metric-strip>a:nth-child(2n){border-right:0}.market-strip{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}.market-cell{flex:1 0 auto;min-width:0;padding:8px 10px;gap:7px}.market-cell+.market-cell{border-left:1px solid #eef1f5}.market-symbol{width:26px;height:26px;font-size:9px}.market-cell strong{font-size:13px}.market-cell small{font-size:9px}.market-range{display:none}.market-action{margin-left:0;flex:0 0 auto;padding:0 10px}.market-action .market-live small{display:none}.table-wrap,.settlement-table-wrap,.compact-handover-wrap,.raw-table-wrap,[class*=-table-wrap]{overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap>table,.settlement-table,.compact-handover-table,.raw-table{min-width:760px}.form-drawer,.order-drawer{width:min(100vw - 20px,96vw)}.order-drawer{max-width:96vw}.detail-summary{grid-template-columns:repeat(2,1fr)}.detail-summary>div{border-bottom:1px solid var(--line)}.ai-settings-form,.setting-fields,.setting-group-tabs{grid-template-columns:1fr}.settings-zone-tabs{flex-wrap:wrap}.settings-zone-tabs button{flex:1 1 auto}.process-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}.process-tabs button{flex:0 0 auto}.route-line{padding:14px 8px}.form-grid,.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.form-grid.three{grid-template-columns:1fr}.order-drawer .form-grid,.order-drawer .form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-section{padding:12px}.button,.button-primary,.button-secondary,.button-ghost,.button-danger{min-height:44px}.input,select.input,textarea.input{font-size:16px}.sidebar-foot{display:none}}@media(max-width:820px){.form-split{grid-template-columns:1fr;max-width:none;gap:12px}.form-split .image-slots,.image-slots{grid-template-columns:repeat(2,1fr);gap:8px}.form-split .image-slot,.image-slot{height:116px}.order-entry-inline .image-section .image-slots>:nth-child(3){display:none}.form-section-title{flex-wrap:wrap;gap:6px}}@media(max-width:820px){.compact-handover-wrap{border-radius:8px}.process-summary{flex-wrap:wrap}.process-summary>strong{flex:1 1 100%}.month-filter{flex-wrap:wrap}.month-all{flex:1 1 100%}.desktop-entry-only{display:none}.mobile-entry-wrap{display:block;margin-top:12px}.compact-handover-table thead,.compact-handover-table tbody tr .order-thumb{display:none}}@media(max-width:820px){.mv-entry{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;gap:12px}.mv-entry-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--line)}.mv-entry-head strong{font-size:14px;color:#273647}.mv-fields,.mv-row{display:grid;gap:10px}.mv-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.mv-row.note{grid-template-columns:1fr}.mv-fields .select,.mv-fields .input{min-height:42px;font-size:16px;width:100%}.mv-field{display:grid;gap:4px;min-width:0}.mv-field>span.mv-label{font-size:11px;color:#64748b;font-weight:600}.mv-field>span.mv-err{color:var(--red)}.mv-calc{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;background:#f7f9fa;border-radius:8px;padding:10px}.mv-calc span{display:grid;gap:2px;font-size:10px;color:#64748b}.mv-calc b{font-size:13px;color:#172432;font-family:Roboto Mono,monospace}.mv-entry .stone-editor-card{border:0;background:transparent;border-radius:0;padding:0;min-width:0}.mv-entry .stone-mobile-grid{display:grid;gap:4px}.mv-entry .stone-mobile-head,.mv-entry .stone-mobile-row{display:grid;grid-template-columns:1.25fr 1.15fr .85fr .85fr 30px;gap:6px;align-items:center}.mv-entry .stone-mobile-head>span{min-width:0;font-size:10px;color:#64748b;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mv-entry .stone-mobile-row>*{min-width:0}.mv-entry .stone-mobile-row .select,.mv-entry .stone-mobile-row input{min-height:40px;font-size:15px;width:100%;min-width:0;box-sizing:border-box}.mv-entry .stone-mobile-remove{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#d94e5c;cursor:pointer;font-size:14px;padding:0;height:40px;width:30px}.mv-entry .stone-mobile-summary{display:flex;align-items:center;gap:12px;background:#f7f9fa;border-radius:8px;padding:10px;font-size:12px;color:#64748b}.mv-entry .stone-mobile-summary b{color:#172432;font-family:Roboto Mono,monospace}.mv-entry .stone-mobile-summary-title{font-weight:700;color:#273647}.mv-entry .stone-totals{flex-wrap:wrap;gap:8px 14px}}@media(max-width:820px){.quote-calculator-layout{grid-template-columns:1fr}.quote-image-panel,.quote-calc-panel{width:100%}.original-image-drop{height:200px}.metal-options{grid-template-columns:repeat(3,1fr)}.metal-options button{height:38px}.quote-input-grid.exact{grid-template-columns:repeat(2,1fr)}.quote-context{flex-direction:column;align-items:stretch;gap:8px}.quote-panel-heading{flex-direction:column;align-items:stretch;gap:8px;min-height:0}.quote-panel-heading>div{min-width:0}.quote-panel-heading h2{white-space:nowrap}.quote-panel-heading .quote-live-total{align-self:flex-end}.quote-image-actions{justify-content:flex-start;gap:6px;flex-wrap:wrap}.quote-image-actions .field{min-width:0;width:100%}.quote-image-actions .field .field-label{display:none}.quote-image-actions .button{flex:1 1 auto;white-space:nowrap;padding-inline:10px;justify-content:center}.quote-history .table-wrap>table{min-width:820px}.diamond-price-settings table{min-width:640px}.process-summary{flex-wrap:wrap}.process-summary>span{flex:1 1 auto}.quote-history{width:100%;margin-left:0}.quote-page .quote-history{margin-left:0}.quote-ledger.original{grid-template-columns:repeat(2,1fr)}.quote-ledger.original .quote-grand{grid-column:1 / -1}.quote-page .quote-export-card{padding:12px}.quote-page .quote-export-card .market-strip,.quote-page .quote-export-card .quote-context,.quote-page .quote-export-card .quote-save-path,.quote-page .quote-export-card .quote-calculator-layout,.quote-page .quote-export-card .quote-history{margin-left:0;margin-right:0}.quote-save-path{margin-top:0}.quote-page .quote-history{margin-top:12px}}@media(max-width:820px){.settlement-table-wrap{display:none}.delivery-page.preview-mode .settlement-table-wrap{display:block;overflow-x:auto}.mobile-delivery-card{display:grid;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px}.mobile-delivery-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--line)}.mobile-delivery-head strong{font-size:14px;color:#273647}.mobile-delivery-head span{font-size:11px;color:var(--muted)}.mobile-delivery-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-delivery-work{display:grid;gap:8px;background:#f7f9fa;border-radius:8px;padding:10px}.mobile-delivery-img{width:100%;max-height:160px;object-fit:contain;border-radius:6px;background:#eef1f3}.mobile-delivery-calc{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 6px;background:#f7f9fa;border-radius:8px;padding:10px}.mobile-delivery-calc span{display:grid;gap:2px;font-size:10px;color:#64748b}.mobile-delivery-calc b{font-size:13px;color:#172432;font-family:Roboto Mono,monospace}.mobile-delivery-card .mv-field{display:grid;gap:4px;min-width:0}.mobile-delivery-card .mv-label{font-size:11px;color:#64748b;font-weight:600}.mobile-delivery-card .mv-readonly{font-size:16px;color:#8a97a5;font-weight:600;line-height:42px}.mobile-delivery-card .select,.mobile-delivery-card .input{min-height:42px;font-size:16px;width:100%}.add-settlement-row{display:none}.gold-debt-strip{grid-template-columns:1fr 1fr}.settlement-footer,.settlement-meta{grid-template-columns:1fr}.settlement-filters{flex-direction:column;align-items:stretch}.settlement-filters .input,.settlement-filters select{width:100%}}@media(max-width:480px){.page-actions .button{flex:1 1 auto}.detail-summary,.metric-strip{grid-template-columns:1fr}.form-grid,.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}}.handover-card-list{display:grid;gap:14px}.handover-card{background:#fff;border:1px solid #e3e8ec;border-radius:12px;padding:0;display:grid;overflow:hidden;box-shadow:0 1px 3px #1724320d;transition:box-shadow .16s ease,transform .16s ease}.handover-card:hover{box-shadow:0 4px 14px #17243217}.handover-card .hv-head{display:flex;align-items:center;gap:12px;padding:14px 16px 12px;border-bottom:1px solid #eef1f4;background:linear-gradient(180deg,#fbfcfd,#f6f8fa)}.hv-thumb{flex:0 0 auto}.hv-thumb .order-thumb{width:52px;height:52px;border-radius:8px;overflow:hidden;background:#eef1f3;display:grid;place-items:center;color:#8b97a2;font-size:10px;border:1px solid #e3e8ec}.hv-thumb .order-thumb img{width:100%;height:100%;object-fit:cover}.hv-title{flex:1 1 auto;min-width:0}.hv-title strong,.hv-title span{display:block}.hv-title strong{font-size:15px;color:#172432}.hv-title span{font-size:12px;color:#687687;margin-top:3px}.hv-meta{flex:0 0 auto;text-align:right;display:grid;gap:5px;justify-items:end}.hv-holder{font-size:12px;color:#344454;font-weight:650}.hv-status{font-size:11px;font-weight:650;padding:3px 9px;border-radius:999px}.hv-status.ok{color:#167a53;background:#e4f3ed}.hv-status.wait{color:#a86409;background:#fff0d7}.handover-card>.hv-grid,.handover-card>.hv-stone{padding:14px 16px}.handover-card .hv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:8px 10px}.hv-item{background:#fbfcfd;border:1px solid #eef1f4;border-radius:8px;padding:8px 11px;min-width:0}.hv-item.hv-calc{background:#eef4ff;border-color:#dbe8ff}.hv-label{display:block;font-size:10px;color:#8a97a5;margin-bottom:3px;letter-spacing:.2px}.hv-value{display:block;font-size:15px;color:#172432;font-weight:550;font-variant-numeric:tabular-nums}.hv-item.hv-calc .hv-value{color:#2457d6;font-weight:700}.handover-card .hv-stone{display:grid;gap:10px}.hv-stone-col{display:grid;gap:4px;background:#fff;border:1px solid #eef1f4;border-radius:7px;padding:8px 10px}.hv-stone-col .hv-label{margin-bottom:2px}.hv-stone-row{font-size:12px;color:#273647}.hv-stone-row.muted{color:#9aa5af}.hv-stone-cost{display:flex;align-items:baseline;gap:10px;background:#fff8ec;border:1px solid #f3e2c2;border-radius:7px;padding:8px 10px}.hv-stone-cost b{font-size:15px;color:#8a5a00}.handover-card .hv-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid #eef1f4;background:#fbfcfd}.hv-time{font-size:11px;color:#8a97a5}.hv-time .mv-hint{color:#b0bac4}.hv-actions{display:flex;align-items:center;gap:6px}.hv-actions .entry-receive-button{min-height:30px}.hv-actions .table-delete{color:#d94e5c}.desktop-entry-card{margin-top:14px}.entry-card{background:#fff;border:1px solid #e3e8ec;border-radius:12px;display:grid;overflow:hidden;box-shadow:0 1px 3px #1724320d}.ec-head{padding:14px 16px 12px;border-bottom:1px solid #eef1f4;background:linear-gradient(180deg,#fbfcfd,#f6f8fa)}.ec-head strong{font-size:15px;color:#273647}.ec-fields{display:grid;gap:14px;padding:14px 16px}.ec-product{display:flex;align-items:center;gap:12px;background:#f7f9fa;border:1px solid #eef1f4;border-radius:8px;padding:10px 12px}.ec-product-img{flex:0 0 auto;width:56px;height:56px;border-radius:6px;overflow:hidden;background:#eef1f3;display:grid;place-items:center;color:#8a97a5;font-size:10px}.ec-product-img img{width:100%;height:100%;object-fit:cover}.ec-product-body{min-width:0}.ec-product-body b,.ec-product-body span{display:block}.ec-product-body b{font-size:14px;color:#172432}.ec-product-body span{font-size:12px;color:#687687;margin-top:2px}.ec-row{display:grid;gap:10px}.ec-row.two{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-field{display:grid;gap:4px;min-width:0}.ec-label{font-size:11px;color:#64748b;font-weight:600}.ec-label.ec-err{color:var(--red)}.ec-field .input,.ec-field select.input,.ec-field .select{min-height:40px;width:100%}.ec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 10px}.ec-field.ec-calc{background:#eef4ff;border:1px solid #dbe8ff;border-radius:8px;padding:8px 11px}.ec-val.calc{display:block;font-size:15px;color:#2457d6;font-weight:700;font-variant-numeric:tabular-nums}.ec-stone{background:#fbfcfd;border:1px solid #eef1f4;border-radius:8px;padding:10px}.ec-actions{display:flex;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid #eef1f4}@media(max-width:820px){.handover-card-list,.desktop-entry-card{display:none}.mobile-entry-wrap{display:block}}
