/* HA-stijl-shell — alleen layout/componenten voor Home/Overzicht/
   Integreren/Instellingen. De VaultPatrol-huisstijl blijft in style.css (ongewijzigd);
   dit bestand laadt erna en overschrijft waar nodig. */
/* RJ 29-09: shell/header-layout zit in style.css — geen sidebar-overschrijving meer. */
#side { padding: 10px 16px }
.nav-sect { margin: 22px 12px 6px; font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--mut) }
.side-foot { margin-top: 0; gap: 10px }
#sideUser { margin: 0; font-size: 12.5px; word-break: break-all; padding: 0 4px }
#botnav { display: none }

/* paginakop: titel + subheader */
.pagehead { margin-bottom: 20px }
.pagehead h1 { margin: 0 0 2px }
.pagehead .sub { margin: 0 }

/* entiteitkaarten (Home) */
.entgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) }
.entcard { display: flex; flex-direction: column; gap: 6px }
.entcard .state { font-weight: 700 }
.entcard .addr { font-size: 12.5px }
.entcard a { color: var(--accent); text-decoration: none; font-size: 13px }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px }
.dot.st-OK { background: var(--ok) } .dot.st-PARTIAL { background: var(--med) }
.dot.st-FAILED { background: var(--crit) } .dot.st-NOOIT, .dot.st-ARCHIVED { background: var(--mut) }
.pill-demo { background: color-mix(in srgb, var(--mut) 22%, transparent); color: var(--mut) }


/* overzicht-rijen */
.ovgroup { margin-bottom: 26px }
.rowline { display: flex; align-items: center; gap: 10px; padding: 9px 2px;
  border-bottom: 1px solid var(--line); font-size: 14px }
.rowline:last-child { border-bottom: 0 }
.rowline .grow { flex: 1; min-width: 0 }
.rowline .meta { color: var(--mut); font-size: 12.5px; white-space: nowrap }

/* instellingen */
.setsec { margin-bottom: 26px }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line) }
.setrow:last-of-type { border-bottom: 0 }
.setrow label, .setrow .lbl { color: var(--mut); font-size: 13.5px }
.setrow input, .setrow select { min-width: 0; max-width: 60% }

/* integratiekaarten */
.intgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) }
.intcard { display: flex; flex-direction: column; gap: 8px }
.intcard > :last-child { margin-top: auto; }   /* actie (knop/invulrij) altijd op gelijke onderkant */
.intcard h3 { margin: 0; font-size: 15.5px }
.st-connected { color: var(--ok) } .st-available { color: var(--accent) }
.st-coming_soon { color: var(--mut) }

/* RJ 03-11 (Hermes): mobiel geen landingpage/inlog direct — alleen tandwiel rechtsboven.
   Desktop gedraagt zich ongewijzigd (landing via showAuth, accountmenu via avatar). */
#gearIconBtn { display: none }
@media (max-width: 820px) {
  #gearIconBtn { display: grid }        /* zelfde ronde avatar-stijl als desktop-tandwiel */
  #avatarBtn { display: none }          /* tandwiel vervangt avatar als account-menu opener */
  .auth-card { display: none }          /* RJ 03-11: mobiel landingspagina zónder inlogscherm */
  #auth.show-login .auth-card { display: block }   /* tandwielklik toont het inlogvak */
  /* RJ 03-11: header-menu als vast bottommenu — op élke pagina identiek (7 gelijke kolommen, geen scroll) */
  #nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; gap: 0;
    overflow: hidden; background: var(--bg2); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) }
  #nav a { flex: 1 1 0; min-width: 0; text-align: center; font-size: 0; color: var(--mut);
    text-decoration: none; padding: 8px 2px; border-radius: 10px; white-space: normal }  /* RJ 03-11: geen nowrap */
  #nav a::after { content: attr(data-short); font-size: 10.5px }  /* korte labels: passen altijd */
  #nav a.on { color: var(--txt); background: var(--card); font-weight: 600 }
  #botnav { display: none !important }  /* dubbel bottommenu voorkomen */
  #auth { padding-bottom: 96px }        /* landing-footer niet onder het fixed menu */
  /* RJ 03-11 (Hermes): compacte mobiel-layout — hoofdinhoud binnen de vouw, scrollen minimaal */
  #main { padding: 10px 10px 72px }
  .pagehead { margin-bottom: 6px } .pagehead h1 { font-size: 16.5px; margin: 0 }
  .card { padding: 10px 12px; border-radius: 10px }
  .grid { gap: 8px }
  .kpi b { font-size: 18px } .kpi span.t { font-size: 10.5px }
  .kpi > .lbl + b, .kpi > .lbl + span.mut { height: 18px; line-height: 18px }
  table { font-size: 11.5px }
  td, th { padding: 5px 6px }
  #shell .wg-footer { display: none }  /* footer rolt mee onderin; op mobiel niet nodig */
  /* RJ 03-11 (Hermes): tabellen mobiel — compacte vaste-kolombreedtes, geen scroll */
  #view table, .approvals-table-container table { table-layout: fixed; width: 100%; min-width: 0 }
  #view table th, .approvals-table-container th { display: none } /* kolommen verbergen */
  #view table td, .approvals-table-container td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .approvals-table-container { overflow-x: hidden } /* geen horizontale scroll */
  #main { max-width: 100% }   /* padding: zie compacte regels hierboven (RJ 03-11) */
  #botnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
    background: var(--bg2); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) }
  #botnav a, #botnav button { flex: 1; display: block; text-align: center; background: none;
    border: 0; font: inherit; font-size: 12px; color: var(--mut); text-decoration: none;
    padding: 8px 2px; border-radius: 10px }
  #botnav a.on { color: var(--txt); background: var(--card); font-weight: 600 }
  .entgrid { grid-template-columns: 1fr 1fr }
  .rowline { flex-wrap: wrap } .rowline .meta { width: 100%; text-align: right }
}

/* ── RJ 17-11: "4 Layers Security" — isometrische stack + depth-bands ── */
.sec4-h { font-size: 1.7em; text-align: center; margin: 0; color: var(--txt) }
.sec4-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); gap: 32px; margin-top: 28px; align-items: center }
.sec4-fig { display: flex; justify-content: center }
@media (max-width:820px) { .sec4-grid { grid-template-columns: 1fr } } /* zelfde mobiel-drempel als home.css */
.sec4-bands { display: flex; flex-direction: column; gap: 12px }
.sec4-band { display: flex; align-items: center; gap: 14px; border-radius: 12px; padding: 13px 16px;
  border: 1px solid var(--line); position: relative; overflow: hidden; transition: box-shadow .16s ease }
.sec4-band .sec4-num { font-weight: 800; font-size: 1.3em; width: 44px; flex: none; text-align: center }
.sec4-band .sec4-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #e0f2f7; color: var(--btn);
  display: flex; align-items: center; justify-content: center }
.sec4-band .sec4-ic-vp { background: #dff7ff }
.sec4-band h3 { font-size: 1em; margin: 0; color: var(--txt) }
.sec4-band p { font-size: .85em; margin: 2px 0 0 }
.sec4-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px }
.sec4-band[data-layer="1"] { background: linear-gradient(90deg,rgba(12,74,110,.28),transparent 60%) }
.sec4-band[data-layer="1"]::before { background: #0c4a6e } .sec4-band[data-layer="1"] .sec4-num { color: #0c4a6e }
.sec4-band[data-layer="2"] { background: linear-gradient(90deg,rgba(2,132,199,.24),transparent 60%) }
.sec4-band[data-layer="2"]::before { background: #0284c7 } .sec4-band[data-layer="2"] .sec4-num { color: #0284c7 }
.sec4-band[data-layer="3"] { background: linear-gradient(90deg,rgba(14,165,233,.22),transparent 60%) }
.sec4-band[data-layer="3"]::before { background: #0ea5e9 } .sec4-band[data-layer="3"] .sec4-num { color: #0ea5e9 }
.sec4-band[data-layer="4"] { background: linear-gradient(90deg,rgba(56,189,248,.24),transparent 60%) }
.sec4-band[data-layer="4"]::before { background: #38bdf8 } .sec4-band[data-layer="4"] .sec4-num { color: #0284c7 }
.sec4-band.hot { box-shadow: 0 0 0 2px var(--accent) inset, 0 2px 10px rgba(56,189,248,.25) }
.sec4-slab { transition: filter .16s ease }
.sec4-slab.on { filter: drop-shadow(0 0 9px rgba(56,189,248,.75)) brightness(1.18) }
.sec4-badge circle { fill: #f2faff; stroke: rgba(6,39,56,.35); stroke-width: 1 }
.sec4-badge text { text-anchor: middle; font-size: 13px; font-weight: 800; fill: #0c4a6e; font-family: inherit }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .sec4-band .sec4-ic { background: #0e2a3a }
  html[data-theme="system"] .sec4-band[data-layer="1"] .sec4-num { color: #67a9cf }
  html[data-theme="system"] .sec4-band[data-layer="2"] .sec4-num { color: #4cc2f0 } }
html[data-theme="dark"] .sec4-band .sec4-ic { background: #0e2a3a }
html[data-theme="dark"] .sec4-band[data-layer="1"] .sec4-num { color: #67a9cf }
html[data-theme="dark"] .sec4-band[data-layer="2"] .sec4-num { color: #4cc2f0 }
