:root{--ink:#18362e;--text:#233e36;--muted:#84908b;--line:#e8ede9;--green:#15845f;--mint:#e8f5ee;--paper:#f5f7f5;--nav:#162b26;--red:#be4c42;--shadow:0 10px 35px #173c2910;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;color:var(--text);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #8acaaf;outline-offset:3px}input,select{width:100%;border:1px solid #dce5df;background:white;border-radius:8px;padding:11px 12px;color:var(--text);outline:none}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #15845f15}label{display:block;font-weight:600;font-size:12px;line-height:1.7}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-1px;line-height:1.3}h2{font-size:16px;letter-spacing:-.3px}h3{font-size:14px}.muted{color:var(--muted)}.small{font-size:12px}.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand-mark{display:inline-flex;background:#80e2b5;color:#17392d;width:35px;height:36px;border-radius:10px;align-items:center;justify-content:center;font-weight:800;font-size:30px;letter-spacing:-4px;padding-right:5px}.brand-mark span{font-size:15px;align-self:flex-end;margin-bottom:4px;margin-left:2px}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:var(--nav);color:#c0d0c7;padding:31px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;color:white;margin-bottom:40px}.brand strong{font-size:18px;letter-spacing:-.65px}.brand small{font-size:9px;letter-spacing:2px;color:#829d8e;display:block;margin-top:3px}.nav-label{font-size:9px;font-weight:600;letter-spacing:2px;color:#718d7e;padding:0 14px;margin-bottom:12px}.nav-link{display:flex;gap:12px;align-items:center;padding:13px 14px;border-radius:8px;font-size:12px;font-weight:500;margin-bottom:5px;color:#a5b9af}.nav-link:hover{background:#ffffff08;color:white}.nav-link.active{background:#29503f;color:#a3e4bb}.nav-link.active:after{content:'';width:5px;height:5px;border-radius:50%;background:#8ee0b0;margin-left:auto}.sidebar-bottom{margin-top:auto}.workspace-box{border:1px solid #355044;border-radius:10px;padding:14px;margin-bottom:18px;display:flex;gap:10px;font-size:11px}.workspace-box strong{display:block;color:#d8e5dc;margin-bottom:4px}.workspace-box .dot{background:#9bdfb4;margin-top:4px}.user{display:flex;gap:10px;align-items:center;border-top:1px solid #2c4238;padding:20px 5px 0;font-size:11px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#dde9df;color:#365540;font-size:11px;font-weight:700}.user strong{color:#e6ece7;display:block;margin-bottom:4px}.user button{margin-left:auto;background:none;border:0;color:#a5b9af;padding:5px}.main{margin-left:244px}.topbar{height:78px;background:#ffffffb8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:15px}.breadcrumb{font-size:12px;color:#9ba59e}.breadcrumb b{color:#4f6457;font-weight:500;margin-left:9px}.top-actions{display:flex;gap:16px;align-items:center;font-size:11px;color:#617367}.environment{display:flex;align-items:center;gap:6px}.dot{width:6px;height:6px;border-radius:50%;background:#3bb984;display:inline-block}.icon-button{border:1px solid var(--line);background:white;color:#678173;padding:8px;border-radius:8px}.mobile-menu{display:none}.content{padding:34px 38px 40px;max-width:1720px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{color:var(--green);font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:9px}.page-head p{color:#87958b;font-size:12px;margin-top:9px}.actions{display:flex;gap:9px;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dfe7e1;border-radius:8px;background:white;color:#435d4d;padding:11px 15px;font-size:12px;font-weight:600;white-space:nowrap}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 4px 8px #15845f15}.btn.primary:hover{background:#0f7050}.btn.compact{padding:7px 10px;font-size:11px}.btn.danger{color:var(--red)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;position:relative;min-height:135px}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:500;color:#7f9185}.stat-icon{width:31px;height:31px;border-radius:9px;background:#f2f6f2;display:grid;place-items:center;color:#71927e}.stat strong{display:block;font-size:27px;letter-spacing:-1px;font-weight:650;margin:12px 0 8px}.stat small{font-size:10px;color:#94a198}.stat small b{color:#40906a;font-weight:500}.grid-main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:22px;margin-bottom:22px}.panel{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 22px 17px}.panel-head p{font-size:10px;color:#91a096;margin-top:6px}.panel-body{padding:0 22px 22px}.tag{display:inline-flex;align-items:center;gap:5px;border:1px solid #e5ebe6;border-radius:6px;padding:6px 9px;font-size:10px;white-space:nowrap;color:#6c8172}.chart{height:195px;display:flex;align-items:stretch;margin:15px 0 7px;gap:13px}.chart-y{display:flex;flex-direction:column;justify-content:space-between;font-size:9px;color:#9aa69e;padding-bottom:21px;min-width:35px}.bars{display:flex;align-items:end;justify-content:space-around;gap:8px;width:100%;background:repeating-linear-gradient(to top,transparent 0,transparent 42px,#eef2ee 43px,#eef2ee 44px);padding-top:10px}.bar-col{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:8px;max-width:55px}.bar{background:#bedac8;width:65%;min-height:2px;border-radius:5px 5px 0 0;transition:height .3s}.bar-col:nth-last-child(2) .bar{background:#25865e}.bar-col small{font-size:9px;color:#94a297;height:16px;white-space:nowrap}.chart-note{font-size:10px;color:#84998a;border-top:1px solid var(--line);padding-top:15px;display:flex;gap:7px;align-items:center}.channel{display:flex;gap:11px;align-items:center;margin:19px 0}.channel-logo{width:35px;height:35px;background:#f3f5f2;border-radius:9px;display:grid;place-items:center;font-size:12px;font-weight:750}.channel:nth-child(1) .channel-logo{color:#ee754b;background:#fff2e9}.channel:nth-child(2) .channel-logo{color:#8c61a4;background:#f5f0fa}.channel:nth-child(3) .channel-logo{color:#346eb6;background:#edf4fd}.channel-info{flex:1}.channel-info strong{font-size:11px;font-weight:600}.channel-row{display:flex;justify-content:space-between;margin-bottom:9px;font-size:11px}.track{height:4px;border-radius:4px;background:#eff3ef}.track i{display:block;background:#87b99a;height:4px;border-radius:4px}.channel-total{display:flex;justify-content:space-between;font-size:11px;color:#819185;border-top:1px solid var(--line);padding-top:17px;margin-top:20px}.channel-total strong{color:#385943}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.7px;color:#87988b;background:#fafbf9;padding:13px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{font-size:11px;padding:16px 22px;border-bottom:1px solid #f0f3ef;color:#738678}tr:last-child td{border-bottom:0}td strong{color:#3b5845;font-weight:600}td small{display:block;margin-top:5px;color:#98a69b;font-size:9px}.status{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:500;padding:5px 8px;border-radius:5px;background:#f1f4f0;color:#6d806f}.status.completed,.status.income{color:#39825b;background:#eaf5ed}.status.processing{color:#457fa4;background:#edf4f9}.status.pending{color:#b38c3d;background:#fbf5e8}.status.shipped{color:#8a69a9;background:#f4eef9}.status.cancelled,.status.expense{color:#b55e52;background:#fcf0ec}.status:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.text-link{color:var(--green);font-size:10px;font-weight:600;display:flex;align-items:center;gap:5px}.alert-box{display:flex;gap:12px;padding:14px;background:#faf7ed;border-radius:8px;color:#a2863a;font-size:11px;line-height:1.7;margin-bottom:17px}.stock-item{display:flex;align-items:center;gap:10px;margin:15px 0}.product-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:8px;background:#f0f4ed;color:#779471;flex-shrink:0}.stock-item strong{font-size:11px}.stock-item small{display:block;color:#9ba79e;font-size:9px;margin-top:5px}.stock-item .stock-qty{margin-left:auto;color:#bd8d3a;font-size:10px;text-align:right}.footer{display:flex;justify-content:space-between;color:#a1ada4;font-size:9px;padding-top:8px}.toolbar{display:flex;gap:12px;padding:18px 22px;align-items:center;border-bottom:1px solid var(--line)}.search{max-width:360px;position:relative;width:100%}.search .icon{position:absolute;left:12px;top:11px;width:17px;color:#92a296}.search input{padding-left:37px;font-size:12px}.toolbar select{max-width:190px;font-size:12px}.empty{text-align:center;padding:45px 20px;color:#91a093;line-height:1.8}.empty strong{display:block;color:#526e58}.product-cell{display:flex;gap:11px;align-items:center}.row-actions{display:flex;gap:6px}.order-status{font-size:10px;padding:6px;width:125px}.pos-layout{display:grid;grid-template-columns:1fr 350px;gap:23px}.product-grid{padding:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{border:1px solid var(--line);border-radius:10px;padding:17px;text-align:left;background:white;position:relative;min-height:155px}.product-card:hover{border-color:#92bfa1;box-shadow:var(--shadow)}.product-card .product-icon{width:45px;height:45px;margin-bottom:17px}.product-card strong{font-size:12px;display:block}.product-card small{display:block;color:#92a296;margin:6px 0 13px;font-size:10px}.product-card b{color:var(--green);font-size:13px}.cart{align-self:start;position:sticky;top:20px}.cart-item{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:15px 0}.cart-item strong{font-size:12px;display:block}.cart-item small{display:block;margin:7px 0;color:#87998c;font-size:10px}.quantity{display:flex;gap:10px;align-items:center}.quantity button{background:#f3f6f2;border:0;border-radius:4px;width:25px;height:25px}.totals{padding:20px 0}.totals>div{display:flex;justify-content:space-between;margin:11px 0;font-size:12px}.totals .grand{font-size:19px;font-weight:700;border-top:1px solid var(--line);padding-top:15px}.full{width:100%}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.integration-card{padding:25px}.integration-card .channel-logo{width:46px;height:46px;font-size:17px;margin-bottom:24px}.integration-card p{font-size:12px;color:#84988b;line-height:1.7;margin:13px 0 20px}.form-panel{max-width:760px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label.wide{grid-column:1/-1}.form-grid label input,.form-grid label select{margin-top:6px;font-weight:400}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:25px}.note{padding:14px;background:#f2f6f1;border-radius:8px;font-size:11px;color:#7d9180;line-height:1.7;margin:15px 0}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-story{background:#162f27;color:white;padding:55px 65px;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;border:1px solid #466c57;border-radius:50%;width:620px;height:620px;bottom:-350px;right:-180px;box-shadow:0 0 0 65px #ffffff03,0 0 0 130px #ffffff03}.login-story .brand{margin-bottom:100px}.login-story h1{font-size:48px;font-weight:500;line-height:1.2;letter-spacing:-2px;max-width:400px}.login-story h1 em{font-style:normal;color:#a0d7b5}.login-story p{font-size:14px;line-height:1.9;color:#9db6a6;max-width:340px;margin-top:24px}.login-story footer{margin-top:auto;color:#668674;font-size:11px;padding-top:80px}.login-main{display:grid;place-items:center;padding:40px}.login-form{width:100%;max-width:345px}.login-form h2{font-size:26px;margin-bottom:10px}.login-form p{color:#8a9b8f;font-size:12px;line-height:1.7;margin-bottom:30px}.login-form label{margin-bottom:20px}.login-form input{margin-top:8px}.login-form .note{margin-top:25px;font-size:10px}.login-form .note code{display:block;margin-top:5px;color:#597a61}.error{color:#b34c42;background:#fdf1ed;border-radius:8px;padding:12px;font-size:12px;line-height:1.6;margin:10px 0}.boot{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:#82998a}dialog{border:0;border-radius:14px;padding:0;width:580px;max-width:calc(100% - 30px);box-shadow:0 30px 100px #09211640;color:var(--text)}dialog::backdrop{background:#112c2366;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:23px;border-bottom:1px solid var(--line)}.modal-body{padding:23px;max-height:75vh;overflow-y:auto}.modal-body .note:first-child{margin-top:0}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#183d2d;color:white;padding:13px 22px;border-radius:9px;box-shadow:var(--shadow);z-index:100;opacity:0;pointer-events:none;transition:.2s;font-size:12px;max-width:90%}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.failure{background:#9f4239}.channel-inputs{grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px}.channel-inputs h3{margin-bottom:12px}.channel-price-row{display:grid;grid-template-columns:1fr 110px 22px;align-items:center;gap:10px;margin:8px 0;font-size:12px}.channel-price-row input[type=checkbox]{width:16px}.mobile-backdrop{display:none}@media(min-width:1500px){.content{padding-top:42px}.stat{min-height:150px}.chart{height:230px}}@media(max-width:1150px){.sidebar{width:210px;padding:25px 15px}.main{margin-left:210px}.brand strong{font-size:16px}.content{padding:27px 24px}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:15px}.stat strong{font-size:23px}.grid-main{grid-template-columns:1.5fr 1fr;gap:16px}td,th{padding-left:15px;padding-right:15px}.pos-layout{grid-template-columns:1fr 300px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:244px}.main{margin-left:0}.mobile-menu{display:block}.topbar{height:65px}.sidebar.open{transform:translateX(0)}.mobile-backdrop.open{display:block;position:fixed;inset:0;background:#122b2366;z-index:19}.grid-main{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.login-story{padding:40px}.login-story h1{font-size:38px}.page-head{align-items:flex-start}.page-head .actions{flex-wrap:wrap;justify-content:flex-end}.pos-layout{grid-template-columns:1fr 300px}.environment{display:none}.top-actions{margin-left:auto}}@media(max-width:600px){.content{padding:24px 16px}.topbar{padding:0 16px}.breadcrumb{font-size:10px}.top-actions .date-label{display:none}h1{font-size:25px}.page-head{flex-direction:column;gap:17px}.page-head .actions{justify-content:flex-start;width:100%}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:24px}.stat-top{font-size:10px}.stat-icon{width:25px;height:25px}.stat-icon .icon{width:16px}.panel-head{padding:18px 16px}.panel-body{padding:0 16px 18px}.toolbar{padding:14px;flex-wrap:wrap;gap:8px}.toolbar .search{max-width:none}.toolbar select{max-width:none}.pos-layout{grid-template-columns:1fr}.cart{position:static}.integration-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid label.wide{grid-column:auto}.login{display:block}.login-story{padding:24px}.login-story .brand{margin-bottom:0}.login-story h1,.login-story p,.login-story footer{display:none}.login-main{padding:45px 25px}.footer{line-height:1.8;gap:20px}.form-actions .btn{flex:1}.chart{gap:5px}.bar-col small{font-size:8px}}
.cart-quantity{width:78px;padding:5px;font-size:11px;text-align:center}.purchase-line{display:grid;grid-template-columns:2fr .8fr 1fr 30px;gap:8px;align-items:end;margin:16px 0}.purchase-line select,.purchase-line input{padding:9px 7px;font-size:11px}.purchase-line .remove-line{margin-bottom:3px}input:disabled,select:disabled{background:#f2f4f2;color:#7d8b80}.receipt h2{line-height:1.5}.receipt .totals{padding-bottom:5px}.status.returned{color:#986da7;background:#f5eef7}.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:18px}#import-preview ul{padding-left:30px}#import-form code{overflow-wrap:anywhere}@media(max-width:600px){.purchase-line{grid-template-columns:1fr 1fr 32px}.purchase-line>label:first-child{grid-column:1/-1}.cart-quantity{width:85px}}@media print{body{background:white;font-size:12px}body>*:not(#modal){display:none!important}#modal{position:static;display:block;border:0;box-shadow:none;max-width:none;width:100%;max-height:none;margin:0;padding:0}#modal::backdrop{display:none}.modal-head,.no-print{display:none!important}.modal-body{max-height:none;overflow:visible;padding:0}.receipt{display:block}th,td{white-space:normal;padding:8px;color:#000}h2,p,span,strong{color:#000!important}.note{background:white;padding:10px 0}.table-wrap{overflow:visible}}
@media print{html,body{background:white!important}.receipt{max-width:740px;margin:16px auto;padding:0 12px}.receipt h2{font-size:16px}.receipt small{color:#333!important}}
.line-discount{display:flex;gap:7px;margin-top:12px}.line-discount label{font-size:9px;font-weight:500}.line-discount input{width:90px;padding:5px;font-size:11px}.line-discount select{width:60px;padding:5px;font-size:11px}
.report-filter{align-items:end}.report-filter label{min-width:170px}.report-filter input{margin-top:5px}.report-filter .btn{height:41px}@media(max-width:600px){.report-filter label{min-width:0;flex:1}.report-filter .btn{width:100%}}
.return-choice{display:flex;align-items:center;gap:8px;white-space:normal;min-width:150px}.return-choice input{width:16px;flex-shrink:0}#return-form td:last-child input{min-width:85px;max-width:120px;padding:8px}.status.partially_returned{color:#986da7;background:#f5eef7}.delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:20px}.delivery-card{border:1px solid var(--line);border-radius:10px;padding:20px;overflow-wrap:anywhere}.delivery-card h3{margin:18px 0 8px}.delivery-card .form-actions{flex-wrap:wrap}.delivery-address{white-space:pre-line;line-height:1.7;margin-bottom:12px}.delivery-card>.muted{line-height:1.8;margin-top:14px}@media(max-width:650px){.delivery-grid{grid-template-columns:1fr;padding:14px}}
.mapping-panel .toolbar{flex-wrap:wrap;align-items:end}.mapping-panel .toolbar label{min-width:170px}.mapping-panel .toolbar select{max-width:none;margin-top:5px}.mapping-preview{padding:20px;border-top:1px solid var(--line)}.mapping-preview>.panel-head{padding:0 0 16px}.mapping-preview-item{padding:18px;border:1px solid var(--line);border-radius:9px;margin:16px 0}.mapping-reasons{font-size:11px;line-height:1.8;color:#92773e;padding-left:20px}.snapshot-hash{overflow-wrap:anywhere;font-size:10px}.preview-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:17px 0}.preview-values span{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.preview-values strong{font-size:12px}.mapping-preview details{margin-top:17px;font-size:11px}.mapping-preview summary{cursor:pointer;color:var(--green);font-weight:600}.mapping-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f3;border-radius:8px;padding:15px;font-size:11px;line-height:1.6}.mapping-preview-item .channel-row{gap:10px;flex-wrap:wrap}@media(max-width:600px){.mapping-panel .toolbar label{width:100%}.mapping-preview{padding:14px}.mapping-preview-item{padding:14px}.preview-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
.outbox-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;background:#f4f7f5;padding:16px;border-radius:10px;font-size:12px;line-height:1.6}.outbox-detail details{border:1px solid var(--line);border-radius:10px;padding:14px;margin:12px 0}.outbox-detail summary{cursor:pointer;color:var(--green);font-weight:600}.outbox-detail h3{margin-top:24px}.outbox-events{padding-left:20px;font-size:13px;line-height:1.8}.outbox-events small{display:block;color:var(--muted)}
.outbox-detail .snapshot-hash p{margin:8px 0;line-height:1.5}
.event-detail .snapshot-hash p{margin:10px 0;line-height:1.6}.event-detail details{border:1px solid var(--line);padding:16px;border-radius:10px}.event-detail summary{cursor:pointer;color:var(--green);font-weight:600}.event-inbox-panel td:first-child{max-width:320px;overflow-wrap:anywhere}.event-detail>.channel-row{overflow-wrap:anywhere;gap:16px}
#refresh-status[hidden]{display:none}
.takeover-review .snapshot-hash p{margin:10px 0;line-height:1.6}.takeover-audit{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0;overflow-wrap:anywhere}.takeover-audit p{margin:10px 0;line-height:1.6}.takeover-audit small{color:var(--muted)}
#takeover-confirm-form>label:first-of-type{display:flex;flex-direction:column;gap:8px}#takeover-confirm-form textarea{width:100%;min-height:110px;resize:vertical;font:inherit;border:1px solid #dce5df;background:white;border-radius:8px;padding:11px 12px;color:var(--text);outline:none}#takeover-confirm-form textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #15845f15}

/* Read-only provider evidence browsing. Long external IDs stay within their own panel. */
.provider-inbox{min-width:0}.provider-inbox .panel{margin-bottom:22px}.provider-notice{margin-top:0}.provider-binding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 22px 22px}.provider-binding{padding:18px;border:1px solid var(--line);border-radius:9px;min-width:0}.provider-binding.selected{border-color:var(--green);background:#f6faf6}.provider-binding h3{font-size:14px}.provider-binding h3 small{font-size:11px;font-weight:400;color:var(--muted);display:block;margin-top:6px}.provider-binding p{line-height:1.7;margin:12px 0}.provider-binding .status{white-space:normal;line-height:1.6}.provider-identifier{overflow-wrap:anywhere;word-break:break-word;white-space:normal;max-width:320px}.provider-inbox .panel-head,.provider-detail .channel-row{flex-wrap:wrap}.provider-inbox .toolbar,.provider-detail .toolbar{flex-wrap:wrap}.provider-inbox td,.provider-detail td{vertical-align:top}.provider-inbox .toolbar select{margin-top:6px;max-width:none}.provider-detail{min-width:0}.provider-detail .alert-box{margin-top:16px}.provider-detail .status{white-space:normal}.provider-fields{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1.8fr);gap:10px 18px;margin:20px 0;font-size:12px;line-height:1.7}.provider-fields dt{color:var(--muted)}.provider-fields dd{margin:0;overflow-wrap:anywhere;word-break:break-word}.provider-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 16px}.provider-detail .table-wrap{border:1px solid var(--line);border-radius:8px}.provider-detail td,.provider-detail th{padding:12px}.provider-pagination{border-bottom:0}.provider-detail .provider-pagination{padding:14px 0}.provider-detail>.btn{margin:6px 6px 0 0}@media(max-width:600px){.provider-binding-grid{grid-template-columns:1fr;padding:0 16px 18px}.provider-fields{grid-template-columns:1fr;gap:4px}.provider-fields dd{margin-bottom:10px}.provider-inbox .panel-head .status{white-space:normal}.provider-pagination>.muted{width:100%}.provider-detail .table-wrap{max-width:100%}}

.invoice-toolbar{flex-wrap:wrap;align-items:flex-end}.invoice-toolbar label{min-width:220px;max-width:100%;flex:1}.invoice-toolbar select{margin-top:6px;max-width:100%}.invoice-drafts .error{margin:18px}.invoice-detail{min-width:0}.invoice-detail h3{font-size:14px;margin:22px 0 14px}.invoice-detail details{border:1px solid var(--line);padding:14px;border-radius:9px;margin-top:18px}.invoice-detail summary{font-size:12px;font-weight:600;color:var(--green);cursor:pointer}.invoice-detail .table-wrap{max-width:100%;border:1px solid var(--line);border-radius:8px}.invoice-detail td,.invoice-detail th{padding:12px}.invoice-detail .provider-fields small{display:block;color:var(--muted);font-size:10px}.invoice-detail .channel-row,.invoice-detail .form-actions{flex-wrap:wrap}.invoice-checklist ul,.invoice-audit{padding-left:20px;font-size:11px;line-height:1.8}.invoice-checklist li,.invoice-audit li{margin:12px 0;overflow-wrap:anywhere}.invoice-checklist small,.invoice-audit small{display:block;color:var(--muted)}.invoice-checklist strong{font-weight:500}.invoice-audit p{margin:4px 0}.invoice-drafts .toolbar{flex-wrap:wrap}@media(max-width:600px){.invoice-toolbar label{min-width:0;width:100%;flex:auto}.invoice-detail .totals>div{gap:15px}.invoice-detail .totals .grand{font-size:17px}.invoice-detail .form-actions .btn{white-space:normal}.invoice-drafts .toolbar .muted{width:100%}}

/* Purchase returns and cost evidence: long immutable rows scroll inside their panel. */
.supplier-workspace,.cost-report,.finance-detail{min-width:0}.supplier-workspace>.panel,.cost-report>.panel{margin:20px 0}.supplier-workspace .toolbar,.cost-report .toolbar{flex-wrap:wrap}.supplier-workspace .row-actions{flex-wrap:wrap}.supplier-workspace .status{white-space:normal}.finance-detail h3{font-size:14px;margin:24px 0 14px}.finance-detail .table-wrap{max-width:100%;border:1px solid var(--line);border-radius:8px}.finance-detail td,.finance-detail th{padding:12px}.finance-detail .form-actions{flex-wrap:wrap}.finance-detail .totals>div{gap:16px}.finance-detail .totals .grand{font-size:17px}.finance-detail .totals strong{text-align:right}.finance-history details,.profit-method{padding:16px;border:1px solid var(--line);border-radius:9px;margin:12px 0;overflow-wrap:anywhere}.finance-history summary,.profit-method summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--green)}.finance-history p{margin:12px 0;font-size:12px;line-height:1.8}.finance-history>details>small{display:block;margin-bottom:12px;color:var(--muted)}.finance-warning{color:#8a5b19;font-size:12px;line-height:1.7;padding:0 20px 14px}.finance-detail .finance-warning{padding:0}.profit-coverage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:22px}.profit-coverage>div{min-width:0}.profit-coverage span{display:block;font-size:11px;line-height:1.6;color:var(--muted)}.profit-coverage strong{display:block;font-size:20px;margin:9px 0}.profit-coverage small{display:block;color:var(--muted);font-size:10px;line-height:1.6}.profit-method ul{font-size:12px;line-height:1.8;padding-left:20px}.finance-detail .profit-coverage{padding:18px 0;grid-template-columns:repeat(2,minmax(0,1fr))}#supplier-return-form td:last-child input{min-width:90px;max-width:125px;padding:8px}.cost-report td,.supplier-workspace td{vertical-align:top}.cost-report .panel-head{gap:14px;flex-wrap:wrap}.cost-report .panel>.note{margin:16px 20px}@media(max-width:650px){.profit-coverage{grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;gap:18px 12px}.profit-coverage strong{font-size:18px}.cost-report .toolbar>.muted{width:100%}.finance-detail .form-actions .btn,.finance-detail>.btn{white-space:normal}.cost-report .report-filter label{min-width:0;width:100%}.finance-detail .totals .grand{font-size:15px}.finance-detail .totals span{min-width:0}.finance-history{max-width:100%}}
/* Keep identifiers readable while horizontal scrolling contains dense finance tables. */
dialog:has(.finance-detail){width:920px}.finance-detail table{min-width:760px}.finance-detail td.provider-identifier{min-width:150px}.cost-report table{min-width:980px}.cost-report td.provider-identifier{min-width:200px}.supplier-workspace table{min-width:900px}@media(max-width:650px){.finance-detail .table-wrap::before,.cost-report .table-wrap::before,.supplier-workspace .table-wrap::before{content:'Tüm sütunlar için yana kaydırın';display:block;position:sticky;left:0;padding:10px 14px;background:#f6faf7;font-size:10px;color:#617367;border-bottom:1px solid var(--line)}}

/* V8: explicitly scoped local channel models and immutable evidence. */
.channel-finance{min-width:0}.channel-finance>.panel{margin:20px 0}.channel-finance .toolbar,.channel-finance .row-actions{flex-wrap:wrap}.channel-finance .alert-box,.channel-finance .note{color:#566b5e;overflow-wrap:anywhere}.channel-finance .alert-box{color:#75551d}.channel-finance .stat-top{color:#536c5c;line-height:1.6;gap:8px}.channel-finance .stat strong{font-size:23px;overflow-wrap:anywhere}.channel-finance .stat small,.channel-finance td small{color:#617367;line-height:1.6}.channel-finance .panel-head{flex-wrap:wrap}.channel-profit table{min-width:1000px}.channel-profit td{vertical-align:top}.channel-profit td.provider-identifier{min-width:210px}.channel-finance .profit-coverage+.note{margin:0 20px 18px}.deduction-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.deduction-channel{min-width:0}.deduction-channel .provider-fields{grid-template-columns:100px minmax(0,1fr)}.deduction-channel .status{white-space:normal}.deduction-rule{border:1px solid #d5e3d8;border-radius:10px;margin:20px 0;padding:16px;min-width:0}.deduction-rule legend{font-size:12px;font-weight:600;padding:0 7px}.deduction-rule>.btn{margin-top:16px}.deduction-preview{padding:18px;background:#f4f8f4;border:1px solid var(--line);border-radius:10px;margin-top:20px}.deduction-preview h3{margin:0}.deduction-preview>.btn{margin-top:16px}.deduction-preview .totals{padding-bottom:0}.deduction-preview .totals>div{align-items:start;line-height:1.6}.deduction-editor .form-grid>*{min-width:0}.channel-finance .form-actions .btn{white-space:normal}@media(max-width:900px){.deduction-channel-grid{grid-template-columns:1fr}.channel-finance .report-filter{flex-wrap:wrap}}@media(max-width:650px){.channel-finance .report-filter label{min-width:0;width:100%}.channel-finance .toolbar>.btn{white-space:normal}.channel-finance .stats{grid-template-columns:1fr}.channel-finance .stat{min-height:0}.deduction-preview{padding:12px}.deduction-preview .totals .grand{font-size:14px}.channel-profit .table-wrap::before{content:'Tüm sütunlar için yana kaydırın';display:block;position:sticky;left:0;padding:10px 14px;background:#f6faf7;font-size:10px;color:#617367}.channel-finance .profit-coverage strong{font-size:17px}}
@media(max-width:650px){.channel-finance .report-filter label{flex:1 1 100%}}
/* Server-paged catalogs: wrap controls without widening mobile screens. */
.catalog-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 22px;border-top:1px solid var(--border,#e5e9f0);font-size:12px;color:var(--muted,#64748b)}
.catalog-pager .row-actions{flex-wrap:wrap}.catalog-pager button{min-height:36px}.catalog-notice{margin:14px 20px}.catalog-filters{flex-wrap:wrap}.toolbar label{min-width:0}.toolbar input{max-width:100%}.catalog-select-search{margin-bottom:10px}.cart .catalog-pager{padding:10px 0;margin-bottom:16px}.cart .catalog-pager .row-actions{width:100%}.cart .catalog-pager button{flex:1}.purchase-line:has(.purchase-product-search){grid-template-columns:minmax(0,1.6fr) minmax(0,1.6fr) minmax(80px,1fr) minmax(90px,1fr) auto}.purchase-line .purchase-selector-status,.purchase-line .purchase-selector-pager{grid-column:1/-1}.purchase-selector-pager{display:flex;gap:8px}.catalog-filters .tag{white-space:normal}.invoice-toolbar .catalog-pager{width:100%;padding:10px 0}.invoice-toolbar .catalog-select-search{min-width:230px}.catalog-pager [role=status]{overflow-wrap:anywhere}
@media(max-width:700px){.catalog-pager{padding:14px}.catalog-pager>.row-actions{width:100%;display:flex}.catalog-pager>.row-actions>button{flex:1}.catalog-filters>label,.toolbar:has(#catalog-category)>label,.toolbar:has(#catalog-sort)>label{flex:1 1 140px}.purchase-line:has(.purchase-product-search){grid-template-columns:minmax(0,1fr)}.purchase-line:has(.purchase-product-search)>*{grid-column:1}.invoice-toolbar .catalog-select-search{min-width:0;width:100%}}

.toolbar:has(#catalog-category),.toolbar:has(#catalog-sort){flex-wrap:wrap;align-items:end}.toolbar:has(#catalog-category)>.search,.toolbar:has(#catalog-sort)>.search{flex:1 1 250px}.toolbar:has(#catalog-category)>label,.toolbar:has(#catalog-sort)>label{flex:1 1 150px;max-width:220px}.toolbar:has(#catalog-category)>#filter{flex:0 1 190px}.toolbar:has(#catalog-category)>label select,.toolbar:has(#catalog-sort)>label select{max-width:100%}.catalog-table:focus-visible{outline:2px solid var(--green);outline-offset:-2px}@media(max-width:700px){.catalog-table::before{content:'Tüm sütunlar ve işlemler için yana kaydırın';display:block;position:sticky;left:0;padding:10px 14px;background:#f6faf7;font-size:10px;color:#617367}.toolbar:has(#catalog-category)>#filter{flex:1 1 100%;max-width:none}.toolbar:has(#catalog-category)>label,.toolbar:has(#catalog-sort)>label{max-width:none}}

/* Token-free local provider preview. Long source identities must wrap on narrow screens. */
.provider-local-review{display:grid;gap:16px;min-width:0}
.provider-local-review .provider-fields dd,.provider-review-plan td{overflow-wrap:anywhere}
.provider-review-plan{border:1px solid var(--border,#ddd);border-radius:12px;padding:18px;min-width:0}
.provider-review-plan h4{margin:22px 0 10px}.provider-review-plan li{margin:7px 0}
.provider-review-plan table{min-width:640px}.provider-local-review .form-actions{flex-wrap:wrap}
@media(max-width:600px){.provider-review-plan{padding:12px}.provider-local-review .form-actions .btn{width:100%}}
dialog[data-provider-review-request]{width:1100px}

/* Explicit purchase scanner and accessible POS line removal. */
.purchase-line:has(.purchase-product-search){grid-template-columns:minmax(0,2fr) minmax(70px,.8fr) minmax(90px,1fr) auto}.purchase-line>label:has(.purchase-product-search){grid-column:1/-1}
.purchase-barcode-field{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.purchase-barcode-field small,.purchase-barcode-status{grid-column:1/-1;overflow-wrap:anywhere}.purchase-barcode-field .btn,.cart-remove{min-height:44px}.purchase-barcode-field input{font-size:16px}.cart-remove{margin-top:10px;white-space:normal;text-align:left}.purchase-unit{font-weight:normal}.cart-item>div{min-width:0}
@media(max-width:700px){.purchase-line:has(.purchase-product-search){grid-template-columns:minmax(0,1fr)}.purchase-barcode-field{grid-template-columns:minmax(0,1fr)}.purchase-barcode-field>*{grid-column:1}.purchase-line label{min-width:0}}
