:root{font-family:"Microsoft YaHei",Arial,sans-serif;color:#23334a;background:#f3f5f8;font-size:14px}*{box-sizing:border-box}body{margin:0}main{max-width:1240px;margin:36px auto;padding:0 24px}header,.section-head,.backup{display:flex;justify-content:space-between;align-items:center;gap:16px}h1{font-size:30px;margin:8px 0}h2{font-size:18px;margin:0 0 18px}header p{color:#65748a;margin:0 0 24px}.eyebrow{font-size:12px;color:#60718a;letter-spacing:1px}.badge{background:#e5edf5;padding:10px 14px;border-radius:30px;color:#325274;font-size:12px}section{background:white;border:1px solid #e0e6ed;border-radius:14px;padding:24px;margin:18px 0;box-shadow:0 3px 10px #23334a04}.fields{display:flex;gap:16px;align-items:end;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:8px;font-weight:600;flex:1;min-width:150px}.wide{flex:2}input,select{font:inherit;color:inherit;padding:11px 12px;border:1px solid #cbd5e1;border-radius:7px;background:white;width:100%;min-height:43px}input:focus,select:focus{outline:3px solid #c5def3;border-color:#387cb0}button,.button{font:inherit;font-weight:600;border:1px solid #245b83;background:#245b83;color:white;padding:11px 16px;border-radius:7px;cursor:pointer;white-space:nowrap;min-height:43px}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.45;cursor:default}.secondary{background:white;color:#325274;border-color:#cbd5e1}.hint{color:#66758b;font-size:12px;line-height:1.9;margin:14px 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions label{flex:none;min-width:0}.section-head h2{margin:0}.section-head{margin-bottom:16px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:20px 0}.stat{padding:16px;background:#f5f7fa;border-radius:9px;color:#64748b}.stat strong{display:block;color:#223955;font-size:25px;margin-top:8px}.table-wrap{overflow:auto;margin:14px 0}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{text-align:left;background:#edf2f7;color:#52647d;font-weight:600}th,td{padding:12px 10px;border-bottom:1px solid #e7edf3}.num{text-align:right;font-variant-numeric:tabular-nums}td.name{max-width:260px;overflow:hidden;text-overflow:ellipsis}.status{border-radius:4px;padding:4px 7px;background:#eef2f6}.status.盘盈{color:#9b5c08;background:#fff1ce}.status.盘亏{color:#ac3343;background:#fce5e8}.status.一致{color:#23735d;background:#e5f3ee}td button{font-size:12px;padding:4px 9px;min-height:29px}.empty{text-align:center;padding:40px;color:#7b899c}#notice{display:none;padding:14px 18px;border-radius:8px;margin:12px 0;background:#e5f3ee;color:#20634f;white-space:pre-wrap}#notice.error{background:#fce5e8;color:#9c283b}#code{font-size:18px;background:#fffaf0}footer{color:#758195;font-size:12px;padding:8px 0 30px;line-height:1.8}#mapping{border-top:1px solid #e6ecf3;padding-top:20px;margin-top:16px}#mapping .fields{margin-bottom:14px}.backup h2{margin-bottom:6px}@media(max-width:750px){main{margin:20px auto;padding:0 12px}header,.backup,.section-head{align-items:flex-start;flex-direction:column}.badge{margin-bottom:8px}section{padding:18px}.stats{grid-template-columns:repeat(3,1fr)}.scan{flex-direction:column;align-items:stretch}label{width:100%}.fields label{flex-basis:40%}}

.sortable-row{cursor:grab;user-select:none;touch-action:pan-x}.sortable-row:active{cursor:grabbing}.drag-grip{display:inline-block;color:#8b9aad;margin-right:9px;font-size:19px;vertical-align:middle}.sortable-row input,.sortable-row button{cursor:auto}.sortable-row.dragging{opacity:.45}.sortable-row.drag-before td{box-shadow:inset 0 3px #327aa5}.sortable-row.drag-after td{box-shadow:inset 0 -3px #327aa5}.sortable-row:focus-visible{outline:2px solid #327aa5;outline-offset:-2px}

/* Clear cell boundaries for warehouse lists. */
table{border:1px solid #c8c8c8}th,td{border:1px solid #c8c8c8;padding:10px 12px;vertical-align:middle}.sortable-row input{user-select:text}

.document-list{margin:14px 0}.document-entry{border:1px solid #c8c8c8;border-bottom:0}.document-entry:last-child{border-bottom:1px solid #c8c8c8}.document-entry summary{cursor:pointer;padding:14px 16px;font-weight:600}.document-entry[open]>summary{border-bottom:1px solid #c8c8c8}.document-entry>.hint{margin:10px 14px}.document-entry>.table-wrap{margin:12px;max-height:420px}

dialog{border:1px solid #c8c8c8;border-radius:12px;padding:24px;width:min(460px,90vw);color:inherit}dialog::backdrop{background:#0005}dialog label{margin:14px 0}.document-entry>button{margin:0 12px 12px}

.archive-check{width:17px;min-height:0;height:17px;margin:0 10px 0 3px;vertical-align:middle;cursor:pointer}#bulkArchiveActions{align-items:center;margin:12px 0}#bulkArchiveActions[hidden]{display:none}#bulkArchiveActions label{flex:none}dialog ul{max-height:220px;overflow:auto;padding-left:22px;line-height:1.9}

/* Warehouse layout: consistent task cards and restrained, aligned controls. */
.warehouse [hidden]{display:none!important}
.warehouse main{max-width:1360px;margin:0 auto;padding:26px 32px 48px}
.warehouse header{padding:0 0 22px;border-bottom:1px solid #dce1e7;align-items:center}
.warehouse h1{font-size:25px;margin:0;letter-spacing:.2px}
.warehouse header p{margin:0;line-height:1.5}
.warehouse .connection-status{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.warehouse .badge{padding:6px 10px;border-radius:6px;font-size:12px;background:#eceff2;color:#526070}
.warehouse #syncStatus{font-size:12px;color:#64748b}
.warehouse .tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:20px 0 26px}
.warehouse .tabs button{padding:12px 10px;background:white;border-color:#cbd2da;color:#465365}
.warehouse .tabs button.active{background:#245b83;border-color:#245b83;color:white}
.warehouse section{margin:0;padding:0;background:transparent;border:0;box-shadow:none;border-radius:0}
.warehouse section>h2{font-size:21px;margin:0 0 18px}
.warehouse .work-card{background:white;border:1px solid #d5dbe2;border-radius:10px;padding:22px 24px;margin-bottom:22px}
.warehouse .work-card>h3{font-size:16px;line-height:1.4;margin:0 0 20px;padding-bottom:13px;border-bottom:1px solid #e1e5ea;color:#263646}
.warehouse .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px;align-items:end;margin-bottom:18px}
.warehouse .fields.one-field{grid-template-columns:minmax(0,1fr)}
.warehouse label{min-width:0;gap:8px;font-size:13px;font-weight:600;line-height:1.4}
.warehouse input,.warehouse select{min-height:42px;padding:10px 12px;border-color:#cbd2da;border-radius:6px;font-size:14px}
.warehouse input[type=file]{width:100%;padding:8px;min-height:42px;font-size:13px}
.warehouse button,.warehouse .button{border-radius:6px;min-height:42px;padding:10px 16px;font-size:13px}
.warehouse .secondary{color:#445466;border-color:#cbd2da}
.warehouse .check{display:flex;flex-direction:row;align-items:center;gap:9px;font-weight:400;min-width:0;margin:10px 0;flex:none}
.warehouse .check input{width:16px;height:16px;min-height:0;padding:0;margin:0;flex:0 0 16px}
.warehouse .confirm-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:18px;margin-top:18px;border-top:1px solid #e1e5ea;flex-wrap:wrap}
.warehouse .confirm-bar .check{margin:0}
.warehouse .confirm-bar>button{min-width:140px;margin-left:auto}
.warehouse #clearCart{margin-top:4px}
.warehouse #cartTotal{font-size:13px;color:#596777;margin:14px 0 10px}
.warehouse #dailyTotals,.warehouse #catalogSummary,.warehouse #coverage{margin:0 0 18px;font-size:13px;line-height:1.7}
.warehouse .hint{font-size:12px;line-height:1.6;margin:10px 0 16px}
.warehouse .prefix-box{display:flex;gap:0;align-items:stretch}
.warehouse .prefix-box span{display:flex;align-items:center;padding:0 12px;border:1px solid #cbd2da;border-right:0;border-radius:6px 0 0 6px;white-space:nowrap;color:#526070}
.warehouse .prefix-box input{border-radius:0 6px 6px 0;min-width:0}
.warehouse #code,.warehouse #loanCode,.warehouse #doCode{font-size:16px;background:white;min-height:46px}
.warehouse .table-wrap{max-height:460px;overflow:auto;margin:14px 0}
.warehouse table{font-size:13px;border:1px solid #c8c8c8;white-space:nowrap}
.warehouse th{font-size:12px;background:#f0f2f4;color:#526070;position:sticky;top:0;z-index:1}
.warehouse th,.warehouse td{padding:11px 12px;border:1px solid #c8c8c8;vertical-align:middle}
.warehouse td input[type=number]{min-width:74px;width:92px;min-height:34px;padding:7px 9px}
.warehouse td button{font-size:12px;padding:6px 10px;min-height:32px}
.warehouse td .actions{gap:6px;flex-wrap:nowrap}
.warehouse #cartRows td:nth-child(2),.warehouse #loanCartRows td:nth-child(2),.warehouse #doCartRows td:nth-child(2),.warehouse .document-entry td:nth-child(2),.warehouse #tasks td:nth-child(3),.warehouse #catalog td:nth-child(2),.warehouse #loanRows td:nth-child(4){white-space:normal;min-width:240px;max-width:520px;line-height:1.5}
.warehouse .product-picker{border:1px solid #cbd2da;border-radius:6px;margin:10px 0 18px;padding:6px;max-height:290px;overflow:auto;background:white}
.warehouse .product-picker button{display:block;text-align:left;width:100%;margin:0;padding:10px;background:white;color:#263646;border:0;border-bottom:1px solid #e1e5ea;border-radius:0;white-space:normal;line-height:1.5;min-height:40px}
.warehouse .product-picker button:last-child{border-bottom:0}
.warehouse .product-picker p{margin:10px;font-size:13px;color:#64748b}
.warehouse .document-list{margin:16px 0 0}
.warehouse .document-entry summary{padding:14px 16px;font-size:14px}
.warehouse .document-entry>.table-wrap{margin:14px;max-height:460px}
.warehouse .more-tools{margin-top:18px;border-top:1px solid #e1e5ea;padding-top:14px}
.warehouse .more-tools summary{cursor:pointer;color:#64748b;font-size:13px;margin-bottom:12px}
.warehouse .more-tools button{margin-right:8px}
.warehouse #sharedUrl{overflow-wrap:anywhere;font-size:20px;font-weight:600;margin:12px 0}
.warehouse #notice{margin:0 0 18px}
.warehouse #bulkArchiveActions{margin:12px 0}
.warehouse .archive-check{width:16px;min-height:0;height:16px}
@media(max-width:900px){.warehouse main{padding:22px 20px 36px}.warehouse .tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.warehouse .work-card{padding:20px}.warehouse header{gap:12px}.warehouse .connection-status{justify-content:flex-start}}
@media(max-width:560px){.warehouse main{padding:18px 12px 28px}.warehouse h1{font-size:22px}.warehouse header{flex-direction:column;align-items:flex-start}.warehouse .work-card{padding:17px 15px}.warehouse .fields{grid-template-columns:1fr;gap:14px}.warehouse .tabs{gap:6px;margin:18px 0}.warehouse .tabs button{white-space:normal;font-size:12px;padding:10px 5px}.warehouse .confirm-bar{align-items:stretch;flex-direction:column}.warehouse .confirm-bar>button{margin:0;width:100%}.warehouse .check{font-size:12px}.warehouse td{padding:9px}.warehouse #sharedUrl{font-size:17px}}

.workspace-nav{display:flex;gap:8px;margin:20px 0}.workspace-nav button{font-size:18px;padding:16px 25px}.tile-groups{display:grid;grid-template-columns:1.2fr 1fr;gap:60px;background:linear-gradient(135deg,#d8eee6,#eef5dc);padding:30px;min-height:480px}.tile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.tile-grid button{min-height:140px;border:0;border-radius:0;text-align:left;padding:20px;color:#fff;font-size:18px}.tile-grid b{display:block;font-size:40px;font-weight:400;margin-bottom:12px}.blue button{background:#078fc6}.green button{background:#79b631}.tile-grid button:hover{filter:brightness(.9)}.purchase-summary{background:#e9f2dc;padding:22px;font-size:20px;margin:16px 0}#purchaseRows input{width:95px}#purchaseRows td{vertical-align:middle}#lowBadge{color:#ffe29a}[hidden]{display:none!important}@media(max-width:850px){.tile-groups{grid-template-columns:1fr;gap:24px;padding:16px}.workspace-nav button{padding:12px;font-size:16px}}
#purchasing table{table-layout:fixed;min-width:900px;width:100%}#purchasing th,#purchasing td{white-space:normal;overflow-wrap:anywhere;font-size:13px;padding:12px 8px}#purchasing th:first-child{width:23%}#purchasing th:nth-child(2){width:8%}#purchasing th:nth-child(3){width:11%}#purchasing th:nth-child(4){width:9%}#purchasing th:nth-child(5){width:20%}#purchasing th:nth-child(6){width:13%}#purchasing th:nth-child(7){width:12%}#purchaseRows button{padding:7px 12px;margin-top:5px}#purchaseRows input{max-width:100%}

#purchaseRows .purchase-product{display:flex;flex-direction:row;align-items:flex-start;gap:8px}#purchaseRows .purchase-product input{width:18px;height:18px;flex-shrink:0}.purchase-bulk{flex-wrap:wrap;margin:18px 0}

label.login-remember{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-width:0;margin-top:14px;font-size:13px;font-weight:400;cursor:pointer}label.login-remember input[type="checkbox"]{width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;padding:0;margin:0;flex:0 0 16px;transform:none}

.camera-tools{margin:12px 0}.camera-tools>small{display:block;margin:8px 0}.camera-box{padding:12px;background:#eef4f8;border-radius:8px;max-width:640px}.camera-box video{display:block;width:100%;max-height:45vh;object-fit:contain;background:#111}.camera-box button,.camera-box select{min-height:44px;margin:6px 6px 0 0}.camera-box p{font-weight:600;overflow-wrap:anywhere}

/* Download links need layout boxes so wrapped rows cannot overlap. */
.client-downloads{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}.client-downloads>.button{display:flex;align-items:center;justify-content:center;white-space:normal;text-align:center;text-decoration:none;line-height:1.5;max-width:100%;min-width:0}@media(max-width:600px){.client-downloads{flex-direction:column;align-items:stretch}.client-downloads>.button{width:100%}}

/* Keep loan return/sale controls inside a bounded table cell. */
.warehouse .loan-return-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:260px;max-width:100%;white-space:normal}
.warehouse .loan-return-controls>input,.warehouse .loan-return-controls>select,.warehouse .loan-return-controls>button{width:100%;min-width:0;white-space:normal;margin:0}
.warehouse #loanRows td:nth-child(6){white-space:normal;min-width:180px;max-width:320px;overflow-wrap:anywhere}
.warehouse #loanRows td:last-child{min-width:220px;white-space:normal}

.warehouse .loan-return-controls{gap:12px;padding:4px;width:280px}
.warehouse .loan-action-tabs{display:flex;gap:0;background:#edf1f5;border-radius:7px;padding:3px}
.warehouse .loan-action-tabs button{flex:1;border:0;background:transparent;color:#64748b;border-radius:5px;padding:8px 10px}
.warehouse .loan-action-tabs button.selected{background:#245b83;color:white}
.warehouse .loan-return-controls .loan-pending{margin:0;color:#65748a;font-size:12px}
.warehouse .loan-return-controls label{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;font-size:12px;font-weight:600;color:#52647d}
.warehouse .loan-return-controls label input,.warehouse .loan-return-controls label select{width:100%;min-width:0;min-height:38px;font-size:13px;padding:8px 10px}
.warehouse .loan-action-panel{display:grid;gap:12px}
.warehouse .loan-action-panel>button{width:100%;background:#245b83;color:white;border-color:#245b83;min-height:38px}
.warehouse .loan-sale-number{display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px}

.warehouse #loanRows>tr>td{vertical-align:top}
.warehouse .loan-quantity-summary{display:grid;gap:8px;min-width:120px;padding:2px 0}
.warehouse .loan-quantity-summary>div{display:flex;justify-content:space-between;align-items:center;gap:20px;color:#64748b;line-height:1.5}
.warehouse .loan-quantity-summary strong{font-variant-numeric:tabular-nums;color:#23334a;font-size:14px}
.warehouse .loan-quantity-summary .pending{border-top:1px solid #dce4ed;padding-top:8px;color:#245b83;font-weight:600}
.warehouse .loan-quantity-summary .pending strong{color:#245b83;font-size:18px}

/* LIGHTROOM workspace · framed sheet · 2026-11 */
body.warehouse{background:#f1f3f2;color:#263b3c;font-family:"Segoe UI","Microsoft YaHei",sans-serif;--brand:#176c66;--line:#dde5e2}
.warehouse .app-sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:32px 20px;box-sizing:border-box;display:flex;flex-direction:column;background:#f1f3f2;border-right:1px solid var(--line);z-index:20}
.warehouse .app-brand{display:flex;gap:12px;align-items:center;color:#193f3a;text-decoration:none;font-size:18px;font-weight:750;letter-spacing:1px}.app-brand svg{width:32px;height:32px;color:#176c66}.app-brand small{display:block;font-size:12px;font-weight:500;letter-spacing:2px;margin-top:5px;color:#657570}
.warehouse .nav-caption{margin:48px 12px 12px;color:#77847e;font-size:11px;letter-spacing:2px}.warehouse .workspace-nav{display:flex;flex-direction:column;gap:7px;margin:0}.warehouse .workspace-nav button{display:flex;align-items:center;gap:11px;background:transparent;color:#61716c;border:1px solid transparent;border-radius:7px;font-size:14px;font-weight:600;padding:13px 12px;text-align:left;min-height:46px}.workspace-nav svg{width:19px;height:19px;flex:none}.warehouse .workspace-nav button.active{color:#135c50;background:#e2eae5;border-color:#d4e0d9}.warehouse #lowBadge{font-size:11px;margin-left:auto;color:#8b5a13}.sidebar-foot{margin-top:auto;display:grid;gap:8px;color:#6d7d76;font-size:10px;letter-spacing:1px}.sidebar-foot small{font-size:11px;letter-spacing:0}.brand-rule{width:28px;height:3px;background:#bc8e4a;margin-bottom:8px}
.warehouse main{margin:16px 16px 16px 240px;max-width:none;padding:0 32px 30px;background:#fff;border:1px solid var(--line);border-radius:12px;min-height:calc(100vh - 32px);box-sizing:border-box}.warehouse main>header{min-height:76px;padding:12px 0;box-sizing:border-box;border-bottom:1px solid var(--line)}.warehouse main>header h1{font-size:16px;font-weight:600;letter-spacing:0}.warehouse .connection-status{gap:12px}.warehouse .badge{background:#eff4f0;color:#476b59}.warehouse #syncStatus,.warehouse #autoSyncBadge{color:#61776d}.warehouse section{box-shadow:none}.warehouse main>section{padding:24px 0;border:0;background:transparent}.warehouse main>section>h2{font-size:23px;color:#213d36;margin:0 0 24px}.warehouse .hint{color:#6e7c77;line-height:1.7}.warehouse button{background:#176c66;border-radius:6px}.warehouse button.secondary,.warehouse .button.secondary{background:#fff;border-color:#cfdad4;color:#3c5950}.warehouse button:hover,.warehouse a:focus-visible{filter:none;outline:1px solid #91a99f;outline-offset:2px}.warehouse button:focus-visible,.warehouse input:focus-visible,.warehouse select:focus-visible{outline:2px solid #176c66;outline-offset:3px}.warehouse .work-card{border:1px solid var(--line);border-radius:8px;box-shadow:none;padding:22px;margin-bottom:20px}.warehouse .work-card h3{font-size:16px;color:#23443b;border-color:var(--line)}.warehouse input,.warehouse select{border-color:#cfdad4;border-radius:6px}.warehouse table{font-variant-numeric:tabular-nums}.warehouse th{background:#f2f5f3;color:#50685b}.warehouse td{border-color:#e4eae6}.warehouse .tabs{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;margin:24px 0 4px}.warehouse .tabs button{border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;color:#5c6b63}.warehouse .tabs button.active{background:transparent;color:#176c66;border-bottom-color:#176c66}
.warehouse #home{padding:30px 0 0}.desk-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:0 0 30px}.warehouse .eyebrow{color:#828e85;font-size:11px;letter-spacing:2px;margin:0 0 12px}.warehouse .desk-heading h2{font-size:28px;letter-spacing:-.6px;color:#253f36;margin:0 0 10px}.desk-heading p{color:#748078;margin:0;font-size:13px}.desk-mark{font-size:50px;line-height:1;font-weight:300;letter-spacing:-5px;color:#b7c7bb;border-left:1px solid #dce5de;padding-left:28px}.desk-mark span{display:block;font-size:9px;letter-spacing:3px;margin-top:9px;color:#89988b}.desk-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.desk-group{border:1px solid #dde5df;border-radius:9px;overflow:hidden;background:white}.desk-warehouse{grid-row:span 2}.group-heading{display:flex;gap:18px;padding:22px 24px;align-items:flex-start;background:#edf3ef;border-bottom:1px solid #dde5df}.desk-marketing .group-heading{background:#f5f1e9}.desk-buy .group-heading{background:#eef1f5}.group-number{font-size:12px;color:#728d7b;padding-top:3px;font-variant-numeric:tabular-nums}.warehouse .group-heading h3{font-size:18px;font-weight:650;margin:0 0 6px;color:#254338}.group-heading p{font-size:12px;margin:0;color:#6f7e74}.desk-links{padding:0 20px}.warehouse .desk-link{width:100%;display:flex;gap:16px;align-items:center;text-align:left;padding:20px 4px;background:transparent;border:0;border-bottom:1px solid #edf0ec;border-radius:0;color:#284638;min-height:81px}.warehouse .desk-link:last-child{border-bottom:0}.desk-link>svg{width:22px;height:22px;flex:none;color:#53816c}.desk-link>span:not(.link-arrow){flex:1;min-width:0}.desk-link strong{display:block;font-weight:600;font-size:14px}.desk-link small{display:block;color:#78847b;font-weight:400;font-size:12px;margin-top:5px;line-height:1.5}.desk-link .link-arrow{color:#92a296;font-size:18px}.warehouse .desk-link:hover{outline:1px solid #b1c5b8;outline-offset:-1px;border-radius:5px}.desk-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:26px;padding:22px 0 0;border-top:1px solid #e2e8e3}.desk-footer strong{font-size:13px;font-weight:600}.desk-footer span{display:block;color:#7a857d;font-size:12px;margin-top:5px}.warehouse .client-downloads{display:flex;flex-wrap:wrap;gap:16px;margin:0}.warehouse .client-downloads a,.warehouse .client-downloads button{display:inline-flex;align-items:center;min-height:36px;font-size:12px;color:#406a56;background:none;border:0;padding:0;text-decoration:none;font-weight:500}
@media(min-width:1600px){.warehouse main{padding-left:48px;padding-right:48px}.desk-grid{grid-template-columns:1.15fr 1fr 1fr}.desk-warehouse{grid-row:auto}.desk-heading{padding:15px 0 40px}.warehouse .desk-link{min-height:82px}}
@media(max-width:1100px){.warehouse .app-sidebar{width:190px;padding:28px 14px}.warehouse main{margin-left:202px;padding-left:22px;padding-right:22px}.warehouse .app-brand{font-size:15px}.warehouse .connection-status{gap:6px}.desk-heading h2{font-size:24px!important}.desk-mark{display:none}.desk-links{padding:0 14px}.group-heading{padding:20px 18px}.warehouse .desk-link{gap:12px}}
@media(max-width:900px){.warehouse .app-sidebar{position:relative;width:auto;padding:16px;border:0;gap:14px}.warehouse .app-brand{font-size:16px}.app-brand small{display:none}.warehouse .nav-caption,.sidebar-foot{display:none}.warehouse .workspace-nav{flex-direction:row;gap:4px}.warehouse .workspace-nav button{flex:1;justify-content:center;gap:6px;padding:10px 5px;font-size:12px;min-height:44px}.workspace-nav svg{width:16px;height:16px}.warehouse #lowBadge{margin:0;font-size:10px}.warehouse main{margin:0 10px 10px;padding:0 16px 24px;border-radius:10px;min-height:70vh}.warehouse main>header{align-items:flex-start;flex-direction:column;gap:9px;padding:15px 0;min-height:0}.warehouse main>header h1{font-size:14px}.warehouse .connection-status{justify-content:flex-start;gap:8px}.warehouse .connection-status p{font-size:11px}.warehouse #home{padding-top:24px}.warehouse .desk-heading h2{font-size:23px!important}.desk-heading p{font-size:12px;line-height:1.7}.desk-grid{grid-template-columns:1fr;gap:18px}.desk-warehouse{grid-row:auto}.desk-footer{align-items:flex-start;flex-direction:column;gap:14px}.warehouse .work-card{padding:16px}.warehouse .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse main>section>h2{font-size:21px}.warehouse .desk-link{min-height:77px}.warehouse .client-downloads{gap:14px}}
@media print{.warehouse .app-sidebar{display:none}.warehouse main{margin:0;border:0}}

.warehouse .desk-link{white-space:normal}.warehouse .desk-link small{white-space:normal;overflow-wrap:anywhere}@media(min-width:901px) and (max-width:1599px){.warehouse .desk-link{min-height:68px;padding-top:14px;padding-bottom:14px}.group-heading{padding-top:18px;padding-bottom:18px}}

/* Persistent location and contextual navigation */
.warehouse .page-navigation{position:sticky;top:0;z-index:15;background:#fff;padding:14px 0 10px;border-bottom:1px solid #dde5df;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px}.warehouse .page-location{display:flex;gap:14px;align-items:center;font-size:13px;color:#597265}.warehouse .page-location button{padding:8px 12px;min-height:38px}.warehouse .page-navigation>label{display:flex;align-items:center;gap:10px;flex:none;min-width:0;margin:0;font-size:12px;color:#61756b}.warehouse #pageSwitch{width:205px;min-height:38px;padding:8px 10px}.warehouse #sectionNavigation{display:flex;flex-wrap:wrap;gap:4px;flex-basis:100%;padding-top:3px}.warehouse #sectionNavigation button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:9px 12px;font-size:13px;color:#657a6f}.warehouse #sectionNavigation button.active{color:#176c66;border-bottom-color:#176c66;background:#f1f6f3}.warehouse nav.tabs{display:none!important}.warehouse #marketing>p:has([data-go]),.warehouse #pricecheck>p:has([data-go]),.warehouse #profit>p:has([data-go]){display:none}@media(max-width:600px){.warehouse .page-navigation{gap:8px;padding:10px 0}.warehouse .page-location{font-size:12px;gap:8px}.warehouse .page-navigation>label{width:100%;justify-content:space-between}.warehouse #pageSwitch{flex:1;width:auto;max-width:245px}.warehouse #sectionNavigation{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.warehouse #sectionNavigation button{white-space:nowrap;flex:none;min-height:40px;padding:8px}.warehouse #mpPanel .mp-bulk{gap:10px}.warehouse #mpPanel .mp-bulk button{flex:1;white-space:normal;min-width:110px}}

.warehouse .mp-rules{margin:12px 0;color:#5c7065;font-size:13px}.warehouse .mp-rules summary{cursor:pointer;padding:8px 0}.warehouse #mpMeta{font-size:12px;line-height:1.6;color:#738178}.warehouse .page-navigation>label{flex-direction:row}.warehouse #mpBulkMessage:empty{display:none}

#mpPanel #mpCostBasis{width:100%;min-width:65px;min-height:36px;padding:6px;font-weight:600;color:#176c66;background:#fff} @media(max-width:700px){#mpPanel thead{display:block}#mpPanel thead tr{display:block;padding:0;border:0}#mpPanel thead th{display:none}#mpPanel thead #mpBaseHeading{display:block;width:100%;padding:10px 0}#mpPanel #mpBaseHeading:before{content:"利润计算基准：";font-weight:500}#mpPanel #mpCostBasis{width:120px;margin-left:8px}}

/* Order reconciliation: existing shell; flat ledger and explicit money states. */
#orderprofit .op-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}#orderprofit .op-heading h2{margin-bottom:4px}#orderprofit .op-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;border-block:1px solid #dce2e8;padding:20px 0;margin:16px 0}#orderprofit .op-totals span{display:block;font-size:13px;color:#596878}#orderprofit .op-totals strong{display:block;font-size:23px;font-weight:600;margin-top:6px;font-variant-numeric:tabular-nums}#orderprofit .op-toolbar{display:grid;grid-template-columns:minmax(200px,280px) minmax(220px,1fr);gap:16px;margin-top:20px}#orderprofit .op-table{width:100%;min-width:880px}#orderprofit .op-table th{background:transparent}#orderprofit .op-table th:not(:first-child){text-align:right}#orderprofit .op-table th:last-child{text-align:left}#orderprofit .op-table td{vertical-align:top;padding:14px 10px}#orderprofit .op-table td:first-child{width:34%;overflow-wrap:anywhere}#orderprofit .op-table small{display:block;color:#596878;margin:4px 0}#orderprofit .op-table summary{cursor:pointer;font-size:13px;margin-top:6px}#orderprofit .op-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}#orderprofit .op-negative{color:#b42318;font-weight:600}#orderprofit .op-notes{font-size:13px;color:#536477;border-top:1px solid #dce2e8;margin-top:20px;padding-top:12px}#orderprofit .op-notes p{margin:8px 0}#orderprofit #opSources{overflow-wrap:anywhere}#orderprofit button{background:#fff;color:#19324a;border:1px solid #aab7c5}#orderprofit input:focus-visible,#orderprofit select:focus-visible,#orderprofit button:focus-visible{outline:2px solid #245c7b;outline-offset:2px}@media(max-width:760px){#orderprofit .op-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#orderprofit .op-totals strong{font-size:20px}#orderprofit .op-toolbar{grid-template-columns:1fr}#orderprofit .op-table{min-width:0}#orderprofit .op-table thead{display:none}#orderprofit .op-table tr{display:block;border-bottom:1px solid #dce2e8;padding:12px 0}#orderprofit .op-table td{display:flex;justify-content:space-between;gap:12px;width:auto!important;border:0;padding:5px 0}#orderprofit .op-table td:first-child{display:block}#orderprofit .op-table td:not(:first-child)::before{content:attr(data-label);color:#596878;font-weight:400;text-align:left}}

.warehouse #lowBadge,.warehouse .sidebar-foot,.warehouse .desk-mark span{font-size:11px}.warehouse .nav-caption,.warehouse .sidebar-foot,.warehouse .sidebar-foot small{color:#53665d}.warehouse .app-brand small{color:#53665d}

#orderprofit .table-wrap{max-height:none}@media(max-width:760px){#orderprofit .table-wrap{overflow:visible;max-height:none}}

#orderprofit .hint{color:#536477}

#orderprofit .op-fees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px;border-bottom:1px solid #dce2e8;padding:12px 0}#orderprofit .op-fees span{display:block;font-size:13px;color:#536477}#orderprofit .op-fees strong{display:block;font-size:18px;margin-top:6px;font-variant-numeric:tabular-nums}#orderprofit .op-fees p{grid-column:1/-1;margin:0}@media(max-width:760px){#orderprofit .op-fees{grid-template-columns:1fr}}

/* Compact operational queue; preserve existing application typography. */
#pickQueue{border-bottom:1px solid #d9e0dd;padding-bottom:20px;margin-bottom:24px}#pickQueue>.actions{display:flex;flex-wrap:wrap;align-items:end;gap:12px}#pickStatus{width:auto;min-width:150px}#pickList{max-height:270px;overflow:auto;margin:10px 0}#pickList>.actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0ee;padding:7px 4px}#pickDetail p{margin:8px 0}dialog{max-width:min(900px,94vw);max-height:85vh;overflow:auto}dialog input,dialog select{max-width:250px}form[action="/login"] label,form[action="/account/change"] label{display:block;margin:16px 0}form[action="/login"] input,form[action="/account/change"] input{display:block;width:100%;margin-top:6px}form[action="/login"] input[type="checkbox"]{display:inline;width:auto}

#orderprofit .op-toolbar{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}#orderprofit .op-table td small{display:block;white-space:normal;overflow-wrap:anywhere}#orderprofit .op-table th{white-space:normal}@media(max-width:760px){#orderprofit .op-table td[data-label="建议售价（15%目标）"]{display:block;text-align:right}#orderprofit .op-table td[data-label="建议售价（15%目标）"]::before{display:block;text-align:left}}

@media(min-width:761px){#orderprofit .op-table td:last-child,#orderprofit .op-table th:last-child{min-width:64px;white-space:nowrap}}

/* Operational polish: retain LG's framed sheet, compact controls and calm status. */
.warehouse button,.warehouse input,.warehouse select{transition:border-color .12s ease,background-color .12s ease}
.warehouse button:disabled{opacity:.65;cursor:wait}
.warehouse .op-pager button:disabled{cursor:default}
.warehouse summary:focus-visible,.warehouse a:focus-visible{outline:2px solid #176c66;outline-offset:3px}
#orderprofit .op-heading{align-items:flex-start;margin-top:20px}
#orderprofit .op-heading h2{font-size:24px;margin-top:0}
#orderprofit .op-heading .actions{gap:8px;max-width:100%;flex-wrap:wrap}
#orderprofit #opDataDate{line-height:1.7;max-width:85ch}
#orderprofit .op-fee-detail{margin:12px 0;color:#536477;font-size:13px}
#orderprofit .op-fee-detail>summary{cursor:pointer;padding:8px 0}
#orderprofit .op-toolbar{margin-top:12px;gap:12px}
#orderprofit .op-table td,#orderprofit .op-table th{border-left:0;border-right:0}
#orderprofit .op-table{border-left:0;border-right:0}
#orderprofit .op-table th{background:#fff;line-height:1.5}
#orderprofit .op-table summary{line-height:1.6}
#orderprofit .op-pager{align-items:center;justify-content:flex-end;gap:14px;margin-top:18px;font-size:13px;color:#536477}
#orderprofit .op-totals{gap:16px;padding:16px 0}
#orderprofit .op-totals>div:nth-child(3) strong{font-size:27px}
#orderprofit dialog input{max-width:none}
@media(max-width:760px){#orderprofit .op-heading{margin-top:16px}#orderprofit .op-heading h2{font-size:22px}#orderprofit .op-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}#orderprofit .op-toolbar>label:last-child{grid-column:1/-1}#orderprofit .op-totals strong,#orderprofit .op-totals>div:nth-child(3) strong{font-size:20px}#orderprofit button,#orderprofit input,#orderprofit select{min-height:44px}#orderprofit .op-pager{justify-content:space-between}#orderprofit .op-table td{font-size:14px}#orderprofit .op-table td small{font-size:12px}}
@media(prefers-reduced-motion:reduce){.warehouse button,.warehouse input,.warehouse select{transition:none}}

#orderprofit .op-tools{font-size:13px;max-width:100%}#orderprofit .op-tools>summary{cursor:pointer;padding:10px 0}#orderprofit .op-tools .actions{margin-top:8px}#orderprofit .op-notes>details{margin:12px 0}#orderprofit .op-notes summary{cursor:pointer;padding:7px 0}

.environment-notice{display:flex;flex-wrap:wrap;gap:8px 20px;padding:12px 0;border-bottom:1px solid #e2e8e3;font-size:13px;color:#53665d}.environment-notice a{color:#176c66}#opPipeline{line-height:1.8;overflow-wrap:anywhere}

/* Picking work sheet: product identity, quantities, and scanning in one row. */
.pick-product{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(240px,1fr) minmax(180px,1fr);gap:24px;padding:20px 0;border-bottom:1px solid #e3e9e7;align-items:center}.pick-identity strong{font-size:16px}.pick-identity div{margin:5px 0;line-height:1.5;overflow-wrap:anywhere}.pick-identity small{color:#546a65}.pick-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;text-align:right;font-size:12px;color:#546a65}.pick-numbers strong{display:block;font-size:20px;font-variant-numeric:tabular-nums;color:#203f39;margin-top:5px}.pick-enough [data-count=remaining]{color:#17715b}.pick-scan-cell{display:flex;gap:8px;flex-wrap:wrap}.pick-scan-cell input{width:100%;min-width:0}.pick-scan-cell .hint{width:100%;min-height:18px}.pick-confirm{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:24px}.pick-confirm>input{flex:1;min-width:180px}#pickDetail h4{font-size:18px;margin:24px 0 8px}#pickList:empty:after{content:'没有符合条件的单据';display:block;padding:20px;color:#546a65}@media(max-width:1100px){.pick-product{grid-template-columns:minmax(150px,1fr) minmax(220px,1fr)}.pick-scan-cell{grid-column:1/-1}.pick-scan-cell input{flex:1;width:auto}}@media(max-width:640px){.pick-product{grid-template-columns:1fr;gap:14px}.pick-numbers{text-align:left}.pick-scan-cell{grid-column:auto}.pick-confirm{align-items:stretch;flex-direction:column}}

/* Account header: identity, maintenance and navigation have separate places. */
.warehouse .account-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 0;margin:0;border-bottom:1px solid #dde5df;font-size:13px}.account-toolbar form{margin:0}.warehouse .account-toolbar>strong{font-size:14px;margin-right:auto}.warehouse .account-toolbar>a{color:#356d60;text-decoration:none}.warehouse .account-toolbar button{min-height:36px;padding:7px 13px;font-size:12px}.account-tools{position:relative}.account-tools summary{cursor:pointer;list-style:none;padding:8px 12px;border:1px solid #d2ddd6;border-radius:5px}.account-tools summary:after{content:' ▾'}.account-tools[open]{z-index:30}.account-tools[open]>button{display:block;width:180px;margin-top:6px}.owner-entry{border:1px solid #b9cdc1;border-radius:5px;padding:7px 15px;font-weight:600}.warehouse .environment-notice{padding:8px 0;margin:0;border:0;background:transparent;display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:#7a887f}.warehouse main>header{min-height:64px}.warehouse .page-navigation{padding:12px 0}.warehouse .account-toolbar a:focus-visible,.account-tools summary:focus-visible{outline:2px solid #176c66;outline-offset:3px}@media(max-width:600px){.warehouse .account-toolbar{gap:10px}.warehouse .account-toolbar>strong{width:100%}.warehouse .environment-notice{font-size:10px}.warehouse .account-toolbar .owner-entry{margin-left:auto}.account-tools[open]>button{width:auto}.warehouse .page-navigation{gap:10px}}

/* Compact account control; popover never changes header height. */
.warehouse main>header{display:flex;align-items:center;flex-wrap:wrap;gap:16px;min-height:68px}.warehouse main>header .connection-status{margin-left:auto}.warehouse .account-toolbar{border:0;padding:0;margin:0;gap:10px;flex-wrap:nowrap}.account-tools{position:relative}.account-tools summary{font-size:12px;border:0;background:#f2f6f3;white-space:nowrap;padding:9px 12px}.account-menu{position:absolute;right:0;top:calc(100% + 8px);width:200px;padding:8px;background:#fff;border:1px solid #d2ddd6;border-radius:6px;box-shadow:0 5px 16px #23443b12;z-index:100}.account-menu>a,.account-menu>button,.account-menu form button{display:block;width:100%;text-align:left!important;padding:10px 12px!important;margin:0!important;border:0!important;background:white!important;color:#355c50!important;font:inherit!important;box-sizing:border-box}.account-menu>a:hover,.account-menu button:hover{background:#f0f5f1!important}.account-menu form{width:100%}.warehouse .account-toolbar .owner-entry{font-size:12px;padding:8px 12px;white-space:nowrap}.warehouse .environment-notice{font-size:11px;padding:6px 0;color:#819086}.warehouse .page-navigation{padding:10px 0}@media(max-width:600px){.warehouse main>header{flex-direction:row;align-items:center;gap:10px}.warehouse main>header h1{flex:1}.warehouse main>header .connection-status{order:3;width:100%;margin:0}.warehouse .account-toolbar{margin-left:auto;gap:6px}.warehouse .account-toolbar .owner-entry{margin:0;padding:8px}.account-menu{width:190px}.account-tools summary{padding:8px;font-size:11px}}
