/* App-wide screen design. Printed documents retain their dedicated layouts. */
.access-feature-row[hidden],.access-access-area[hidden],[data-personal-matrix][hidden]{display:none!important;}
.access-role-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}
html body #modal-root .access-role-tools>.btn{font:inherit!important;min-height:40px!important;padding:9px 14px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:var(--panel)!important;color:var(--ink)!important;cursor:pointer;}
@media screen {
 html body[data-auth-state="authenticated"] #app#app {
  --esb-component-radius:12px;--esb-component-gap:12px;
 }
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis {
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;
  gap:var(--esb-component-gap)!important;margin:0 0 8px!important;
 }
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
  border-radius:var(--esb-component-radius)!important;border:1px solid var(--line)!important;border-top:3px solid var(--brand-gold,#248e9b)!important;
  padding:10px 12px!important;gap:4px!important;min-height:76px!important;height:auto!important;max-height:none!important;
  background:var(--panel)!important;color:var(--ink)!important;text-align:left!important;box-shadow:none!important;
 }
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric :is(small,strong,em) {
  width:100%!important;text-align:left!important;white-space:normal!important;overflow:visible!important;
  overflow-wrap:anywhere;opacity:1!important;margin:0!important;padding:0!important;
 }
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric small {
  color:var(--muted)!important;font-size:12px!important;font-weight:650!important;line-height:1.4!important;
 }
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric strong {
  color:var(--ink)!important;-webkit-text-fill-color:currentColor!important;font-size:22px!important;line-height:1.3!important;font-weight:700!important;
  font-variant-numeric:tabular-nums;
 }
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis>.metric em {
  display:block!important;color:var(--muted)!important;font-size:12px!important;line-height:1.4!important;font-style:normal!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root,body) .esb-tabs {
  display:flex!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:4px!important;
  padding:0!important;margin:0 0 6px!important;overflow-x:auto!important;max-width:100%;min-width:0;
  border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root,body) .esb-tabs>:is(button,a,span) {
  display:inline-flex!important;align-items:center;gap:5px;flex:0 0 auto!important;min-height:38px!important;
  padding:8px 12px!important;margin:0!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:9px!important;
  background:transparent!important;color:var(--ink)!important;font:inherit!important;font-size:1rem!important;font-weight:600!important;line-height:1.4!important;
  white-space:nowrap!important;text-decoration:none!important;box-shadow:none!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root,body) .esb-tabs>:is(.active,.is-on,[aria-selected="true"],[aria-current="page"]) {
  border-bottom-color:transparent!important;color:#fff!important;background:var(--brand-hero,linear-gradient(135deg,#0F2A44,#14506A))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 2px 5px rgba(15,42,68,.16)!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root,body) .esb-tabs>:is(button,a):focus-visible {outline:2px solid #248e9b!important;outline-offset:-3px;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root,body) .esb-tabs :is(small,b,span) {color:inherit;}
 /* A tab row inside a wrapper bar (Customers, Vendors, Employees) fills the bar; the bar draws the line. */
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root,body) .center-tabbar>.esb-tabs {flex:1 1 auto!important;min-width:0;border-bottom:0!important;margin:0!important;}
 /* The module bar: the module's page tabs on the left, its New transaction menu on the right, on every module page. */
 html body[data-auth-state="authenticated"] #app#app>.esb-module-bar {display:flex;align-items:flex-end;gap:12px;margin:0 0 6px;border-bottom:1px solid var(--line);}
 html body[data-auth-state="authenticated"] #app#app>.esb-module-bar>.esb-tabs {flex:1 1 auto!important;min-width:0;border-bottom:0!important;margin:0!important;}
 html body[data-auth-state="authenticated"] #app#app>.esb-module-bar>.esb-module-new {flex:0 0 auto;margin:0 0 6px auto;}
 html body[data-auth-state="authenticated"] #app#app>.esb-module-bar .sb-menu-list {max-height:70vh;overflow:auto;}
 html body[data-auth-state="authenticated"] #app#app>.esb-module-bar .esb-new-group {display:block;padding:8px 12px 4px;margin-top:4px;border-top:1px solid var(--esb-menu-line,var(--line));color:var(--muted);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) .esb-standard-table th :is(button.sb-col-sort,button.sb-sort) {
  background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important;padding:0!important;font:inherit!important;
 }
}
@media screen and (max-width:600px) {
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media screen and (max-width:340px) {
 html body[data-auth-state="authenticated"] #app#app .cards.esb-kpis {grid-template-columns:minmax(0,1fr)!important;}
}
@media screen {
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-table-scroll:not(.esb-table-cards){
  max-height:min(65vh,720px)!important;overflow:auto!important;position:relative;isolation:isolate;
  scrollbar-gutter:stable;max-width:100%;min-width:0;
 }
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-table-scroll:focus-visible{outline:2px solid #248e9b;outline-offset:2px}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) table.esb-freeze-head{
  overflow:visible!important;border-collapse:separate!important;border-spacing:0!important;
 }
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) table.esb-freeze-head>thead{
  position:sticky!important;top:0!important;z-index:5;background:var(--esb-head-bg);color:var(--esb-head-ink);
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>th{
  position:static!important;background:var(--esb-head-bg)!important;color:var(--esb-head-ink)!important;
  height:48px!important;padding:8px 12px!important;vertical-align:middle!important;
  font-family:"Segoe UI",Arial,sans-serif!important;font-size:13px!important;font-weight:600!important;line-height:1.25!important;
  letter-spacing:0!important;text-transform:none!important;white-space:nowrap!important;
  border:0!important;border-bottom:1px solid var(--esb-head-line)!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>th :is(span,a,button){color:inherit!important;-webkit-text-fill-color:currentColor!important}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>th [data-esb-currency]{display:block;font-size:11px!important;font-weight:400!important;line-height:1.2!important;opacity:1;white-space:nowrap;margin-top:2px}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>th .sb-col-sort{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px;width:100%;min-height:0!important;height:auto!important;padding:0!important;background:transparent!important;border:0!important;color:inherit!important;font:inherit!important;text-align:inherit!important;box-shadow:none!important}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>th .sb-col-sort>span{min-width:0;white-space:nowrap;text-align:inherit}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>[data-esb-align="right"]{text-align:right!important;text-align-last:right!important;font-variant-numeric:tabular-nums}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>[data-esb-align="right"] .sb-col-sort{justify-content:flex-end!important;text-align:right!important}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>[data-esb-align="left"]{text-align:left!important;text-align-last:left!important}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>[data-esb-align="center"]{text-align:center!important;text-align-last:center!important}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>[data-esb-align="center"] .sb-col-sort{justify-content:center!important;text-align:center!important}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>th:has(.sb-col-sort):hover{background:var(--esb-head-hover)!important}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-freeze-head>thead>tr>th[aria-sort]{box-shadow:inset 0 -2px #248e9b}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-table-cards{max-height:none!important;overflow:visible!important}
}
@media print{
 .esb-table-scroll{max-height:none!important;height:auto!important;overflow:visible!important;isolation:auto!important}
 table.esb-freeze-head>thead{position:static!important;display:table-header-group!important}
 table.esb-freeze-head>thead>tr>th{position:static!important}
}
@media screen {
 html body[data-auth-state="authenticated"] {
  --esb-hero-navy:#123450;--esb-hero-navy-deep:#0b253b;
  --esb-head-bg:#f2f5f8;--esb-head-ink:#17324d;--esb-head-line:#c5d2df;--esb-head-hover:#e3ebf2;
  --esb-table-stripe:#f5f8fc;--esb-table-hover:#eaf3fb;--esb-table-line:#d8e3ee;
 }
 html[data-theme="dark"] body[data-auth-state="authenticated"] {
  --esb-head-bg:#15344d;--esb-head-ink:#edf4fc;--esb-head-line:#36536b;--esb-head-hover:#214960;
  --esb-table-stripe:#182b40;--esb-table-hover:#223d56;--esb-table-line:#375069;
 }
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) :is(.panel,.form-card) {
  border-radius:12px!important;border-color:var(--esb-table-line)!important;box-shadow:0 3px 14px #12345008;
 }
 html body[data-auth-state="authenticated"] #app#app .panel-head {
  padding:14px 18px!important;border-bottom:1px solid var(--esb-table-line)!important;
  background:linear-gradient(90deg,#eaf1f8,transparent)!important;
 }
 html body[data-auth-state="authenticated"] #app#app .panel-head :is(h2,h3) {font-weight:750!important;letter-spacing:-.015em;}
 html body[data-auth-state="authenticated"] #app#app .metric {border-top:3px solid #248e9b!important;border-radius:12px!important;}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .btn:focus-visible {outline:3px solid #2d99ba!important;outline-offset:3px;}
 html[data-theme="dark"] body[data-auth-state="authenticated"] #app#app .panel-head {background:linear-gradient(90deg,#20374f,transparent)!important;}
}
@media screen and (min-width:769px) {
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table {
  border-collapse:separate!important;border-spacing:0!important;font-family:inherit!important;
  border:1px solid var(--esb-table-line)!important;border-radius:10px;overflow:hidden;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tbody > tr {
  background:var(--panel,#fff)!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tbody > tr:nth-child(even) {background:var(--esb-table-stripe)!important;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tbody > tr:is(.fs-section,.fs-subsection,.fs-subtotal,.fs-grand,.subtotal,.grand,.section,.total) {background:var(--esb-table-stripe)!important;font-weight:750!important;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tbody > tr:is(:hover,.selected,.is-selected,[aria-selected="true"]) {background:var(--esb-table-hover)!important;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tbody > tr > td {
  background:inherit!important;padding:8px 12px!important;line-height:1.5!important;vertical-align:middle!important;
  border:0!important;border-bottom:1px solid var(--esb-table-line)!important;font-family:inherit!important;font-size:13px!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tfoot > tr > :is(td,th) {
  background:var(--esb-table-stripe)!important;padding:8px 12px!important;border:0!important;border-top:2px solid var(--esb-table-line)!important;font-weight:750!important;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > :is(thead,tbody,tfoot) > tr > [data-esb-align="right"] {
  text-align:right!important;text-align-last:right!important;font-variant-numeric:tabular-nums lining-nums;
 }
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > :is(thead,tbody,tfoot) > tr > [data-esb-align="left"] {text-align:left!important;text-align-last:left!important;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > :is(thead,tbody,tfoot) > tr > [data-esb-align="center"] {text-align:center!important;text-align-last:center!important;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table [data-esb-align="right"] :is(input,button.sb-col-sort) {text-align:right!important;text-align-last:right!important;font-variant-numeric:tabular-nums;}
}

/* Explicit register contrast pairs; document previews never receive this class. */
@media screen and (min-width:769px){
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tbody > tr > td {color:#17324d!important;}
 html[data-theme="dark"] body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tbody > tr > td {color:#e5eef7!important;}
 html body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tfoot > tr > :is(td,th){color:#17324d!important;}
 html[data-theme="dark"] body[data-auth-state="authenticated"] :is(#app#app,#modal-root#modal-root) table.esb-standard-table > tfoot > tr > :is(td,th){color:#e5eef7!important;}
}


/* Compact operational workspaces. Printed documents retain their own spacing. */
@media screen {
 html body[data-auth-state="authenticated"] #app#app>:is(.page-actions,.center-toolbar,.center-center-head){margin:0 0 8px!important;gap:8px!important;padding-block:6px!important;min-height:0!important;}
 html body[data-auth-state="authenticated"] #app#app .center-detail{padding:0!important;min-width:0;}
 html body[data-auth-state="authenticated"] #app#app .center-detail-body{padding-top:0!important;}
 html body[data-auth-state="authenticated"] #app#app .center-detail>.center-actions{padding:8px 10px!important;background:var(--panel)!important;border-color:var(--line)!important;}
 html body[data-auth-state="authenticated"] #app#app .sb-center-actions>.esb-customer-date-filter{padding:0!important;border:0!important;margin-inline:auto;gap:6px!important;flex:0 1 auto;}
 html body[data-auth-state="authenticated"] #app#app .esb-customer-date-filter input{height:34px!important;min-height:34px!important;width:136px!important;padding:4px 6px!important;box-sizing:border-box;}
 html body[data-auth-state="authenticated"] #app#app .esb-customer-date-filter .btn{min-height:34px!important;padding:5px 9px!important;}
 html body[data-auth-state="authenticated"] #app#app .esb-customer-date-filter>span{white-space:nowrap;margin-left:4px;}
 html body[data-auth-state="authenticated"] #app#app>.panel{margin-block:0 8px!important;}
 html body[data-auth-state="authenticated"] #app#app .panel-head{padding:10px 12px!important;min-height:0!important;}
}
@media screen and (max-width:768px){
 html body[data-auth-state="authenticated"] #app#app .sb-center-actions>.esb-customer-date-filter{flex:1 1 100%;order:3;margin:0;}
 html body[data-auth-state="authenticated"] #app#app .esb-customer-date-filter label{flex:1 1 140px;}
 html body[data-auth-state="authenticated"] #app#app .esb-customer-date-filter input{width:100%!important;height:44px!important;min-height:44px!important;font-size:16px!important;}
}

/* One action-menu surface for native dropdowns and register actions. */
@media screen {
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-action-popup {
  box-sizing:border-box!important;min-width:190px;max-width:calc(100vw - 16px);max-height:min(70vh,480px);overflow:auto;
  padding:6px!important;border:1px solid var(--line)!important;border-radius:10px!important;
  background:var(--panel)!important;color:var(--ink)!important;box-shadow:0 12px 28px #0002!important;
  font:inherit!important;text-align:left;
 }
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-action-popup>:is(button,a) {
  box-sizing:border-box!important;display:flex!important;align-items:center;gap:8px;width:100%!important;min-height:36px;
  margin:0!important;padding:8px 12px!important;border:0!important;border-radius:6px!important;
  background:transparent!important;color:var(--ink)!important;font:inherit!important;font-size:13px!important;
  font-weight:500!important;line-height:1.4!important;text-align:left!important;text-decoration:none;cursor:pointer;
 }
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-action-popup>:is(button,a):is(:hover,:focus-visible) {background:var(--esb-table-hover)!important;outline:2px solid transparent;}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-action-popup>:is(.danger,.sb-menu-danger),
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .sb-destructive-popup>:is(button,a) {color:var(--esb-danger,#b42318)!important;}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-action-popup>:is(button,a):disabled {opacity:.5;cursor:default;}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-action-popup>[hidden] {display:none!important;}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .sb-destructive-actions>summary::after {content:"";width:7px;height:7px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);}
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .sb-destructive-actions[open]>summary::after {transform:translateY(2px) rotate(225deg);}
 html body[data-auth-state="authenticated"] #app#app .esb-kpi-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;}
 html body[data-auth-state="authenticated"] #app#app .esb-kpi-heading>small {flex:1;min-width:0;}
 html body[data-auth-state="authenticated"] #app#app .esb-kpi-actions {display:flex;flex:0 0 auto;gap:6px;}
 html body[data-auth-state="authenticated"] #app#app .esb-kpi-actions>button {border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:600;cursor:pointer;padding:4px 6px;border-radius:4px;}
 html body[data-auth-state="authenticated"] #app#app .esb-kpi-actions>button:is(:hover,:focus-visible) {background:var(--esb-table-hover);outline:2px solid #248e9b;}
}
@media screen and (max-width:768px){
 html body[data-auth-state="authenticated"] :is(#app,#modal-root) .esb-action-popup>:is(button,a) {min-height:44px;}
}

/* Navigation and action glyphs inherit a readable theme colour. */
html[data-theme="dark"] body[data-auth-state="authenticated"] :is(#app,#modal-root,#nav,#global-menubar) :is(svg.menu-svg,svg.im-menu-icon,svg.nav-svg,svg.new-svg,.add-new-card>svg){
 color:#b9ddff!important;stroke:currentColor!important;
}
