/* =====================================================================
   esmartbooks UI standard (loaded last).
   One look for every field, date picker, search box and table, the way
   standard accounting software does it: same height, same rounded edge,
   left-aligned text and dates, right-aligned figures, compact rows.
   ===================================================================== */
:root{
  --sbu-radius:8px;
  --sbu-h:38px;
  --sbu-line:#c5d4e6;
  --sbu-focus:#0f766e;
  --sbu-row-pad:8px 12px;
}

/* ---------- 1. Fields, selects, date pickers, search boxes ---------- */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),
  select, textarea){
  border-style:solid!important;
  border-width:1px!important;
  border-radius:var(--sbu-radius)!important;
  box-sizing:border-box!important;
  font-family:inherit!important;
  font-size:14px!important;
  box-shadow:none;
  max-width:100%;
}
html:not([data-theme="dark"]) body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),
  select, textarea){
  border-color:var(--sbu-line)!important;
}
/* Same height for every single-line control outside the line-item grids. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),
  select:not([multiple]):not([size])):not(td *):not(.sb-inv-line *){
  height:var(--sbu-h)!important;
  min-height:var(--sbu-h)!important;
  padding-top:0!important;
  padding-bottom:0!important;
  padding-left:10px!important;
  line-height:normal!important;
}
/* Native date / time pickers: no square boxes, no odd sizes. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input:is([type=date],[type=datetime-local],[type=month],[type=time]){
  padding-right:8px!important;
  min-width:9.5rem;
  font-variant-numeric:tabular-nums;
}
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input:is([type=date],[type=datetime-local],[type=month])::-webkit-calendar-picker-indicator{
  cursor:pointer;opacity:.65;margin-left:4px;
}
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) td input:is([type=date],[type=datetime-local]){min-width:8.5rem}
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .field > input:is([type=date],[type=datetime-local],[type=month],[type=time]){width:100%!important}
/* Line-item grids keep their compact cells but with the same rounded edge. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) td :is(input:not([type=checkbox]):not([type=radio]),select){
  border-radius:6px!important;
}
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(input,select,textarea):focus-visible{
  outline:2px solid color-mix(in srgb,var(--sbu-focus) 35%,transparent)!important;
  outline-offset:0!important;
  border-color:var(--sbu-focus)!important;
}
/* Search and barcode boxes look like every other field. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(input[type=search],input.search,[data-barcode-input],#pos-q){
  border-radius:var(--sbu-radius)!important;
  border-width:1px!important;
  border-style:solid!important;
}
/* Labels beside fields: one weight everywhere. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .field>label{font-weight:600}

/* ---------- 2. Tables: scroll sideways, standard header alignment ---------- */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .table-wrap{
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
  max-width:100%;
}
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .panel:has(> .table-wrap){min-width:0}
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) th:not([data-esb-align]):not(.num):not(.amount):not(.right){text-align:left!important}
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(th,td).num{text-align:right!important}

/* Icon buttons (print, edit, delete …) */
.sb-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html body :is(#app,#modal-root) .sb-icon-btn{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-width:34px;width:auto;height:34px;padding:0 8px!important;gap:0;
  border-radius:var(--sbu-radius)!important;line-height:1;
}
html body :is(#app,#modal-root) td .sb-icon-btn{min-width:30px;height:30px;padding:0 6px!important;margin:0 2px}
html body :is(#app,#modal-root) .sb-icon-btn .sb-ico{width:18px;height:18px;flex:none}
html body :is(#app,#modal-root) td .sb-icon-btn .sb-ico{width:16px;height:16px}
html body :is(#app,#modal-root) .sb-icon-btn.danger,
html body :is(#app,#modal-root) .sb-icon-btn[data-coa-delete]{color:#b42318}

/* ---------- 3. Inventory ---------- */
html body[data-auth-state="authenticated"] #app#app .sb-inv-head-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
html body[data-auth-state="authenticated"] #app#app .sb-inline-filter{display:inline-flex;align-items:center;gap:8px;margin:0 0 0 auto;font-size:13px;font-weight:600;white-space:nowrap}
html body[data-auth-state="authenticated"] #app#app .sb-inline-filter select{width:220px!important;min-width:0}
html body[data-auth-state="authenticated"] #app#app .sb-inv-page{min-height:0!important;height:auto!important;margin-bottom:16px}
html body[data-auth-state="authenticated"] #app#app .sb-inv-move{
  grid-template-columns:7rem 7rem 9rem minmax(12rem,1fr) 9rem 6rem!important;
  padding:8px 28px 8px 14px!important;
  gap:12px!important;
}
/* Lists that end in a figure keep it inset from the card edge, like a statement column. */
html body[data-auth-state="authenticated"] #app#app .sb-inv-line{padding-right:28px!important;padding-left:14px!important}
html body[data-auth-state="authenticated"] #app#app .sb-bank-lines{overflow-x:auto!important}
html body[data-auth-state="authenticated"] #app#app .sb-bank-lines>.sb-bank-line{display:grid!important;grid-template-columns:7.25rem minmax(12rem,1.6fr) minmax(8.5rem,.8fr) 8rem 8rem 8.5rem!important;align-items:center!important;gap:12px!important;padding:9px 18px 9px 14px!important}
html body[data-auth-state="authenticated"] #app#app .sb-bank-lines>.sb-bank-line>span:nth-child(-n+3){text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body[data-auth-state="authenticated"] #app#app .sb-bank-lines>.sb-bank-line>span:nth-child(n+4){text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
html body[data-auth-state="authenticated"] #app#app .sb-bank-lines>.sb-bank-line.sb-bank-line-total{font-weight:700!important;border-top:2px solid var(--line,rgba(255,255,255,.16))!important;background:rgba(255,255,255,.03)!important;cursor:default!important}
html body[data-auth-state="authenticated"] #app#app :is(.sb-inv-line,.sb-bank-line) > span:last-child{padding-right:4px}
html body[data-auth-state="authenticated"] #app#app .sb-inv-move span{text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body[data-auth-state="authenticated"] #app#app .sb-inv-move span:last-child{text-align:right!important}
html body[data-auth-state="authenticated"] #app#app .sb-inv-move .sb-inv-desc{white-space:nowrap}
html body[data-auth-state="authenticated"] #app#app .sb-inv-line{padding:var(--sbu-row-pad)}
html body[data-auth-state="authenticated"] #app#app .sb-inv-lines{overflow-x:auto}

/* ---------- 4. Dashboard ---------- */
html body .route-dashboard .esb-hero-top{min-height:0}
html body .route-dashboard .esb-pos-line[title]{cursor:pointer}
/* Recent activity: compact six-column register with a summary line */
html body #app#app.route-dashboard .esb-act-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 8px;font-size:.8rem;color:var(--muted,#667085)}
html body #app#app.route-dashboard .esb-act-summary b{color:var(--ink,#0c2340);font-weight:700}
html body #app#app.route-dashboard .esb-act-chips{display:inline-flex;gap:6px;flex-wrap:wrap}
html body #app#app.route-dashboard .esb-act-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.7rem;font-weight:700;background:#eef2f6;color:#334155}
html body #app#app.route-dashboard .esb-act-chip.open{background:#e0f2fe;color:#075985}
html body #app#app.route-dashboard .esb-act-chip.overdue{background:#fee4e2;color:#b42318}
html body #app#app.route-dashboard .esb-act-chip.paid{background:#dcfae6;color:#067647}
html body #app#app.route-dashboard .esb-act-chip.draft{background:#f2f4f7;color:#475467}
html body #app#app.route-dashboard .esb-activity.esb-act-table{display:flex!important;flex-direction:column;gap:0!important;border:1px solid #e4e9f0;border-radius:10px;overflow:hidden}
html body #app#app.route-dashboard .esb-act-table .esb-act-row{
  display:grid!important;
  grid-template-columns:58px minmax(96px,130px) minmax(0,1.6fr) minmax(110px,1fr) 70px minmax(100px,130px)!important;
  gap:12px!important;align-items:center;
  padding:7px 12px!important;min-height:0!important;margin:0!important;
  border:0!important;border-bottom:1px solid #eef2f6!important;border-radius:0!important;background:transparent;
}
html body #app#app.route-dashboard .esb-act-table .esb-act-row:last-child{border-bottom:0!important}
html body #app#app.route-dashboard .esb-act-table button.esb-act-row:hover{background:#f6f9fc}
html body #app#app.route-dashboard .esb-act-table .esb-act-head{background:#f6f8fb!important;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#667085;padding-top:6px!important;padding-bottom:6px!important;cursor:default}
html body #app#app.route-dashboard .esb-act-table .esb-act-row > *{margin:0!important;min-width:0}
html body #app#app.route-dashboard .esb-act-table .esb-act-row b{display:block;font-size:.84rem!important;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #app#app.route-dashboard .esb-act-table .esb-act-row small{display:block;font-size:.7rem!important;line-height:1.2;color:var(--muted,#667085)}
html body #app#app.route-dashboard .esb-act-table .esb-act-who{display:block!important;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #app#app.route-dashboard .esb-act-table .esb-act-due.late small{color:#b42318;font-weight:700}
html body #app#app.route-dashboard .esb-act-table .esb-act-due.soon small{color:#b54708;font-weight:600}
html body #app#app.route-dashboard .esb-act-table .esb-status{justify-self:start}
html body #app#app.route-dashboard .esb-act-table .esb-act-amt{text-align:right!important;justify-self:end;white-space:nowrap}
html[data-theme="dark"] body #app#app.route-dashboard .esb-activity.esb-act-table{border-color:#23384f}
html[data-theme="dark"] body #app#app.route-dashboard .esb-act-table .esb-act-row{border-bottom-color:#1d3248!important}
html[data-theme="dark"] body #app#app.route-dashboard .esb-act-table .esb-act-head{background:#10243a!important;color:#9fb3c8}
html[data-theme="dark"] body #app#app.route-dashboard .esb-act-table button.esb-act-row:hover{background:#12304b}
html[data-theme="dark"] body #app#app.route-dashboard .esb-act-summary b{color:#e6edf5}

/* ---------- 5. Counter sales (POS) ---------- */
html body #app .pos-scan{display:flex!important;gap:8px;align-items:center;flex-wrap:wrap}
html body #app .pos-scan #pos-q{flex:1 1 240px;width:auto!important}
html body #app .pos-scan .btn{height:var(--sbu-h);white-space:nowrap}
html body #app .pos-pay > label{
  display:grid!important;grid-template-columns:100px minmax(0,1fr)!important;align-items:center;gap:8px;
  font-weight:600!important;font-size:13px;margin:0 0 8px!important;
}
html body #app .pos-pay > label > :is(select,input){width:100%!important}
html body #app .pos-tender-row{grid-template-columns:100px minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;margin:0 0 8px}
html body #app .pos-tender-row .pos-tender-name{font-weight:600;font-size:13px}
html body #app .pos-tender-row input{text-align:right;width:100%!important}
html body #app .pos-tender-row select{width:100%!important}
html body #app .pos-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px;margin-top:10px}
html body #app .pos-actions .btn{width:100%;height:42px;margin:0!important}
html body #app .pos-shift-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;margin:4px 0 10px}

/* ---------- 6. Payroll employee header ---------- */
html body #app .sb-emp-id{display:flex!important;align-items:center;gap:16px;flex-wrap:wrap}
html body #app .sb-emp-id-who{min-width:0;flex:1 1 220px}
html body #app .sb-emp-id-who h2{font-size:1.2rem!important;margin:0!important;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #app .sb-emp-id-who p{margin:2px 0 0!important;font-size:13px}
html body #app .sb-emp-id-pay{display:flex;flex-direction:column;align-items:flex-end}
html body #app .sb-emp-id-pay b{font-size:1.1rem!important}
html body #app .sb-emp-pay-cta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* ---------- 7. Customer / vendor centre toolbar on one row ---------- */
html body #app .esb-customer-date-filter{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
html body #app .esb-customer-date-filter label{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px}
html body #app .esb-customer-date-filter input[type=date]{width:9.5rem!important}
html body #app .sb-center-manage{margin-left:auto}

/* ---------- 8. Chart of accounts fits the page ---------- */
html body #app table.sb-coa-table{min-width:0!important;width:100%!important;table-layout:auto}
html body #app table.sb-coa-table :is(th,td){padding:8px 10px!important}
html body #app table.sb-coa-table td:nth-child(2),
html body #app table.sb-coa-table td:nth-child(4){white-space:normal!important;min-width:9rem}
html body #app table.sb-coa-table td:nth-child(2) small{display:block;font-size:11px;color:var(--muted,#667085)}
html body #app table.sb-coa-table td:last-child{white-space:nowrap}

/* ---------- 9. Bank accounts review list ---------- */
html body[data-auth-state="authenticated"] #app#app .sb-bank-line{
  grid-template-columns:7rem minmax(0,1fr) 10rem 9rem 9rem!important;
  padding:var(--sbu-row-pad)!important;
}
html body[data-auth-state="authenticated"] #app#app .sb-bank-line span:nth-child(3){text-align:left!important;color:var(--books-muted,#4b5563)}
html body[data-auth-state="authenticated"] #app#app .sb-bank-line span:nth-child(4),
html body[data-auth-state="authenticated"] #app#app .sb-bank-line span:nth-child(5){text-align:right!important;white-space:nowrap}

/* ---------- 10. Reports filter bar: fields line up ---------- */
html body #app .sb-report-period-bar label{font-weight:600}

/* ---------- 11. Phones: denser, smaller type, less empty space ---------- */
@media screen and (max-width:768px){
  :root{--sbu-h:36px;--sbu-row-pad:6px 8px}
  html body[data-auth-state="authenticated"]{font-size:13px}
  /* page frame */
  html body[data-auth-state="authenticated"] #app#app{padding:8px 10px calc(72px + env(safe-area-inset-bottom))!important}
  html body[data-auth-state="authenticated"] header.topbar{height:48px!important;min-height:48px!important;max-height:48px!important;flex-wrap:nowrap!important;padding-top:max(4px,env(safe-area-inset-top))!important;padding-bottom:4px!important}
  html body[data-auth-state="authenticated"] header.topbar h1{font-size:17px!important;line-height:1.2!important}
  html body[data-auth-state="authenticated"] #app#app :is(h1){font-size:1.15rem!important;line-height:1.25!important;margin:0 0 6px!important}
  html body[data-auth-state="authenticated"] #app#app :is(h2){font-size:.98rem!important;line-height:1.3!important}
  html body[data-auth-state="authenticated"] #app#app :is(h3){font-size:.9rem!important}
  /* cards and panels */
  html body[data-auth-state="authenticated"] #app#app :is(.panel,.form-card,.fs-card){padding:10px!important;margin-bottom:10px!important;border-radius:10px!important}
  /* Tables and panel headings run to the panel's edges: the side margins only work when the width grows with them,
     otherwise a 20px strip was left down the right-hand side of every table. */
  html body[data-auth-state="authenticated"] #app#app .panel > .table-wrap{margin:0 -10px -10px!important;width:calc(100% + 20px)!important;max-width:calc(100% + 20px)!important}
  html body[data-auth-state="authenticated"] #app#app .panel-head{padding:6px 0 8px!important;margin:0!important;gap:8px!important}
  html body[data-auth-state="authenticated"] #app#app .panel > .panel-head:first-child{padding:10px 10px 8px!important;margin:-10px -10px 0!important;border-radius:10px 10px 0 0!important}
  /* Heading and its count share one line; buttons and tools in the heading take the next line. */
  html body[data-auth-state="authenticated"] #app#app .panel > .panel-head{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;row-gap:6px!important}
  html body[data-auth-state="authenticated"] #app#app .panel > .panel-head > :is(h2,h3){margin:0!important}
  html body[data-auth-state="authenticated"] #app#app .panel > .panel-head > :not(h2,h3,span,small){grid-column:1 / -1!important}
  /* Filter bars inside a panel use the panel's own padding instead of adding a second inset. */
  html body[data-auth-state="authenticated"] #app#app .panel > .esb-owner-toolbar{padding:8px 0 4px!important;margin:0 0 6px!important}
  html body[data-auth-state="authenticated"] #app#app .panel .esb-filter-chips{margin-bottom:4px!important}
  html body[data-auth-state="authenticated"] #app#app :is(.metric,.ex-summary article){padding:9px 10px!important;border-radius:10px!important}
  html body[data-auth-state="authenticated"] #app#app .metric small{font-size:11px!important}
  html body[data-auth-state="authenticated"] #app#app .metric strong{font-size:1.1rem!important;margin:2px 0!important;line-height:1.2!important}
  html body[data-auth-state="authenticated"] #app#app .metric em{font-size:11px!important}
  html body[data-auth-state="authenticated"] #app#app :is(.cards,.ex-summary){gap:8px!important;margin-bottom:10px!important}
  html body[data-auth-state="authenticated"] #app#app .page-actions{margin-bottom:8px!important;gap:6px!important}
  /* controls: 36px instead of 44px, smaller labels */
  html body[data-auth-state="authenticated"] #app#app :is(.btn,button.btn,summary.btn){min-height:36px!important;padding:6px 10px!important;font-size:13px!important}
  html body[data-auth-state="authenticated"] #app#app :is(.page-actions,.docform-actions,.sb-preview-toolbar) :is(button.btn,select){min-height:36px!important;padding:6px 10px!important}
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(input,select,textarea){font-size:16px!important} /* stops iOS zoom */
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .field{margin-bottom:6px!important}
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .field > label{font-size:12px!important;margin-bottom:3px!important}
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .form-grid{gap:8px!important}
  /* tables */
  html body[data-auth-state="authenticated"] #app#app :is(th,td){padding:6px 8px!important;font-size:12.5px!important}
  html body[data-auth-state="authenticated"] :is(#app,#modal-root) table:is(.esb-mobile-record-table,.esb-mobile-entry-table) > tbody > tr{padding:8px 10px!important;margin:0 0 6px!important}
  html body[data-auth-state="authenticated"] :is(#app,#modal-root) table:is(.esb-mobile-record-table,.esb-mobile-entry-table) > tbody > tr > td{padding:2px 0!important;font-size:13px!important}
  /* dashboard */
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-pos{padding:12px 10px!important;row-gap:8px!important;border-radius:12px!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-hero-greet h1{font-size:1.15rem!important;margin:0!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-hero-greet small{font-size:10px!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-pos-head{margin:0 0 6px!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-pos-head h2{font-size:1rem!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-pos-line{padding:7px 2px!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-pos-label{font-size:.86rem!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-pos-label small{font-size:.72rem!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-pos-amt{font-size:.98rem!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard :is(.esb-dash-big,.esb-hero-value){font-size:20px!important;line-height:1.2!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-dashboard-grid{gap:8px!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-dash-card{padding:10px!important;margin:0!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-dash-card-head h2{font-size:14px!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard :is(.esb-dash-sub,.esb-dash-empty,.esb-age-legend){font-size:12px!important;line-height:1.35!important}
  html body[data-auth-state="authenticated"] #app#app.route-dashboard .esb-dash-link{min-height:30px!important;padding:2px 0!important;font-size:13px!important}
  html body #app#app.route-dashboard .esb-act-table .esb-act-head{display:none!important}
  html body #app#app.route-dashboard .esb-act-table .esb-act-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"doc amt" "who status" "due date"!important;
    row-gap:2px!important;column-gap:8px!important;padding:7px 10px!important}
  html body #app#app.route-dashboard .esb-act-table .esb-act-doc{grid-area:doc}
  html body #app#app.route-dashboard .esb-act-table .esb-act-amt{grid-area:amt}
  html body #app#app.route-dashboard .esb-act-table .esb-act-who{grid-area:who;display:block!important;font-size:.78rem!important;color:var(--muted,#667085)}
  html body #app#app.route-dashboard .esb-act-table .esb-status{grid-area:status;justify-self:end}
  html body #app#app.route-dashboard .esb-act-table .esb-act-due{grid-area:due;display:flex!important;gap:6px;align-items:baseline}
  html body #app#app.route-dashboard .esb-act-table .esb-act-due b{font-size:.74rem!important;font-weight:600}
  html body #app#app.route-dashboard .esb-act-table .esb-act-date{grid-area:date;justify-self:end;font-size:.7rem!important}
  html body #app#app.route-dashboard .esb-act-table .esb-act-doc small{display:inline!important;margin-left:6px}
  html body #app#app.route-dashboard .esb-act-table .esb-act-doc b{display:inline!important}
  html body #app#app.route-dashboard .esb-act-table .is-empty{display:none!important}
  html body #app#app.route-dashboard .esb-act-table .esb-act-due small{font-size:.7rem!important}
  html body #app#app.route-dashboard .esb-act-summary{font-size:.74rem;margin-bottom:6px}
  /* inventory, bank, POS */
  html body[data-auth-state="authenticated"] #app#app .sb-inv-move{grid-template-columns:6rem 5rem 6rem minmax(8rem,1fr) 5rem 3.5rem!important;min-width:560px}
  html body[data-auth-state="authenticated"] #app#app .sb-bank-line{grid-template-columns:6rem minmax(0,1fr) 7rem 7rem!important}
  html body[data-auth-state="authenticated"] #app#app .sb-bank-line span:nth-child(3){display:none}
  html body #app .pos-pay > label,html body #app .pos-tender-row{grid-template-columns:80px minmax(0,1fr)!important}
  html body #app .pos-tender-row > span:last-child{grid-column:2}
  html body #app .sb-inline-filter select{width:160px!important}
  html body #app .sb-emp-id{gap:8px!important}
}

/* ---------- 12. Menus: one arrow only ---------- */
html body :is(#app,#modal-root) summary.btn{list-style:none}
html body :is(#app,#modal-root) summary.btn::-webkit-details-marker{display:none}
html body :is(#app,#modal-root) summary.btn::marker{content:""}
html body summary.sb-one-arrow::-webkit-details-marker{display:none}
html body summary.sb-one-arrow::marker{content:""}

/* ---------- 13. App date picker (date-picker.js) ---------- */
@media (pointer:fine){
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date]::-webkit-calendar-picker-indicator{display:none!important}
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date][type=date][type=date][type=date]:not(:disabled):not(.sb-none):not(.sb-none2){
    cursor:pointer;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23587089' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;background-position:right 10px center!important;background-size:16px 16px!important;
    padding-right:34px!important;
  }
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date].sb-dp-masked{color:transparent!important}
  html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date].sb-dp-masked::-webkit-datetime-edit{opacity:0}
  html:not([data-theme="dark"]) body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date]:not(:disabled):not([readonly]):hover,
  html:not([data-theme="dark"]) body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date].sb-dp-open{border-color:#0f766e!important}
  html[data-theme="dark"] body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date]:not(:disabled):not([readonly]):hover,
  html[data-theme="dark"] body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) input[type=date].sb-dp-open{border-color:#2dd4bf!important}
}
.sb-dp-text{position:absolute;display:flex;align-items:center;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink,#0c2340);z-index:1;font-variant-numeric:tabular-nums}
.sb-dp-text[hidden]{display:none}
.sb-dp-text.is-empty{color:#98a2b3}
html[data-theme="dark"] .sb-dp-text.is-empty{color:#6b819a}
html[data-theme="dark"] .sb-dp-text{color:#e6edf5}
.sb-dp{position:fixed;z-index:2147483500;width:284px;padding:10px;background:#fff;border:1px solid #d0d9e4;border-radius:12px;box-shadow:0 12px 32px rgba(12,35,64,.18);font:14px/1.3 Inter,"Segoe UI",Arial,sans-serif;color:#0c2340}
.sb-dp[hidden]{display:none}
.sb-dp-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.sb-dp-title{display:flex;gap:6px;flex:1;justify-content:center}
.sb-dp-title select{height:32px;border:1px solid #d0d9e4;border-radius:8px;padding:0 6px;background:#fff;color:inherit;font:inherit;font-weight:600;cursor:pointer}
.sb-dp-nav{width:32px;height:32px;border:1px solid #d0d9e4;border-radius:8px;background:#fff;color:inherit;font-size:18px;line-height:1;cursor:pointer}
.sb-dp-nav:hover,.sb-dp-foot button:hover{background:#eef6f5;border-color:#0f766e}
.sb-dp-week,.sb-dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.sb-dp-week span{font-size:11px;font-weight:700;color:#667085;padding:4px 0;text-transform:uppercase}
.sb-dp-day{height:34px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer;font-variant-numeric:tabular-nums}
.sb-dp-day:hover{background:#eef6f5}
.sb-dp-day.is-out{color:#a3adb9}
.sb-dp-day.is-today{box-shadow:inset 0 0 0 1px #0f766e;font-weight:700}
.sb-dp-day.is-sel{background:#0f766e;color:#fff;font-weight:700}
.sb-dp-day:disabled{opacity:.35;cursor:not-allowed}
.sb-dp-day:focus-visible{outline:2px solid #0f766e;outline-offset:1px}
.sb-dp-foot{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid #eef2f6}
.sb-dp-foot button{height:30px;padding:0 12px;border:1px solid #d0d9e4;border-radius:8px;background:#fff;color:inherit;font:inherit;font-weight:600;cursor:pointer}
.sb-dp-foot [data-dp=today]{background:#0f766e;border-color:#0f766e;color:#fff}
.sb-dp-foot [data-dp=today]:hover{background:#0b5f59}
html[data-theme="dark"] .sb-dp{background:#0f2236;border-color:#25405c;color:#e6edf5;box-shadow:0 12px 32px rgba(0,0,0,.45)}
html[data-theme="dark"] .sb-dp :is(.sb-dp-nav,.sb-dp-title select,.sb-dp-foot button:not([data-dp=today])){background:#13293f;border-color:#2b4866;color:#e6edf5}
html[data-theme="dark"] .sb-dp-day:hover,html[data-theme="dark"] .sb-dp-nav:hover{background:#17344f}
html[data-theme="dark"] .sb-dp-day.is-out{color:#5f7690}
html[data-theme="dark"] .sb-dp-foot{border-top-color:#1f3650}

/* ---------- 14. Employee centre: one title (the list), detail line underneath ---------- */
html body #app .sb-emp-id-line{margin:0!important;font-size:13px;font-weight:600;color:var(--ink,#0c2340)}
html body #app .sb-emp-id-sched{margin-left:8px;font-weight:500;color:var(--muted,#667085)}
html[data-theme="dark"] body #app .sb-emp-id-line{color:#e6edf5}
html[data-theme="dark"] body #app .sb-emp-id-sched{color:#9fb3c8}
/* Table headings: one rule everywhere — text and dates left, figures right, all vertically centred. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) thead th{vertical-align:middle!important}

/* ---------- 15. Counter sales (POS): aligned panels ---------- */
html body[data-auth-state="authenticated"] #app#app .pos-shift-banner{padding:10px 14px!important;margin:0 0 12px!important;border-radius:10px!important;border:1px solid var(--line,#d5dee8)!important}
html body[data-auth-state="authenticated"] #app#app .pos-shell{gap:14px!important;align-items:start!important}
html body[data-auth-state="authenticated"] #app#app .pos-shell > .panel{padding:14px!important;border-radius:12px!important}
html body[data-auth-state="authenticated"] #app#app .pos-cart > .pos-scan{margin:0 0 10px!important}
html body[data-auth-state="authenticated"] #app#app .pos-cart > .pos-catalog{margin:0 0 10px!important}
html body[data-auth-state="authenticated"] #app#app .pos-cart > .table-wrap{margin:0!important;border-radius:10px;overflow-x:hidden!important}
html body[data-auth-state="authenticated"] #app#app .pos-cart table{width:100%!important;max-width:100%!important}
/* right panel: one label column, one field column, even 8px rhythm */
html body[data-auth-state="authenticated"] #app#app .pos-pay{display:flex!important;flex-direction:column!important;gap:8px!important}
html body[data-auth-state="authenticated"] #app#app .pos-pay > label,
html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row{
  display:grid!important;grid-template-columns:110px minmax(0,1fr) minmax(0,1fr)!important;align-items:center!important;
  gap:8px!important;margin:0!important;padding:0!important;min-height:0!important;font-size:13px!important;font-weight:600!important}
html body[data-auth-state="authenticated"] #app#app .pos-pay > label > :is(select,input){grid-column:2 / 4!important;width:100%!important;margin:0!important}
html body[data-auth-state="authenticated"] #app#app .pos-pay > label:has(#pos-disc) > input{grid-column:2 / 3!important}
html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row > input{grid-column:2!important;margin:0!important}
html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row > span:last-child{grid-column:3!important;min-width:0}
html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row > span:last-child:empty{display:block}
html body[data-auth-state="authenticated"] #app#app .pos-pay :is(input[type=number],#pos-disc){text-align:right!important;padding-right:10px!important}
html body[data-auth-state="authenticated"] #app#app .pos-pay .pos-tender-name{font-weight:600!important}
html body[data-auth-state="authenticated"] #app#app .pos-totals{margin:4px 0 0!important;padding:10px 12px!important;border-radius:10px!important}
html body[data-auth-state="authenticated"] #app#app .pos-totals > div{margin:2px 0!important}
html body[data-auth-state="authenticated"] #app#app .pos-pay .pos-actions{margin-top:4px!important}
html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app .pos-shift-banner{border-color:#23384f!important}
@media screen and (max-width:768px){
  html body[data-auth-state="authenticated"] #app#app .pos-pay > label,
  html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row{grid-template-columns:84px minmax(0,1fr)!important}
  html body[data-auth-state="authenticated"] #app#app .pos-pay > label > :is(select,input),
  html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row > input{grid-column:2!important}
  html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row > span:last-child{grid-column:2!important}
  html body[data-auth-state="authenticated"] #app#app .pos-pay > .pos-tender-row > span:last-child:empty{display:none}
}

/* Icon buttons: the icon never collapses inside narrow cells */
html body :is(#app,#modal-root) .sb-icon-btn > svg.sb-ico{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;display:block!important}
html body :is(#app,#modal-root) td .sb-icon-btn > svg.sb-ico{width:16px!important;height:16px!important;min-width:16px!important;flex-basis:16px!important}
html body :is(#app,#modal-root) .sb-icon-btn{flex:0 0 auto!important}
html body :is(#app,#modal-root) td .listpage-actions{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:nowrap}

/* ---------- 16. Steady page width ----------
   The page area keeps room for its scrollbar from the start, so when a long table makes the page
   scroll, columns and boxes no longer jump sideways a moment after the page appears. */
@media screen and (min-width:769px){
  html body[data-auth-state="authenticated"] #app#app{scrollbar-gutter:stable!important}
}
/* Table boxes reserve their scrollbar room from the first frame (same as their final state),
   so columns are fitted once and never shift a moment later. */
@media screen{
  html body[data-auth-state="authenticated"] :is(#app,#modal-root) :is(.table-wrap,.table-responsive,.table-scroll){scrollbar-gutter:stable}
}
/* Printed papers and previews never reserve a scrollbar strip (it showed as a dark empty column). */
html body :is(.doc-print,.sb-paper,.sb-inv-paper,.sb-doc-paper,[data-document-preview],.sb-fmt-preview,.listpage-paper,.vch-paper,.report-paper,.sb-report-paper,.financial-statement,.financial-sheet,.print-table,[data-esb-preserve-format]) :is(.table-wrap,.table-responsive,.table-scroll,.esb-table-scroll){scrollbar-gutter:auto!important;overflow:visible!important;max-height:none!important}
@media print{html body :is(.table-wrap,.table-responsive,.table-scroll,.esb-table-scroll){scrollbar-gutter:auto!important;overflow:visible!important;max-height:none!important}}

/* Three-dot row menu button: no text, no extra chevron */
html body :is(#app,#modal-root) td .sb-dots-btn{min-width:32px!important;width:32px!important;height:32px!important;padding:0!important;border-radius:8px!important}
html body :is(#app,#modal-root) td .sb-dots-btn::after,html body :is(#app,#modal-root) td .sb-dots-btn::before{display:none!important;content:none!important}
html body :is(#app,#modal-root) td summary.sb-dots-btn{list-style:none!important;display:inline-flex!important;align-items:center;justify-content:center}
html body :is(#app,#modal-root) td summary.sb-dots-btn::-webkit-details-marker{display:none}

/* 17. Phone, mobile, WhatsApp and fax fields: free text, any country format */
html body input.esb-phone-bad{border-color:#d93025!important;box-shadow:0 0 0 2px rgba(217,48,37,.15)!important}
html body input[type=tel]{font-variant-numeric:tabular-nums;letter-spacing:.01em}

/* 18. Field visits: missed, departure warning, lead/deal line */
html body .field-sales .badge.warn{background:#fdecea!important;color:#a50e0e!important;border-color:#f5c2bd!important}
html body .field-sales .fs-warn{color:#a50e0e!important}
html body .field-sales .fs-crm-link{margin:2px 0 6px;font-size:13px;color:var(--muted,#5f6368)}
html body .field-sales .fs-note{white-space:normal;font-size:13px;color:var(--muted,#5f6368)}
html body .field-sales .fs-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end}

/* 19. Field sales CRM workspace */




html body .fcrm-count{display:inline-block;margin-left:4px;color:#a50e0e;font-weight:700}
html body .fcrm-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 12px;max-height:220px;overflow:auto;padding:8px;border:1px solid var(--line,#dfe3e8);border-radius:8px}
html body .fcrm-checks.fcrm-tall{max-height:300px}
html body .fcrm-checks label{display:flex;gap:6px;align-items:center;font-weight:400}
html body .fcrm-q{display:grid;grid-template-columns:minmax(180px,2fr) 130px minmax(140px,1.5fr) auto 40px;gap:6px;align-items:center;margin:6px 0}
html body .fcrm-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:8px 0 12px}
html body .fcrm-photos figure{margin:0}
html body .fcrm-photos img,html body .fcrm-thumb{width:100%;height:120px;object-fit:cover;border-radius:8px;background:color-mix(in srgb,var(--ink,#1f2937) 7%,var(--panel,#fff));display:flex;align-items:center;justify-content:center}
html body .fcrm-photos figcaption{font-size:12px;margin-top:4px}
html body tr.fcrm-overdue td:first-child{color:#a50e0e}
html body .fcrm-answers th{text-align:left;font-weight:600;padding:6px 12px 6px 0;vertical-align:top}
html body .fcrm-checklist{border:1px solid var(--line,#dfe3e8);border-radius:8px;padding:10px 12px;margin:10px 0}
html body .fcrm-checklist legend{font-weight:600;padding:0 6px}
@media (max-width:768px){html body .fcrm-q{grid-template-columns:1fr 1fr}}
/* 20. Field sales performance: targets, pricing, incentives */
html body .spf-bar{height:6px;background:color-mix(in srgb,var(--ink,#1f2937) 7%,var(--panel,#fff));border-radius:3px;margin-top:4px;min-width:60px;overflow:hidden}
html body .spf-bar>span{display:block;height:100%;background:#d93025;border-radius:3px}
html body .spf-bar>span.near{background:#f29900}
html body .spf-bar>span.done{background:#188038}
html body .spf-warn{color:#a50e0e!important}
html body .spf-sub{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
html body .spf-unit{display:flex;gap:6px;align-items:center;margin:6px 0;flex-wrap:wrap}
html body .spf-unit input{max-width:180px}
html body .spf-fs{border:1px solid var(--line,#dfe3e8);border-radius:8px;padding:8px 12px 10px;margin:0}
html body .spf-fs legend{font-weight:600;padding:0 6px;font-size:13px}
html body .spf-amount{display:flex;gap:8px;align-items:center}
html body .spf-amount span{white-space:nowrap;font-weight:600;color:var(--muted,#5f6368)}
html body .spf-h{grid-column:1/-1;margin:10px 0 0!important;padding:0 0 4px;font-size:14px;font-weight:600;border-bottom:1px solid var(--line,#dfe3e8)}

html body .spf-help{display:block;margin-top:4px;font-size:12px;color:var(--muted,#5f6368);line-height:1.35}
html body .spf-help[hidden]{display:none!important}
html body .spf-target{align-items:start!important}

html body .fcrm-reports{margin-left:auto!important}
html body .fcrm-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin:0 0 12px;border:1px solid #f5c26b;background:#fff8e6;border-radius:8px}
html[data-theme="dark"] body .fcrm-banner{background:#3a2f12;border-color:#7a5c12}
html body .spf-section{margin:18px 0 8px;font-size:16px}

/* Performance overview: presentation belongs to the existing CRM theme layer. */
html body #app .fcrm-performance-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:2px 0 18px;padding:18px 22px;border:1px solid var(--line,#dfe3e8);border-radius:12px;background:var(--panel,#fff);color:var(--ink,#1f2937)}
html body #app .fcrm-performance-copy{flex:1 1 320px;min-width:0}
html body #app .fcrm-performance-kicker{margin:0 0 5px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--muted,#5f6368)}
html body #app .fcrm-performance-copy h2{margin:0 0 6px;font-size:clamp(21px,2vw,27px);font-weight:700;line-height:1.2;color:var(--ink,#1f2937)}
html body #app .fcrm-performance-copy>p:last-child{margin:0;max-width:62ch;color:var(--muted,#5f6368);font-size:13px;line-height:1.55}
html body #app .fcrm-performance-actions{display:flex;gap:8px;flex-wrap:wrap}
html body #app .fcrm-performance-actions .btn{white-space:nowrap}
html body #app .fcrm-performance-actions .btn:focus-visible{outline:2px solid var(--accent,#1f8a9b);outline-offset:3px}
@media(max-width:640px){html body #app .fcrm-performance-intro{padding:14px;gap:12px}html body #app .fcrm-performance-actions{width:100%}html body #app .fcrm-performance-actions .btn{flex:1 1 auto}}

/* 21. Targets & performance: one toolbar, compact cards and fields like the rest of the app */
html body[data-auth-state="authenticated"] #app#app .spf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px;min-width:0}
html body[data-auth-state="authenticated"] #app#app .spf-toolbar .esb-customer-date-filter input[type=date]{width:9.5rem!important;max-width:9.5rem!important}
/* Scoped panel actions: no inherited auto-margin from unrelated inventory filters. */
html body #app .panel-head .spf-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;min-width:0;margin-left:auto}
html body #app .panel-head .spf-panel-filter{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:600;white-space:nowrap}
html body #app .panel-head .spf-panel-filter select{width:9.5rem!important;min-width:0}
html body #app .panel-head .spf-tools .spf-find{width:11rem!important;max-width:100%;min-width:0}
@media(max-width:700px){html body #app .panel-head{flex-wrap:wrap}html body #app .panel-head .spf-tools{width:100%;justify-content:flex-start;margin-left:0}html body #app .panel-head .spf-tools .spf-find{flex:1 1 11rem}html body #app .panel-head .spf-panel-filter{flex:0 1 auto}}

html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis.spf-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:0 0 16px!important;overflow:visible}
html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis.spf-kpis>.metric{min-width:0!important;max-width:none!important}
html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis.spf-kpis>.metric{min-height:88px!important;padding:14px 16px!important;gap:6px!important}
html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis.spf-kpis>.metric strong{font-size:22px!important}
html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis.spf-kpis>.metric em{font-size:12px!important}
html body #app table.spf-table{width:100%!important;min-width:0!important;table-layout:auto;color:var(--ink,#1f2937);background:var(--panel,#fff);border-color:var(--line,#dfe3e8)}
/* Performance tables use the same surface in every cell, including pinned first cells.
   Keep this scoped: invoices, payroll, printable documents and other tables are untouched. */
html body[data-auth-state="authenticated"] #app#app table.spf-table tbody td{
  background:var(--panel,#fff)!important;
  color:var(--ink,#1f2937)!important;
  border-color:var(--line,#dfe3e8)!important;
}
html body[data-auth-state="authenticated"] #app#app table.spf-table tbody tr:hover td{
  background:color-mix(in srgb,var(--ink,#1f2937) 6%,var(--panel,#fff))!important;
}
html body #app table.spf-table :is(th,td).num{text-align:right!important;white-space:nowrap}
html body[data-auth-state="authenticated"] #app#app table.spf-table td.empty{
  color:var(--muted,#5f6368)!important;
  -webkit-text-fill-color:currentColor!important;
  background:var(--panel,#fff)!important;
  text-align:left;white-space:normal!important;line-height:1.5;padding:18px 14px!important;
}
html body #app table.spf-table td.spf-acts{white-space:nowrap;text-align:right}
html body[data-auth-state="authenticated"] #app#app table.spf-table td.spf-acts .btn{padding:4px 10px!important;min-height:0!important;height:30px!important;font-size:13px!important}
html body #app table.spf-table td:first-child small{color:var(--muted,#5f6368);opacity:1}
html body #app table.spf-table td small.spf-warn{display:block}
@media (min-width:1400px){html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis.spf-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media (max-width:600px){html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis.spf-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}
html body #app .spf-link{background:none!important;border:0!important;padding:0!important;min-height:0!important;font:inherit;font-weight:700;color:var(--accent,#0f6e84)!important;cursor:pointer;text-align:left}
html body #app .spf-link:hover{text-decoration:underline}

/* 22. Field sales product picker, product setup and mobile layout */
html body .spf-pick{border:1px solid var(--line,#dfe3e8);border-radius:8px;background:var(--panel,#fff);overflow:hidden}
html body .spf-pick-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px;border-bottom:1px solid var(--line,#dfe3e8);background:color-mix(in srgb,var(--ink,#1f2937) 7%,var(--panel,#fff))}
html body .spf-pick-bar .pk-find{flex:1 1 220px;min-width:0}
html body .spf-pick-bar .pk-group{flex:0 1 12rem;width:12rem!important;min-width:0}
html body .spf-pick-bar .btn{height:34px;padding:4px 10px!important;min-height:0!important}
html body .spf-pick-list{max-height:260px;overflow:auto;padding:4px 0}
html body .spf-pick-list label{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 10px;margin:0;font-weight:400;cursor:pointer}
html body .spf-pick-list label:hover{background:color-mix(in srgb,var(--ink,#1f2937) 7%,var(--panel,#fff))}
html body .spf-pick-list label[hidden]{display:none!important}
html body .spf-pick-list label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .spf-pick-list label small{color:var(--muted,#5f6368);white-space:nowrap}
html body .spf-pick-foot{display:flex;justify-content:space-between;padding:6px 10px;border-top:1px solid var(--line,#dfe3e8);font-size:12px;color:var(--muted,#5f6368)}
html body .spf-pad{padding:0 18px 16px}
html body .spf-actions{display:flex;justify-content:flex-end;margin:10px 0 4px}
html body .spf-sub-row select{flex:1 1 260px;min-width:0;max-width:420px}
html body .spf-sub-row .sb-factor{width:6rem!important}
html body label.sb-check:has(>.spf-help){flex-wrap:wrap}
html body label.sb-check>.spf-help{flex:1 1 100%;margin-left:26px}
@media (max-width:640px){
  html body[data-auth-state] #modal-root#modal-root .form-grid,html body[data-auth-state] #app#app .spf-pad .form-grid{grid-template-columns:minmax(0,1fr)!important}
  html body[data-auth-state] #modal-root#modal-root .form-grid>*{grid-column:1/-1!important}
  html body .spf-pick-bar .pk-group{flex:1 1 100%;width:100%!important}
  html body .spf-pick-list label{grid-template-columns:20px minmax(0,1fr)}
  html body .spf-pick-list label small{grid-column:2}
  html body .spf-unit{flex-wrap:wrap}
  html body .spf-unit>input{flex:1 1 35%;min-width:0;max-width:none!important;width:auto!important}
  html body .spf-sub-row select{flex:1 1 100%;max-width:none}
  html body .spf-pad{padding:0 12px 12px}
}

/* 23. Field sales: theme-safe colours (light and dark) */
html body .spf-pick,html body .spf-pick-list{background:var(--panel,#fff)!important;color:var(--ink,#1f2937)!important}
html body .spf-pick-list label{color:var(--ink,#1f2937)!important;background:transparent!important}
html body .spf-pick-list label:hover,html body .spf-pick-list label:focus-within{background:color-mix(in srgb,var(--ink,#1f2937) 9%,var(--panel,#fff))!important;color:var(--ink,#1f2937)!important}
html body .spf-pick-list label span{color:var(--ink,#1f2937)!important}
html body .spf-pick-list label small,html body .spf-pick-foot,html body .spf-pick-foot span{color:var(--muted,#5f6368)!important}
html body .spf-pick-foot span{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;font-weight:600;min-height:0!important}
html body .spf-pick-bar{background:color-mix(in srgb,var(--ink,#1f2937) 5%,var(--panel,#fff))!important;border-color:var(--line,#dfe3e8)!important}
html body .spf-pick,html body .spf-pick-foot{border-color:var(--line,#dfe3e8)!important}
html body .spf-help,html body label.sb-check>.spf-help{color:var(--muted,#5f6368)!important}

/* 24. Target form: two even columns, substitutes help */
html body #modal-root .form-grid.spf-target{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body .spf-subs{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
html body .spf-subs .spf-help{margin:0 0 0 26px}
html body .spf-subs-info{margin-left:26px;font-size:12px;color:var(--ink,#1f2937)}
html body .spf-subs-info:empty{display:none}
html body .spf-subs .btn{margin-left:26px;height:32px;min-height:0!important;padding:4px 12px!important}
html body .spf-pick-list input.pk-item{appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important;margin:0!important;accent-color:#1f8a9b;background:none!important;border:0!important;box-shadow:none!important}
html body .spf-pick-list label:has(input.pk-item:checked){background:color-mix(in srgb,#1f8a9b 14%,var(--panel,#fff))!important}
html[data-theme] body #modal-root .spf-target input[type=checkbox],html body #modal-root .spf-target input[type=checkbox]{accent-color:#1f8a9b!important;appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important}

/* 25. Product picker: closed summary with chosen products */
html body .spf-pick .pk-summary{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px}
html body .spf-pick.is-open .pk-summary{border-bottom:1px solid var(--line,#dfe3e8)}
html body .spf-pick .pk-chips{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 auto;min-width:0}
html body .spf-pick .pk-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 4px 3px 10px;border-radius:999px;font-size:12px;background:color-mix(in srgb,#1f8a9b 18%,var(--panel,#fff));color:var(--ink,#1f2937);border:1px solid color-mix(in srgb,#1f8a9b 40%,var(--panel,#fff));max-width:100%}
html body .spf-pick .pk-chip-x{border:0!important;background:none!important;color:inherit!important;cursor:pointer;padding:0 4px!important;min-height:0!important;height:auto!important;font-size:11px;line-height:1}
html body .spf-pick .pk-none-yet{font-size:12px;color:var(--muted,#5f6368)}
html body .spf-pick .pk-open{height:32px;min-height:0!important;padding:4px 12px!important;margin-left:auto}
html body .spf-pick .pk-drop[hidden]{display:none!important}
html body .spf-pick-foot{align-items:center;gap:10px}
html body .spf-pick-foot .pk-shown{margin-left:auto}
html body .spf-pick-foot .pk-done{height:30px;min-height:0!important;padding:3px 14px!important}

/* 26. Incentive scheme form */
html body .spf-scheme .spf-example{padding:10px 12px;border-radius:8px;border:1px solid color-mix(in srgb,#1f8a9b 45%,var(--panel,#fff));background:color-mix(in srgb,#1f8a9b 12%,var(--panel,#fff));color:var(--ink,#1f2937);font-size:13px;line-height:1.45}
html body .spf-scheme #sf-desc-type{margin:-4px 0 0!important}
html body .spf-slabs{display:flex;flex-direction:column;gap:6px}
html body .spf-slab-head,html body .spf-slab{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 40px;gap:8px;align-items:center;margin:0!important}
html body .spf-slab-head{font-size:12px;font-weight:600;color:var(--muted,#5f6368)}
html body .spf-slab input{max-width:none!important;width:100%!important}
html body .spf-slabs>.btn{align-self:flex-start;height:32px;min-height:0!important;padding:4px 12px!important}
@media (max-width:640px){html body .spf-slab-head{display:none!important}html body .spf-slab{grid-template-columns:1fr 1fr 1fr 36px}}

/* 27. Pricing toolbars */
html body .spf-toolbar .spf-tools{display:flex;flex:0 1 auto;min-width:0;flex-wrap:wrap;gap:8px;align-items:center}
html body .spf-toolbar .spf-find{width:22rem!important;max-width:100%}
html body .spf-toolbar .sb-inline-filter select{width:14rem!important}
html body .badge.ok{color:#188038!important}
@media (max-width:640px){html body .spf-toolbar .spf-find,html body .spf-toolbar .sb-inline-filter select{width:100%!important}html body[data-auth-state="authenticated"] #app#app .spf-toolbar{align-items:stretch}html body[data-auth-state="authenticated"] #app#app .spf-toolbar>.spf-tools{width:100%;justify-content:flex-start}html body[data-auth-state="authenticated"] #app#app .spf-toolbar .esb-customer-date-filter{display:flex;flex-wrap:wrap;gap:8px;min-width:0}html body[data-auth-state="authenticated"] #app#app .spf-toolbar .esb-customer-date-filter label{min-width:0;flex:0 0 100%;width:100%;justify-content:space-between;position:relative}html body[data-auth-state="authenticated"] #app#app .spf-toolbar .esb-customer-date-filter input[type=date]{width:min(12rem,calc(100% - 3.5rem))!important;max-width:calc(100% - 3.5rem)!important;min-width:0!important;flex:0 1 auto}}

/* 28. Pricing: plain date filter, import steps */
html body .spf-toolbar .esb-customer-date-filter{background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
html body .spf-steps{margin:0 0 10px;padding-left:20px;display:flex;flex-direction:column;gap:10px;line-height:1.5}
html body .spf-steps input[type=file]{margin-top:6px}
/* Performance analytics share the workspace theme and stay readable on small screens. */
html body .spf-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
html body .spf-chart{min-width:0;padding:18px}
html body .spf-chart h3{margin:0 0 8px}
html body .spf-chart-empty{padding:30px 12px;color:var(--muted,#64748b);text-align:center}
html body .spf-chart-legend{display:flex;gap:18px;font-size:13px;margin:12px 0}
html body .spf-chart-legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;background:currentColor;margin-right:6px}
html body .spf-trend{width:100%;height:auto;overflow:visible}
html body .spf-trend line{stroke:var(--line,#cbd5e1);stroke-width:1}
html body .spf-trend text{fill:var(--muted,#64748b);font-size:12px}
html body .spf-trend polyline{fill:none;stroke-width:3;vector-effect:non-scaling-stroke}
html body .spf-trend .sales{stroke:#0b8178;fill:#0b8178}
html body .spf-trend .collections{stroke:#2563eb;fill:#2563eb}
html body .spf-trend polyline.sales,html body .spf-trend polyline.collections{fill:none}
html body .spf-chart-legend .sales{color:#0b8178}
html body .spf-chart-legend .collections{color:#2563eb}
html body .spf-chart-row,html body .spf-product-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line,#cbd5e1);text-align:left;background:transparent;color:inherit;font:inherit}
html body .spf-chart-row{cursor:pointer}
html body .spf-chart-row .spf-bar,html body .spf-product-bar meter{grid-column:1/-1;width:100%}
html body .spf-chart-row small,html body .spf-product-bar small{grid-column:1/-1;color:var(--muted,#64748b)}
html body .spf-visit-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body .spf-visit-counts div{padding:12px;background:var(--bg,#f1f5f9);border-radius:10px}
html body .spf-visit-counts dt{font-size:13px;color:var(--muted,#64748b)}
html body .spf-visit-counts dd{font-size:22px;font-weight:700;margin:8px 0 0}
html[data-theme="dark"] body .spf-trend .sales{stroke:#2dd4bf;fill:#2dd4bf}
html[data-theme="dark"] body .spf-trend .collections{stroke:#78a9ff;fill:#78a9ff}
html[data-theme="dark"] body .spf-trend polyline{fill:none}
html[data-theme="dark"] body .spf-chart-legend .sales{color:#2dd4bf}
html[data-theme="dark"] body .spf-chart-legend .collections{color:#78a9ff}
@media(max-width:760px){html body .spf-chart-grid{grid-template-columns:minmax(0,1fr)}html body .spf-visit-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html body .spf-trend text{font-size:24px}}

/* One floating help layer for chart values and controls throughout the app. */
#esb-tooltip.esb-tooltip{
  position:fixed;z-index:2147483000;
  width:max-content;max-width:min(320px,calc(100vw - 16px));
  padding:5px 8px;border:1px solid #496078;border-radius:4px;
  background:#0c2340;color:#fff;box-shadow:0 3px 12px #0003;
  font:13px/1.4 "Segoe UI",Arial,sans-serif;
  white-space:pre-line;overflow-wrap:anywhere;pointer-events:none;
}
html[data-theme="dark"] #esb-tooltip.esb-tooltip{background:#172333;color:#f8fafc;border-color:#496078}
#esb-tooltip.esb-tooltip[hidden]{display:none}
@media print{#esb-tooltip.esb-tooltip{display:none}}

/* Shared dropdown actions pair SVGs with visible labels. */
html body :is(#app,#modal-root) .sb-menu-action{display:flex!important;align-items:center;justify-content:flex-start!important;gap:10px!important;width:100%;min-height:36px;text-align:left}
html body :is(#app,#modal-root) .sb-menu-action > .sb-ico{display:block!important;width:18px!important;height:18px!important;flex:0 0 18px;stroke:currentColor}
html body :is(#app,#modal-root) .sb-menu-action > .sb-action-label{position:static;white-space:nowrap}
@media(pointer:coarse){html body :is(#app,#modal-root) .sb-menu-action{min-height:44px}}

/* One stroke treatment for application icons; charts and printed artwork retain their styling. */
html body :is(.module-svg,.menu-svg,.im-svg,.sb-ico){stroke-width:2!important;stroke-linecap:round;stroke-linejoin:round;color:inherit;vertical-align:middle}
html body :is(#app,#modal-root,#sb-form-layer,.modal) :is(.sb-action-btn,.sb-menu-action){display:inline-flex;align-items:center;gap:8px}
html body :is(#app,#modal-root,#sb-form-layer,.modal) :is(.sb-action-btn,.sb-menu-action) > .sb-ico{width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;pointer-events:none}
html body .sb-action-label{min-width:0}

/* Application action bars share control rhythm; document preview separates output from setup. */
html body #app#app .esb-toolbar{display:flex;flex-wrap:wrap!important;align-items:flex-end!important;justify-content:flex-start;gap:10px!important;margin:0 0 16px!important;min-width:0}
html body #app#app .esb-toolbar .field{display:flex;flex-direction:column;gap:4px;min-width:0!important;margin:0!important;flex:0 1 auto}
html body #app#app .esb-toolbar .field > :is(label,span){font-size:12px!important;line-height:1.3;font-weight:600;color:var(--muted,#64748b);margin:0!important}
html body #app#app .esb-toolbar :is(button.btn,summary.btn,select,input:not([type=checkbox]):not([type=radio])){box-sizing:border-box;min-height:36px!important;height:36px;border-radius:6px!important;font-size:13px!important;margin:0!important}
html body #app#app .esb-toolbar :is(input[type=checkbox],input[type=radio]){width:16px!important;height:16px!important;min-height:16px!important;flex:0 0 16px;margin:0!important;accent-color:var(--accent,#17617a)}
html body #app#app .esb-toolbar label:has(> input:is([type=checkbox],[type=radio])){display:inline-flex!important;align-items:center;flex-direction:row;gap:7px;min-height:36px;font-size:13px!important;line-height:1.4;white-space:nowrap;margin:0!important}
html body #app#app .sb-preview-controls{display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;padding:0!important;border:1px solid var(--line,#d6e0e8);border-radius:10px;background:var(--panel,#fff);box-shadow:0 1px 3px #0f172a08;overflow:visible}
html body #app#app .sb-preview-controls > :is(.sb-preview-main,.sb-preview-settings){display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;justify-content:space-between;gap:12px!important;min-width:0;padding:12px 16px}
html body #app#app .sb-preview-controls .sb-preview-settings{border-top:1px solid var(--line,#d6e0e8);background:var(--bg,#f5f7fa);border-radius:0 0 10px 10px;align-items:center!important}
html body #app#app .sb-preview-controls :is(.sb-preview-document,.sb-preview-actions,.sb-preview-page-setup,.sb-preview-options){display:flex!important;flex-wrap:wrap!important;align-items:flex-end;gap:8px!important;min-width:0;max-width:100%}
html body #app#app .sb-preview-controls .sb-preview-document{gap:12px!important;flex:1 1 320px}
html body #app#app .sb-preview-controls .sb-preview-document .field{flex:0 1 260px;width:260px}
html body #app#app .sb-preview-controls select{width:100%!important;min-width:0!important;max-width:100%!important}
html body #app#app .sb-preview-controls .sb-preview-actions{margin-left:auto}
html body #app#app .sb-preview-controls .sb-preview-page-setup .field{width:140px}
html body #app#app .sb-preview-controls .sb-preview-page-setup .field:has([data-print-font-size]){width:96px}
html body #app#app .sb-preview-controls [data-print-font-size]{width:100%!important;text-align:left}
html body #app#app .sb-preview-controls .sb-preview-options{align-items:center;column-gap:18px!important;row-gap:4px!important}
@media(max-width:700px){
 html body #app#app .sb-preview-controls > :is(.sb-preview-main,.sb-preview-settings){padding:12px;gap:12px!important}
 html body #app#app .sb-preview-controls :is(.sb-preview-document,.sb-preview-actions,.sb-preview-page-setup,.sb-preview-options){width:100%;margin-left:0}
 html body #app#app .sb-preview-controls .sb-preview-document{flex-basis:100%}
 html body #app#app .sb-preview-controls .sb-preview-document .field{flex:1 1 160px;width:auto}
 html body #app#app .sb-preview-controls .sb-preview-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #app#app .sb-preview-controls .sb-preview-actions .btn{width:100%!important;justify-content:center}
 html body #app#app .sb-preview-controls .sb-preview-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #app#app .esb-toolbar :is(button.btn,summary.btn,select,input:not([type=checkbox]):not([type=radio])){min-height:44px!important;height:44px}
 html body #app#app .esb-toolbar label:has(> input:is([type=checkbox],[type=radio])){min-height:40px;white-space:normal}
}
@media print{html body #app#app .sb-preview-controls{display:none!important}}

html body #app#app .esb-toolbar select{appearance:auto!important;background-image:none!important;background-repeat:no-repeat!important;padding-right:10px!important}

html body #app#app .esb-toolbar :is(input[type=checkbox],input[type=radio]){box-sizing:border-box!important;padding:0!important}

html body #app#app .esb-toolbar :is(input[type=checkbox],input[type=radio]){min-width:16px!important;max-width:16px!important;max-height:16px!important}

/* Productive density: labeled actions, quieter strokes, compact desktop controls. */
html body #app#app .esb-toolbar{gap:6px!important;margin-bottom:10px!important}
html body #app#app .esb-toolbar .field{gap:3px}
html body #app#app .esb-toolbar :is(.sb-action-btn,.sb-menu-action){gap:6px!important;font-weight:500}
html body #app#app .esb-toolbar .sb-ico{width:16px!important;height:16px!important;min-width:16px!important;flex-basis:16px!important}
html body #app#app .sb-preview-controls > :is(.sb-preview-main,.sb-preview-settings){padding:8px 12px!important;gap:8px!important;justify-content:flex-start}
html body #app#app .sb-preview-controls :is(.sb-preview-document,.sb-preview-actions,.sb-preview-page-setup){gap:6px!important}
html body #app#app .sb-preview-controls .sb-preview-document{flex:0 1 auto;gap:8px!important}
html body #app#app .sb-preview-controls .sb-preview-document .field{width:220px;flex-basis:220px}
html body #app#app .sb-preview-controls .sb-preview-actions{margin-left:4px}
html body #app#app .sb-preview-controls .sb-preview-page-setup .field{width:120px}
html body #app#app .sb-preview-controls .sb-preview-page-setup .field:has([data-print-font-size]){width:80px}
html body #app#app .sb-preview-controls .sb-preview-options{column-gap:12px!important;margin-left:8px}
@media(min-width:701px){
 html body #app#app .esb-toolbar :is(button.btn,summary.btn,select,input:not([type=checkbox]):not([type=radio])){min-height:32px!important;height:32px!important;padding:4px 8px!important}
 html body #app#app .esb-toolbar label:has(> input:is([type=checkbox],[type=radio])){min-height:32px}
}
@media(max-width:700px){
 html body #app#app .sb-preview-controls .sb-preview-document{flex:1 1 100%}
 html body #app#app .sb-preview-controls .sb-preview-document .field{width:auto;flex:1 1 150px}
 html body #app#app .sb-preview-controls :is(.sb-preview-actions,.sb-preview-options){margin-left:0}
 html body #app#app .sb-preview-controls > :is(.sb-preview-main,.sb-preview-settings){padding:10px!important}
}

/* Lucide shapes retain their native proportions, in every theme. */
html body svg.esb-lucide{fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html body svg.esb-lucide > *{stroke-width:inherit;stroke-linecap:inherit;stroke-linejoin:inherit}

/* Preview: one compact command row; output options and secondary actions are disclosures. */
html body #app#app .sb-preview-compact{border-radius:8px;box-shadow:none}
html body #app#app .sb-preview-compact > .sb-preview-main{flex-wrap:nowrap!important;align-items:center!important;padding:8px 10px!important;gap:12px!important}
html body #app#app .sb-preview-compact .sb-preview-document{flex:1 1 auto;flex-wrap:nowrap!important;align-items:center;min-width:0}
html body #app#app .sb-preview-compact .sb-preview-document .field{width:220px;flex:0 1 220px;min-width:100px!important}
html body #app#app .sb-preview-compact .sb-preview-actions{display:flex!important;width:auto;flex:0 0 auto;flex-wrap:nowrap!important;align-items:center;margin-left:auto}
html body #app#app .sb-preview-dropdown{position:relative;flex:0 0 auto}
html body #app#app .sb-preview-dropdown > summary{list-style:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}
html body #app#app .sb-preview-dropdown > summary::-webkit-details-marker{display:none}
html body #app#app .sb-preview-chevron{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 4px}
html body #app#app .sb-preview-dropdown > summary.sb-preview-more{width:32px;justify-content:center;padding:0!important}
html body #app#app .sb-preview-dropdown > :is(.sb-preview-settings,.sb-preview-overflow){position:absolute;z-index:90;top:calc(100% + 6px);right:0;box-sizing:border-box;border:1px solid var(--line,#d6e0e8);border-radius:8px;background:var(--panel,#fff);color:var(--ink,inherit);box-shadow:0 8px 24px #0f172a26}
html body #app#app .sb-preview-dropdown:not([open]) > :is(.sb-preview-settings,.sb-preview-overflow){display:none!important}
html body #app#app .sb-preview-dropdown > .sb-preview-settings{width:300px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;align-items:stretch!important;padding:12px!important;gap:10px}
html body #app#app .sb-preview-dropdown .sb-preview-page-setup{display:grid!important;grid-template-columns:1fr 90px;width:100%;align-items:end;gap:8px!important}
html body #app#app .sb-preview-dropdown .sb-preview-page-setup .field{width:auto!important;min-width:0!important}
html body #app#app .sb-preview-dropdown .sb-preview-options{display:flex!important;flex-direction:column;align-items:stretch!important;width:100%;margin:0;gap:0!important;border-top:1px solid var(--line,#d6e0e8);padding-top:6px}
html body #app#app .sb-preview-dropdown .sb-preview-options label{min-height:32px}
html body #app#app .sb-preview-dropdown > .sb-preview-overflow{width:180px;padding:4px;display:flex;flex-direction:column;gap:2px}
html body #app#app .sb-preview-overflow button.btn{display:flex!important;justify-content:flex-start;width:100%!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:left;font-weight:500}
html body #app#app .sb-preview-overflow button.btn:hover,html body #app#app .sb-preview-overflow button.btn:focus-visible{background:var(--esb-menu-hover,#e8eff5)!important}
@media(max-width:700px){
 html body #app#app .sb-preview-compact > .sb-preview-main{flex-wrap:wrap!important;gap:6px!important}
 html body #app#app .sb-preview-compact .sb-preview-document{width:100%;flex-basis:100%}
 html body #app#app .sb-preview-compact .sb-preview-document .field{flex:1 1 auto}
 html body #app#app .sb-preview-compact .sb-preview-actions{width:100%;justify-content:flex-end}
 html body #app#app .sb-preview-dropdown > summary.sb-preview-more{width:44px}
 html body #app#app .sb-preview-settings-dropdown > .sb-preview-settings{left:0;right:auto}
 html body #app#app .sb-preview-dropdown .sb-preview-options label{min-height:44px}
}

/* Keep preview commands together, without stretching an empty middle column. */
html body #app#app .sb-preview-compact{width:fit-content!important;max-width:100%;align-self:flex-start}
html body #app#app .sb-preview-compact > .sb-preview-main{justify-content:flex-start;gap:8px!important}
html body #app#app .sb-preview-compact .sb-preview-document{flex:0 1 auto}
html body #app#app .sb-preview-compact .sb-preview-actions{margin-left:0}
@media(max-width:700px){html body #app#app .sb-preview-compact{width:100%!important}html body #app#app .sb-preview-compact .sb-preview-document{flex:1 1 100%}}
/* Hide horizontal scrollbar tracks throughout the workspace, retaining vertical
   scrollbars and horizontal wheel/touch access to wide financial tables. */
@media screen {
  html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis {
    display:grid !important;
    grid-auto-flow:row !important;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)) !important;
    grid-auto-columns:auto !important;
    gap:10px !important;
  }
  html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric {
    min-width:0 !important;
    padding:12px !important;
    min-height:0 !important;
    gap:6px !important;
  }
  html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric em {
    display:none !important;
  }
  html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric strong {
    font-size:clamp(18px,1.7vw,28px) !important;
    white-space:nowrap !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
  html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric small {
    white-space:normal !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    hyphens:none;
  }
  html body #app#app :is(h1,h2,h3,h4,label,.btn,[role="tab"]) {
    word-break:normal;
    overflow-wrap:normal;
  }
  html body #app#app :is(p,.description,.notes) {
    word-break:normal;
    overflow-wrap:break-word;
  }
  html body #app#app :is(.panel,.esb-dash-card,.crm-overview-grid>*) {
    min-width:0;
  }
  html body #app#app table.esb-standard-table {
    width:100% !important;
    min-width:0 !important;
    table-layout:auto !important;
  }
  html body #app#app table.esb-standard-table :is(th,td) {
    padding-inline:8px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    text-overflow:clip !important;
    overflow:visible !important;
  }
  html body #app#app table.esb-standard-table [data-esb-align="right"] {
    white-space:nowrap !important;
  }
  html body #app#app .center-split {
    grid-template-columns:minmax(200px,20%) minmax(0,1fr);
  }
  @media(max-width:850px) {
    html body #app#app .center-split {grid-template-columns:minmax(0,1fr)}
  }
  html::-webkit-scrollbar:horizontal,
  body::-webkit-scrollbar:horizontal,
  body *::-webkit-scrollbar:horizontal {
    height: 0 !important;
    display: none !important;
  }
}

/* 29. Tax payments: filters, payment panel and return table */
html body .txp-filter{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:10px 12px!important;margin:0 0 12px}
html body .txp-filter .field{margin:0;min-width:150px;flex:0 1 180px}
html body .txp-kpis{margin:0 0 10px}
html body .txp-pay{margin-top:12px}
html body .txp-pay h3,html body .txp-h{font-size:15px;margin:14px 0 8px}
html body .txp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 14px}
html body .txp-grid .field{margin:0}
html body .txp-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
html body .txp-foot span{color:var(--muted,#5f6368);font-weight:600}
html body .txp-amt{width:120px;text-align:right}
html body .txp-return{max-width:640px}
html body .txp-return th{text-align:left;font-weight:500}
html body .txp-return input{width:150px;text-align:right}
html body .txp-return .txp-net th,html body .txp-return .txp-net td{border-top:2px solid var(--line,#dfe3e8);font-weight:700}
@media (max-width:640px){html body .txp-filter .field{flex:1 1 100%}html body .txp-amt,html body .txp-return input{width:100px}}

/* Dark mode tick boxes: the browser's own box was drawn dark-on-dark with a navy accent, so an unticked box was
   invisible and a ticked box showed only the tick. Draw a clear box with a light border and a teal fill when ticked.
   Switches (Privacy toggle and similar) keep their own look. */
html[data-theme="dark"] body :is(#app,#modal-root,.modal,.sb-account-menu) input[type="checkbox"]:not([role="switch"]):not(:is([class*="switch"],[class*="toggle"]) input){
  -webkit-appearance:none!important;appearance:none!important;display:inline-grid!important;place-content:center;
  width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;
  margin:0 6px 0 0;padding:0!important;flex:0 0 16px;vertical-align:middle;cursor:pointer;
  border:1.5px solid #8fa8c4!important;border-radius:4px!important;background:transparent!important;box-shadow:none!important}
html[data-theme="dark"] body :is(#app,#modal-root,.modal,.sb-account-menu) input[type="checkbox"]:not([role="switch"]):not(:is([class*="switch"],[class*="toggle"]) input):checked{
  border-color:#2bb3a3!important;background:#2bb3a3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23062a26' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px 12px no-repeat!important}
html[data-theme="dark"] body :is(#app,#modal-root,.modal,.sb-account-menu) input[type="checkbox"]:not([role="switch"]):not(:is([class*="switch"],[class*="toggle"]) input):indeterminate{
  border-color:#2bb3a3!important;background:#2bb3a3 linear-gradient(#062a26,#062a26) center/8px 2px no-repeat!important}
html[data-theme="dark"] body :is(#app,#modal-root,.modal,.sb-account-menu) input[type="checkbox"]:not([role="switch"]):not(:is([class*="switch"],[class*="toggle"]) input):focus-visible{outline:2px solid #6fd3c7!important;outline-offset:2px}
html[data-theme="dark"] body :is(#app,#modal-root,.modal,.sb-account-menu) input[type="checkbox"]:not([role="switch"]):not(:is([class*="switch"],[class*="toggle"]) input):disabled{opacity:.5;cursor:not-allowed}

/* === Global Priority+ Module Tabs (overrides hero-system.css #app#app specificity) === */
html body[data-auth-state="authenticated"] #app#app > .esb-module-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

html body[data-auth-state="authenticated"] #app#app > .esb-module-bar > .esb-tabs {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto !important;
  min-width: 0;
  overflow: visible !important;
  scrollbar-width: none;
  gap: 2px;
}

html body[data-auth-state="authenticated"] #app#app > .esb-module-bar > .esb-tabs::-webkit-scrollbar {
  display: none;
}

html body[data-auth-state="authenticated"] #app#app > .esb-module-bar > .esb-tabs > button[role="tab"] {
  white-space: nowrap;
  flex-shrink: 0;
}

html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .esb-priority-tabs > .esb-tab-hidden {
  display: none !important;
}

html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .esb-tabs.esb-priority-tabs {overflow:visible!important;}

.esb-tabs-more {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
}

.esb-tabs-more[hidden] {
  display: none !important;
}

.esb-tabs-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--muted, #475569);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.esb-tabs-more > summary::-webkit-details-marker {
  display: none;
}

.esb-tabs-more.has-active > summary {
  color: #fff;
  font-weight: 600;
  border-bottom-color: transparent;
  border-radius: 9px;
  background: var(--brand-hero,linear-gradient(135deg,#0F2A44,#14506A));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14),0 2px 5px rgba(15,42,68,.16);
}

.esb-tabs-more-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 195px;
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #d8e1ea);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  padding: 6px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.esb-tabs-more-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink, #0f172a);
  cursor: pointer;
  white-space: nowrap;
}

.esb-tabs-more-menu button:hover {
  background: var(--bg-soft, #f1f5f9);
}

.esb-tabs-more-menu button.active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand, #0f766e);
  font-weight: 600;
}
/* Dark theme: the teal label was 2.9:1 on the navy menu. */
html[data-theme="dark"] .esb-tabs-more-menu button.active {
  background: rgba(111, 211, 199, 0.14);
  color: #6fd3c7;
}

/* === Global Responsive Fixes: Menubar, Priority+ Tabs, KPI Grid & Auto-Fit Tables === */

/* 1. Show #global-menubar on tablet / split-screen widths (>= 640px); keep compact header only on true phones (< 640px) */
@media screen and (min-width: 640px) {
  html body[data-auth-state="authenticated"] #global-menubar {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* 2. Auto-fit KPI cards cleanly without 3+1 orphan wrapping */
html body[data-auth-state="authenticated"] #app#app :is(.cards, .cards.esb-kpis, .cards.esb-kpis.spf-kpis, .ex-summary) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  gap: 10px !important;
}

@media screen and (max-width: 420px) {
  html body[data-auth-state="authenticated"] #app#app :is(.cards, .cards.esb-kpis, .cards.esb-kpis.spf-kpis, .ex-summary) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 3. Remove forced 640px min-width on tables so columns adapt proportionally to narrow/split viewports */
@media screen and (max-width: 960px) {
  html body[data-auth-state="authenticated"] #app#app .table-wrap,
  html body[data-auth-state="authenticated"] #modal-root .table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
  }

  html body[data-auth-state="authenticated"] #app#app .table-wrap table:not(.sb-receipt-lines > table):not([data-esb-preserve-format]),
  html body[data-auth-state="authenticated"] #modal-root .table-wrap table:not([data-esb-preserve-format]) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  html body[data-auth-state="authenticated"] #app#app .table-wrap :is(th, td),
  html body[data-auth-state="authenticated"] #modal-root .table-wrap :is(th, td) {
    padding: 8px 10px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  /* Keep numeric/code columns crisp on one line */
  html body[data-auth-state="authenticated"] #app#app .table-wrap :is(th.num, td.num, td:first-child, th:first-child) {
    white-space: nowrap !important;
  }
}

/* === Narrow Viewport Polish: KPI Text Fit, Menubar Access & Scan Row Wrap === */

/* 1. Prevent long text inside KPI cards (like "This sale takes the lot") from overflowing */
html body[data-auth-state="authenticated"] #app#app :is(.cards, .cards.esb-kpis, .ex-summary) > .metric {
  min-width: 0 !important;
  overflow: hidden;
}

html body[data-auth-state="authenticated"] #app#app :is(.cards, .cards.esb-kpis, .ex-summary) > .metric strong {
  font-size: clamp(15px, 4.2vw, 22px) !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* 2. Keep #global-menubar accessible on narrow split-screens (< 640px) as a clean single-row bar */
@media screen and (max-width: 639px) {
  html body[data-auth-state="authenticated"] #global-menubar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    width: 100% !important;
    gap: 4px !important;
    padding: 4px 8px !important;
  }
  html body[data-auth-state="authenticated"] #global-menubar::-webkit-scrollbar {
    display: none;
  }
  html body[data-auth-state="authenticated"] #global-menubar > * {
    flex-shrink: 0 !important;
  }
}

/* 3. Wrap POS scan bar controls cleanly on narrow viewports */
@media screen and (max-width: 540px) {
  html body[data-auth-state="authenticated"] #app#app .sb-scan-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  html body[data-auth-state="authenticated"] #app#app .sb-scan-row input {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  html body[data-auth-state="authenticated"] #app#app .sb-scan-row button {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
}

/* === ESB_PATCH_2026_UI === */
html body[data-auth-state="authenticated"] #app#app > .esb-module-bar {
  flex-wrap: wrap !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html body[data-auth-state="authenticated"] #app#app > .esb-module-bar > :last-child {
  flex-shrink: 0 !important;
  margin-left: auto !important;
}
@media screen and (max-width: 768px) {
  html body[data-auth-state="authenticated"] :is(#app#app, #modal-root#modal-root) :is(
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),
    select, textarea
  ) {
    font-size: 16px !important;
  }
}
/* Strong contrast for the shared module creation menu, including its open state. */
@media screen {
  html body[data-auth-state="authenticated"] #app#app .esb-module-new > summary.btn.primary {
    background:#14506a!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    border:1px solid #0f2a44!important;
    font-size:14px!important;
    font-weight:750!important;
    min-height:40px;
    padding:10px 16px!important;
    opacity:1!important;
  }
  html body[data-auth-state="authenticated"] #app#app .esb-module-new > summary.btn.primary:hover,
  html body[data-auth-state="authenticated"] #app#app .esb-module-new[open] > summary.btn.primary {
    background:#0f2a44!important;
  }
  html body[data-auth-state="authenticated"] #app#app .esb-module-new .sb-menu-list {
    border:1px solid var(--esb-menu-line,#b8c8d6)!important;
    background:var(--esb-menu-bg,#fff)!important;
    min-width:240px;
  }
  html body[data-auth-state="authenticated"] #app#app .esb-module-new .sb-menu-list button {
    color:var(--esb-menu-ink,#0f2a44)!important;
    -webkit-text-fill-color:currentColor!important;
    font-size:14px!important;
    font-weight:650!important;
    line-height:1.5!important;
    min-height:40px;
    opacity:1!important;
  }
  html body[data-auth-state="authenticated"] #app#app .esb-module-new .esb-new-group {
    color:var(--esb-menu-ink,#0f2a44)!important;
    font-size:12px!important;
    font-weight:750!important;
  }
  html body[data-auth-state="authenticated"] #app#app .esb-module-new :is(summary,button):focus-visible {
    outline:3px solid #248e9b!important;
    outline-offset:2px!important;
  }
}


/* Global Accounting Typography & Tabular Numerals */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body, button, input, select, textarea {
  font-family: var(--font-sans);
}

table, th, td,
input[type="number"],
.kpi-value, .kpi-card, .stat-value, .metric-value,
.amount, .currency, .price, .balance, .total,
[data-numeric="true"], .tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv05" 1;
}

.mono, code, pre, .invoice-number, .account-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}


/* International Accounting Table Alignment & Column Sizing */
html body[data-auth-state="authenticated"] #app#app table {
  border-collapse: collapse;
}

/* Numeric alignment: the presentation step in table-presentation.js marks every cell with data-esb-align
   (hero-system.css aligns from that). These class rules only cover tables that step skips.
   Removed 2026-11-16: fixed minimum widths for number and status columns (128-142px / 96px). They came with a
   second, duplicate alignment script that had its own page watcher, and fought the column-width step
   (txn-workflow.js), so tables re-fitted themselves after they were shown. */
html body[data-auth-state="authenticated"] #app#app table th.num,
html body[data-auth-state="authenticated"] #app#app table th.numeric,
html body[data-auth-state="authenticated"] #app#app table th.amount,
html body[data-auth-state="authenticated"] #app#app table th.currency,
html body[data-auth-state="authenticated"] #app#app table th[data-align="right"],
html body[data-auth-state="authenticated"] #app#app table td.num,
html body[data-auth-state="authenticated"] #app#app table td.numeric,
html body[data-auth-state="authenticated"] #app#app table td.amount,
html body[data-auth-state="authenticated"] #app#app table td.currency,
html body[data-auth-state="authenticated"] #app#app table td[data-align="right"] {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

/* Single-line crisp table headers across all accounting & payroll tables */
html body[data-auth-state="authenticated"] #app#app table th {
  white-space: nowrap;
  vertical-align: middle;
}

/* ---------- Shared tabs, record links, status pills and page rows (2026-11-16) ---------- */
/* The count inside the selected tab follows the tab's own text colour, so it never disappears on the dark pill. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(.esb-tabs,.center-tabs,.paycenter-tabs,.fp-tabs,.fp-views,[role="tablist"]) > :is(.active,.is-on,[aria-selected="true"],[aria-current="page"],[aria-pressed="true"]) :is(small,em,b,span){color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:.85}
/* Record numbers in tables are text links everywhere, never boxed buttons. */
html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) :is(.center-ledger-link,.sbpay-link,.sb-inv-link,.so-order-link,.sb-billing-link,.spf-link,.fs-crm-link){border:0!important;box-shadow:none!important;outline-offset:2px;padding:0!important;margin:0!important;min-height:0!important;height:auto!important;font:inherit!important;font-weight:600!important;text-align:inherit!important;cursor:pointer;background:transparent!important;border-radius:0!important}
/* Status pills: one size in every table. */
html body[data-auth-state="authenticated"] #app#app td > .esb-status-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;line-height:1.5;text-transform:capitalize;white-space:nowrap}
html body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.paid{background:#e6f4ea!important;color:#1e6b34!important}
html body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.draft{background:#fff3e0!important;color:#8a5300!important}
html body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.cancelled{background:#fdecec!important;color:#a3261d!important}
html body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.issued{background:#e7f0fa!important;color:#1d4f86!important}
html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.paid{background:#153d2b!important;color:#83db9b!important}
html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.draft{background:#3d2f14!important;color:#f5c26b!important}
html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.cancelled{background:#4b2528!important;color:#ffaaa5!important}
html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app td > .esb-status-badge.issued{background:#123d5b!important;color:#80caff!important}
/* Record actions share the tab row, at its right end. */
html body[data-auth-state="authenticated"] #app#app .center-tabbar > .esb-tabbar-actions{margin:0 0 0 auto!important;padding:4px 0!important;border:0!important;background:transparent!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;min-height:0!important}
html body[data-auth-state="authenticated"] #app#app .center-tabbar > .esb-tabbar-actions :is(.btn,summary.btn){min-height:32px!important;height:32px!important;padding:0 10px!important;font-size:13px!important}
/* Record tabs inside a customer, vendor or employee are one step smaller than the page tabs above them. */
html body[data-auth-state="authenticated"] #app#app .center-tabbar > .center-tabs > button{font-size:14px!important;padding:6px 10px!important;min-height:34px!important}
html body[data-auth-state="authenticated"] #app#app .center-detail-body > .esb-customer-date-filter{margin:0!important;padding:8px 10px;width:auto!important;max-width:none!important;box-sizing:border-box;border-bottom:1px solid var(--line,#d5dee8)}
/* The view filter heads the record list; an emptied toolbar takes no space. */
html body[data-auth-state="authenticated"] #app#app .center-list > .esb-list-head{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:6px 8px;border-bottom:1px solid var(--line,#d5dee8);position:sticky;top:0;z-index:2;background:inherit}
html body[data-auth-state="authenticated"] #app#app .center-list > .esb-list-head .esb-record-view > summary{min-height:30px!important;height:30px!important;padding:0 10px!important;font-size:13px!important}
html body[data-auth-state="authenticated"] #app#app .center-toolbar.esb-toolbar-empty{display:none!important}
/* The list / detail divider is a thin line that highlights when dragged. */
html body #app .sb-split-grip{background:linear-gradient(var(--line,#d5dee8),var(--line,#d5dee8)) center/1px 100% no-repeat!important}
html body #app .sb-split-grip:hover{background:linear-gradient(#248e9b,#248e9b) center/3px 100% no-repeat!important}
