:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#243248;background:#f5f7fa;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #dbe2ea;background:white;color:#34435a;border-radius:8px;padding:11px 16px;font-weight:600}button:hover{background:#f0f5f8}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#176b58;color:white;border-color:#176b58}.primary:hover{background:#105341}.primary span{margin-left:18px}.plain{border:0;background:transparent;padding:8px;color:#176b58}aside{width:236px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid #e4e9ef;padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:28px;font-weight:750;letter-spacing:-1px;color:#176b58;text-decoration:none;margin-bottom:44px}.brand span{font-size:23px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#8995a4;margin-top:5px}.section-label{font-size:10px;letter-spacing:1.5px;color:#95a0ae;margin:22px 12px 12px;font-weight:700}.nav-active{background:#edf5f1;border-radius:8px;padding:13px 12px;color:#176b58;font-weight:600}nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;width:100%;margin:4px 0;font-weight:500;background:transparent}nav button.active{background:#f0f5f4;color:#12684f;font-weight:700}.store-icon{width:29px;height:29px;background:#edf0f5;border-radius:7px;display:grid;place-items:center;font-size:12px}nav .active .store-icon{background:#d5e9e0}.sidebar-foot{margin-top:auto;font-size:12px;padding:20px 5px 0;color:#536374}.sidebar-foot small{display:block;color:#9aa4af;font-size:11px;margin-top:8px}.dot{display:inline-block;width:7px;height:7px;background:#36a47b;border-radius:50%;margin-right:5px}main{margin-left:236px}header{height:76px;padding:0 36px;border-bottom:1px solid #e4e9ef;background:#fff;display:flex;align-items:center;justify-content:space-between;color:#94a0af;font-size:12px}header strong{color:#536174;font-weight:500}.environment{font-size:9px;letter-spacing:1.2px;color:#687889;border:1px solid #e0e5ea;border-radius:5px;padding:7px 9px}.workspace{max-width:1600px;padding:35px 36px 50px;margin:auto}.title-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#739186}h1{font-size:31px;letter-spacing:-1px;margin:10px 0}p{color:#8190a2;line-height:1.6;margin:7px 0}.actions{display:flex;gap:10px}.notice{display:flex;gap:12px;background:#edf5f2;color:#58786b;padding:14px 17px;border:1px solid #dfebe5;border-radius:9px;margin:25px 0;font-size:12px}.notice>span{font-size:19px}.notice strong{color:#2a6552}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stats article{padding:20px 22px;border:1px solid #e4e9ef;background:#fff;border-radius:11px}.stats article>span{font-size:12px;color:#7b8798}.stats strong{display:block;font-size:31px;font-weight:600;margin:10px 0}.stats small{font-size:11px;color:#95a0ac}.stats strong.time{font-size:20px;margin:17px 0}.panel{background:white;border:1px solid #e3e8ee;border-radius:12px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 24px 19px;gap:15px}h2{font-size:16px;margin:0;font-weight:650}h2 span{margin-left:7px;color:#8492a3;font-size:12px;font-weight:400}.panel-heading p{font-size:12px}.badge{font-size:10px;padding:6px 9px;border-radius:5px;background:#f2f5f7;color:#738193;white-space:nowrap}.toolbar{display:flex;align-items:center;gap:12px;padding:0 24px 19px}.toolbar input{width:290px}.toolbar #selection{margin-left:auto;color:#8b96a3;font-size:11px}input:not([type=checkbox]),select{padding:10px 12px;border:1px solid #e0e5ec;border-radius:7px;background:#fff;color:#45556b;outline:none}input:focus,select:focus{border-color:#39846b;box-shadow:0 0 0 2px #e2f1e9}input[type=checkbox]{accent-color:#176b58;width:15px;height:15px}.table-wrap{max-height:560px;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}thead{background:#f8fafb;position:sticky;top:0;z-index:1}th{font-size:10px;letter-spacing:.7px;font-weight:600;color:#8a96a5;padding:15px 17px;border-block:1px solid #edf0f4}td{padding:15px 17px;border-bottom:1px solid #edf0f4;font-size:13px}th:first-child,td:first-child{padding-left:24px;width:45px}tbody tr:hover{background:#fbfcfd}td .name{display:block;font-weight:550;white-space:normal;min-width:170px;max-width:400px}td small{display:block;font-size:10px;color:#8c98a7;margin-top:6px}.sql-price{color:#8a95a5}.effective-price{font-weight:650}.status{font-size:10px;border-radius:5px;padding:5px 8px;display:inline-block;background:#eef2f5;color:#728296}.status.manual{background:#fcf1dc;color:#a07931}.status.sent{background:#eaf5ed;color:#478465}.status.invalid{background:#fff0ee;color:#b95644}footer{display:flex;justify-content:space-between;padding:16px 24px;font-size:10px;color:#929eac}.empty{text-align:center;padding:55px 20px;color:#8798a8}.empty>div{font-size:35px;color:#a7bcb4}.empty h3{font-size:16px;color:#607284;margin:15px 0 7px}.empty p{font-size:12px}.history{margin-top:24px}.log{display:grid;grid-template-columns:140px 145px 1fr;gap:15px;padding:12px 24px;border-top:1px solid #f0f2f5;font-size:11px}.log time{color:#94a0ad}.log strong{font-weight:550}.log span{color:#7e8b9b;overflow-wrap:anywhere}dialog{border:1px solid #e1e7ec;border-radius:14px;padding:26px;width:min(650px,95vw);color:#243248;box-shadow:0 20px 90px #132b3429}dialog::backdrop{background:#1c304357;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-heading h2{font-size:21px;margin-top:9px}dialog label{display:block;font-size:12px;font-weight:600;margin:20px 0}dialog label input{display:block;width:100%;margin-top:9px}dialog .hint{font-size:11px;background:#f5f8fa;padding:12px;border-radius:7px}.dialog-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}#send-preview{max-height:300px;overflow:auto;margin-top:20px}#send-preview .preview-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf0f4;gap:20px}#toast{position:fixed;bottom:25px;right:25px;background:#153f33;color:white;padding:16px 22px;border-radius:9px;box-shadow:0 5px 25px #0002;max-width:520px;z-index:10}#toast.error{background:#943d35}@media(max-width:1100px){aside{width:195px;padding:25px 12px}main{margin-left:195px}.workspace{padding:25px 20px}.title-row{align-items:start;flex-direction:column}.stats{gap:10px}.stats article{padding:15px}.toolbar{flex-wrap:wrap}.toolbar input{width:220px}}@media(max-width:700px){aside{position:static;width:auto;padding:16px}.brand{margin:0}.section-label,.nav-active,.sidebar-foot{display:none}nav{display:flex;overflow:auto;margin-top:10px}nav button{min-width:125px}main{margin:0}header{padding:0 20px;height:50px}.stats{grid-template-columns:repeat(2,1fr)}.actions{flex-wrap:wrap}.workspace{padding:20px 12px}.toolbar{padding:0 15px 15px}.panel-heading{padding:18px 15px}.log{grid-template-columns:100px 1fr}.log span{grid-column:1/-1}footer{gap:10px}h1{font-size:27px}}
 
.toolbar{flex-wrap:wrap}
.sort-heading{border:0;background:transparent;padding:0;font:inherit;letter-spacing:inherit;color:inherit;display:flex;align-items:center;gap:8px;white-space:nowrap}.sort-heading:hover,.sort-heading.active{color:#176b58;background:transparent}.sort-heading:focus-visible{outline:2px solid #176b58;outline-offset:5px}.sort-heading span{font-size:14px}
.title-row{margin-bottom:25px}
.category-cell{white-space:normal;min-width:180px;max-width:300px;color:#738193;font-size:12px;line-height:1.6}
#category-filter{max-width:320px;min-width:170px}
.choices-cell{min-width:210px;white-space:normal}.choice-details summary{cursor:pointer;color:#176b58;font-weight:600;font-size:12px}.choice-list{margin-top:12px;min-width:260px}.choice-row{display:flex;justify-content:space-between;gap:18px;padding:7px 0;border-bottom:1px solid #edf0f4;font-size:12px}.choice-row strong{white-space:nowrap}.choice-list small{max-width:300px;line-height:1.5}
.extra-section{border-top:1px solid #e4e9ef;margin-top:24px;padding-top:14px}.extra-section h3{font-size:15px;margin:5px 0}.extra-section p{font-size:11px}.extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.extra-grid label{margin:12px 0}.extra-grid label:last-child{grid-column:1/-1}.extra-preview{display:flex;justify-content:space-between;gap:20px;padding:6px 0;font-size:12px;color:#718194;overflow-wrap:anywhere}.extra-preview span:last-child{max-width:65%;white-space:pre-wrap}@media(max-width:550px){.extra-grid{grid-template-columns:1fr}}
#products tr.row-edited,#preview-rows tr.row-edited{background:#fff8e8}#products tr.row-edited:hover,#preview-rows tr.row-edited:hover{background:#fff1cf}#products tr.row-edited td:first-child{box-shadow:inset 4px 0 #dba542}#products tr.row-selected{background:#e8f3ff}#products tr.row-selected:hover{background:#dcecff}#products tr.row-selected:not(.row-edited) td:first-child{box-shadow:inset 4px 0 #4789cb}.row-legend{display:flex;gap:20px;padding:0 24px 14px;font-size:11px;color:#738193}.row-legend span{display:flex;align-items:center;gap:7px}.row-legend i{display:inline-block;width:12px;height:12px;border:1px solid #cad7e3;border-radius:3px}.selected-swatch{background:#e8f3ff}.edited-swatch{background:#fff1cf}#send-dialog{width:min(1200px,96vw);max-height:94vh;padding:24px}#send-dialog .dialog-heading{margin-bottom:8px}.preview-summary{font-weight:600;margin:16px 0;color:#176b58}.preview-toolbar{display:flex;align-items:center;gap:18px;justify-content:space-between}.preview-toolbar input{width:min(450px,65%)}#preview-count,.preview-hint{font-size:11px;color:#738193}#send-preview{max-height:49vh;overflow:auto;border:1px solid #e4e9ef;border-radius:8px;margin-top:12px}#send-preview td{vertical-align:top}#send-preview td .name{min-width:180px;max-width:330px}#send-preview .preview-extras{min-width:210px;max-width:300px;white-space:normal}.preview-extras summary,.code-details summary{cursor:pointer;color:#176b58;font-size:11px}.code-details{margin-top:7px}.code-details small{white-space:normal;overflow-wrap:anywhere}.preview-extras dl{font-size:11px}.preview-extras dl div{padding:6px 0;border-bottom:1px solid #e6e8eb}.preview-extras dt{color:#7b8798}.preview-extras dd{margin:4px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.muted{font-size:11px;color:#94a0ad}.preview-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:14px}.preview-pagination button{padding:8px 12px}#preview-empty{padding:20px;text-align:center}@media(max-width:650px){#send-dialog{padding:16px}.preview-toolbar{align-items:stretch;flex-direction:column}.preview-toolbar input{width:100%}#send-dialog .dialog-actions{flex-wrap:wrap}.row-legend{flex-wrap:wrap}}
.visible-extra-fields{margin:0}.code-details small{display:block;overflow-wrap:anywhere;white-space:normal}.preview-extras .visible-extra-fields div:first-child{padding-top:0}
.settings-nav{margin-top:10px;text-align:left;background:transparent;border:0;color:#536374}#settings-dialog{width:min(960px,96vw);max-height:92vh}.settings-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px}.settings-layout h3{font-size:15px}.store-card{padding:15px;border:1px solid #e1e7ed;border-radius:8px;margin:10px 0}.store-card span,.store-card small{display:block;margin-top:7px;font-size:12px;color:#7b8798}#store-form label select{display:block;width:100%;margin-top:9px}#store-form label small{display:block;font-weight:400;font-size:11px;color:#7b8798;margin-top:7px}#store-form .enable-store{display:flex;align-items:center;gap:9px}#store-form .enable-store input{width:16px;margin:0}#store-form p{font-size:12px}#settings-error{color:#b23c35}#settings-stores{max-height:60vh;overflow:auto}@media(max-width:700px){.settings-layout{grid-template-columns:1fr}#settings-stores{max-height:200px}}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{background:#fff;padding:36px;border:1px solid #e0e6eb;border-radius:16px;width:min(430px,100%)}.login-card label{display:block;margin-top:20px;font-size:13px}.login-card input{display:block;width:100%;margin-top:8px}.login-card button{width:100%;margin-top:12px}#login-error{color:#b23c35;font-size:12px}
/* Responsive product management and modal scrolling */
body.modal-open{position:fixed;width:100%;overflow:hidden}html:has(dialog[open]){overflow:hidden;scrollbar-gutter:stable}dialog{max-height:92dvh;overflow-y:auto;overscroll-behavior:contain}dialog p,.store-card{overflow-wrap:anywhere}#settings-stores,#send-preview{overscroll-behavior:contain}.workspace,.stats article,.settings-layout>*{min-width:0}.stats small{overflow-wrap:anywhere}.toolbar>*{max-width:100%}.category-picker{position:relative;min-width:180px;color:#45556b}.category-picker summary{cursor:pointer;padding:10px 12px;border:1px solid #e0e5ec;border-radius:7px;background:white}.category-menu{padding:10px;background:white;border:1px solid #dce4e9;border-radius:9px;box-shadow:0 8px 24px #24324820;margin-top:8px}.category-picker[open]{flex-basis:100%}#category-options{max-height:220px;overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:6px}#category-options label{display:flex;align-items:start;gap:9px;padding:8px;cursor:pointer;font-size:12px;overflow-wrap:anywhere}#category-options input{flex:0 0 15px;width:15px;margin-top:1px}.table-wrap{overflow-x:hidden}.product-table{table-layout:fixed;white-space:normal}.product-table th,.product-table td{padding:13px 9px;overflow-wrap:anywhere;vertical-align:top}.product-table th:first-child,.product-table td:first-child{width:38px;padding-left:12px}.product-table th:nth-child(2){width:23%}.product-table th:nth-child(3){width:15%}.product-table th:nth-child(4){width:12%}.product-table th:nth-child(5){width:12%}.product-table th:nth-child(6){width:13%}.product-table th:nth-child(8){width:75px}.product-table td .name,.product-table .category-cell,.product-table .choices-cell{min-width:0;max-width:none}.product-table .sort-heading{white-space:normal;text-align:left;line-height:1.5}.product-table small{line-height:1.6}.product-table .status{white-space:normal;line-height:1.5}.sql-price{color:#65758a}#send-preview table{table-layout:fixed;white-space:normal}#send-preview th,#send-preview td{padding:12px;overflow-wrap:anywhere}#send-preview th:first-child{width:28%}#send-preview th:nth-child(4){width:30%}#send-preview th:last-child{width:65px}#send-preview td .name,#send-preview .preview-extras{min-width:0;max-width:none}
@media(max-width:1250px){.product-table thead{display:block;position:static}.product-table thead tr{display:flex;flex-wrap:wrap;align-items:center;padding:8px;gap:12px}.product-table thead th{width:auto!important;padding:5px!important;border:0}.product-table thead th:nth-child(4),.product-table thead th:nth-child(7),.product-table thead th:nth-child(8){display:none}.product-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.product-table tbody tr{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(0,1fr);border:1px solid #dfe6ed;border-radius:9px;align-content:start;overflow:hidden}.product-table tbody td{width:auto!important;border:0;padding:8px 10px;min-width:0}.product-table tbody td:first-child{grid-column:1;grid-row:1;padding:12px 8px}.product-table tbody td:nth-child(2){grid-column:2/4}.product-table tbody td:nth-child(3),.product-table tbody td:nth-child(4){grid-column:2/4}.product-table tbody td:nth-child(5){grid-column:2}.product-table tbody td:nth-child(6){grid-column:3}.product-table tbody td:nth-child(7){grid-column:2}.product-table tbody td:last-child{grid-column:3;align-self:end;text-align:right}.product-table td[data-label]:not(:nth-child(2))::before{content:attr(data-label);display:block;font-size:10px;color:#718194;font-weight:500;margin-bottom:5px}.table-wrap{max-height:70vh}.row-legend{flex-wrap:wrap}}
@media(max-width:850px){.product-table tbody{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}#send-preview thead{display:none}#preview-rows{display:block}#preview-rows tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:2px solid #dce4eb}#preview-rows td{border:0;min-width:0;width:auto!important}#preview-rows td:first-child,#preview-rows td.preview-extras{grid-column:1/-1}#preview-rows td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:#718194;margin-bottom:6px}#preview-rows td:last-child{grid-column:1/-1;text-align:right}.visible-extra-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}}
@media(max-width:550px){.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1 1 140px}dialog{padding:18px}.toolbar input,.toolbar select,.category-picker{width:100%}.row-legend{padding:0 15px 14px}.preview-pagination{justify-content:center}.stats article{padding:12px}.stats strong.time{font-size:16px}.panel-heading{flex-wrap:wrap}.product-table tbody{padding:8px}.visible-extra-fields{grid-template-columns:1fr}footer{flex-wrap:wrap}.settings-layout{gap:15px}}

/* Keep all branches reachable as the sidebar list grows. */
@media (min-width:701px){
 aside{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior-y:contain}
 aside>*{flex-shrink:0}
 aside #stores{flex:1 1 0;min-height:80px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-right:4px}
 aside #stores button{overflow-wrap:anywhere}
 aside #stores .store-icon{flex-shrink:0}
}

#forza-branch-label[hidden],#manual-branch-label[hidden],#reload-branches[hidden],#import-file[hidden]{display:none!important}

#arctos-company-label[hidden]{display:none!important}

#arctos-access[hidden]{display:none!important}#arctos-access{border-top:1px solid #e1e7ed;margin-top:16px;padding-top:12px}#arctos-connection-status{color:#276a52}

.danger{color:#ad332b}.danger:not(.plain){background:#ad332b;color:#fff;border-color:#ad332b}#no-stores[hidden],#store-workspace[hidden],#delete-name-label[hidden],#restore-products[hidden]{display:none!important}#delete-items{max-height:220px;overflow:auto;padding-left:22px;font-size:13px}#delete-error{color:#ad332b}.store-card .danger{margin-left:12px}

.agent-panel{padding:20px;margin-bottom:20px}.agent-panel button,.agent-panel select{margin:4px}.agent-panel p{overflow-wrap:anywhere}

#agent-settings[hidden],#agent-code-tools[hidden]{display:none!important}#agent-settings{border:1px solid #dce5e3;border-radius:12px;background:#f6faf8;padding:16px}#agent-code-tools{display:flex;gap:8px;flex-wrap:wrap}#agent-code-value{flex:1;min-width:180px;font-family:monospace}
