:root{--ink:#203038;--muted:#7b878c;--green:#267a64;--light:#edf5f0;--border:#e7eae8;--bg:#f5f6f3;--red:#bf5c49;--gold:#a17b42;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:0;background:none;color:inherit}a{color:var(--green);text-decoration:none}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.8px;font-weight:650}h2{font-size:17px;font-weight:600}h3{font-size:15px}p{line-height:1.75}.shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:#172e35;color:#b4c2c2;position:fixed;inset:0 auto 0 0;width:224px;padding:30px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 14px 30px;color:#fff;font-weight:600;font-size:18px}.brand-symbol{width:34px;height:34px;display:grid;place-items:center;border:1px solid #98b3a8;border-radius:10px;color:#d7e7d2;font-family:serif;font-size:23px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#8da8a7;margin-top:5px}.company{border:1px solid #385057;border-radius:8px;margin:0 8px 27px;padding:12px;display:flex;gap:8px;align-items:center}.company span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#dbe4df;font-size:12px}.nav-group{font-size:10px;letter-spacing:2px;color:#789397;margin:15px 16px 10px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;gap:12px;align-items:center;text-align:left;padding:12px 15px;border-radius:7px;color:#acbfc0}.nav button.active{background:#315149;color:#e1edcd}.nav button:hover{background:#263e43;color:#fff}.nav svg{width:18px;height:18px;flex-shrink:0}.sidebar-foot{margin-top:auto;padding:25px 12px 0;font-size:11px;line-height:1.9;color:#829b9c}.status-dot{display:inline-block;background:#96be9e;width:6px;height:6px;border-radius:50%;margin-right:6px}.main{grid-column:2;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 38px;background:#fafbf8}.crumb{color:#88938f;font-size:12px}.crumb b{color:#374940;font-weight:500;margin-left:10px}.top-actions{display:flex;align-items:center;gap:16px;font-size:12px}.avatar{background:#e3eade;border-radius:50%;height:32px;width:32px;display:grid;place-items:center;color:#557256}.content{padding:34px 38px 50px;max-width:1620px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:18px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8a9690;margin-bottom:10px}.subtitle{color:var(--muted);font-size:12px;margin-top:9px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{background:#fff;border:1px solid #dce2dc;padding:9px 15px;border-radius:6px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.btn:hover{background:#f0f4ee}.btn.primary{background:#2f6856;border-color:#2f6856;color:#fff}.btn.primary:hover{background:#245342}.btn.danger{color:var(--red)}.btn.small{padding:6px 9px;font-size:11px}.btn svg{width:15px;height:15px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{border:1px solid var(--border);border-radius:9px;padding:21px 22px;background:#fff}.stat-label{display:flex;justify-content:space-between;align-items:center;color:#78877f;font-size:12px}.stat-label svg{width:17px;height:17px;color:#a5b1a7}.stat-value{font-size:29px;letter-spacing:-.8px;margin:15px 0 10px;font-weight:600;font-variant-numeric:tabular-nums}.stat-note{font-size:11px;color:#8b958e}.stat-note.good{color:var(--green)}.grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px}.panel{background:#fff;border:1px solid var(--border);border-radius:9px;overflow:hidden;margin-bottom:22px}.panel-head{padding:21px 23px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eef0eb;gap:12px}.panel-body{padding:22px}.panel-head a,.text-btn{font-size:12px;color:var(--green)}.notice{background:#edf2e9;border:1px solid #e0e8da;padding:14px 18px;border-radius:7px;color:#5c715c;font-size:12px;line-height:1.8;margin-bottom:22px}.notice.warning{background:#fcf6ea;border-color:#ede3d0;color:#98733f}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 22px;border-bottom:1px solid var(--border);flex-wrap:wrap}.search{position:relative;max-width:340px;flex:1;min-width:180px}.search input{padding-left:34px;background:#f8faf7;border-color:#e6ebe4;width:100%}.search svg{position:absolute;left:11px;top:10px;width:15px;height:15px;color:#89968a}.filter-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.tabs{display:flex;gap:24px;margin-bottom:24px;border-bottom:1px solid #dde3da;overflow-x:auto}.tabs button{padding:0 2px 14px;font-size:13px;color:#889287;white-space:nowrap;border-bottom:2px solid transparent}.tabs button.active{color:#2f6856;border-color:#2f6856;font-weight:600}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{color:#879186;background:#fbfcf9;font-weight:500;padding:13px 21px;white-space:nowrap}td{padding:17px 21px;border-top:1px solid #edf0e9;line-height:1.6;vertical-align:middle}td.name{font-weight:550;min-width:160px}td small{display:block;color:#91988e;font-size:10px;font-weight:400;margin-top:4px}.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.badge{display:inline-flex;padding:3px 8px;border-radius:4px;background:#f1f3ee;color:#879080;font-size:10px;white-space:nowrap}.badge.green{background:#edf5ec;color:#5c895c}.badge.red{background:#faeeea;color:#b46c58}.badge.gold{background:#f8f2e7;color:#a48550}.badge.blue{background:#edf2f6;color:#68879c}.empty{padding:50px 20px;text-align:center;color:#859080;line-height:2}.empty .empty-icon{width:44px;height:44px;display:grid;place-items:center;background:#f1f5ec;border-radius:12px;margin:0 auto 12px;color:#8b9b7c}.empty p{font-size:12px;margin-bottom:14px}.task-line{display:flex;gap:13px;padding:17px 22px;border-bottom:1px solid #eff1eb;align-items:flex-start}.task-line:last-child{border:0}.check{width:17px;height:17px;border:1px solid #d0d9ca;border-radius:5px;flex-shrink:0;margin-top:2px}.check.done{background:#43785c;border-color:#43785c;color:white}.task-line .task-text{flex:1;min-width:0}.task-title{font-size:13px}.task-meta{font-size:11px;color:#97a08f;margin-top:7px}.task-meta span{margin-right:12px}.progress{height:5px;background:#eef2e9;border-radius:5px;overflow:hidden;margin-top:8px}.progress i{height:100%;display:block;background:#90aa79}.activity{padding:15px 22px;display:flex;gap:12px}.activity .dot{width:7px;height:7px;border-radius:50%;background:#aec19d;margin-top:7px}.activity p{font-size:12px}.activity small{color:#949d8c;font-size:10px}.intro-card{padding:25px;background:#e9efdf;border-radius:9px;margin-bottom:22px;position:relative}.intro-card h3{font-size:17px;color:#425b3d;margin-bottom:10px}.intro-card p{font-size:12px;color:#7a8971;margin-bottom:18px}.intro-mark{position:absolute;right:22px;top:20px;font-size:70px;font-family:serif;color:#d4dfc6}.mini-total{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf0e9;font-size:12px}.mini-total:last-child{border:0}.bar{width:55%;height:7px;background:#f0f3eb;border-radius:4px}.bar i{display:block;height:100%;background:#80a285;border-radius:4px}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sop-card{background:white;border:1px solid var(--border);border-radius:8px;margin-bottom:13px;padding:20px 23px}.sop-card h3{font-size:14px;line-height:1.7}.sop-card .answer{white-space:pre-wrap;font-size:12px;line-height:1.95;color:#6f7d71;margin:14px 0;padding:14px 17px;border-radius:5px;background:#f7f9f4}.sop-top{display:flex;justify-content:space-between;gap:12px}.sop-tags{display:flex;gap:7px;align-items:center;margin-top:9px}.sop-foot{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#9aa18f;gap:10px}.sop-action{font-size:11px;color:#8c795a;margin-bottom:13px;white-space:pre-wrap}.modal-overlay{position:fixed;inset:0;background:#10292380;z-index:30;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(3px)}.modal{background:#fafbf8;width:660px;max-width:100%;max-height:90vh;overflow:auto;border-radius:12px;box-shadow:0 20px 70px #10292333}.modal.wide{width:1000px}.modal-head{display:flex;justify-content:space-between;padding:22px 25px;border-bottom:1px solid var(--border);position:sticky;top:0;background:#fafbf8;z-index:1}.modal-head button{font-size:23px;color:#87917f}.modal-body{padding:24px 25px}.modal-foot{padding:18px 25px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;background:#fff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#687866}.field.full{grid-column:1/-1}.field small{font-size:10px;color:#919a8a}.field input,.field select,.field textarea,input.control,select.control,textarea.control{width:100%;border:1px solid #dce3d7;background:#fff;border-radius:6px;padding:10px 11px;color:#34432f;min-height:38px}input[type=checkbox]{width:auto;min-height:0}textarea{resize:vertical;line-height:1.7;min-height:95px}input:focus,select:focus,textarea:focus{border-color:#82a178;outline:2px solid #e6efdf}.compact{max-width:200px}.helper{font-size:11px;color:#8b977f;line-height:1.8;margin:12px 0}.form-error{color:#b05e4e;background:#faeae5;padding:10px 13px;border-radius:5px;font-size:12px;margin-bottom:15px;display:none}.form-error.visible{display:block}.cost-items{margin-top:22px}.cost-line{display:grid;grid-template-columns:1.7fr 1fr 1fr 28px;gap:8px;margin:8px 0}.calc-result{background:#eaf0e2;border-radius:8px;padding:21px;margin-top:23px}.calc-result .result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.result-grid small{display:block;font-size:11px;color:#849177}.result-grid b{display:block;font-size:21px;margin-top:9px;color:#355c3d}.upload-zone{border:1px dashed #aebfa3;border-radius:9px;background:#f4f7ee;padding:28px;text-align:center;color:#7e9171}.upload-zone input{margin:18px auto;max-width:100%}.file-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.file-card{border:1px solid var(--border);border-radius:9px;overflow:hidden;background:white}.file-preview{height:145px;background:#eef2e8;display:flex;align-items:center;justify-content:center;font-size:32px;color:#94a386}.file-preview img,.file-preview video{width:100%;height:100%;object-fit:contain}.file-info{padding:15px}.file-info strong{font-size:12px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.file-info small{font-size:10px;color:#929d86;display:block;margin:8px 0 13px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-aside{background:#193b3b;color:#e6eddc;padding:10vh 8vw;display:flex;flex-direction:column;justify-content:center}.login-aside h1{font-size:43px;font-family:serif;line-height:1.65;margin:50px 0 20px;letter-spacing:1px}.login-aside p{font-size:13px;color:#a5bcb1;max-width:340px}.login-line{width:60px;height:2px;background:#b7c9a0;margin:35px 0}.login-main{display:flex;align-items:center;justify-content:center;padding:40px}.login-box{width:360px}.login-box h2{font-size:26px;margin-bottom:12px}.login-box .field{margin:20px 0}.login-box .btn{width:100%;padding:12px;margin-top:7px}.login-note{font-size:11px;color:#94a087;margin-top:23px;line-height:1.9}.loading{display:grid;place-items:center;height:100vh;color:#74836b}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(30px);background:#243e32;color:#fff;padding:12px 22px;border-radius:8px;z-index:60;opacity:0;pointer-events:none;transition:.2s;font-size:13px;box-shadow:0 5px 25px #122e2420}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.mobile-toggle{display:none}.metric-list{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#829077}.metric-list b{color:#42673c}.inline-links{display:flex;gap:12px}.history{padding:15px;border:1px solid var(--border);border-radius:6px;margin-bottom:10px;font-size:12px}.history pre{white-space:pre-wrap;color:#6f8066;font-size:11px;max-height:170px;overflow:auto}.api-code{background:#1e3737;color:#d0e5c6;border-radius:7px;padding:16px;white-space:pre-wrap;word-break:break-all;font-family:monospace;font-size:12px;line-height:1.7}.checkbox-row{display:flex;gap:9px;align-items:center;font-size:12px;margin:16px 0}.strip{padding:12px 22px;background:#fafbf7;color:#8c9781;font-size:11px;border-top:1px solid var(--border)}
.company svg{width:20px;height:20px;flex-shrink:0}.company select{min-width:0;max-width:132px;border:0;background:#172e35;color:#dbe4df;font-size:12px}.search input{height:38px;border:1px solid #e0e6db;border-radius:6px;color:var(--ink);font-size:12px}.sop-top>.btn{align-self:flex-start;min-height:32px}.modal-foot{position:sticky;bottom:0;z-index:1}.field select{min-width:0}.file-preview>svg{width:40px;height:40px}.empty-icon>svg{width:24px;height:24px}
.storage-meter{display:flex;justify-content:space-between;font-size:12px;color:#74836a;gap:12px}.storage-progress{display:block;width:100%;height:11px;margin:17px 0 20px;border:0;border-radius:8px;accent-color:#48795d;background:#edf1e8}.storage-progress::-webkit-progress-bar{background:#edf1e8;border-radius:8px}.storage-progress::-webkit-progress-value{background:#6c986b;border-radius:8px}.permission-matrix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:20px}.permission-matrix label{display:flex;flex-direction:column;gap:8px;color:#71826b;font-size:12px}.plan-item{display:flex;justify-content:space-between;align-items:center;padding:10px 0;gap:16px;border-bottom:1px solid var(--border)}.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.section-label{margin-top:22px}.checkbox-grid .checkbox-row{margin:10px 0}.sidebar{overflow-y:auto}.sidebar .nav{flex-shrink:0}
.product-thumb{width:56px;height:56px;object-fit:contain;border:1px solid #e3e8df;border-radius:7px;background:#f6f8f2;display:inline-flex;align-items:center;justify-content:center}.product-thumb svg{width:23px;height:23px;color:#9caa94}.product-cover{width:180px;height:200px;object-fit:contain;background:#f5f7f0;border:1px solid #e3e8df;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.product-cover svg{width:50px;height:50px;color:#9caa94}.product-overview{display:flex;align-items:flex-start;gap:25px}.product-overview-info{flex:1;min-width:0}.product-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:17px;flex-wrap:wrap}.image-upload-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:12px;background:#f1f5ec;border-radius:8px}.image-upload-row input{max-width:250px}.parameter-definition{display:grid;grid-template-columns:1.2fr 80px 85px 1.4fr 65px 25px;gap:9px;align-items:center;margin:13px 0}.parameter-definition input,.parameter-definition select{min-width:0}.image-placeholder{color:#a5b297}
@media(max-width:760px){.product-overview{flex-direction:column}.product-cover{width:100%;height:210px}.product-overview-info{width:100%}.parameter-definition{grid-template-columns:1fr 80px 65px}.parameter-definition .parameter-options{grid-column:1/2}.product-section-heading>.actions{width:100%}.product-thumb{width:45px;height:45px}}
@media(max-width:760px){.permission-matrix,.checkbox-grid{grid-template-columns:1fr 1fr}.storage-meter{font-size:11px}}
@media(min-width:1500px){.content{padding-top:42px}.stat{padding:26px}}
@media(max-width:1150px){.sidebar{width:190px;padding-inline:12px}.shell{grid-template-columns:190px 1fr}.content{padding:28px 25px}.topbar{padding:0 25px}.grid-main{grid-template-columns:1fr}.file-grid{grid-template-columns:repeat(3,1fr)}.stat{padding:18px 15px}.stat-value{font-size:25px}}
@media(max-width:760px){.shell{display:block}.sidebar{transform:translateX(-100%);width:224px;transition:.2s;box-shadow:15px 0 35px #10292322}.sidebar.open{transform:translateX(0)}.main{width:100%}.topbar{height:60px;padding:0 18px}.mobile-toggle{display:block;font-size:22px;margin-right:10px}.crumb{display:flex;align-items:center;font-size:11px}.top-actions{gap:8px}.top-actions .date{display:none}.content{padding:24px 16px}.page-head{align-items:flex-start;flex-direction:column;margin-bottom:22px}.page-head .actions{width:100%}h1{font-size:25px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:17px 15px}.stat-value{font-size:25px;margin:12px 0}.stat-note{font-size:10px}.stat-label{font-size:11px}.split{grid-template-columns:1fr;gap:0}.file-grid{grid-template-columns:repeat(2,1fr);gap:12px}.panel-head{padding:17px}.toolbar{padding:14px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-overlay{padding:10px}.modal{max-height:95vh}.modal-body{padding:19px}.modal-head{padding:18px}.modal-foot{padding:15px}.cost-line{grid-template-columns:1.3fr 1fr 75px 24px;gap:5px}.calc-result .result-grid{grid-template-columns:1fr 1fr}.sop-card{padding:17px}.sop-foot{align-items:flex-start;flex-direction:column}.sop-top{align-items:flex-start}.login{display:block}.login-aside{padding:30px}.login-aside h1{font-size:26px;margin:12px 0}.login-aside .brand{padding:0 0 10px}.login-aside p,.login-line{display:none}.login-main{padding:35px 24px}.tabs{gap:20px}.top-actions .logout-label{display:none}}

.shipping-band,.shipping-package{grid-template-columns:minmax(100px,1fr) minmax(100px,1fr) 32px}.fee-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.logistics-cost-tools{margin-bottom:12px}.fee-choices .checkbox-row{padding:10px;border:1px solid var(--line);border-radius:8px}@media(max-width:680px){.fee-choices{grid-template-columns:1fr}.shipping-package{grid-template-columns:minmax(0,1fr) 80px 28px}.product-section-heading .actions{flex-wrap:wrap}}

.modal{display:flex;flex-direction:column;overflow:hidden}.modal-head,.modal-foot{position:relative;flex-shrink:0}.modal-body{overflow:auto;min-height:0;overscroll-behavior:contain}.fee-choices .checkbox-row{border-color:var(--border)}

.component-row{display:grid;grid-template-columns:130px minmax(180px,1fr) 85px 120px 25px;gap:8px;margin:10px 0;align-items:start}.component-source{display:flex;flex-wrap:wrap;gap:7px;min-width:0}.component-source .control{min-width:0;flex:1 1 95px}.component-source select{width:100%}.component-row button{padding:10px 0}@media(max-width:680px){.component-row{grid-template-columns:minmax(0,1fr) 85px 25px;padding:12px 0;border-bottom:1px solid var(--border)}.component-type{grid-column:1/3}.component-source{grid-column:1/4}.component-quantity{grid-column:2;grid-row:3}.component-basis{grid-column:1;grid-row:3}.component-row>button{grid-column:3;grid-row:1}}

.categorized-row{grid-template-columns:120px 120px minmax(210px,1fr) 85px 110px 26px;align-items:start}.categorized-row[data-batch="1"]{grid-template-columns:115px 110px minmax(180px,1fr) 70px 100px 100px 24px}.categorized-row .component-source{flex-direction:column}.categorized-row .component-source .control{flex:auto;width:100%}.categorized-row .component-source .component-weight{font-size:12px}@media(max-width:680px){.categorized-row,.categorized-row[data-batch="1"]{grid-template-columns:minmax(0,1fr) 95px 28px;gap:8px}.categorized-row .component-stage{grid-row:1;grid-column:1}.categorized-row .component-type{grid-row:2;grid-column:1/3}.categorized-row .component-source{grid-row:3;grid-column:1/4}.categorized-row .component-quantity{grid-row:4;grid-column:2}.categorized-row .component-basis{grid-row:4;grid-column:1}.categorized-row .batch-basis{grid-row:5;grid-column:1/3}.categorized-row>button{grid-row:1;grid-column:3}}

/* Row operations use consistent text links across lists and dialogs. */
.table-actions{min-width:150px}.row-actions{display:flex;align-items:center;flex-wrap:wrap;column-gap:18px;row-gap:4px}.row-actions .actions,.row-actions .inline-links{display:contents}.table-actions button,.table-actions .btn,.table-actions .btn.primary,.table-actions a{display:inline-flex;align-items:center;justify-content:flex-start;min-height:28px;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--green);font-size:12px;font-weight:400;line-height:1.5;white-space:nowrap;text-decoration:none}.table-actions button:hover,.table-actions .btn:hover,.table-actions a:hover{background:transparent;color:#185d49;text-decoration:underline;text-underline-offset:4px}.table-actions button:focus-visible,.table-actions a:focus-visible{outline:2px solid #79a794;outline-offset:4px;border-radius:2px}.table-actions [data-action^="delete"],.table-actions [data-action^="connectiondelete"],.table-actions [data-action^="memberremove"],.table-actions [data-action^="revokekey"]{color:var(--red)}.table-actions [data-action^="delete"]:hover,.table-actions [data-action^="connectiondelete"]:hover,.table-actions [data-action^="memberremove"]:hover,.table-actions [data-action^="revokekey"]:hover{color:#9e4131}.table-actions button:disabled{color:var(--muted);text-decoration:none}@media(max-width:680px){.row-actions{column-gap:16px}.table-actions button,.table-actions a{min-height:32px}}

.section-links{margin-bottom:18px;gap:22px}.flow-row .flow-source{display:flex;flex-direction:column;gap:8px;min-width:0}.flow-source .control{width:100%;flex:auto}.flow-quote{padding:8px 10px;border:1px solid var(--border);background:#f1f6f1;border-radius:6px;line-height:1.6}.flow-basis[hidden]{display:none}@media(max-width:680px){.flow-row .flow-stage{grid-row:1;grid-column:1}.flow-row .flow-type{grid-row:2;grid-column:1/3}.flow-row .flow-source{grid-row:3;grid-column:1/4}.flow-row .flow-quantity{grid-row:4;grid-column:2}.flow-row .flow-basis{grid-row:4;grid-column:1}.section-links{column-gap:18px;row-gap:8px}}
[hidden]{display:none!important}
.production-line{padding:16px 0;border-bottom:1px solid var(--line,#e1e7de);grid-template-columns:140px minmax(190px,1fr) 110px 180px auto;gap:12px;align-items:center}
.production-line .control{min-width:0;width:100%}
.production-line:has(.prod-source option[value="factory"]:checked) .prod-name,.production-line:has(.prod-source option[value="factory"]:checked) .prod-amount{display:none}
.production-line:has(.prod-source option[value="manual"]:checked) .prod-project,.production-line:has(.prod-source option[value="manual"]:checked) .prod-basis{display:none}
@media(max-width:700px){.production-line{grid-template-columns:1fr 1fr}.production-line .prod-project{grid-column:1/-1}.production-line .prod-name{grid-column:1/-1}}
.flow-row:has(.flow-type option[value="operating"]:checked) .flow-quantity,.flow-row:has(.flow-type option[value="operating"]:checked) [data-action="removeflow"],.flow-row:has(.flow-type option[value="product_production"]:checked) [data-action="removeflow"],.flow-row:has(.flow-type option[value="inbound"]:checked) [data-action="removeflow"]{display:none}
.flow-row:has(.flow-type option[value="operating"]:checked){grid-template-columns:130px 160px minmax(250px,1fr)}
.flow-op-amount{max-width:220px}
@media(max-width:700px){.flow-row:has(.flow-type option[value="operating"]:checked){grid-template-columns:1fr 1fr}.flow-row:has(.flow-type option[value="operating"]:checked) .flow-source{grid-column:1/-1}}
.flow-row:has(.flow-type option[value="operating"]:checked) .flow-stage,.flow-row:has(.flow-type option[value="operating"]:checked) .flow-type{display:none}
.flow-row:has(.flow-type option[value="operating"]:checked){display:block}
.flow-row:has(.flow-type option[value="operating"]:checked) .flow-source{display:flex;align-items:center;justify-content:space-between;gap:16px}
.flow-row:has(.flow-type option[value="operating"]:checked) .helper{color:var(--text,#263630);font-weight:600}
@media(max-width:700px){.flow-row:has(.flow-type option[value="operating"]:checked) .flow-source{align-items:stretch;flex-direction:column}.flow-op-amount{max-width:none}}
.purchase-source-fields{grid-column:1/-1;width:100%;margin-top:4px}
.purchase-source-fields .purchase-platform-custom{margin-top:10px}
.purchase-contact-options{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center;padding:4px 0}
.purchase-region-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.purchase-region-fields .control{width:100%;min-width:0}
@media(max-width:600px){.purchase-region-fields{grid-template-columns:1fr}.purchase-contact-options{gap:10px 20px}}
.tabs button.cost-unconfigured{color:var(--red);border-color:transparent}
.tabs button.cost-unconfigured.active{border-color:var(--red)}
.tab-unconfigured{display:inline-block;margin-left:7px;font-size:11px;font-weight:500;background:#f9ede9;color:#a94334;padding:2px 6px;border-radius:4px;line-height:1.5;vertical-align:middle}
.product-cost-warning{padding:13px 17px;margin:0 0 18px;color:#a94334;background:#fcf2ef;border:1px solid #efd4cc;border-radius:8px;font-size:13px}
.operating-name-custom{margin-top:10px}
.warehouse-stock-line{display:flex;align-items:center;gap:20px;justify-content:space-between;min-width:180px;padding:4px 0}
.warehouse-stock-line b{font-weight:500;white-space:nowrap}
.text-btn.cost-not-set,.text-btn.cost-not-set small{color:var(--red)}
#product-transport-form{margin:20px 0}
#product-transport-form .actions{margin:18px 0}
.shipping-package-choice{display:grid;grid-template-columns:minmax(200px,1fr) 100px 150px auto;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);align-items:center}
.shipping-package-choice .control{min-width:0;width:100%}
#sku-shipping-form>.notice{margin-bottom:20px}
@media(max-width:700px){.shipping-package-choice{grid-template-columns:1fr 1fr}.shipping-package-choice .ship-package{grid-column:1/-1}}
.operating-panel-actions{margin-left:auto;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.asset-folder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}
.asset-folder-card{display:flex;align-items:center;text-align:left;gap:18px;padding:22px;border:1px solid var(--border);border-radius:12px;background:#fff;transition:background .15s,border-color .15s}
.asset-folder-card:hover{background:#f7faf7;border-color:#aac5b8}
.asset-folder-icon{width:60px;height:50px;position:relative;flex:none;color:#6a9b88}
.asset-folder-icon>svg{width:60px;height:50px}.asset-folder-icon.blue{color:#6a95bb}.asset-folder-icon.purple{color:#9983b9}.asset-folder-icon.amber{color:#c1a165}.asset-folder-icon.teal{color:#5e9b8d}.asset-folder-icon.gray{color:#91a19b}
.asset-folder-type{position:absolute;bottom:5px;right:9px;background:#fff;border-radius:5px;width:23px;height:23px;display:grid;place-items:center;box-shadow:0 2px 5px #2030380c}.asset-folder-type svg{width:15px;height:15px}
.asset-folder-copy strong{display:block;font-size:14px;font-weight:600}.asset-folder-copy small{display:block;margin-top:9px;color:var(--muted);font-size:12px}.asset-folder-arrow{margin-left:auto;color:#9bad9f}
.asset-folder-breadcrumb{display:flex;align-items:center;gap:22px;padding:18px 22px;border-bottom:1px solid var(--border);color:var(--muted);font-size:12px}
@media(max-width:1100px){.asset-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.asset-folder-grid{grid-template-columns:1fr;gap:12px}.asset-folder-card{padding:17px}.operating-panel-actions{width:100%;gap:8px}.panel-head:has(.operating-panel-actions){flex-wrap:wrap;gap:14px}}
.warehouse-unconfigured{color:var(--red);font-weight:600}
.warehouse-rate-line{display:flex;justify-content:space-between;gap:16px;min-width:160px;padding:4px 0;font-size:12px;line-height:1.6}
.warehouse-rate-line b{font-weight:500;white-space:nowrap}
.cost-not-set{color:var(--red)}
.sku-product-row{display:grid;grid-template-columns:minmax(0,340px) 100px auto;gap:12px;align-items:center;justify-content:start;margin:10px 0}.sku-product-row .control{width:100%;min-width:0}.sku-product-row .sku-remove-product{white-space:nowrap}#profit-sku-results{overflow-x:auto}#profit-sku-results table{min-width:1280px}#profit-preview .result-grid{margin-top:18px}@media(max-width:600px){.sku-product-row{grid-template-columns:minmax(0,1fr) 75px auto;gap:8px}}

/* Shared spacing for actions after detail lists and divider lines. */
:root{--action-divider-gap:16px}
:is(#production-lines,#shipping-only-packages,#shipping-packages,#shipping-bands,#packing-bands,#cost-lines,#parameter-definitions):not(:empty)+:is(button,.btn,.text-btn,.actions){margin-top:var(--action-divider-gap)}
:is(.modal-body,.panel-body,form)>:is(hr,[role="separator"])+:is(button,.btn,.text-btn,.actions,.filter-row){margin-top:var(--action-divider-gap)}
:is(.panel-head,.toolbar,.strip,.asset-folder-breadcrumb)+:is(button,.btn,.text-btn,.actions){margin-top:var(--action-divider-gap);margin-left:22px;margin-right:22px;margin-bottom:var(--action-divider-gap)}
:is(.production-line,.shipping-package-choice,.component-row,.mini-total,.plan-item)+:is(button,.btn,.text-btn,.actions){margin-top:var(--action-divider-gap)}
:is(#production-lines,#shipping-only-packages,#shipping-packages,#shipping-bands,#packing-bands,#cost-lines,#parameter-definitions)+:is(button,.btn,.text-btn)+.helper{margin-top:16px}
@media(max-width:680px){:root{--action-divider-gap:14px}}

/* Profit calculator: separate each input and summary section. */
#single-profit-details{margin-top:20px}
#single-profit-details>.image-upload-row{margin-bottom:22px}
#single-profit-details>.form-grid{margin-bottom:18px}
#single-profit-details>.helper{margin-bottom:20px}
#single-profit-details .profit-save-actions{display:flex;justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
@media(max-width:680px){#single-profit-details{margin-top:16px}#single-profit-details>.image-upload-row{margin-bottom:18px}.profit-save-actions .btn{min-height:42px}}

.sop-attachment-upload{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}

.media-preview{text-align:center}.media-preview img,.media-preview video{display:block;max-width:100%;max-height:65vh;margin:0 auto;object-fit:contain;border-radius:8px}.media-preview video{width:100%;background:#14272c}.media-preview .helper{margin-top:14px}

.inline-image-preview{display:block;padding:0;line-height:0;width:150px;height:116px;border-radius:8px;overflow:hidden;background:#f3f5f1;border:1px solid var(--border)}.inline-image-preview img{width:100%;height:100%;object-fit:contain}.inline-video-preview{display:block;width:220px;height:140px;object-fit:contain;background:#172e35;border-radius:8px}.inline-file-placeholder{display:grid;place-items:center;width:80px;height:80px;background:#f3f5f1;border-radius:8px;color:var(--muted)}.inline-file-placeholder svg{width:28px;height:28px}@media(max-width:680px){.inline-image-preview{width:116px;height:100px}.inline-video-preview{width:180px;height:120px}}

/* Content below dividers uses the same spacing as action rows. */
:is(.mini-total,.plan-item,.task-line,.production-line,.shipping-package-choice,.component-row)+:is(.notice,.helper,p,.form-grid,.field,.section-label,.result-grid,form){margin-top:var(--action-divider-gap)}
:is(.modal-body,.panel-body,form)>:is(hr,[role="separator"])+:not([hidden]){margin-top:var(--action-divider-gap)}
:is(.panel-head,.toolbar,.strip,.asset-folder-breadcrumb,.table-wrap,table)+:is(.notice,.helper){margin-top:var(--action-divider-gap)}
.panel>:is(.notice,.helper){margin-left:22px;margin-right:22px}
.panel-body>.notice:last-child{margin-bottom:0}
@media(max-width:680px){.panel>:is(.notice,.helper){margin-left:18px;margin-right:18px}}

/* Compact material thumbnails; original image remains available on click. */
.inline-image-preview{width:75px;height:58px}
@media(max-width:680px){.inline-image-preview{width:58px;height:50px}}
.product-sku-rois{min-width:245px}.product-sku-roi-item+.product-sku-roi-item{margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}#product-profit-overview{overflow-x:auto}#product-profit-overview table{min-width:1450px}#product-profit-overview tfoot{background:#edf5f0}#product-profit-overview td .product-thumb{width:50px;height:50px}

.toolbar .filter-row:has([data-sop-param]){display:flex;flex-direction:row;flex-wrap:wrap;gap:12px;align-items:center}.toolbar .filter-row select[data-sop-param]{width:170px;min-width:140px;flex:0 1 170px;margin:0}@media(max-width:680px){.toolbar .filter-row:has([data-sop-param]){width:100%}.toolbar .filter-row select[data-sop-param]{flex:1 1 140px;max-width:100%}}
.knowledge-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0}.knowledge-tools select{width:auto;min-width:220px;max-width:100%}.knowledge-content{display:block;width:100%;min-height:440px;margin-top:20px;padding:20px;line-height:1.9;resize:vertical;white-space:pre-wrap;font-family:inherit}

.stock-flow-count{padding:4px 0;border:0;background:transparent;font-variant-numeric:tabular-nums;line-height:1.5}.stock-flow-count:hover{text-decoration:underline;text-underline-offset:3px}table:has(.stock-flow-count) .row-actions,table:has(.stock-flow-count) .row-actions>.actions{gap:8px;justify-content:flex-start}table:has(.stock-flow-count) .table-actions{min-width:120px}table:has(.stock-flow-count) .table-actions button{padding:2px 0;min-height:28px}

/* Compact stock ledgers: factory materials, warehouse goods and packaging. */
.table-wrap:has(.stock-flow-count) table{width:100%;font-size:12px}
.table-wrap:has(.stock-flow-count) th{padding:11px 10px}
.table-wrap:has(.stock-flow-count) td{padding:11px 10px;line-height:1.45}
.table-wrap:has(.stock-flow-count) td.name{min-width:0;width:62px}
.table-wrap:has(.stock-flow-count) .product-thumb{width:42px;height:42px;border-radius:6px}
.table-wrap:has(.stock-flow-count) td small{margin-top:3px;line-height:1.4}
.table-wrap:has(.stock-flow-count) td:nth-child(2){max-width:240px;overflow-wrap:anywhere}
.table-wrap:has(.stock-flow-count) .table-actions{min-width:110px;padding-left:8px;padding-right:8px}
.table-wrap:has(.stock-flow-count) .row-actions,.table-wrap:has(.stock-flow-count) .row-actions>.actions{column-gap:8px;row-gap:2px}
.table-wrap:has(.stock-flow-count) .warehouse-stock-line{gap:10px;padding:2px 0}
@media(max-width:680px){.table-wrap:has(.stock-flow-count) th,.table-wrap:has(.stock-flow-count) td{padding:10px 8px}.table-wrap:has(.stock-flow-count) .product-thumb{width:36px;height:36px}.table-wrap:has(.stock-flow-count) .table-actions button{min-height:32px}}

#product-profit-overview table{min-width:1120px;font-size:12px}#product-profit-overview th,#product-profit-overview td{padding:10px 9px;line-height:1.45}#product-profit-overview td.name{min-width:0;width:50px}#product-profit-overview td .product-thumb{width:38px;height:38px}#product-profit-overview td:nth-child(2){max-width:210px;overflow-wrap:anywhere}#product-profit-overview .table-actions{min-width:104px}#product-profit-overview .row-actions{gap:8px}#product-profit-overview .panel-body{padding:14px 16px}#product-profit-overview tfoot td{white-space:nowrap}
/* Keep factory controls beside search on desktop and wrap only on narrow screens. */
.toolbar .filter-row:has(#factory-material-filter){display:flex;flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}
.toolbar #factory-material-filter{width:200px;margin:0;flex:0 1 200px}
.task-deadline-section{border-top:1px solid var(--border);margin-top:20px;padding-top:4px}
.task-deadline-section #task-due-field{max-width:440px;margin-bottom:4px}
@media(max-width:680px){.toolbar .filter-row:has(#factory-material-filter){width:100%}.toolbar #factory-material-filter{flex:1 1 150px}}
.production-line:has(.prod-source option[value="production"]:checked) :is(.prod-name,.prod-amount,.prod-basis){display:none}
.production-line:has(.prod-source option[value="manual"]:checked){grid-template-columns:140px minmax(190px,1fr) 110px 180px auto}
.production-line:has(.prod-source option[value="production"]:checked){grid-template-columns:140px minmax(190px,1fr) 110px auto}
.factory-price-includes{display:flex;gap:20px;flex-wrap:wrap;align-items:center}.factory-price-includes .checkbox-row{margin:6px 0}
@media(max-width:700px){.production-line:has(.prod-source option[value="manual"]:checked),.production-line:has(.prod-source option[value="production"]:checked){grid-template-columns:1fr 1fr}}

.purchase-link-icons{display:inline-flex;gap:7px;align-items:center;vertical-align:middle;margin-left:6px}
.purchase-link-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--green);width:24px;height:24px;padding:3px;border:0;background:transparent;border-radius:4px;vertical-align:middle}
.purchase-link-icon svg{width:16px;height:16px}.purchase-link-icon:hover{background:var(--light)}

/* Optional dates stay visually blank until the user edits them. */
#simple-batch-form input.optional-date-empty:not(:focus)::-webkit-datetime-edit{color:transparent}

.receipt-transport-fields{margin-top:20px;border-top:1px solid var(--border);padding-top:16px}
.receipt-transport-fields .full{grid-column:1/-1}.receipt-transport-fields [hidden]{display:none!important}
.toolbar .filter-row:has(#production-status-filter){display:flex;flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap}.toolbar #production-status-filter{width:170px;margin:0}

.inbound-bottom-notes{margin-top:20px}.inbound-bottom-notes textarea{min-height:90px}
#entity-form #inbound-unit-preview{margin-top:20px}

.badge.gold{background:#fff4d6;color:#9b6a10}
.toolbar .filter-row:has([data-shop-filter]){display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:center;max-width:100%}
.toolbar select[data-shop-filter]{width:150px;margin:0;min-width:120px}
@media(max-width:680px){.toolbar .filter-row:has([data-shop-filter]){width:100%}.toolbar select[data-shop-filter]{flex:1 1 130px}}

.shop-product-choices{max-height:320px;overflow:auto;border:1px solid var(--border);border-radius:6px;padding:10px 14px;margin-top:12px}.shop-product-choices .checkbox-row{margin:10px 0}

.shop-product-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}.shop-product-row select{flex:1;min-width:0}.shop-product-row .text-btn{flex-shrink:0}

.profit-net-value{font-size:1.12em;font-weight:800;color:var(--primary,#2e6857);white-space:nowrap}.profit-net-value.negative{color:#bf513e}.profit-formula{margin-top:20px;padding:16px 20px;background:#f4f7f3;border-radius:8px;line-height:1.8}.profit-formula p{margin:4px 0}

/* Compact SKU return-on-ad-spend table. */
#profit-sku-results table{font-size:12px;min-width:1080px}
#profit-sku-results th,#profit-sku-results td{padding:10px 8px;line-height:1.4}
#profit-sku-results th{white-space:nowrap}
#profit-sku-results td.name{min-width:0;width:46px}
#profit-sku-results .product-thumb{width:36px;height:36px;border-radius:5px}
#profit-sku-results td:nth-child(2){min-width:130px;max-width:185px;overflow-wrap:anywhere}
#profit-sku-results td small{font-size:11px;margin-top:3px;line-height:1.35}
#profit-sku-results .table-actions{min-width:78px}
#profit-sku-results .table-actions .btn{padding:0;border:0;background:none;font-size:12px;color:var(--green)}
#profit-sku-results .profit-net-value{font-size:13px;font-weight:800}
#profit-sku-results{overflow-x:auto}

.compact-sku-table table{font-size:12px}
.compact-sku-table th,.compact-sku-table td{padding:10px 8px;line-height:1.4}
.compact-sku-table .product-thumb{width:36px;height:36px;border-radius:5px}
.compact-sku-table td.name{min-width:0;width:46px}
.compact-sku-table td small{font-size:11px;margin-top:3px;line-height:1.35}
.compact-sku-table .row-actions,.compact-sku-table .inline-links{gap:8px}

.compact-product-archive table,.compact-factory-table table{font-size:12px}
.compact-product-archive th,.compact-product-archive td,.compact-factory-table th,.compact-factory-table td{padding:10px 8px;line-height:1.4}
.compact-product-archive .product-thumb,.compact-factory-table .product-thumb{width:36px;height:36px;border-radius:5px}
.compact-product-archive td.name,.compact-factory-table td.name{min-width:0;width:46px}
.compact-product-archive td small,.compact-factory-table td small{font-size:11px;margin-top:3px;line-height:1.35}
.compact-product-archive .actions,.compact-factory-table .row-actions,.compact-factory-table .inline-links{gap:8px}
#profit-sku-results td:nth-child(2) small{white-space:nowrap}
#profit-sku-results td:not(:nth-child(2)){white-space:nowrap}
.panel:has(>.toolbar)> .panel-body:has(+ #profit-sku-results){padding:12px 16px;border-bottom:1px solid var(--border)}
.common-platform-links{padding:12px 18px;display:flex;flex-direction:column;gap:10px}.common-platform-links>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.common-platform-links .btn{border:0;background:none;padding:0;font-size:11px;color:var(--muted)}

.current-account-info{display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}.current-account-info small{font-size:11px;color:var(--muted);max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:680px){.current-account-info small{max-width:190px}}

.sms-code-row{display:flex;align-items:flex-end;gap:12px;margin:16px 0}.sms-code-row .field{flex:1;margin:0;min-width:0}.sms-code-row .btn{height:42px;flex-shrink:0}

.avatar{padding:0;overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.account-avatar-editor{display:flex;gap:16px;align-items:center;margin:16px 0}.account-avatar-editor>img,.account-avatar-editor>.avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;flex-shrink:0}.account-avatar-editor .field{margin:0;flex:1}

.tenant-backup-column{width:calc((100% - 20px)/2)}@media(max-width:760px){.tenant-backup-column{width:100%}}
.login-box .sms-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.login-box .sms-code-row .field{width:100%;min-width:0;white-space:nowrap}.login-box .sms-code-row .btn{width:auto;min-width:112px;margin:0;height:42px}.login-box .sms-code-row input{width:100%;min-width:0}@media(max-width:380px){.login-box .sms-code-row{gap:8px}.login-box .sms-code-row .btn{min-width:100px;padding:9px 10px}}

.account-info-details p{margin:8px 0}.account-info-actions{margin-top:20px}
.product-delete-link{color:var(--red);white-space:nowrap}

.shop-list-compact th,.shop-list-compact td{padding:10px 12px;font-size:13px}.shop-list-compact td small{margin-top:3px}.shop-list-compact .btn{padding:4px 6px;min-height:28px;font-size:12px}.shop-money-compact{display:grid;grid-template-columns:repeat(2,max-content);gap:4px 14px}.shop-money-compact>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.shop-money-compact span{color:var(--muted);font-size:11px}.shop-money-compact .text-btn{padding:0;font-size:12px;white-space:nowrap}

.compact-product-archive .toolbar .filter-row{display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:nowrap}.compact-product-archive .toolbar .filter-row select{width:150px;min-width:110px;margin:0;flex:0 1 150px}

.toolbar .filter-row:has(#sku-product-filter){display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:nowrap}.toolbar .filter-row:has(#sku-product-filter) select{width:160px;min-width:110px;margin:0;flex:0 1 160px}.toolbar #sku-product-filter{width:240px;flex-basis:240px}

.shop-list-compact th,.shop-list-compact td{padding:8px 9px;line-height:1.4}.shop-list-compact .shop-products-compact{font-size:11px;line-height:1.5;max-width:230px;overflow-wrap:anywhere}.shop-list-compact .actions,.shop-list-compact .row-actions{gap:6px}.shop-list-compact .btn{padding:3px 5px;min-height:26px;font-size:11px}.shop-list-compact .shop-money-compact{gap:3px 10px}

.batch-cost-help{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-left:3px;border:1px solid currentColor;border-radius:50%;font-size:11px;font-weight:500;line-height:1;cursor:help;color:var(--muted);vertical-align:middle}.batch-cost-help:hover,.batch-cost-help:focus{color:var(--green)}

.overview-batch-product{display:flex;align-items:center;gap:9px;min-width:0}.overview-batch-product .product-thumb{width:32px;height:32px;min-width:32px;border-radius:4px}.overview-batch-product strong{display:block;font-size:13px;font-weight:600;line-height:1.45}.overview-batch-product small{display:block;font-size:10px!important;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}

/* Shared list typography; keep semantic emphasis and status colors. */
.table-wrap table th,.table-wrap table td{font-size:12px!important;line-height:1.45}
.table-wrap table td small,.table-wrap table th small{font-size:11px!important}
.table-wrap table td .btn,.table-wrap table td .text-btn,.table-wrap table td .badge{font-size:12px!important}
.table-wrap table td .shop-products-compact{font-size:12px}
.shop-list-compact table{width:100%;table-layout:auto}
.shop-list-compact th,.shop-list-compact td{padding:8px!important}
.shop-list-compact .shop-name-compact{max-width:190px;overflow-wrap:anywhere}
.shop-list-compact .shop-products-compact{max-width:190px;line-height:1.4}
.shop-list-compact .table-actions{min-width:0!important;width:1%;white-space:nowrap}
.shop-list-compact .shop-money-compact{gap:3px 8px}

.shop-products-compact>.text-btn{display:block;text-align:left;padding:0;line-height:1.45;white-space:normal}

.shop-list-compact .table-actions{min-width:80px!important}.shop-list-compact .table-actions .row-actions{display:flex;flex-direction:row;flex-wrap:nowrap;gap:10px}.shop-list-compact .table-actions .row-actions>.actions{display:contents}

.shop-money-compact .shop-money-updated{grid-column:1/-1;color:var(--muted);font-size:11px;white-space:nowrap;margin-top:4px}

.shop-money-updated[data-balance-updated]{cursor:help}

.task-bulk-toolbar{display:flex;align-items:center;gap:18px;padding:12px 22px;border-bottom:1px solid var(--border)}.task-bulk-toolbar label{display:flex;align-items:center;gap:6px;font-size:12px}.task-select{flex-shrink:0;width:15px;height:15px}

.task-quick-actions{display:flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}.task-completed-label{color:var(--green);font-size:12px}.task-quick-actions .text-btn:hover{text-decoration:underline}

.inspection-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.inspection-filters .control{width:auto;min-width:110px;margin:0}.inspection-filters #inspection-shop-filter{max-width:240px}.inspection-content-link{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-align:left;white-space:pre-wrap;max-width:360px;line-height:1.5}.inspection-full-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin-top:20px}

.shop-pinned-label{display:inline-block;margin-left:6px;padding:1px 4px;border-radius:3px;background:#fcf6ea;color:var(--gold);font-size:10px;vertical-align:middle}

.shop-related-count{font-variant-numeric:tabular-nums;min-width:24px;text-align:center}.shop-related-count:hover{text-decoration:underline}

.inspection-report{margin-top:20px;font-size:13px;line-height:1.85;overflow-wrap:anywhere}.inspection-report h2,.inspection-report h3,.inspection-report h4{margin:22px 0 10px;padding:9px 12px;border-left:3px solid var(--green);background:var(--light);font-size:15px}.inspection-report .inspection-risk-heading{border-left-color:var(--red);background:#fcf1ed;color:var(--red)}.inspection-report p{margin:8px 0;white-space:pre-wrap}.inspection-report ul,.inspection-report ol{margin:8px 0;padding-left:24px}.inspection-report li{padding:5px 0;border-bottom:1px solid #eef0eb}.inspection-report strong{font-weight:650}.inspection-report blockquote{margin:12px 0;padding:10px 14px;border-left:3px solid var(--gold);background:#fcf6ea}.inspection-report pre{padding:12px;background:#f4f6f4;border-radius:6px;overflow:auto;white-space:pre-wrap}.inspection-report code{font-family:monospace;background:#f1f4ef;padding:1px 3px}.inspection-report .table-wrap{margin:12px 0}.inspection-report table{width:100%}

.shop-platform-section+.shop-platform-section{border-top:8px solid var(--bg)}.shop-platform-heading{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#edf3ef;border-bottom:1px solid var(--border)}.shop-platform-heading strong{font-size:14px;color:var(--ink)}.shop-platform-heading>span:last-child{font-size:11px;color:var(--muted)}.shop-platform-mark{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;background:var(--green);color:#fff;font-size:13px;font-weight:650}.shop-list-compact tbody tr:hover>td{background:#eef6f0;transition:background-color .12s}.shop-list-compact .shop-invoice-count{color:#cf3d32;font-size:20px!important;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}

.shop-platform-heading{cursor:pointer;list-style:none}.shop-platform-heading::-webkit-details-marker{display:none}.shop-platform-heading::after{content:'▾';margin-left:auto;color:var(--green)}.shop-platform-section:not([open])>.shop-platform-heading::after{content:'▸'}.shop-drag-handle{display:inline-block;margin-right:5px;color:var(--muted);cursor:grab;user-select:none;letter-spacing:-2px}.shop-drag-handle:active{cursor:grabbing}.shop-list-compact .shop-important-name{color:#cf3d32!important;font-weight:650}

.shop-title-toggle{padding:0;text-align:left;color:var(--ink);font-size:inherit;line-height:inherit}.shop-title-toggle:hover{text-decoration:underline}

.toolbar #production-factory-filter{width:170px;min-width:130px;margin:0}

.shop-platform-logo{width:28px;height:28px;object-fit:contain;border-radius:6px;background:#fff;padding:2px;flex-shrink:0}.shop-platform-generic{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;color:var(--muted)}.shop-platform-generic svg{width:22px;height:22px}

.shop-pending-invoices .shop-invoice-count{color:#cf3d32;font-size:20px!important;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}.dashboard-platform{display:inline-flex;align-items:center;gap:8px}.dashboard-platform .shop-platform-logo{width:22px;height:22px}

.shop-list-compact .shop-invoice-count,.shop-list-compact .shop-related-count{font-size:16px!important;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums}.shop-list-compact .count-positive{color:#cf3d32!important}.shop-list-compact .count-zero{color:var(--muted)!important}.inspection-unread-total{display:inline-block;margin-left:6px;color:#cf3d32;font-size:12px;font-weight:650}

.shop-list-compact .table-wrap table td .shop-invoice-count,.shop-list-compact .table-wrap table td .shop-related-count{font-size:16px!important;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums}

.task-participants{margin:18px 0}.task-title-link{padding:0;text-align:left;white-space:pre-wrap}.task-title-link:hover{color:var(--green)}.task-discussion-title,.task-reply-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.task-discussion-title{font-size:15px;font-weight:600;margin-bottom:12px}.task-replies{margin:14px 0 22px}.task-reply{padding:14px;background:#f3f6f2;border:1px solid var(--border);border-radius:7px;margin-bottom:12px}.task-reply>small{display:block;color:var(--muted);font-size:11px;margin-top:10px}.task-reply-images{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.task-reply-images img{width:86px;height:86px;object-fit:contain;background:white;border:1px solid var(--border);border-radius:5px}
