/* 丸福リサイクル · 店内工作系统。只负责呈现，报价和权限由原服务端执行。 */
:root {
  --ink:#172f30; --text:#213333; --muted:#5c706f; --line:#dce5e3;
  --blue:#17665d; --blue-dark:#104d46; --bg:#f3f6f5; --danger:#b33d39;
  --surface:#fff; --soft:#edf5f2; --nav-width:208px;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:16px; line-height:1.55; color:var(--text); font-synthesis:none;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}[hidden]{display:none!important}
button,input,select,textarea{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--blue)}a:visited{color:#456762}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #74b5a7;outline-offset:3px}
h1,h2,h3,p{margin:0}h1{font-size:26px;line-height:1.3;letter-spacing:.02em}h2{font-size:18px;line-height:1.45;font-weight:650}h3{font-size:15px;line-height:1.5;font-weight:600}
input,select,textarea{width:100%;min-width:0;min-height:42px;border:1px solid #cbd7d4;border-radius:6px;padding:9px 11px;color:var(--text);background:var(--surface);font-size:14px;transition:border-color .15s,box-shadow .15s}
input:hover,select:hover,textarea:hover{border-color:#88a49e}input:focus,select:focus,textarea:focus{border-color:var(--blue)}
input:disabled,select:disabled,input[readonly]{background:#f4f6f5;color:#667773}textarea{resize:vertical;line-height:1.6}
input[type=checkbox]{accent-color:var(--blue)}
.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:16px;font-size:13px}
.field>span{display:flex;align-items:center;gap:6px;color:#475f5b;font-weight:550}.field em{font-style:normal;color:var(--danger)}
.field small{display:inline-block;width:18px;height:18px;line-height:18px;text-align:center;background:var(--soft);border:1px solid #d7e5df;color:var(--blue);font-size:11px;border-radius:3px}
.muted,.hint,.meta{color:var(--muted)}.small,.hint,.meta{font-size:13px}.hint{margin-top:10px;line-height:1.7}.eyebrow{display:block;font-size:12px;color:var(--muted);margin-bottom:8px;letter-spacing:.03em}
.primary,.secondary,a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;min-height:42px;border-radius:6px;font-size:14px;font-weight:600;white-space:nowrap;text-align:center;text-decoration:none}
.primary,a.primary:visited{background:var(--blue);color:#fff}.primary:hover:not(:disabled){background:var(--blue-dark)}.primary:active:not(:disabled){transform:translateY(1px)}
.secondary,a.secondary:visited{background:#fff;border:1px solid #cbd7d4;color:#395b53}.secondary:hover:not(:disabled){background:var(--soft);border-color:#91aaa2}
.wide{width:100%}.text-button{padding:8px;min-height:36px;font-size:13px;color:var(--blue);white-space:nowrap;border-radius:4px}.text-button:hover{background:var(--soft)}
.danger{color:var(--danger)}.danger:hover{background:#fff0ef}.small-button{padding:7px 10px;min-height:38px;font-size:13px}
.form-error{font-size:14px;color:var(--danger);margin:12px 0;white-space:pre-line;overflow-wrap:anywhere}.form-error:empty{display:none}
.form-grid{display:grid;gap:0 14px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px;margin-bottom:18px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.section-heading h2{display:flex;align-items:center;gap:10px}.section-heading p{margin-top:5px}
.step-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:25px;height:25px;border-radius:4px;background:var(--soft);color:var(--blue);font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
.shell{display:flex;min-height:100vh}.sidebar{width:var(--nav-width);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:32px 14px 20px;background:var(--ink);color:#b6cbc6;z-index:20}
.brand{display:flex;align-items:center;gap:11px;padding:0 9px 36px}.brand-mark{width:38px;height:42px;display:flex;align-items:center;justify-content:center;flex:none;border:1px solid #688b80;border-radius:5px;color:#edf6f0;font-family:"Hiragino Mincho ProN","Songti SC",serif;font-size:28px}
.brand strong{display:block;color:#f5f8f5;font-size:23px;letter-spacing:2px;font-weight:650;white-space:nowrap}.brand span{display:block;margin-top:3px;color:#a8bdb6;font-size:10px;letter-spacing:.02em}
.nav-caption{padding:0 12px 10px;font-size:11px;letter-spacing:.12em;color:#8fa9a1}.sidebar nav{display:flex;flex-direction:column;gap:6px}
.nav-button{display:flex;align-items:center;gap:11px;padding:12px;min-height:46px;border-radius:5px;color:#c3d4ce;font-size:14px;text-align:left;transition:background .15s,color .15s}
.nav-button svg{width:18px;height:18px;flex:none}.nav-button:hover{background:#24413f;color:#fff}.nav-button.active{background:#d9ede5;color:#163d34;font-weight:650}
.nav-button small{margin-left:auto;border:1px solid #8aa59b66;border-radius:3px;padding:1px 4px;font-size:10px;color:#b8cac3}.nav-button.active small{color:#2e6654;border-color:#a7cbbc}
.nav-button.admin-start{border-top:1px solid #ffffff1a;margin-top:16px;padding-top:16px;border-radius:0 0 5px 5px}
.sidebar-bottom{display:flex;align-items:center;gap:10px;margin-top:auto;padding:20px 3px 0;border-top:1px solid #ffffff1c}.avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:6px;background:#34534b;color:#edf6f0;font-size:14px}
.sidebar-bottom strong{display:block;max-width:95px;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#e7f0eb}.sidebar-bottom span{display:block;color:#a5bcb3;font-size:11px}.logout{margin-left:auto;font-size:12px;color:#c3d4ce;padding:8px 2px}.logout:hover{color:#fff}
.main{margin-left:var(--nav-width);width:calc(100% - var(--nav-width));padding:28px 32px 40px;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.topbar-context{display:flex;align-items:center;gap:16px}.context-date{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.role-pill{padding:5px 10px;font-size:12px;color:#31594d;border:1px solid #d6e4de;background:#edf4f0;border-radius:4px}
.demo-banner{display:flex;gap:12px;align-items:center;margin-bottom:24px;padding:9px 13px;border:1px solid #e4e8d8;background:#f7f8ee;color:#606a42;border-radius:5px;font-size:12px;line-height:1.5}.demo-banner>span{font-weight:600;white-space:nowrap}
.workspace-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:6px 0 24px}.workspace-intro h2{font-size:20px}.workspace-intro p{margin-top:7px;color:var(--muted);font-size:14px}
.workspace-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.workspace-action{position:relative;background:#fff;border:1px solid var(--line);border-radius:8px;text-align:left;padding:24px;transition:border-color .15s,background .15s}
.workspace-action:hover{border-color:#92b6a8;background:#fcfefd}.workspace-action>div{display:flex;align-items:center;gap:12px}.workspace-action svg{width:24px;height:24px;color:var(--blue);flex:none}.workspace-action strong{font-size:19px;font-weight:650}.workspace-action p{font-size:14px;color:var(--muted);margin:14px 0 20px}.action-link{font-size:13px;color:var(--blue);font-weight:600}
.available-label,.preview-label{margin-left:auto;font-size:11px;padding:3px 7px;white-space:nowrap;border-radius:4px;background:#edf6f0;color:#2e6850}.preview-label{background:#f1f3f2;color:#53655d}.preview-action svg{color:#71867d}
.management-shortcuts{display:flex;align-items:center;gap:25px;padding:24px 2px;font-size:14px}.management-shortcuts>span{font-size:13px;color:var(--muted);margin-right:3px}.management-shortcuts button{color:var(--blue);padding:5px 0;min-height:36px}.management-shortcuts button:hover{text-decoration:underline;text-underline-offset:4px}.recent-business{margin-top:22px}.management-shortcuts+.recent-business{margin-top:0}
.table-wrap{overflow:auto;min-width:0}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th{padding:12px 14px;color:#516b62;background:#f1f6f3;border-bottom:1px solid #d5e2db;font-size:12px;font-weight:600;white-space:nowrap}td{padding:15px 14px;border-bottom:1px solid #e5ece7;vertical-align:middle;font-size:14px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfb}
.meta{margin-top:4px;overflow-wrap:anywhere}.product-name{font-weight:600;font-size:14px}.mono{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:12px;overflow-wrap:anywhere}.nowrap{white-space:nowrap}.money-cell{font-weight:650;font-variant-numeric:tabular-nums;color:#294d40}
.empty{padding:40px 16px;text-align:center;color:var(--muted)}.empty-icon svg{width:29px;height:29px;color:#8ba99b}.empty strong{display:block;margin:11px 0 6px;font-size:16px;color:#496157;font-weight:550}.empty p{font-size:13px;line-height:1.7;max-width:420px;margin:auto}
.page-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.page-intro p{color:var(--muted);font-size:14px}.page-intro>div{display:flex;gap:8px;flex-wrap:wrap}.filter-bar{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.filter-bar .field{flex:1;min-width:135px;margin:0}.filter-bar .field:first-child{flex:2;min-width:230px}.filter-bar .field:last-child{flex:0;min-width:0}
.pagination{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:22px;font-size:13px}.record-actions{display:flex;align-items:center;gap:18px}
.quote-workspace{display:grid;grid-template-columns:minmax(350px,.92fr) minmax(430px,1.08fr);gap:20px;align-items:start}.quote-selection,.quote-order{min-width:0}.quote-selection{margin:0}.quote-selection>.section-heading{border-bottom:1px solid var(--line);padding-bottom:16px}.quote-order{position:sticky;top:22px}.quote-lines{min-height:255px}.quote-lines .table-wrap{max-height:435px;overflow:auto}.quote-lines th{position:sticky;top:0;z-index:1}.quote-lines>.section-heading{margin-bottom:16px}.quote-checkout{margin-bottom:0}
.entry-tabs{display:flex;gap:0;border-bottom:1px solid #d6e4de;margin-bottom:20px;width:100%;background:none}.entry-tabs button{padding:12px 16px;min-height:44px;font-size:14px;color:var(--muted);border-bottom:2px solid transparent}.entry-tabs button:hover{color:var(--blue);background:#f8fbf9}.entry-tabs .selected{color:var(--blue);font-weight:650;border-bottom-color:var(--blue);background:none}
.reference-search-row{display:flex;align-items:end;gap:10px;margin-bottom:16px}.reference-search-row>.field{flex:1;margin:0}.reference-search-row>button{flex:none}.search-help{padding-bottom:17px;margin:0;font-size:13px}
.reference-choices{display:grid;grid-template-columns:1fr;margin-bottom:17px;max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:6px}.reference-choices .product-choice{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:12px 14px;gap:4px}.reference-choices .product-choice:last-child{border:0}.reference-choices span{font-size:12px;color:var(--muted)}
.selected-reference{padding:14px;background:#edf5f0;border:1px solid #d4e5da;border-radius:6px;margin-bottom:19px}.selected-reference strong{display:block;font-size:15px}.selected-reference span,.selected-reference small{display:block;margin-top:5px;font-size:12px;color:#4d6c5c}
.optional-fields{margin:0 0 16px;font-size:13px}.optional-fields summary{padding:6px 0 9px;cursor:pointer;color:#526f61;min-height:32px}.optional-fields[open]>summary{color:var(--blue);font-weight:550}.optional-fields[open]>.field{margin-top:6px}
.reference-fields{display:grid;grid-template-columns:1fr;gap:18px;padding:18px 0 0;border-top:1px solid var(--line)}.reference-fields h3{margin-bottom:12px}.reference-fields .optional-fields{margin-bottom:0}.check-field{display:flex;align-items:center;gap:8px;min-height:32px;margin:12px 0;font-size:13px;color:#506358}.check-field input{width:17px;height:17px;min-height:0;flex:none;accent-color:var(--blue)}.fault-list{font-size:13px;margin:12px 0}.fault-list summary{cursor:pointer;padding:6px 0;color:#506358}
.calculation{border:1px solid #c8e2d1;background:#eef7f0;border-radius:6px;padding:16px;margin:18px 0}.calculation.manual{border-color:#eadcc1;background:#fcf7eb}.calculation.rejected{border-color:#eacbc7;background:#fff3f1}.calculation-amount{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0}.calculation-amount>span{color:#4e6a59;font-size:13px}.calculation-amount strong{font-size:27px;letter-spacing:-.02em;color:var(--blue);font-variant-numeric:tabular-nums}.calculation.manual strong{color:#89641f}.calculation.rejected strong{color:var(--danger)}.calculation p{font-size:13px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}.calculation .warning{color:#826026}.calculation details{font-size:13px;margin-top:12px}.calculation summary{cursor:pointer;color:var(--blue)}.factor-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.factor-list span{background:#ffffffb8;padding:4px 8px;border:1px solid #dbe8df;border-radius:4px;font-size:12px;color:#446756}
.formula-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:18px}.formula-actions .primary{flex:1}.formula-actions .text-button{flex-basis:100%;padding-left:0;text-align:left}.selector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.add-grid{grid-template-columns:1.25fr .75fr;gap:0 14px;margin-top:20px}.add-grid .field:nth-child(3),.add-button{grid-column:1/-1}.add-button>span{display:none}.add-button button{width:100%}
.selection-hint{border:1px dashed #cbdcd2;padding:18px;border-radius:6px;color:#52695b;background:#f7faf7;font-size:13px}.suggestion{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #c8e2d1;background:#eef7f0;border-radius:6px;padding:16px}.suggestion span{display:block;color:#547361;font-size:13px}.suggestion strong{font-size:24px;color:var(--blue)}.suggestion p{font-size:13px;color:#547361;max-width:55%}
.item-table{font-size:13px}.item-table th{padding:11px 8px;font-size:12px}.item-table td{padding:15px 8px;font-size:13px}.item-table td:first-child{min-width:150px;max-width:260px}.item-table .meta{font-size:11px;line-height:1.7}.item-table .price-input{width:87px;min-height:36px;padding:7px;font-size:13px;font-variant-numeric:tabular-nums}.item-table .qty-input{width:54px;min-height:36px;padding:7px;font-size:13px}.line-note{margin-top:7px;min-height:29px;font-size:11px;padding:5px 7px;background:#fbfcfb;border-color:#e0e7e2}.adjusted{display:block;margin-top:4px;color:#866421;font-size:11px}
.quote-checkout .three{grid-template-columns:1.1fr 1fr 1.06fr}.checkout-totals{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid var(--line);margin-top:2px}.checkout-totals>div:first-child{display:grid;grid-template-columns:1fr auto;gap:8px 20px;font-size:13px;color:var(--muted)}.checkout-totals>div:first-child strong{color:var(--text);font-size:13px}.checkout-amount{text-align:right;min-width:0}.checkout-amount>span{display:block;font-size:12px;color:var(--muted)}.checkout-amount strong{display:block;font-size:31px;letter-spacing:-.035em;color:#235845;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.quote-checkout>.primary{min-height:45px}.quote-checkout>.hint{font-size:12px;line-height:1.6}
.product-search{position:relative}.search-results{position:absolute;left:0;right:0;top:80px;z-index:8;background:white;border:1px solid var(--line);border-radius:6px;box-shadow:0 12px 30px #172f3015;max-height:330px;overflow:auto}.search-result{display:flex;align-items:center;gap:14px;width:100%;padding:13px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.search-result strong{min-width:75px;color:var(--blue);font-size:13px}.search-result:hover{background:var(--soft)}.search-results .hint{padding:16px;margin:0}.picked{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:11px 13px;margin-bottom:18px;font-size:13px;background:var(--soft);border:1px solid var(--line);border-radius:5px}.picked>span{color:var(--muted)}.picked button{margin-left:auto}
.price-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px}.product-list{max-height:calc(100vh - 190px);overflow:auto;align-self:start}.product-choice{display:flex;flex-direction:column;gap:5px;width:100%;padding:14px;margin-bottom:10px;border:1px solid var(--line);border-radius:6px;text-align:left;transition:background .15s,border-color .15s}.product-choice:hover{background:#f7fbf8;border-color:#b1cabe}.product-choice.selected{background:var(--soft);border-color:#84b39e}.product-choice strong{font-size:14px}.product-choice small{font-size:12px;color:var(--muted)}.product-code{font-size:12px;color:var(--blue)}.product-code em{font-style:normal;color:var(--muted);margin-left:8px}
.status-badge{display:inline-block;background:#eaf3ee;color:#31674e;padding:4px 8px;border-radius:4px;white-space:nowrap;font-size:11px}.status-badge.paused{background:#f0f2f1;color:#5a6b60}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.category-tabs{display:flex;gap:4px}.category-tabs button{padding:8px 16px;min-height:38px;border-radius:5px;font-size:14px}.category-tabs button:hover{background:#f3f8f5}.category-tabs button.selected{background:#e6f1e9;color:var(--blue);font-weight:650}.reference-library .reference-search-row{max-width:730px;margin-bottom:24px}
.settings-list{max-width:1100px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;padding:23px 4px;border-top:1px solid var(--line);text-align:left}.settings-row:hover{background:#f8fbf8}.settings-row strong{font-size:16px}.settings-row p{margin-top:7px;font-size:14px;color:var(--muted)}.settings-row>span{font-size:13px;color:var(--blue);white-space:nowrap}
.parameter-table .field{margin:0;min-width:90px}.parameter-table .field>span{display:none}.parameter-table td:nth-child(4){min-width:210px}.parameter-table input[type=checkbox]{width:18px;min-height:18px}.parameter-table select{min-width:106px}#formula-parameters-form h2{margin-bottom:22px}
.template-layout{display:grid;grid-template-columns:minmax(350px,.9fr) minmax(0,1.1fr);gap:24px}.template-layout h2{margin-bottom:20px}.template-preview{position:sticky;top:22px;align-self:start;padding:20px}.template-preview iframe{width:100%;height:820px;border:1px solid var(--line);border-radius:4px;background:white}.column-editor{display:grid;grid-template-columns:25px 1fr auto auto;align-items:center;gap:9px;margin-bottom:10px}.column-editor input[type=checkbox]{width:17px;height:17px;min-height:0}
.detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}.detail-toolbar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.success-badge{border:1px solid #c1ddc9;border-radius:4px;background:#eff7f0;color:#30634a;padding:6px 9px;font-size:12px}.detail-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding-bottom:23px;margin-bottom:20px;border-bottom:1px solid var(--line)}.detail-info span{display:block;margin-bottom:7px;font-size:13px;color:var(--muted)}.detail-info p{margin-top:5px;font-size:13px;color:var(--muted)}.note{margin-top:20px;background:#f4f7f4;padding:16px;font-size:14px;white-space:pre-wrap}.saved-calculation{font-size:12px;max-width:250px;margin-top:8px;white-space:normal}.saved-calculation summary{cursor:pointer;color:var(--blue)}.saved-calculation p{margin:6px 0;overflow-wrap:anywhere}
.preview-notice{padding:16px 18px;margin-bottom:22px;background:#eef4f1;border:1px solid #d5e2db;border-radius:6px;font-size:14px}.preview-notice p{margin-top:6px;font-size:13px;color:var(--muted)}.preview-table{margin-top:22px}.sales-preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px}.summary-row{display:flex;justify-content:space-between;margin:16px 0;font-size:14px;color:var(--muted)}.summary-row strong{color:var(--text)}
dialog{border:1px solid var(--line);border-radius:10px;padding:26px;width:570px;max-width:calc(100vw - 24px);max-height:90vh;box-shadow:0 22px 70px #132d301f}dialog::backdrop{background:#142b3040}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100vh;background:#fff}.auth-brand{background:var(--ink);color:#f2f6ee;padding:12vh 15%;display:flex;flex-direction:column;align-items:start;justify-content:center;position:relative}.auth-brand>.brand-mark{width:58px;height:64px;font-size:39px;border-color:#839e88;border-radius:5px}.auth-brand>p{margin-top:20px;color:#c8d8ce;font-size:16px}.auth-brand h1{margin-top:48px;font-size:32px;line-height:1.6;letter-spacing:.04em;font-weight:550}.auth-line{width:56px;height:1px;background:#92bba3;margin-top:30px}.auth-brand>.auth-sub{font-size:13px;color:#aebfb2;letter-spacing:.06em}.auth-card{width:440px;max-width:100%;padding:40px;align-self:center;margin:auto}.auth-card>.eyebrow{font-size:13px;color:#567466}.auth-card h2{font-size:25px;margin:10px 0 12px}.auth-card>.muted{font-size:14px;margin-bottom:28px}.auth-card form{margin-top:26px}.auth-card .primary{margin-top:6px;min-height:46px}.auth-card .demo-banner{margin:0}.auth-card .field{margin-bottom:20px}.auth-card input{min-height:46px;font-size:16px}
.loading{text-align:center;color:var(--muted);padding:30vh 30px}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#244b3c;color:#fff;max-width:90vw;border-radius:6px;padding:13px 20px;font-size:14px;box-shadow:0 7px 20px #143a3320;opacity:0;pointer-events:none;z-index:100;transition:opacity .16s,transform .16s}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#a03a34}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.main{padding:32px 38px 44px}.quote-workspace{grid-template-columns:minmax(470px,.86fr) minmax(660px,1.14fr)}.quote-selection #formula-calculator>.two{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-fields{grid-template-columns:1fr 1fr}}
@media(max-width:1250px){.main{padding:24px}.quote-workspace{grid-template-columns:minmax(0,1fr)}.quote-order{position:static}.quote-lines .table-wrap{max-height:none}.quote-selection #formula-calculator>.two{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-fields{grid-template-columns:1fr 1fr}.template-layout{grid-template-columns:minmax(0,1fr)}.template-preview{position:static}.sales-preview-layout{grid-template-columns:minmax(0,1fr)}.auth-brand{padding:10vh 12%}}
@media(max-width:780px){:root{--nav-width:0px}.shell{display:block}.sidebar{position:static;width:100%;padding:16px 16px 0}.brand{padding:0 0 14px;gap:10px}.brand-mark{width:31px;height:34px;font-size:23px}.brand strong{font-size:20px}.brand span,.nav-caption{display:none}.sidebar nav{flex-direction:row;overflow:auto;gap:4px;padding-bottom:12px}.nav-button{min-height:44px;white-space:nowrap;padding:10px 12px;font-size:13px;gap:7px}.nav-button svg{width:16px;height:16px}.nav-button small{display:none}.nav-button.admin-start{border:0;margin:0;padding:10px 12px;border-radius:5px}.sidebar-bottom{position:absolute;top:21px;right:18px;padding:0;margin:0;border:0}.sidebar-bottom>.avatar,.sidebar-bottom>div{display:none}.main{width:100%;margin:0;padding:22px 16px 32px}.topbar h1{font-size:23px}.topbar-context{display:none}.topbar{margin-bottom:18px}.demo-banner{padding:10px 12px;align-items:start;font-size:12px;margin-bottom:21px}.demo-banner>span{margin-top:1px}.card{padding:19px 16px}.section-heading{gap:10px;align-items:start}.section-heading>.small{display:none}.workspace-intro{align-items:start;margin-bottom:20px}.workspace-intro>span{display:none}.workspace-actions{grid-template-columns:1fr;gap:12px}.workspace-action{padding:20px}.workspace-action strong{font-size:18px}.workspace-action p{font-size:13px;margin:10px 0 14px}.management-shortcuts{flex-wrap:wrap;gap:14px;padding:22px 0}.management-shortcuts>span{width:100%}.form-grid{gap:0 12px}.three,.quote-selection #formula-calculator>.two,.quote-checkout .three{grid-template-columns:1fr 1fr}.three .field:first-child{grid-column:1/-1}#formula-calculator .three .field:first-child{grid-column:auto}.reference-fields{grid-template-columns:1fr}.reference-fields .two{grid-template-columns:1fr 1fr}.quote-workspace{gap:18px}.quote-checkout .three .field:first-child{grid-column:1/-1}.checkout-amount strong{font-size:27px}.checkout-totals{gap:12px}.quote-lines .table-wrap{overflow:visible}.item-table,.item-table tbody,.item-table tr,.item-table td{display:block}.item-table thead{display:none}.item-table tr{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.item-table td{border:0;padding:0}.item-table td:first-child{grid-column:1/-1;max-width:none;min-width:0}.item-table td:nth-child(2)::before{content:'建议价 ';color:var(--muted);font-size:13px}.item-table td:nth-child(3)::before{content:'最终单价';display:block;margin-bottom:6px;color:var(--muted);font-size:13px}.item-table td:nth-child(4)::before{content:'数量';display:block;margin-bottom:6px;color:var(--muted);font-size:13px}.item-table td:nth-child(5){grid-column:1}.item-table td:last-child{grid-column:2;text-align:right}.item-table .price-input,.item-table .qty-input{width:100%;min-height:44px;font-size:16px}.line-note{font-size:13px;min-height:38px}.item-table .meta{font-size:12px}.entry-tabs button{padding:11px 12px;font-size:13px}.calculation-amount{align-items:start;flex-direction:column}.calculation-amount strong{font-size:27px}.formula-actions .text-button{width:100%;flex:none}.reference-search-row>button{min-height:44px}.record-actions{flex-wrap:wrap;justify-content:end;gap:10px}.filter-bar .field{flex-basis:calc(50% - 10px);min-width:0}.filter-bar .field:first-child{flex-basis:100%;min-width:0}.filter-bar .field:last-child{flex:1}.page-intro{align-items:start;flex-wrap:wrap}.page-intro>div{display:flex;flex-wrap:wrap;gap:8px}.library-toolbar{align-items:start;gap:10px}.library-toolbar>.small{display:none}.category-tabs button{padding:9px 12px;min-height:44px}.price-layout{grid-template-columns:minmax(0,1fr)}.product-list{max-height:360px}.template-preview iframe{height:720px}.column-editor{grid-template-columns:22px 1fr 44px 44px;gap:5px}.detail-info{grid-template-columns:1fr}.detail-toolbar .primary{width:100%}.detail-toolbar>div{width:100%}.detail-toolbar>div>a,.detail-toolbar>div>button{flex:1}.settings-row{padding:19px 0}.settings-row p{font-size:13px}.auth-layout{display:block}.auth-brand{padding:25px;min-height:112px}.auth-brand>.brand-mark{width:48px;height:53px;font-size:32px}.auth-brand>p{position:absolute;left:91px;top:25px;margin:0;font-size:17px}.auth-brand h1,.auth-line,.auth-brand>.auth-sub{display:none}.auth-card{width:460px;padding:34px 25px}.auth-card h2{font-size:24px}.auth-card>.muted{margin-bottom:22px}.search-result{display:block}.search-result span{display:block;margin-top:4px}.picked{gap:6px}.suggestion{display:block}.suggestion p{max-width:100%;margin-top:7px}#formula-parameters-form .three{grid-template-columns:1fr}.parameter-table input,.parameter-table select{font-size:16px}dialog{padding:22px;max-height:92vh}.primary,.secondary{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.business-product-layout{display:grid;grid-template-columns:minmax(320px,1.1fr) minmax(340px,.9fr);gap:20px;align-items:start}.business-product-layout>.card{min-width:0}.business-test-box{padding:15px;background:#f5f8f6;border:1px solid var(--line);border-radius:5px;margin:12px 0}.business-test-box h3{margin-bottom:14px}.business-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.business-buttons button{flex:1;min-width:130px}#biz-lines input,#biz-sale-cart input,[data-doc-qty]{width:85px;min-height:35px;padding:6px;border:1px solid var(--line);border-radius:4px;font:inherit}.summary-row{display:flex;justify-content:space-between;gap:15px;margin:12px 0;padding:8px 0;border-bottom:1px solid var(--line)}.summary-row strong{font-variant-numeric:tabular-nums}.business-product-layout .field{margin-bottom:14px}#biz-xlsx-preview{max-height:450px;overflow:auto;margin:15px 0}#biz-library-table{max-height:720px;overflow:auto}
@media(max-width:1150px){.business-product-layout{grid-template-columns:1fr}.quote-order{position:static}}
.filter-bar.inline-filters .field,.filter-bar.inline-filters .field:first-child,.filter-bar.inline-filters .field:last-child{flex:0 1 320px;min-width:min(200px,100%)}
.sale-blocked{margin-top:16px}
.sale-blocked .warning{color:#826026;margin:0 0 8px}
.reference-choices .product-choice{position:relative;padding-right:56px}
.reference-choices .choice-plus{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;font-size:18px;line-height:30px;text-align:center;font-weight:700}
.line-minus{width:30px;height:30px;padding:0;border-radius:50%;border:1px solid var(--danger);background:#fff;color:var(--danger);font-size:18px;line-height:1;font-weight:700}
.line-minus:hover{background:#fbf0f0}

/* 报价行内的年份/成色/品牌档位与建议价提示（2026-10-18 价格补齐） */
.line-params td{background:#f6faf7;border-top:0;padding:12px 10px!important}
.line-params-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}
.line-params-grid .field{margin:0}
.line-params-grid select{min-height:36px}
#biz-lines .line-params-grid input{width:100%;min-height:36px;background:#fff}
.line-price-hint{margin:8px 0 0;font-size:12px;color:var(--muted);line-height:1.6}
@media(max-width:780px){.line-params-grid{grid-template-columns:1fr 1fr}.line-params-grid .field:first-child{grid-column:1/-1}}
.price-table{margin-top:10px;border:1px solid var(--line);border-radius:6px;padding:10px;background:#fbfdfc}
.price-table table{font-size:13px}.price-table th,.price-table td{text-align:center;padding:4px 6px;white-space:nowrap}
.price-table .cell-pick{min-width:72px;padding:4px 8px;border:1px solid var(--line);border-radius:4px;background:#fff;font-variant-numeric:tabular-nums}
.price-table .cell-pick:hover{border-color:var(--blue);background:var(--soft)}
.price-table .cell-pick.picked{background:var(--blue);color:#fff;border-color:var(--blue)}
.price-table .cell-muted{color:var(--muted);font-size:12px}
.flash-edit{box-shadow:0 0 0 3px #8cc7b4;transition:box-shadow .3s}
