:root{--ink:#272927;--muted:#858982;--line:#eceee9;--paper:#fff;--canvas:#f8f9f6;--green:#35745b;--green-dark:#285b47;--green-soft:#eaf2ed;--plum:#f1edf7;--peach:#faeee8;--mint:#eaf3ed;--amber:#f6f0e3;--shadow:0 8px 30px rgba(38,48,38,.045);font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);font-size:14px}button,input{font:inherit}button{cursor:pointer}.sidebar{width:244px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid #eff0ec;padding:27px 15px 18px;display:flex;flex-direction:column;z-index:3}.brand{height:39px;display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);padding:0 10px}.brand-mark{width:34px;height:34px;border-radius:11px;background:#306d55;color:white;display:grid;place-items:center;font-weight:700;font-size:17px}.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy strong{font-size:16px;letter-spacing:.03em}.brand-copy small{font-size:10px;color:#a0a49f;margin-top:4px;letter-spacing:.03em}.store-switch{margin:35px 3px 26px;background:#fafbf9;border:1px solid #f0f1ed;border-radius:11px;padding:10px;display:flex;align-items:center;gap:9px}.store-avatar,.avatar{display:grid;place-items:center;border-radius:9px;background:#e8f1eb;color:#3b735b;font-weight:600;width:32px;height:32px}.store-switch>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1}.store-switch strong{font-size:12px}.store-switch small{color:#999e97;font-size:10px}.chevron{color:#9ca198;font-size:16px}.nav-caption{font-size:10px;color:#aaafa7;text-transform:uppercase;letter-spacing:.1em;padding:0 13px 10px}.nav{display:grid;gap:4px}.nav-link{height:40px;padding:0 12px;display:flex;align-items:center;gap:12px;text-decoration:none;color:#737870;border-radius:8px;font-size:12px;font-weight:500;transition:.15s}.nav-link:hover{background:#f8f9f6;color:var(--ink)}.nav-link.active{background:#edf4ef;color:#2f6a50;font-weight:600}.nav-icon{width:16px;text-align:center;font-size:16px;color:inherit}.tools-caption{margin-top:30px}.sidebar-bottom{margin-top:auto;padding:0 8px}.sync-indicator{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:17px 4px 14px}.sync-indicator>span{width:8px;height:8px;background:#d6a55f;border-radius:50%;box-shadow:0 0 0 4px #f8f0e3}.sync-indicator div{display:flex;flex-direction:column;gap:3px}.sync-indicator strong{font-size:11px;font-weight:600}.sync-indicator small{font-size:10px;color:#a0a49f}.version{font-size:10px;color:#b2b6b0;padding:5px 4px}.main{margin-left:244px;min-height:100vh}.topbar{height:65px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:space-between;padding:0 42px;position:sticky;top:0;z-index:2;backdrop-filter:blur(10px)}.crumb{display:flex;gap:11px;align-items:center;color:#979b95;font-size:11px}.crumb b{font-weight:400;color:#d0d2ce}.crumb strong{color:#484c46;font-weight:600}.top-actions{display:flex;align-items:center;gap:17px}.today{color:#92978f;font-size:11px}.avatar{border-radius:50%;width:30px;height:30px;font-size:11px}.content{max-width:1440px;padding:34px 42px 55px;margin:0 auto}.view{display:none}.view.active{display:block}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 25px}.page-heading.compact{margin-bottom:22px}.eyebrow{font-size:9px;letter-spacing:.14em;color:#9ba198;font-weight:700;margin-bottom:8px}.page-heading h1{font-size:25px;letter-spacing:-.045em;margin:0;font-weight:600}.page-heading p{font-size:12px;color:#999e97;margin:8px 0 0}.button{border:1px solid transparent;border-radius:8px;padding:10px 15px;font-size:11px;font-weight:600;transition:.17s;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:37px}.button-primary{background:#347258;color:#fff;box-shadow:0 3px 8px rgba(52,114,88,.12)}.button-primary:hover{background:#285d47;transform:translateY(-1px)}.button-secondary{background:#fff;border-color:#e8ebe5;color:#545950}.button-secondary:hover{background:#f7f8f5}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.notice{min-height:64px;border:1px solid #e6eee7;background:#f1f6f1;border-radius:10px;display:flex;align-items:center;padding:12px 16px;gap:12px;margin-bottom:20px}.notice-icon{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-family:serif;font-style:italic;font-size:12px;background:#dfece1;color:#4c7d5b;flex:none}.notice div{display:flex;flex-direction:column;gap:4px;flex:1}.notice strong{font-size:11px;color:#49684f}.notice div span{font-size:10px;color:#828e83}.text-button{background:none;border:0;color:#47765a;font-size:10px;font-weight:600;padding:5px;white-space:nowrap}.text-button b{font-size:14px;margin-left:4px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}.stat-card,.panel{background:#fff;border:1px solid #eeefeb;border-radius:11px;box-shadow:var(--shadow)}.stat-card{padding:16px 17px 14px;min-height:119px}.stat-label{font-size:10px;color:#858a82;display:flex;justify-content:space-between;align-items:center}.stat-icon,.type-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;font-size:14px}.plum{background:var(--plum);color:#78658d}.peach{background:var(--peach);color:#b87a5d}.mint{background:var(--mint);color:#59816b}.amber{background:var(--amber);color:#af8a43}.stat-value{font-size:26px;font-weight:600;letter-spacing:-.04em;margin-top:13px;line-height:1}.stat-foot{font-size:9px;color:#a3a79f;margin-top:9px}.dashboard-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:14px}.panel{overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 19px 14px}.panel-heading h2,.section-title h2{font-size:13px;margin:0;font-weight:600}.panel-heading p,.section-title p{font-size:10px;color:#a0a49d;margin:6px 0 0}.round-action{width:26px;height:26px;border:1px solid var(--line);background:#fff;border-radius:50%;color:#6c756b}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;background:#fbfcfa;color:#a2a69f;font-size:9px;font-weight:500;padding:10px 16px;white-space:nowrap}.data-table td{font-size:10px;color:#565b54;padding:12px 16px;border-top:1px solid #f2f3f0;white-space:nowrap}.data-table .right{text-align:right}.order-id{font-weight:600;color:#40594a}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:4px 8px;background:#f3f4f1;color:#858981;font-size:9px}.pill-dot{width:5px;height:5px;border-radius:50%;background:#aeb2aa}.pill.success{background:#edf5ef;color:#4d7b5b}.pill.success .pill-dot{background:#6ba176}.pill.pending{background:#fbf4e9;color:#aa8247}.pill.pending .pill-dot{background:#d3a353}.empty-state{text-align:center;padding:39px 18px;color:#a2a69f;font-size:10px}.empty-graphic{width:42px;height:42px;border:1px solid #edf0ea;background:#fafbf9;border-radius:13px;margin:0 auto 11px;display:grid;place-items:center;color:#aab9ab;font-size:18px}.empty-state strong{display:block;color:#777e75;font-size:11px;margin-bottom:5px}.stock-row{display:flex;align-items:center;padding:11px 18px;border-top:1px solid #f2f3f0;gap:9px}.stock-thumb{width:29px;height:29px;background:#f5f5f0;border:1px solid #eee;border-radius:7px;display:grid;place-items:center;color:#b5b9b0;font-size:12px}.stock-info{flex:1;min-width:0}.stock-info strong{display:block;font-size:10px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stock-info small{display:block;font-size:9px;color:#a1a69e;margin-top:3px}.stock-qty{font-size:11px;font-weight:600;color:#ae8050}.footnote{display:flex;align-items:center;gap:8px;margin-top:17px;color:#a0a59c;font-size:9px}.footnote-mark{color:#94a995}.table-panel{padding-bottom:4px}.toolbar{height:59px;padding:0 17px;display:flex;justify-content:space-between;align-items:center}.search-box{height:31px;width:min(330px,70%);border:1px solid #eceee9;background:#fff;border-radius:7px;display:flex;align-items:center;gap:8px;padding:0 10px;color:#a3a79f}.search-box span{font-size:16px}.search-box input{border:0;outline:0;font-size:10px;flex:1;min-width:0;color:#454a43}.search-box input::placeholder{color:#b1b5ad}.table-count{font-size:10px;color:#9ea39a}.table-scroll{width:100%;overflow:auto}.table-panel table,.preview-box table{width:100%;border-collapse:collapse;min-width:760px}.table-panel th,.preview-box th{text-align:left;background:#fafbf9;color:#a0a49d;font-weight:500;font-size:9px;padding:11px 17px;white-space:nowrap}.table-panel td,.preview-box td{border-top:1px solid #f0f1ed;font-size:10px;padding:12px 17px;color:#555a53;white-space:nowrap}.table-panel td.right,.table-panel th.right{text-align:right}.empty-row{text-align:center!important;color:#a0a49d!important;padding:40px 12px!important}.button-row{display:flex;gap:8px}.safe-label{font-size:10px;color:#7b907d;display:flex;gap:7px;align-items:center}.safe-label span{width:6px;height:6px;background:#79a481;border-radius:50%}.import-layout{display:grid;grid-template-columns:minmax(0,1fr) 238px;gap:15px;align-items:start}.steps{display:flex;align-items:center;margin:0 0 15px;padding:0 13px}.step{display:flex;align-items:center;gap:7px;color:#a9ada5;font-size:9px;white-space:nowrap}.step span{width:19px;height:19px;border:1px solid #e7e9e4;border-radius:50%;display:grid;place-items:center;font-size:9px;background:#fff}.step.current{color:#4a785e;font-weight:600}.step.current span,.step.done span{color:#fff;background:#39785d;border-color:#39785d}.step.done{color:#558066}.steps i{height:1px;background:#e6e9e3;flex:1;margin:0 12px}.import-panel{padding:21px}.section-title{margin-bottom:17px}.section-title h2{font-size:14px}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:17px 0}.type-card{position:relative;display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #eceee9;border-radius:8px;cursor:pointer;transition:.15s}.type-card:hover{border-color:#cbd9ce}.type-card.selected{border-color:#75a387;background:#f6faf6;box-shadow:0 0 0 2px rgba(82,139,105,.06)}.type-card input{position:absolute;opacity:0}.type-card>span:nth-of-type(2){display:flex;flex-direction:column;gap:4px}.type-card strong{font-size:10px;font-weight:600}.type-card small{font-size:9px;color:#9ca198}.radio-dot{margin-left:auto;width:13px;height:13px;border:1px solid #dfe3dc;border-radius:50%;position:relative;flex:none}.type-card.selected .radio-dot{border:4px solid #4b8967}.dropzone{border:1px dashed #d9ded6;border-radius:9px;min-height:130px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;background:#fcfdfa;transition:.15s}.dropzone.dragover{border-color:#70a183;background:#f4f9f4}.dropzone input{display:none}.upload-icon{width:28px;height:28px;border-radius:9px;background:#edf4ee;color:#578568;display:grid;place-items:center;font-size:16px;margin-bottom:8px}.dropzone strong{font-size:10px;font-weight:600}.dropzone small{font-size:9px;color:#a4a89f;margin-top:5px}.file-picked{font-size:9px;color:#3f7959;margin-top:7px}.import-actions{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.helper{font-size:9px;color:#a0a59d}.inline-error{color:#a74e47;font-size:10px;margin-top:10px;min-height:0}.inline-error:empty{display:none}.import-aside{background:#f0f4ee;border:1px solid #e9eee7;border-radius:11px;padding:17px 17px 19px;position:relative;overflow:hidden}.aside-art{height:111px;background:#e6ede5;border-radius:8px;margin-bottom:16px;position:relative;overflow:hidden}.art-sheet{position:absolute;background:white;border:1px solid #e4e9e1;border-radius:5px;width:63px;height:79px;box-shadow:0 5px 12px #bfcbbf77}.sheet-back{left:72px;top:18px;transform:rotate(12deg)}.sheet-front{left:90px;top:16px;transform:rotate(-7deg);padding:12px 8px}.sheet-front span{display:block;color:#65a078;font-size:14px;margin-bottom:8px}.sheet-front i{display:block;width:100%;height:3px;background:#edf0eb;margin:5px 0;border-radius:4px}.art-orbit{position:absolute;border:1px solid #c9d7c9;width:130px;height:55px;border-radius:50%;transform:rotate(-22deg);top:26px;left:34px}.import-aside h3{font-size:12px;margin:0 0 7px}.import-aside>p{font-size:9px;color:#89948a;line-height:1.8;margin:0}.aside-rule{height:1px;background:#e0e8df;margin:16px 0 11px}.aside-point{display:flex;gap:10px;padding:7px 0}.aside-point>span{color:#639172;font-size:9px;font-weight:700;padding-top:2px}.aside-point div{display:flex;flex-direction:column;gap:3px}.aside-point strong{font-size:9px;font-weight:600}.aside-point small{font-size:8px;color:#929c91}.import-history{margin-top:15px;padding-bottom:8px}.import-history .panel-heading{padding-bottom:11px}.history-row{display:flex;align-items:center;gap:10px;padding:10px 18px;border-top:1px solid #f2f3f0}.history-file{width:27px;height:27px;background:#f3f4ef;border-radius:7px;display:grid;place-items:center;color:#7c967f}.history-main{flex:1;min-width:0}.history-main strong{font-size:9px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-main small{display:block;color:#a1a69f;font-size:8px;margin-top:3px}.history-count{color:#607c68;font-size:9px}.back-button{display:block;border:0;background:none;color:#66806b;padding:0 0 13px;font-size:10px}.mapping-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.map-field{display:flex;flex-direction:column;gap:6px}.map-field span{font-size:9px;color:#757b72}.map-field select{height:34px;border:1px solid #e8ebe5;border-radius:6px;padding:0 9px;background:#fff;font-size:10px;color:#454a43;outline-color:#81a68b}.preview-box{border:1px solid #edf0ea;border-radius:7px;overflow:hidden}.preview-title{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#fafbf9}.preview-title strong{font-size:9px}.preview-title span{font-size:8px;color:#a4a89f}.preview-box table{min-width:600px}.preview-box th,.preview-box td{padding:8px 10px;font-size:8px;max-width:150px;overflow:hidden;text-overflow:ellipsis}.done-state{text-align:center;padding:23px 10px 17px}.done-check{width:44px;height:44px;background:#edf5ef;border:1px solid #dceade;color:#4f8a62;border-radius:50%;display:grid;place-items:center;margin:0 auto 15px;font-size:21px}.done-state h2{font-size:17px;margin:0}.done-state>p{font-size:10px;color:#92978f;margin:7px 0 18px}.done-numbers{display:flex;justify-content:center;gap:28px;padding:13px;border:1px solid #edf0ea;border-radius:8px;margin-bottom:15px}.done-numbers div{display:flex;flex-direction:column;gap:4px}.done-numbers strong{font-size:17px}.done-numbers span{font-size:8px;color:#999e97}.done-errors{font-size:9px;color:#a25149;margin:0 auto 12px;max-width:500px;text-align:left}.hidden{display:none!important}.modal{width:min(460px,calc(100% - 28px));border:1px solid #eceee9;border-radius:13px;padding:0;box-shadow:0 20px 80px #17251a33}.modal::backdrop{background:#1f2a2180;backdrop-filter:blur(2px)}.modal form{padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal-head h2{font-size:17px;margin:0}.modal-close{width:27px;height:27px;border:0;background:#f4f5f2;border-radius:50%;font-size:18px;color:#7c817a}.modal-copy{font-size:10px;color:#999e97;margin:9px 0 20px}.field-label{display:flex;flex-direction:column;gap:6px;font-size:9px;color:#747a72;margin-bottom:13px;flex:1}.field-label input{height:36px;border:1px solid #e8ebe5;border-radius:6px;padding:0 9px;font-size:10px;outline-color:#7aa087}.field-row{display:flex;gap:10px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;transition:.2s;background:#27382e;color:#fff;border-radius:7px;padding:11px 16px;font-size:10px;z-index:5;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.sidebar{width:210px}.main{margin-left:210px}.content{padding:28px 25px}.topbar{padding:0 25px}.import-layout{grid-template-columns:minmax(0,1fr) 210px}.stats-grid{gap:9px}.stat-card{padding:14px}.dashboard-grid{grid-template-columns:1.3fr 1fr}}
@media(max-width:760px){.sidebar{width:60px;padding:17px 8px}.brand{padding:0;justify-content:center}.brand-copy,.store-switch>span:nth-child(2),.chevron,.nav-caption{display:none}.store-switch{margin:25px 0 18px;padding:7px;justify-content:center}.nav{gap:7px}.nav-link{font-size:0;padding:0;justify-content:center;height:38px}.nav-icon{font-size:17px}.sidebar-bottom{padding:0}.sync-indicator{justify-content:center;padding:14px 0}.sync-indicator div,.version{display:none}.main{margin-left:60px}.topbar{height:55px;padding:0 15px}.content{padding:23px 14px 38px}.page-heading h1{font-size:21px}.page-heading p{max-width:280px;line-height:1.6}.page-heading:not(.compact){align-items:flex-start;gap:8px}.page-heading:not(.compact) .button{font-size:0;padding:9px}.page-heading:not(.compact) .button span{font-size:14px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:105px}.dashboard-grid{grid-template-columns:1fr}.import-layout{grid-template-columns:1fr}.import-aside{display:none}.notice{align-items:flex-start}.notice .text-button{display:none}.type-grid{grid-template-columns:1fr 1fr}.import-panel{padding:15px}.mapping-grid{grid-template-columns:1fr}.safe-label{font-size:0}.safe-label span{width:7px;height:7px}.button-row{gap:5px}.button-row .button{padding:8px;font-size:9px}.today{display:none}}

.modal-content{padding:22px}.detail-button{border:0;background:#edf4ee;color:#4d7959;border-radius:5px;padding:5px 8px;font-size:9px}.detail-button:hover{background:#e2eee4}.detail-table{margin-top:12px}
[hidden]{display:none!important}.auth-locked>.sidebar,.auth-locked>.main{display:none}.auth-gate{min-height:100vh;display:grid;place-items:center;padding:30px 20px;background:radial-gradient(ellipse at 20% 20%,#edf5ef,transparent 65%),var(--canvas)}.auth-card{width:min(460px,100%);background:#fff;padding:34px;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.auth-card .brand-mark{width:42px;height:42px;font-size:21px;margin-bottom:22px}.auth-card h1{font-size:24px;letter-spacing:-.03em;margin:0 0 10px}.auth-card>p{font-size:13px;line-height:1.8;color:#7b8278;overflow-wrap:anywhere}.auth-card .field-label{font-size:12px;margin:17px 0}.auth-card input{font-size:14px;height:42px}.auth-submit{width:100%;font-size:13px;margin-top:8px}.auth-local-note{font-size:11px!important;margin:24px 0 0;color:#959d92!important}.auth-card .inline-error{font-size:12px;line-height:1.7}.auth-card .text-button{font-size:12px;margin-top:12px}.settings-invite{padding:22px;margin-bottom:16px}.settings-invite h2{margin-top:0;font-size:16px}.settings-invite .modal-copy{font-size:12px;line-height:1.8}.settings-invite .field-label{font-size:11px}.settings-invite select{border:1px solid var(--line);border-radius:6px;height:36px;padding:0 9px;background:#fff;color:var(--ink);font:inherit}.settings-invite #invite-result{border-top:1px solid var(--line);margin-top:18px;padding-top:10px;font-size:12px;line-height:1.8}.settings-invite input#invite-token{font-family:monospace;font-size:12px}#view-settings .table-panel{margin-bottom:18px}.top-actions #account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;display:block}.auth-locked dialog{display:none}body[data-role=viewer] [data-cancel-order]{display:none}@media(max-width:760px){.auth-card{padding:26px}.top-actions{gap:6px}.top-actions #account-name{max-width:110px}.settings-invite .field-row{flex-direction:column}.settings-invite{padding:16px}}

.movement-panel{margin-top:14px}.qty-plus{color:#4c805f!important;font-weight:600}

.pagination{display:flex;justify-content:space-between;align-items:center;padding:11px 17px;border-top:1px solid #f1f2ee;color:#9ba097;font-size:9px}.pagination div{display:flex;gap:6px}.pagination button{background:#fff;border:1px solid #e9ece6;border-radius:5px;padding:6px 9px;color:#646a62;font-size:9px}.pagination button:disabled{color:#bec2bb;background:#fafbf9;cursor:default}

.template-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-5px 0 12px;padding:0 1px}.template-links span{color:#9ba097;font-size:9px;margin-right:2px}.template-links a{color:#4c795b;text-decoration:none;font-size:9px;border-bottom:1px solid #d9e5da;padding-bottom:1px}.template-links a:hover{color:#2e6246}

.toolbar-tools{display:flex;align-items:center;gap:7px}.export-button{min-height:29px;padding:6px 9px;text-decoration:none;font-size:9px}
.native-item-row{display:grid;grid-template-columns:minmax(0,1fr) 82px 25px;gap:8px;align-items:center}.native-item-row input{min-width:0;width:100%}.field-row .field-label{min-width:0}.field-row input{min-width:0;width:100%}.field-label input:disabled{background:#f6f7f3;color:#7f847b}.page-heading .button-row{flex-wrap:wrap;justify-content:flex-end}
.bundle-panel{padding:20px;margin-bottom:22px}.bundle-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.bundle-files input{padding:8px;height:auto;font-size:10px;width:100%}.bundle-report-content{padding:12px 18px}.bundle-panel .bundle-report-content{padding:12px 0}.bundle-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border:1px solid var(--line);border-radius:8px;padding:16px}.bundle-metrics div{display:flex;flex-direction:column;gap:5px}.bundle-metrics strong{font-size:17px;color:var(--green)}.bundle-metrics span{font-size:10px;color:var(--muted)}.bundle-notes{font-size:10px;color:#7c806f;line-height:1.9;padding-left:17px}.bundle-success{font-size:11px;color:var(--green);padding:8px 0}.order-recipient{padding:12px;background:#f6f8f3;border-radius:7px;font-size:10px;margin-top:14px;line-height:1.7}.order-recipient p{margin:5px 0 0}.detail-table{min-width:580px}#order-detail-dialog{width:min(760px,calc(100% - 28px))}@media(max-width:760px){.bundle-files{grid-template-columns:1fr}.bundle-metrics{grid-template-columns:1fr 1fr}.bundle-metrics strong{font-size:15px}.bundle-panel .button-row{flex-wrap:wrap}}

.order-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:4px 17px 12px}.order-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#747a72}.order-filters input,.order-filters select{height:34px;min-width:135px;max-width:100%;border:1px solid #e8ebe5;border-radius:6px;padding:0 9px;background:#fff;color:#454a43;font:inherit;outline-color:#7aa087}.order-filters .product-filter{flex:1;min-width:180px}.filter-help,.filter-error{margin:0 17px 12px;font-size:11px}.filter-help{color:#7b8278}#view-orders .toolbar{height:auto;min-height:59px;flex-wrap:wrap;gap:10px;padding-top:12px;padding-bottom:12px}#view-orders .toolbar-tools{flex-wrap:wrap}@media(max-width:600px){.order-filters label{flex:1;min-width:130px}#view-orders .search-box{width:100%}}

.snapshot-help{font-size:12px;color:#737e71;line-height:1.8}.snapshot-confirm{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.8;margin:12px 0 18px}.snapshot-confirm input{margin-top:5px;flex:none}.sync-summary{border:1px solid #dce9df;background:#f6faf6;padding:14px;border-radius:9px;font-size:12px;line-height:1.8;margin:14px 0}.sync-summary p{margin:6px 0}.sync-warning{color:#93692d}.sync-sources{font-size:11px;margin:12px 0}.sync-sources code{overflow-wrap:anywhere}.sync-summary details{margin-top:10px}.sync-summary ul{max-height:240px;overflow:auto}summary{cursor:pointer}

.customer-dialog{width:min(980px,calc(100% - 28px));max-height:90vh}.profile-intro,.profile-help{font-size:12px;color:#73806f;line-height:1.8}.profile-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.profile-card{background:#f7faf5;border:1px solid #e4ebe0;border-radius:9px;padding:16px;min-width:0}.profile-card h3,.profile-orders h3,.profile-history h3{font-size:14px;margin:0 0 12px}.profile-card dl{display:grid;grid-template-columns:100px minmax(0,1fr);font-size:12px;line-height:1.8;margin:0;gap:8px}.profile-card dt{color:#7d8777}.profile-card dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.profile-totals{display:flex;flex-wrap:wrap;gap:20px;font-size:12px;line-height:1.8;margin:18px 0}.profile-totals strong{display:block;font-size:19px;color:#3f6950}.customer-dialog fieldset{border:1px solid #e1e9dd;border-radius:9px;padding:16px;margin:18px 0}.customer-dialog legend{font-size:14px;color:#4b6446;padding:0 6px}.customer-dialog form{padding:0}.profile-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-note{grid-column:1/-1}.customer-dialog .field-label{font-size:12px;margin-bottom:6px}.customer-dialog .field-label input,.customer-dialog textarea{font-size:13px}.customer-dialog textarea{border:1px solid #e8ebe5;border-radius:6px;padding:9px;resize:vertical;outline-color:#7aa087;min-height:72px}.profile-follow{display:flex;align-items:center;gap:6px;font-size:11px;color:#65765f;margin:6px 0 12px}.profile-orders,.profile-history{border-top:1px solid #e8eee4;padding-top:18px;margin-top:20px}.profile-orders table{min-width:600px}.profile-change{border:1px solid #e4eadf;border-radius:8px;margin:10px 0;padding:12px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.profile-change .profile-value{white-space:pre-wrap}.profile-change small{color:#7c8776}.profile-empty{font-size:12px;color:#8a9385;padding:12px 0}.customer-dialog input:disabled,.customer-dialog textarea:disabled{background:#f4f6f2;color:#7c8776}.profile-saved{color:#3d7852;font-size:12px}@media(max-width:680px){.profile-cards,.profile-edit-grid{grid-template-columns:1fr}.profile-card dl{grid-template-columns:84px minmax(0,1fr)}.profile-totals{gap:14px}.customer-dialog .modal-content{padding:16px}.customer-dialog .modal-actions{flex-wrap:wrap}}

.backup-panel{padding:24px;margin-bottom:20px}.backup-panel .panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.backup-panel h2{margin:0 0 8px}.backup-panel #backup-health{font-size:14px;color:#386354}.backup-panel .backup-filename{max-width:280px;overflow-wrap:anywhere;white-space:normal}.recovery-help{font-size:13px;line-height:1.8;color:#69746e;margin:12px 0}.recovery-help summary{cursor:pointer;color:#356553}.recovery-help p{margin:8px 0}.auth-card .recovery-help{max-width:420px}@media(max-width:680px){.backup-panel{padding:16px}.backup-panel .panel-heading{display:block}.backup-panel #backup-create{margin-bottom:12px}}

.history-pagination,.history-export{display:flex;align-items:center;gap:16px;margin:18px 0;flex-wrap:wrap}.history-pagination span{font-size:13px;color:#66746b}.history-export .modal-copy{flex:1;margin:0;min-width:180px}.import-history .panel-heading{gap:16px;flex-wrap:wrap}
.import-error-panel{margin:12px 18px 18px;border:1px solid #e7ebe5;border-radius:10px;overflow:hidden;background:#fcfdfb}.import-error-panel .panel-heading{padding:15px}.import-errors-table{min-width:900px}.import-error-reason{color:#a25149!important;white-space:normal!important;min-width:210px;max-width:360px}.import-error-panel .history-pagination{padding:0 15px;margin:14px 0}.import-error-panel .inline-error{margin:0 15px 15px}.history-row .button{flex:none}

.import-history .history-pagination,.import-history .history-export{margin:18px}.import-history>.inline-error{margin:12px 18px}#migration-report-select{display:block;min-width:260px;max-width:100%;padding:10px 12px;border:1px solid #dce5dd;border-radius:8px;background:#fff;color:#263d30;font:inherit;margin-top:8px}

.movement-actions{display:flex;gap:8px;flex-wrap:wrap}.movement-note{color:var(--muted,#737870);font-size:12px;line-height:1.7;margin:12px 22px}.movement-filters{flex-wrap:wrap}.movement-filters label:first-child{flex:1;min-width:180px}.movement-filters select{max-width:240px}.movement-panel .panel-heading{flex-wrap:wrap;gap:12px}
.stock-summary-panel .panel-heading{flex-wrap:wrap;gap:12px}.stock-summary-panel table{min-width:860px}.movement-panel table{min-width:1100px}.summary-filters{flex-wrap:wrap}.summary-filters label:first-child{flex:1;min-width:180px}.summary-filters select{max-width:240px}.summary-filters .summary-zero-option{display:flex;align-items:center;gap:7px;white-space:nowrap}.summary-zero-option input{width:auto}
.inventory-report-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.inventory-report-tabs .button[aria-pressed="true"]{background:#39785d;border-color:#39785d;color:#fff}.inventory-report-tabs .button[aria-pressed="false"]{background:#fff;color:#39785d}#view-inventory .inventory-module[hidden]{display:none!important}@media(max-width:600px){.inventory-report-tabs{gap:7px}.inventory-report-tabs .button{flex:1;min-width:90px}}
.list-sort-bar{display:flex;justify-content:flex-end;padding:8px 18px 12px}.list-sort-bar label{display:flex;align-items:center;gap:7px;color:#68756a;font-size:11px}.list-sort-bar select{min-width:160px;max-width:100%;padding:7px 9px;border:1px solid #dce5dd;border-radius:7px;background:#fff;color:#263d30;font:inherit}
.biz-sort-label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;color:#68756a}.biz-sort-label select{min-width:135px;max-width:180px;padding:7px;border:1px solid #dce5dd;border-radius:7px;background:#fff;color:#263d30;font:inherit}@media(max-width:700px){.biz-sort-label{width:100%}.biz-sort-label select{flex:1;max-width:none}}
.sort-hint{margin:2px 17px 7px;color:#47745b;font-size:11px;line-height:1.5}.sort-heading{display:inline-flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-width:max-content;padding:5px 3px;border:0;border-radius:5px;background:transparent;color:#526d59;font:inherit;font-size:11px;font-weight:600;text-align:left;cursor:pointer}.sort-heading:hover,.sort-heading:focus-visible{background:#e7f2e9;color:#245b3b;outline:2px solid transparent}.sort-heading:focus-visible{outline-color:#39785d}.sort-heading.active{color:#246d48;background:#edf6ee}.sort-arrow{font-size:15px;font-weight:700;line-height:1;color:#548566}.sort-heading.active .sort-arrow{color:#197443}th.right .sort-heading{justify-content:flex-end}@media(max-width:760px){.sort-heading{min-height:32px;font-size:11px}.sort-hint{font-size:11px}}

.order-summary{margin:16px 22px;border:1px solid #dce8df;border-radius:10px;background:#f6faf7;padding:16px}.order-summary-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px}.order-summary-heading>span{color:#747d75}.order-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}.order-summary-grid>div{display:flex;flex-direction:column;gap:8px;min-width:0}.order-summary-grid span,.order-summary-grid small{font-size:12px;color:#68756a}.order-summary-grid strong{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.order-summary>p{margin:14px 0 0;font-size:12px;color:#637367;line-height:1.7}.order-summary.has-unknown{background:#fffbf1;border-color:#eedebd}.order-summary.has-unknown>p{color:#8b681b}@media(max-width:1100px){.order-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.order-summary{margin:12px}.order-summary-grid{grid-template-columns:1fr}}

.audit-panel .panel-heading{flex-wrap:wrap;gap:12px}.audit-panel select{max-width:260px}.audit-panel td:nth-child(4){overflow-wrap:anywhere;max-width:320px}
.quality-critical{background:#fbe9e6;color:#a8473c}.quality-notice{margin-bottom:20px}.quality-panel{margin-bottom:18px}.quality-check{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 20px;border-top:1px solid #eff1ed}.quality-check:first-child{border-top:0}.quality-check-main{display:flex;align-items:flex-start;gap:13px;min-width:0}.quality-check-main h3{font-size:13px;margin:1px 0 6px}.quality-check-main p{font-size:11px;line-height:1.65;color:#7e857b;margin:0}.quality-check-main .quality-action{color:#536c5b;margin-top:5px}.quality-level{display:inline-flex;align-items:center;justify-content:center;min-width:58px;border-radius:18px;padding:5px 8px;font-size:9px;font-weight:600;white-space:nowrap;background:#eef5ef;color:#4e7c5d}.quality-level.critical{background:#fbe9e6;color:#a8473c}.quality-level.warning{background:#fbf2df;color:#9a702c}.quality-level.info{background:#f1edf6;color:#78658d}.quality-count{font-size:20px;color:#4f5c52;font-variant-numeric:tabular-nums}.quality-check.passed{background:#fcfdfb}.quality-check.passed .quality-count{color:#83a18c}.quality-samples{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:9px;font-size:10px;color:#8b9188}.quality-samples code{font-family:inherit;background:#f5f6f3;border:1px solid #e9ebe6;border-radius:5px;padding:3px 6px;overflow-wrap:anywhere}.quality-panel+.inline-error{margin-left:2px}@media(max-width:680px){.quality-check{padding:15px;gap:10px}.quality-check-main{display:block}.quality-level{margin-bottom:8px}.quality-stats{grid-template-columns:1fr 1fr}.quality-count{font-size:16px}}

/* v0.18 internal business */
.biz-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.biz-search{min-width:120px;flex:1;border:1px solid #ddd;padding:10px;border-radius:8px}.biz-sub{display:block;font-size:12px;color:#777;margin-top:5px}.biz-dialog{width:min(860px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:16px;padding:25px;color:#29242c}.biz-dialog::backdrop{background:#241b3266}.biz-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.biz-fields{border:0;padding:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:15px;min-width:0}.biz-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:0}.biz-fields input,.biz-fields select,.biz-fields textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #d8d4dc;border-radius:8px;min-width:0;font:inherit}.biz-wide{grid-column:1/-1;min-width:0}.biz-add{display:flex;gap:8px;margin:12px 0}.biz-add select{flex:1;min-width:0}.biz-add input{max-width:85px}.biz-dialog p{line-height:1.7}.biz-dialog table{width:100%}#biz-error{padding:0 20px}.biz-dialog button{white-space:normal}.biz-dialog[open]{display:block}
@media(max-width:700px){.biz-fields{grid-template-columns:1fr}.biz-dialog{padding:16px}.biz-add{flex-wrap:wrap}.biz-add select{flex-basis:100%}#view-business .toolbar{flex-wrap:wrap}#view-business .toolbar input{width:100%}.biz-dialog .button{padding:9px 12px}.biz-dialog table{min-width:400px}}

@media(max-width:700px){.sidebar .nav-link{font-size:0!important;justify-content:center;padding:10px 0;overflow:hidden}.sidebar .nav-link .nav-icon{font-size:18px;flex-shrink:0}.sidebar .nav{gap:6px}.sidebar{overflow-x:hidden}.top-actions{gap:6px}.top-actions .text-button{font-size:10px}.biz-tabs{gap:6px}.biz-tabs .button{font-size:12px;padding:10px}}

@media(max-width:760px){.sidebar .nav-label{display:none!important}}
.sources-panel{padding:22px;margin:18px 0}.sources-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.sources-toolbar input,.sources-toolbar select{padding:10px;border:1px solid #d8d4dc;border-radius:8px;min-width:0}.sources-toolbar input{flex:1}.sources-panel input[type=file]{max-width:100%}.sources-panel table{min-width:650px}@media(max-width:760px){.sources-panel{padding:14px}.sources-toolbar select{max-width:100%}.sources-toolbar input{flex-basis:100%}}

/* Readable product names and specifications across inventory reports. */
#inventory-body td:first-child:not([colspan]),
#summary-body td:first-child:not([colspan]),
#movements-body td:first-child:not([colspan]){font-size:14px;line-height:1.6}
#inventory-body td:first-child .cell-sub,
#summary-body td:first-child .cell-sub,
#movements-body td:first-child .cell-sub{display:block;font-size:12px;line-height:1.5;color:#68756a;margin-top:4px}
#inventory-body td:first-child .cell-sub:empty,
#summary-body td:first-child .cell-sub:empty,
#movements-body td:first-child .cell-sub:empty{display:none}

/* Keep the selected balance columns within the available screen width. */
#inventory-balance-panel .inventory-balance-table{width:100%;min-width:0;table-layout:fixed}
.inventory-col-product{width:36%}.inventory-col-code{width:23%}.inventory-col-price{width:13%}.inventory-col-warehouse{width:10%}.inventory-col-headquarters{width:10%}.inventory-col-actions{width:8%}
#inventory-balance-panel th,#inventory-balance-panel td{white-space:normal;overflow-wrap:anywhere;padding:12px 10px}
#inventory-balance-panel .sort-heading{min-width:0;white-space:normal;gap:4px}
#inventory-body td:not(:first-child){font-size:12px;line-height:1.5}
#inventory-body td:nth-child(2) .cell-sub{display:block;font-size:11px;line-height:1.5;color:#68756a;margin-top:4px}
#inventory-body .detail-button{font-size:12px;white-space:normal;overflow-wrap:anywhere}
#inventory-body .inventory-detail-button{padding:6px 4px}
.inventory-detail-dialog{width:min(620px,calc(100% - 28px));max-height:85vh;overflow:auto}
#inventory-detail-product{font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.inventory-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 0}
.inventory-detail-fields>div{min-width:0}.inventory-detail-fields dt{font-size:12px;color:#68756a;margin-bottom:6px}.inventory-detail-fields dd{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:760px){#inventory-balance-panel th,#inventory-balance-panel td{padding:10px 4px}#inventory-balance-panel .sort-heading{font-size:10px;gap:1px}.inventory-detail-fields{grid-template-columns:1fr}}

.return-received-quantity{width:80px;max-width:100%;padding:8px;border:1px solid #d8d4dc;border-radius:6px;font-size:14px}

.biz-modal-head>h2{min-width:0;overflow-wrap:anywhere}.biz-modal-head>#biz-close{flex-shrink:0}
@media(max-width:700px){.return-items table{min-width:0;width:100%}.return-items thead{display:none}.return-items tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-bottom:1px solid #e8ebe5;padding:10px 0}.return-items tbody td{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:6px;border:0}.return-items tbody td:first-child{grid-column:1/-1}.return-items tbody td::before{content:attr(data-label);display:block;font-size:12px;color:#68756a;margin-bottom:5px}.return-items .return-received-quantity{width:100%}}

#biz-count-guide{font-size:12px;line-height:1.7;padding:14px 18px}
#view-business .business-products-table{width:100%;min-width:0;table-layout:fixed}
.business-products-table th:first-child{width:32%}.business-products-table th:nth-child(2){width:12%}.business-products-table th:nth-child(3){width:18%}.business-products-table th:nth-child(4){width:13%}.business-products-table th:last-child{width:25%}
#view-business .business-products-table td,#view-business .business-products-table th{white-space:normal;overflow-wrap:anywhere;padding:12px 10px}
.business-products-table .sort-heading{min-width:0;white-space:normal}.business-products-table td:last-child .button{margin:3px 0}
@media(max-width:700px){#view-business .business-products-table thead{display:none}.business-products-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border-bottom:1px solid #e8ebe5;gap:8px}#view-business .business-products-table tbody td{display:block;min-width:0;border:0;padding:6px}.business-products-table td:first-child,.business-products-table td:last-child{grid-column:1/-1}.business-products-table td::before{content:attr(data-label);display:block;color:#68756a;font-size:12px;margin-bottom:5px}}

#view-business .toolbar{height:auto;min-height:58px;flex-wrap:wrap;gap:10px;padding:16px 18px}#view-business .toolbar .biz-search{min-width:0}#view-business .biz-sort-label{display:flex;align-items:center;gap:6px;max-width:100%}
@media(max-width:700px){#view-business .toolbar .biz-sort-label{flex-basis:100%}#view-business .biz-sort-label select{flex:1;min-width:0}}

.count-choice-toolbar{display:flex;gap:8px;flex-wrap:wrap}.count-choice-toolbar input,.count-choice-toolbar select{border:1px solid #d8d4dc;padding:9px;border-radius:7px;min-width:0}.count-choice-toolbar input{flex:1}.count-choice-results{max-height:290px;overflow:auto;margin-top:14px}.count-choice-results table{min-width:0;width:100%;table-layout:fixed}.count-choice-results th:first-child{width:9%}.count-choice-results td{white-space:normal;overflow-wrap:anywhere}.count-choice-results input[type=checkbox]{width:20px;height:20px}.count-selected-chip{background:#edf5ef;border:1px solid #d9e6dc;border-radius:6px;padding:5px 8px;font-size:12px;color:#315f45;margin:3px}.count-picker #count-selected-products{max-height:100px;overflow:auto}
.count-lines-scroll{overflow:auto;max-height:48vh}.count-lines-table{width:100%;min-width:0;table-layout:fixed}.count-lines-table th{position:sticky;top:0;background:#f3f7f3;z-index:1}.count-lines-table td{padding:10px 6px;white-space:normal;overflow-wrap:anywhere;font-size:13px}.count-lines-table th:first-child{width:28%}.count-lines-table th:nth-child(2){width:18%}.count-lines-table th:nth-child(3){width:7%}.count-lines-table th:nth-child(4),.count-lines-table th:nth-child(5){width:10%}.count-lines-table th:nth-child(6){width:15%}.count-lines-table th:last-child{width:12%}.count-lines-table .sort-heading{min-width:0;white-space:normal}.count-lines-table .count-actual{width:100%;padding:8px 4px;border:1px solid #b7cdbd;border-radius:5px;font-size:14px}.count-line-sort-label{display:flex;gap:8px;align-items:center;margin-bottom:12px}.count-line-sort-label select{padding:6px;max-width:100%}.count-totals{font-size:13px;line-height:1.7;color:#315f45}.count-draft-actions{display:flex;gap:8px;flex-wrap:wrap}.biz-fields .count-ack{display:flex;flex-direction:row;align-items:center;line-height:1.6}.biz-fields .count-ack input{width:20px;height:20px;flex-shrink:0}
@media(max-width:700px){.count-choice-toolbar input{flex-basis:100%}.count-choice-results table thead,.count-lines-table thead{display:none}.count-choice-results tbody tr,.count-lines-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 0;border-bottom:1px solid #e1e8e1}.count-choice-results td,.count-lines-table td{display:block;min-width:0;border:0;white-space:normal;overflow-wrap:anywhere;padding:6px}.count-lines-table td:first-child,.count-choice-results td:nth-child(2){grid-column:1/-1}.count-choice-results td::before,.count-lines-table td::before{content:attr(data-label);display:block;font-size:12px;color:#68756a;margin-bottom:5px}.count-choice-results{max-height:310px}.count-lines-scroll{max-height:52vh}}

.biz-dialog .count-lines-table,.biz-dialog .count-choice-results table{min-width:0}

/* Promotion selection and original-price quote. */
.promo-check{display:flex!important;flex-direction:row!important;text-align:left;align-items:center;gap:10px;margin:8px 0;padding:8px;border:1px solid var(--border,#e3e9e5);border-radius:8px;cursor:pointer}
.promo-check input[type=checkbox]{width:18px!important;height:18px!important;flex:0 0 18px;margin:0}
.promo-picker #promo-products{max-height:240px;overflow:auto;margin-top:12px}
.promo-chosen{max-height:150px;overflow:auto}.promo-chosen button{margin:3px;font-size:13px}
.promo-rule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.promo-rule[hidden]{display:none!important}.promo-rule.promo-check{display:flex}
.promo-quote{background:#f0f7f3;border-radius:10px;padding:12px 16px}.promo-total{font-size:20px;font-weight:700}.promo-gift{color:#216647}
@media(max-width:600px){.promo-rule{grid-template-columns:1fr}.promo-quote{padding:10px}.promo-check{font-size:14px}}

/* Business sections share the same transactional workspace. */
.operations-workspace[hidden],#orders-archive[hidden],#marketing-tools[hidden],#marketing-business-slot[hidden]{display:none!important}
.section-switcher{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 20px}.section-switcher label{display:flex;align-items:center;gap:10px;font-size:14px}.section-switcher select{max-width:100%;border:1px solid #dce5de;border-radius:8px;padding:10px 12px;background:white;color:#244335}
.section-switcher [aria-pressed=true],.inventory-report-tabs [aria-pressed=true]{background:#34785d;color:#fff;border-color:#34785d}
.marketing-intro{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:25px 0}.marketing-intro>span{width:4px;height:24px;background:#34785d}.marketing-intro h2{margin:0;font-size:20px}.marketing-intro p{flex-basis:100%;color:#7b887f;font-size:13px;margin:0 0 0 14px}
.marketing-category{padding:12px 0 22px;border-bottom:1px solid #e1e8e2}.marketing-category h3{font-size:17px;font-weight:600;margin:10px 0 18px}.marketing-category h3 small{font-size:12px;font-weight:400;color:#859087;margin-left:8px}.marketing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.marketing-card{display:flex;gap:14px;align-items:center;min-width:0;text-align:left;border:1px solid #e0e8e1;border-radius:12px;background:#fff;padding:20px;color:#223c2e;font:inherit;text-decoration:none}.marketing-card:is(button){cursor:pointer}.marketing-card:is(button):hover{border-color:#4b896b;box-shadow:0 4px 16px #315c3f0c}.marketing-card>span:nth-child(2){min-width:0}.marketing-card strong{display:block;font-size:16px}.marketing-card small{display:block;font-size:12px;color:#7b887f;line-height:1.6;margin-top:5px}.marketing-icon{width:42px;height:42px;border-radius:9px;background:#e5f2e9;color:#34785d;display:grid;place-items:center;font-size:22px;font-weight:700;flex-shrink:0}.marketing-arrow{margin-left:auto;color:#397b59}.marketing-future .marketing-card{background:#f6f8f5;color:#748178}.marketing-future .marketing-icon{background:#ebeeea;color:#97a198}
@media(max-width:1100px){.marketing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.marketing-grid{grid-template-columns:1fr}.marketing-card{padding:16px}.section-switcher label{width:100%;min-width:0}.section-switcher select{flex:1;min-width:0}.section-switcher>button{flex:1}.marketing-intro{margin-top:18px}}

@media(max-width:700px){#view-marketing .page-heading{gap:12px;align-items:flex-start}#marketing-create{flex-shrink:0;white-space:nowrap;font-size:12px;padding:10px}#view-marketing .page-heading>div{min-width:0}}

#view-business .batch-inventory-table{width:100%;min-width:0;table-layout:fixed}#view-business .batch-inventory-table td{font-size:13px;line-height:1.6;white-space:normal;overflow-wrap:anywhere;padding:13px 10px}#view-business .batch-inventory-table td:first-child{font-size:14px}#view-business .batch-inventory-table th:first-child{width:24%}#view-business .batch-inventory-table th:nth-child(2){width:10%}#view-business .batch-inventory-table th:nth-child(3){width:15%}#view-business .batch-inventory-table th:nth-child(4),#view-business .batch-inventory-table th:nth-child(5){width:12%}#view-business .batch-inventory-table th:nth-child(6){width:15%}#view-business .batch-inventory-table th:last-child{width:12%}
@media(max-width:700px){.batch-inventory-table thead{display:none}.batch-inventory-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:6px;border-bottom:1px solid #e0e8e2}#view-business .batch-inventory-table tbody td{display:block;min-width:0;border:0;padding:7px}.batch-inventory-table td:first-child,.batch-inventory-table td:nth-child(3),.batch-inventory-table td:last-child{grid-column:1/-1}.batch-inventory-table td::before{content:attr(data-label);display:block;font-size:12px;color:#718176;margin-bottom:4px}#biz-batch-filter{max-width:100%;min-width:0}}

/* Keep lot number and both dates aligned in a single full-width column. */
.stock-lot-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0}.biz-fields .stock-lot-fields>label{min-width:0}.biz-fields .stock-lot-fields input{width:100%;min-width:0}

/* Removed legacy platform/import entry points. */
.nav-link[data-view="import"], [data-go="import"]{display:none!important}
