@font-face{font-family:Vazir;src:url('/seller-console/assets/font.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Vazir;src:url('/seller-console/assets/font-bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{color-scheme:light;--bg:#f5f7f8;--surface:#fff;--ink:#18332f;--muted:#60746f;--line:#dfe7e4;--green:#0e6658;--green-dark:#094c42;--green-soft:#e9f5ef;--danger:#a33132;--danger-bg:#fff2f1;--radius:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Vazir,Tahoma,sans-serif;font-size:15px;line-height:1.7}button,input{font:inherit}button,a,input{touch-action:manipulation}button{min-height:44px;border:0;border-radius:10px;padding:10px 18px;cursor:pointer;font-weight:700;transition:background .15s,box-shadow .15s}button:disabled{opacity:.5;cursor:not-allowed}button:active:not(:disabled){filter:brightness(.94)}a{color:inherit;text-decoration:none}input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:var(--surface);color:var(--ink);font-size:16px}input::placeholder{color:#75847f;font-size:14px}:focus-visible{outline:3px solid #2e927d;outline-offset:3px}input:focus{border-color:var(--green)}[hidden]{display:none!important}.primary{background:var(--green);color:white}.primary:hover:not(:disabled){background:var(--green-dark)}.primary span{font-size:21px;margin-left:5px}.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.secondary:hover:not(:disabled){background:var(--green-soft)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-100px;right:20px;background:white;padding:12px;z-index:10}.skip:focus{top:10px}.sidebar{width:238px;position:fixed;right:0;top:0;height:100dvh;background:#102f29;color:#e4eee9;padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:26px;font-weight:700;margin-bottom:48px;padding:0 10px}.brand img{width:46px;height:46px;border-radius:13px}.brand-sub{display:block;font-size:12px;font-weight:400;color:#b6cdc5;margin-top:-3px}.nav-label{font-size:12px;color:#a2c0b5;padding:0 16px;margin-bottom:12px}nav{display:grid;gap:8px}nav a{min-height:48px;display:flex;gap:12px;align-items:center;padding:12px 16px;border-radius:10px;font-size:14px}nav a:hover{background:#20453b}.nav-current{background:#265346;color:white}.nav-mark{font-size:22px}.sidebar-note{margin-top:56px;padding:20px 15px;border-top:1px solid #34534a}.small-label{font-size:11px;color:#b9cec6;display:block;letter-spacing:.2px;margin-bottom:10px}.sidebar-note strong{font-size:21px;line-height:1.8}.sidebar-note p{font-size:12px;line-height:2;color:#b9cec6;margin-top:12px}.sidebar-bottom{margin-top:auto;padding:12px 14px 0;font-size:11px;color:#b9cec6}.sidebar-bottom span{display:block;color:#9eb9ad;margin-top:3px}.workspace{margin-right:238px}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--muted);font-size:13px}.crumb{margin:0 14px;color:#b9c8c1}.top-badge{border:1px solid var(--line);border-radius:8px;padding:5px 10px;font-size:11px}main{max-width:1410px;margin:auto;padding:36px 38px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.eyebrow{font-size:11px;color:var(--green);font-weight:700;letter-spacing:.2px;margin-bottom:4px}h1{font-size:29px;margin:0 0 6px;letter-spacing:-.6px}h2{font-size:18px;margin:0}p{margin:0}.page-heading p,.panel-heading p{color:var(--muted);font-size:13px;line-height:1.9}.page-heading>.primary{flex-shrink:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stats article{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px;position:relative}.stats article:before{content:'';height:23px;width:3px;position:absolute;right:0;top:22px;border-radius:5px;background:#49a78d}.stats span{font-size:13px;color:var(--muted)}.stats strong{display:block;font-size:31px;font-weight:700;margin:5px 0;color:var(--green-dark)}.stats small{font-size:11px;color:var(--muted)}.panel{border:1px solid var(--line);border-radius:var(--radius);background:white;overflow:hidden;margin-bottom:24px;scroll-margin-top:20px}.panel-heading{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #edf1ef}.panel-heading p{margin-top:4px}.search-field{width:260px;flex-shrink:0}.search-field input{background:#f8faf9}.branch-list{padding:20px 24px;display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.empty{grid-column:1/-1;text-align:center;padding:28px 20px 32px}.empty-symbol{width:58px;height:58px;margin:0 auto 14px;border-radius:18px;background:var(--green-soft);display:grid;place-items:center;color:var(--green);font-size:27px}.empty h3{font-size:18px;margin:0 0 7px}.empty p{color:var(--muted);font-size:13px;margin-bottom:18px;line-height:2}.loading,.empty-small{grid-column:1/-1;text-align:center;color:var(--muted);padding:32px 18px}.branch-card{border:1px solid var(--line);border-radius:12px;padding:18px;position:relative}.branch-card.selected{border-color:#3d967d;box-shadow:0 0 0 1px #3d967d;background:#fbfefc}.branch-top{display:flex;justify-content:space-between;align-items:start;gap:12px}.branch-card h3{font-size:17px;margin:0 0 3px}.branch-code{font-size:11px;color:var(--muted)}.badge{display:inline-block;font-size:11px;padding:3px 9px;border-radius:6px;background:var(--green-soft);color:var(--green-dark);white-space:nowrap}.badge.neutral{background:#f0f2f2;color:#596a66}.badge.pending{background:#fff4dc;color:#805d0a}.tags{display:flex;flex-wrap:wrap;gap:6px;min-height:30px;margin:17px 0}.tag{font-size:11px;border:1px solid var(--line);border-radius:5px;padding:2px 8px;color:var(--muted)}.branch-actions{border-top:1px solid #edf1ef;display:flex;justify-content:space-between;align-items:center;padding-top:12px;gap:10px}.branch-actions button{font-size:12px;padding:8px 12px}.text-button{background:transparent;color:var(--green)}.text-button:hover{background:var(--green-soft)}.source-status{margin:16px 24px;font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}.status-dot{width:7px;height:7px;border-radius:50%;background:#248565}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:right;font-size:13px}th{font-size:11px;color:var(--muted);font-weight:400;background:#f8faf9;padding:12px 24px;border-block:1px solid #edf1ef}td{padding:14px 24px;border-bottom:1px solid #edf1ef}tbody tr:last-child td{border-bottom:0}.mono{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:embed;display:inline-block}.grade-title{font-weight:700}.footnote{font-size:11px;color:var(--muted);padding:14px 24px;background:#fbfcfc;border-top:1px solid #edf1ef}.customer-search{display:flex;gap:8px;min-width:290px}.customer-search label{flex:1}.pager{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-top:1px solid var(--line);gap:12px;font-size:12px;color:var(--muted)}.pager>div{display:flex;gap:8px}.page-footer{font-size:11px;color:var(--muted);text-align:center;padding:8px 10px 20px}.notice{padding:13px 16px;border-radius:10px;font-size:13px;line-height:1.9;margin-bottom:18px}.notice.error{color:var(--danger);background:var(--danger-bg);border:1px solid #efc8c5}.notice button{margin-right:10px}.required{color:var(--danger)}dialog{border:1px solid var(--line);border-radius:20px;padding:0;width:min(640px,calc(100% - 24px));max-height:90dvh;color:var(--ink);background:white;box-shadow:0 30px 100px #123c3038}dialog::backdrop{background:#0e252666;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 26px;border-bottom:1px solid var(--line)}.icon-button{width:44px;padding:0;font-size:28px;font-weight:400;background:#f4f7f5;color:var(--muted)}.dialog-body{padding:24px 26px}.form-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.form-grid label{font-size:13px;font-weight:700}.form-grid input{margin-top:8px;font-weight:400}.active-switch{display:flex;gap:10px;align-items:center;min-height:44px;font-size:13px;margin:14px 0 20px}.active-switch input,.grade-option input{width:19px;height:19px;min-height:19px;accent-color:var(--green);flex-shrink:0}fieldset{margin:0;padding:0;border:0}legend{font-size:14px;font-weight:700}.field-hint{font-size:11px;color:var(--muted);line-height:1.9}.grade-options{display:grid;gap:9px;margin-top:15px}.grade-option{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;cursor:pointer;min-height:58px}.grade-option:has(input:checked){background:var(--green-soft);border-color:#72aa97}.grade-option:has(input:disabled){background:#f6f7f7;cursor:not-allowed}.grade-option-title{font-size:13px;display:block;font-weight:700}.grade-option small{display:block;font-size:11px;color:var(--muted)}.grade-option>span{flex:1}.mapping-preview{background:#f5f9f7;border-radius:9px;padding:12px 14px;margin-top:16px;color:var(--green-dark);font-size:12px}.dialog-body .notice{margin-top:16px;margin-bottom:0}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 26px;border-top:1px solid var(--line);background:#fbfcfb}.dialog-footer>div{display:flex;gap:8px;flex-shrink:0}.dialog-footer>.field-hint{max-width:200px}.toast{position:fixed;bottom:24px;left:24px;max-width:calc(100vw - 48px);background:var(--green-dark);color:#fff;padding:14px 24px;border-radius:12px;box-shadow:0 8px 35px #122c3026;z-index:20;font-size:14px}
@media(min-width:1450px){.branch-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.sidebar{width:210px}.workspace{margin-right:210px}main{padding:28px 24px}.topbar{padding:0 24px}.panel-heading{align-items:flex-start}.customer-search{min-width:0;width:250px}.branch-list{grid-template-columns:1fr}}
@media(max-width:800px){.sidebar{position:static;width:auto;height:auto;padding:14px 20px;flex-direction:row;align-items:center;justify-content:space-between;gap:16px}.brand{padding:0;margin:0;font-size:20px;gap:9px}.brand img{width:36px;height:36px}.brand-sub{font-size:10px}.sidebar nav{display:flex}.sidebar nav a{font-size:12px;padding:8px 12px;min-height:44px}.nav-mark,.nav-label,.sidebar-note,.sidebar-bottom{display:none}.workspace{margin:0}.topbar{height:52px;padding:0 20px;font-size:11px}.top-badge{display:none}main{padding:24px 20px}.stats{gap:10px}.stats article{padding:16px 14px}.stats span{font-size:11px}.stats strong{font-size:27px}.stats small{font-size:10px}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.panel-heading{flex-wrap:wrap}.search-field{width:100%}.customer-search{width:100%}.branch-list{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-footer{flex-wrap:wrap}.dialog-footer>.field-hint{max-width:none}.dialog-footer>div{margin-right:auto}}
@media(max-width:550px){body{font-size:14px}.sidebar{padding:12px 16px}.sidebar nav a:last-child{display:none}main{padding:22px 14px}.page-heading{flex-wrap:wrap;gap:15px}.page-heading>.primary{width:100%}.stats{grid-template-columns:1fr}.stats article{display:grid;grid-template-columns:1fr auto;align-items:center;padding:14px 19px}.stats article:before{top:18px}.stats strong{grid-column:2;grid-row:1/3;margin:0;font-size:29px}.stats small{grid-column:1}.stats span{font-size:12px}.panel-heading{padding:19px 16px}.branch-list{grid-template-columns:1fr;padding:16px}.source-status,.footnote{margin-inline:0;padding-inline:16px}.source-status{margin-block:14px}td,th{padding:12px 16px}.form-grid{grid-template-columns:1fr}.dialog-heading,.dialog-body{padding:20px}.dialog-footer{padding:18px 20px}.pager{padding:14px 16px}.empty{padding:24px 4px}.toast{left:14px;bottom:14px;max-width:calc(100vw - 28px)}.page-footer{font-size:10px}.customer-list table td:nth-child(2){min-width:140px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* 2026 visual refresh: presentation only; behavior and API contracts are unchanged. */
:root{
  --bg:#f3f6f4;--surface:#ffffff;--surface-soft:#f8faf9;--ink:#102722;
  --muted:#64766f;--line:#dbe5e0;--green:#08755f;--green-dark:#075344;
  --green-soft:#e5f5ee;--accent:#d8a83f;--danger:#b13b3d;--danger-bg:#fff1f0;
  --radius:18px;--shadow-sm:0 1px 2px rgba(15,39,33,.04),0 8px 24px rgba(25,64,53,.055);
  --shadow-lg:0 24px 70px rgba(13,53,43,.16)
}
body{background:
  radial-gradient(circle at 78% -15%,rgba(62,174,136,.11),transparent 32rem),
  linear-gradient(180deg,#f8faf9 0,#f2f5f3 52%,#eef3f0 100%);color:var(--ink)}
button{border-radius:12px;letter-spacing:-.1px;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
button:hover:not(:disabled){transform:translateY(-1px)}
.primary{background:linear-gradient(135deg,#08755f,#075b4a);box-shadow:0 8px 20px rgba(8,117,95,.18)}
.primary:hover:not(:disabled){background:linear-gradient(135deg,#076b57,#064b3e);box-shadow:0 11px 24px rgba(8,117,95,.23)}
.secondary{background:rgba(255,255,255,.86);box-shadow:0 1px 2px rgba(24,51,47,.04)}
input,select{border-color:#d5e2dc;background:#fff;box-shadow:inset 0 1px 1px rgba(16,39,34,.025)}
input:hover,select:hover{border-color:#b8cec5}
input:focus,select:focus{border-color:#2d977f;box-shadow:0 0 0 4px rgba(45,151,127,.12);outline:0}
.sidebar{width:272px;padding:24px 18px 20px;background:
  radial-gradient(circle at 50% 0,rgba(61,162,129,.20),transparent 19rem),
  linear-gradient(180deg,#102f29 0%,#0b2721 55%,#081f1b 100%);
  border-left:1px solid rgba(255,255,255,.06);box-shadow:-14px 0 50px rgba(10,44,36,.10);overflow-y:auto;scrollbar-width:thin}
.brand{margin:0 0 28px;padding:10px 12px;font-size:25px;letter-spacing:-.5px}
.brand img{width:48px;height:48px;border-radius:15px;background:#fff;padding:3px;box-shadow:0 8px 26px rgba(0,0,0,.22)}
.brand-sub{color:#a9c9bd;font-size:11px;letter-spacing:0;margin-top:-2px}
.nav-label{padding:0 14px;margin-bottom:8px;color:#83aa9c;font-size:10px;letter-spacing:.4px}
.sidebar nav{gap:3px}
.sidebar nav a{position:relative;min-height:42px;padding:9px 14px;border:1px solid transparent;border-radius:11px;color:#c5d8d1;font-size:12px}
.sidebar nav a:hover{background:rgba(255,255,255,.07);color:#fff;border-color:rgba(255,255,255,.04)}
.sidebar nav a.nav-current{background:linear-gradient(100deg,rgba(54,164,128,.30),rgba(41,130,102,.16));color:#fff;border-color:rgba(119,213,181,.24);box-shadow:inset -3px 0 #54c39f}
.sidebar nav a.nav-current:before{content:'';width:6px;height:6px;border-radius:50%;background:#79dbb8;box-shadow:0 0 0 5px rgba(121,219,184,.10);margin-left:5px}
.sidebar-note{margin-top:24px;padding:18px 14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.035)}
.sidebar-note strong{font-size:17px;line-height:1.7}.sidebar-note p{line-height:1.85;margin-top:8px}
.sidebar-bottom{padding:16px 12px 0;border-top:1px solid rgba(255,255,255,.06)}
.workspace{margin-right:272px;min-height:100vh}
.topbar{height:64px;padding:0 34px;background:rgba(255,255,255,.78);backdrop-filter:blur(16px);border-bottom-color:rgba(202,217,210,.75);position:sticky;top:0;z-index:8}
.topbar>span:first-child{font-weight:700;color:#36534b}.top-badge{background:#eef7f3;border-color:#d5e9e0;color:#326659;border-radius:999px;padding:5px 12px}
main{max-width:1560px;padding:30px 34px 48px}
.page-heading{margin:0 0 24px;padding:25px 28px;border:1px solid rgba(204,221,213,.92);border-radius:22px;background:
  radial-gradient(circle at 8% 10%,rgba(70,176,140,.11),transparent 20rem),#fff;box-shadow:var(--shadow-sm)}
.eyebrow{display:inline-flex;align-items:center;gap:7px;color:#0a795f;font-size:10px;letter-spacing:.8px;text-transform:uppercase}
.eyebrow:before{content:'';width:18px;height:2px;border-radius:2px;background:var(--accent)}
h1{font-size:30px;line-height:1.45;letter-spacing:-1px;color:#0d332b}
.page-heading p{max-width:720px;font-size:13px;color:#667a73}
.stats{gap:14px;margin-bottom:20px}
.stats article{min-height:122px;padding:20px 22px;border-color:#d8e5df;border-radius:17px;background:linear-gradient(145deg,#fff,#fbfdfc);box-shadow:var(--shadow-sm);overflow:hidden}
.stats article:before{right:auto;left:-18px;top:-30px;width:92px;height:92px;border-radius:50%;background:rgba(27,151,116,.08)}
.stats article:after{content:'';position:absolute;right:0;top:21px;width:3px;height:34px;border-radius:3px;background:linear-gradient(#2baa83,#d7a93e)}
.stats span{font-size:12px}.stats strong{font-size:34px;line-height:1.25;margin:4px 0;color:#0b604e;letter-spacing:-1px}.stats small{font-size:10px}
.panel{border-color:#d8e3de;border-radius:18px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-sm);margin-bottom:18px}
.panel-heading{min-height:78px;padding:18px 22px;background:linear-gradient(180deg,#fff,#fcfdfc);border-bottom-color:#e6eeea}
.panel-heading h2{font-size:17px;color:#173d34}.panel-heading p{font-size:11px;color:#74857f}
.supervisor-filters{padding:16px 22px 4px;background:#fbfdfc}.source-status{margin:14px 22px}
.console-grid-scroll{max-height:60vh;border-color:#dce7e2;background:#fff}
.console-grid th{height:39px;background:#edf5f1;color:#284f45;border-bottom-color:#d4e2dc}
.console-grid td{height:42px;border-bottom-color:#e8eeeb}
.console-grid tbody tr:nth-child(even){background:#fafcfb}.console-grid tbody tr:hover{background:#ecf7f2}
.console-grid-filters input,.console-grid-filters select{background:#fff;border-color:#cbdcd4}
dialog{border:0;border-radius:22px;box-shadow:var(--shadow-lg)}
dialog::backdrop{background:rgba(5,30,25,.58);backdrop-filter:blur(6px)}
.dialog-heading{background:linear-gradient(135deg,#f7fbf9,#edf7f3);padding:22px 25px}
.dialog-footer{background:#f7faf8}.toast{border:1px solid rgba(255,255,255,.15);box-shadow:0 18px 48px rgba(7,54,44,.28)}
@media(max-width:1100px){.sidebar{width:232px}.workspace{margin-right:232px}main{padding-inline:22px}.topbar{padding-inline:22px}}
@media(max-width:800px){
  .sidebar{position:sticky;top:0;z-index:12;width:100%;height:auto;padding:10px 14px;background:#0c2b24;overflow-x:auto;box-shadow:0 8px 30px rgba(7,42,34,.16)}
  .sidebar .brand{margin:0;padding:4px 6px;position:sticky;right:0;background:#0c2b24;z-index:2}.sidebar .brand img{width:38px;height:38px}
  .sidebar nav{display:flex;flex-wrap:nowrap;min-width:max-content}.sidebar nav a{white-space:nowrap;min-height:40px;padding:8px 12px}
  .workspace{margin:0}.topbar{position:static}.page-heading{padding:21px}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  main{padding:16px 12px 42px}.topbar{padding:0 14px}.page-heading{border-radius:16px;padding:18px;align-items:stretch}
  h1{font-size:24px}.stats{grid-template-columns:1fr}.stats article{min-height:92px}.panel{border-radius:14px}
}

.branch-list{display:block;padding:0}.branch-list .empty{padding:32px 24px}.branch-list table{width:100%;min-width:760px}.branch-list td{vertical-align:middle}.warehouse-field{display:block;margin:16px 0 6px;font-weight:700}select{font:inherit;width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:10px 13px}select:disabled{background:#f5f7f8}#warehouse-hint{margin:8px 0 16px}

.supervisor-filters{display:flex;gap:16px;padding:20px 24px 0}.supervisor-filters label{flex:1;max-width:320px;font-size:13px}.supervisor-filters input,.supervisor-filters select{display:block;margin-top:5px}.supervisor-code{display:block;color:var(--muted);font-size:12px;margin-top:5px}#supervisor-list table{min-width:900px;width:100%}#supervisor-evidence{margin-top:18px}#supervisor-evidence summary{cursor:pointer;min-height:44px;color:var(--green);font-weight:700}#supervisor-evidence td,#supervisor-evidence th{padding:8px;font-size:12px}@media(max-width:550px){.supervisor-filters{flex-direction:column}.supervisor-filters label{max-width:none}}

.supervisor-roster{margin:20px 0;padding-top:16px;border-top:1px solid var(--line)}.roster-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.roster-heading h3{font-size:16px;margin:0}.roster-heading button{font-size:12px}#supervisor-sellers-status{margin:10px 0}#supervisor-sellers-list td,#supervisor-sellers-list th{padding:10px;font-size:13px}.roster-warning{display:block;color:var(--danger);font-size:12px;margin-top:4px}

#brand-dialog{width:min(1050px,96vw);max-width:96vw}#brand-options{margin-top:14px}#brand-options:has(.brand-choice){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#brand-options td,#brand-options th{padding:12px;font-size:13px}.supervisor-actions{white-space:nowrap}.supervisor-actions button+button{margin-right:6px}#brand-selection-count{margin-top:12px}@media(max-width:600px){#brand-options:has(.brand-choice){grid-template-columns:1fr}}

.brand-filters{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.brand-filters input,.brand-filters select{display:block;margin-top:6px}.brand-bulk-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.brand-bulk-actions button{font-size:12px}@media(max-width:600px){.brand-filters{grid-template-columns:1fr}}

#sellers-dialog{width:min(850px,96vw);max-width:96vw}.seller-directory-controls{display:flex;align-items:flex-end;gap:12px;margin-top:16px}.seller-directory-controls label{flex:1}.seller-directory-controls input{display:block;margin-top:6px}#sellers-directory-status{margin:12px 0}#sellers-directory-list td,#sellers-directory-list th{padding:12px;font-size:14px}@media(max-width:600px){.seller-directory-controls{flex-direction:column;align-items:stretch}}

#line-dialog{width:min(1050px,96vw);max-width:96vw}#line-list table{min-width:1000px;width:100%}#line-brand-options{grid-template-columns:repeat(2,minmax(0,1fr));max-height:360px;overflow:auto;margin-top:14px}#line-brand-count{margin:12px 0}#line-brand-options .grade-option small{display:block}.sidebar nav{flex-wrap:wrap}@media(max-width:600px){#line-brand-options{grid-template-columns:1fr}}

/* Compact working tables, following the warehouse assistant's header-filter pattern. */
main{max-width:none;padding:22px 24px}.page-heading{margin-bottom:16px;gap:14px}.page-heading h1{font-size:24px}.page-heading p{font-size:13px}.topbar{height:54px;padding-inline:24px}.panel{border-radius:8px}.panel-heading{padding:14px 16px}.source-status{font-size:12px}.sidebar{padding:22px 14px}.sidebar .brand{margin-bottom:28px}.sidebar nav{gap:4px}.sidebar-note{margin-top:26px}.stats{margin-bottom:16px}.stats article{padding:14px 18px}.stats strong{font-size:28px}
.console-grid-container{min-width:0;width:100%;font-size:12px}.console-grid-scroll{max-height:65vh;overflow:auto;overscroll-behavior:contain;border-block:1px solid var(--line)}.console-grid{width:100%;border-collapse:separate;border-spacing:0;min-width:780px;line-height:1.6}.console-grid thead{position:sticky;top:0;z-index:2;background:#edf3ef}.console-grid th{position:static!important;padding:4px 8px;white-space:nowrap;background:#edf3ef;border-bottom:1px solid #d3dfd8;font-size:12px;color:var(--ink);text-align:right}.console-grid td{padding:5px 8px;min-height:34px;font-size:12px;vertical-align:middle;border-bottom:1px solid #e5ece8;border-inline-end:1px solid #f0f3f1;max-width:320px;overflow-wrap:anywhere}.console-grid tbody tr:nth-child(even){background:#f8faf9}.console-grid tbody tr:hover{background:#eef6f1}.console-grid td p{margin:2px 0}.console-grid td .field-hint,.console-grid td small{font-size:11px}.console-grid td button,.console-grid td .secondary{padding:4px 8px;min-height:30px;font-size:11px;border-radius:5px;white-space:nowrap}.console-grid td details{max-width:300px}.console-grid-sort{display:block;width:100%;text-align:inherit;background:none;color:inherit;min-height:30px;padding:3px 0;font-size:12px;border-radius:3px}.console-grid-sort:after{content:' ↕';color:var(--muted);font-size:10px}.console-grid th[aria-sort=ascending] .console-grid-sort:after{content:' ↑';color:var(--green)}.console-grid th[aria-sort=descending] .console-grid-sort:after{content:' ↓';color:var(--green)}.console-grid-filters th{padding:3px 5px 6px}.console-grid-filter-box{display:flex;gap:3px;min-width:130px}.console-grid-filters input,.console-grid-filters select{font:inherit;min-height:29px;height:29px;padding:3px 5px;border-radius:4px;font-weight:400;min-width:0;font-size:11px}.console-grid-filters input::placeholder{font-size:11px}.console-grid-filter-box select{width:55px;flex-shrink:0;padding-inline:2px}.console-grid-filter-box input{width:100%;min-width:65px}.console-grid-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:9px 12px;border-top:1px solid var(--line);background:#f8faf9}.console-grid-footer>span{margin-inline-end:auto;color:var(--muted)}.console-grid-footer button{min-height:30px;padding:4px 9px;font-size:11px;border-radius:5px}.console-grid-footer label{display:flex;align-items:center;gap:6px;white-space:nowrap}.console-grid-footer select{width:75px;min-height:30px;padding:3px 6px;font-size:12px;border-radius:5px}.console-grid-empty{padding:20px;text-align:center;color:var(--muted)}.table-wrap:has(>.console-grid-container){overflow:visible}.sidebar nav a:last-child{display:flex}
@media(max-width:800px){.sidebar,.sidebar nav{flex-wrap:wrap}.sidebar .brand{margin:0}.sidebar nav{gap:2px}.sidebar nav a{padding:6px 8px;min-height:36px}.page-heading h1{font-size:22px}main{padding:18px 12px}.console-grid-scroll{max-height:62vh}.topbar{padding-inline:14px}}@media(pointer:coarse){.console-grid td button,.console-grid-filter-box input,.console-grid-filters select,.console-grid-footer button{min-height:40px;height:auto}}
.console-grid-filter-box{min-width:106px}.console-grid-filter-box select{width:44px}.console-grid-filter-box input{min-width:52px}.console-grid td{overflow-wrap:normal}.console-grid td:first-child{white-space:nowrap}

/* Each organization menu entry owns one visible workspace. Shared dialogs retain their IDs. */
body[data-console-view="branches"] #lines-section,
body[data-console-view="branches"] #supervisors-section,
body[data-console-view="lines"] .stats,
body[data-console-view="lines"] .branch-panel,
body[data-console-view="lines"] #grades-section,
body[data-console-view="lines"] #supervisors-section,
body[data-console-view="supervisors"] .stats,
body[data-console-view="supervisors"] .branch-panel,
body[data-console-view="supervisors"] #grades-section,
body[data-console-view="supervisors"] #lines-section,
body[data-console-view="lines"] #new-branch,
body[data-console-view="supervisors"] #new-branch,
body[data-console-view="lines"] .sidebar-note,
body[data-console-view="supervisors"] .sidebar-note,
body[data-console-view="lines"] .sidebar-bottom,
body[data-console-view="supervisors"] .sidebar-bottom {display:none!important}
.sidebar nav a:last-child{display:flex}
@media(max-width:800px){.sidebar{display:block}.sidebar nav{display:flex;overflow-x:auto;gap:4px;margin-top:10px}.sidebar nav a{flex-shrink:0;white-space:nowrap}.brand{width:fit-content}}
body[data-console-view="lines"] .page-footer,body[data-console-view="supervisors"] .page-footer{display:none!important}
/* Keep every desktop menu entry reachable independently of the workspace. */
@media(min-width:801px){
  .sidebar{height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#9eb9ad #102f29}
  .sidebar > *{flex-shrink:0}
  body .sidebar{width:272px;padding:24px 18px 20px;background:radial-gradient(circle at 50% 0,rgba(61,162,129,.20),transparent 19rem),linear-gradient(180deg,#102f29 0%,#0b2721 55%,#081f1b 100%);color:#e5f2ed;border-left:1px solid rgba(255,255,255,.06)}
  body .workspace{margin-right:272px}
  body .sidebar .brand{color:#fff}body .sidebar .brand-sub{color:#a9c9bd}
  body .sidebar nav a{color:#c5d8d1;border-radius:11px}body .sidebar nav a:hover{background:rgba(255,255,255,.07);color:#fff}
  body .sidebar nav a.nav-current{background:linear-gradient(100deg,rgba(54,164,128,.30),rgba(41,130,102,.16));color:#fff;border:1px solid rgba(119,213,181,.24);box-shadow:inset -3px 0 #54c39f}
}
