/* HYDROTECH V30 FULL DEMO additions */
.nav-section{font-weight:400;letter-spacing:.12em;font-size:10px;margin-top:14px}
.nav-section:nth-of-type(1),.nav-section:nth-of-type(2){color:#085291}.nav-section:nth-of-type(3),.nav-section:nth-of-type(4){color:#68737A}.nav-section:nth-of-type(5){color:#a63232}.nav-section:nth-of-type(6),.nav-section:nth-of-type(7){color:#263238}.nav-section:nth-of-type(8){color:#085291}.nav-section:nth-of-type(9){color:#68737A}
.sidebar{overflow-y:auto;scrollbar-width:thin}.sidebar-brand{position:sticky;top:0;background:inherit;z-index:2}.sidebar-foot{position:relative}
.notice-bar{display:flex;align-items:center;gap:12px;border:1px solid #d6e3ef;background:#f8fbfe;border-radius:14px;padding:14px 16px;margin-bottom:12px}.notice-bar>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#e8f3fb;color:#085291}.notice-bar>span svg{width:20px;height:20px}.notice-bar>div{flex:1}.notice-bar strong{display:block;font-size:14px;color:#173966}.notice-bar small{color:#72849a}.notice-bar.warning{background:#fffaf3;border-color:#f1dec0}.notice-bar.warning>span{background:#fff0d7;color:#a66a16}
.integration-hero{display:flex;align-items:center;justify-content:space-between;border:1px solid #d7e3ef;border-radius:18px;padding:22px;background:linear-gradient(115deg,#f7fbff 0%,#eef6fc 60%,#f9fcfe 100%)}.integration-hero h2{font-size:20px;margin:4px 0 6px;color:#173966}.integration-hero p{max-width:780px;color:#6c8096}.integration-status{min-width:190px;border-left:1px solid #d6e3ef;padding-left:22px}.integration-status i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#25b878;margin-right:7px}.integration-status strong{display:inline}.integration-status small{display:block;margin-top:6px;color:#72849a}
.big-money{display:block;font-size:24px;color:#173966;margin:10px 0}.mapping-card,.migration-source{border:1px solid #d7e3ef;background:#fff;border-radius:16px;padding:18px}.mapping-card h3,.migration-source h2{margin:5px 0 12px;color:#173966}.mapping-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:14px 0}.mapping-grid>div{border:1px solid #e3eaf1;background:#f9fbfd;border-radius:10px;padding:10px}.mapping-grid small{display:block;color:#79899d;font-size:10px}.mapping-grid strong{display:block;margin-top:4px;font:600 13px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;color:#173966}.migration-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:12px}.source-logo{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#085291;color:#fff;font-size:23px;font-weight:400}.source-logo.edm{background:#68737A}.migration-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.migration-stats>div{background:#f7fafc;border:1px solid #e1e8ef;border-radius:10px;padding:10px}.migration-stats small{display:block;color:#8190a2;font-size:10px}.migration-stats strong{display:block;font-size:17px;margin-top:3px;color:#173966}.danger{color:#c44b4b!important}.warning-text{color:#c18220!important}.ledger-filter{display:grid;grid-template-columns:2fr 1fr auto;gap:10px;align-items:end;border:1px solid #d7e3ef;border-radius:14px;background:#fff;padding:14px;margin-bottom:12px}.finance-statements{grid-template-columns:repeat(3,1fr)}.statement-list>div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f5}.statement-list>div:last-child{border:0}.statement-list span{color:#667b91}.statement-list strong{color:#173966}.progress{height:7px;background:#e9f0f5;border-radius:999px;overflow:hidden}.progress>span{height:100%;display:block;background:linear-gradient(90deg,#085291,#18b8d2);border-radius:999px}
@media(max-width:1180px){.finance-statements{grid-template-columns:1fr}.migration-grid{grid-template-columns:1fr}.mapping-grid{grid-template-columns:1fr}.integration-hero{align-items:flex-start}.integration-status{min-width:160px}}
@media(max-width:760px){.sidebar{width:min(86vw,320px)}.migration-stats{grid-template-columns:repeat(2,1fr)}.ledger-filter{grid-template-columns:1fr}.integration-hero{display:block}.integration-status{border:0;border-top:1px solid #d6e3ef;padding:14px 0 0;margin-top:14px}.mapping-card{padding:14px}.grid[style*="repeat(4"]{grid-template-columns:1fr 1fr!important}.grid[style*="repeat(3"]{grid-template-columns:1fr!important}}

/* =============================================================
   HYDROTECH V30.1 — APP SHELL DESKTOP GRID HARD FIX
   Overrides legacy V8.4 html.app-active #appShell{display:block!important}
   which was stacking the sidebar above the content.
   ============================================================= */
@media (min-width:761px){
  html.app-active #appShell.app-shell{
    display:grid!important;
    grid-template-columns:var(--sidebar) minmax(0,1fr)!important;
    align-items:start!important;
    width:100%!important;
    min-height:100dvh!important;
    height:auto!important;
    overflow:visible!important;
  }
  html.app-active #appShell>.sidebar{
    position:sticky!important;
    top:0!important;
    width:var(--sidebar)!important;
    min-width:var(--sidebar)!important;
    max-width:var(--sidebar)!important;
    height:100dvh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    align-self:start!important;
  }
  html.app-active #appShell>.sidebar .nav{
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  html.app-active #appShell>.main-shell{
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    min-height:100dvh!important;
    overflow:visible!important;
  }
  html.app-active #appShell>.main-shell>.topbar{
    width:100%!important;
    position:sticky!important;
    top:0!important;
    z-index:30!important;
  }
  html.app-active #appShell>.main-shell>.content{
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
}

/* Mobile remains drawer based; never inherit the desktop grid width. */
@media (max-width:760px){
  html.app-active #appShell.app-shell{
    display:block!important;
    width:100%!important;
    min-height:100dvh!important;
  }
  html.app-active #appShell>.main-shell{
    width:100%!important;
    min-width:0!important;
  }
}
