:root{--ink:#18221e;--muted:#67736e;--line:#dce4e0;--paper:#f4f7f5;--green:#174c3c;--green2:#123d31;--mint:#dfede7;--amber:#a7661f;--red:#a33b3b;--radius:14px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:linear-gradient(115deg,#123d31 0 42%,#eef3f0 42%)}.login-card{width:min(430px,100%);background:white;padding:38px;border-radius:18px;box-shadow:0 24px 70px rgba(15,49,39,.18);display:grid;gap:15px}.login-logo{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:var(--green);color:white;font-size:22px;font-weight:800}.login-card h1{font-size:32px;margin:0;letter-spacing:-.04em}.login-card>p:not(.kicker):not(.form-error){margin:-8px 0 10px;color:var(--muted)}.demo-accounts{border-top:1px solid var(--line);padding-top:13px;display:grid;gap:3px;color:var(--muted);font-size:11px}.app-shell{min-height:100dvh;display:grid;grid-template-columns:235px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100dvh;padding:26px 17px;display:flex;flex-direction:column;background:var(--green2);color:white}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 28px;font-size:21px}.brand span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #6b9083;border-radius:9px}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#b8ccc4;text-align:left;padding:13px 14px;border-radius:9px;cursor:pointer}.nav-item:hover,.nav-item.active{background:#ffffff16;color:white}.user-block{margin-top:auto;padding:17px 5px 0;border-top:1px solid #ffffff20;display:grid;grid-template-columns:8px 1fr auto;gap:9px;align-items:center}.user-block i{width:8px;height:8px;border-radius:50%;background:#68d49b}.user-block b,.user-block small{display:block}.user-block b{font-size:12px}.user-block small{font-size:10px;color:#9fb8af}.user-block button{border:0;background:none;color:#a9c0b7;font-size:11px;cursor:pointer}main{padding:38px 4vw 65px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.kicker,.step-label{margin:0 0 6px;color:var(--green);font-size:10px;font-weight:800;letter-spacing:.17em}.topbar h1{margin:0;font-size:29px;letter-spacing:-.04em}.primary,.secondary{border:0;border-radius:9px;padding:12px 17px;font-weight:750;cursor:pointer}.primary{background:var(--green);color:white;box-shadow:0 7px 18px #174c3c20}.secondary{background:white;border:1px solid #bfcfc8;color:var(--green)}.primary:active,.secondary:active,.text-button:active,.dropzone:active{transform:translateY(1px)}.compact{padding:10px 15px}.full{width:100%}.view{display:none}.view.active{display:block}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:39px}.metrics article,.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:19px}.metrics span,.metrics small{display:block;color:var(--muted);font-size:11px}.metrics strong{display:block;margin:13px 0 6px;font-size:30px;letter-spacing:-.04em}.metrics em{font-size:13px;font-style:normal}.metrics .danger-card{background:#6e3030;border-color:#6e3030;color:white}.danger-card span,.danger-card small{color:#e9caca}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:16px}.section-head h2,.panel h2{margin:0 0 5px;font-size:19px}.section-head p,.panel-head p{margin:0;color:var(--muted);font-size:12px}.search{width:270px}.field label,.search span,legend{display:block;margin-bottom:6px;color:#4f5d57;font-size:11px;font-weight:700}input,select{width:100%;border:1px solid #c7d3ce;border-radius:8px;background:white;padding:10px 11px;color:var(--ink);outline:none}input:focus,select:focus,button:focus-visible{outline:3px solid #2c826245;outline-offset:2px}input:disabled{background:#eff2f0;color:#6c7772}.table-wrap{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;padding:12px 16px;background:#fafbfa;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line)}td{padding:15px 16px;border-bottom:1px solid #ebefed}tr:last-child td{border-bottom:0}.fabric-cell{display:flex;gap:10px;align-items:center}.swatch{width:30px;height:30px;border-radius:7px;border:1px solid #00000016}.stock{font-weight:800;font-size:14px}.badge{display:inline-flex;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:750}.badge.ok{background:#e3f0ea;color:var(--green)}.badge.low{background:#f7ead7;color:#875317}.badge.negative{background:#f3dcdc;color:#913535}.negative-text{color:var(--red)!important}.empty{padding:48px 20px;text-align:center}.empty b,.empty span{display:block}.empty span{margin-top:6px;color:var(--muted);font-size:12px}.scan-layout{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(440px,1.2fr);gap:6vw;max-width:1120px}.scan-intro{padding-top:20px}.scan-intro h2{font-size:42px;line-height:1.1;letter-spacing:-.045em;margin:13px 0 19px}.scan-intro>p{color:var(--muted);line-height:1.7;max-width:42ch}.requirements{display:flex;flex-wrap:wrap;gap:7px;margin-top:25px}.requirements span{width:100%;font-size:10px;color:var(--muted)}.requirements b{padding:5px 8px;border:1px solid #c8d5cf;border-radius:99px;font-size:10px}.upload-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:14px}.dropzone{width:100%;min-height:390px;display:grid;place-content:center;justify-items:center;gap:8px;border:1.5px dashed #a7bbb2;border-radius:10px;background:#f8faf9;color:var(--ink);cursor:pointer}.dropzone small{color:var(--muted)}.camera-icon{width:50px;height:50px;display:grid;place-items:center;background:var(--mint);color:var(--green);border-radius:50%;font-size:25px}.preview-wrap{height:210px;border-radius:9px;overflow:hidden;position:relative;background:#e8edeb}.preview-wrap img{width:100%;height:100%;object-fit:cover}.preview-wrap span{position:absolute;right:10px;top:10px;background:#fffffff0;padding:5px 8px;border-radius:99px;font-size:10px;font-weight:750}.form-head{display:flex;justify-content:space-between;align-items:center;margin:17px 2px 13px}.form-head b,.form-head small{display:block}.form-head small{color:var(--muted);font-size:10px;margin-top:3px}.text-button{border:0;background:none;color:var(--green);font-weight:700;cursor:pointer}form{display:grid;gap:12px}fieldset{border:0;padding:0;margin:0}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#edf1ef;padding:3px;border-radius:8px}.segmented input{position:absolute;opacity:0}.segmented span{display:block;padding:9px;text-align:center;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer}.segmented input:checked+span{background:white;color:var(--green);box-shadow:0 2px 5px #173f3115}.two-fields,.three-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.three-fields{grid-template-columns:repeat(3,1fr)}.form-error{margin:0;color:var(--red);font-size:11px}.duplicate-warning{display:grid;gap:4px;padding:11px;background:#fff2dd;border:1px solid #e8c99e;border-radius:8px;color:#754514;font-size:11px}.filters{display:flex;gap:8px}.filters input{width:230px}.record-list{display:grid;gap:8px}.record{display:grid;grid-template-columns:45px 1.15fr .8fr 1.1fr auto;gap:13px;align-items:center;background:white;border:1px solid var(--line);border-radius:11px;padding:13px 15px}.record-visual{width:39px;height:39px}.record-type{width:39px;height:39px;display:grid;place-items:center;border-radius:9px;background:#e1eee8;color:var(--green);font-weight:850}.record-type.out{background:#f5e5d8;color:#96551b}.record-type.adjust{background:#e4e6ee;color:#464e71}.record-image{width:39px;height:39px;border-radius:9px;object-fit:cover;cursor:zoom-in}.record b,.record small{display:block}.record small{color:var(--muted);font-size:10px;margin-top:3px}.record .qty{font-size:14px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel.wide{grid-column:1/-1}.panel-head{margin-bottom:15px}.account-list{display:grid}.account-list>div{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.account-list b,.account-list small{display:block}.account-list small{color:var(--muted);font-size:10px;margin-top:3px}.status-button{border:1px solid #c7d3ce;background:white;color:var(--green);border-radius:7px;padding:6px 10px;cursor:pointer}.status-button:disabled{opacity:.35}.inline-form{grid-template-columns:1fr 1fr 150px auto;margin-top:15px}.toast{position:fixed;z-index:20;left:50%;bottom:25px;transform:translate(-50%,15px);opacity:0;background:#17231f;color:white;padding:11px 16px;border-radius:9px;font-size:12px;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:950px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:10;left:0;right:0;bottom:0;top:auto;height:67px;padding:8px;display:block}.brand,.user-block{display:none}.sidebar nav{grid-template-columns:repeat(4,1fr)}.nav-item{text-align:center;padding:10px 3px;font-size:11px}main{padding:24px 18px 90px}.metrics{grid-template-columns:1fr 1fr}.scan-layout{grid-template-columns:1fr;gap:18px}.scan-intro{padding-top:0}.scan-intro h2{font-size:32px}.scan-intro>p,.requirements{display:none}.record{grid-template-columns:40px 1fr auto}.record>div:nth-child(3),.record>div:nth-child(4){display:none}.admin-grid{grid-template-columns:1fr}.panel.wide{grid-column:auto}}
@media(max-width:650px){.login-screen{background:var(--paper)}.login-card{padding:26px}.topbar{margin-bottom:23px}.topbar h1{font-size:24px}.metrics{gap:8px;margin-bottom:28px}.metrics article{padding:14px}.metrics strong{font-size:25px}.section-head{align-items:stretch;flex-direction:column}.search,.filters,.filters input{width:100%}.filters{display:grid;grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}.table-wrap{overflow-x:auto}table{min-width:700px}.upload-panel{padding:9px}.dropzone{min-height:330px}.two-fields,.three-fields{grid-template-columns:1fr}.inline-form{grid-template-columns:1fr}.scan-intro h2{font-size:29px}}
.no-stock-notice{padding:13px;background:#eef2f0;border:1px solid #ccd7d2;border-radius:8px;color:#4f5d57;font-size:12px}.primary:disabled{cursor:not-allowed;opacity:.45;box-shadow:none}
.audit-list{display:grid}.audit-list>div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid var(--line)}.audit-list b,.audit-list small{display:block}.audit-list small,.audit-list time,.muted{color:var(--muted);font-size:10px}.audit-list time{white-space:nowrap}
.password-dialog{width:min(430px,calc(100% - 32px));border:0;border-radius:16px;padding:0;box-shadow:0 25px 80px #10251d55}.password-dialog::backdrop{background:#10251da8}.password-dialog form{padding:28px}.password-dialog h2{margin:0}.password-dialog form>p:not(.kicker):not(.form-error){margin:0;color:var(--muted);font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px}
.item-details{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#f8faf9}.item-details-head{display:flex;justify-content:space-between;gap:12px}.item-details-head small{color:var(--muted)}.item-row{display:grid;grid-template-columns:2fr 1fr;gap:10px;padding-top:9px;border-top:1px solid var(--line)}@media(max-width:650px){.item-row{grid-template-columns:1fr}}
.backup-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.backup-head .secondary{white-space:nowrap}@media(max-width:650px){.backup-head{align-items:stretch;flex-direction:column}}
.import-layout{display:grid;gap:14px}.import-dropzone{min-height:180px}.import-table small{display:block;color:var(--muted);margin-top:3px}.import-warning{background:#fff6e9}.import-warning td:last-child{color:var(--amber);font-weight:700}.import-table{min-width:850px}
@media(max-width:950px){.sidebar nav{grid-template-columns:repeat(5,1fr)}}
.account-actions{display:flex;gap:8px;align-items:center}
.site-filing{margin-top:24px;text-align:center;font-size:11px;color:var(--muted)}.site-filing a{color:inherit;text-decoration:none}.site-filing a:hover{text-decoration:underline}
.stats-filters{grid-template-columns:2fr 1fr 1fr auto;align-items:end;margin-bottom:15px}.stats-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:15px}.stats-summary article{padding:13px;border:1px solid var(--line);border-radius:10px;background:#f8faf9}.stats-summary span,.stats-summary small{display:block;color:var(--muted);font-size:10px}.stats-summary strong{display:block;margin-top:6px;font-size:19px}.barcode-panel{margin-bottom:18px}.barcode-grid{display:grid;grid-template-columns:2fr auto 1fr 1fr;gap:10px;align-items:end}.barcode-grid>button{margin-bottom:1px}.barcode-panel video{width:100%;max-height:320px;object-fit:cover;border-radius:10px;background:#111}.import-table .primary{white-space:nowrap;font-size:11px;padding:8px 10px}
.order-actions{display:flex;gap:7px;align-items:center}.order-actions button{white-space:nowrap;font-size:11px;padding:8px 10px}.order-detail-dialog{width:min(760px,calc(100% - 32px))}.order-detail-shell{padding:26px}.order-detail-shell h2{margin:0}.order-detail-grid{display:grid;grid-template-columns:145px 1fr;gap:0;margin:20px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.order-detail-grid span,.order-detail-grid b{padding:10px 12px;border-bottom:1px solid var(--line);font-size:12px}.order-detail-grid span{background:#f5f8f6;color:var(--muted)}.order-detail-image{min-height:150px;display:grid;place-items:center;background:#f5f7f6;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:12px;overflow:hidden}.order-detail-image img{display:block;max-width:100%;max-height:65vh;object-fit:contain}
@media(max-width:750px){.stats-filters,.barcode-grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.import-table .primary{white-space:normal}.barcode-grid>button{margin:0}}
.batch-image-panel{margin-bottom:18px}.batch-summary{padding:11px 13px;margin-bottom:10px;border-radius:9px;background:#eef4f1;color:var(--green);font-size:12px;font-weight:750}.batch-image-list{display:grid;gap:8px;margin-bottom:12px}.batch-image-row{display:grid;grid-template-columns:auto minmax(150px,1fr) minmax(210px,1.4fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px}.batch-image-row.blocked{background:#fffaf3}.batch-image-row input{width:18px;height:18px}.batch-image-row b,.batch-image-row small{display:block}.batch-image-row small{margin-top:3px;color:var(--muted);font-size:10px}@media(max-width:750px){.batch-image-row{grid-template-columns:auto 1fr}.batch-image-row>div:nth-child(3),.batch-image-row>.badge{grid-column:2}}
.danger-button{border:1px solid #d7aaaa;border-radius:9px;background:#fff4f4;color:var(--red);font-weight:750;cursor:pointer}
.stats-subhead{margin:20px 0 9px;font-size:13px}.purchase-table-wrap+.stats-subhead{margin-top:22px}.purchase-warning{background:#fff6e9!important;border-color:#e8c99e!important}.purchase-warning strong{color:var(--amber)}
.remember-login{display:flex;align-items:center;gap:8px;color:#4f5d57;font-size:12px;font-weight:700;cursor:pointer}.remember-login input{width:18px;height:18px;margin:0}.password-manager-tip{margin:0!important;text-align:center!important;color:var(--muted)!important;font-size:11px!important}
.inventory-cards{display:none}.inventory-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:15px}.inventory-card.low{border-color:#dfc18f}.inventory-card.negative{border-color:#d7aaaa;background:#fff8f8}.inventory-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.inventory-card-head b,.inventory-card-head small{display:block}.inventory-card-head b{font-size:16px}.inventory-card-head small{margin-top:3px;color:var(--muted);font-size:11px}.inventory-card-available{display:flex;align-items:end;justify-content:space-between;margin:18px 0 14px}.inventory-card-available span{color:var(--muted);font-size:11px}.inventory-card-available strong{font-size:28px;letter-spacing:-.04em}.inventory-card-available em{font-size:12px;font-style:normal}.inventory-card-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:12px;border-top:1px solid var(--line)}.inventory-card-breakdown span{color:var(--muted);font-size:10px}.inventory-card-breakdown b{display:block;margin-top:4px;color:var(--ink);font-size:12px}
.usage-stats-filters{grid-template-columns:1.5fr 1fr 1fr 1fr auto}.sales-item-row{grid-template-columns:1.5fr 1fr 1fr 1fr}
@media(max-width:650px){.inventory-cards{display:grid;gap:10px}.inventory-table{display:none}.metrics{margin-bottom:22px}.section-head{margin-bottom:12px}}
@media(max-width:750px){.usage-stats-filters,.sales-item-row{grid-template-columns:1fr}}
.retail-layout{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(520px,1.4fr);gap:14px}.retail-total{display:flex;justify-content:space-between;align-items:center;padding:15px;border-radius:10px;background:var(--mint);color:var(--green)}.retail-total strong{font-size:24px}.receipt-dialog{width:min(680px,calc(100% - 24px))}.receipt-shell{padding:30px;background:#fff}.receipt-brand{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:2px solid var(--green)}.receipt-brand>span{display:grid;place-items:center;width:45px;height:45px;border-radius:10px;background:var(--green);color:#fff;font-size:24px;font-weight:800}.receipt-brand h2{margin:0;font-size:24px}.receipt-brand small{color:var(--muted)}.receipt-meta{display:grid;grid-template-columns:90px 1fr;gap:9px;margin:20px 0;font-size:12px}.receipt-meta span{color:var(--muted)}.receipt-shell table{border:1px solid var(--line)}.receipt-grand{display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:20px 0}.receipt-grand strong{font-size:27px;color:var(--green)}.receipt-payment{display:flex;align-items:center;justify-content:center;gap:20px;padding:18px;border-radius:12px;background:#f7f1ed}.receipt-payment img{width:190px;height:210px;object-fit:cover;border:8px solid #fff}.receipt-payment b,.receipt-payment small{display:block}.receipt-payment small{max-width:190px;margin-top:6px;color:var(--muted);font-size:11px}.receipt-note{text-align:center;color:var(--muted);font-size:11px}.receipt-actions{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid var(--line)}.receipt-print-page{background:#fff}.receipt-print{max-width:680px;margin:auto;padding:0!important}@media(max-width:950px){.sidebar nav{grid-template-columns:repeat(6,1fr)}.retail-layout{grid-template-columns:1fr}}@media print{.receipt-actions{display:none}.receipt-shell{padding:0}.receipt-payment{break-inside:avoid}}
.retail-batch{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 12px;color:var(--muted);font-size:12px}.retail-batch button{white-space:nowrap}.retail-pay-status{display:block;margin-top:4px;color:#a35b42;font-size:11px;font-weight:600}.retail-pay-status.is-paid{color:var(--green)}#retailSelectPage,[data-retail-select]{width:18px;height:18px;min-height:18px;accent-color:var(--green);cursor:pointer}@media(max-width:720px){.retail-batch{align-items:stretch;flex-direction:column}.retail-batch button{width:100%;min-height:44px}}

.receipt-dialog{max-height:calc(100dvh - 24px);overflow:auto}
@media(max-width:650px){.receipt-shell{padding:18px}.receipt-brand h2{font-size:20px}.receipt-meta{grid-template-columns:72px 1fr;margin:15px 0}.receipt-shell table{min-width:0}.receipt-shell th,.receipt-shell td{padding:9px 6px}.receipt-payment{flex-direction:column;gap:10px;text-align:center}.receipt-payment img{display:block!important;width:160px!important;height:178px!important;max-width:160px!important;max-height:178px!important;object-fit:cover!important}.receipt-actions{position:sticky;bottom:0;background:#fff;padding:10px 14px}}

/* 正式零剪收据：屏幕与打印共用同一信息层级。 */
.receipt-dialog{width:min(720px,calc(100% - 24px));border-radius:12px}.receipt-shell{padding:34px 38px 26px;color:#17231f}.receipt-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:22px;border-bottom:2px solid var(--green)}.receipt-brand{padding:0;border:0;align-items:center}.receipt-brand>span{width:48px;height:48px;border-radius:8px;font-size:25px}.receipt-brand p{margin:0 0 3px;color:#62706a;font-size:11px;letter-spacing:.08em}.receipt-brand h2{font-size:25px;letter-spacing:.02em}.receipt-number{text-align:right}.receipt-number span,.receipt-number b{display:block}.receipt-number span{margin-bottom:7px;color:#75817c;font-size:10px}.receipt-number b{font-size:12px;letter-spacing:.04em;font-variant-numeric:tabular-nums}.receipt-meta{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:0;margin:22px 0;padding:15px 0;border-bottom:1px solid #d8e1dd}.receipt-meta>div{padding:0 16px;border-left:1px solid #d8e1dd}.receipt-meta>div:first-child{padding-left:0;border-left:0}.receipt-meta span,.receipt-meta b{display:block}.receipt-meta span{margin-bottom:6px;color:#75817c;font-size:10px}.receipt-meta b{font-size:13px}.receipt-items{border:1px solid #cdd9d4;border-radius:8px;overflow:hidden}.receipt-item-head,.receipt-item-row{display:grid;grid-template-columns:1.4fr 1fr .75fr .8fr;gap:12px;align-items:center}.receipt-item-head{padding:10px 14px;background:#edf4f1;color:#5f6d67;font-size:10px;font-weight:700}.receipt-item-row{padding:17px 14px;font-size:13px;font-variant-numeric:tabular-nums}.receipt-item-row strong{text-align:right}.receipt-settlement{display:flex;align-items:center;justify-content:flex-end;gap:25px;padding:24px 2px 22px}.receipt-settlement span,.receipt-settlement small{display:block;text-align:right}.receipt-settlement span{font-size:13px;font-weight:750}.receipt-settlement small{margin-top:3px;color:#7b8681;font-size:9px}.receipt-settlement>strong{min-width:155px;color:var(--green);font-size:30px;text-align:right;font-variant-numeric:tabular-nums}.receipt-payment{justify-content:flex-start;gap:24px;padding:17px 20px;background:#f1f5f3;border:1px solid #dce5e1;border-radius:8px}.receipt-payment img{width:142px;height:158px;border:6px solid #fff;border-radius:3px;object-fit:cover}.receipt-payment span{display:block;margin-bottom:5px;color:#75817c;font-size:10px}.receipt-payment b{font-size:18px}.receipt-payment p{margin:9px 0 0;color:#5d6964;font-size:11px;line-height:1.6}.receipt-foot{display:flex;justify-content:space-between;gap:18px;margin-top:22px;padding-top:14px;border-top:1px solid #d8e1dd;color:#7a8580;font-size:9px}.receipt-actions{background:#f8faf9}
@media(max-width:650px){.receipt-shell{padding:22px 18px}.receipt-head{display:block}.receipt-number{margin:16px 0 0;padding-top:12px;border-top:1px solid #d8e1dd;text-align:left}.receipt-meta{grid-template-columns:1fr 1fr}.receipt-meta>div{padding:0 10px}.receipt-meta>div:nth-child(3){display:none}.receipt-item-head,.receipt-item-row{grid-template-columns:1.25fr .9fr .65fr .8fr;gap:6px}.receipt-item-head,.receipt-item-row{padding-left:9px;padding-right:9px}.receipt-item-row{font-size:11px}.receipt-settlement{gap:12px}.receipt-settlement>strong{min-width:125px;font-size:25px}.receipt-payment{flex-direction:row;gap:15px;text-align:left}.receipt-payment img{width:118px!important;height:132px!important;max-width:118px!important;max-height:132px!important}.receipt-payment b{font-size:16px}.receipt-foot{display:block}.receipt-foot span{display:block;margin-top:4px}}
@media print{body.receipt-print-page{background:#fff}.receipt-print{max-width:720px}.receipt-shell{padding:20px}.receipt-actions{display:none}.receipt-payment{background:#f1f5f3!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media print{body.receipt-print-mode{background:#fff}body.receipt-print-mode>*{display:none!important}body.receipt-print-mode>.receipt-dialog{display:block!important;position:static!important;width:100%!important;max-width:720px!important;max-height:none!important;margin:0 auto!important;padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important}body.receipt-print-mode>.receipt-dialog::backdrop{display:none!important}body.receipt-print-mode .receipt-shell{display:block!important;padding:18px!important}body.receipt-print-mode .receipt-actions{display:none!important}}

/* 紧凑零剪收据：适合手机保存和直接转发。 */
.receipt-dialog{width:min(640px,calc(100% - 24px))}.receipt-shell{padding:26px 30px 20px}.receipt-head{padding-bottom:16px}.receipt-brand>span{width:44px;height:44px;font-size:23px}.receipt-brand h2{font-size:23px}.receipt-meta{grid-template-columns:1fr 1.2fr;margin:16px 0;padding:12px 0}.receipt-meta>div:nth-child(3){display:none}.receipt-item-row{padding-top:14px;padding-bottom:14px}.receipt-settlement{gap:18px;padding:17px 2px}.receipt-settlement>strong{font-size:27px}.receipt-payment{gap:18px;padding:14px 17px}.receipt-payment img{width:112px;height:126px;border-width:4px}.receipt-payment b{font-size:15px}.receipt-payment p{margin-top:5px}.receipt-foot{margin-top:16px;padding-top:11px}.receipt-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px}.receipt-actions button{white-space:nowrap}
@media(max-width:650px){.receipt-shell{padding:18px 15px}.receipt-head{display:flex}.receipt-number{margin:0;padding:0;border:0;text-align:right}.receipt-number b{font-size:10px}.receipt-meta{grid-template-columns:.8fr 1.2fr}.receipt-payment img{width:104px!important;height:116px!important;max-width:104px!important;max-height:116px!important}.receipt-actions{display:grid;grid-template-columns:repeat(2,1fr)}.receipt-actions button{padding-left:8px;padding-right:8px;font-size:12px}}

/* 2026-09 手机端统一优化：高密度业务界面优先可读、可点与可横向查看。 */
.receipt-qr-link{display:block;flex:0 0 auto;-webkit-touch-callout:default}
.receipt-qr-link img{display:block}
.receipt-qr-open{display:inline-block;margin-top:9px;color:var(--green);font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:3px;-webkit-touch-callout:default}

@media(max-width:950px){
  html{scroll-padding-bottom:92px}
  body{overflow-x:hidden}
  .app-shell{display:block;min-width:0}
  .sidebar{position:fixed;z-index:50;inset:auto 0 0;height:auto;min-height:68px;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(18,61,49,.98);box-shadow:0 -8px 30px rgba(18,61,49,.15)}
  .sidebar nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .sidebar nav::-webkit-scrollbar{display:none}
  .nav-item{flex:1 0 82px;min-height:48px;padding:7px 6px;border-radius:8px;text-align:center;font-size:12px;line-height:1.25;white-space:nowrap}
  main{width:100%;padding:22px clamp(12px,4vw,24px) calc(92px + env(safe-area-inset-bottom))}
  .topbar{gap:12px;margin-bottom:24px}
  .topbar>div{min-width:0}
  .topbar h1{font-size:26px}
  .topbar .primary{flex:0 0 auto;min-height:44px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:28px}
  .metrics article,.panel{padding:16px}
  .metrics strong{overflow-wrap:anywhere}
  .admin-grid,.retail-layout,.scan-layout{grid-template-columns:minmax(0,1fr)}
  .panel.wide{grid-column:auto}
  .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .table-wrap table:not(.receipt-shell table){min-width:760px}
  .import-table{min-width:900px!important}
  .stats-filters,.usage-stats-filters,.barcode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats-filters>button,.barcode-grid>button{min-height:44px;align-self:end}
  .network-list-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
  .network-list-controls>span:nth-child(2){display:none}
  .network-list-controls button{min-width:76px;min-height:42px;padding:9px 12px}
  .order-actions,.account-actions{flex-wrap:wrap}
  button,.nav-item,.status-button,.text-button{touch-action:manipulation}
  input,select{min-height:44px;font-size:16px}
  .primary,.secondary,.danger-button,.status-button{min-height:42px}
  dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);margin:auto}
  .password-dialog,.order-detail-dialog,.receipt-dialog{width:calc(100% - 20px)}
  .order-detail-shell{padding:20px}
  .dialog-actions{position:sticky;bottom:-1px;padding-top:10px;background:white}
  .toast{bottom:calc(82px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 28px);text-align:center}
}

/* 出入库流水图片识别记录编辑 */
.record{grid-template-columns:45px 1.15fr .8fr 1.1fr auto auto}
.record-actions{display:flex;justify-content:flex-end}
.record-edit-dialog{width:min(620px,calc(100vw - 28px))}
.record-edit-notice{margin:0;padding:10px 12px;border-radius:8px;background:#eef5f2;color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:640px){
  .record{grid-template-columns:40px minmax(0,1fr) auto}
  .record>.qty{grid-column:3;grid-row:1/3}
  .record>.record-actions{grid-column:3;grid-row:3;align-self:end}
  .record-edit-dialog .two-fields{grid-template-columns:1fr}
}

@media(max-width:650px){
  .login-screen{align-items:center;padding:14px;background:linear-gradient(180deg,#e8efeb,#f5f7f6)}
  .login-card{padding:26px 22px;border-radius:16px;box-shadow:0 18px 50px rgba(15,49,39,.12)}
  .login-card h1{font-size:28px}
  main{padding-top:16px}
  .topbar{align-items:center;margin-bottom:20px}
  .topbar .kicker{display:none}
  .topbar h1{font-size:23px}
  .topbar .primary{padding:10px 13px;font-size:13px}
  .metrics{gap:8px;margin-bottom:22px}
  .metrics article{min-height:118px;padding:13px}
  .metrics strong{margin:10px 0 5px;font-size:24px}
  .metrics span,.metrics small{line-height:1.35}
  .section-head{gap:12px}
  .section-head h2,.panel h2{font-size:18px}
  .panel{padding:14px;border-radius:12px}
  .stats-filters,.usage-stats-filters,.barcode-grid{grid-template-columns:1fr}
  .stats-filters>button,.barcode-grid>button{width:100%}
  .stats-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stats-summary article{min-width:0;padding:11px}
  .stats-summary strong{font-size:17px;overflow-wrap:anywhere}
  .network-list-controls{grid-template-columns:1fr 1fr}
  .network-list-controls>span:first-child{grid-column:1/-1;font-size:12px;line-height:1.5}
  .network-list-controls button{width:100%}
  .record{grid-template-columns:40px minmax(0,1fr) auto;gap:8px 10px;padding:12px}
  .record>div:nth-child(3),.record>div:nth-child(4){display:block;grid-column:2}
  .record>div:nth-child(3){grid-row:2}
  .record>div:nth-child(4){grid-row:3}
  .record>.qty{grid-column:3;grid-row:1/4;align-self:center;text-align:right}
  .record b{overflow-wrap:anywhere}
  .inventory-card{padding:14px}
  .inventory-card-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}
  .scan-intro{display:none}
  .dropzone{min-height:260px;padding:24px 14px}
  .preview-wrap{height:180px}
  .batch-image-row{grid-template-columns:auto minmax(0,1fr);padding:10px}
  .account-list>div,.backup-head{align-items:stretch;flex-direction:column}
  .account-actions button{flex:1}
  .inline-form{grid-template-columns:1fr}
  .order-detail-grid{grid-template-columns:105px minmax(0,1fr);margin:15px 0}
  .order-detail-grid span,.order-detail-grid b{padding:9px;font-size:11px;overflow-wrap:anywhere}
  .receipt-dialog{max-width:calc(100vw - 10px);max-height:calc(100dvh - 10px);width:calc(100% - 10px)}
  .receipt-head{gap:10px}
  .receipt-brand>span{width:40px;height:40px;font-size:21px}
  .receipt-brand h2{font-size:18px}
  .receipt-number{max-width:44%}
  .receipt-number b{overflow-wrap:anywhere}
  .receipt-item-head,.receipt-item-row{grid-template-columns:1.2fr .9fr .65fr .85fr;font-size:10px}
  .receipt-payment{align-items:center;padding:12px}
  .receipt-payment>div{min-width:0}
  .receipt-payment b{font-size:14px;overflow-wrap:anywhere}
  .receipt-payment p{font-size:10px}
  .receipt-actions{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .receipt-actions button{min-height:44px;white-space:normal}
}

@media(max-width:390px){
  .metrics article{min-height:112px}
  .metrics strong{font-size:22px}
  .stats-summary{grid-template-columns:1fr 1fr}
  .receipt-shell{padding:15px 11px}
  .receipt-payment img{width:92px!important;height:104px!important;max-width:92px!important;max-height:104px!important}
  .receipt-qr-open{font-size:11px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

@media(max-width:640px){
  .record>.qty{grid-column:3;grid-row:1/3}
  .record>.record-actions{grid-column:3;grid-row:3;align-self:end}
}

input[type="date"]{cursor:pointer;min-height:42px}
input[type="date"]::-webkit-calendar-picker-indicator{cursor:pointer;padding:8px}
.inventory-operation{grid-template-columns:repeat(3,1fr)}
.inventory-change-preview{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #cfe0d8;border-radius:9px;background:#eef5f2;color:var(--muted);font-size:12px}
.inventory-change-preview b,.inventory-change-preview strong{margin-left:5px;color:var(--ink);font-size:15px}
.processing-fee-missing-list{display:grid;gap:7px;margin-top:10px}
.processing-fee-missing-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:7px;border-top:1px solid rgba(134,76,25,.16)}
.processing-fee-missing-list span{overflow-wrap:anywhere}
.processing-fee-missing-list span strong,.processing-fee-missing-list span small{display:block}
.processing-fee-missing-list span small{margin-top:3px;color:var(--muted);line-height:1.55}
.processing-fee-bill-row td{vertical-align:middle}
.processing-fee-bill-row td:nth-child(5),.processing-fee-bill-row td:nth-child(6),.processing-fee-bill-row td:nth-child(7){font-variant-numeric:tabular-nums;white-space:nowrap}
.processing-fee-bill-row td:nth-child(7) b{font-size:16px}
.processing-fee-bill-row small,#processingFeeOrderBody small{display:block;margin-top:4px;color:var(--muted);line-height:1.35}
#processingFeeCustomerTable thead th,table:has(#processingFeeOrderBody) thead th{position:sticky;top:0;z-index:1;background:#f5f8f6}
#processingFeeCustomerTable .order-actions{flex-wrap:wrap;min-width:190px}
@media(max-width:720px){#processingFeeCustomerTable{min-width:1080px}#processingFeeCustomerTable .order-actions{min-width:170px}.processing-fee-bill-row td{padding-top:11px;padding-bottom:11px}}
@media(max-width:480px){.inventory-operation{grid-template-columns:1fr}.inventory-change-preview{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.processing-fee-missing-list>div{align-items:stretch;flex-direction:column}.processing-fee-missing-list button{width:100%}}
.processing-fee-ledger{margin:18px 0 34px;padding:22px;border:2px solid #b8d1c7;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(18,61,49,.08)}.processing-fee-ledger-title span{display:inline-block;margin-bottom:7px;color:var(--primary);font-size:12px;font-weight:800;letter-spacing:.12em}.processing-fee-ledger-title h2{margin:0;font-size:25px}.processing-fee-ledger-title p{margin:7px 0 18px;color:var(--muted)}.processing-fee-ledger-filter{grid-template-columns:repeat(3,minmax(150px,1fr)) auto}.processing-fee-ledger-table-wrap{margin-top:18px;border:1px solid #d7e3de;border-radius:12px}.processing-fee-ledger #processingFeeLedgerTable{min-width:1120px}.processing-fee-ledger #processingFeeLedgerTable thead th{position:sticky;top:0;z-index:1;background:#edf5f1;color:#36574d}.processing-fee-ledger td{vertical-align:middle}.processing-fee-ledger td:nth-child(3),.processing-fee-ledger td:nth-child(6),.processing-fee-ledger td:nth-child(7){font-variant-numeric:tabular-nums;white-space:nowrap}.processing-fee-ledger .ledger-customer b{font-size:16px}.processing-fee-ledger .ledger-fee b{color:var(--primary);font-size:17px}.processing-fee-ledger small{display:block;margin-top:4px;color:var(--muted)}.processing-fee-ledger-summary{margin-top:16px}.processing-fee-detail-title{margin-top:34px;padding-top:26px;border-top:1px solid #d7e3de}.processing-fee-detail-title small{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:400}
@media(max-width:720px){.processing-fee-ledger{margin:10px -4px 28px;padding:14px 10px;border-radius:13px}.processing-fee-ledger-title h2{font-size:21px}.processing-fee-ledger-filter{grid-template-columns:1fr}.processing-fee-ledger-filter button{width:100%}.processing-fee-ledger-table-wrap{margin-left:-2px;margin-right:-2px}.processing-fee-ledger #processingFeeLedgerTable{min-width:1040px}}
.processing-fee-matrix{margin-top:22px}.processing-fee-matrix-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:10px}.processing-fee-matrix-head h3{margin:0 0 4px;font-size:18px}.processing-fee-matrix-head p,.processing-fee-matrix-status{margin:0;color:var(--muted);font-size:12px}.processing-fee-matrix-status{margin:0 0 10px}.processing-fee-matrix-scroll{max-height:68vh;overflow:auto;border-radius:12px;overscroll-behavior:contain}.processing-fee-matrix-table{width:max-content;min-width:100%;font-size:13px;font-variant-numeric:tabular-nums}.processing-fee-matrix-table th,.processing-fee-matrix-table td{min-width:138px;padding:12px 14px;white-space:nowrap;border-right:1px solid #e5eeea}.processing-fee-matrix-table thead th{position:sticky;top:0;z-index:2;background:#eaf3ef;color:#30594b;font-size:12px}.processing-fee-matrix-table th:first-child{position:sticky;left:0;z-index:3;min-width:160px;max-width:220px;white-space:normal;background:#f5faf7;color:var(--ink);box-shadow:2px 0 5px #123d3112}.processing-fee-matrix-table thead th:first-child{z-index:4;background:#e2f0e9}.processing-fee-matrix-table tbody tr:nth-child(even){background:#f9fbfa}.processing-fee-matrix-table tbody tr:hover{background:#eff6f2}.processing-fee-matrix-table tfoot th,.processing-fee-matrix-table tfoot td{position:sticky;bottom:0;z-index:2;background:#e5f1eb;border-top:2px solid #b8d1c7;font-weight:800}.processing-fee-matrix-table tfoot th:first-child{z-index:4;background:#deede5}.processing-fee-matrix-table .processing-fee-matrix-total{background:#f1f7f3;color:var(--green)}.processing-fee-month-link{display:grid;gap:3px;width:100%;padding:4px 2px;text-align:left;background:none;border:0;color:var(--green);cursor:pointer}.processing-fee-month-link:hover strong{text-decoration:underline}.processing-fee-month-link strong{font-size:14px}.processing-fee-month-link small{color:var(--muted);font-size:10px}.processing-fee-no-bill{color:#9aa8a1}.processing-fee-ledger-list{margin-top:18px;border-top:1px solid var(--line)}.processing-fee-ledger-list summary{padding:15px 0;color:var(--green);font-weight:750;cursor:pointer}.processing-fee-ledger-list summary small{display:inline;margin-left:6px;font-weight:400}.processing-fee-ledger-list[open] summary{border-bottom:1px solid var(--line)}.processing-fee-ledger-list .processing-fee-ledger-table-wrap{margin-top:12px}
@media(max-width:720px){.processing-fee-matrix-head{align-items:stretch;flex-direction:column}.processing-fee-matrix-head button{align-self:flex-start}.processing-fee-matrix-scroll{max-height:60vh}.processing-fee-matrix-table{min-width:max-content!important}.processing-fee-matrix-table th,.processing-fee-matrix-table td{min-width:132px;padding:10px 11px}.processing-fee-matrix-table th:first-child{min-width:120px;max-width:150px}.processing-fee-ledger-list summary small{display:block;margin-left:0}}
.processing-fee-payment-scope{margin:3px 0 14px;padding:11px 12px;border-radius:9px;background:#eef6f1;color:#245140;font-size:12px;line-height:1.5}.processing-fee-matrix-paid{display:block;margin:5px 0;color:#b42332;font-size:10px;font-weight:700}.processing-fee-cumulative{display:block;margin:5px 0;color:#8a3a2f;font-size:10px}.processing-fee-matrix-payment,.processing-fee-opening-edit,.processing-fee-balance-edit{display:block;margin-top:7px;padding:5px 9px;font-size:10px;white-space:nowrap}.processing-fee-opening-cell{background:#fff9ed}.processing-fee-opening-cell strong{display:block}.processing-fee-matrix-grand{background:#e8f3ed;color:var(--green);font-weight:800}
.processing-fee-paid-text{color:#b42332;font-weight:700}
.processing-fee-ledger .processing-fee-matrix-paid,.processing-fee-ledger .processing-fee-paid-text{color:#b42332;font-weight:700}.processing-fee-ledger .processing-fee-cumulative{color:#8a3a2f}
.processing-fee-ledger .processing-fee-reviewed,.processing-fee-ledger .processing-fee-reviewed b,.processing-fee-ledger .processing-fee-reviewed strong{color:#d71920;font-weight:850}
.processing-fee-date-parts{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px}
.processing-fee-date-parts select{min-width:0;width:100%;min-height:44px}
.field-label{display:block;margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:700}
.processing-fee-payment-warning:not(:empty){margin:0 0 12px;color:#a64236;font-size:12px;line-height:1.5}
.processing-fee-share-range{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:8px;margin:12px 0}.processing-fee-share-range .field{min-width:0}.processing-fee-share-range button{min-height:42px}@media(max-width:600px){.processing-fee-share-range{grid-template-columns:1fr 1fr}.processing-fee-share-range button{grid-column:1/-1}}
.processing-fee-matrix-table tr[hidden],.processing-fee-mobile-card[hidden]{display:none!important}.processing-fee-show-hidden{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-size:12px;color:var(--muted)}.processing-fee-show-hidden input[type="checkbox"]{width:16px;height:16px;min-height:0;margin:0;padding:0;flex:none;accent-color:var(--green)}.processing-fee-hide{display:block;margin-top:7px;padding:5px 9px;font-size:10px;white-space:nowrap}@media(max-width:720px){.processing-fee-mobile-top{flex-wrap:wrap}.processing-fee-mobile-top .processing-fee-hide{margin:0 0 0 auto}}
.processing-fee-share{display:block;margin-top:8px;padding:6px 9px;font-size:11px;white-space:nowrap}.processing-fee-share-dialog{width:min(620px,calc(100% - 24px))}.processing-fee-share-dialog label{font-size:12px;font-weight:700;color:var(--ink)}.processing-fee-share-dialog textarea{width:100%;min-height:300px;max-height:52vh;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:12px;color:var(--ink);background:#f8faf9;font:13px/1.65 SFMono-Regular,Menlo,Consolas,"PingFang SC",monospace;white-space:pre-wrap}.processing-fee-share-dialog textarea:focus{outline:3px solid #2c826245;outline-offset:2px}@media(max-width:720px){.processing-fee-share-dialog .dialog-actions{flex-wrap:wrap}.processing-fee-share-dialog .dialog-actions button{flex:1 1 auto}}
.processing-fee-share-label{margin:10px 0 6px;font-size:12px;font-weight:700;color:var(--ink)}.processing-fee-share-preview{width:100%;max-height:52vh;overflow:auto;border:1px solid var(--line);border-radius:9px;padding:12px;color:var(--ink);background:#f8faf9;font:13px/1.65 SFMono-Regular,Menlo,Consolas,"PingFang SC",monospace}.processing-fee-share-line{white-space:pre-wrap;overflow-wrap:anywhere}.processing-fee-share-balance{color:#c51e25;font-weight:800}.processing-fee-share-dialog textarea.processing-fee-share-copy-source{position:absolute;width:1px;height:1px;min-height:1px;padding:0;opacity:0;pointer-events:none}.processing-fee-share-dialog textarea.processing-fee-share-copy-source.is-visible{position:static;width:100%;height:auto;min-height:210px;padding:12px;opacity:1;pointer-events:auto}
.processing-fee-mobile-list{display:none}
.processing-fee-mobile-filter{display:none}
@media(max-width:720px){
  .processing-fee-matrix-scroll{display:none}
  .processing-fee-mobile-filter{display:block;margin:12px 0}.processing-fee-mobile-filter label{display:block;margin-bottom:6px;font-size:13px;font-weight:700}.processing-fee-mobile-filter select{width:100%;min-height:44px}.processing-fee-mobile-filter p{margin:5px 0 12px;color:var(--muted);font-size:11px}.processing-fee-mobile-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.processing-fee-mobile-summary span{min-width:0;padding:10px;border-radius:9px;background:#eef6f1}.processing-fee-mobile-summary span:last-child{grid-column:1/-1}.processing-fee-mobile-summary small{display:block;color:var(--muted);font-size:11px}.processing-fee-mobile-summary strong{display:block;margin-top:3px;overflow-wrap:anywhere;font-size:16px;font-variant-numeric:tabular-nums}
  .processing-fee-mobile-list{display:grid;gap:10px}
  .processing-fee-mobile-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}
  .processing-fee-mobile-top{display:flex;align-items:start;justify-content:space-between;gap:10px}
  .processing-fee-mobile-top>div{min-width:0}
  .processing-fee-mobile-top h4{margin:0 0 4px;font-size:16px;overflow-wrap:anywhere}
  .processing-fee-mobile-top small{display:block;color:var(--muted);font-size:11px;line-height:1.4}
  .processing-fee-mobile-top .processing-fee-share{flex:0 0 auto;margin:0;min-height:40px;font-size:12px}
  .processing-fee-mobile-amount{display:flex;align-items:baseline;justify-content:space-between;gap:8px;width:100%;margin-top:12px;padding:0;border:0;background:none;color:var(--green);text-align:left;cursor:pointer}.processing-fee-mobile-amount span{font-size:12px}.processing-fee-mobile-amount strong{font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.processing-fee-mobile-no-orders{margin:12px 0 0;color:var(--muted);font-size:12px}.processing-fee-mobile-facts{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:8px;font-size:12px}.processing-fee-mobile-actions{display:flex;flex-wrap:wrap;gap:7px}.processing-fee-mobile-actions button,.processing-fee-mobile-actions .processing-fee-hide{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:6px 10px;font-size:11px}
  .processing-fee-mobile-balance{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:14px 0 10px;padding:12px;border-radius:9px;background:#f1f7f3}
  .processing-fee-mobile-balance span{font-size:11px;color:var(--muted)}
  .processing-fee-mobile-balance strong{font-size:19px;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
  .processing-fee-ledger .processing-fee-mobile-balance.processing-fee-reviewed{background:#fff0f0}
  .processing-fee-mobile-warning{margin:0 0 9px;color:#a54437;font-size:12px}
  .processing-fee-mobile-card details{border-top:1px solid var(--line)}
  .processing-fee-mobile-card summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 2px 0;color:var(--green);font-size:13px;font-weight:700;cursor:pointer;list-style:none}
  .processing-fee-mobile-card summary::-webkit-details-marker{display:none}
  .processing-fee-mobile-card summary span{color:var(--muted);font-size:11px;font-weight:400}
  .processing-fee-mobile-months{display:grid;gap:0;margin-top:8px}
  .processing-fee-mobile-month{padding:10px 2px;border-top:1px solid var(--line)}
  .processing-fee-mobile-month>button:first-child{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;padding:2px 0;border:0;background:none;color:var(--green);font-size:13px;text-align:left}
  .processing-fee-mobile-month>button:first-child strong{font-size:14px;font-variant-numeric:tabular-nums}
  .processing-fee-mobile-month small{display:block;margin:3px 0 6px;color:var(--muted);font-size:11px;line-height:1.4}
  .processing-fee-mobile-month>.secondary{min-height:36px;padding:6px 10px;font-size:11px}
  .processing-fee-mobile-opening{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 2px 0;border-top:1px solid var(--line);font-size:11px}
  .processing-fee-mobile-opening button{min-height:36px;padding:6px 10px;font-size:11px}
  .processing-fee-mobile-note{margin:9px 2px;color:var(--muted);font-size:12px}
  .processing-fee-share-preview{max-height:42dvh;font-size:12px}.processing-fee-share-dialog textarea.processing-fee-share-copy-source.is-visible{max-height:42dvh;font-size:12px}
}
