/* Representative workspace. Palette and artwork are scoped to the signed-in role. */
body[data-nextest-role="rep"] {
  --rep-bg:#031334; --rep-surface:#052355; --rep-raised:#093472;
  --rep-panel:linear-gradient(145deg,#0a3879 0%,var(--rep-surface) 38%,#041a43 100%);
  --rep-line:#2176bf; --rep-text:#f4f9ff; --rep-muted:#b6d5f2; --rep-accent:#36dbff;
  --rep-shadow:inset 0 1px 10px #3aa8ff36,0 4px 16px #00112e60;
  --rep-button:linear-gradient(180deg,#00749d,#0759c4 49%,#073b95);
  --rep-success-button:linear-gradient(180deg,#087c5c,#07583f);
  --rep-refresh-button:linear-gradient(180deg,#8439c1,#57179a);
  --rep-shell:linear-gradient(125deg,#062453,#03132f);
  --rep-focus:#ffbd49; --rep-input:#041b43; --rep-danger:#ff9aac; --rep-success:#66e5ae; --rep-warning:#ffd286;
  --rep-quiet:linear-gradient(180deg,#0a4087,#061f4b);
  --text:var(--rep-text); --muted:var(--rep-muted); --card:var(--rep-surface); --border:var(--rep-line);
  --nx-surface:var(--rep-surface); --nx-raised:var(--rep-raised); --nx-panel:var(--rep-panel);
  --nx-ink:var(--rep-text); --nx-muted:var(--rep-muted); --nx-edge:var(--rep-line); --nx-success:var(--rep-success);
  --accent-cyan:var(--rep-accent); --teal:var(--rep-accent); --danger:var(--rep-danger);
  --rep-font:"Cairo",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;
  color-scheme:dark;
  background:radial-gradient(ellipse at 0 12%,#10559e 0,transparent 47%),var(--rep-bg)!important;
  color:var(--rep-text);
}
html[data-color-mode="light"] body[data-nextest-role="rep"] {
  --rep-bg:#e4efff; --rep-surface:#f5faff; --rep-raised:#d9ecff;
  --rep-panel:linear-gradient(145deg,#e6f3ff,var(--rep-surface) 55%,#edf6ff);
  --rep-line:#8ab9e3; --rep-text:#102b53; --rep-muted:#3e5d83; --rep-accent:#0867b9;
  --rep-shadow:inset 0 1px 0 #fff,0 5px 16px #234f841d;
  --rep-quiet:linear-gradient(#e4f2ff,#f9fcff);
  --rep-focus:#0759a5; --rep-input:#fff; --rep-danger:#a32240; --rep-success:#086744; --rep-warning:#78440a;
  color-scheme:light;
  background:var(--rep-bg)!important;
}
body[data-nextest-role="rep"] #roleContent.rep-workspace {min-width:0;padding:0 12px 8px!important;color:var(--rep-text)}
body[data-nextest-role="rep"] #repBoard {display:grid;gap:12px;max-width:1600px;margin:auto;min-width:0}
body[data-nextest-role="rep"] #repBoard [hidden] {display:none!important}
body[data-nextest-role="rep"] #repBoard::after {
  content:"";display:block;height:84px;margin-inline:-12px;pointer-events:none;
  background:url("/assets/representative-orbits.svg") center bottom / 100% 100% no-repeat;
}
body[data-nextest-role="rep"] #mgrCommandBar {
  background:var(--rep-shell)!important;color:#fff!important;
  border:0!important;border-bottom:1px solid #2775c3!important;border-radius:0!important;
  min-height:74px;margin-bottom:10px!important;box-shadow:0 5px 25px #057bff35!important;
}
body[data-nextest-role="rep"] #mgrCommandBar :is(#tenantName,#whoAmI) {color:#edf6ff!important}
body[data-nextest-role="rep"] #mgrCommandBar :is(button,#toolbarLanguage,#hamburgerBtn) {
  background:linear-gradient(#0d4386,#071e46)!important;color:#f3f9ff!important;
  border:1px solid #327fcc!important;border-radius:13px!important;box-shadow:inset 0 1px 9px #439fff33!important;
}
body[data-nextest-role="rep"] #mgrCommandBar .theme-topbar-label {display:inline;font-size:12px}
body[data-nextest-role="rep"] #themeTopbarBtn {width:auto;padding-inline:10px;gap:7px}
body[data-nextest-role="rep"] #sideDrawer {
  background:url("/assets/representative-orbits.svg") center 86% / auto 105px no-repeat,
    radial-gradient(ellipse at 80% 75%,#104992,transparent 55%),linear-gradient(#031839,#062858 75%,#031633)!important;
  border-color:#236aaf!important;color:#edf8ff!important;
}
body[data-nextest-role="rep"] .drawer-brand {min-height:74px}
body[data-nextest-role="rep"] .drawer-brand .sub {color:#ffc04f!important}
body[data-nextest-role="rep"] #drawerNav {display:grid;align-content:start;gap:7px;padding:18px 8px;overscroll-behavior:contain;min-height:0}
body[data-nextest-role="rep"] #drawerNav .drawer-nav-item {
  display:flex;align-items:center;gap:10px;min-height:51px;padding:7px 9px;border-radius:12px!important;
  color:#e6f2ff!important;background:transparent!important;font-size:13px;font-weight:800;
  border:1px solid transparent!important;box-shadow:none!important;
}
body[data-nextest-role="rep"] #drawerNav .drawer-nav-item:hover {background:#103e7f!important}
body[data-nextest-role="rep"] #drawerNav .drawer-nav-item.active {
  background:var(--rep-button)!important;border-color:#56ddff!important;box-shadow:inset 0 0 12px #83ebff60,0 3px 13px #0076ff55!important;
}
body[data-nextest-role="rep"] .nx-rep-nav-icon {width:24px;height:24px;flex:0 0 24px}
@media(min-width:900px){
  body[data-nextest-role="rep"] #sideDrawer {width:174px!important}
  body[data-nextest-role="rep"] > .wrap {max-width:none!important;margin:0!important;margin-inline-start:174px!important;padding:0!important}
}
body[data-nextest-role="rep"] #repBoard .rep-board-head {
  position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;
  border:1px solid #2178bf;border-radius:15px;overflow:hidden;background:#041d49;color:#fff;
  box-shadow:var(--rep-shadow);padding:0;
}
body[data-nextest-role="rep"] .rep-hero-copy {
  position:relative;isolation:isolate;min-height:clamp(185px,17vw,250px);
  display:flex;align-items:center;gap:13px;padding:clamp(15px,3vw,38px);
  background:#041b47;
}
body[data-nextest-role="rep"] .rep-hero-copy::before {
  content:"";position:absolute;inset:0;z-index:-1;
  background:url("/assets/representative-hero.webp") left center / clamp(720px, 100%, 1080px) auto no-repeat;
  mask-image:linear-gradient(90deg,#000 44%,#000b 57%,transparent 77%);
}
html[dir="ltr"] body[data-nextest-role="rep"] .rep-hero-copy::before {transform:scaleX(-1)}
body[data-nextest-role="rep"] .rep-hero-copy > div {padding-block:8px;max-width:54%}
body[data-nextest-role="rep"] .rep-hero-copy h1 {
  color:#fff!important;margin:0 0 5px;font-size:clamp(24px,4vw,52px);font-weight:800;line-height:1.2;text-shadow:0 2px 12px #0009;
}
body[data-nextest-role="rep"] .rep-hero-copy p {color:#e1f2ff!important;margin:0;font-size:clamp(11px,1.45vw,16px)}
body[data-nextest-role="rep"] .rep-board-mark {width:clamp(32px,5vw,62px);flex:none;color:#ffb32f;filter:drop-shadow(0 0 10px #ffa03163)}
body[data-nextest-role="rep"] .rep-board-head-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.65fr);gap:8px;padding:9px;border-top:1px solid #2376bd;background:#062b61}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(button,a,input,select,textarea,summary):focus-visible {
  outline:2px solid var(--rep-focus)!important;outline-offset:2px;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) button:not(.rep-v3-kpi) {
  font:inherit;font-weight:800;border-radius:10px;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) button:not(.rep-v3-kpi):not(.danger):not(.rep-recent-row) {
  --rep-action:var(--rep-button);background:var(--rep-action)!important;color:#fff!important;
  border:1px solid #4daaff!important;box-shadow:inset 0 1px 7px #ffffff36,0 3px 8px #00184655;
}
body[data-nextest-role="rep"] #repBoard .rep-board-head-actions button {
  width:100%;min-height:43px;margin:0;padding:6px 8px;font-size:clamp(11px,1.2vw,15px);
}
body[data-nextest-role="rep"] #repBoard [data-rep-go="neworder"] {--rep-action:var(--rep-success-button)!important;border-color:#60e5bc!important}
body[data-nextest-role="rep"] #repBoard [data-rep-refresh="home"] {--rep-action:var(--rep-refresh-button)!important;border-color:#cb8dfb!important}
body[data-nextest-role="rep"] #repClock {
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;min-height:43px;
  color:#e8f5ff;background:#041c47;border:1px solid #2781cf;border-radius:16px;padding:5px 9px;font-size:13px;font-weight:800;
}
body[data-nextest-role="rep"] :is(.rep-ui-icon,.rep-section-symbol) {display:inline-block;width:1.25em;height:1.25em;vertical-align:middle;flex:none}
body[data-nextest-role="rep"] .rep-section-symbol {color:var(--rep-accent);margin-inline-end:8px}
body[data-nextest-role="rep"] .rep-work-result:empty {display:none}
body[data-nextest-role="rep"] #repDashGrid {display:grid;gap:13px;min-width:0}
body[data-nextest-role="rep"] .rep-v3-kpis {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
body[data-nextest-role="rep"] #repBoard .rep-v3-kpi {
  --tone:#35e0ff;--deep:#04224e;--mid:#006998;
  display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:5px 7px;
  position:relative;min-width:0;min-height:157px;padding:12px 9px;margin:0;align-items:center;
  border-radius:13px;border:1px solid var(--tone);color:#fff;text-align:start;overflow:hidden;
  background:radial-gradient(ellipse at 10% 110%,var(--mid),transparent 70%),linear-gradient(145deg,var(--mid),var(--deep) 57%)!important;
  box-shadow:inset 0 0 16px color-mix(in srgb,var(--tone) 44%,transparent),0 5px 14px #00122d63;
}
body[data-nextest-role="rep"] #repBoard .rep-kpi-orders {--tone:#ffc24d;--deep:#392406;--mid:#945108}
body[data-nextest-role="rep"] #repBoard .rep-kpi-collected {--tone:#49a8ff;--deep:#092752;--mid:#0564bf}
body[data-nextest-role="rep"] #repBoard .rep-kpi-visits {--tone:#48edaa;--deep:#042e2b;--mid:#087653}
body[data-nextest-role="rep"] #repBoard .rep-ratio-card {--tone:#c37bff;--deep:#23104b;--mid:#6d25b8}
body[data-nextest-role="rep"] .rep-kpi-copy {display:contents}
body[data-nextest-role="rep"] .rep-kpi-icon {color:var(--tone);grid-area:1/1;display:grid;place-items:center}
body[data-nextest-role="rep"] .rep-kpi-icon svg {width:21px;height:21px}
body[data-nextest-role="rep"] .rep-v3-kpi .label {grid-area:1/2;color:#f9fcff!important;font-size:clamp(12px,1.05vw,14px);line-height:1.45;font-weight:800}
body[data-nextest-role="rep"] .rep-v3-kpi .value {
  grid-area:2/1/3/-1;justify-self:center;max-width:100%;text-align:center;color:#fff!important;line-height:1.2;
  font-weight:800;font-size:clamp(16px,2.5vw,37px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
body[data-nextest-role="rep"] .rep-v3-kpi .value > span {font-size:.48em;white-space:nowrap}
body[data-nextest-role="rep"] .rep-v3-kpi .sub {grid-area:3/1/4/-1;text-align:center;color:#e1f1ff!important;font-size:11px;line-height:1.45;margin:0;font-weight:600}
body[data-nextest-role="rep"] .rep-ratio-card .value {
  display:grid;place-items:center;position:relative;width:clamp(70px,7vw,92px);aspect-ratio:1;border-radius:50%;font-size:17px;
  background:radial-gradient(closest-side,#261550 78%,transparent 82%),conic-gradient(#20e9d6 var(--rep-rate,0%),#6541a8 0);margin:2px auto;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(.card,details,.rep-board-section,.nx-rep-panel,.rep-task-header,.rep-order-footer,.rep-work-result,.cust-card),
body[data-nextest-role="rep"] :is(#roleContent dialog,#mgrModalBox,#rpDetailOverlay [role="dialog"][aria-modal="true"]) {
  background:var(--rep-panel)!important;color:var(--rep-text)!important;
  border-color:var(--rep-line)!important;box-shadow:var(--rep-shadow);
}
body[data-nextest-role="rep"] #repBoard :is(.rep-board-section,.nx-rep-panel) {border:1px solid var(--rep-line);border-radius:14px;min-width:0;overflow:hidden}
body[data-nextest-role="rep"] #repBoard :is(.rep-board-section,.nx-rep-panel)>:is(header,.nx-rep-panel-heading) {
  display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 13px;border-bottom:1px solid var(--rep-line);
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(h2,h3,h4,.name,label) {color:var(--rep-text)!important}
body[data-nextest-role="rep"] #repBoard :is(header,.nx-rep-panel-heading) h2 {font-weight:800;font-size:clamp(15px,1.65vw,21px);margin:0}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(.meta,.sub,.empty,.loading):not(.rep-v3-kpi .sub) {color:var(--rep-muted)!important}
body[data-nextest-role="rep"] #repBoard .rep-board-sections>.rep-board-section>div {padding:12px;overflow-x:auto}
body[data-nextest-role="rep"] #repBoard :is(.nx-rep-recent-columns,.rep-recent-grid) {margin-inline:10px}
body[data-nextest-role="rep"] #repBoard :is(.nx-rep-recent-columns,.rep-recent-row) {
  display:grid;grid-template-columns:minmax(52px,.7fr) minmax(85px,1.45fr) minmax(64px,.9fr) minmax(62px,.85fr) minmax(70px,1fr) minmax(72px,1fr) minmax(66px,.8fr);
  align-items:center;gap:7px;font-size:13px;text-align:start;
}
body[data-nextest-role="rep"] .rep-recent-scroll {overflow:auto;padding-block:9px 10px}
body[data-nextest-role="rep"] #repBoard .nx-rep-recent-columns {padding:8px 10px;background:var(--rep-raised);border-radius:8px 8px 0 0;font-weight:800}
body[data-nextest-role="rep"] #repBoard .rep-recent-row {min-height:38px;width:100%;padding:5px 10px;margin:0;border:none;border-radius:0;border-bottom:1px solid var(--rep-line);background:transparent!important;color:var(--rep-text)!important;box-shadow:none!important}
body[data-nextest-role="rep"] #repBoard .rep-recent-row:nth-child(even) {background:color-mix(in srgb,var(--rep-line) 18%,transparent)!important}
body[data-nextest-role="rep"] #repBoard .rep-recent-row:hover {background:var(--rep-raised)!important}
body[data-nextest-role="rep"] .rep-recent-row > * {min-width:0;overflow-wrap:anywhere}
body[data-nextest-role="rep"] .rep-order-state,body[data-nextest-role="rep"] .rep-row-details {
  justify-self:start;border-radius:20px;padding:3px 7px;background:#134780;color:#fff;font-size:11px;font-weight:800;
}
body[data-nextest-role="rep"] .rep-order-state[data-state="collected"] {background:#057a4a}
body[data-nextest-role="rep"] .rep-order-state[data-state="delivered"] {background:#086bb1}
body[data-nextest-role="rep"] .rep-order-state[data-state="loaded"] {background:#067a5b}
body[data-nextest-role="rep"] .rep-order-state[data-state="pending"] {background:#995800}
body[data-nextest-role="rep"] .rep-order-state[data-state="cancelled"] {background:#a62940}
body[data-nextest-role="rep"] .rep-row-details {background:var(--rep-button);white-space:nowrap}
body[data-nextest-role="rep"] .nx-rep-en {display:none!important}
html[dir="ltr"] body[data-nextest-role="rep"] .nx-rep-ar {display:none!important}
html[dir="ltr"] body[data-nextest-role="rep"] .nx-rep-en {display:inline!important}
body[data-nextest-role="rep"] .nx-rep-insights {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.22fr);gap:13px;min-width:0}
body[data-nextest-role="rep"] .rep-chart-switch {display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px 11px 2px}
body[data-nextest-role="rep"] #repBoard .rep-chart-switch button {min-height:35px;margin:0;font-size:11px;padding:5px 7px}
body[data-nextest-role="rep"] #repBoard .rep-chart-switch button[aria-pressed="false"] {
  --rep-action:var(--rep-quiet);color:var(--rep-text)!important;border-color:var(--rep-line)!important;
}
body[data-nextest-role="rep"] .nx-rep-chart {
  display:grid;grid-template-columns:repeat(var(--rep-chart-columns),minmax(0,1fr));gap:9px;padding:12px 11px 7px;
}
body[data-nextest-role="rep"] .nx-rep-chart-row {display:grid;grid-template-rows:clamp(112px,12vw,158px) auto;gap:6px;min-width:0;text-align:center}
body[data-nextest-role="rep"] .nx-rep-chart-label {display:grid;gap:3px;align-content:start;font-size:11px;color:var(--rep-text);line-height:1.45;overflow-wrap:anywhere}
body[data-nextest-role="rep"] .nx-rep-chart-label strong {font-size:clamp(11px,1.24vw,16px);color:var(--rep-text);font-variant-numeric:tabular-nums}
body[data-nextest-role="rep"] .nx-rep-chart-track {
  grid-row:1;display:flex;align-items:end;justify-content:center;border-bottom:1px solid var(--rep-line);
  background:repeating-linear-gradient(to top,transparent 0 32px,#5ba8e926 33px 34px);
}
body[data-nextest-role="rep"] .nx-rep-chart-fill {
  width:min(72%,54px);height:var(--nx-chart-fill);border-radius:7px 7px 0 0;
  background:linear-gradient(150deg,#41e5ff,#087bea 73%,#0762d4);box-shadow:inset 1px 1px #ffffff45,0 0 14px #199dff58;
}
body[data-nextest-role="rep"] .nx-rep-orders .nx-rep-chart-fill {background:linear-gradient(145deg,#ffd460,#e77900)}
body[data-nextest-role="rep"] .nx-rep-paid .nx-rep-chart-fill {background:linear-gradient(145deg,#2cf5aa,#049759)}
body[data-nextest-role="rep"] .nx-rep-balance .nx-rep-chart-fill {background:linear-gradient(145deg,#ca81ff,#7621cc)}
body[data-nextest-role="rep"] .rep-chart-negative.nx-rep-chart-fill {background:repeating-linear-gradient(135deg,#c84c62 0 5px,#9a2c48 5px 10px)}
body[data-nextest-role="rep"] .nx-rep-panel-footnote {padding:2px 11px 10px;color:var(--rep-muted);font-size:11px;margin:0}
body[data-nextest-role="rep"] .rep-chart-empty {min-height:151px;display:grid;place-items:center;padding:10px;text-align:center}
body[data-nextest-role="rep"] .rep-financial-note {display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 10px 8px}
body[data-nextest-role="rep"] .rep-financial-note p {padding:0}
body[data-nextest-role="rep"] .nx-rep-workflow-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px 10px}
body[data-nextest-role="rep"] #repBoard .nx-rep-workflow-item {
  display:flex;align-items:center;justify-content:flex-start;gap:5px;min-height:34px;margin:0;text-align:start;padding:4px 7px;line-height:1.35;
}
body[data-nextest-role="rep"] #repBoard .nx-rep-workflow-item:is(.nx-rep-workflow-orders,.nx-rep-workflow-visits,.nx-rep-workflow-performance) {border-color:#ffffff5c!important}
body[data-nextest-role="rep"] .nx-rep-workflow-orders {--rep-action:linear-gradient(#9a570e,#643005)!important}
body[data-nextest-role="rep"] .nx-rep-workflow-visits {--rep-action:linear-gradient(#087c60,#034b3b)!important}
body[data-nextest-role="rep"] .nx-rep-workflow-performance {--rep-action:linear-gradient(#7540b2,#4b2389)!important}
body[data-nextest-role="rep"] .nx-rep-workflow-number,body[data-nextest-role="rep"] .nx-rep-workflow-glyph {font-size:13px;font-weight:800;line-height:1.1}
body[data-nextest-role="rep"] .nx-rep-workflow-title {font-size:11px}
body[data-nextest-role="rep"] .nx-rep-workflow-detail {font-size:10px;color:#eff7ff;margin-inline-start:auto}
body[data-nextest-role="rep"] #repBoard :is(.nx-rep-panel-action,.nx-rep-all-orders) {width:auto;min-height:34px;padding:5px 9px;margin:0;font-size:11px}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  color:var(--rep-text)!important;background:var(--rep-input)!important;border:1px solid var(--rep-line)!important;border-radius:9px;font-family:inherit;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(input,textarea)::placeholder {color:var(--rep-muted)!important}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(td,th) {color:var(--rep-text)!important;border-color:var(--rep-line)}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) th {background:var(--rep-raised)!important}
body[data-nextest-role="rep"] #repBoard details {border:1px solid var(--rep-line);border-radius:11px;padding:8px}
body[data-nextest-role="rep"] #repBoard summary {cursor:pointer;color:var(--rep-text);font-weight:800}
body[data-nextest-role="rep"] #repBoard .rep-real-product-track {display:block;min-height:10px;border-radius:8px;background:var(--rep-raised)}
body[data-nextest-role="rep"] #repBoard .rep-real-product-track i {display:block;min-height:10px;border-radius:8px;background:var(--rep-button)}
body[data-nextest-role="rep"] #roleContent dialog::backdrop {background:#010e27ad;backdrop-filter:blur(4px)}
body[data-nextest-role="rep"] #roleContent dialog:not([open]) {display:none!important}
body[data-nextest-role="rep"] #roleContent dialog[open] {border:1px solid var(--rep-line);border-radius:16px}
body[data-nextest-role="rep"] #repVisitPicker form {padding-block-end:12px}
body[data-nextest-role="rep"] #repBoard .rep-analytics-plot {max-width:100%;overflow:auto}
@media(max-width:650px){
  body[data-nextest-role="rep"] #repDashGrid .rep-v3-kpis {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body[data-nextest-role="rep"] #repBoard .rep-v3-kpi {min-height:131px}
  body[data-nextest-role="rep"] #repBoard .rep-ratio-card {grid-column:1/-1}
  body[data-nextest-role="rep"] .rep-hero-copy {min-height:218px;align-items:end;padding:10px 13px;gap:8px}
  body[data-nextest-role="rep"] .rep-hero-copy::before {
    background-image:linear-gradient(0deg,#041b47 2%,#041b4700 56%),url("/assets/representative-hero-mobile.webp");
    background-size:100% 100%,auto 100%;mask-image:none;
  }
  body[data-nextest-role="rep"] .rep-hero-copy > div {max-width:none;padding:0}
  body[data-nextest-role="rep"] .rep-board-head-actions {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px}
  body[data-nextest-role="rep"] #repClock {grid-column:1/-1;min-height:34px}
  body[data-nextest-role="rep"] .nx-rep-insights {grid-template-columns:1fr}
  body[data-nextest-role="rep"] #roleContent.rep-workspace {padding-inline:5px!important}
}
@media print {
  body[data-nextest-role="rep"] #repBoard::after {display:none}
}
body[data-nextest-role="rep"] .rep-customer-preview {padding:9px 10px 0}
body[data-nextest-role="rep"] .rep-search-field {position:relative}
body[data-nextest-role="rep"] .rep-search-field svg {position:absolute;inset:50% 8px auto auto;inset-inline-start:8px;inset-inline-end:auto;transform:translateY(-60%);color:var(--rep-accent);pointer-events:none}
body[data-nextest-role="rep"] .rep-search-field input {margin:0 0 6px;padding-inline-start:29px}
body[data-nextest-role="rep"] .rep-customer-results {max-height:145px;min-height:70px;overflow:auto;border-radius:9px;border:1px solid var(--rep-line)}
body[data-nextest-role="rep"] .rep-customer-results th {position:sticky;top:0;white-space:nowrap}
body[data-nextest-role="rep"] .rep-customer-results td {font-size:13px;overflow-wrap:anywhere}
body[data-nextest-role="rep"] .rep-customer-results p {padding:3px 8px}
body[data-nextest-role="rep"] .rep-month-content {overflow:auto;padding:10px}
body[data-nextest-role="rep"] .rep-month-content table {min-width:470px}
body[data-nextest-role="rep"] .rep-month-content th {font-weight:800}
body[data-nextest-role="rep"] :is(#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay)>.card,
body[data-nextest-role="rep"] #rpDetailOverlay :is(.wh-detail-dialog,.wh-detail-header,.wh-detail-field,.wh-detail-table,.card,details),
body[data-nextest-role="rep"] #nextestThemeOverlay .theme-studio-modal,
body[data-nextest-role="rep"] #repOrderDialog :is(.rep-order-scroll,#ordCreditInfoWrap) {
  background:var(--rep-panel)!important;color:var(--rep-text)!important;border-color:var(--rep-line)!important;
}
body[data-nextest-role="rep"] #rpDetailOverlay :is(h2,h3,.wh-detail-status,.wh-detail-field strong) {color:var(--rep-text)!important}
body[data-nextest-role="rep"] #repOrderDialog[open] {border:0;border-radius:0}
body:has(#appView:not(.hidden) #roleContent.rep-workspace)[data-nextest-role="rep"] #drawerNav {overflow-y:auto}
@media(min-width:900px){
  body:has(#appView:not(.hidden) #roleContent.rep-workspace)[data-nextest-role="rep"] #drawerNav .drawer-nav-item {min-height:49px;margin:0}
}
@media(prefers-reduced-motion:reduce){
  body[data-nextest-role="rep"] :is(#repBoard,#sideDrawer,#mgrCommandBar) * {transition:none!important;animation:none!important}
}
body[data-nextest-role="rep"] .drawer-brand .manager-drawer-brand-copy {direction:ltr;line-height:1.2;position:relative;padding-block-start:6px}
body[data-nextest-role="rep"] .drawer-brand .manager-drawer-brand-copy::before {
  content:"";position:absolute;inset:0 4% auto auto;width:61%;height:11px;
  border-top:2px solid #ffad2d;border-radius:85% 40% 0 0;transform:rotate(-9deg);pointer-events:none;
}
body[data-nextest-role="rep"] .drawer-brand .name {white-space:nowrap;font-size:14px;color:#f6faff}
body[data-nextest-role="rep"] .drawer-brand .logo-box {width:25px;height:29px;border-radius:8px;flex:none}
html[dir="ltr"] body[data-nextest-role="rep"] #sideDrawer {left:0;right:auto}
@media(max-width:899px){
  html[dir="ltr"] body[data-nextest-role="rep"] #sideDrawer:not(.open) {transform:translateX(-100%)}
}
body[data-nextest-role="rep"] #repBoard .rep-v3-kpi:focus-visible {outline:2px solid var(--rep-focus)!important;outline-offset:2px}
body[data-nextest-role="rep"] #drawerNav .drawer-nav-item:focus-visible {outline:2px solid #ffb944!important;outline-offset:-3px}
body[data-nextest-role="rep"] .rep-v3-kpi:hover {filter:brightness(1.12)}
body[data-nextest-role="rep"] #repBoard :is(.rep-visit-summary,.rep-work-result,.cust-detail,.rep-analytics-data) {
  background:var(--rep-panel)!important;color:var(--rep-text)!important;border-color:var(--rep-line)!important;
}
body[data-nextest-role="rep"] #drawerNav {position:relative;z-index:1}
body[data-nextest-role="rep"] #sideDrawer::before {
  content:"";position:absolute;inset:auto -20% 9% auto;width:170%;aspect-ratio:1;pointer-events:none;border-radius:50%;
  background:repeating-radial-gradient(ellipse at 55% 56%,transparent 0 12px,#238df324 13px 14px,transparent 15px 24px),
    radial-gradient(circle at 50% 50%,#1ca0ff55 .75px,transparent 1.4px) center / 6px 6px;
  mask-image:radial-gradient(ellipse,#000 18%,#0008 55%,transparent 73%);
}
body[data-nextest-role="rep"] #sideDrawer {overflow:hidden}
body[data-nextest-role="rep"] #repBoard .rep-v3-kpi:has(.rep-kpi-trend) {grid-template-rows:auto 1fr auto 23px}
body[data-nextest-role="rep"] .rep-kpi-trend {
  width:100%;height:28px;grid-area:4/1/5/-1;overflow:visible;pointer-events:none;color:var(--tone);
}
body[data-nextest-role="rep"] .rep-kpi-trend polyline {fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px currentColor)}
body[data-nextest-role="rep"] .rep-kpi-trend polygon {fill:currentColor;opacity:.12}
body[data-nextest-role="rep"] .nx-rep-financial .rep-section-symbol {color:#f9a633}
body[data-nextest-role="rep"] #repBoard .rep-month-preview .rep-section-symbol {color:#f0a432}

/* Representative interaction states and the surfaces revealed by navigation. */
body[data-nextest-role="rep"] #drawerNav .nx-rep-nav-icon ~ .dn-icon {display:none}
body[data-nextest-role="rep"] #repBoard .rep-board-sections:not(:has(>.rep-board-section:not([hidden]))) {display:none}
body[data-nextest-role="rep"] #repBoard :is(h1,h2)[tabindex="-1"] {scroll-margin-block-start:85px}
body[data-nextest-role="rep"] #repBoard :is(.rep-board-section,.nx-rep-panel)>header {min-height:47px}
body[data-nextest-role="rep"] #repBoard :is(.rep-board-section,.nx-rep-panel) [aria-busy="true"] {cursor:progress}
body[data-nextest-role="rep"] #repBoard #repTabBody {padding:10px;min-width:0;overflow-x:auto}
body[data-nextest-role="rep"] #repBoard :is(.rep-board-section,.nx-rep-panel) tbody tr:nth-child(even) td {
  background:color-mix(in srgb,var(--rep-line) 13%,transparent);
}
body[data-nextest-role="rep"] #repBoard .rep-analytics-data-scroll {max-width:100%;overflow:auto}
body[data-nextest-role="rep"] #repBoard details>summary {padding:6px;border-radius:8px}
body[data-nextest-role="rep"] #repBoard details>summary:hover {background:var(--rep-raised)}
body[data-nextest-role="rep"] #repBoard details[open]>summary {margin-block-end:7px;border-block-end:1px solid var(--rep-line)}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#rpDetailOverlay) button:disabled {opacity:.58;cursor:not-allowed;filter:none}
body[data-nextest-role="rep"] :is(#repBoard,#repOrderDialog,#repVisitPicker) :is(input,textarea,select) {min-width:0}
body[data-nextest-role="rep"] #repOrderDialog #itemsWrap .item-line {
  background:var(--rep-panel);border-color:var(--rep-line);border-radius:9px;
}
body[data-nextest-role="rep"] #repBoard .rep-v3-kpi :is(.label,.sub) {white-space:normal;overflow-wrap:anywhere}

/* Shared representative type and contrast, including dialogs mounted outside the workspace. */
body[data-nextest-role="rep"] :is(#roleContent,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay,#mgrModalBox) {
  font-family:var(--rep-font);font-size:14px;line-height:1.55;letter-spacing:normal;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(label,summary) {
  font-size:13px;line-height:1.5;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(a[href],.cust-phone,.stat-big) {
  color:var(--rep-accent)!important;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay,#editCustOverlay,#repEditOrderOverlay,#stockChoiceOverlay) :is(.danger,.msg.error) {
  color:var(--rep-danger)!important;
}
body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog,#mgrModalBox,#rpDetailOverlay) :is(.msg.ok,.rep-visit-summary strong) {
  color:var(--rep-success)!important;
}
body[data-nextest-role="rep"] #rpDetailOverlay :is(.wh-detail-field span,.wh-detail-trail) {color:var(--rep-muted)!important}
body[data-nextest-role="rep"] #rpDetailOverlay .wh-detail-field strong {overflow-wrap:anywhere}
body[data-nextest-role="rep"] #rpDetailOverlay .wh-detail-dialog button.wh-detail-field {
  background:var(--rep-panel)!important;color:var(--rep-text)!important;border-color:var(--rep-line)!important;
}
body[data-nextest-role="rep"] #repBoard .badge.credit {color:var(--rep-warning)!important}
body[data-nextest-role="rep"] #sideDrawer :is(#drawerUser,.drawer-brand) {
  color-scheme:dark;background:#061d42!important;border-color:#246bb0!important;
}
body[data-nextest-role="rep"] #sideDrawer #drawerUser .name {color:#f4f9ff!important}
body[data-nextest-role="rep"] #sideDrawer #drawerUser .role {color:#b6d5f2!important}
body[data-nextest-role="rep"] #mgrCommandBar {color-scheme:dark}
body[data-nextest-role="rep"] #repBoard :is(.rep-board-section,.nx-rep-panel,.rep-analytics-data) {
  overflow-wrap:anywhere;
}
body[data-nextest-role="rep"] #repBoard :is(.rep-recent-row,.rep-month-content,.rep-customer-results) :is(td,time,bdi,.rep-recent-id) {
  font-variant-numeric:tabular-nums;
}
body[data-nextest-role="rep"] #repBoard :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {font-size:14px}
@media(max-width:650px) {
  body[data-nextest-role="rep"] :is(#repBoard,#roleContent dialog) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {font-size:16px}
  body[data-nextest-role="rep"] #repBoard .nx-rep-workflow-detail {margin-inline-start:0}
  body[data-nextest-role="rep"] #repBoard .nx-rep-workflow-item {flex-wrap:wrap;min-height:42px}
  body[data-nextest-role="rep"] #repBoard :is(.nx-rep-panel-action,.nx-rep-all-orders) {min-height:38px}
  body[data-nextest-role="rep"] #repBoard .rep-hero-copy p {font-size:12px;line-height:1.5}
}

/* Denser desktop ledger and reflowing order rows in narrow viewports. */
body[data-nextest-role="rep"] #repBoard .rep-recent-id {color:var(--rep-accent);font-weight:800}
body[data-nextest-role="rep"] .rep-collection-unknown {color:var(--rep-muted)}
body[data-nextest-role="rep"] .rep-recent-amount {font-variant-numeric:tabular-nums}
body[data-nextest-role="rep"] #repBoard .rep-recent-row {min-height:41px}
body[data-nextest-role="rep"] #repBoard .rep-recent-row:focus-visible {outline-offset:-3px}
body[data-nextest-role="rep"] .rep-visually-hidden {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
body[data-nextest-role="rep"] #repBoard :is(.rep-board-section,.nx-rep-panel)> :is(header,.nx-rep-panel-heading) {
  background:linear-gradient(180deg,color-mix(in srgb,var(--rep-raised) 32%,transparent),transparent);
}
body[data-nextest-role="rep"] #repBoard .rep-chart-switch button {min-height:41px}
body[data-nextest-role="rep"] .rep-customer-results td bdi {white-space:nowrap}
body[data-nextest-role="rep"] .rep-hero-copy > div {
  filter:drop-shadow(0 2px 10px #03122b);
}
@media(max-width:720px){
  body[data-nextest-role="rep"] #repBoard .nx-rep-recent-columns {
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;
  }
  body[data-nextest-role="rep"] #repBoard .rep-recent-row {
    grid-template-columns:minmax(70px,1fr) minmax(62px,1fr) minmax(82px,1.12fr);
    grid-template-areas:"id customer customer" "amount status date" "collection details details";
    gap:6px 9px;text-align:start;padding-block:8px;
  }
  body[data-nextest-role="rep"] #repBoard .rep-recent-id {grid-area:id}
  body[data-nextest-role="rep"] #repBoard .rep-recent-customer {grid-area:customer}
  body[data-nextest-role="rep"] #repBoard .rep-recent-amount {grid-area:amount}
  body[data-nextest-role="rep"] #repBoard .rep-recent-collection {grid-area:collection}
  body[data-nextest-role="rep"] #repBoard .rep-recent-status {grid-area:status}
  body[data-nextest-role="rep"] #repBoard .rep-recent-date {grid-area:date}
  body[data-nextest-role="rep"] #repBoard .rep-row-details {grid-area:details;justify-self:end}
}
@media(max-height:600px) and (orientation:landscape){
  body[data-nextest-role="rep"] #mgrCommandBar {min-height:54px}
  body[data-nextest-role="rep"] .rep-hero-copy {min-height:152px;padding-block:12px}
  body[data-nextest-role="rep"] #repBoard .rep-v3-kpi {min-height:128px}
  body[data-nextest-role="rep"] #sideDrawer .drawer-brand {min-height:57px;padding-block:8px}
  body[data-nextest-role="rep"] #drawerNav {padding-block:7px}
}
@media(forced-colors:active){
  body[data-nextest-role="rep"] #repBoard button:focus-visible,
  body[data-nextest-role="rep"] #drawerNav .drawer-nav-item:focus-visible {outline-color:Highlight!important}
  body[data-nextest-role="rep"] .nx-rep-chart-fill {background:Highlight!important;forced-color-adjust:none}
}
body[data-nextest-role="rep"] .rep-kpi-icon svg {width:23px;height:23px;filter:drop-shadow(0 0 5px color-mix(in srgb,var(--tone) 52%,transparent))}
body[data-nextest-role="rep"] #repBoard .rep-real-product-row {
  display:grid;grid-template-columns:minmax(70px,1fr) minmax(65px,2.15fr) minmax(45px,auto);
  align-items:center;gap:10px;padding:7px 0;border-block-end:1px solid var(--rep-line);
}
body[data-nextest-role="rep"] #repBoard .rep-real-product-qty {font-variant-numeric:tabular-nums;text-align:end}
body[data-nextest-role="rep"] #repBoard .rep-real-product-row:nth-child(4n+2) .rep-real-product-track i {background:linear-gradient(90deg,#a34b00,#edac33)}
body[data-nextest-role="rep"] #repBoard .rep-real-product-row:nth-child(4n+3) .rep-real-product-track i {background:linear-gradient(90deg,#087653,#30daa1)}
body[data-nextest-role="rep"] #repBoard .rep-real-product-row:nth-child(4n+4) .rep-real-product-track i {background:linear-gradient(90deg,#6a24bc,#b976fc)}
@media(max-width:360px){
  body[data-nextest-role="rep"] #repBoard .rep-board-head-actions {grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-nextest-role="rep"] #repBoard [data-rep-refresh="home"] {grid-column:1/-1}
  body[data-nextest-role="rep"] #repBoard .rep-recent-row {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:899px){
  body[data-nextest-role="rep"] #sideDrawer:not(.open) {visibility:hidden}
  body[data-nextest-role="rep"] #sideDrawer.open {visibility:visible}
}
body[data-nextest-role="rep"] #hamburgerBtn:focus-visible {outline:2px solid #ffbd49!important;outline-offset:2px}
.rep-release-label {display:none}
body[data-nextest-role="rep"] .rep-release-label {display:block;font-size:10px;line-height:1.4;color:#bfdcf5}

body[data-nextest-role="rep"] #repBoard .rep-recent-row {line-height:1.45}
body[data-nextest-role="rep"] #repBoard .rep-chart-switch button[aria-pressed="true"] {
  border-color:#71d5ff!important;box-shadow:inset 0 -2px #6ee1ff;
}
body[data-nextest-role="rep"] .rep-kpi-trend {height:23px}
body[data-nextest-role="rep"] .nx-rep-chart-label strong {line-height:1.25}
body[data-nextest-role="rep"] .nx-rep-chart-label>span {color:var(--rep-muted)}
@media(min-width:721px){
  body[data-nextest-role="rep"] .rep-board-mark {width:clamp(34px,4vw,55px)}
}
