/* Workspace 02: warm furniture identity with clearer operational hierarchy. */
:root{--ws-surface:#fffefa;--ws-border:#e8e1d6;--ws-ink:#3d372f;--ws-muted:#81786c;--ws-accent:#8c6b49;--ws-green:#386850;--ws-red:#a74d3e}
body{font-size:14px;color:var(--ws-ink)}
body.ws-drawer-open{overflow:hidden}
[hidden]{display:none!important}
.admin-main{padding:0 36px 36px;margin-left:224px}
.admin-sidebar{padding-top:28px}
.admin-sidebar nav button{font-size:14px;padding:13px 11px}
.admin-sidebar-foot{font-size:12px;line-height:1.9}
.workspace-label span,.sidebar-version,.admin-workspace,.nav-label{font-size:11px}
.admin-demo-bar{font-size:12px;border-bottom:1px solid var(--ws-border);background:transparent}
.admin-header{padding:28px 0 24px;align-items:center}
.admin-header h1{font-family:-apple-system,"PingFang SC",sans-serif;font-size:26px;font-weight:600;letter-spacing:-.5px}
.admin-header>div>p{font-size:12px;margin-bottom:8px}
.admin-tools{gap:8px;flex-wrap:wrap;justify-content:flex-end}
.admin-tools button,.brand-control{font-size:12px}
.admin-button{background:var(--ws-accent);color:white;border:1px solid var(--ws-accent);border-radius:6px;min-height:38px;padding:9px 16px;font-size:13px;font-weight:500}
.admin-button.secondary{color:var(--ws-accent);border:1px solid #d9cbbb;background:#fffdf9}
.admin-button:hover{filter:brightness(.96)}
.admin-link,.text-link{font-size:13px;font-weight:500;color:#866340}
.admin-footnote{font-size:12px;line-height:1.8;color:var(--ws-muted);margin-top:18px}
small{color:var(--ws-muted)}
.ws-page-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 23px}
.ws-page-intro h2{font-size:22px;font-weight:550;line-height:1.4;letter-spacing:-.3px}
.ws-page-intro p{font-size:13px;color:var(--ws-muted);margin-top:7px}
.ws-page-intro.compact{margin:26px 0 18px}
.ws-page-intro.compact h2{font-size:18px}
.ws-eyebrow{font-size:12px;color:var(--ws-muted);letter-spacing:.5px;margin-bottom:9px}
.ws-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:16px;margin:0 0 24px}
.ws-metric{text-align:left;border:1px solid var(--ws-border);background:var(--ws-surface);padding:21px 22px;border-radius:10px;transition:border-color .15s,box-shadow .15s}
.ws-metric:hover{border-color:#bea487;box-shadow:0 4px 16px #735e4310}
.ws-metric>div{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#706659}
.ws-metric>div>span:last-child{color:#ab9984}
.ws-metric strong{display:block;font-family:Arial,sans-serif;font-size:36px;line-height:1.1;font-weight:500;margin:17px 0 12px;font-variant-numeric:tabular-nums;color:#4f4031}
.ws-metric small{font-size:12px;display:block;line-height:1.6}
.ws-metric.ws-attention{background:#fffaf5}
.ws-metric.ws-attention strong{color:#9d533f}
.ws-dashboard{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:20px}
.work-card{border:1px solid var(--ws-border);border-radius:10px;background:var(--ws-surface);padding:22px 24px}
.card-heading{align-items:center;gap:12px;margin-bottom:16px}
.card-heading h2{font-size:16px;font-weight:600}
.card-heading small{display:block;font-size:12px;margin-top:5px}
.ws-task{display:flex;align-items:center;gap:14px;border-top:1px solid #eee8df;padding:18px 0}
.ws-task>div{flex:1;min-width:0}
.ws-task b{display:block;font-size:14px;font-weight:550}
.ws-task b small{display:inline;font-size:11px;margin-left:10px;font-weight:400}
.ws-task p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#746b5f;max-width:520px;margin:4px 0}
.ws-task small{display:block;font-size:12px}
.ws-task-icon{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#eee7dc;color:#82684c;font-size:16px}
.ws-task-icon.attention{background:#f8e8dd;color:#a4553e}
.ws-attention-list{display:grid}
.ws-attention-list button{display:flex;align-items:center;gap:12px;text-align:left;border-top:1px solid #eee8df;min-height:63px;padding:10px 0}
.ws-attention-list button span{flex:1;font-size:13px}
.ws-attention-list b{font:500 22px Arial,sans-serif;font-variant-numeric:tabular-nums}
.ws-attention-list em{font-style:normal;color:#ac9275}
.ws-footer-card{display:flex;align-items:center;gap:15px;border:1px solid var(--ws-border);padding:17px 22px;border-radius:8px;margin-top:20px;background:#f0eade}
.ws-footer-card p{font-size:13px;color:#746854;flex:1}
.ws-tag{display:inline-flex;align-items:center;gap:5px;border-radius:4px;line-height:1.5;padding:4px 7px;font-size:11px;font-weight:500;white-space:nowrap;background:#eee8dc;color:#776347}
.ws-tag.green,.ws-save-status.green{color:var(--ws-green)}
.ws-tag.green{background:#e9f1e9}
.ws-tag.amber{background:#faf0d9;color:#916925}
.ws-tag.muted{background:#f3eee6;color:#8a7862}
.ws-tag.neutral{background:#ede8e0;color:#716758}
.ws-tags{display:flex;flex-wrap:wrap;gap:5px;max-width:165px}
.ws-danger-text,.ws-save-status.danger{color:var(--ws-red)!important}
.ws-save-status.amber{color:#986d31}
.ws-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;background:var(--ws-surface);border:1px solid var(--ws-border);border-radius:10px 10px 0 0;padding:19px 20px}
.ws-filters label{display:flex;flex-direction:column;gap:8px;color:#756b5e;font-size:12px;min-width:125px;flex:1}
.ws-filters label.ws-search{flex:2;min-width:240px;max-width:430px}
.ws-filters input,.ws-filters select,.ws-pagination select{height:38px;padding:8px 11px;border:1px solid #dfd7cb;border-radius:5px;background:#fffefa;color:#4c453c;font-size:13px;min-width:0;width:100%}
.ws-filters input:focus,.ws-filters select:focus{outline:2px solid #b69b7430;outline-offset:0;border-color:#ac8c66}
.ws-reset{height:38px;font-size:12px;color:#8d7150}
.admin-table-wrap{border:1px solid var(--ws-border);border-radius:0 0 10px 10px;min-height:180px;background:var(--ws-surface);overflow:auto}
.ws-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.ws-table thead th{height:47px;background:#f2ede5;font-size:12px;font-weight:500;text-align:left;white-space:nowrap;padding:13px 16px;color:#786a59}
.ws-table td{padding:16px;vertical-align:middle;border-bottom:1px solid #eee8df;font-size:13px;line-height:1.6;background:var(--ws-surface)}
.ws-table td strong,.ws-table td b{font-weight:550}
.ws-table td small{font-size:11px;display:block;line-height:1.7;margin-top:3px;max-width:240px}
.ws-table tbody tr:hover td{background:#faf6ef}
.ws-table tbody tr:last-child td{border-bottom:0}
.ws-table .ws-wrap{white-space:normal;min-width:200px;max-width:450px}
.ws-table .ws-actions{position:sticky;right:0;z-index:1;white-space:nowrap;border-left:1px solid #eee7dd;min-width:115px}
.ws-actions a{display:block;font-size:11px;color:#8a7b69;margin-top:5px}
.ws-product-cell{display:flex;align-items:center;text-align:left;gap:13px;min-width:185px;max-width:260px;padding:0}
.ws-product-cell img{width:52px;height:60px;object-fit:contain;background:#f3efe8;border-radius:4px;flex-shrink:0}
.ws-product-cell span{min-width:0}
.ws-product-cell b{display:block;white-space:normal}
.ws-product-cell small{display:block;font-size:12px}
.ws-money{font-family:Arial,"PingFang SC",sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.table-product img{width:46px;height:54px;border-radius:4px}
.table-product span{font-size:13px}
.op-pill,.admin-table-wrap .op-pill{font-size:11px;padding:4px 7px;border-radius:4px}
.ws-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--ws-border);padding:15px 20px;font-size:12px;min-width:600px}
.ws-pagination>div{display:flex;align-items:center;gap:10px}
.ws-pagination label{display:flex;align-items:center;white-space:nowrap;gap:8px}
.ws-pagination select{width:86px;height:32px;padding:4px 8px}
.ws-pagination button{width:32px;height:32px;border:1px solid var(--ws-border);border-radius:5px}
.ws-pagination button:hover{background:#f0eade}
@media(max-width:700px){.ws-pagination{position:sticky;left:0;min-width:0;width:100%;padding:14px;flex-wrap:wrap;background:var(--ws-surface)}.ws-pagination>div{justify-content:space-between;width:100%;gap:7px}.ws-pagination select{width:75px}}
.ws-empty{text-align:center;padding:45px 22px;color:#8a7e6d}
.ws-empty>span{display:block;font-size:28px;color:#a58c6b;margin-bottom:15px}
.ws-empty h3{font-size:16px;font-weight:500;color:#615644}
.ws-empty p{margin:9px 0 20px;font-size:13px}
.ws-empty.compact{padding:30px 15px}
.subtabs{gap:6px;overflow:auto}
.subtabs button{font-size:13px;padding:13px 15px;white-space:nowrap}
.ws-status-tabs button span{display:inline-block;font-size:11px;border-radius:4px;background:#ece5da;padding:1px 5px;margin-left:8px}
.admin-drawer{padding:24px 30px 0;width:min(800px,100vw);scrollbar-gutter:stable;overscroll-behavior:contain}
.drawer-header{top:-24px;padding:18px 0;background:#fcfaf5}
.drawer-header h2{font-size:20px;font-family:-apple-system,"PingFang SC",sans-serif;font-weight:550}
.drawer-sub{font-size:12px}
.admin-form label{font-size:13px;color:#665b4c}
.admin-form input,.admin-form select,.admin-form textarea{font-size:14px;border-radius:5px;border-color:#ded2c1;background:#fffefa}
.admin-form textarea{line-height:1.8}
.admin-form .admin-error{font-size:13px}
.drawer-section h3{font-size:16px;font-weight:550}
.drawer-section p,.admin-note,.admin-readonly,.draft-warning{font-size:13px;line-height:1.8}
.ws-save-bar{position:sticky;bottom:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;background:#fcfaf5;border-top:1px solid #dfd3c2;box-shadow:0 -8px 15px #fcfaf5e8;margin-top:24px;min-height:67px}
.ws-save-status{font-size:12px;line-height:1.7;max-width:70%}
.ws-product-drawer,.ws-order-drawer{width:min(1020px,100vw)}
.ws-product-summary{display:flex;gap:22px;align-items:center;border:1px solid var(--ws-border);border-radius:9px;padding:18px 22px;margin:12px 0 22px;background:#f4eee4}
.ws-product-summary>img{width:100px;height:116px;object-fit:contain;background:#fffcf7;border-radius:6px}
.ws-product-summary h2{font-size:24px;font-weight:550}
.ws-product-summary p{font-size:13px;margin:7px 0;color:#7d6e5a}
.ws-product-summary a{font-size:12px;color:#86603f}
.ws-detail-tabs{display:flex;gap:22px;border-bottom:1px solid var(--ws-border);margin-bottom:22px;overflow:auto}
.ws-detail-tabs button{padding:13px 1px;font-size:14px;white-space:nowrap;border-bottom:2px solid transparent;color:#887a67}
.ws-detail-tabs button.active,.ws-detail-tabs button:hover{border-bottom-color:#967552;color:#745332}
.ws-detail-tabs button[aria-selected=true]{font-weight:550}
.ws-section-heading{margin:20px 0 18px}
.ws-section-heading h3{font-size:17px;font-weight:550}
.ws-section-heading p{font-size:12px;color:#8a7e6d;line-height:1.8;margin-top:7px}
.ws-facts{margin:0 0 30px;display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--ws-border);border-radius:8px;overflow:hidden}
.ws-facts>div{padding:16px 20px;border-bottom:1px solid #eee6da}
.ws-facts dt{font-size:12px;color:#90816f;margin-bottom:7px}
.ws-facts dd{margin:0;font-size:14px;line-height:1.7}
.ws-product-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.ws-product-gallery img{width:100%;height:200px;object-fit:contain;border:1px solid var(--ws-border);border-radius:6px;background:white}
.ws-inline-note{font-size:13px;color:#88765d;line-height:1.8;margin:10px 0 18px;padding:12px 16px;border-left:3px solid #c6b08e;background:#f5efe3}
.ws-config-frame{display:block;border:0;width:100%;height:850px;background:#fcfaf5}
.ws-order-next{display:flex;align-items:center;justify-content:space-between;background:#f0e8db;border:1px solid #e5d8c3;padding:21px 24px;border-radius:8px;margin:16px 0 22px}
.ws-order-next h2{font-size:25px;font-weight:550;margin-bottom:6px}
.ws-order-next p{font-size:13px;color:#857054}
.drawer-summary{border:1px solid var(--ws-border);border-radius:8px;padding:18px 22px;gap:15px;margin:18px 0}
.drawer-summary small{font-size:12px}
.drawer-summary b{font-size:23px}
.ws-order-section{scroll-margin-top:90px;border:1px solid var(--ws-border);border-radius:9px;margin:18px 0;padding:0 22px 20px;background:#fffdf9}
.ws-order-section>.drawer-section{margin-top:18px}
.ws-order-section .drawer-products{margin-top:10px}
.ws-order-section .admin-form{max-width:760px}
.ws-order-tabs{position:sticky;top:42px;z-index:2;background:#fcfaf5;padding-top:4px}
.ws-order-drawer .drawer-header{z-index:6}
.ws-order-drawer .ws-save-bar button{display:none}
@media(min-width:1750px){.admin-main{max-width:1700px;padding-left:50px;padding-right:50px}}
@media(max-width:1150px){.admin-main{margin-left:190px;padding:0 24px 30px}.ws-dashboard{grid-template-columns:1fr}.ws-filters label.ws-search{min-width:220px}.ws-page-intro h2{font-size:20px}.ws-metrics{gap:12px}.ws-metric{padding:18px}}
@media(max-width:700px){.admin-main{margin-left:0;padding:0 16px 25px}.admin-sidebar{padding:18px 16px}.admin-sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.admin-sidebar nav button{font-size:12px;padding:8px 10px}.admin-sidebar nav .nav-label{width:100%;margin:10px}.workspace-label{margin-top:12px;padding-top:12px}.admin-sidebar-foot,.sidebar-version,.admin-workspace{display:none}.admin-logo{font-size:28px}.admin-header{padding:20px 0;align-items:flex-start;gap:15px}.admin-header h1{font-size:23px}.admin-tools{max-width:210px;gap:6px}.brand-control{margin:0}.ws-page-intro{align-items:flex-start}.ws-page-intro h2{font-size:19px}.ws-page-intro p{font-size:12px}.ws-page-intro>.admin-button{padding:8px;font-size:12px;white-space:nowrap}.ws-metrics{grid-template-columns:1fr 1fr;gap:10px}.ws-metric{padding:16px 14px}.ws-metric strong{font-size:30px}.ws-metric small{font-size:11px;min-height:33px}.ws-filters{gap:12px;padding:16px}.ws-filters label,.ws-filters label.ws-search{min-width:calc(50% - 10px)}.ws-filters label.ws-search{max-width:none;flex-basis:100%}.ws-reset{flex:0 0 auto}.work-card{padding:18px 16px}.ws-task{gap:10px}.ws-task p{max-width:190px}.ws-task b small{display:block;margin:4px 0 0}.ws-task .admin-link{white-space:nowrap}.ws-footer-card{align-items:flex-start;padding:15px}.admin-drawer{padding:20px 18px 0}.drawer-header{top:-20px}.ws-product-summary{padding:15px;gap:15px}.ws-product-summary>img{width:74px;height:90px}.ws-product-summary h2{font-size:21px}.ws-detail-tabs{gap:20px}.ws-detail-tabs button{font-size:13px}.ws-facts{grid-template-columns:1fr}.ws-product-gallery{grid-template-columns:1fr 1fr}.ws-product-gallery img{height:150px}.drawer-summary{padding:16px 12px}.drawer-summary b{font-size:19px}.ws-order-section{padding:0 14px 16px}.ws-order-next{padding:18px}.ws-save-bar{gap:10px}.ws-save-status{font-size:11px}.ws-save-bar button{font-size:12px;padding:8px 10px}.ws-config-frame{min-width:0}.ws-order-tabs{top:43px}}

.ws-availability-button{display:block;margin-top:8px;color:#985b3f}

.inquiry-toolbar-actions,.inquiry-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
.inquiry-row-actions{margin-top:6px}
.inquiry-row-actions .admin-link{font-size:12px}
.inquiry-row-actions .inquiry-trash{color:#925648}
.inquiry-bin-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #e5ded4}
.inquiry-bin-row small{display:block;margin-top:5px;color:#776c5e}

.record-scope{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0 18px}.record-scope select{padding:6px 10px;border:1px solid var(--ws-border);border-radius:4px;background:var(--ws-surface)}.record-scope small{color:#726452}.order-delivery details{margin-top:12px}.order-delivery summary{cursor:pointer;color:#765632}.order-delivery .admin-form{padding-top:12px}
@media(max-width:700px){
 #inquiry-table .ws-table,#inquiry-table tbody{display:block;width:100%;min-width:0}
 #inquiry-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 #inquiry-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 16px;padding:16px 14px;border-bottom:1px solid var(--ws-border)}
 #inquiry-table .ws-table td{display:block;position:static;min-width:0;border:0;padding:0;white-space:normal;overflow-wrap:anywhere}
 #inquiry-table .ws-table td:first-child,#inquiry-table .ws-table td:last-child{grid-column:1/-1}
 #inquiry-table .ws-table td:first-child small{display:inline-block;margin-right:12px}
 #inquiry-table .ws-table td:nth-child(1)>strong{display:block;font-size:16px}
 #inquiry-table .ws-table td:nth-child(3){grid-column:1/-1}
 #inquiry-table .ws-table td:nth-child(5)::before{content:'报价 ';color:#796d5f}
 #inquiry-table .ws-table td:last-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--ws-border);padding-top:8px}
 #inquiry-table .inquiry-row-actions{display:flex;gap:12px;align-items:center;margin:0}
 #inquiry-table .inquiry-phone{color:#765632;text-decoration:underline}
}
