/* 又见炊烟 · 厨房采购 H5 —— 严格还原 V2 设计稿（又见炊烟_采购全流程交互_V2） */
:root{--green:#103f34;--green2:#194f42;--green-soft:#edf3ef;--gold:#b58a4b;--gold-light:#e8d6b0;--gold-soft:#f7efdf;--ink:#23342d;--muted:#879086;--line:#e7ebe5;--bg:#f5f6f2;--red:#b35948;--red-soft:#fbefeb;--white:#fff;--shadow:0 16px 48px #25392b0b}
*{box-sizing:border-box}body{margin:0;font:14px/1.5 "Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.4;cursor:not-allowed}input,textarea,select{max-width:100%;min-width:0;border:1px solid var(--line);background:#fff;border-radius:7px;padding:9px 11px}input:focus,textarea:focus,select:focus{outline:2px solid #cdb58470;border-color:var(--gold)}button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}textarea{resize:vertical}h1,h2,h3,h4,p{margin:0}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:var(--green)}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.xs{font-size:10px}.mono{font-variant-numeric:tabular-nums}.gold{color:var(--gold)}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--gold);font-weight:600}.mini-label{font-size:11px;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 17px;border-radius:8px;font-size:13px;font-weight:600;white-space:nowrap}.btn svg{width:18px;height:18px}.primary{background:var(--green);color:#fff}.primary:hover{background:#205446}.outline{border:1px solid #dddccb;background:#fff}.gold-btn{background:var(--gold);color:white}.soft{background:var(--green-soft);color:var(--green)}.danger{background:var(--red-soft);color:var(--red)}.danger-solid{background:var(--red);color:#fff}.btn.wide{width:100%}.quiet{font-size:12px;display:inline-flex;gap:5px;align-items:center;padding:7px 9px;color:#607166;min-height:36px}.text-link{font-size:12px;display:inline-flex;align-items:center;gap:5px;color:var(--green);min-height:36px;padding:0 4px}.text-link svg{width:15px;height:15px}.icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}.icon-btn:hover{background:#00000006}.badge{font-size:10px;padding:4px 8px;display:inline-flex;align-items:center;gap:4px;border-radius:5px;line-height:1.4;white-space:nowrap}.badge.amber{background:var(--gold-soft);color:#976e30}.badge.green{background:var(--green-soft);color:var(--green)}.badge.red{background:var(--red-soft);color:var(--red)}.badge.gray{background:#f0f2ee;color:#7f887e}.notice{background:var(--gold-soft);color:#8b723e;border:1px solid #eee2c9;border-radius:8px;padding:11px 13px;font-size:11px;line-height:1.8}.notice.neutral{background:#f5f7f3;border-color:var(--line);color:#71806f}.error{color:var(--red);font-size:12px;margin:8px 0;min-height:0}.empty{padding:40px 20px;text-align:center;color:var(--muted)}.empty svg{width:38px;height:38px;margin-bottom:12px;color:#adbaa8}.empty h3{font-size:15px;color:var(--ink);margin-bottom:8px}.empty p{font-size:12px}.split{display:flex;align-items:center;justify-content:space-between;gap:10px}.stack{display:flex;flex-direction:column;gap:12px}.flex{display:flex;gap:8px;align-items:center}.count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;background:var(--gold);color:#fff;border-radius:5px;font-size:10px}
/* 手机页外壳（H5 全屏） */
.demo-banner{background:var(--gold-soft);color:#8b723e;border-bottom:1px solid #eee2c9;text-align:center;font-size:11px;padding:6px 12px;line-height:1.6}
.phone{width:100%;min-height:100dvh;background:#f7f8f4;display:flex;flex-direction:column;position:relative}
.phone-header{background:var(--green);color:white;min-height:70px;padding:9px 15px 15px;display:flex;gap:9px;align-items:center;flex-shrink:0}
.phone-header .icon-btn{width:30px;height:35px;margin-left:-4px;color:white}
.phone-header h2{font-size:16px;font-weight:600;letter-spacing:.3px}
.phone-header p{font-size:9px;opacity:.58;margin-top:2px;letter-spacing:.3px}
.header-right{margin-left:auto;display:flex;align-items:center;font-size:10px;color:var(--gold-light)}
.header-right .icon-btn{margin:0;color:white;width:32px}
.screen-body{flex:1;min-height:0;background:#f7f8f4}
.bottom-nav{height:calc(64px + env(safe-area-inset-bottom));flex-shrink:0;background:#fff;border-top:1px solid var(--line);display:flex;padding:7px 12px calc(9px + env(safe-area-inset-bottom));position:sticky;bottom:0;z-index:5}
.bottom-nav button{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#9aab99;position:relative}
.bottom-nav button.active{color:var(--green)}
.bottom-nav svg{width:20px;height:20px}
.bottom-nav b{font-size:10px;font-weight:500}
.bottom-nav .unread{position:absolute;top:0;left:55%;background:var(--gold);width:6px;height:6px;border-radius:50%}
.screen-footer{background:#fff;border-top:1px solid var(--line);padding:11px 16px calc(15px + env(safe-area-inset-bottom));flex-shrink:0;display:flex;align-items:center;gap:9px;position:sticky;bottom:0}
.screen-footer .btn{flex:1}
.screen-footer .draft-save{flex:0 0 86px;padding:8px;font-size:12px}
.screen-footer .cart-overview{flex:1;font-size:12px;display:flex;align-items:center;gap:7px;min-width:0}
.cart-overview svg{width:19px;height:19px;color:var(--green);flex-shrink:0}
.cart-overview b{font-size:18px;color:var(--green);margin-right:4px}
.cart-overview p{font-size:9px;color:var(--muted);margin-left:auto;white-space:nowrap}
.cart-mid{white-space:nowrap}
.screen-footer .next-btn{flex:0 0 auto;min-width:146px}
.preview-footer{padding:11px 10px calc(15px + env(safe-area-inset-bottom));gap:7px}
.preview-footer .btn{flex:1;min-width:0;padding:10px 4px;font-size:12px;white-space:nowrap}
.screen-pad{padding:17px}
.section-title{font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px;margin:0}
.section-title svg{width:17px;height:17px;color:var(--gold)}
.section-title small{font-size:10px;font-weight:400;color:var(--muted);margin-left:auto}
.section-gap{margin-top:18px}
/* Home */
.home-hero{background:var(--green);color:#fff;padding:21px 22px 28px}
.home-hello{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#b8cec1}
.home-avatar{width:29px;height:29px;display:grid;place-items:center;border:1px solid #4b7060;border-radius:9px;color:var(--gold-light);font-size:12px}
.home-wordmark{font-family:"STKaiti","KaiTi","AR PL KaitiM GB",serif;font-size:34px;color:#ecd8a8;letter-spacing:6px;margin:12px 0 4px;font-weight:500}
.home-brand-sub{font-size:9px;color:#c2d1be;letter-spacing:5px}
.home-area{background:#f7f8f4;padding:15px 17px 18px;border-radius:20px 20px 0 0;margin-top:-15px;position:relative}
.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.home-tile{background:#fff;border:1px solid var(--line);border-radius:10px;min-height:100px;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;text-align:left;padding:14px 17px;position:relative;transition:transform .1s}
.home-tile:hover{transform:translateY(-2px)}
.home-tile.primary-tile{background:linear-gradient(120deg,#e7d4ac,#f6eddb);border-color:#e6d4b2}
.home-tile svg{width:25px;height:25px;margin-bottom:8px;color:var(--green)}
.home-tile b{font-size:13px;font-weight:550}
.home-tile small{font-size:9px;color:#8c9787;margin-top:2px}
.home-tile.primary-tile small{color:#8b7757}
.home-tile .tile-arrow{position:absolute;right:11px;top:15px;opacity:.35;width:12px}
.home-stat{padding:16px 0 3px}
.home-stat h3{font-size:13px}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);padding:12px 0 0}
.stat-grid button{text-align:left;padding:0 0 0 14px;border-left:1px solid var(--line)}
.stat-grid button:first-child{padding-left:0;border-left:0}
.stat-grid strong{font-size:25px;font-weight:500;display:block;line-height:1.4}
.stat-grid small{font-size:10px;color:var(--muted)}
.recent-mini{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);margin-top:14px;padding:12px 0 0;font-size:10px;line-height:1.9;width:100%;text-align:left}
.recent-mini svg{color:var(--gold)}
.recent-mini b{display:block;font-weight:500;font-size:11px}
.recent-mini>.badge{margin-left:auto}
/* 首页 = 查询结果页：添加/录入为主操作，主体为申请单结果列表 */
.home-add{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(120deg,#e7d4ac,#f6eddb);border:1px solid #e6d4b2;border-radius:12px;min-height:62px;font-size:16px;font-weight:600;color:var(--green);margin-bottom:14px}
.home-add svg{width:22px;height:22px}
.home-add small{font-size:10px;color:#8b7757;font-weight:400;margin-left:4px}
.home-query{margin-bottom:10px}
.home-query .search-box{margin-bottom:8px}
.home-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}
.home-quick button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 2px;font-size:10px;color:#55665c}
.home-quick svg{width:21px;height:21px;color:var(--green)}
.home-quick b{font-weight:500}
/* Enter + picker */
.step-strip{display:flex;justify-content:space-between;gap:6px;font-size:10px;padding:11px 17px;border-bottom:1px solid var(--line);background:#fff;color:#a1aa9a}
.step-strip span{display:flex;align-items:center;gap:5px}
.step-strip i{font-style:normal;font-size:9px;border:1px solid #e1e5dc;border-radius:50%;width:17px;height:17px;display:grid;place-items:center}
.step-strip span.active{color:var(--green);font-weight:550}
.step-strip .active i{color:#fff;background:var(--green);border-color:var(--green)}
.form-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:13px}
.form-row{display:flex;align-items:center;min-height:42px;border-bottom:1px solid #edf0e9;padding:5px 12px;gap:8px}
.form-row:last-child{border:0}
.form-row>label{width:69px;flex-shrink:0;font-size:11px;color:#778574}
.form-row input,.form-row select{flex:1;border:0;background:#f7f9f5;font-size:12px;padding:6px 8px;min-height:29px;border-radius:5px}
.form-row .readonly{font-size:12px;flex:1;padding-left:8px}
.sys-info{display:flex;align-items:center;gap:7px;min-height:36px;padding:5px 12px;font-size:11px;color:#5f6f60;border-bottom:1px solid #edf0e9;flex-wrap:wrap}
.sys-info i{font-style:normal;color:#c7cfc2}
.sys-info .badge{margin-left:auto;font-size:9px;padding:3px 7px}
.urgency-tabs{display:flex;gap:4px;flex:1}
.urgency-tabs button{font-size:10px;padding:6px 11px;border-radius:5px;background:#f6f7f2;color:#8e9788}
.urgency-tabs .active{background:var(--gold-soft);color:#946b2d}
/* 采购记录页（多维查询） */
.records-add-row{display:grid;grid-template-columns:1.55fr 1fr;gap:9px;margin-bottom:12px}
.records-add{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(120deg,#e7d4ac,#f6eddb);border:1px solid #e6d4b2;border-radius:12px;min-height:56px;font-size:15px;font-weight:600;color:var(--green)}
.records-add-row .records-add{margin-bottom:0}
.records-add svg{width:20px;height:20px}
.records-add small{font-size:10px;color:#8b7757;font-weight:400;margin-left:5px}
.records-orders{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fff;border:1px solid var(--green);border-radius:12px;min-height:56px;font-size:14px;font-weight:600;color:var(--green)}
.records-orders svg{width:20px;height:20px}
.records-orders small{font-size:9px;color:#8b9789;font-weight:400}
.req-dim-row{display:flex;gap:6px;margin:10px 0 9px;align-items:center}
.req-dim-pick{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;min-height:32px;border-radius:7px;background:#fff;border:1px solid var(--line);font-size:12px;color:#7c8976;font-weight:500}
.req-dim-pick i{display:inline-flex}
.req-dim-pick i svg{width:11px;height:11px;opacity:.7}
.req-dim-pick b{color:var(--green);font-weight:600;font-style:normal}
.req-dim-pick.picked{background:var(--green);border-color:var(--green);color:#fff}
.req-dim-pick.picked b{color:#fff}
.dim-clear{flex-shrink:0;width:32px;height:32px;border-radius:7px;background:#fdf3e3;border:1px solid #e6d4b2;color:#946b2d;display:flex;align-items:center;justify-content:center}
.dim-clear svg{width:14px;height:14px}
.dim-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 0 9px}
.dim-tab{font-size:11px;min-height:28px;padding:0 11px;border-radius:6px;background:#fff;border:1px solid #e4e8dd;color:#7c8976;display:inline-flex;align-items:center;justify-content:center}
.dim-tab:active{transform:scale(.97)}
.dim-tab.active{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.order-status-tabs{display:flex;gap:6px;margin:11px 0 2px}
.order-status-tabs button{flex:1;font-size:11px;min-height:30px;border-radius:6px;background:#f0f3ec;color:#7c8976;display:flex;align-items:center;justify-content:center}
.order-status-tabs .active{background:var(--green);color:#fff}
.order-table{display:flex;flex-direction:column;gap:9px;margin-top:11px}
.order-row{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;text-align:left;width:100%}
.order-row-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.order-row-top b{font-size:13px;color:var(--green)}
.order-row-mid{display:flex;justify-content:space-between;font-size:11px;color:#8b9789;margin-top:5px}
.req-urgency{display:flex;gap:6px;margin:10px 0 2px}
.req-urgency button{flex:1;font-size:11px;min-height:30px;border-radius:6px;background:#f0f3ec;color:#7c8976;display:flex;align-items:center;justify-content:center}
.req-urgency .active{background:var(--green);color:#fff}
.records-count{font-size:11px;color:var(--muted);margin:10px 0 6px}
.records-count b{color:var(--green);font-size:13px}
.date-range{display:flex;align-items:center;gap:7px;margin-bottom:9px}
.date-range input{flex:1;min-width:0;font-size:12px;padding:7px 9px}
.date-range span{font-size:11px;color:var(--muted);flex-shrink:0}
.today-btn{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:3px;min-height:32px;padding:0 10px;border-radius:7px;background:#fdf3e3;border:1px solid #e6d4b2;color:#946b2d;font-size:11px;font-weight:600}
.today-btn svg{width:12px;height:12px}
/* 采购记录页：左侧分类导航 + 右侧表格（照手绘图） */
.rec-grid{display:flex;gap:9px;margin-top:10px;min-height:320px}
.rec-side{width:82px;flex-shrink:0;background:#f5f7f2;border:1px solid var(--line);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:4px;overflow-y:auto}
.rec-side button{font-size:11px;padding:7px 4px;border-radius:7px;background:#fff;color:#7c8976;border:1px solid #e7e9e2;line-height:1.25}
.rec-side button.active{background:var(--green);color:#fff;border-color:var(--green)}
.rec-panel{flex:1;min-width:0;overflow:hidden}
.rec-table{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.rec-th,.rec-row{display:grid;grid-template-columns:1.7fr .75fr .7fr 1.15fr;align-items:center;gap:4px}
.rec-th{background:#f0f3ec;font-size:10px;color:#8b9789;padding:7px 9px;border-bottom:1px solid #e4e8dd}
.rec-th span:not(:first-child){text-align:right}
.rec-row{width:100%;text-align:left;font-size:11px;color:#3d4638;padding:9px;border-bottom:1px solid #eef0e9;background:#fff}
.rec-row:last-child{border-bottom:none}
.rec-row:active{background:#f8faf5}
.rec-row span:nth-child(2),.rec-row span:nth-child(3){text-align:right;font-weight:600}
.rec-row span:nth-child(3){color:#8b9789;font-weight:400}
.rec-name{font-weight:600;color:#2f3a2c;line-height:1.25;overflow:hidden}
.rec-name small{display:block;font-size:9px;color:#a3ac9e;font-weight:400;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec-note{font-size:10px;color:#8b9789;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.input-note{width:100%;height:57px;min-height:57px;margin-top:9px;display:block;font-size:11px}
.picker-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:13px}
.picker-head{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 9px}
.picker-head h3{font-size:13px;display:flex;align-items:center;gap:6px}
.picker-head svg{width:16px;height:16px;color:var(--gold)}
/* 采购申请页 · 输入窗体头（自动采购单号 + 添加原料弹窗入口 + 已输入清单） */
.picker-head .docno-tag{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:5px}
.picker-head .docno-tag b{color:var(--gold);font-weight:600;font-size:12px;letter-spacing:.4px;font-variant-numeric:tabular-nums}
.picker-head .add-btn{margin-left:auto;min-height:34px;padding:6px 12px;font-size:12px;border:1px solid #d8e0d2;border-radius:8px}
.inline-list-head{display:flex;align-items:center;gap:7px;padding:13px 12px 9px;border-top:1px solid var(--line)}
.inline-list-head h3{font-size:13px;display:flex;align-items:center;gap:6px;margin-right:auto}
.inline-list-head svg{width:16px;height:16px;color:var(--gold)}
.inline-empty{text-align:center;color:var(--muted);padding:26px 12px 22px;font-size:12px}
.inline-empty svg{width:34px;height:34px;color:#adbaa8;margin-bottom:8px}
.inline-table{display:table;width:100%;border-collapse:collapse}
.inline-th,.inline-row{display:table-row}
.inline-th span,.inline-row span{display:table-cell;padding:8px 6px;border-bottom:1px solid #edf0e9;font-size:11px;vertical-align:middle}
.inline-th span{font-weight:600;color:#778574;background:#f8faf4;font-size:10px;letter-spacing:.3px}
.inline-th .inline-opth,.inline-row .inline-ops{text-align:center;width:62px}
.inline-name b{font-size:12px;font-weight:550}
.inline-name small{display:block;color:var(--muted);font-size:9px;line-height:1.4}
.inline-qty-cell{white-space:nowrap;text-align:center}
.inline-qty-cell .qty-btn{width:22px;height:22px;display:inline-grid;place-items:center;color:#88977c;background:#f7f9f4;border:1px solid var(--line);border-radius:6px;vertical-align:middle}
.inline-qty-cell .qty-btn svg{width:11px;height:11px}
.inline-qty-cell b{display:inline-block;min-width:34px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums;font-size:12px}
.inline-note{color:var(--muted);max-width:86px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inline-row.editing{background:var(--gold-soft)}
/* 已输入清单 · 分部门分组条 */
.dept-bar-row{display:flex;align-items:center;gap:7px;padding:8px 10px;background:var(--green-soft);border-bottom:1px solid #dfe7dd;border-left:3px solid var(--gold);margin:12px 12px 0}
.dept-bar-row:first-of-type{margin-top:0}
.dept-name{font-weight:600;font-size:12px;color:var(--green)}
.dept-add{margin-left:auto;display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:5px 11px;border:1px solid #d8e0d2;background:#fff;border-radius:8px;font-size:11px;color:var(--green)}
.dept-add svg{width:14px;height:14px}
.dept-add b{font-weight:550}
.inline-ops .icon-btn{width:26px;height:26px}
.inline-ops .icon-btn svg{width:14px;height:14px}
.entry-modes{display:flex;gap:6px;padding:0 12px 11px}
.entry-modes button{flex:1;font-size:10px;min-height:32px;border-radius:5px;background:#f0f3ec;color:#7c8976;display:flex;align-items:center;justify-content:center;gap:5px}
.entry-modes button.active{background:var(--green);color:#fff}
.entry-modes svg{width:13px;height:13px}
.picker-grid{display:flex;border-top:1px solid var(--line);height:382px;min-height:0}
.group-side{width:74px;flex-shrink:0;border-right:1px solid var(--line);background:#f6f8f3;overflow-y:auto;padding:6px 0;scrollbar-width:none}
.group-side::-webkit-scrollbar{display:none}
.group-side-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:44px;padding:5px 4px;font-size:9px;color:#7c8976;border-left:2px solid transparent;text-align:center;line-height:1.3;flex-shrink:0}
.group-side-item.active{background:#fff;color:var(--green);font-weight:600;border-left-color:var(--gold)}
.group-side-item .side-count{font-size:8px;color:#a3ac9a;font-style:normal;font-weight:400}
.group-side-item.active .side-count{color:var(--gold)}
.goods-panel{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.search-box{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:6px;background:#fafbf8;padding:0 7px;margin:8px 8px 0;min-width:0}
.search-box svg{width:14px;height:14px;color:#91a08b}
.search-box input{width:100%;border:0;outline:0!important;font-size:11px;padding:7px 0;background:none;height:33px}
.search-box .icon-btn{width:22px;height:25px}
.rank-strip{font-size:9px;display:flex;justify-content:space-between;align-items:center;gap:2px;padding:8px 9px;color:#9a8051}
.rank-strip select{border:0;padding:0;font-size:9px;color:#929d89;background:none;width:51px}
.goods-list{padding:0 9px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#e5e9e1 transparent;flex:1}
.goods-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid #eff1ec;padding:9px 2px;min-height:62px;cursor:pointer}
.goods-row:hover{background:#f8faf6}
.goods-row:active{background:#f0f4ec}
.goods-row:last-child{border:0}
.goods-thumb{width:46px;height:46px;border-radius:10px;flex-shrink:0;display:grid;place-items:center;font-size:24px;line-height:1;background:linear-gradient(140deg,#eef3ec,#dde8dd);overflow:hidden}
.goods-row.is-selected .goods-thumb{background:linear-gradient(140deg,#e2efe4,#cfe4d2)}
.goods-info{flex:1;min-width:0}
.goods-info b{font-size:13px;font-weight:550;display:block}
.goods-info p{font-size:10px;color:#9aa291;margin-top:3px;line-height:1.5}
.goods-info small{font-size:9px;color:#aab3a2;margin-top:2px;display:block}
.goods-row.is-selected{background:#f2f8f4}
.goods-row.is-selected .goods-info b{color:var(--green)}
.goods-stepper{display:flex;align-items:center;gap:3px;flex-shrink:0}
.goods-stepper button{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green)}
.goods-stepper button svg{width:15px;height:15px}
.goods-stepper button.plus-only{background:var(--green);color:#fff;width:32px;height:32px}
.goods-stepper span{min-width:34px;text-align:center;font-size:12px;font-weight:600;color:var(--green);font-variant-numeric:tabular-nums}
.goods-group{margin-bottom:5px}
.goods-group:last-child{margin-bottom:0}
.goods-group-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#eef3ec;color:#6f7f70;font-size:10px;font-weight:600;padding:6px 9px;margin:0 -9px 2px;border-radius:5px}
.goods-group-head small{font-size:9px;color:#9aa291;font-weight:400}
.group-options{display:flex;flex-direction:column;gap:9px;padding:2px 0}
.group-option{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid var(--line);border-radius:9px;padding:11px 13px;background:#fff}
.group-option.active{border-color:var(--gold);background:var(--gold-soft)}
.group-option-icon{width:34px;height:34px;border-radius:9px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;flex-shrink:0}
.group-option.active .group-option-icon{background:var(--gold);color:#fff}
.group-option-icon svg{width:18px;height:18px}
.group-option-text b{font-size:14px;color:var(--ink);display:block}
.group-option-text small{font-size:10px;color:var(--muted);display:block;margin-top:2px}
.group-option>svg{width:18px;height:18px;color:var(--gold);margin-left:auto}
.no-goods{padding:20px 6px;text-align:center;font-size:11px;color:#8b9783;line-height:1.9}
.picker-bottom{border-top:1px solid var(--line);padding:8px 11px;display:flex;justify-content:space-between;font-size:9px;color:#99a18f;background:#fafbf8}
.save-hint{font-size:9px;color:#9aa392;text-align:center;margin-top:12px}
.small-note{font-size:10px;color:#87927e;line-height:1.9}
.edit-warning{margin-bottom:12px}
/* Confirmation + success + records */
.meta-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;font-size:10px;background:#fff;padding:11px 12px;border:1px solid var(--line);border-radius:8px;margin-bottom:14px}
.meta-summary span{color:#949d8e}
.meta-summary b{color:#4d604b;font-size:11px;font-weight:500;display:block;margin-top:3px}
.review-list{background:#fff;border:1px solid var(--line);border-radius:9px;margin:9px 0 15px;padding:0 12px}
.review-item{padding:13px 0;border-bottom:1px solid var(--line)}
.review-item:last-child{border:0}
.review-item .item-top{display:flex;align-items:center;gap:7px}
.item-order{color:#b3bba9;font-size:10px;min-width:17px}
.review-item h4{font-size:13px;font-weight:550;flex:1}
.review-item .item-edit{font-size:10px;color:#9e8251;display:flex;gap:3px;align-items:center;padding:3px}
.item-edit svg{width:12px;height:12px}
.review-item .icon-btn{width:27px;height:27px;color:#adb6a5}
.review-item .icon-btn svg{width:15px}
.review-item .item-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:9px;gap:10px;padding-left:24px}
.item-spec{font-size:10px;color:#9aa28f;line-height:1.8;flex:1;min-width:0;word-break:break-word}
.qty-control{display:flex;align-items:center;min-width:107px;border:1px solid var(--line);border-radius:6px;height:32px;overflow:hidden;flex-shrink:0}
.qty-control button{width:28px;height:30px;display:grid;place-items:center;color:#88977c;background:#f7f9f4}
.qty-control button svg{width:12px;height:12px}
.qty-control input{width:46px;min-width:25px;border:0;padding:2px;text-align:center;border-radius:0;font-size:12px}
.qty-unit{font-size:10px;color:var(--muted);width:19px;padding-left:4px;flex-shrink:0}
.review-item .line-note{font-size:10px;color:#8d997e;padding-left:24px;margin-top:5px}
.quick-info{padding:12px 0 0;font-size:9px;color:#98a28f;text-align:center}
.success-body{padding:30px 21px 24px;text-align:center}
.success-icon{width:66px;height:66px;background:#dfedde;color:var(--green);border-radius:50%;display:grid;place-items:center;margin:8px auto 16px;position:relative}
.success-icon:after{content:"";position:absolute;inset:-7px;border:1px solid #e4ece1;border-radius:50%}
.success-icon svg{width:31px;height:31px;stroke-width:2}
.success-body h2{font-size:23px;font-weight:550;margin-top:22px}
.success-en{font-size:11px;color:#8b9e83;margin-top:5px}
.success-intro{font-size:11px;color:#8a977f;line-height:1.9;margin:15px 0 23px}
.receipt{background:white;border:1px solid var(--line);border-top:2px solid var(--gold-light);border-radius:8px;text-align:left;padding:11px 14px;margin-bottom:21px}
.receipt-line{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:11px;line-height:1.8;padding:8px 0;border-bottom:1px dashed #ebeee7}
.receipt-line:last-child{border:0}
.receipt-line>span:first-child{color:#94a18a;flex-shrink:0}
.receipt-line b{font-size:11px;font-weight:500;text-align:right;word-break:break-all}
.success-body .btn{margin-bottom:9px}
.progress-mini{display:flex;justify-content:center;align-items:center;gap:5px;font-size:9px;color:#a5ae9a;margin:22px 0}
.progress-mini i{width:23px;border-top:1px solid #dcdccb}
.progress-mini strong{color:var(--gold);font-weight:500}
.records-controls{padding:12px 16px 0;background:#fff;position:sticky;top:0;z-index:2;border-bottom:1px solid var(--line)}
.records-controls .search-box{margin:0 0 7px}
.status-tabs{display:flex;gap:0;overflow-x:auto;scrollbar-width:none}
.status-tabs button{font-size:11px;white-space:nowrap;min-height:41px;flex:1;color:#9aa58f;border-bottom:2px solid transparent;padding:7px 9px}
.status-tabs button.active{color:var(--green);border-color:var(--gold);font-weight:600}
.records-list{padding:4px 16px 13px;background:#fff}
.record-card{display:block;text-align:left;width:100%;padding:16px 0;border-bottom:1px solid var(--line)}
.record-card:last-child{border:0}
.record-card .record-top{display:flex;justify-content:space-between;align-items:center;gap:5px}
.record-card .record-no{font-size:11px;font-weight:500;letter-spacing:-.3px}
.record-card .record-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:7px}
.record-card p{font-size:10px;color:#92a087;line-height:1.9}
.record-card .item-preview{max-width:270px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.record-card svg{width:15px;color:#a1ad95}
.record-status-line{padding:13px 16px;background:#fafbf7;border-bottom:1px solid var(--line)}
.detail-items{background:#fff;border:1px solid var(--line);border-radius:8px;padding:0 12px;margin-top:10px}
.readonly-row{display:flex;gap:8px;align-items:flex-start;border-bottom:1px solid var(--line);padding:11px 0}
.readonly-row:last-child{border:0}
.readonly-row .row-num{font-size:10px;color:#adbaa2;min-width:16px}
.readonly-row .row-info{flex:1;min-width:0}
.readonly-row b{font-size:12px;font-weight:550}
.readonly-row p{font-size:10px;color:#94a087;line-height:1.8;margin-top:3px;word-break:break-word}
.readonly-row strong{font-size:12px;font-weight:550;white-space:nowrap}
.timeline{margin-top:10px}
.timeline-line{display:flex;gap:13px;padding:0 0 16px;position:relative}
.timeline-line:before{content:"";position:absolute;width:1px;top:7px;left:3px;bottom:0;background:#dae3d3}
.timeline-line:last-child:before{display:none}
.timeline-dot{width:7px;height:7px;flex-shrink:0;background:var(--gold);border-radius:50%;margin-top:5px;z-index:1}
.timeline-line h4{font-size:11px;font-weight:500}
.timeline-line p{font-size:10px;color:#99a38e;margin-top:3px;line-height:1.8}
.timeline-line .audit-note{color:#857453;background:var(--gold-soft);padding:6px 9px;border-radius:5px;margin-top:6px}
.return-note{border-left:2px solid var(--red);background:var(--red-soft);color:#9f6553;font-size:11px;padding:10px 12px;line-height:1.8;margin-bottom:14px}
.detail-tools{display:flex;justify-content:center;gap:18px;border-top:1px solid var(--line);margin-top:16px;padding-top:9px}
/* GM workspace */
.workbench{background:white;border:1px solid #dce4d8;border-radius:14px;box-shadow:var(--shadow);max-width:1250px;margin:0 auto;min-height:720px;display:grid;grid-template-columns:173px minmax(0,1fr);overflow:hidden}
.gm-sidebar{background:var(--green);color:#bdcec0;padding:25px 14px;display:flex;flex-direction:column}
.gm-logo{font-family:"KaiTi","STKaiti",serif;font-size:23px;color:#ebd9b1;letter-spacing:3px;padding:0 10px 4px}
.gm-logo-sub{font-size:8px;letter-spacing:2px;padding:0 10px 25px;color:#a8c0aa}
.gm-sidebar nav button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;color:#b1c8b5;min-height:42px;padding:8px 11px;border-radius:6px;font-size:11px;margin-bottom:5px}
.gm-sidebar nav button.active{background:#286248;color:white}
.gm-sidebar nav svg{width:16px;height:16px}
.gm-sidebar nav .count{margin-left:auto;background:var(--gold)}
.gm-sidebar .gm-bottom{margin-top:auto;padding-top:45px}
.gm-bottom p{font-size:9px;padding:13px 10px 0;color:#789881;line-height:1.9}
.gm-main{min-width:0;background:#fafbf8}
.gm-topbar{height:62px;display:flex;justify-content:space-between;align-items:center;padding:0 27px;border-bottom:1px solid var(--line);background:white;font-size:10px;color:#929d89}
.gm-profile{display:flex;gap:7px;align-items:center;color:var(--green);font-size:11px}
.gm-avatar{width:28px;height:28px;display:grid;place-items:center;background:var(--gold-soft);border-radius:50%;color:var(--gold);font-size:12px}
.gm-content{padding:25px}
.gm-heading h2{font-size:22px;font-weight:600;letter-spacing:.5px}
.gm-heading p{color:#a1ad96;font-size:11px;margin-top:4px}
.gm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
.gm-stat{border:1px solid var(--line);border-radius:9px;background:white;padding:15px 17px;display:flex;justify-content:space-between;align-items:center;text-align:left}
.gm-stat:first-child{border-color:#e7dbbe;background:#fffdf7}
.gm-stat span{font-size:11px;color:#95a08b;display:block}
.gm-stat b{font-size:26px;font-weight:500;display:block;margin-top:5px}
.gm-stat svg{width:28px;height:28px;color:var(--gold);opacity:.6}
.gm-box{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:18px}
.gm-box-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;gap:12px;border-bottom:1px solid var(--line)}
.gm-box-toolbar h3{font-size:13px;font-weight:550;display:flex;align-items:center;gap:7px}
.gm-box-toolbar .search-box{margin:0;max-width:255px;width:45%}
.gm-box-toolbar .status-tabs button{font-size:10px;min-height:32px;padding:5px 10px}
.gm-table{width:100%;border-collapse:collapse;text-align:left;font-size:10px}
.gm-table th{padding:11px 13px;background:#f6f8f3;color:#86947c;font-weight:500;font-size:10px;white-space:nowrap}
.gm-table td{padding:12px 13px;border-bottom:1px solid #eef1e9;vertical-align:middle}
.gm-table tr:last-child td{border-bottom:0}
.gm-table tbody tr{cursor:pointer}
.gm-table tbody tr:hover,.gm-table tbody tr.selected{background:#faf7ef}
.gm-table .no-col{font-size:10px;white-space:nowrap}
.gm-table .date-col{font-size:9px;color:#9aa58f}
.gm-table .table-btn{font-size:10px;color:var(--green);border:1px solid #dce4d4;border-radius:5px;padding:5px 9px;background:#fff;white-space:nowrap;min-height:29px}
.gm-table .badge{font-size:9px}
.gm-detail-head{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.gm-detail-head h3{font-size:14px;font-weight:550}
.gm-detail-head p{font-size:10px;color:#96a28b;margin-top:6px}
.gm-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px;padding:18px}
.gm-item-table{width:100%;border-collapse:collapse;font-size:11px}
.gm-item-table th{font-size:10px;font-weight:500;color:#97a38c;background:#f7f9f4;text-align:left;padding:9px}
.gm-item-table td{padding:10px 9px;border-bottom:1px solid var(--line);vertical-align:top}
.gm-item-table small{color:#96a089;font-size:9px;display:block;margin-top:3px;line-height:1.7}
.gm-review{border:1px solid #e8ece2;background:#fcfdf9;padding:13px;border-radius:7px}
.gm-review h4{font-size:12px;font-weight:550;margin-bottom:8px}
.gm-review textarea{font-size:11px;width:100%;height:107px;margin-top:6px}
.gm-quick-opinions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.gm-quick-opinions button{border:1px solid #e2e6d9;border-radius:5px;background:#fff;padding:4px 7px;font-size:9px;color:#95a089;min-height:27px}
.gm-review .review-actions{display:flex;gap:6px;margin-top:13px}
.review-actions .btn{flex:1;padding:8px;font-size:11px;min-height:38px}
.gm-review .approve-print{width:100%;margin-top:7px;font-size:11px;min-height:36px}
.gm-notes{font-size:10px;line-height:1.9;color:#84947a;padding:13px;background:#f8faf4;border-radius:6px;margin-top:13px;white-space:pre-wrap;word-break:break-word}
.gm-notes b{color:#647e5b;display:block;font-size:11px;margin-bottom:4px}
.gm-audit .timeline-line{padding-bottom:12px}
.gm-audit .timeline-line h4{font-size:10px}
.gm-audit .timeline-line p{font-size:9px}
.gm-audit{padding-top:15px}
.gm-footer-note{font-size:10px;color:#9ba98f;text-align:center;padding:5px 15px 17px}
.purchase-analysis{margin:14px 0;border:1px solid #dfe6d8;border-radius:9px;background:#fbfcf8;overflow:hidden}
.analysis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid #e5eadf;background:linear-gradient(135deg,#f7f9f2,#fffdf8)}
.analysis-head>div{display:flex;flex-direction:column;gap:3px}.analysis-head b{font-size:13px;color:#425b3f}.analysis-head small{font-size:9px;color:#8c9984;line-height:1.6}
.analysis-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e5eadf}
.analysis-kpis>div{padding:10px 12px;border-right:1px solid #e5eadf;display:flex;flex-direction:column;gap:3px}.analysis-kpis>div:last-child{border-right:0}
.analysis-kpis span,.analysis-line i{font-size:9px;font-style:normal;color:#899783}.analysis-kpis b{font-size:15px;color:#4a6447}.analysis-kpis small{font-size:8px;color:#a0aa99}
.analysis-lines{display:flex;flex-direction:column}.analysis-line{padding:12px 14px;border-bottom:1px solid #e8ece3}.analysis-line:last-child{border-bottom:0}
.analysis-line-main{display:grid;grid-template-columns:1.15fr .72fr 1fr 1fr;gap:9px;align-items:start}.analysis-line-main>span{min-width:0;display:flex;flex-direction:column;gap:3px}
.analysis-line-main b{font-size:10px;color:#485947;overflow-wrap:anywhere}.analysis-line-main small{font-size:8px;line-height:1.45;color:#909b8b;overflow-wrap:anywhere}.analysis-name>b{font-size:12px;color:#263d2c}
.analysis-recommend{padding-left:9px;border-left:2px solid #c7a669}.analysis-recommend>b{color:#8b6b32}
.analysis-periods{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:9px}.analysis-periods>span{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;background:#f2f5ed}.analysis-periods i{font-size:9px;color:#71816b}.analysis-periods b{font-size:9px}.analysis-periods small{font-size:8px;color:#8d9987}
.supplier-compare{margin-top:8px;border-top:1px dashed #dfe5d8;padding-top:7px}.supplier-compare summary{cursor:pointer;font-size:9px;color:#6f8268}.supplier-compare>div{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:5px 0;font-size:8px;border-bottom:1px dotted #e5e9e0}.supplier-compare>div b{font-size:8px}.supplier-compare>div small{color:#909a8b}.analysis-basis,.supplier-compare>p{font-size:8px;color:#8b9785;line-height:1.6;margin-top:6px}.analysis-empty{padding:18px;text-align:center;font-size:10px;color:var(--muted)}
.gm-empty{padding:34px;font-size:12px;color:var(--muted)}
/* A4 print */
.print-workspace{max-width:1040px;margin:auto;padding:12px}
.print-toolbar{background:white;border:1px solid var(--line);padding:13px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:13px;margin-bottom:12px;box-shadow:var(--shadow)}
.print-toolbar h2{font-size:15px;font-weight:550;display:flex;align-items:center;gap:7px}
.print-toolbar h2 svg{color:var(--gold)}
.print-toolbar p{font-size:10px;color:#98a38c;margin-top:4px;line-height:1.7}
.print-toolbar .btn{font-size:12px}
.print-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.print-controls select{grid-column:1/-1;min-height:39px;font-size:11px;width:100%}
.print-controls .btn{padding:7px;font-size:12px;min-height:42px}
.paper-stage{padding:8px;border-radius:6px;background:#e8ede4;border:1px solid #e0e6d9;overflow:hidden}
.paper-frame{margin:auto;position:relative}
.paper-scale{width:794px;transform-origin:top left}
.paper{width:794px;min-height:1123px;padding:47px 48px 34px;background:white;color:#252c27;box-shadow:0 4px 20px #1b332911;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;font-size:12px}
.paper-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1.5px solid var(--gold);padding-bottom:17px}
.paper-brand{font-family:"KaiTi","STKaiti",serif;letter-spacing:4px;font-size:28px;color:#a48143}
.paper-brand-sub{font-size:8px;color:#99927e;letter-spacing:1.5px;margin-top:2px}
.paper-demo{font-size:10px;color:#a0957d;text-align:right;line-height:1.8}
.paper h1{font-size:28px;letter-spacing:7px;text-align:center;font-weight:600;margin:24px 0 5px}
.paper-en{text-align:center;font-size:11px;letter-spacing:1px;color:#6d736d;margin-bottom:23px}
.paper-number{display:flex;justify-content:space-between;gap:20px;font-size:11px;padding:9px 0 13px;border-bottom:1px solid #c6cbbf}
.paper-meta{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:9px 0 18px}
.paper-meta>div{font-size:11px;padding:7px 0;display:flex;gap:10px}
.paper-meta b{font-weight:500;min-width:60px;color:#72796a}
.paper table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.7}
.paper thead{display:table-header-group}
.paper th,.paper td{border:1px solid #b9c0b2;padding:10px 7px;text-align:left;word-break:break-word;overflow-wrap:anywhere;vertical-align:middle}
.paper th{font-weight:600;font-size:10px;background:white}
.paper th:nth-child(1),.paper td:nth-child(1),.paper th:nth-child(5),.paper td:nth-child(5),.paper th:nth-child(6),.paper td:nth-child(6){text-align:center}
.paper tr{break-inside:avoid}
.paper-table-label{font-size:12px;font-weight:550;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}
.paper-table-label span{font-size:9px;font-weight:400;color:#969d8c}
.paper-notes{border:1px solid #b9c0b2;border-top:0;padding:12px;min-height:83px;display:flex;gap:15px;font-size:11px;line-height:1.9;break-inside:avoid}
.paper-notes>b{width:62px;flex-shrink:0;font-weight:500}
.paper-notes>span{flex:1;white-space:pre-wrap;overflow-wrap:anywhere}
.paper-signs{display:grid;grid-template-columns:1fr 1fr;gap:25px 30px;font-size:11px;line-height:1.7;margin:31px 0 25px;break-inside:avoid}
.paper-signs span{display:flex;align-items:baseline;gap:10px}
.paper-signs i{border-bottom:1px solid #929b85;flex:1;font-style:normal;padding-bottom:3px;min-height:20px;overflow-wrap:anywhere}
.paper-foot{border-top:1px solid var(--gold);font-size:9px;color:#8c9580;padding-top:13px;display:flex;justify-content:space-between;gap:12px;line-height:1.9;break-inside:avoid}
.print-bottom-note{font-size:11px;text-align:center;color:#9aa58e;margin-top:17px;line-height:1.9}
#print-root{display:none}
/* Aux demo modules */
.aux-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:15px 0}
.aux-row .aux-icon{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;color:var(--gold);background:var(--gold-soft)}
.aux-row .aux-info{flex:1;min-width:0}
.aux-row h3{font-size:12px;font-weight:500}
.aux-row p{color:#94a087;font-size:10px;margin-top:4px;line-height:1.8}
.switch{width:39px;height:23px;border-radius:20px;background:#d4dccf;padding:3px;position:relative;flex-shrink:0}
.switch:before{content:"";display:block;width:17px;height:17px;border-radius:50%;background:white;transition:transform .15s}
.switch.on{background:var(--green)}
.switch.on:before{transform:translateX(16px)}
.profile-hero{padding:24px 0;text-align:center}
.profile-hero .avatar{display:grid;place-items:center;width:57px;height:57px;background:var(--green-soft);color:var(--green);border-radius:18px;font-size:23px;margin:0 auto 10px}
.profile-hero h3{font-size:17px}
.profile-hero p{font-size:10px;color:var(--muted);margin-top:3px}
/* Sheets / overlays */
.overlay{position:fixed;inset:0;background:#0d261f66;backdrop-filter:blur(3px);z-index:60;display:flex;justify-content:center;align-items:flex-end;padding:0}
.sheet{width:100%;max-width:100%;max-height:92dvh;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -14px 45px #0003;display:flex;flex-direction:column;overflow:hidden}
.sheet-item{height:min(680px,92dvh)}
.sheet-head{padding:21px 22px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
.sheet-head h2{font-size:19px;font-weight:550}
.sheet-head p{font-size:9px;color:var(--gold);letter-spacing:1.3px;margin-top:5px}
.sheet-body{padding:20px 22px;overflow-y:auto;min-height:0}
.sheet-foot{padding:15px 22px;border-top:1px solid var(--line);display:flex;gap:9px;flex-shrink:0}
.sheet-foot .btn{flex:1}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;font-size:11px;color:#809273}
.field input,.field select,.field textarea{font-size:14px;color:var(--ink);min-height:42px}
.field>span{display:flex;justify-content:space-between}
.field small{color:#adb6a2;font-size:10px}
.field-grid{display:grid;grid-template-columns:130px 1fr;gap:12px}
.dept-confirm{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;padding:11px 13px;background:var(--green-soft);border:1px solid #d5e0d4;border-radius:8px;font-size:12px}
.dept-confirm span{color:#6f8478;font-size:11px}
.dept-confirm b{color:var(--green);font-size:14px}
.dept-picker{display:flex;flex-direction:column;gap:9px}
.dept-option{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:14px;font-weight:600;color:var(--ink)}
.dept-option:active{background:var(--green-soft);border-color:#a8c6b4}
.dept-option svg{width:15px;height:15px;color:#a9b2a3}
/* v40 紧凑列表 + 内联新增行 */
.ilist-empty{padding:9px;text-align:center;color:var(--muted);font-size:11px;border:1px dashed var(--line);border-radius:8px}
.itable{display:flex;flex-direction:column;gap:0;margin-bottom:12px;max-height:44vh;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.ith,.irow,.iadd{display:grid;grid-template-columns:1.3fr .5fr .55fr .6fr 24px;gap:3px;align-items:center;min-width:0}
.ith{padding:5px 8px;background:var(--green-soft);border-bottom:1px solid #d5e0d4;font-size:10px;color:#6f8478;font-weight:600;position:sticky;top:0;z-index:5}
.ith span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.itable .tbody{display:flex;flex-direction:column;gap:0}
.irow{min-height:30px;padding:4px 8px;border-bottom:1px solid #f0f2ec;cursor:pointer}
.irow:last-child{border-bottom:none}
.irow:active{background:var(--green-soft)}
.irow-name{font-weight:600;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.irow-name em{font-style:normal;color:var(--muted);font-size:11px;font-weight:400}
.irow-qty{color:var(--green);font-weight:600;font-size:12px;white-space:nowrap}
.irow-cell{color:#55605a;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.irow-x{display:flex;align-items:center;justify-content:center}
.irow-ic{display:inline-flex;align-items:center;gap:3px;font-size:10px;background:var(--gold-soft);color:#976e30;padding:2px 6px;border-radius:4px;white-space:nowrap}
.irow-ic.has{color:#7a5c22;background:var(--gold-light)}
.irow-ic svg{width:12px;height:12px}
.irow-ok{color:var(--green);font-weight:700;font-size:12px}
.irow-del{width:20px;height:22px;display:grid;place-items:center;color:#b9c0b5;border-radius:6px}
.irow-del:active{color:var(--red);background:#f6e9e5}
.irow-del svg{width:13px;height:13px}
.iadd{border-top:2px solid var(--green);padding:6px 8px;background:#fbfbf8;align-items:center}
.iadd input,.iadd select{min-height:26px;padding:4px 6px;font-size:12px;border:1px solid var(--line);border-radius:6px;background:#fff;width:100%;box-sizing:border-box}
.iadd .cell-name{position:relative}
.iadd .cell-unit{position:relative}
.iadd .cell-unit small.pack-tip{display:block;font-size:9px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iadd-btn{min-height:34px;white-space:nowrap;padding:0 10px}
/* v42 手绘图补全：右上角部门 pill / AI录入入口 / 行下校验 */
.head-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
.dept-pill{display:inline-flex;align-items:center;min-height:26px;padding:0 13px;border-radius:999px;background:#eef0ec;border:1px solid #d9ddce;color:#2b332e;font-size:13px;font-weight:600;white-space:nowrap}
.tool-row{display:flex;align-items:center;gap:6px;margin:0 0 8px;flex-wrap:wrap}
.tool-row .rtab{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:26px;padding:0 7px;border:1px solid #dcd6c2;border-radius:8px;background:#f6f1e4;color:#8b723e;font-size:10px;font-weight:600;flex-shrink:0;cursor:pointer;white-space:nowrap}
.tool-row .rtab svg{width:12px;height:12px}
.tool-row .rtab.has{border-color:#d8b86d;background:var(--gold-light);color:#7a5c22}
.tool-row .rtab.open{border-color:#a8c6b4;background:var(--green-soft);color:var(--green)}
.tool-row .rtab.open svg{color:var(--green)}
.tool-row a{margin-left:auto;font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
.iadd-error{margin:5px 0 0;color:var(--red);font-size:11px;line-height:1.5;min-height:14px}
/* v52 淘宝/大众点评式紧凑：字号小、密度高 */
.sheet-item .sheet-head{padding:14px 16px 9px}
.sheet-item .sheet-head h2{font-size:16px}
.sheet-item .sheet-body{padding:12px 14px}
.sheet-item .sheet-foot{padding:9px 14px}
.sheet-item .sheet-foot .btn{min-height:32px;padding:6px 10px;font-size:12px}
.sheet-item .field input,.sheet-item .field select,.sheet-item .field textarea{font-size:12px;min-height:30px;padding:5px 8px}
.extras-row{display:flex;gap:10px;margin-bottom:15px}
.extra-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 13px;border:1px solid #dcd6c2;border-radius:8px;background:var(--gold-soft);color:#8b723e;font-size:12px;font-weight:600}
.extra-chip svg{width:17px;height:17px}
.extra-chip i{font-style:normal;font-size:10px;color:#a9926a;font-weight:400}
.extra-chip.has{border-color:#d8b86d;background:var(--gold-light);color:#7a5c22}
.extra-chip.has i{color:#7a5c22}
.extra-chip.open{border-color:#a8c6b4;background:var(--green-soft);color:var(--green)}
.extra-chip.open i{color:#5f8f74}
.extra-field{margin-top:-6px}
.field[hidden]{display:none}
.name-field{position:relative}
.name-drop{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:70}
.name-drop[hidden]{display:none}
.name-drop .name-drop-panel{border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(35,52,43,.12);overflow:hidden;max-height:264px;overflow-y:auto}
.name-drop button{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:6px 12px;border-bottom:1px solid #eef1ec;font-size:12px}
.name-drop button:last-child{border:0}
.name-drop button:hover{background:var(--green-soft)}
.name-drop button .cand-t{display:flex;align-items:baseline;gap:8px;min-width:0;white-space:nowrap;overflow:hidden}
.name-drop button .cand-t b{font-weight:600;flex:none}
.name-drop button .cand-t em{font-size:10px;color:var(--muted);font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.name-drop button .cand-m{font-size:10px;color:#55605a;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* v56 原料档案与行图片：四列主表保持不变，详细资料收进编辑窗体 */
.item-dictionary{margin:10px 0;padding:10px;border:1px solid #dfe5db;border-radius:9px;background:#fafbf7}
.item-dictionary-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.item-dictionary-head b{font-size:12px;color:var(--green)}
.item-dictionary-head small{font-size:9px;color:var(--muted);text-align:right}
.item-dictionary-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:7px}
.item-dictionary-grid label{display:flex;flex-direction:column;gap:3px;min-width:0}
.item-dictionary-grid label span{font-size:9px;color:var(--muted)}
.item-dictionary-grid input{min-height:30px;width:100%;padding:5px 7px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px}
.item-dictionary-facts{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin-top:8px;padding-top:8px;border-top:1px dashed #dfe5db}
.item-dictionary-facts div{display:flex;justify-content:space-between;gap:8px;font-size:10px}
.item-dictionary-facts span{color:var(--muted)}
.item-dictionary-facts b{font-weight:600;color:#46544c;text-align:right}
.item-dictionary-facts .dict-latest{grid-column:1/-1}
.item-images-block{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}
.item-images-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.item-images-head>span{display:flex;flex-direction:column;gap:2px}
.item-images-head b{font-size:12px}
.item-images-head small{font-size:9px;color:var(--muted)}
.item-images-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.item-images-empty{grid-column:1/-1;padding:8px;text-align:center;color:var(--muted);font-size:10px;border:1px dashed #dfe5db;border-radius:7px}
.item-image{display:grid;grid-template-columns:45px minmax(0,1fr) 28px;align-items:center;gap:7px;min-height:52px;padding:4px;border:1px solid #e4e8df;border-radius:7px;background:#fafbf8}
.item-image.error{border-color:#e5b8aa;background:#fff7f4}
.item-image img,.item-image-placeholder{width:45px;height:45px;border-radius:6px;object-fit:cover;background:#eef2eb}
.item-image-placeholder{display:grid;place-items:center;color:var(--muted)}
.item-image-placeholder svg{width:20px;height:20px}
.item-image>span:not(.item-image-placeholder){min-width:0;display:flex;flex-direction:column;gap:3px}
.item-image b,.item-image small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item-image b{font-size:10px}.item-image small{font-size:9px;color:var(--muted)}
.item-image.error small{color:var(--red)}
.item-image .icon-btn{width:27px;height:27px;color:#9aa39a}
.item-save-status{min-height:15px;margin-top:6px;color:var(--green);font-size:10px;text-align:center}
/* 供应商订单卡（已通过审核详情页） */
.order-card{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;margin-top:12px}
.order-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fafbf7}
.order-card-head h4{font-size:13px;font-weight:550}
.order-card-head p{font-size:9px;color:var(--muted);margin-top:3px;font-family:ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}
.order-card-items{padding:9px 14px}
.order-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border-bottom:1px dashed #edf0e9;font-size:12px}
.order-item:last-child{border:0}
.order-item b{font-variant-numeric:tabular-nums;white-space:nowrap}
.order-card-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:11px 14px;border-top:1px solid var(--line)}
.order-card-foot>span{margin-right:auto;font-size:10px;color:var(--muted)}
.small-btn{min-height:34px;padding:6px 11px;font-size:11px}
.small-btn svg{width:15px;height:15px}
.modal-good-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.modal-good-title h3{font-size:20px;font-weight:550}
.modal-good-title .badge{font-size:11px}
.form-hint{font-size:10px;color:#95a18b;line-height:1.9;margin-top:10px}
.paste-guide{background:#fbfaf4;border:1px solid #eae3cd;border-radius:9px;padding:8px 11px;margin:10px 0 2px}
.paste-guide-details summary{list-style:none;cursor:pointer}
.paste-guide-details summary::-webkit-details-marker{display:none}
.paste-guide-details[open] .paste-guide-head svg:last-child{transform:rotate(180deg)}
.paste-guide-head{font-size:12px;font-weight:600;color:#7b6233;display:flex;align-items:center;gap:6px;margin:0}
.paste-guide-head svg{width:14px;height:14px;color:var(--gold)}
.paste-guide-head svg:last-child{margin-left:auto;transition:transform .15s}
.paste-guide-details .form-hint{margin-top:7px}
.paste-copy-line{display:flex;gap:8px;margin-top:8px;border-top:1px dashed #e5dcc0;padding-top:9px}
.paste-copy-line .text-link{flex:1;justify-content:center;min-height:38px;background:#f5f0e0;border:1px solid #ddd0a8;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:600;color:#7b6233}
.paste-copy-line .text-link svg{width:15px;height:15px}
.paste-area{width:100%;height:190px;font-size:13px;line-height:1.8;margin:10px 0 2px}
.parse-tools{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#99a28e;margin-bottom:10px}
.parsed-heading{font-size:13px;margin:18px 0 10px}
.parsed-row{border:1px solid var(--line);border-radius:8px;padding:11px;margin-top:9px;background:#fcfdf9}
.parsed-row.warning{border-color:#e5d4b0;background:#fffcf5}
.parsed-original{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;color:#909d84;margin-bottom:8px}
.parsed-original .icon-btn{width:23px;height:23px}
.parsed-original svg{width:12px;height:12px}
.parsed-fields{display:grid;grid-template-columns:minmax(0,1fr) 104px 58px 54px;gap:6px;align-items:start}
.parsed-fields select,.parsed-fields input{font-size:11px;padding:7px 6px;min-width:0}
.parsed-cat{display:grid;grid-template-columns:1fr 1fr;gap:4px;align-items:center}
.parsed-cat input{padding:7px 5px;font-size:11px;min-width:0}
.parsed-cat select{padding:7px 2px;font-size:11px;min-width:0}
.parsed-warning{font-size:10px;color:#a7813c;line-height:1.8;margin-top:7px}
.parsed-confirm{font-size:10px;display:flex;gap:6px;align-items:center;margin-top:7px;color:#98773d;min-height:29px}
.parsed-confirm input{accent-color:var(--green)}
.parsed-empty{font-size:11px;color:#95a18b;margin-top:12px;padding:18px 6px;text-align:center}
/* 粘贴 AI 识别：有疑问行标红 */
.parsed-row.issue{border-color:#e0b4a8;background:#fff7f5}
.parsed-issue{font-size:10px;color:#ad382b;line-height:1.8;margin-top:7px;display:flex;gap:5px;align-items:flex-start}
.parsed-issue svg{width:12px;height:12px;flex:none;margin-top:2px}
.paste-status{font-size:11px;color:var(--green);margin-top:8px;display:flex;gap:6px;align-items:center;min-height:18px}
.paste-status svg{width:12px;height:12px;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* 采购详情编辑页：统计条 / 工具 / 编辑图标 / 分类小计 */
.review-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:13px 0}
.review-stats div{background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px 12px;text-align:center}
.review-stats b{display:block;font-size:20px;font-weight:550;color:var(--green);font-variant-numeric:tabular-nums}
.review-stats span{font-size:9px;color:var(--muted)}
.review-tools{display:flex;gap:8px;margin:0 0 13px}
.review-tools .btn{flex:1;min-height:40px;font-size:12px}
.review-item .item-edit-btn{color:var(--green)}
.review-item .item-edit-btn svg{width:15px;height:15px}
.review-subtotals{background:#fff;border:1px solid var(--line);border-radius:9px;padding:12px 13px;margin-top:12px}
.review-subtotals h4{font-size:12px;font-weight:550;display:flex;align-items:center;gap:6px}
.review-subtotals h4 svg{width:15px;height:15px;color:var(--gold)}
.review-subtotals h4 small{font-size:9px;color:var(--muted);font-weight:400;margin-left:auto}
.review-subrow{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px dashed #edf0e9;font-size:11px}
.review-subrow:last-of-type{border:0}
.review-subrow span{flex:1;min-width:0}
.review-dept-group{margin:0 0 10px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
.review-dept-group>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#f3f7f1;border-bottom:1px solid var(--line);font-size:11px}
.review-dept-group>header b{color:var(--green);font-weight:650}
.review-dept-group>header span{color:var(--muted);font-size:9px;white-space:nowrap}
.review-dept-group .review-item{border-radius:0;border-width:0 0 1px;margin:0}
.review-dept-group .review-item:last-child{border-bottom:0}
.review-subrow b{font-weight:550;font-variant-numeric:tabular-nums}
.review-subrow .sub-qty{color:var(--green)}
.review-subnote{font-size:9px;color:#9aa58e;margin-top:6px}
/* 最近进货信息（原料候选下拉摘要） */
.name-drop button i.cand-last{display:block;font-style:normal;font-size:10px;color:#b58a4b;margin-top:2px;line-height:1.5}
/* 候选下拉：规格 / 验收标准 行 */
.name-drop button i.cand-pack,.name-drop button i.cand-qual{display:block;font-style:normal;font-size:10px;margin-top:2px;line-height:1.5}
.name-drop button i.cand-pack{color:#607166}
.name-drop button i.cand-qual{color:#8b6b3f}
.name-drop button.active{background:var(--gold-soft)}
.name-drop button.active b{color:var(--green)}
/* 连续录入 */
.cont-line{display:flex;gap:7px;align-items:center;font-size:11px;color:#809273;margin-top:13px;padding:9px 11px;background:#f8faf4;border:1px solid var(--line);border-radius:8px}
.cont-line input{width:16px;height:16px;accent-color:var(--green);flex-shrink:0}
/* 规格 / 品牌 并排 */
.field-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.help-block{padding-bottom:18px}
.help-block h3{font-size:13px;margin-bottom:7px}
.help-block p{font-size:12px;line-height:1.95;color:#86967c}
#toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);max-width:min(480px,90vw);background:#123d32f5;color:#fff;border:1px solid #4f6d48;padding:12px 20px;border-radius:10px;font-size:12px;z-index:90;box-shadow:0 10px 35px #0002;text-align:center;line-height:1.8;pointer-events:none}
@media print{@page{size:A4 portrait;margin:12mm 13mm}html,body{margin:0!important;background:#fff!important;padding:0!important;height:auto!important}body>*{display:none!important}body>#print-root{display:block!important}#print-root .paper{box-shadow:none;width:auto;min-height:0;padding:0;margin:0;font-size:10pt}#print-root .paper-head{padding-bottom:11px}#print-root .paper h1{margin-top:20px}#print-root .paper-meta{margin-bottom:12px}#print-root .paper table{font-size:9pt}#print-root .paper td,#print-root .paper th{padding:6px 5px}#print-root .paper tr{break-inside:avoid}#print-root .paper-notes{min-height:60px}#print-root .paper-signs{margin:18px 0 12px;break-inside:avoid;break-after:avoid}#print-root .paper-foot{font-size:8px;break-inside:avoid}#print-root .paper-demo{color:#555}#print-root .paper *{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* 手机外壳（V2 设计稿全屏适配） */
.phone-layout{width:100%;min-height:100dvh}
/* 桌面/宽屏预览：页面收成手机大小居中显示（真实手机 ≤640px 仍全屏） */
@media (min-width: 640px){
  body{height:100dvh;overflow:hidden;background:#16211c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px 12px}
  #demo-banner{width:393px;border-radius:10px;flex-shrink:0}
  #screen-root{min-height:0;width:100%;display:flex;justify-content:center}
  .phone-layout{width:393px;height:min(852px,calc(100dvh - 88px));min-height:0;border-radius:46px;overflow:hidden;box-shadow:0 26px 70px rgba(0,0,0,.5);background:#f7f8f4}
  .phone{height:100%;min-height:0}
  .screen-body{overflow-y:auto}
  #modal-root .overlay{width:393px;left:50%;transform:translateX(-50%);padding:0}
}
.official-paper tr.official-department td{background:#f1f5ef;color:#23483f;font-size:10px;padding:4px 6px;text-align:left;border-top:1px solid #769087}
.official-paper tr.official-department td span{float:right;color:#65756f;font-weight:400}
.official-paper tr.official-dept-subtotal td{background:#fafbf8;color:#4e5d57;font-size:9px;padding:3px 6px}
.supplier-audit-note{margin:0 0 10px;color:#68736d;font-size:12px;line-height:1.55}
.supplier-audit-list{display:grid;gap:8px}
.supplier-audit-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1.2fr);align-items:center;gap:8px;border-bottom:1px solid #e4e8e2;padding:0 0 8px}
.supplier-audit-row span{min-width:0;display:grid;gap:2px}
.supplier-audit-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.supplier-audit-row small{color:#77827c;font-size:10px}
.supplier-audit-row input{width:100%;height:34px;border:1px solid #cfd8d2;border-radius:4px;padding:0 8px;font-size:12px;background:#fff}
.supplier-audit-fields{display:grid;grid-template-columns:1fr 84px;gap:6px;align-items:center}
.supplier-audit-fields:has(input:only-child),.supplier-audit-fields:has(.audit-returned:only-child){grid-template-columns:1fr}
.audit-returned{height:34px;display:flex!important;align-items:center;padding:0 8px;border:1px solid #e2e7e3;background:#f6f8f5;color:#53615b;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phone-status{height:29px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:8px 21px 0;font-size:10px;flex-shrink:0}
.status-icons{display:flex;align-items:center;gap:4px}
.status-icons svg{width:13px;height:13px;stroke-width:2}
.home-indicator{width:104px;height:3px;border-radius:10px;background:#bdc6b9;position:absolute;bottom:4px;left:50%;transform:translateX(-50%);pointer-events:none}
.workbench{background:white;border:1px solid #dce4d8;border-radius:14px;box-shadow:var(--shadow);max-width:1250px;margin:0 auto;min-height:720px;display:grid;grid-template-columns:173px minmax(0,1fr);overflow:hidden}
.gm-sidebar{background:var(--green);color:#bdcec0;padding:25px 14px;display:flex;flex-direction:column}
.gm-sidebar nav button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;color:#b1c8b5;min-height:42px;padding:8px 11px;border-radius:6px;font-size:11px;margin-bottom:5px}
.gm-sidebar nav button.active{background:#286248;color:white}
.gm-sidebar nav svg{width:16px;height:16px}
.gm-sidebar nav .count{margin-left:auto;background:var(--gold)}
.gm-logo{font-family:"KaiTi","STKaiti",serif;font-size:23px;color:#ebd9b1;letter-spacing:3px;padding:0 10px 4px}
.gm-logo-sub{font-size:8px;letter-spacing:2px;padding:0 10px 25px;color:#a8c0aa}
.gm-main{min-width:0;background:#fafbf8}
.gm-topbar{height:62px;display:flex;justify-content:space-between;align-items:center;padding:0 27px;border-bottom:1px solid var(--line);background:white;font-size:10px;color:#929d89}
.gm-profile{display:flex;gap:7px;align-items:center;color:var(--green);font-size:11px}
.gm-avatar{width:28px;height:28px;display:grid;place-items:center;background:var(--gold-soft);border-radius:50%;color:var(--gold);font-size:12px}
.gm-content{padding:25px}
.gm-heading h2{font-size:22px;font-weight:600;letter-spacing:.5px}
.gm-heading p{color:#a1ad96;font-size:11px;margin-top:4px}
.gm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
.gm-stat{border:1px solid var(--line);border-radius:9px;background:white;padding:15px 17px;display:flex;justify-content:space-between;align-items:center;text-align:left}
.gm-stat:first-child{border-color:#e7dbbe;background:#fffdf7}
.gm-stat span{font-size:11px;color:#95a08b;display:block}
.gm-stat b{font-size:26px;font-weight:500;display:block;margin-top:5px}
.gm-stat svg{width:28px;height:28px;color:var(--gold);opacity:.6}
.gm-box{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:18px}
.gm-box-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;gap:12px;border-bottom:1px solid var(--line)}
.gm-box-toolbar h3{font-size:13px;font-weight:550;display:flex;align-items:center;gap:7px}
.gm-box-toolbar .search-box{margin:0;max-width:255px;width:45%}
.gm-table{width:100%;border-collapse:collapse;text-align:left;font-size:10px}
.gm-table th{padding:11px 13px;background:#f6f8f3;color:#86947c;font-weight:500;font-size:10px;white-space:nowrap}
.gm-table td{padding:12px 13px;border-bottom:1px solid #eef1e9;vertical-align:middle}
.gm-table tbody tr{cursor:pointer}
.gm-table tbody tr:hover,.gm-table tbody tr.selected{background:#faf7ef}
.gm-table .no-col{font-size:10px;white-space:nowrap}
.gm-table .date-col{font-size:9px;color:#9aa58f}
.gm-table .table-btn{font-size:10px;color:var(--green);border:1px solid #dce4d4;border-radius:5px;padding:5px 9px;background:#fff;white-space:nowrap;min-height:29px}
.gm-detail-head{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.gm-detail-head h3{font-size:14px;font-weight:550}
.gm-detail-head p{font-size:10px;color:#96a28b;margin-top:6px}
.gm-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px;padding:18px}
.gm-item-table{width:100%;border-collapse:collapse;font-size:11px}
.gm-item-table th{font-size:10px;font-weight:500;color:#97a38c;background:#f7f9f4;text-align:left;padding:9px}
.gm-item-table td{padding:10px 9px;border-bottom:1px solid var(--line);vertical-align:top}
.gm-item-table small{color:#96a089;font-size:9px;display:block;margin-top:3px;line-height:1.7}
.gm-review{border:1px solid #e8ece2;background:#fcfdf9;padding:13px;border-radius:7px}
.gm-review h4{font-size:12px;font-weight:550;margin-bottom:8px}
.gm-review textarea{font-size:11px;width:100%;height:107px;margin-top:6px}
.gm-quick-opinions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.gm-quick-opinions button{border:1px solid #e2e6d9;border-radius:5px;background:#fff;padding:4px 7px;font-size:9px;color:#95a089;min-height:27px}
.gm-review .review-actions{display:flex;gap:6px;margin-top:13px}
.review-actions .btn{flex:1;padding:8px;font-size:11px;min-height:38px}
.gm-review .approve-print{width:100%;margin-top:7px;font-size:11px;min-height:36px}
.gm-notes{font-size:10px;line-height:1.9;color:#84947a;padding:13px;background:#f8faf4;border-radius:6px;margin-top:13px;white-space:pre-wrap;word-break:break-word}
.gm-notes b{color:#647e5b;display:block;font-size:11px;margin-bottom:4px}
.gm-audit .timeline-line{padding-bottom:12px}
.gm-audit .timeline-line h4{font-size:10px}
.gm-audit .timeline-line p{font-size:9px}
.gm-audit{padding-top:15px}
.gm-footer-note{font-size:10px;color:#9ba98f;text-align:center;padding:5px 15px 17px}
.gm-empty{padding:34px;font-size:12px;color:var(--muted)}
.paper-stage{padding:22px;border-radius:10px;background:#e8ede4;border:1px solid #e0e6d9;overflow:hidden}
.paper-frame{margin:auto;position:relative}
.paper-scale{width:794px;transform-origin:top left}
.print-workspace{max-width:1040px;margin:auto}
.print-toolbar{background:white;border:1px solid var(--line);padding:16px 19px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:13px;margin-bottom:20px;box-shadow:var(--shadow)}
.print-toolbar h2{font-size:15px;font-weight:550;display:flex;align-items:center;gap:7px}
.print-toolbar h2 svg{color:var(--gold)}
.print-toolbar p{font-size:10px;color:#98a38c;margin-top:4px;line-height:1.7}
.print-toolbar .btn{font-size:12px}
.print-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.print-controls select{max-width:228px;font-size:10px;min-height:40px}
.paper{width:794px;min-height:1123px;padding:47px 48px 34px;background:white;color:#252c27;box-shadow:0 4px 20px #1b332911;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;font-size:12px}
.paper-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1.5px solid var(--gold);padding-bottom:17px}
.paper-brand{font-family:"KaiTi","STKaiti",serif;letter-spacing:4px;font-size:28px;color:#a48143}
.paper-brand-sub{font-size:8px;color:#99927e;letter-spacing:1.5px;margin-top:2px}
.paper-demo{font-size:10px;color:#a0957d;text-align:right;line-height:1.8}
.paper h1{font-size:28px;letter-spacing:7px;text-align:center;font-weight:600;margin:24px 0 5px}
.paper-en{text-align:center;font-size:11px;letter-spacing:1px;color:#6d736d;margin-bottom:23px}
.paper-number{display:flex;justify-content:space-between;gap:20px;font-size:11px;padding:9px 0 13px;border-bottom:1px solid #c6cbbf}
.paper-meta{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:9px 0 18px}
.paper-meta>div{font-size:11px;padding:7px 0;display:flex;gap:10px}
.paper-meta b{font-weight:500;min-width:60px;color:#72796a}
.paper table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.7}
.paper thead{display:table-header-group}
.paper th,.paper td{border:1px solid #b9c0b2;padding:10px 7px;text-align:left;word-break:break-word;overflow-wrap:anywhere;vertical-align:middle}
.paper th{font-weight:600;font-size:10px;background:white}
.paper th:nth-child(1),.paper td:nth-child(1),.paper th:nth-child(5),.paper td:nth-child(5),.paper th:nth-child(6),.paper td:nth-child(6){text-align:center}
.paper tr{break-inside:avoid}
.paper-table-label{font-size:12px;font-weight:550;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}
.paper-table-label span{font-size:9px;font-weight:400;color:#969d8c}
.paper-notes{border:1px solid #b9c0b2;border-top:0;padding:12px;min-height:83px;display:flex;gap:15px;font-size:11px;line-height:1.9;break-inside:avoid}
.paper-notes>b{width:62px;flex-shrink:0;font-weight:500}
.paper-notes>span{flex:1;white-space:pre-wrap;overflow-wrap:anywhere}
.paper-signs{display:grid;grid-template-columns:1fr 1fr;gap:25px 30px;font-size:11px;line-height:1.7;margin:31px 0 25px;break-inside:avoid}
.paper-signs span{display:flex;align-items:baseline;gap:10px}
.paper-signs i{border-bottom:1px solid #929b85;flex:1;font-style:normal;padding-bottom:3px;min-height:20px;overflow-wrap:anywhere}
.paper-foot{border-top:1px solid var(--gold);font-size:9px;color:#8c9580;padding-top:13px;display:flex;justify-content:space-between;gap:12px;line-height:1.9;break-inside:avoid}
.print-bottom-note{font-size:11px;text-align:center;color:#9aa58e;margin-top:17px;line-height:1.9}
@media(max-width:600px){.phone-status,.home-indicator{display:none}.phone{width:100%;min-height:100dvh;border:0;border-radius:0}.screen-pad{padding:16px}.picker-grid{grid-template-columns:84px minmax(0,1fr);height:350px}.category-nav button{font-size:11px;min-height:39px}.goods-info b{font-size:13px}.goods-info p{font-size:10px}.goods-row{min-height:59px}.entry-modes button{font-size:11px;min-height:35px}.search-box input{font-size:16px}.search-box input::placeholder{font-size:11px}.rank-strip{font-size:10px}.rank-strip select{font-size:11px;width:58px}.goods-list .add-good{width:33px;height:33px}.goods-list .add-good svg{width:17px;height:17px}.picker-bottom{font-size:10px}.screen-footer .btn{font-size:14px;min-height:46px}.screen-footer .draft-save{font-size:12px}.step-strip{font-size:11px}.review-item h4{font-size:14px}.item-spec{font-size:11px}.qty-control{height:36px}.qty-control button{height:34px;width:29px}.qty-control input{font-size:16px}.qty-unit{font-size:12px}.meta-summary span{font-size:11px}.meta-summary b{font-size:12px}.record-card .record-no{font-size:12px}.record-card p{font-size:11px}.status-tabs button{font-size:12px}.badge{font-size:11px}.record-card .badge{font-size:10px}.success-body{padding-top:34px}.receipt-line,.receipt-line b{font-size:12px}.readonly-row b,.readonly-row strong{font-size:13px}.readonly-row p{font-size:11px}.workbench{border:0;border-radius:0;min-height:calc(100dvh - 44px)}.gm-topbar{height:59px;background:var(--green);color:#b4c5b4;gap:8px}.gm-profile{color:#edd5a3}.gm-content{padding:17px 12px}.gm-heading h2{font-size:22px}.gm-stats{margin-top:17px;gap:8px}.gm-stat span{font-size:11px}.gm-stat b{font-size:25px}.gm-table .no-col{white-space:normal;word-break:break-all;max-width:125px}.gm-table .name-col{display:none}.gm-table td,.gm-table th{padding:11px 7px}.gm-box-toolbar .status-tabs{width:100%}.gm-box-toolbar .status-tabs button{flex:1;font-size:11px}.gm-box-toolbar .search-box{width:100%;max-width:none}.gm-detail-layout{grid-template-columns:1fr}.gm-review textarea{font-size:16px}.gm-review textarea::placeholder{font-size:12px}.gm-review .review-actions .btn{font-size:14px;min-height:45px}.gm-review .approve-print{min-height:42px;font-size:12px}.analysis-kpis{grid-template-columns:1fr 1fr}.analysis-kpis>div:nth-child(2){border-right:0}.analysis-kpis>div:nth-child(-n+2){border-bottom:1px solid #e5eadf}.analysis-line-main{grid-template-columns:1fr 1fr}.analysis-periods{grid-template-columns:1fr}.supplier-compare>div{grid-template-columns:1fr auto}.supplier-compare>div small{grid-column:1/-1}.print-workspace{padding:12px}.print-toolbar{padding:13px;margin-bottom:12px;gap:10px}.print-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.print-controls select{grid-column:1/-1;min-height:39px;font-size:11px;width:100%}.print-controls .btn{padding:7px;font-size:12px;min-height:42px}.paper-stage{padding:8px;border-radius:6px}.overlay{padding:0;align-items:flex-end}.sheet{width:100%;max-height:93dvh;border-radius:19px 19px 0 0}.sheet-head{padding:21px 20px 16px}.sheet-body{padding:18px 20px}.sheet-foot{padding:13px 20px calc(16px + env(safe-area-inset-bottom))}.sheet-foot .btn{font-size:14px}.field input,.field textarea,.field select{font-size:16px}.paste-area{font-size:16px}.parsed-fields input,.parsed-fields select{font-size:13px}.parsed-fields input{font-size:16px}.parsed-fields{grid-template-columns:minmax(0,1fr) 67px 67px}.parsed-warning,.parsed-confirm{font-size:11px}.timeline-line p{font-size:11px}.aux-row h3{font-size:14px}.aux-row p{font-size:11px}#toast{bottom:80px;font-size:12px;min-width:240px}}

/* v58: 总经理采购审核固定为手机信息架构，桌面仅作为手机壳预览。 */
.gm-screen{overflow-y:auto;overscroll-behavior-y:contain;background:#f4f6f1}
.gm-screen .workbench{display:block;width:100%;max-width:none;min-height:100%;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible;background:#f4f6f1}
.gm-screen .gm-sidebar{display:none}
.gm-screen .gm-main{min-height:100%;background:#f4f6f1}
.gm-screen .gm-topbar{position:sticky;top:0;z-index:20;height:56px;padding:0 14px;border:0;background:var(--green);color:#c8d6ca;gap:8px}
.gm-screen .gm-topbar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:13px;font-weight:600}
.gm-screen .gm-profile{gap:6px;color:#f0d9aa;font-size:10px;white-space:nowrap}
.gm-screen .gm-avatar{width:25px;height:25px;background:#f7efdf;color:#8a682d;font-size:11px}
.gm-screen .gm-content{padding:15px 12px calc(24px + env(safe-area-inset-bottom))}
.gm-screen .gm-heading{align-items:center;gap:10px}
.gm-screen .gm-heading h2{font-size:20px;line-height:1.2;letter-spacing:0}
.gm-screen .gm-heading p{margin-top:3px;font-size:10px}
.gm-screen .gm-heading .text-link{min-height:40px;padding:6px 0;font-size:11px;white-space:nowrap}
.gm-screen .gm-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}
.gm-screen .gm-stat{min-width:0;min-height:75px;padding:10px 9px;border-radius:10px;display:block}
.gm-screen .gm-stat span{font-size:10px;line-height:1.35}
.gm-screen .gm-stat b{margin-top:5px;font-size:22px;line-height:1}
.gm-screen .gm-stat svg{display:none}
.gm-screen .gm-box{margin-bottom:12px;border-radius:12px;box-shadow:none}
.gm-screen .gm-box-toolbar{display:flex;flex-direction:column;align-items:stretch;padding:11px;gap:10px}
.gm-screen .gm-box-toolbar .status-tabs{display:flex;width:100%;overflow-x:auto;scrollbar-width:none;gap:4px}
.gm-screen .gm-box-toolbar .status-tabs::-webkit-scrollbar{display:none}
.gm-screen .gm-box-toolbar .status-tabs button{flex:0 0 auto;min-height:38px;padding:7px 10px;font-size:11px;white-space:nowrap}
.gm-screen .gm-box-toolbar .search-box{width:100%;max-width:none;margin:0}
.gm-screen .gm-box-toolbar .search-box input{font-size:16px}
.gm-screen .gm-table,.gm-screen .gm-table tbody{display:block;width:100%}
.gm-screen .gm-table thead{display:none}
.gm-screen .gm-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"number number" "department count" "applicant status" "action action";gap:6px 10px;padding:13px 12px;border-bottom:1px solid #e8ece3;background:#fff}
.gm-screen .gm-table tbody tr:last-child{border-bottom:0}
.gm-screen .gm-table tbody tr.selected{background:#fffaf0;box-shadow:inset 3px 0 0 var(--gold)}
.gm-screen .gm-table td{display:block;padding:0;border:0;min-width:0;font-size:11px}
.gm-screen .gm-table td:nth-child(1){grid-area:number}
.gm-screen .gm-table td:nth-child(2){grid-area:department;color:#64745f}
.gm-screen .gm-table td:nth-child(3){grid-area:applicant;color:#64745f}
.gm-screen .gm-table td:nth-child(4){grid-area:count;text-align:right;color:#64745f}
.gm-screen .gm-table td:nth-child(5){grid-area:status;text-align:right}
.gm-screen .gm-table td:nth-child(6){grid-area:action}
.gm-screen .gm-table .no-col{max-width:none;white-space:normal;word-break:break-word;color:#263d2c;font-size:13px;font-weight:600}
.gm-screen .gm-table .date-col{margin-top:3px;color:#8d9987;font-size:10px;font-weight:400}
.gm-screen .gm-table .table-btn{width:100%;min-height:42px;margin-top:4px;border-color:#d5dfd2;background:#f7faf5;font-size:12px}
.gm-screen .gm-detail-head{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:14px;gap:10px}
.gm-screen .gm-detail-head h3{font-size:15px;line-height:1.45}
.gm-screen .gm-detail-head p{font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.gm-screen .gm-detail-head .text-link{min-height:40px;padding:4px 0;white-space:nowrap}
.gm-screen .gm-detail-layout{display:flex;flex-direction:column;padding:12px;gap:12px}
.gm-screen .gm-item-table{font-size:12px}
.gm-screen .gm-item-table th{padding:9px 7px;font-size:10px}
.gm-screen .gm-item-table td{padding:10px 7px}
.gm-screen .gm-item-table small{font-size:10px;line-height:1.55}
.gm-screen .gm-notes{margin-top:11px;padding:12px;font-size:11px;line-height:1.75}
.gm-screen .gm-review{padding:13px;border-radius:10px;background:#fff}
.gm-screen .gm-review h4{font-size:14px}
.gm-screen .gm-review textarea{height:96px;font-size:16px}
.gm-screen .gm-quick-opinions button{min-height:36px;padding:6px 8px;font-size:10px}
.gm-screen .gm-review .review-actions{gap:8px}
.gm-screen .gm-review .review-actions .btn,.gm-screen .gm-review .approve-print{min-height:46px;font-size:14px}
.gm-screen .gm-footer-note{display:none}
.gm-screen .purchase-analysis{margin:12px 0;border-radius:10px;background:#fbfcf8}
.gm-screen .analysis-head{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:9px}
.gm-screen .analysis-head b{font-size:14px}
.gm-screen .analysis-head small{font-size:10px;line-height:1.55}
.gm-screen .analysis-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
.gm-screen .analysis-kpis>div{min-width:0;padding:10px;border-right:1px solid #e5eadf}
.gm-screen .analysis-kpis>div:nth-child(2n){border-right:0}
.gm-screen .analysis-kpis>div:nth-child(-n+2){border-bottom:1px solid #e5eadf}
.gm-screen .analysis-kpis span{font-size:10px}
.gm-screen .analysis-kpis b{font-size:17px;overflow-wrap:anywhere}
.gm-screen .analysis-kpis small{font-size:9px}
.gm-screen .analysis-line{padding:12px}
.gm-screen .analysis-line-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gm-screen .analysis-name{grid-column:1/-1;padding-bottom:7px;border-bottom:1px solid #e5eadf}
.gm-screen .analysis-line-main .analysis-name>b{font-size:14px}
.gm-screen .analysis-line-main b{font-size:11px;line-height:1.45}
.gm-screen .analysis-line-main small{font-size:9px;line-height:1.55}
.gm-screen .analysis-recommend{grid-column:1/-1;padding:8px 0 0;border:0;border-top:2px solid #c7a669}
.gm-screen .analysis-periods{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.gm-screen .analysis-periods>span{display:flex;min-width:0;min-height:67px;padding:7px;align-items:flex-start;flex-direction:column;gap:3px}
.gm-screen .analysis-periods i{font-size:9px}
.gm-screen .analysis-periods b{font-size:10px;overflow-wrap:anywhere}
.gm-screen .analysis-periods small{font-size:9px}
.gm-screen .supplier-compare{padding-top:5px}
.gm-screen .supplier-compare summary{display:flex;align-items:center;min-height:42px;font-size:10px}
.gm-screen .supplier-compare>div{grid-template-columns:minmax(0,1fr) auto;padding:7px 0;font-size:9px}
.gm-screen .supplier-compare>div b{font-size:9px}
.gm-screen .supplier-compare>div small{grid-column:1/-1;font-size:9px}

/* v59: 手机采购录入按真实触控尺寸和连续录入顺序校正。 */
.picker-head{gap:10px}
.picker-head h3{display:none}
.picker-head .docno-tag{min-width:0;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.35}
.picker-head .docno-tag b{max-width:100%;font-size:11px;overflow-wrap:anywhere}
.picker-head .add-btn{min-height:44px;margin-left:0;padding:8px 12px;font-size:13px;flex-shrink:0}
.dept-add{min-height:44px;padding:7px 11px;font-size:12px}
.inline-table{table-layout:fixed}
.inline-th span,.inline-row span{padding:7px 4px}
.inline-th span:nth-child(2),.inline-row span:nth-child(2){width:113px}
.inline-th span:nth-child(3),.inline-row span:nth-child(3){width:34px}
.inline-th span:nth-child(4),.inline-row span:nth-child(4){width:42px}
.inline-th .inline-opth,.inline-row .inline-ops{width:48px}
.inline-row[role="button"]{cursor:pointer}
.inline-row[role="button"]:active,.inline-row[role="button"]:focus-visible{background:var(--green-soft);outline:2px solid #8bb29c;outline-offset:-2px}
.inline-qty-cell .qty-btn{width:44px;height:44px;border-radius:8px}
.inline-qty-cell .qty-btn svg{width:14px;height:14px}
.inline-qty-cell b{min-width:25px;font-size:13px}
.inline-ops .icon-btn{width:44px;height:44px}
.inline-ops .icon-btn svg{width:16px;height:16px}
.sheet-item{height:min(760px,96dvh)}
.sheet-item .sheet-head{min-height:59px;padding:12px 16px 10px}
.sheet-item .sheet-body{padding:10px 12px}
.sheet-item .sheet-foot{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
.sheet-item .sheet-foot .btn{min-height:48px;padding:8px;font-size:14px}
.tool-row{flex-wrap:nowrap;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.tool-row::-webkit-scrollbar{display:none}
.tool-row .rtab{min-height:44px;padding:0 10px;font-size:11px}
.tool-row .rtab svg{width:14px;height:14px}
.tool-row a{display:inline-flex;align-items:center;min-height:44px;margin-left:0;padding:0 8px;flex-shrink:0;font-size:11px}
.itable{max-height:none;overflow:visible;margin-bottom:12px}
.itable .tbody{max-height:144px;overflow-y:auto;overscroll-behavior:contain}
.ith,.irow,.iadd{grid-template-columns:minmax(0,1.35fr) 52px 58px minmax(0,.8fr) 40px;gap:4px}
.ith{padding:7px 8px;font-size:11px}
.irow{min-height:44px;padding:3px 8px}
.irow-name,.irow-qty{font-size:13px}
.irow-cell{font-size:12px}
.irow-del{width:44px;height:44px;padding:0;border:0;background:transparent}
.irow-del svg{width:16px;height:16px}
.iadd{position:relative;padding:7px 8px;overflow:visible}
.iadd .cell-name{position:static;min-width:0}
.iadd input,.iadd select{min-height:44px;padding:7px 8px;font-size:16px;border-radius:7px}
.iadd .cell-unit small.pack-tip{font-size:10px}
.name-drop{top:calc(100% - 2px);left:8px;right:8px;z-index:100}
.name-drop .name-drop-panel{max-height:286px;border-radius:9px;box-shadow:0 16px 36px rgba(20,48,38,.2)}
.name-drop button{min-height:58px;padding:9px 11px;gap:4px;font-size:14px}
.name-drop button .cand-t{white-space:normal;overflow:visible}
.name-drop button .cand-t em{font-size:11px}
.name-drop button .cand-m{font-size:11px;line-height:1.5;white-space:normal;overflow:visible}
.item-dictionary{padding:11px;margin:11px 0}
.item-dictionary[hidden]{display:none!important}
.item-dictionary-head{align-items:flex-start}
.item-dictionary-head b{font-size:14px}
.item-dictionary-head small{max-width:210px;font-size:10px;line-height:1.5}
.item-dictionary-grid{grid-template-columns:1fr 1fr;gap:8px}
.item-dictionary-grid label:first-child{grid-column:1/-1}
.item-dictionary-grid label span{font-size:11px}
.item-dictionary-grid input{min-height:44px;padding:7px 9px;font-size:16px}
.item-dictionary-facts{gap:8px 12px}
.item-dictionary-facts div{font-size:11px;line-height:1.55}
.sheet-item .field input,.sheet-item .field select,.sheet-item .field textarea{min-height:44px;padding:8px 10px;font-size:16px}
.item-images-head b{font-size:14px}
.item-images-head small{font-size:10px;line-height:1.5}
.item-images-head .btn{min-height:44px;font-size:12px}
.item-images-empty{padding:11px;font-size:11px}

/* v63: 添加原料弹窗内，部门改为单行紧凑标签。 */
.item-dept-tabs{display:flex;align-items:center;gap:4px;margin:0 0 7px;overflow-x:auto;scrollbar-width:none}
.item-dept-tabs::-webkit-scrollbar{display:none}
.item-dept-tab{flex:1 0 44px;min-width:44px;min-height:36px;padding:4px 10px;border:1px solid #dbe3d8;border-radius:999px;background:#f5f7f2;color:#647164;font-size:11px;font-weight:600;white-space:nowrap}
.item-dept-tab.active{border-color:var(--green);background:var(--green);color:#fff;box-shadow:inset 0 -2px 0 var(--gold)}
.item-dept-tab:focus-visible{outline:2px solid #8bb29c;outline-offset:1px}

/* v66: 部门弹窗选择、已选标签、单条高密度录入。 */
.apply-dept-tags{display:flex;align-items:center;gap:5px;padding:5px 10px 7px;flex-wrap:wrap}
.apply-dept-tag,.apply-dept-add,.dept-next-entry{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:3px 9px;font-size:12px;border:1px solid #dbe3d8;border-radius:4px;background:#fff;color:var(--green)}
.apply-dept-tag small{font-size:10px;opacity:.7}
.apply-dept-tag.active{background:var(--green);border-color:var(--green);color:#fff}
.apply-dept-add{padding:3px 6px}
.apply-dept-add svg,.dept-next-entry svg{width:12px;height:12px}
.dept-next-entry{margin-left:auto;border-color:var(--green)}
.inline-table{margin:0 10px 8px}
.inline-th span,.inline-row span{padding:4px;font-size:12px}
.inline-th span:nth-child(2),.inline-row span:nth-child(2){width:40px}
.inline-th span:nth-child(3),.inline-row span:nth-child(3){width:36px}
.inline-th span:nth-child(4),.inline-row span:nth-child(4){width:100px}
.inline-th .inline-opth,.inline-th span:last-child,.inline-row .inline-ops{width:28px}
.inline-row{min-height:32px}
.inline-name b,.inline-qty-cell b{font-size:12px;font-weight:500}
.inline-note{max-width:none;white-space:normal;line-height:1.4;overflow-wrap:anywhere}
.inline-ops .icon-btn{width:26px;height:28px}
.inline-ops .icon-btn svg{width:13px;height:13px}
.sheet-item{height:auto;max-height:92dvh}
.sheet-item .sheet-head{min-height:43px;padding:7px 12px}
.sheet-item .sheet-head h2{font-size:14px}
.sheet-item .sheet-head .icon-btn{width:28px;height:28px}
.sheet-item .head-right{gap:6px}
.sheet-item .dept-pill{min-height:26px;padding:3px 8px;border-radius:4px;font-size:12px}
.dept-pill svg{width:11px;height:11px}
.sheet-item .sheet-body{padding:7px 10px 10px}
.sheet-item .tool-row{gap:4px;margin-bottom:6px;padding-bottom:0}
.sheet-item .tool-row .rtab{min-height:28px;padding:3px 7px;border-radius:3px;font-size:11px}
.sheet-item .tool-row .rtab svg{width:11px;height:11px}
.sheet-item .tool-row .iadd-add{display:none}
.sheet-item .tool-row a{min-height:28px;font-size:11px;padding:2px 5px}
.sheet-item #ilist,.sheet-item #item-pack-tip{display:none}
.sheet-item .itable{margin-bottom:0;border:1px solid var(--line);border-radius:0}
.sheet-item .ith,.sheet-item .iadd{grid-template-columns:minmax(0,1.15fr) 42px 44px minmax(0,1.4fr);gap:0;padding:0}
.sheet-item .ith{border-bottom:1px solid var(--line);font-size:11px}
.sheet-item .ith span{padding:5px;border-right:1px solid var(--line)}
.sheet-item .ith span:last-child{border-right:0}
.sheet-item .iadd>input,.sheet-item .iadd>div{min-width:0;border:0;border-right:1px solid var(--line);border-radius:0}
.sheet-item .iadd>input:last-child{border-right:0}
.sheet-item .iadd input,.sheet-item .iadd select{width:100%;min-height:32px;padding:4px 5px;font-size:13px;border:0;border-radius:0;background:transparent;box-shadow:none}
.sheet-item .iadd input:focus,.sheet-item .iadd select:focus{outline:1px solid var(--green);outline-offset:-1px}
.sheet-item .iadd-error:empty{display:none}
.sheet-item .iadd-error{margin:4px 5px;font-size:11px}
.sheet-item .item-images-block:not(:has(.item-image)){display:none}
.sheet-item .item-save-status:empty{display:none}
.sheet-item .item-dictionary{margin:6px 0;padding:6px;border-radius:0}
.sheet-item .item-dictionary-head b{font-size:12px}
.sheet-item .item-dictionary-head small{display:none}
.sheet-item .item-dictionary-grid input,.sheet-item .field input,.sheet-item .field textarea{min-height:30px;padding:4px 6px;font-size:13px;border-radius:0}
.sheet-item .sheet-foot{padding:7px 10px calc(7px + env(safe-area-inset-bottom));gap:6px}
.sheet-item .sheet-foot .btn{min-height:34px;padding:5px 8px;font-size:12px;border-radius:4px}
.dept-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.dept-picker .dept-option{min-height:35px;margin:0;padding:6px 10px;justify-content:center;border:1px solid var(--line);border-radius:4px;font-size:13px}
.dept-sub-overlay{position:fixed;inset:0;z-index:110;display:grid;place-items:center;background:#0d261f66;padding:24px}
.dept-sub-dialog{width:min(100%,330px);padding:12px;background:#fff;border:1px solid var(--line);border-radius:6px}
.dept-sub-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px}
.dept-sub-head .icon-btn{width:28px;height:28px}

/* v68: 弹窗使用手机预览本身的边界，输入格和底部操作齐边。 */
#modal-root .sheet{max-height:calc(var(--dialog-host-height,100dvh) * .92)}
.sheet-item .iadd{align-items:stretch}
.sheet-item .iadd .cell-name,.sheet-item .iadd .cell-unit{display:flex;align-items:stretch}
.sheet-item .iadd input,.sheet-item .iadd select{display:block;height:32px;line-height:22px;padding:4px 5px}
.sheet-item .sheet-foot{align-items:stretch}
.sheet-item .sheet-foot .btn{height:34px;line-height:20px}

/* v70: 候选随弹窗内容展开，手机六列对齐，不被固定底部截断。 */
.sheet-item .name-drop{position:static;inset:auto;z-index:auto;width:100%;flex-shrink:0}
.sheet-item .name-drop .name-drop-panel{max-height:220px;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;overflow-y:auto}
.sheet-item .name-candidate-head,.sheet-item .name-drop button.name-candidate-row{display:grid;grid-template-columns:minmax(50px,1.1fr) minmax(60px,1.35fr) 28px 52px minmax(50px,1fr) 60px;gap:0;align-items:center}
.sheet-item .name-candidate-head{position:sticky;top:0;background:#eef3eb;color:#647864;font-size:10px;z-index:1}
.sheet-item .name-candidate-head>span,.sheet-item .name-drop button.name-candidate-row>*{padding:5px 3px;min-width:0;border-right:1px solid #edf0e8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet-item .name-drop button.name-candidate-row{min-height:32px;padding:0;text-align:left;font-size:11px;line-height:20px;border-bottom:1px solid var(--line)}
.sheet-item .name-drop button.name-candidate-row b{font-size:11px;font-weight:500}
.sheet-item .name-drop button.name-candidate-row>span:nth-child(4),.sheet-item .name-drop button.name-candidate-row>span:last-child{font-size:9px}
.sheet-item .name-drop button.name-candidate-new{min-height:30px;padding:4px 7px;font-size:11px}
.sheet-item .name-drop button.name-candidate-row.key-active{background:#e7f0e3;outline:1px solid var(--green);outline-offset:-1px}

/* v73: 单位为选中原料后的只读返回结果。 */
.sheet-item .iadd output{display:flex;align-items:center;width:100%;height:32px;min-width:0;padding:4px 5px;font-size:13px;line-height:22px;background:transparent;border:0}
.sheet-item .iadd output:empty::before{content:'—';color:var(--muted)}

/* v74: 主清单四列；双击详表，单位修正只级联采购默认值。 */
.inline-table{display:block;width:auto;table-layout:auto;margin:0 10px 8px}
.inline-th,.inline-row{display:grid;grid-template-columns:88px 42px 36px minmax(0,1fr);align-items:center;min-height:34px;border-bottom:1px solid #e8ece5}
.inline-th{min-height:28px;background:#f3f6ef}
.inline-table .inline-th>span,.inline-table .inline-row>span{display:block;width:auto!important;min-width:0;padding:6px 4px;border:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}
.inline-table .inline-th>span{padding:4px;font-size:11px;line-height:20px;background:transparent;letter-spacing:0}
.inline-table .inline-th>span:nth-child(2),.inline-table .inline-row>span:nth-child(2){text-align:right;font-variant-numeric:tabular-nums}
.inline-table .inline-th>span:nth-child(3),.inline-table .inline-row>span:nth-child(3){text-align:center}
.inline-table .inline-qty-cell b{min-width:0;text-align:right;font-weight:500}
.inline-table .inline-name b{font-weight:500}
.inline-table .inline-note{white-space:nowrap;overflow-wrap:normal;max-width:none}
.sheet-detail .sheet-body{max-height:calc(var(--dialog-host-height,100dvh) - 104px);overflow-y:auto}
.sheet-detail .item-dictionary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.sheet-detail .conversion-field{grid-column:1/-1}
.sheet-detail .item-dictionary{background:transparent;border:0;padding:0}
.sheet-detail .item-dictionary-head{margin:8px 0 4px}
.sheet-detail .item-dictionary-grid label{border:1px solid var(--line);padding:4px}
.sheet-detail .item-dictionary-grid input{min-height:30px;border:0;background:transparent}
.sheet-detail input[readonly],.sheet-detail textarea[readonly]{color:var(--ink);background:#f6f8f3;outline:none!important}
.sheet-detail .item-dictionary-facts{display:block;margin:6px 0 0}
.detail-facts{display:grid;grid-template-columns:94px minmax(0,1fr);margin:0;font-size:11px;line-height:1.5}
.detail-facts dt,.detail-facts dd{margin:0;padding:5px 4px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.detail-facts dt{color:var(--muted)}
.detail-unit-hint{margin:7px 0;font-size:10px;line-height:1.5;color:var(--muted)}
.sheet-detail .extra-field{margin:6px 0}
.sheet-detail .extra-field>span{font-size:11px}
.sheet-detail .item-images-block:not(:has(.item-image)){display:block;margin:6px 0;padding:6px 0;border-top:1px solid var(--line)}
.sheet-detail .sheet-foot{grid-template-columns:repeat(3,minmax(0,1fr))}
.remove-sub-overlay p{padding:10px 12px;font-size:12px;line-height:1.6}
.remove-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 12px 12px}
.remove-actions .btn{min-height:34px;font-size:12px}

/* v78: 材料本身与采购历史，默认不展示申请信息或库存换算。 */
.sheet-detail .dept-pill,.sheet-detail .itable,.sheet-detail .item-dictionary{display:none!important}
.sheet-detail .material-properties{display:grid;grid-template-columns:74px 44px minmax(0,1fr);border:1px solid var(--line);margin:0 0 8px}
.material-properties>label{display:block;min-width:0;border-right:1px solid var(--line);padding:4px}
.material-properties>label:last-child{border-right:0}
.material-properties>label>span{display:block;font-size:10px;line-height:16px;color:var(--muted)}
.sheet-detail .material-properties input{display:block;width:100%;min-width:0;min-height:28px;height:28px;padding:3px 0;border:0;border-radius:0;font-size:12px;line-height:22px;text-overflow:ellipsis;background:transparent}
.sheet-detail .material-properties input[readonly]{background:transparent}
.material-unit-guard{padding:6px 0;border-bottom:1px solid var(--line);margin-bottom:6px}
.material-unit-guard label{display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:center;font-size:11px}
.material-unit-guard input{min-height:30px;padding:4px;border:1px solid var(--line);border-radius:0;font-size:12px}
.material-unit-guard p{font-size:10px;line-height:16px;color:var(--muted);margin:4px 0 0}
.sheet-detail .iadd-error{font-size:11px;margin:4px 0}
.history-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0}
.history-title>b{font-size:12px;line-height:22px}
.history-title>small{font-size:10px;color:var(--muted)}
.history-unit-tabs{display:flex;align-items:center;gap:4px;min-height:26px;margin-bottom:4px;font-size:10px;color:var(--muted)}
.history-unit-tabs>small{margin-left:auto;font-size:10px}
.history-unit-tabs button,.history-chart-tools button{min-height:26px;padding:3px 6px;border:1px solid var(--line);border-radius:2px;font-size:10px;line-height:18px;background:white;color:var(--green)}
.history-unit-tabs button.active,.history-chart-tools button.active{background:var(--green);border-color:var(--green);color:white}
.history-prices{border-top:1px solid var(--line)}
.history-price-head,.history-price-row{display:grid;grid-template-columns:44px 68px minmax(0,1fr) 76px;align-items:center;border-bottom:1px solid var(--line);font-size:11px;line-height:18px;min-height:30px}
.history-price-head{background:#f3f6ef;color:var(--muted);font-size:10px;min-height:24px}
.history-price-head>*,.history-price-row>*{min-width:0;padding:4px 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-price-head>:nth-child(2),.history-price-row>strong{text-align:right;font-variant-numeric:tabular-nums}
.history-price-row>b,.history-price-row>strong{font-weight:500}
.history-price-row>time{font-size:10px}
.history-price-row.price-high>strong{color:#a64c35}
.history-price-row.price-low>strong{color:#145747}
.history-period-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);margin:6px 0 0}
.history-period-totals>span{padding:4px 6px;border-right:1px solid var(--line)}
.history-period-totals>span:last-child{border-right:0}
.history-period-totals i{font-size:10px;font-style:normal;color:var(--muted);display:block;line-height:16px}
.history-period-totals b{display:block;font-size:14px;font-weight:550;line-height:23px;font-variant-numeric:tabular-nums}
.history-period-totals small{font-size:10px;font-weight:400;margin-left:3px;color:var(--muted)}
.history-comparisons{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px 3px 0;font-size:11px}
.history-comparisons b{font-size:12px;font-weight:500;margin-left:3px}
.history-compare-note,.history-chart-note{font-size:9px;color:var(--muted);line-height:15px;margin:3px 0 7px}
.history-chart-tools{display:flex;justify-content:space-between;gap:4px;align-items:center;margin:6px 0 0}
.history-chart-tools>div{display:flex;gap:3px}
.material-chart{display:block;width:100%;height:auto;margin:2px 0 0;overflow:visible}
.material-chart>line{stroke:#e5eae2;stroke-width:1}
.material-chart text{font-size:9px;font-weight:400;fill:#788575;stroke:none;font-variant-numeric:tabular-nums}
.material-chart circle{stroke:none;fill:#145747}
.material-chart circle[data-do]{stroke:none;fill:transparent;cursor:pointer}
.history-chart-empty,.history-loading,.history-error{font-size:11px;line-height:20px;padding:12px 0;color:var(--muted)}
.history-chart-empty{min-height:110px;display:grid;place-items:center}
.history-selected-point{font-size:10px;line-height:18px;color:var(--green);font-variant-numeric:tabular-nums;min-height:18px;text-align:right}

/* v81: 材料信息用扁平表格，编辑显式开启，采购历史独立页签。 */
.sheet-detail [hidden]{display:none!important}
.material-page-tabs{display:flex;border-bottom:1px solid var(--line);margin:-2px 0 8px;gap:14px}
.material-page-tabs button{min-height:30px;padding:3px 0;font-size:12px;line-height:22px;color:var(--muted);border-bottom:2px solid transparent}
.material-page-tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}
.material-info-fields{border:1px solid var(--line);margin:0;min-width:0}
.material-info-fields>label{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:start;min-height:34px;border-bottom:1px solid var(--line);min-width:0}
.material-info-fields>label:last-child{border-bottom:0}
.material-info-fields>label>span{padding:8px 6px;font-size:11px;line-height:18px;color:var(--muted)}
.sheet-detail .material-info-fields input,.sheet-detail .material-info-fields textarea{display:block;width:100%;height:34px;min-height:34px;min-width:0;margin:0;padding:8px 6px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;font-size:12px;line-height:18px;box-shadow:none}
.sheet-detail .material-info-fields textarea{height:52px;min-height:52px;resize:vertical}
.sheet-detail .material-info-fields input[readonly],.sheet-detail .material-info-fields textarea[readonly]{background:transparent;resize:none}
.sheet-detail .material-info-fields input:not([readonly]):focus,.sheet-detail .material-info-fields textarea:not([readonly]):focus{outline:1px solid var(--green);outline-offset:-1px}
.material-info-fields a{padding:8px 6px;font-size:11px;line-height:18px;color:var(--green);text-decoration:none}
.material-draft-notice{font-size:10px;line-height:16px;color:#926520;margin:0 0 6px}
.sheet-detail .item-images-block{margin:8px 0 0;padding:6px 0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.sheet-detail .item-images-head{gap:6px;align-items:center}
.sheet-detail .item-images-head b{font-size:11px}
.sheet-detail .item-images-head small{font-size:9px}
.sheet-detail .item-images-head .btn{min-height:28px;padding:4px 7px;font-size:11px;border-radius:2px}
.sheet-detail .item-images-empty{margin:4px 0;font-size:10px;line-height:18px}
.sheet-detail .item-image{border-radius:0;padding:4px;min-width:0}
.sheet-detail .item-image b{font-size:11px}
.sheet-detail .item-image small{font-size:9px}

/* AI子窗体：说明与结果长输入区，明细扁平分列，不套卡片。 */
#modal-root .sheet-ai{height:calc(var(--dialog-host-height,100dvh) * .92);width:100%;display:flex;flex-direction:column;border-radius:12px 12px 0 0}
.sheet-ai .sheet-head{min-height:43px;padding:7px 10px;flex-shrink:0}
.sheet-ai .sheet-head h2{font-size:13px;line-height:28px}
.sheet-ai .sheet-body{flex:1;min-height:0;overflow:auto;padding:8px 10px}
.sheet-ai .sheet-foot{padding:7px 10px calc(7px + env(safe-area-inset-bottom));gap:6px;flex-shrink:0}
.sheet-ai .sheet-foot .btn{min-height:34px;font-size:12px;border-radius:3px}
.ai-guide-head{display:flex;gap:5px;align-items:center;margin-bottom:5px}
.ai-guide-head>span{flex:1;min-width:0;font-size:10px;color:var(--muted);line-height:16px}
.ai-guide-head .btn,.sheet-ai .parse-tools .btn{min-height:28px;padding:4px 6px;border-radius:2px;font-size:10px;white-space:nowrap}
.ai-guide{display:block;width:100%;height:138px;min-height:120px;border:1px solid var(--line);border-radius:0;padding:7px;color:#8a938b;background:#f7f9f5;font-size:11px;line-height:18px;resize:vertical}
.ai-guide:not([readonly]){color:var(--ink);outline:1px solid var(--green)}
.ai-result-label{display:block;margin:9px 0 5px;font-size:11px;color:var(--green)}
.sheet-ai .paste-area{height:180px;min-height:150px;width:100%;margin:0;border-radius:0;font-size:12px;line-height:20px;padding:7px;background:white;resize:vertical}
.sheet-ai .parse-tools{display:flex;gap:4px;align-items:center;justify-content:space-between;font-size:10px;margin:5px 0}
.sheet-ai .error,.sheet-ai .paste-status{font-size:10px;line-height:16px;margin:5px 0}
.sheet-ai .parsed-heading{font-size:11px;margin:8px 0 4px;font-weight:500}
.ai-table-head,.ai-table-fields{display:grid;grid-template-columns:85px 44px 34px minmax(0,1fr);min-width:0}
.ai-table-head{font-size:10px;color:var(--muted);background:#eef3eb;border:1px solid var(--line)}
.ai-table-head>span{padding:5px 4px;border-right:1px solid var(--line)}
.ai-entry-row{border:1px solid var(--line);border-top:0;padding:0;margin:0}
.ai-entry-row.issue{border-left:2px solid var(--red)}
.ai-entry-row input{display:block;width:100%;min-width:0;height:32px;padding:5px 4px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;font-size:11px;line-height:20px;background:white;box-shadow:none}
.ai-entry-row input:focus{outline:1px solid var(--green);outline-offset:-1px}
.ai-extra-fields{display:grid;grid-template-columns:70px 90px minmax(0,1fr);min-width:0}
.ai-extra-fields input{height:28px;font-size:10px;padding:4px}
.ai-new-fields{display:grid;grid-template-columns:130px minmax(0,1fr);font-size:10px;align-items:center;background:#faf6ea}
.ai-new-fields>span{padding:4px}
.ai-row-issue{font-size:10px;line-height:16px;margin:3px 4px;color:var(--red)}
.ai-row-issue:empty,.sheet-ai .error:empty{display:none}

/* 官方采购模板：同一份表体用于供应商预览与自购/外采总单打印。 */
.paper.official-paper{width:794px;min-height:1122px;padding:12mm 12mm 10mm;margin:0;background:#fff;color:#1a1a1a;box-shadow:none;font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB",SimSun,sans-serif;font-size:12px;line-height:1.5}
.official-head{text-align:center;border-bottom:2px solid #b8912f;padding-bottom:6px;margin-bottom:10px}
.official-logo{display:block;height:18mm;width:auto;max-width:100%;object-fit:contain;margin:0 auto 4px}
.official-company{font-size:15px;letter-spacing:4px;font-weight:400;color:#8a6d1f;line-height:24px}
.official-company-en{font-size:13px;letter-spacing:6px;font-weight:600;color:#8a6d1f;line-height:22px}
.paper.official-paper .official-head h1{margin:4px 0 2px;font-size:25px;letter-spacing:8px;font-weight:700;color:#b8912f;line-height:36px;text-align:center}
.official-subtitle{font-size:11px;letter-spacing:1px;color:#777;line-height:18px}
.official-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;margin:0 0 6px;font-size:12.5px}
.official-meta>div{display:flex;align-items:baseline;gap:4px;min-width:0;padding:3px 0;line-height:19px}
.official-meta b{font-weight:600;white-space:nowrap;color:#1a1a1a}
.official-meta .en2,.official-reason .en2{font-size:10px;font-weight:400;color:#8a6d1f;letter-spacing:.3px}
.official-value,.official-meta .ln{display:inline-block;min-width:90px;min-height:19px;border-bottom:1px solid #666;padding:0 4px;text-align:center;overflow-wrap:anywhere}
.official-reason{display:flex;align-items:baseline;gap:4px;min-height:27px;margin:0 0 6px;font-size:12.5px;line-height:20px}
.official-reason>b{flex-shrink:0;font-weight:600}
.official-reason>span:not(.en2){flex:1;min-width:0;border-bottom:1px solid #666;padding:0 4px;white-space:pre-wrap;overflow-wrap:anywhere}
.official-supplier-name{font-size:14px;line-height:23px;font-weight:600;margin:3px 0 7px;overflow-wrap:anywhere}
.paper.official-paper table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11.5px;line-height:1.35}
.paper.official-paper th,.paper.official-paper td{border:1px solid #444;padding:2px 3px;height:22px;vertical-align:middle;font-size:11.5px;line-height:1.35;text-align:center;word-break:normal;overflow-wrap:anywhere}
.paper.official-paper thead{display:table-header-group}
.paper.official-paper thead th{height:38px;background:#f3ecd8;font-weight:600;color:#1a1a1a}
.paper.official-paper thead .en,.paper.official-paper thead small{display:block;font-size:9px;font-weight:400;line-height:12px;color:#777;letter-spacing:.2px}
.paper.official-paper tbody td:nth-child(2),.paper.official-paper tbody td:nth-child(4),.paper.official-paper tbody td:nth-child(10){text-align:left}
.paper.official-paper tr{break-inside:avoid;page-break-inside:avoid}
.paper.official-paper .official-group td{height:26px;text-align:left;padding:3px 8px;font-weight:700;color:#6b5313;background:#faf6ea;letter-spacing:1px}
.official-group .gs,.official-group .supplier-name{float:right;font-size:11px;font-weight:400;color:#7a6a3a;letter-spacing:0;max-width:65%;overflow-wrap:anywhere}
.official-group .lnb{display:inline-block;width:110px;min-height:12px;border-bottom:1px solid #8a7a4a}
.paper.official-paper .official-subtotal td{height:23px;text-align:center;font-weight:600;background:#fcfaf4}
.official-money{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:8px 0 0;font-size:13px;line-height:22px;break-inside:avoid;page-break-inside:avoid}
.official-money>div,.official-money>span{display:flex;align-items:baseline;gap:4px;min-width:0}
.official-money b{flex-shrink:0;font-weight:600}
.official-money .ln,.official-money .official-value{flex:1;min-width:0;text-align:left;border-bottom:1px solid #666;min-height:20px;overflow-wrap:anywhere}
.official-signs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0 12px;min-height:90px;break-inside:avoid;page-break-inside:avoid}
.official-signs>div,.official-signs>span{display:flex;flex-direction:column;min-width:0;min-height:90px;font-size:11.5px;line-height:18px}
.official-signs .en2,.official-signs small{display:block;font-size:10px;color:#8a6d1f;font-weight:400;line-height:15px}
.official-signs .ul,.official-signs i{display:block;flex:1;min-height:54px;border-bottom:1px solid #666;font-style:normal}
.official-notes{margin:0;padding:6px 0 0;border-top:1px dashed #bbb;font-size:10px;color:#666;line-height:17px;overflow-wrap:anywhere;break-inside:avoid;page-break-inside:avoid}
.official-notes p{font-size:10px;line-height:17px;margin:0}
.official-notes ol{margin:0;padding-left:16px}
.official-preview{padding:8px 10px 12px;min-width:0}
.official-preview-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 7px;min-width:0;font-size:11px;line-height:18px}
.official-preview-tools .btn{min-height:30px;padding:4px 7px;font-size:11px;border-radius:2px;white-space:nowrap}
.preview-note{font-size:10px;line-height:16px;color:var(--muted);margin:4px 0 8px;overflow-wrap:anywhere}
.preview-sheet-label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:10px 0 5px;font-size:11px;line-height:19px;color:var(--green);min-width:0}
.preview-sheet-label b{font-weight:600;overflow-wrap:anywhere}
.preview-sheet-label .btn{flex-shrink:0;min-height:26px;padding:3px 6px;font-size:10px;border-radius:2px}
.official-preview .paper-stage{padding:4px;border:1px solid #e0e6d9;border-radius:0;background:#e8e8ec;overflow:hidden}
.official-preview .paper-frame{position:relative;margin:0 auto;min-width:0}
.official-preview .paper-scale{width:794px;transform-origin:top left}
.screen-footer.preview-actions{padding:7px 10px calc(7px + env(safe-area-inset-bottom));gap:6px}
.screen-footer.preview-actions .btn{flex:1;min-width:0;min-height:36px;padding:5px 4px;font-size:11px;line-height:20px;border-radius:3px;white-space:nowrap}
.screen-footer.preview-actions .btn svg{width:14px;height:14px;flex-shrink:0}
.official-zoom{overflow:auto;max-width:100%;min-width:0;background:#e8e8ec;padding:4px}
.official-zoom .official-paper{transform:none;flex-shrink:0}
.request-reason-row{display:grid;grid-template-columns:68px minmax(0,1fr);gap:0;align-items:start;min-height:40px;margin:7px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.request-reason-row>label,.request-reason-row>span{font-size:11px;line-height:18px;padding:10px 4px;color:var(--muted)}
.request-reason-row textarea{display:block;width:100%;min-width:0;height:40px;min-height:40px;margin:0;padding:9px 5px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;font-size:12px;line-height:20px;resize:vertical;box-shadow:none}
.request-reason-row textarea:focus{outline:1px solid var(--green);outline-offset:-1px}
.request-reason-row textarea::placeholder{font-size:11px;color:var(--muted)}
.official-meta .official-line{display:inline-block;min-width:0;flex:1;min-height:19px;border-bottom:1px solid #666;padding:0 4px;text-align:center;overflow-wrap:anywhere}
.official-meta small,.official-reason small,.official-money small{font-size:9px;font-weight:400;color:#8a7a4a;letter-spacing:.3px}
.official-group td>span{float:right;font-size:11px;font-weight:400;color:#7a6a3a;letter-spacing:0;max-width:65%;overflow-wrap:anywhere}
.official-money i{flex:1;min-width:0;min-height:20px;font-style:normal;border-bottom:1px solid #666;overflow-wrap:anywhere}
.screen-footer.preview-actions .btn:first-child{flex:.6}
.screen-footer.preview-actions .btn:nth-child(2){flex:1.6;font-size:10px}
@media print{
  @page{size:A4 portrait;margin:0}
  #print-root .paper.official-paper{width:210mm;min-height:297mm;margin:0;padding:12mm 12mm 10mm;box-shadow:none;font-size:12px;break-after:page;page-break-after:always}
  #print-root .paper.official-paper:last-child{break-after:auto;page-break-after:auto}
  #print-root .paper.official-paper .official-head h1{margin:4px 0 2px;font-size:25px;line-height:36px}
  #print-root .paper.official-paper table{font-size:11.5px;table-layout:fixed}
  #print-root .paper.official-paper th,#print-root .paper.official-paper td{padding:2px 3px;height:22px;font-size:11.5px;line-height:1.35}
  #print-root .paper.official-paper thead{display:table-header-group}
  #print-root .paper.official-paper thead th{height:38px}
  #print-root .paper.official-paper .official-group td{height:26px;padding:3px 8px;text-align:left}
  #print-root .paper.official-paper .official-subtotal td{height:23px;text-align:center}
  #print-root .paper.official-paper tr{break-inside:avoid;page-break-inside:avoid}
  #print-root .official-preview-tools,#print-root .preview-sheet-label,#print-root .preview-note{display:none!important}
  #print-root .paper.official-paper *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* 身份工作台：手机两列扁平入口，权限与模块内容由服务端身份决定。 */
.portal-hero{min-width:0;background:var(--green);color:#fff;padding:16px 14px 14px}
.portal-brand{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;color:var(--gold-light);font-size:13px;font-weight:500;line-height:20px;letter-spacing:.5px;overflow-wrap:anywhere}
.portal-brand img{display:block;width:24px;height:24px;object-fit:contain;flex-shrink:0}
.portal-welcome{margin:9px 0 6px;font-size:18px;font-weight:600;line-height:26px;overflow-wrap:anywhere}
.portal-welcome h1,.portal-welcome h2{font-size:inherit;font-weight:inherit;line-height:inherit}
.portal-identity{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;min-width:0;color:#d1e0d7;font-size:13px;line-height:20px;overflow-wrap:anywhere}
.portal-chip{display:inline-flex;align-items:center;min-height:24px;max-width:100%;padding:1px 6px;border:1px solid #d6e2d9;border-radius:2px;background:var(--green-soft);color:var(--green);font-size:13px;font-weight:400;line-height:20px;overflow-wrap:anywhere}
.portal-hero .portal-chip{background:#ffffff0a;border-color:#ffffff38;color:#e2ebe5}
.portal-area{min-width:0;max-width:100%;padding:13px 14px calc(16px + env(safe-area-inset-bottom));background:#f7f8f4}
.portal-section-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin:0 0 8px;font-size:14px;font-weight:600;line-height:22px;color:var(--green)}
.portal-section-title small{font-size:13px;font-weight:400;line-height:20px;color:#6e7c70}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;margin:0 0 16px}
.portal-tile{display:grid;grid-template-columns:20px minmax(0,1fr) 14px;grid-template-rows:auto auto;align-content:center;align-items:center;gap:5px 6px;width:100%;min-width:0;min-height:76px;padding:10px;border:1px solid var(--line);border-radius:2px;background:#fff;color:var(--ink);box-shadow:none;text-align:left;text-decoration:none;overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent}
.portal-tile svg{width:18px;height:18px;color:var(--green)}
.portal-tile>svg:first-child{grid-column:1;grid-row:1}
.portal-tile>svg:last-child{grid-column:3;grid-row:1;width:14px;height:14px}
.portal-tile>.portal-tile-title{grid-column:2;grid-row:1}
.portal-tile>.portal-tile-desc{grid-column:1/-1;grid-row:2}
.portal-tile:active{background:var(--green-soft);border-color:#b8cdbc}
.portal-tile:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.portal-tile-title{display:flex;align-items:center;gap:6px;max-width:100%;font-size:15px;font-weight:600;line-height:22px;color:var(--green);overflow-wrap:anywhere}
.portal-tile-desc{display:block;max-width:100%;font-size:13px;font-weight:400;line-height:19px;color:#69766d;overflow-wrap:anywhere}
.ptt-tile{display:grid;grid-template-columns:22px minmax(0,1fr) 14px;grid-template-rows:auto auto;align-items:center;gap:4px 8px;width:100%;min-height:68px;margin:0 0 12px;padding:12px 14px;border:1px solid #2f5746;border-radius:2px;background:linear-gradient(120deg,#1f3a2e,#2f5746);color:#fff;text-align:left;box-shadow:none;overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent}
.ptt-tile>svg:first-child{grid-column:1;grid-row:1;width:22px;height:22px;color:#e7d4ac}
.ptt-tile>svg:last-child{grid-column:3;grid-row:1;width:14px;height:14px;color:#b8cec1}
.ptt-tile .portal-tile-title{grid-column:2;grid-row:1;color:#fff}
.ptt-tile .portal-tile-desc{grid-column:1/-1;grid-row:2;color:#c8d8cd}
.ptt-tile:active{background:linear-gradient(120deg,#16352b,#274a3b)}
.portal-empty{padding:14px 10px;border:1px solid var(--line);background:#fff;font-size:13px;line-height:21px;color:#69766d;overflow-wrap:anywhere}
.portal-module-heading{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff;font-size:13px;line-height:21px;overflow-wrap:anywhere}
.portal-module-heading>svg{width:22px;height:22px;flex-shrink:0;color:var(--green)}
.portal-module-heading p{margin:0}
.portal-module-heading h1,.portal-module-heading h2{margin:0 0 4px;font-size:16px;font-weight:600;line-height:24px;color:var(--green)}
.portal-module-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;padding:10px 14px}
.portal-module-actions .portal-tile{display:flex;flex-direction:row;justify-content:space-between;min-height:44px}
.portal-module-actions .btn{min-width:0;min-height:38px;padding:7px 10px;border-radius:2px;font-size:13px;line-height:22px;white-space:normal}
.portal-footer-note{margin:12px 0 0;padding:9px 0 0;border-top:1px solid var(--line);font-size:13px;line-height:20px;color:#69766d;overflow-wrap:anywhere}
.portal-error{margin:10px 0;padding:10px;border:1px solid #dfc5bd;background:var(--red-soft);color:#934b3a;font-size:13px;line-height:21px;overflow-wrap:anywhere}
@media(max-width:360px){.portal-hero{padding-left:12px;padding-right:12px}.portal-area{padding-left:12px;padding-right:12px}.portal-grid{gap:6px}.portal-tile{padding:9px 8px}.portal-tile-title{font-size:14px}}
