
/* ===== Beta 9 viewport takeover: bypass every WordPress/theme width constraint ===== */
html:has(.seh-viewport-app),
body:has(.seh-viewport-app){
  overflow:hidden!important;
}
.seh-viewport-app{
  position:fixed!important;
  inset:0!important;
  z-index:999990!important;
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  overflow:hidden!important;
  background:#f5f7f6!important;
}
body.admin-bar .seh-viewport-app{
  top:32px!important;
  height:calc(100vh - 32px)!important;
}
#seh-finance-app.seh-finance-workspace{
  grid-template-columns:264px minmax(0,1fr)!important;
  width:100vw!important;
  min-width:100vw!important;
  height:100%!important;
  min-height:100%!important;
}
#seh-finance-app .seh-fin-shell{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:100%!important;
  overflow:hidden!important;
}
#seh-finance-app .seh-fin-content{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:calc(100% - 76px)!important;
  overflow:auto!important;
}
#seh-finance-app #seh-fp-view,
#seh-finance-app .seh-panel,
#seh-finance-app .seh-grid-shell{
  width:100%!important;
  max-width:none!important;
}
#seh-finance-app .seh-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow:auto!important;
}

/* POS full viewport */
#seh-pos-viewport{
  background:#f5f7f6!important;
  overflow:auto!important;
}
#seh-pos-viewport #seh-pos-app{
  width:100%!important;
  max-width:none!important;
  min-height:100%!important;
  margin:0!important;
  padding:20px!important;
}
#seh-pos-viewport .seh-pos-grid{
  width:100%!important;
  max-width:none!important;
}

/* Hide any theme/admin chrome that can visually compete with the app */
body.seh-fp-workspace-page > header,
body.seh-fp-workspace-page > footer,
body.seh-fp-workspace-page .site-header,
body.seh-fp-workspace-page .site-footer{
  display:none!important;
}
@media (max-width:782px){
  body.admin-bar .seh-viewport-app{
    top:46px!important;
    height:calc(100vh - 46px)!important;
  }
}


:root{
  --seh-green:#173f32;
  --seh-green-2:#214f3f;
  --seh-cream:#f7f4ed;
  --seh-gold:#c39a56;
  --seh-ink:#1f2824;
  --seh-muted:#6f7773;
  --seh-line:#e6e8e6;
  --seh-card:#ffffff;
  --seh-danger:#b44736;
  --seh-shadow:0 8px 30px rgba(18,43,34,.08);
}
*{box-sizing:border-box}

/* Remove theme chrome on Finance/POS app pages */
body.seh-fp-workspace-page{margin:0!important;background:#f5f7f6!important}
body.seh-fp-workspace-page #masthead,
body.seh-fp-workspace-page .site-header,
body.seh-fp-workspace-page header.wp-block-template-part,
body.seh-fp-workspace-page #colophon,
body.seh-fp-workspace-page .site-footer,
body.seh-fp-workspace-page footer.wp-block-template-part{display:none!important}
body.seh-fp-workspace-page .site,
body.seh-fp-workspace-page .site-content,
body.seh-fp-workspace-page #content,
body.seh-fp-workspace-page main.site-main,
body.seh-fp-workspace-page .entry-content,
body.seh-fp-workspace-page article,
body.seh-fp-workspace-page .wp-site-blocks{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important
}
body.seh-fp-workspace-page .entry-header,
body.seh-fp-workspace-page .entry-title{display:none!important}

/* Full desktop workspace */
.seh-finance-workspace{
  width:100vw;
  min-height:100vh;
  margin-inline:calc(50% - 50vw);
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  background:#f5f7f6;
  color:var(--seh-ink);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;
}
.seh-fin-sidebar{
  position:sticky;top:0;height:100vh;z-index:30;
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,var(--seh-green),#102f26);
  color:#fff;border-inline-end:1px solid rgba(255,255,255,.08);
}
.seh-fin-brand{
  display:flex;align-items:center;gap:12px;padding:22px 20px 18px;
  cursor:pointer;border-bottom:1px solid rgba(255,255,255,.08)
}
.seh-fin-brand-mark{
  display:grid;place-items:center;width:42px;height:42px;border-radius:14px;
  color:var(--seh-green);background:#ead8b5;font-weight:800;font-size:22px;
  box-shadow:inset 0 0 0 1px rgba(195,154,86,.6)
}
.seh-fin-brand strong{display:block;font-size:17px}
.seh-fin-brand small{opacity:.72;font-size:12px}
.seh-fin-nav{padding:14px 10px;overflow:auto;flex:1}
.seh-fin-nav button{
  width:100%;border:0;background:transparent;color:rgba(255,255,255,.84);
  display:flex;align-items:center;gap:11px;padding:11px 12px;margin:2px 0;
  border-radius:10px;text-align:start;cursor:pointer;font:inherit;font-size:14px
}
.seh-fin-nav button:hover{background:rgba(255,255,255,.08);color:#fff}
.seh-fin-nav button.is-active{background:#fff;color:var(--seh-green);font-weight:700}
.seh-fin-nav-dot{width:7px;height:7px;border-radius:50%;background:var(--seh-gold);flex:0 0 auto}
.seh-fin-sidebar-footer{padding:14px 16px 20px;border-top:1px solid rgba(255,255,255,.08)}
.seh-fin-sidebar-footer a{color:#fff;text-decoration:none;font-size:13px;opacity:.82}

.seh-fin-shell{min-width:0;display:flex;flex-direction:column;min-height:100vh}
.seh-fin-topbar{
  position:sticky;top:0;z-index:20;
  min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 24px;background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--seh-line);backdrop-filter:blur(12px)
}
.seh-fin-topbar-start,.seh-fin-topbar-end{display:flex;align-items:center;gap:10px;min-width:0}
.seh-fin-title-wrap{min-width:0;margin-inline-start:4px}
.seh-fin-title-wrap h1{font-size:22px;line-height:1.2;margin:2px 0 0;color:var(--seh-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seh-fin-breadcrumb{font-size:11px;color:var(--seh-muted)}
.seh-icon-btn,.seh-top-pos{
  border:1px solid var(--seh-line);background:#fff;color:var(--seh-green);
  min-width:38px;height:38px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;text-decoration:none;font-weight:700;font-size:18px
}
.seh-top-pos{padding:0 14px;font-size:13px;background:var(--seh-green);color:#fff;border-color:var(--seh-green)}
.seh-fp-env{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.seh-fp-env.test{background:#fff2cf;color:#785812}
.seh-fp-env.live{background:#dff2e7;color:#216541}
.seh-fp-env.setup{background:#ecefee;color:#5b6360}
.seh-mobile-only{display:none}

.seh-fin-content{padding:24px;min-width:0;overflow:hidden}
#seh-fp-view{width:100%;max-width:none}

/* Dashboard */
.seh-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.seh-dashboard-head h2{margin:0;font-size:24px}.seh-dashboard-head p{margin:5px 0 0;color:var(--seh-muted)}
.seh-cards{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:14px;margin-bottom:18px}
.seh-card{
  background:var(--seh-card);border:1px solid var(--seh-line);border-radius:14px;
  padding:16px;min-width:0;box-shadow:0 1px 2px rgba(0,0,0,.02)
}
.seh-card span{display:block;font-size:12px;color:var(--seh-muted);margin-bottom:8px}
.seh-card strong{display:block;font-size:24px;line-height:1.15;color:var(--seh-ink)}
.seh-card.is-clickable{cursor:pointer;transition:.15s ease}
.seh-card.is-clickable:hover{transform:translateY(-1px);box-shadow:var(--seh-shadow);border-color:#d6ddd9}
.seh-rb-audit-card{font:inherit;text-align:inherit;cursor:pointer;color:inherit}.seh-rb-audit-card.is-active{border-color:var(--seh-gold);box-shadow:0 0 0 2px rgba(210,173,98,.2)}.seh-rb-audit-card.is-perfect strong{color:#1f704a}.seh-rb-audit-card.is-zero strong{color:#9a6500}.seh-rb-audit-card.is-incomplete strong{color:#a33b32}.seh-rb-audit-details{margin:0 0 18px}.seh-rb-audit-details table{width:100%;border-collapse:collapse}.seh-rb-audit-details th,.seh-rb-audit-details td{padding:10px 12px;border-bottom:1px solid var(--seh-line)}
.seh-panel{
  width:100%;background:var(--seh-card);border:1px solid var(--seh-line);
  border-radius:14px;padding:18px;margin:0 0 16px;box-shadow:0 1px 2px rgba(0,0,0,.02)
}
.seh-panel h2,.seh-panel h3{margin-top:0}
.seh-action-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px}
.seh-action-grid button,.seh-btn,.seh-primary-btn,.seh-secondary-btn{
  border:1px solid var(--seh-green);background:var(--seh-green);color:#fff;
  padding:10px 14px;border-radius:9px;text-decoration:none;cursor:pointer;font:inherit;text-align:center
}
.seh-secondary-btn{background:#fff;color:var(--seh-green);border-color:var(--seh-line)}
.seh-section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.seh-section-title h2{margin:0}

/* Data grid */
.seh-grid-shell{width:100%;min-width:0}
.seh-grid-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 0;flex-wrap:wrap
}
.seh-grid-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.seh-grid-search{
  min-width:260px;height:38px;border:1px solid var(--seh-line);border-radius:9px;
  padding:0 12px;background:#fff;color:var(--seh-ink)
}
.seh-grid-tool{
  height:38px;border:1px solid var(--seh-line);border-radius:9px;background:#fff;color:var(--seh-green);
  padding:0 12px;cursor:pointer;font:inherit;font-size:13px
}
.seh-column-menu{
  position:absolute;z-index:100;background:#fff;border:1px solid var(--seh-line);
  border-radius:10px;box-shadow:var(--seh-shadow);padding:10px;max-height:320px;overflow:auto;min-width:220px
}
.seh-column-menu label{display:flex;gap:8px;align-items:center;padding:6px;font-size:13px}
.seh-table-wrap{
  width:100%;max-width:100%;overflow:auto;border:1px solid var(--seh-line);
  border-radius:10px;background:#fff;max-height:calc(100vh - 235px)
}
.seh-table{
  width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;
  font-size:13px;white-space:nowrap
}
.seh-table th,.seh-table td{
  padding:10px 12px;border-bottom:1px solid #edf0ee;border-inline-end:1px solid #f1f3f2;
  text-align:start;vertical-align:middle;max-width:420px;overflow:hidden;text-overflow:ellipsis
}
.seh-table th{
  position:sticky;top:0;z-index:3;background:#f7f9f8;color:#39443f;
  font-size:11px;text-transform:none;letter-spacing:.01em;font-weight:800
}
.seh-table tbody tr:hover td{background:#fbfcfb}
.seh-table tbody tr:last-child td{border-bottom:0}
.seh-empty{padding:38px;text-align:center;color:var(--seh-muted);background:#fff;border:1px dashed #d9dfdc;border-radius:12px}
.seh-table-count{font-size:12px;color:var(--seh-muted)}

.seh-report-bar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.seh-report-bar label{display:grid;gap:5px;font-size:12px;color:var(--seh-muted)}
.seh-report-bar input,.seh-form-grid input,.seh-form-grid select{
  min-height:38px;padding:8px 10px;border:1px solid var(--seh-line);border-radius:8px;background:#fff
}
.seh-form-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px;margin:16px 0}
.seh-form-grid label{display:grid;gap:6px;font-size:13px}
.seh-fp-notice,.seh-fp-login-required{
  padding:16px;border:1px solid #ead5a5;background:#fff7e3;border-radius:10px;color:#6d531c
}

/* Desktop breakpoints */
@media (max-width:1400px){
  .seh-cards{grid-template-columns:repeat(3,minmax(170px,1fr))}
  .seh-action-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}
}
@media (max-width:1100px){
  .seh-finance-workspace{grid-template-columns:230px minmax(0,1fr)}
  .seh-cards{grid-template-columns:repeat(2,minmax(160px,1fr))}
  .seh-action-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}
}

/* Mobile becomes mobile intentionally */
@media (max-width:820px){
  .seh-mobile-only{display:inline-flex}
  .seh-finance-workspace{display:block;min-height:100dvh}
  .seh-fin-sidebar{
    position:fixed;inset-block:0;inset-inline-start:0;width:min(84vw,310px);
    transform:translateX(-105%);transition:transform .2s ease;box-shadow:var(--seh-shadow)
  }
  [dir="rtl"].seh-finance-workspace .seh-fin-sidebar{inset-inline-start:auto;inset-inline-end:0;transform:translateX(105%)}
  .seh-finance-workspace.is-sidebar-open .seh-fin-sidebar{transform:translateX(0)}
  .seh-fin-topbar{min-height:66px;padding:10px 12px}
  .seh-fin-title-wrap h1{font-size:18px}
  .seh-fin-content{padding:12px}
  .seh-fin-topbar-end .seh-top-pos{display:none}
  .seh-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .seh-card{padding:13px}.seh-card strong{font-size:19px}
  .seh-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .seh-form-grid{grid-template-columns:1fr}
  .seh-grid-toolbar{align-items:stretch}
  .seh-grid-tools{width:100%}.seh-grid-search{min-width:0;flex:1}
  .seh-table-wrap{max-height:none}
  .seh-table{font-size:12px}
}

/* ===== Beta 10 collapsible finance sidebar ===== */
.seh-fin-brand{position:relative;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
.seh-fin-brand-home{flex:1;min-width:0;border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:12px;text-align:start;cursor:pointer;padding:0;font:inherit}
.seh-fin-brand-copy{min-width:0}.seh-fin-brand-copy strong,.seh-fin-brand-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seh-fin-collapse{flex:0 0 34px;width:34px;height:34px;border-radius:9px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;font-size:18px}
.seh-finance-workspace.is-collapsed{grid-template-columns:74px minmax(0,1fr)!important}
.seh-finance-workspace.is-collapsed .seh-fin-sidebar{width:74px!important}
.seh-finance-workspace.is-collapsed .seh-fin-brand{padding-inline:10px!important;justify-content:center!important}
.seh-finance-workspace.is-collapsed .seh-fin-brand-home{justify-content:center!important;flex:0 0 auto!important}
.seh-finance-workspace.is-collapsed .seh-fin-brand-copy,
.seh-finance-workspace.is-collapsed .seh-fin-nav button > span:last-child,
.seh-finance-workspace.is-collapsed .seh-fin-sidebar-footer{display:none!important}
.seh-finance-workspace.is-collapsed .seh-fin-collapse{position:absolute;inset-inline-end:-15px;top:50%;transform:translateY(-50%);background:#fff;color:#173f32;border-color:#dbe2df;box-shadow:0 3px 12px rgba(0,0,0,.14);font-size:0}
.seh-finance-workspace.is-collapsed .seh-fin-collapse:after{content:"⇥";font-size:18px}
.seh-finance-workspace.is-collapsed .seh-fin-nav{padding-inline:8px!important}
.seh-finance-workspace.is-collapsed .seh-fin-nav button{justify-content:center!important;padding:12px 8px!important}
.seh-finance-workspace.is-collapsed .seh-fin-nav-dot{width:10px!important;height:10px!important}
@media(min-width:821px){.seh-finance-workspace{transition:grid-template-columns .18s ease}.seh-fin-sidebar{transition:width .18s ease}}
@media(max-width:820px){.seh-fin-collapse{display:none!important}}

/* Beta 11 audited width/collapse */
.seh-finance-workspace{--seh-sidebar-expanded:264px;--seh-sidebar-collapsed:64px;grid-template-columns:var(--seh-sidebar-expanded) minmax(0,1fr)!important}
.seh-finance-workspace.is-collapsed{grid-template-columns:var(--seh-sidebar-collapsed) minmax(0,1fr)!important}
.seh-finance-workspace .seh-fin-sidebar{width:var(--seh-sidebar-expanded)!important}
.seh-finance-workspace.is-collapsed .seh-fin-sidebar{width:var(--seh-sidebar-collapsed)!important}
.seh-finance-workspace .seh-fin-shell,.seh-finance-workspace .seh-fin-content,.seh-finance-workspace #seh-fp-view,.seh-finance-workspace .seh-panel,.seh-finance-workspace .seh-grid-shell,.seh-finance-workspace .seh-table-wrap{width:100%!important;max-width:none!important;min-width:0!important}
.seh-finance-workspace .seh-fin-content{margin:0!important;padding:18px!important}
.seh-finance-workspace.is-collapsed .seh-fin-content{padding-inline:12px!important}
.seh-finance-workspace .seh-table{min-width:100%!important;width:max-content!important}
.seh-fin-collapse{font-size:0!important;direction:ltr!important}
.seh-fin-collapse:before{content:"›";font-size:24px;line-height:1}
[dir="rtl"].seh-finance-workspace .seh-fin-collapse:before{content:"‹"}
.seh-finance-workspace.is-collapsed .seh-fin-collapse:before{content:"‹"}
[dir="rtl"].seh-finance-workspace.is-collapsed .seh-fin-collapse:before{content:"›"}
.seh-finance-workspace.is-collapsed .seh-fin-collapse:after{content:none!important}
@media(min-width:821px){.seh-finance-workspace .seh-panel{border-radius:10px!important;box-shadow:none!important}.seh-finance-workspace .seh-table-wrap{max-height:calc(100vh - 215px)!important;border-radius:8px!important}}
.seh-pos-appbar{position:sticky;top:0;z-index:60;min-height:64px;display:flex;align-items:center;gap:10px;padding:10px 16px;background:#fff;border-bottom:1px solid #e6e8e6}
.seh-pos-nav-btn{width:40px;height:40px;border:1px solid #e0e5e2;border-radius:10px;display:grid;place-items:center;text-decoration:none!important;color:#173f32!important;background:#fff;font-size:20px;font-weight:800}
.seh-pos-appbar-title{display:flex;flex-direction:column}.seh-pos-appbar-title strong{font-size:17px}.seh-pos-appbar-title small{font-size:11px;color:#6f7773}.seh-pos-workarea{height:calc(100% - 64px);overflow:auto}

.seh-branding-box{display:grid;grid-template-columns:minmax(180px,1fr) 120px auto;gap:16px;align-items:center;padding:14px;border:1px solid #e4e8e5;border-radius:10px;margin:8px 0 22px}
.seh-branding-box small{display:block;color:#6f7773;margin-top:4px}
.seh-logo-preview{width:110px;height:72px;border:1px dashed #cad2ce;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:#fafbfa}
.seh-logo-preview img{width:100%;height:100%;object-fit:contain}
.seh-logo-placeholder{font-size:11px;color:#7a827e;text-align:center}
.seh-number-preview{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 16px;background:#f7f9f8;border:1px solid #e5e9e7;border-radius:10px;margin:8px 0 22px}
.seh-number-preview strong{font-size:24px;color:#173f32}.seh-number-preview small{color:#6f7773;flex-basis:100%}
.seh-check-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;margin:14px 0 20px}
.seh-check-grid label{padding:10px 12px;border:1px solid #e5e9e7;border-radius:8px;background:#fff}
.seh-wide-field{grid-column:1/-1}
@media(max-width:820px){.seh-branding-box{grid-template-columns:1fr}.seh-check-grid{grid-template-columns:1fr}}


/* ===== Beta 13: real collapse track + professional icons ===== */

/* This ID-level override intentionally beats the older Beta 9 ID rule. */
#seh-finance-app.seh-finance-workspace{
  grid-template-columns:264px minmax(0,1fr)!important;
}
#seh-finance-app.seh-finance-workspace.is-collapsed{
  grid-template-columns:64px minmax(0,1fr)!important;
}

/* Sidebar itself follows the track exactly. */
#seh-finance-app.seh-finance-workspace .seh-fin-sidebar{
  width:264px!important;
  min-width:264px!important;
  max-width:264px!important;
}
#seh-finance-app.seh-finance-workspace.is-collapsed .seh-fin-sidebar{
  width:64px!important;
  min-width:64px!important;
  max-width:64px!important;
}

/* The content is explicitly allowed to consume the entire remaining track. */
#seh-finance-app.seh-finance-workspace .seh-fin-shell,
#seh-finance-app.seh-finance-workspace .seh-fin-content,
#seh-finance-app.seh-finance-workspace #seh-fp-view,
#seh-finance-app.seh-finance-workspace .seh-panel,
#seh-finance-app.seh-finance-workspace .seh-grid-shell,
#seh-finance-app.seh-finance-workspace .seh-table-wrap{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
#seh-finance-app.seh-finance-workspace.is-collapsed .seh-fin-content{
  padding-inline:12px!important;
}

/* Real module icons */
.seh-fin-nav-icon{
  flex:0 0 22px;
  width:22px;height:22px;
  display:grid;place-items:center;
  color:#d7b46f;
}
.seh-fin-nav-icon svg{
  width:19px;height:19px;
  fill:currentColor;
  display:block;
}
.seh-fin-nav-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.seh-fin-nav button:hover .seh-fin-nav-icon,
.seh-fin-nav button.is-active .seh-fin-nav-icon{
  color:#c39a56;
}
.seh-fin-nav button.is-active .seh-fin-nav-icon{color:#173f32}

/* Collapse keeps icons visible and labels hidden. */
#seh-finance-app.seh-finance-workspace.is-collapsed .seh-fin-nav-label{display:none!important}
#seh-finance-app.seh-finance-workspace.is-collapsed .seh-fin-nav button{
  justify-content:center!important;
  padding-inline:8px!important;
}
#seh-finance-app.seh-finance-workspace.is-collapsed .seh-fin-nav-icon{
  width:26px;height:26px;flex-basis:26px;
}
#seh-finance-app.seh-finance-workspace.is-collapsed .seh-fin-nav-icon svg{
  width:21px;height:21px;
}

/* Remove obsolete visual dot rules if they still exist in prior CSS. */
#seh-finance-app .seh-fin-nav-dot{display:none!important}

/* Better use of large screens */
@media(min-width:1200px){
  #seh-finance-app .seh-fin-content{padding:14px!important}
  #seh-finance-app .seh-panel{padding:14px!important}
  #seh-finance-app .seh-table-wrap{max-height:calc(100vh - 205px)!important}
}

/* ===== Beta 15: Finance/POS real mobile application layout ===== */
.seh-fin-mobile-close,
.seh-fin-drawer-overlay{display:none}

@media(max-width:820px){
  html:has(#seh-finance-app), body:has(#seh-finance-app){
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
  }

  #seh-finance-app.seh-finance-workspace{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    max-width:100vw!important;
    min-width:0!important;
    height:100dvh!important;
    display:block!important;
    overflow:hidden!important;
    direction:inherit!important;
  }

  body.admin-bar #seh-finance-app.seh-finance-workspace{
    top:46px!important;
    height:calc(100dvh - 46px)!important;
  }

  #seh-finance-app .seh-fin-shell{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  #seh-finance-app .seh-fin-topbar{
    position:relative!important;
    top:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:64px!important;
    padding:8px 10px!important;
    z-index:20!important;
  }

  #seh-finance-app .seh-fin-title-wrap{
    min-width:0!important;
    max-width:calc(100vw - 190px)!important;
  }

  #seh-finance-app .seh-fin-title-wrap h1{
    font-size:17px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  #seh-finance-app .seh-fin-breadcrumb{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  #seh-finance-app .seh-fin-content{
    position:absolute!important;
    inset-inline:0!important;
    top:64px!important;
    bottom:0!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:10px!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }

  #seh-finance-app #seh-fp-view,
  #seh-finance-app .seh-panel,
  #seh-finance-app .seh-grid-shell{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  /* Drawer: fully off-canvas when closed, fully visible when open */
  #seh-finance-app .seh-fin-sidebar{
    position:fixed!important;
    top:0!important;
    bottom:0!important;
    inset-inline-start:auto!important;
    inset-inline-end:0!important;
    width:min(88vw,340px)!important;
    min-width:min(88vw,340px)!important;
    max-width:min(88vw,340px)!important;
    height:100%!important;
    z-index:120!important;
    transform:translateX(110%)!important;
    transition:transform .22s ease!important;
    overflow:hidden!important;
    box-shadow:-12px 0 30px rgba(0,0,0,.24)!important;
  }

  #seh-finance-app[dir="ltr"] .seh-fin-sidebar{
    inset-inline-start:0!important;
    inset-inline-end:auto!important;
    transform:translateX(-110%)!important;
    box-shadow:12px 0 30px rgba(0,0,0,.24)!important;
  }

  #seh-finance-app.is-sidebar-open .seh-fin-sidebar{
    transform:translateX(0)!important;
  }

  #seh-finance-app .seh-fin-brand{
    min-height:76px!important;
    padding:14px 52px 14px 16px!important;
  }

  #seh-finance-app[dir="ltr"] .seh-fin-brand{
    padding:14px 16px 14px 52px!important;
  }

  #seh-finance-app .seh-fin-nav{
    height:calc(100% - 130px)!important;
    padding:10px!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }

  #seh-finance-app .seh-fin-nav button{
    min-height:48px!important;
    font-size:15px!important;
  }

  #seh-finance-app .seh-fin-mobile-close{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    top:18px!important;
    inset-inline-start:14px!important;
    z-index:130!important;
    width:40px!important;
    height:40px!important;
    border:1px solid rgba(255,255,255,.22)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.08)!important;
    color:#fff!important;
    font-size:28px!important;
    line-height:1!important;
  }

  #seh-finance-app .seh-fin-drawer-overlay{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:110!important;
    border:0!important;
    margin:0!important;
    padding:0!important;
    background:rgba(10,24,19,.48)!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:opacity .2s ease!important;
  }

  #seh-finance-app.is-sidebar-open .seh-fin-drawer-overlay{
    opacity:1!important;
    pointer-events:auto!important;
  }

  /* Mobile reports/buttons: one column, never clipped */
  #seh-finance-app .seh-action-grid{
    grid-template-columns:1fr!important;
    gap:9px!important;
  }

  #seh-finance-app .seh-action-grid button,
  #seh-finance-app .seh-action-grid a{
    width:100%!important;
    min-width:0!important;
  }

  #seh-finance-app .seh-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  #seh-finance-app .seh-report-bar{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }

  #seh-finance-app .seh-report-bar label,
  #seh-finance-app .seh-report-bar input,
  #seh-finance-app .seh-report-bar button{
    width:100%!important;
  }

  /* Tables scroll inside their own container instead of widening the app */
  #seh-finance-app .seh-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }

  #seh-finance-app .seh-table{
    width:max-content!important;
    min-width:720px!important;
  }

  /* POS viewport mobile */
  #seh-pos-viewport{
    width:100vw!important;
    max-width:100vw!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  #seh-pos-viewport .seh-pos-workarea{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:auto!important;
  }

  #seh-pos-viewport #seh-pos-app{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:10px!important;
  }

  #seh-pos-viewport .seh-pos-grid,
  #seh-pos-viewport .seh-pos-layout,
  #seh-pos-viewport .seh-pos-main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
}

/* Beta 16 strict bilingual direction */
#seh-finance-app[dir="rtl"]{direction:rtl;text-align:right}
#seh-finance-app[dir="ltr"]{direction:ltr;text-align:left}
#seh-finance-app[dir="rtl"] .seh-panel,#seh-finance-app[dir="rtl"] .seh-card,#seh-finance-app[dir="rtl"] .seh-table th,#seh-finance-app[dir="rtl"] .seh-table td,#seh-finance-app[dir="rtl"] .seh-form-grid label{text-align:right}
#seh-finance-app[dir="ltr"] .seh-panel,#seh-finance-app[dir="ltr"] .seh-card,#seh-finance-app[dir="ltr"] .seh-table th,#seh-finance-app[dir="ltr"] .seh-table td,#seh-finance-app[dir="ltr"] .seh-form-grid label{text-align:left}
.seh-lang-btn{min-width:42px;height:38px;border:1px solid #e1e6e3;border-radius:10px;background:#fff;color:#173f32;font-weight:800;cursor:pointer}

/* Beta 17: closed mobile finance drawer is truly non-interactive and invisible */
@media(max-width:820px){
  #seh-finance-app .seh-fin-sidebar{
    visibility:hidden!important;
    pointer-events:none!important;
    opacity:0!important;
    transform:translate3d(110%,0,0)!important;
    transition:transform .22s ease,opacity .16s ease,visibility 0s linear .22s!important;
  }
  #seh-finance-app[dir="ltr"] .seh-fin-sidebar{
    transform:translate3d(-110%,0,0)!important;
  }
  #seh-finance-app.is-sidebar-open .seh-fin-sidebar{
    visibility:visible!important;
    pointer-events:auto!important;
    opacity:1!important;
    transform:translate3d(0,0,0)!important;
    transition:transform .22s ease,opacity .16s ease,visibility 0s!important;
  }
  #seh-finance-app:not(.is-sidebar-open) .seh-fin-drawer-overlay{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  #seh-finance-app.is-sidebar-open .seh-fin-drawer-overlay{
    visibility:visible!important;
  }
}

/* Beta 18: cross-module navigation + structural RTL tables */
.seh-fin-return-operations{display:flex!important;align-items:center!important;gap:10px!important;min-height:44px!important;padding:10px 12px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:10px!important;color:#fff!important;text-decoration:none!important;margin:8px 10px 10px!important}
.seh-fin-return-operations:hover{background:rgba(255,255,255,.08)!important}
.seh-fin-return-icon{color:#d3ad65;font-size:18px}
#seh-finance-app[dir="rtl"] .seh-table-wrap{direction:rtl!important}
#seh-finance-app[dir="rtl"] table{direction:rtl!important;text-align:right!important}
#seh-finance-app[dir="rtl"] table th,#seh-finance-app[dir="rtl"] table td{text-align:right!important}
#seh-finance-app[dir="ltr"] .seh-table-wrap,#seh-finance-app[dir="ltr"] table{direction:ltr!important}
#seh-finance-app[dir="ltr"] table th,#seh-finance-app[dir="ltr"] table td{text-align:left!important}
@media(max-width:820px){#seh-fin-home.seh-fin-operations-home{display:grid!important;place-items:center!important}}

/* Beta 19 functional grid controls */
.seh-column-menu{position:fixed!important;z-index:10000!important;background:#fff!important;border:1px solid var(--seh-line)!important;border-radius:12px!important;box-shadow:0 16px 40px rgba(0,0,0,.18)!important;padding:10px!important;max-height:min(360px,70vh)!important;overflow:auto!important;min-width:220px!important}
.seh-column-option{display:flex!important;align-items:center!important;gap:9px!important;min-height:40px!important;padding:7px 8px!important;border-radius:8px!important;cursor:pointer!important;color:#173f32!important}
.seh-column-option:hover{background:#f4f7f5!important}
.seh-column-option input{width:18px!important;height:18px!important}
.seh-grid-tool[aria-expanded="true"]{outline:2px solid rgba(195,154,86,.4)!important}
.seh-grid-tool:disabled,.seh-icon-btn:disabled,.seh-primary-btn:disabled{opacity:.55!important;cursor:wait!important}

.seh-loading-state{padding:28px;color:#65746d}.seh-dashboard-head{margin:0 0 18px}.seh-dashboard-head h2{margin:0 0 6px;font-size:28px}.seh-dashboard-head p{margin:0;color:#6c7872}
.seh-grid-popover{position:fixed!important;z-index:12000!important;background:#fff!important;border:1px solid var(--seh-line)!important;border-radius:14px!important;box-shadow:0 18px 44px rgba(0,0,0,.2)!important;max-height:min(520px,78vh)!important;overflow:hidden!important}.seh-popover-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--seh-line);gap:12px}.seh-popover-close{width:32px;height:32px;border:0;border-radius:8px;background:#f2f5f3;color:#173f32;font-size:22px}.seh-popover-body{padding:12px;max-height:460px;overflow:auto}.seh-popover-help{margin:0 0 12px;color:#6c7872;font-size:13px;line-height:1.55}.seh-filter-field{display:grid;gap:6px;margin-bottom:12px}.seh-filter-field>label{font-size:13px;font-weight:700}.seh-filter-field input,.seh-filter-field select{width:100%;min-height:40px;border:1px solid #d9e0dc;border-radius:9px;padding:7px 9px}.seh-filter-range{display:grid;grid-template-columns:1fr 1fr;gap:8px}.seh-filter-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#c39a56;color:#173f32;font-size:11px;font-weight:800;margin-inline-start:5px}.seh-grid-filters.has-active-filters{border-color:#c39a56!important;background:#fff8e8!important}@media(max-width:820px){.seh-grid-toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.seh-grid-search{grid-column:1/-1!important}.seh-grid-tool{width:100%!important}.seh-grid-export{grid-column:1/-1!important}.seh-filter-range{grid-template-columns:1fr!important}}

.seh-th-inner{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:max-content}.seh-col-filter{width:28px;height:28px;display:inline-grid;place-items:center;border:0;background:transparent;color:#6b776f;border-radius:6px;cursor:pointer}.seh-col-filter:hover{background:#eef3f0}.seh-col-filter.is-filtered{background:#fff3cf;color:#8c641e;box-shadow:inset 0 0 0 1px #d8b76d}.seh-filter-sort{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.seh-filter-sort button{min-height:38px;border:1px solid #dce3df;background:#fff;border-radius:8px}.seh-filter-value-search input{width:100%;min-height:40px;border:1px solid #d9e0dc;border-radius:9px;padding:7px 9px}.seh-filter-select-all,.seh-filter-value{display:flex;align-items:center;gap:8px;min-height:34px;padding:5px 4px}.seh-filter-values{max-height:240px;overflow:auto;border-block:1px solid #edf0ee;padding:5px 0}.seh-filter-footer{display:flex;gap:8px;justify-content:flex-end;padding-top:10px}.seh-active-filter-list{display:grid;gap:7px;margin-bottom:10px}.seh-active-filter-list>div{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;padding:8px;border:1px solid #e1e6e3;border-radius:8px}

/* ===== Beta 23 Unified Product Design ===== */
:root{--seh-green:#123f33;--seh-green-deep:#0d3027;--seh-green-soft:#1a5142;--seh-gold:#d2ad62;--seh-ink:#1d2a25;--seh-muted:#6f7a75;--seh-line:#dde3df;--seh-card:#fff;--seh-shadow:0 14px 36px rgba(18,63,51,.10)}
#seh-finance-app,.seh-viewport-app,#seh-pos-viewport,#seh-pos-app{font-family:Inter,system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif!important}
#seh-finance-app[dir="rtl"],#seh-pos-app[dir="rtl"]{font-family:Tahoma,Arial,"Segoe UI",sans-serif!important}
.seh-viewport-app,#seh-pos-viewport{background:#f5f7f6!important}
.seh-fin-sidebar{background:linear-gradient(180deg,var(--seh-green),var(--seh-green-deep))!important;box-shadow:18px 0 48px rgba(0,0,0,.12)!important}.seh-fin-brand{min-height:92px!important;padding:18px!important}.seh-fin-brand-home{gap:13px!important}.seh-fin-brand-mark{width:50px!important;height:50px!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}.seh-fin-brand-mark img{width:50px;height:50px;object-fit:contain;display:block}.seh-fin-brand strong{font-size:20px!important}.seh-fin-brand small{font-size:12px!important;color:rgba(255,255,255,.68)!important;opacity:1!important}
.seh-fin-nav{padding:12px 10px!important}.seh-fin-nav button{min-height:46px!important;padding:10px 12px!important;margin:2px 0!important;border-radius:10px!important;font-size:13.5px!important}.seh-fin-nav-icon{width:21px!important;height:21px!important;color:var(--seh-gold)!important;flex:0 0 21px!important}.seh-fin-nav-icon svg{width:21px!important;height:21px!important;fill:currentColor!important}.seh-fin-nav button.is-active .seh-fin-nav-icon{color:var(--seh-green)!important}
.seh-fin-sidebar-footer{padding:10px 14px 16px!important}.seh-fin-return-operations{margin:0!important;border-radius:10px!important;border-color:rgba(255,255,255,.14)!important;color:rgba(255,255,255,.88)!important}
.seh-fin-topbar{min-height:76px!important;padding:12px 20px!important;background:rgba(255,255,255,.97)!important;border-bottom-color:var(--seh-line)!important}.seh-icon-btn,.seh-top-pos,.seh-lang-btn{border-radius:11px!important;min-width:42px!important;height:42px!important}.seh-fin-title-wrap h1{font-size:22px!important;font-weight:800!important}.seh-fin-content{padding:24px 24px 40px!important}
.seh-card,.seh-panel,.seh-grid-shell,.seh-table-wrap{border-radius:14px!important}.seh-card,.seh-panel{border-color:var(--seh-line)!important}.seh-action-grid button,.seh-btn,.seh-primary-btn,.seh-secondary-btn,.seh-grid-tool,.seh-grid-search{border-radius:9px!important}.seh-action-grid button,.seh-primary-btn,.seh-btn{background:var(--seh-green)!important;border-color:var(--seh-green)!important}.seh-secondary-btn,.seh-grid-tool{background:#fff!important;color:var(--seh-green)!important;border-color:var(--seh-line)!important}
.seh-table-wrap{border:1px solid var(--seh-line)!important;background:#fff!important}.seh-table-wrap th{background:#f4f7f5!important;color:#31423a!important;font-weight:750!important}.seh-grid-popover{border-radius:14px!important;box-shadow:0 20px 50px rgba(18,63,51,.18)!important}
@media(max-width:820px){.seh-fin-content{padding:18px!important}.seh-fin-sidebar{width:min(380px,91vw)!important}.seh-fin-topbar{padding-inline:18px!important}}

/* ===== Beta 24 Workspace + central grid interaction ===== */
#seh-finance-app .seh-fin-shell{position:relative!important}
#seh-finance-app .seh-fin-content{height:calc(100% - 120px)!important;padding-bottom:18px!important}
.seh-fin-workspace-tabs{height:44px;display:flex;align-items:stretch;gap:4px;border-top:1px solid var(--seh-line);background:#f1f3f2;padding:5px 8px;overflow:hidden}
.seh-workspace-tab-list{display:flex;gap:4px;min-width:0;overflow-x:auto;flex:1}
.seh-workspace-tab{min-width:150px;max-width:260px;height:34px;border:1px solid #d7ddda;border-radius:7px 7px 0 0;background:#e7ebe9;color:#435049;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;cursor:pointer;white-space:nowrap}
.seh-workspace-tab>span{overflow:hidden;text-overflow:ellipsis}.seh-workspace-tab>b{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;font-size:15px}.seh-workspace-tab>b:hover{background:#d8ddda}
.seh-workspace-tab.is-active{background:#fff;color:var(--seh-green);border-bottom-color:#fff;font-weight:700}
.seh-workspace-tab-add{width:38px;flex:0 0 38px;border:1px solid #d7ddda;border-radius:8px;background:#fff;color:var(--seh-green);font-size:21px;cursor:pointer}

.seh-table-wrap{overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable both-edges;cursor:grab}
.seh-table-wrap.is-dragging{cursor:grabbing;user-select:none}
.seh-table{width:max-content!important;min-width:100%!important;table-layout:auto!important}
.seh-table th,.seh-table td{min-width:112px;white-space:nowrap}
.seh-table th[data-col="id"],.seh-table td[data-col="id"]{min-width:72px}
.seh-table th[data-col="description"],.seh-table td[data-col="description"],.seh-table th[data-col="name"],.seh-table td[data-col="name"]{min-width:190px}

.seh-grid-statusbar{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--seh-line);border-top:0;border-radius:0 0 10px 10px;background:#f5f7f6;padding:4px 10px;color:#59655f;font-size:12px}
.seh-grid-zoom{display:flex;align-items:center;gap:7px}.seh-grid-zoom button{width:28px;height:28px;border:1px solid #d7ddda;border-radius:6px;background:#fff;color:var(--seh-green);font-size:18px;cursor:pointer}.seh-grid-zoom-range{width:120px;accent-color:var(--seh-green)}.seh-grid-zoom-value{min-width:42px;text-align:center;font-variant-numeric:tabular-nums}
.seh-col-filter,.seh-grid-tools button,.seh-grid-tools input{pointer-events:auto!important}
@media(max-width:820px){#seh-finance-app .seh-fin-content{height:calc(100% - 116px)!important}.seh-fin-workspace-tabs{height:40px;padding:4px 6px}.seh-workspace-tab{min-width:135px;height:32px;font-size:12px}.seh-grid-zoom-range{width:88px}}

/* ===== Beta 25 Capture Controller + explicit horizontal navigator ===== */
.seh-grid-statusbar{
  display:grid!important;
  grid-template-columns:auto minmax(220px,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  position:sticky!important;
  bottom:0!important;
  z-index:20!important;
}
.seh-grid-horizontal-nav{
  min-width:220px;
  display:grid;
  grid-template-columns:32px minmax(140px,1fr) 32px;
  align-items:center;
  gap:7px;
}
.seh-grid-horizontal-nav button{
  width:32px;height:28px;border:1px solid #d7ddda;border-radius:6px;
  background:#fff;color:var(--seh-green);font-size:20px;cursor:pointer;
}
.seh-grid-horizontal-range{width:100%;accent-color:var(--seh-green);cursor:pointer}
.seh-grid-horizontal-range:disabled{opacity:.38;cursor:not-allowed}
.seh-grid-no-horizontal-overflow .seh-grid-horizontal-nav{opacity:.58}

.seh-grid-toolbar,.seh-grid-statusbar,.seh-th-inner{position:relative;z-index:25!important}
.seh-grid-tool,.seh-col-filter,.seh-grid-statusbar button,.seh-grid-statusbar input{
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
.seh-grid-popover{z-index:999999!important}

.seh-table-wrap{
  overflow-x:scroll!important;
  overflow-y:auto!important;
  scrollbar-width:auto!important;
  padding-bottom:5px!important;
}
.seh-table-wrap::-webkit-scrollbar{height:14px!important;width:12px!important}
.seh-table-wrap::-webkit-scrollbar-track{background:#edf0ee!important;border-radius:8px!important}
.seh-table-wrap::-webkit-scrollbar-thumb{background:#97a29c!important;border-radius:8px!important;border:3px solid #edf0ee!important}
.seh-table-wrap::-webkit-scrollbar-thumb:hover{background:#6d7c75!important}

@media(max-width:820px){
  .seh-grid-statusbar{grid-template-columns:1fr!important;gap:8px!important}
  .seh-grid-horizontal-nav{width:100%;min-width:0}
  .seh-grid-zoom{justify-content:center}
}

/* ===== Beta 26 Excel-like resize + true bottom scrollbar ===== */
.seh-th-inner{position:relative!important}
.seh-col-resizer{
  position:absolute;
  top:0;
  bottom:0;
  inset-inline-end:-5px;
  width:10px;
  cursor:col-resize;
  z-index:40;
  touch-action:none;
}
.seh-col-resizer::after{
  content:"";
  position:absolute;
  top:20%;
  bottom:20%;
  inset-inline-start:4px;
  width:1px;
  background:transparent;
}
.seh-col-resizer:hover::after,
body.seh-resizing-column .seh-col-resizer::after{
  background:var(--seh-gold);
}
body.seh-resizing-column{
  cursor:col-resize!important;
  user-select:none!important;
}
.seh-width-probe{
  position:fixed;
  visibility:hidden;
  white-space:nowrap;
  font:inherit;
  pointer-events:none;
}

/* Real Excel-style horizontal scrollbar */
.seh-grid-horizontal-nav{
  display:grid!important;
  grid-template-columns:30px minmax(180px,1fr) 30px!important;
  gap:6px!important;
  align-items:center!important;
  min-width:280px!important;
}
.seh-grid-scroll-track{
  height:18px;
  position:relative;
  border:1px solid #cdd4d0;
  border-radius:9px;
  background:#e9ecea;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08);
  cursor:pointer;
  overflow:hidden;
}
.seh-grid-scroll-track.is-disabled{opacity:.55}
.seh-grid-scroll-thumb{
  position:absolute;
  top:2px;
  left:0;
  height:12px;
  min-width:44px;
  border-radius:7px;
  background:#7b8580;
  box-shadow:0 1px 2px rgba(0,0,0,.2);
  cursor:grab;
  touch-action:none;
  will-change:transform,width;
}
.seh-grid-scroll-thumb:hover{background:#626d67}
.seh-grid-scroll-thumb.is-dragging{cursor:grabbing;background:#4d5a53}
.seh-visually-hidden-range{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.seh-grid-statusbar{
  grid-template-columns:auto minmax(320px,1fr) auto!important;
}

/* Workspace tabs remain fully inside the Finance content area, never under sidebar */
.seh-fin-workspace-tabs{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:500!important;
  box-sizing:border-box!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.seh-workspace-tab-list{
  min-width:0!important;
  max-width:calc(100% - 46px)!important;
}
.seh-workspace-tab-add{
  position:relative!important;
  inset:auto!important;
  margin:0!important;
  flex:0 0 38px!important;
  z-index:3!important;
}
#seh-finance-app[dir="rtl"] .seh-workspace-tab-list{
  direction:rtl;
}
#seh-finance-app[dir="ltr"] .seh-workspace-tab-list{
  direction:ltr;
}

@media(max-width:820px){
  .seh-grid-statusbar{
    grid-template-columns:1fr!important;
  }
  .seh-grid-horizontal-nav{
    width:100%!important;
    min-width:0!important;
  }
}

/* ===== Beta 27 Navigation Standard: desktop / tablet / mobile ===== */
#seh-finance-app{--seh-fin-nav-expanded:264px;--seh-fin-nav-rail:68px}
@media(min-width:1200px){
  #seh-finance-app.seh-fin-nav-desktop{grid-template-columns:var(--seh-fin-nav-expanded) minmax(0,1fr)!important}
  #seh-finance-app.seh-fin-nav-desktop.is-collapsed{grid-template-columns:var(--seh-fin-nav-rail) minmax(0,1fr)!important}
  #seh-fin-menu-toggle{display:grid!important}
}
@media(min-width:821px) and (max-width:1199px){
  #seh-finance-app.seh-fin-nav-tablet{grid-template-columns:var(--seh-fin-nav-rail) minmax(0,1fr)!important}
  #seh-finance-app.seh-fin-nav-tablet.is-tablet-expanded{grid-template-columns:264px minmax(0,1fr)!important}
  #seh-finance-app.seh-fin-nav-tablet .seh-fin-sidebar{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    min-width:0!important;
    transition:width .18s ease!important;
  }
  #seh-finance-app.seh-fin-nav-tablet.is-collapsed .seh-fin-brand-copy,
  #seh-finance-app.seh-fin-nav-tablet.is-collapsed .seh-fin-nav-label,
  #seh-finance-app.seh-fin-nav-tablet.is-collapsed .seh-fin-sidebar-footer span{
    display:none!important;
  }
  #seh-fin-menu-toggle{display:grid!important}
  #seh-fin-drawer-overlay{display:none!important}
}
@media(max-width:820px){
  #seh-finance-app{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
  .seh-fin-bottom-nav{
    position:fixed;
    z-index:99995;
    inset-inline:0;
    bottom:0;
    min-height:64px;
    padding:4px 6px calc(4px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:2px;
    background:rgba(255,255,255,.98);
    border-top:1px solid var(--seh-line);
    box-shadow:0 -8px 24px rgba(18,63,51,.08);
  }
  .seh-fin-bottom-nav button{
    border:0;
    background:transparent;
    color:#718078;
    min-width:0;
    border-radius:10px;
    display:grid;
    place-items:center;
    gap:2px;
    padding:5px 2px;
    font-family:inherit;
  }
  .seh-fin-bottom-nav button span{font-size:19px;line-height:1}
  .seh-fin-bottom-nav button b{font-size:10px;font-weight:650;white-space:nowrap}
  .seh-fin-bottom-nav button.is-active{color:var(--seh-green);background:#edf4f0}
  .seh-fin-sidebar{
    width:min(88vw,340px)!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
  .seh-fin-topbar{
    padding-top:calc(10px + env(safe-area-inset-top))!important;
    min-height:calc(66px + env(safe-area-inset-top))!important;
  }
  .seh-fin-workspace-tabs{
    bottom:calc(64px + env(safe-area-inset-bottom))!important;
  }
  #seh-finance-app .seh-fin-content{
    padding-bottom:calc(58px + env(safe-area-inset-bottom))!important;
  }
}
@media(min-width:821px){
  .seh-fin-bottom-nav{display:none!important}
}

/* Workspace tab navigation remains scrollable and never clipped. */
.seh-fin-workspace-tabs{min-width:0!important}
.seh-workspace-tab-list{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin;
  scroll-behavior:smooth;
}
.seh-workspace-tab{flex:0 0 auto!important}

/* Strong visible focus across all navigation surfaces */
.seh-fin-nav button:focus-visible,.seh-fin-topbar button:focus-visible,
.seh-fin-bottom-nav button:focus-visible,.seh-workspace-tab:focus-visible,
.seh-workspace-tab-add:focus-visible,.seh-fin-return-operations:focus-visible{
  outline:2px solid var(--seh-gold)!important;
  outline-offset:2px!important;
}

/* ===== Beta 28 True Spreadsheet Zoom ===== */
.seh-grid-shell{--seh-grid-scale:1}
.seh-table{table-layout:fixed!important;width:max-content!important;min-width:100%!important}
.seh-table th,.seh-table td{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-size:calc(13px * var(--seh-grid-scale,1))!important;
  padding-block:calc(9px * var(--seh-grid-scale,1))!important;
  padding-inline:calc(10px * var(--seh-grid-scale,1))!important;
  line-height:1.35!important;
  box-sizing:border-box!important;
}
.seh-table th{height:calc(42px * var(--seh-grid-scale,1))!important}
.seh-table td{height:calc(40px * var(--seh-grid-scale,1))!important}
.seh-th-inner{min-width:0!important;width:100%!important;white-space:nowrap!important}
.seh-th-inner>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seh-col-filter{
  width:calc(28px * var(--seh-grid-scale,1))!important;
  height:calc(28px * var(--seh-grid-scale,1))!important;
  min-width:24px!important;
}
.seh-table-wrap{max-width:100%!important;overflow-x:scroll!important;overflow-y:auto!important}

/* ===== Beta 29 Clean Footer / Navigation Root Fix ===== */

/* One robust app shell: Header / Content / Workspace Tabs */
#seh-finance-app .seh-fin-shell{
  display:grid!important;
  grid-template-rows:76px minmax(0,1fr) 44px!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  position:relative!important;
}
#seh-finance-app .seh-fin-topbar{
  grid-row:1!important;
  min-height:0!important;
  height:76px!important;
}
#seh-finance-app .seh-fin-content{
  grid-row:2!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:auto!important;
  padding-bottom:24px!important;
}
#seh-finance-app .seh-fin-workspace-tabs{
  grid-row:3!important;
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:44px!important;
  z-index:60!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  display:flex!important;
  flex:0 0 44px!important;
}
#seh-finance-app .seh-workspace-tab-list{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
#seh-finance-app .seh-workspace-tab-add{
  flex:0 0 38px!important;
  width:38px!important;
  height:34px!important;
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  place-items:center!important;
}

/* Only one horizontal scrollbar: the native one that already works. */
.seh-grid-horizontal-nav,
.seh-grid-horizontal-range,
.seh-grid-scroll-track,
.seh-grid-scroll-thumb,
.seh-grid-scroll-start,
.seh-grid-scroll-end{
  display:none!important;
}
.seh-grid-statusbar{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  position:relative!important;
  bottom:auto!important;
  min-height:42px!important;
  z-index:10!important;
}
.seh-grid-zoom{
  margin-inline-start:auto!important;
}
.seh-table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:scroll!important;
  overflow-y:auto!important;
  scrollbar-gutter:stable!important;
  padding-bottom:0!important;
}
.seh-table-wrap::-webkit-scrollbar{
  height:15px!important;
  width:12px!important;
}
.seh-table-wrap::-webkit-scrollbar-track{
  background:#e8ecea!important;
  border-radius:8px!important;
}
.seh-table-wrap::-webkit-scrollbar-thumb{
  background:#8f9b95!important;
  border-radius:8px!important;
  border:3px solid #e8ecea!important;
}
.seh-table-wrap::-webkit-scrollbar-thumb:hover{
  background:#67746e!important;
}
.seh-grid-shell{
  margin-bottom:12px!important;
  overflow:visible!important;
}

/* Mobile: tabs remain above the fixed bottom navigation. */
@media(max-width:820px){
  #seh-finance-app .seh-fin-shell{
    grid-template-rows:auto minmax(0,1fr) 40px!important;
    height:calc(100% - 64px - env(safe-area-inset-bottom))!important;
  }
  #seh-finance-app .seh-fin-topbar{
    height:auto!important;
    min-height:calc(66px + env(safe-area-inset-top))!important;
  }
  #seh-finance-app .seh-fin-workspace-tabs{
    height:40px!important;
    flex-basis:40px!important;
    bottom:auto!important;
  }
  #seh-finance-app .seh-fin-content{
    padding-bottom:18px!important;
  }
  .seh-grid-statusbar{
    flex-wrap:wrap!important;
  }
  .seh-grid-zoom{
    width:100%!important;
    justify-content:center!important;
    margin-inline-start:0!important;
  }
}
@media(min-width:821px) and (max-width:1199px){
  #seh-finance-app .seh-fin-shell{
    grid-template-rows:76px minmax(0,1fr) 44px!important;
  }
}

/* ===== Beta 30 ROOT VIEWPORT FIX =====
   The Finance app is anchored by top+bottom, never by competing 100% heights.
   This prevents the workspace footer/tabs from extending below the viewport. */

/* Normal frontend / PWA */
html body #seh-finance-app.seh-viewport-app.seh-finance-workspace{
  position:fixed!important;
  inset-inline:0!important;
  top:0!important;
  bottom:0!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

/* Logged-in desktop WordPress admin bar = 32px */
html body.admin-bar #seh-finance-app.seh-viewport-app.seh-finance-workspace{
  top:32px!important;
  bottom:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}

/* WordPress switches the admin bar to 46px at <=782px */
@media(max-width:782px){
  html body.admin-bar #seh-finance-app.seh-viewport-app.seh-finance-workspace{
    top:46px!important;
    bottom:0!important;
    height:auto!important;
    min-height:0!important;
  }
}

/* Shell must consume exactly the corrected fixed viewport, no extra percentage minimum. */
html body #seh-finance-app.seh-finance-workspace .seh-fin-shell{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

/* Sidebar shares the same corrected app height. */
html body #seh-finance-app.seh-finance-workspace .seh-fin-sidebar{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

/* Only the middle content row scrolls vertically. Header/footer remain reachable. */
html body #seh-finance-app.seh-finance-workspace .seh-fin-content{
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
}

/* Workspace footer is guaranteed to stay inside the corrected viewport. */
html body #seh-finance-app.seh-finance-workspace .seh-fin-workspace-tabs{
  min-height:44px!important;
  max-height:44px!important;
  flex-shrink:0!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* Debug-proof: never allow legacy 100vh/100% rules to recreate the +32px overflow. */
html body.admin-bar #seh-finance-app.seh-viewport-app{
  height:auto!important;
}

/* POS receives the same viewport anchoring protection. */
html body #seh-pos-viewport.seh-viewport-app{
  position:fixed!important;
  inset-inline:0!important;
  top:0!important;
  bottom:0!important;
  height:auto!important;
  min-height:0!important;
}
html body.admin-bar #seh-pos-viewport.seh-viewport-app{
  top:32px!important;
  bottom:0!important;
  height:auto!important;
}
@media(max-width:782px){
  html body.admin-bar #seh-pos-viewport.seh-viewport-app{
    top:46px!important;
    bottom:0!important;
    height:auto!important;
  }
}

/* ===== Beta 31 Stateful Workspace Tabs ===== */
.seh-workspace-tab{
  position:relative!important;
}
.seh-workspace-tab.is-active{
  box-shadow:inset 0 -3px 0 var(--seh-gold)!important;
}
.seh-workspace-tab>span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* ===== Beta 32 Journal Drill-down ===== */
.seh-clickable-row{cursor:pointer!important}
.seh-clickable-row:hover{background:#f5f8f6!important}
.seh-clickable-row:focus-visible{outline:2px solid var(--seh-gold)!important;outline-offset:-2px!important}
.seh-journal-summary,.seh-journal-balance{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:16px 0;
}
.seh-journal-summary>div,.seh-journal-balance>div,.seh-journal-memo{
  border:1px solid var(--seh-line);
  border-radius:12px;
  background:#fff;
  padding:14px;
}
.seh-journal-summary span,.seh-journal-balance span,.seh-journal-memo span{
  display:block;
  color:#748079;
  font-size:12px;
  margin-bottom:5px;
}
.seh-journal-balance .is-balanced strong{color:var(--seh-green)}
.seh-journal-balance .is-unbalanced strong{color:#9b1c1c}
@media(max-width:820px){
  .seh-journal-summary,.seh-journal-balance{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .seh-journal-summary,.seh-journal-balance{grid-template-columns:1fr}
}

/* ===== Beta 34 Arabic RTL + Operations Return + Inventory Unification ===== */
#seh-finance-app .seh-fin-nav-return{
  display:flex;align-items:center;gap:11px;min-height:46px;padding:10px 13px;margin:4px 10px 8px;
  border:1px solid rgba(255,255,255,.18);border-radius:11px;color:#fff;text-decoration:none;font-weight:750
}
#seh-finance-app .seh-fin-nav-return:hover{background:rgba(255,255,255,.09)}
#seh-finance-app[dir="rtl"] .seh-fin-nav,
#seh-finance-app[dir="rtl"] .seh-fin-content,
#seh-finance-app[dir="rtl"] .seh-panel,
#seh-finance-app[dir="rtl"] table,
#seh-finance-app[dir="rtl"] th,
#seh-finance-app[dir="rtl"] td,
#seh-finance-app[dir="rtl"] label{text-align:right}
#seh-finance-app[dir="ltr"] .seh-fin-nav,
#seh-finance-app[dir="ltr"] .seh-fin-content,
#seh-finance-app[dir="ltr"] table,
#seh-finance-app[dir="ltr"] th,
#seh-finance-app[dir="ltr"] td,
#seh-finance-app[dir="ltr"] label{text-align:left}
@media(max-width:820px){
  #seh-finance-app[dir="rtl"] .seh-fin-topbar{direction:rtl}
  #seh-finance-app[dir="rtl"] .seh-fin-topbar-start{width:100%;display:flex;flex-direction:row;justify-content:flex-start}
  #seh-finance-app[dir="rtl"] #seh-fin-menu-toggle{order:-10;margin-left:0;margin-right:0}
  #seh-finance-app[dir="rtl"] .seh-fin-title-wrap{margin-left:auto}
  #seh-finance-app[dir="rtl"] .seh-fin-sidebar{right:0!important;left:auto!important;transform:translateX(105%)!important}
  #seh-finance-app[dir="rtl"].is-sidebar-open .seh-fin-sidebar{transform:translateX(0)!important}
  #seh-finance-app[dir="ltr"] .seh-fin-sidebar{left:0!important;right:auto!important}
}

/* ===== Beta35 product-wide mobile/RTL/finance audit ===== */
body.seh-fp-workspace-page #masthead,body.seh-fp-workspace-page #colophon,body.seh-fp-workspace-page .site-header,body.seh-fp-workspace-page .site-footer,body.seh-fp-workspace-page .site-branding,body.seh-fp-workspace-page .entry-header,body.seh-fp-workspace-page footer,body.seh-fp-workspace-page header.site-header{display:none!important}
body.seh-fp-workspace-page .content-area,body.seh-fp-workspace-page .site-main,body.seh-fp-workspace-page .entry-content,body.seh-fp-workspace-page article{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
#seh-finance-app[dir="rtl"] .seh-fin-nav,#seh-finance-app[dir="rtl"] .seh-panel,#seh-finance-app[dir="rtl"] .seh-grid-shell,#seh-finance-app[dir="rtl"] table{direction:rtl!important;text-align:right!important}
#seh-finance-app[dir="rtl"] .seh-fin-nav a,#seh-finance-app[dir="rtl"] .seh-fin-nav button{direction:rtl!important;text-align:right!important;justify-content:flex-start!important}
#seh-finance-app input[type="date"],#seh-finance-app input[type="time"],#seh-finance-app input[type="datetime-local"]{height:46px!important;min-height:46px!important;font-size:16px!important}
#seh-finance-app .seh-dark h1,#seh-finance-app .seh-dark h2,#seh-finance-app .seh-dark h3,#seh-finance-app .seh-fin-hero h1,#seh-finance-app .seh-fin-hero h2{color:#fff!important}
#seh-pos-viewport,#seh-pos-app{width:100%!important;max-width:none!important;margin:0!important}
@media(max-width:820px){#seh-finance-app .seh-panel{margin:14px 12px!important;padding:16px!important}#seh-finance-app .seh-grid-shell{max-width:100%;overflow:auto}}

/* ===== Beta37 Cross-platform consistency: Desktop + Mobile/PWA + WordPress ===== */
:root{--seh-fp-green:#143f33;--seh-fp-green-2:#1c5a48;--seh-fp-cream:#f7f1e7;--seh-fp-gold:#c49b54;--seh-fp-line:#dfd3c1;--seh-fp-text:#17352c}
#seh-finance-app input,#seh-finance-app select,#seh-finance-app textarea{box-sizing:border-box;max-width:100%}
#seh-finance-app .seh-info-note{background:#f7f1e7;border:1px solid #dfd3c1;border-radius:12px;padding:12px 14px;margin-bottom:14px;color:#17352c;line-height:1.7}
#seh-finance-app[dir="rtl"] .seh-settings-grid,#seh-finance-app[dir="rtl"] .seh-toolbar,#seh-finance-app[dir="rtl"] .seh-grid-toolbar{direction:rtl;text-align:right}
#seh-finance-app .seh-grid-shell{width:100%;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
#seh-finance-app .seh-grid-shell table{min-width:760px}
#seh-finance-app input[type="date"],#seh-finance-app input[type="time"],#seh-finance-app input[type="datetime-local"]{height:46px!important;min-height:46px!important;font-size:16px!important;line-height:1.2!important}
#seh-finance-app .seh-panel h1,#seh-finance-app .seh-panel h2,#seh-finance-app .seh-panel h3{color:#17352c}
#seh-finance-app .seh-dark h1,#seh-finance-app .seh-dark h2,#seh-finance-app .seh-dark h3,#seh-finance-app .seh-fin-hero h1,#seh-finance-app .seh-fin-hero h2,#seh-finance-app .seh-fin-hero h3{color:#fff!important}
.seh-finance-admin{max-width:1320px;color:#17352c}
.seh-finance-admin h1,.seh-finance-admin h2,.seh-finance-admin h3{color:#17352c}
.seh-finance-admin .seh-admin-module-grid{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:14px;margin-top:20px}
.seh-finance-admin .seh-admin-module{background:#fff;border:1px solid #dfe5e1;border-radius:14px;padding:16px;display:grid;grid-template-columns:44px 1fr 24px;gap:12px;align-items:center;text-decoration:none;color:#173f32;box-shadow:0 2px 7px rgba(0,0,0,.035)}
.seh-finance-admin .seh-admin-module:hover{border-color:#c7a461;box-shadow:0 8px 24px rgba(23,63,50,.08);color:#173f32}
.seh-finance-admin .seh-admin-module-icon{width:44px;height:44px;border-radius:12px;background:#f5eddd;color:#173f32;display:grid;place-items:center;font-size:21px;font-weight:800}
.seh-finance-admin .seh-admin-module-copy strong{display:block;font-size:16px;margin-bottom:4px}.seh-finance-admin .seh-admin-module-copy small{display:block;color:#68736e;font-size:12px;line-height:1.4}
.seh-finance-admin .seh-admin-module-arrow{font-size:22px;color:#c39a56}
.seh-finance-admin .seh-admin-table-wrap{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.seh-finance-admin .seh-admin-data-table{min-width:720px}
.seh-finance-admin .button-primary{background:#173f32;border-color:#173f32;border-radius:8px}
@media(max-width:1300px){.seh-finance-admin .seh-admin-module-grid{grid-template-columns:repeat(3,minmax(210px,1fr))}}
@media(max-width:950px){.seh-finance-admin .seh-admin-module-grid{grid-template-columns:repeat(2,minmax(210px,1fr))}}
@media(max-width:820px){
 #seh-finance-app .seh-form-grid,#seh-finance-app .seh-settings-grid{grid-template-columns:1fr!important}
 #seh-finance-app .seh-toolbar,#seh-finance-app .seh-grid-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
 #seh-finance-app .seh-toolbar>*,#seh-finance-app .seh-grid-toolbar>*{width:100%!important;max-width:100%!important}
 #seh-finance-app .seh-grid-shell table{min-width:680px}
}
@media(max-width:782px){.seh-finance-admin .seh-admin-module-grid{grid-template-columns:1fr}.seh-finance-admin .seh-admin-data-table{min-width:650px}}

/* ===== Beta40 Accounting Core Control Center ===== */
#seh-finance-app .seh-ac-shell{display:grid;gap:16px}
#seh-finance-app .seh-ac-section{overflow:hidden}
#seh-finance-app .seh-ac-form{margin-bottom:10px}
#seh-finance-app .seh-opening-grid input{width:100%;min-width:100px}
.seh-accounting-control-admin .seh-ac-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.seh-accounting-control-admin .seh-panel{background:#fff;border:1px solid #dfe5e1;border-radius:14px;padding:16px;margin:14px 0}
.seh-accounting-control-admin form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end;margin-bottom:14px}
.seh-accounting-control-admin form label{display:grid;gap:5px;font-weight:600}
.seh-accounting-control-admin .seh-ac-inline{display:grid;grid-template-columns:180px 140px 1fr;gap:10px}
@media(max-width:820px){
 #seh-finance-app .seh-ac-form{grid-template-columns:1fr!important}
 #seh-finance-app .seh-opening-grid{min-width:620px}
}
@media(max-width:782px){
 .seh-accounting-control-admin .seh-ac-admin-grid{grid-template-columns:1fr}
 .seh-accounting-control-admin form,.seh-accounting-control-admin .seh-ac-inline{grid-template-columns:1fr}
}

/* ===== Beta41 Location Master + Accounting Readiness ===== */
#seh-finance-app .seh-ac-readiness{border:1px solid #dfd3c1;border-radius:16px;padding:15px;background:#fffdf9}
#seh-finance-app .seh-ac-readiness>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
#seh-finance-app .seh-ac-readiness>div span{font-weight:800;font-size:18px}
#seh-finance-app .seh-ac-readiness ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0;padding:0;list-style:none}
#seh-finance-app .seh-ac-readiness li{padding:9px 10px;border-radius:10px;background:#f7f1e7}
#seh-finance-app .seh-ac-readiness li.ok{font-weight:700}
#seh-finance-app .seh-ac-readiness.is-ready{border-color:#9ab7a7}
@media(max-width:820px){#seh-finance-app .seh-ac-readiness ul{grid-template-columns:1fr}}

/* ===== Beta42 AP/AR Subledgers + Bank Reconciliation ===== */
#seh-finance-app .seh-subledger-shell,#seh-finance-app .seh-bank-recon-shell{display:grid;gap:16px}
#seh-finance-app .seh-allocation-table input{width:100%;min-width:110px}
#seh-finance-app [data-bank-match]{margin-inline-start:6px}
@media(max-width:820px){
 #seh-finance-app .seh-subledger-shell .seh-form-grid,#seh-finance-app .seh-bank-recon-shell .seh-form-grid{grid-template-columns:1fr!important}
 #seh-finance-app .seh-allocation-table{min-width:620px}
}

/* ===== Beta43 Fixed Assets + FX + Audit + Year-End ===== */
#seh-finance-app .seh-gov-shell{display:grid;gap:16px}
#seh-finance-app .seh-danger-note{background:#fff6ef;border:1px solid #e5c5ab;border-radius:12px;padding:12px 14px;margin-bottom:12px;line-height:1.7}
#seh-finance-app .seh-year-preview{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px;padding:12px;border:1px solid #dfd3c1;border-radius:12px;background:#fffdf9}
#seh-finance-app .seh-danger-btn{background:#7d3028;color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}
.seh-action-dialog-overlay{position:fixed;inset:0;z-index:100000;background:rgba(8,30,25,.48);display:grid;place-items:center;padding:20px}
.seh-action-dialog{width:min(520px,100%);background:#fff;border:1px solid #d8d2c5;border-radius:16px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.22);direction:rtl;text-align:right}
.seh-action-dialog h3{margin:0 0 10px;color:#103e34}.seh-action-dialog p{margin:0 0 16px;color:#52635e}.seh-action-dialog label{display:grid;gap:8px;font-weight:700}.seh-action-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #b8c3bf;border-radius:10px;padding:12px;font:inherit;resize:vertical}.seh-action-dialog textarea:focus{outline:2px solid #b68b3a;outline-offset:1px}.seh-action-dialog-error{min-height:24px;color:#8a2f28;font-size:13px;padding-top:5px}.seh-action-dialog-buttons{display:flex;gap:10px;justify-content:flex-start;margin-top:10px}.seh-action-dialog-buttons button:disabled{opacity:.45;cursor:not-allowed}
.seh-partial-refund-panel{margin-top:18px;border:1px solid #d8d2c5;border-radius:14px;padding:16px;background:#fbfaf6}.seh-partial-refund-row{display:grid;grid-template-columns:auto minmax(160px,1fr) auto 120px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e6e1d7}.seh-partial-refund-row:last-of-type{border-bottom:0}.seh-partial-refund-row input[type=number]{width:100%;box-sizing:border-box;padding:8px;border:1px solid #b8c3bf;border-radius:8px}@media(max-width:700px){.seh-partial-refund-row{grid-template-columns:auto 1fr}.seh-partial-refund-row input[type=number]{grid-column:2}}
.seh-refund-actions{display:flex!important;gap:14px!important;flex-wrap:wrap;align-items:center}.seh-partial-refund-panel>label:not(.seh-partial-refund-row),.seh-refund-reason-label{display:grid;gap:8px;font-weight:700;margin:12px 0}.seh-partial-refund-panel textarea{width:100%;box-sizing:border-box;border:1px solid #b8c3bf;border-radius:10px;padding:12px;font:inherit;resize:vertical}
.seh-sales-guide{margin:0 0 16px;border:1px solid #d8d2c5;border-radius:14px;background:#fffdf9}.seh-sales-guide summary{cursor:pointer;padding:14px 16px;font-weight:800;color:#173f35}.seh-sales-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 16px 16px}.seh-sales-guide-grid section{border:1px solid #e4ded2;border-radius:12px;padding:12px;background:#fff}.seh-sales-guide-grid h3{margin:0 0 8px}.seh-sales-guide-grid ol,.seh-sales-guide-grid ul{margin:0;padding-inline-start:22px;line-height:1.8}.seh-sales-guide-grid p{margin:8px 0 0;color:#58665f}@media(max-width:850px){.seh-sales-guide-grid{grid-template-columns:1fr}}
.seh-operation-success{margin:0 0 16px;padding:14px 16px;border:1px solid #79a98c;border-radius:12px;background:#eaf5ee;color:#174b32;font-weight:800;line-height:1.6}
@media(max-width:820px){#seh-finance-app .seh-gov-shell .seh-form-grid{grid-template-columns:1fr!important}#seh-finance-app .seh-year-preview{display:grid}}

/* ===== Beta44 Planning + Final Readiness ===== */
#seh-finance-app .seh-planning-shell{display:grid;gap:16px}
@media(max-width:820px){#seh-finance-app .seh-planning-shell .seh-form-grid{grid-template-columns:1fr!important}}

/* ===== Beta45 Final Readiness + Planning Cross-platform ===== */
#seh-finance-app .seh-activation-state{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px;padding-top:12px;border-top:1px solid #dfd3c1}
#seh-finance-app .seh-activation-state span{padding:6px 9px;border-radius:8px;background:#fff}
#seh-finance-app .seh-recurring-lines select,#seh-finance-app .seh-recurring-lines input{width:100%;min-width:110px}
.seh-planning-admin .seh-panel{background:#fff;border:1px solid #ded6c7;border-radius:14px;padding:16px;margin:14px 0}
.seh-planning-admin .seh-readiness-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.seh-planning-admin .seh-readiness-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.seh-planning-admin .seh-readiness-list>div{padding:9px 10px;border-radius:9px;background:#f7f1e7}
@media(max-width:820px){#seh-finance-app .seh-activation-state{display:grid}#seh-finance-app .seh-recurring-lines{min-width:620px}}
@media(max-width:782px){.seh-planning-admin .seh-readiness-list{grid-template-columns:1fr}}

/* Beta 48 POS media manager */
.seh-pos-media-manager{margin:14px 0;padding:14px;border:1px solid #e4ddd1;border-radius:14px;background:#fbf8f1}.seh-pos-media-manager #mp-media-status{margin-inline-start:10px;font-weight:700;color:#183c31}.seh-pos-media-manager input[type=file]{padding:8px;background:#fff;border:1px solid #ddd6ca;border-radius:9px}

/* Beta 77 — General Ledger -> Journal drill-down */
/* Beta.78 canonical accounting drill-down links: blue = opens accounting detail. */
.seh-drilldown-link{appearance:none;border:0;background:transparent;padding:0;color:#1769aa;font:inherit;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;line-height:1.35}
.seh-drilldown-link:hover{color:#0f4f86;text-decoration-thickness:2px}
.seh-drilldown-link:focus-visible{color:#0f4f86;outline:2px solid currentColor;outline-offset:3px;border-radius:3px;text-decoration-thickness:2px}
.seh-drilldown-link:active{color:#0b3d68}
.seh-journal-entry-link,.seh-ledger-entry-link{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.seh-account-ledger-link{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
@media (pointer:coarse){.seh-drilldown-link{min-height:32px;display:inline-flex;align-items:center}}

/* Beta.79 — General Ledger accounting summary */
.seh-gl-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:12px 0 14px}
.seh-gl-summary>div{border:1px solid var(--seh-border,#d9e0dc);border-radius:10px;padding:10px 12px;background:var(--seh-surface,#fff);display:flex;flex-direction:column;gap:4px}
.seh-gl-summary span{font-size:12px;opacity:.72}.seh-gl-summary strong{font-size:16px;font-variant-numeric:tabular-nums}
@media(max-width:760px){.seh-gl-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Beta.101 grouped finance information architecture */
.seh-fin-nav-group{margin:5px 0;border:0}
.seh-fin-nav-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;color:rgba(255,255,255,.72);font-size:11.5px;font-weight:800;letter-spacing:.02em;text-transform:none;border-radius:9px}
.seh-fin-nav-group>summary::-webkit-details-marker{display:none}
.seh-fin-nav-group>summary:hover{background:rgba(255,255,255,.06);color:#fff}
.seh-fin-nav-group[open]>summary{color:var(--seh-gold)}
.seh-fin-nav-chevron{transition:transform .18s ease}.seh-fin-nav-group[open] .seh-fin-nav-chevron{transform:rotate(180deg)}
.seh-fin-nav-group-items{padding:0 2px 4px}
#seh-finance-app.is-collapsed .seh-fin-nav-group>summary{display:none}
#seh-finance-app.is-collapsed .seh-fin-nav-group:not([open]) .seh-fin-nav-group-items{display:block}
@media(max-width:820px){.seh-fin-nav-group>summary{font-size:13px;padding:11px 12px}}
/* Beta.101 journal source drill-down */
.seh-journal-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.seh-journal-source-panel{margin:16px 0;padding:14px;border:1px solid rgba(23,63,50,.14);border-radius:12px;background:rgba(250,247,239,.65);display:grid;gap:6px}
.seh-journal-source-panel>span{font-size:12px;opacity:.72}.seh-journal-source-panel>strong{font-size:15px}
.seh-source-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:8px}
.seh-source-detail>div{padding:8px 10px;border-radius:9px;background:#fff;display:grid;gap:2px}.seh-source-detail small{opacity:.65}.seh-source-detail b{font-weight:700;overflow-wrap:anywhere}

#seh-finance-app .seh-onboarding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#seh-finance-app .seh-onboarding-card{display:grid;grid-template-columns:42px 1fr;gap:12px;border:1px solid #dfd3c1;border-radius:14px;padding:14px;background:#fffdf9}
#seh-finance-app .seh-onboarding-card.is-ready{border-color:#9ab7a7}
#seh-finance-app .seh-onboarding-num{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;background:#f1eadf}
#seh-finance-app .seh-onboarding-card.is-ready .seh-onboarding-num{background:#e7f0ea}
#seh-finance-app .seh-onboarding-card h3{margin:0 0 6px}.seh-onboarding-card p{margin:0 0 10px;line-height:1.55}
@media(max-width:820px){#seh-finance-app .seh-onboarding-grid{grid-template-columns:1fr}}


/* Beta.124: page-level report currency display switch and inline column totals */
.seh-fin-currency-display-switch{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #d7ded9;border-radius:12px;background:#fff;font-size:12px;color:#58655f;white-space:nowrap}
.seh-fin-currency-display-switch select{border:0;background:transparent;font:inherit;font-weight:700;color:#173f33;outline:none;min-width:92px}
.seh-grid-inline-summary td{font-weight:700;background:#fff;border-top:0}
.seh-grid-summary-spacer td{height:18px;padding:0;background:#fff;border-top:0;border-bottom:0}
.seh-grid-summary-row td{border-top:2px solid #d6ded9;background:#f8faf9;font-size:1.02em}
.seh-grid-summary-row td:empty{background:#fff;border-top-color:transparent}
.seh-export-summary-spacer td{height:12px;background:#fff;border-top:0!important;border-bottom:0!important}
@media(max-width:820px){.seh-fin-currency-display-switch span{display:none}.seh-fin-currency-display-switch{padding:4px 6px}.seh-fin-currency-display-switch select{min-width:86px}}
.seh-voucher-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;margin-bottom:18px;border-radius:18px;background:linear-gradient(135deg,#173f35,#285b4c);color:#fff}.seh-voucher-hero h2{margin:0 0 6px;color:#fff}.seh-voucher-hero p{margin:0;opacity:.86}.seh-voucher-type-switch{display:flex;gap:8px;flex-wrap:wrap}.seh-voucher-type-switch button{border:1px solid rgba(255,255,255,.4);background:transparent;color:#fff;border-radius:12px;padding:11px 16px;cursor:pointer}.seh-voucher-type-switch button.is-active{background:#d8b56a;border-color:#d8b56a;color:#173f35;font-weight:700}.seh-voucher-form-panel .seh-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.seh-voucher-form-panel label{display:flex;flex-direction:column;gap:7px}.seh-voucher-form-panel input,.seh-voucher-form-panel select{min-height:44px}.seh-voucher-wide{grid-column:span 2}.seh-voucher-form-panel small{min-height:18px;color:#52645e}.seh-voucher-form-panel .seh-info-note{margin-top:16px;font-weight:600}
@media(max-width:900px){.seh-voucher-hero{align-items:stretch;flex-direction:column}.seh-voucher-form-panel .seh-form-grid{grid-template-columns:1fr 1fr}.seh-voucher-wide{grid-column:1/-1}}
@media(max-width:600px){.seh-voucher-form-panel .seh-form-grid{grid-template-columns:1fr}.seh-voucher-wide{grid-column:auto}.seh-voucher-type-switch button{flex:1}.seh-voucher-form-panel .seh-action-row{display:grid;grid-template-columns:1fr}.seh-voucher-form-panel .seh-action-row button{width:100%}}

/* NR dimensional interface. Existing semantics and icon shapes are preserved. */
:is(#cafe-ops-app,#seh-finance-app,#seh-pos-app,.seh-finance-admin){--nr-depth-green:#073d30;--nr-depth-gold:#c69b4d;--nr-depth-surface:#fbfaf6}
:is(#cafe-ops-app,#seh-finance-app) :is(.seh-drawer,.seh-drawer-nav,.seh-fin-sidebar){background:linear-gradient(155deg,#114b3d,#032c24)!important;color:#fff}
:is(#cafe-ops-app,#seh-finance-app) :is(.seh-nav-group-toggle,.seh-fin-nav button){border-radius:12px!important;box-shadow:inset 0 1px 0 #ffffff0c;min-height:48px}
:is(#cafe-ops-app,#seh-finance-app) :is(.seh-nav-group-toggle,.seh-fin-nav button):hover{background:linear-gradient(145deg,#275e4d,#0a3c2f)!important;box-shadow:inset 0 1px 0 #ffffff35,0 3px 8px #001e1a40}
:is(#cafe-ops-app,#seh-finance-app) :is(.seh-nav-group-body .is-active,.seh-fin-nav button.is-active){color:#fff!important;background:linear-gradient(145deg,#2c6753,#0b4233)!important;border:1px solid #cfad65!important;box-shadow:inset 0 1px 1px #ffffff40,0 4px 0 #032d23,0 7px 12px #001e1a35}
:is(#cafe-ops-app,#seh-finance-app) :is(.seh-nav-group-toggle,.seh-nav-group-body>button,.seh-nav-group-body>a)::before{background:linear-gradient(140deg,#fff6d0 0%,#dec182 30%,#a2752d 65%,#f3dfaa 90%)!important;filter:drop-shadow(0 1px 0 #8b6829) drop-shadow(0 2px 0 #71551f) drop-shadow(0 4px 2px #001b1860);width:25px;height:25px;flex-basis:25px}
:is(#cafe-ops-app,#seh-finance-app) .seh-fin-nav-icon{color:#e3c887!important;filter:drop-shadow(0 1px 0 #8b6829) drop-shadow(0 2px 0 #71551f) drop-shadow(0 4px 2px #001b1850)}
:is(#cafe-ops-app,#seh-finance-app,#seh-pos-app,.seh-finance-admin) :is(.seh-btn-primary,.seh-primary-btn,.button-primary,#seh-pos-save,#seh-pos-pay){background:linear-gradient(145deg,#2d7158,#064333)!important;color:#fff!important;border:1px solid #316a54!important;border-radius:11px!important;box-shadow:inset 0 1px 1px #b1dbbd65,0 3px 0 #043124,0 6px 12px #0b3e3225!important}
:is(#cafe-ops-app,#seh-finance-app,#seh-pos-app,.seh-finance-admin) :is(.seh-btn-primary,.seh-primary-btn,.button-primary,#seh-pos-save,#seh-pos-pay):active{transform:translateY(2px);box-shadow:inset 0 1px 2px #001d1845,0 1px 0 #043124!important}
:is(#cafe-ops-app,#seh-finance-app,#seh-pos-app) :is(.seh-panel,.seh-card,.seh-fin-card,.seh-pos-cart){border:1px solid #e0e4dc;border-radius:16px;box-shadow:0 7px 22px #1c43310a;background:#fffefb}
:is(#cafe-ops-app,#seh-finance-app,#seh-pos-app) :is(button,a,input,select):focus-visible{outline:3px solid #b88a35!important;outline-offset:3px}
@media(prefers-reduced-motion:reduce){:is(#cafe-ops-app,#seh-finance-app,#seh-pos-app) *{transition:none!important;animation:none!important}}
@media print{.seh-floor-tools,.seh-floor-panel{display:none!important}}
