/* Staff portal look (17 Nov 2026), after the staff intranet: a dark green top bar, a white side card, a green greeting banner,
   a light page that fits the window, and tables with a heading row and a search box above them.
   Loaded last on the website dashboards (index.html) and on the staff pages (inc/portal-shell.php). */
:root{--pt-green:var(--brand-deep,#235934);--pt-green2:var(--brand-primary,#307C48);--pt-green3:#0A7A4E;--pt-page:#F0F5F2;--pt-line:#DDE7E1;--pt-ink:#1A1A1A;--pt-muted:#5b6b62;--pt-tint:#EAF6EF;--pt-gold:#DF9137}

/* ---------- the page: fits the window, no sideways scrolling ---------- */
html.idm-dash{background:var(--pt-page)}
html.idm-dash body{background:var(--pt-page);overflow-x:hidden}

/* ---------- top bar: dark green, white text ---------- */
html.idm-dash body > header{background:var(--pt-green)!important;color:#fff!important;border-bottom:0!important;box-shadow:none!important}
html.idm-dash body > header *:not(input):not(select):not(textarea){color:#fff}
html.idm-dash body > header .logo,html.idm-dash body > header img{filter:brightness(0) invert(1)}
html.idm-dash body > header .iconbtn,html.idm-dash body > header .btn:not(.btn-primary){background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.28)!important;color:#fff!important}
html.idm-dash body > header .btn-primary{background:var(--pt-gold)!important;border-color:var(--pt-gold)!important;color:#000!important}
html.idm-dash body > header .hdr-user{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.3)!important;color:#fff!important}
html.idm-dash body > header .hdr-user .hu-av{background:var(--pt-gold);color:#000}
html.idm-dash body > header .hdr-user .hu-t b,html.idm-dash body > header .hdr-user .hu-t small{color:#fff!important}

/* ---------- the side card (white, like the intranet) ---------- */
html body .dsd{background:#fff!important;color:var(--pt-ink)!important;border:1px solid var(--pt-line);border-radius:16px;box-shadow:0 10px 26px -22px rgba(0,30,15,.45);padding:14px 12px 18px;box-sizing:border-box}
html.idm-dash .dsd{left:14px;top:calc(var(--dsd-top,0px) + 14px);bottom:14px;width:262px;height:auto}
html.idm-dash main#app{margin-left:290px}
html body .dsd-frame > .dsd{margin:14px 0 14px 14px;top:calc(var(--dsd-top,0px) + 14px);height:calc(100vh - var(--dsd-top,0px) - 28px);max-height:calc(100vh - var(--dsd-top,0px) - 28px)}
html body .dsd-brand{color:var(--pt-muted)!important}
html body .dsd-x{border-color:var(--pt-line)!important;color:var(--pt-ink)!important}
html body .dsd-x:hover{background:var(--pt-tint)!important}
html body .dsd-who{background:var(--pt-tint);color:var(--pt-ink)}
html body .dsd-who b{color:var(--pt-ink)!important}
html body .dsd-who small{color:var(--pt-muted)!important;opacity:1}
html body .dsd-av{background:var(--pt-green2);color:#fff}
html body .dsd-s h2{color:var(--pt-muted)!important;opacity:1}
html body .dsd a.dsd-l{color:var(--pt-ink)!important}
html body .dsd a.dsd-l:hover{background:var(--pt-tint)!important}
html body .dsd a.dsd-l.is-on{background:var(--pt-tint)!important;border-left-color:var(--pt-gold)!important;font-weight:700}
html body .dsd-i{background:var(--pt-tint)}
html body .dsd-t b{color:var(--pt-ink)!important}
html body .dsd-t small{color:var(--pt-muted)!important;opacity:1}
html body .dsd-open,html body .dsd-toggle{background:var(--pt-green2)}

/* the page's own side menu (intranet style) */
html body .dsd-navcol{background:#fff!important;color:var(--pt-ink)!important;border:1px solid var(--pt-line);border-radius:16px}
html body .dsd-navcol *{color:var(--pt-ink)!important}
html body .dsd-navcol a:hover,html body .dsd-navcol button:hover{background:var(--pt-tint)!important}
html body .dsd-navcol [aria-current],html body .dsd-navcol .on,html body .dsd-navcol .active,html body .dsd-navcol .is-on{background:var(--pt-tint)!important;border-left:3px solid var(--pt-gold)!important}

/* ---------- the greeting banner (dark green, white text, like the intranet) ---------- */
html body .dh{background:linear-gradient(120deg,var(--pt-green2) 0%,var(--pt-green3) 100%)!important;color:#fff!important;border:0!important;border-radius:18px!important;padding:24px 28px!important;box-shadow:0 14px 30px -22px rgba(0,40,25,.7)!important;max-width:none!important;margin:0 0 16px!important}
html body .dh .dh-hi,html body .dh .dh-sub,html body .dh .dh-name{color:#fff!important}
html body .dh .dh-chip{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.3)!important;color:#fff!important}
html body .dh .dh-date{background:transparent!important;border-color:rgba(255,255,255,.22)!important}
html body .dh .dh-where span{color:#fff!important;border-top-color:var(--pt-gold)!important}

/* ---------- cards and panels ---------- */
html.idm-dash .card,html.idm-dash .panel,html.idm-dash .dh-nc{background:#fff;border:1px solid var(--pt-line);border-top:4px solid var(--pt-green2);border-radius:14px;box-shadow:0 8px 20px -18px rgba(0,30,15,.4)}
html.idm-dash .sec-h,html.idm-dash .phead h1{color:var(--pt-green2)}

/* ---------- tables: heading row, zebra rows, search above ---------- */
html.idm-dash table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;font-size:.92rem;color:var(--pt-ink)}
html.idm-dash table thead th{background:var(--pt-green2)!important;color:#fff!important;font-weight:700;text-align:left;padding:11px 12px;border:0;white-space:nowrap;position:sticky;top:0;z-index:1}
html.idm-dash table td{padding:10px 12px;border-top:1px solid var(--pt-line);vertical-align:top}
html.idm-dash table tbody tr:nth-child(even) td{background:#f7faf8}
html.idm-dash table tbody tr:hover td{background:var(--pt-tint)}
html body .ts-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--pt-line);border-radius:12px;background:#fff}
html body .ts-wrap table{border:0;min-width:100%}
html body .ts-bar{margin:12px 0 8px}
html body .ts-box input{background:#fff;border-color:var(--pt-line)}
html body .ts-box input:focus{border-color:var(--pt-green3);outline-color:var(--pt-green3)}

/* ---------- tables named in the side menu ---------- */
html body .dsd-h{margin:18px 6px 8px;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--pt-muted);line-height:1.3}
html body .dsd-tbls{display:grid;gap:3px}
html body .dsd-tl{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:7px 10px;border:0;border-left:3px solid transparent;border-radius:10px;background:transparent;color:var(--pt-ink);font:inherit;font-size:.9rem;line-height:1.3;text-align:left;cursor:pointer}
html body .dsd-tl:hover{background:var(--pt-tint)}
html body .dsd-tl:focus-visible{outline:2px solid var(--pt-gold);outline-offset:2px}
html body .dsd-tl .dsd-n{flex:none;width:24px;height:24px;border-radius:7px;background:var(--pt-tint);color:var(--pt-green2);display:grid;place-items:center;font-size:.75rem;font-weight:700}
html body .dsd-tl .dsd-lbl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .ts-wrap.ts-flash{outline:3px solid var(--pt-gold);outline-offset:4px;transition:outline-color .3s}

/* ---------- buttons ---------- */
html.idm-dash .btn-primary{background:var(--pt-green2);border-color:var(--pt-green2);color:#fff}
html.idm-dash .btn-primary:hover{background:var(--pt-green3)}

/* ---------- phones: the side card goes above the page, and everything stays inside the width ---------- */
@media (max-width:759px){
 html.idm-dash main#app{margin-left:0}
 html.idm-dash .dsd{left:10px;right:10px;width:auto;bottom:auto;top:calc(var(--dsd-top,0px) + 8px)}
 html body .dsd-frame > .dsd{margin:8px 10px;height:auto;max-height:40vh}
 html body .ts-box{flex:1 1 100%;min-width:0}
}

/* the website name next to the logo in the dark top bar: white, so it reads clearly on green */
html.idm-dash body > header .brand::after{color:#fff!important;border-left-color:#DF9137!important}
html.idm-dash body > header .brand .logo,html.idm-dash body > header .brand img{filter:brightness(0) invert(1)!important;opacity:1!important}

/* administration tools in the side menu (17 Nov 2026) */
html body .dsd [hidden]{display:none!important}
html body .ah-side-wrap{display:grid;gap:14px}
html body .ah-side-q{width:100%;box-sizing:border-box;margin:0 0 4px;padding:9px 12px;border:1.5px solid var(--brand-line,#BEE3CE);border-radius:10px;background:#fff;color:#1A1A1A;font:inherit;font-size:.92rem}
html body .ah-side-q:focus{outline:2px solid #0A9B63;outline-offset:1px;border-color:#0A9B63}
html body .dsd .ah-side-i small{color:#5b6b62!important;font-size:.74rem}

/* ---------- the administration console (17 Nov 2026): a clean dashboard, the tools are in the side menu ---------- */
html.idm-dash .mg-float,html.idm-dash .side-tabs{display:none!important}
html body > header .btn.myidm{color:#fff!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.4)!important;opacity:1!important}
html.idm-dash .view[data-view="desk"] .phead .acct-btn{display:flex!important;align-items:center;gap:14px;max-width:520px;margin:14px 0 0!important;padding:12px 16px!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:16px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;text-decoration:none!important;box-shadow:none!important}
html.idm-dash .view[data-view="desk"] .phead .acct-btn:hover{background:rgba(255,255,255,.2)!important;transform:none!important}
html.idm-dash .view[data-view="desk"] .phead .acct-btn .ai{flex:none;width:38px!important;height:38px!important;border-radius:11px;background:#fff;display:grid;place-items:center;font-size:1.1rem}
html.idm-dash .view[data-view="desk"] .phead .acct-btn .at{display:flex!important;flex-direction:column;gap:3px;min-width:0}
html.idm-dash .view[data-view="desk"] .phead .acct-btn .at b{display:block;color:#fff!important;text-decoration:none!important;font-size:1rem!important}
html.idm-dash .view[data-view="desk"] .phead .acct-btn .at small{display:block;color:#fff!important;opacity:.92;font-size:.82rem!important;line-height:1.4}
html.idm-dash .view[data-view="desk"] .phead .acct-btn .ag{margin-left:auto;flex:none;color:#fff;font-size:1.1rem}
html.idm-dash .dh .acct-btn{display:flex!important;align-items:center;gap:14px;max-width:520px;margin:14px 0 0!important;padding:12px 16px!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:16px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;text-decoration:none!important;box-shadow:none!important}
html.idm-dash .dh .acct-btn:hover{background:rgba(255,255,255,.2)!important;transform:none!important}
html.idm-dash .dh .acct-btn .ai{flex:none;width:38px!important;height:38px!important;border-radius:11px;background:#fff;display:grid;place-items:center;font-size:1.1rem}
html.idm-dash .dh .acct-btn .at{display:flex!important;flex-direction:column;gap:3px;min-width:0}
html.idm-dash .dh .acct-btn .at b{display:block;color:#fff!important;font-size:1rem!important}
html.idm-dash .dh .acct-btn .at small{display:block;color:#fff!important;opacity:.92;font-size:.82rem!important;line-height:1.4}
html.idm-dash .dh .acct-btn .ag{margin-left:auto;flex:none;color:#fff;font-size:1.1rem}
html body > header .btn.myidm{-webkit-text-fill-color:#fff!important;font-weight:700!important}

html.idm-dash main#app{transition:none}

html body > header .btn.myidm{background:#fff!important;border-color:#fff!important;color:var(--brand-primary,#307C48)!important;-webkit-text-fill-color:var(--brand-primary,#307C48)!important}

html.idm-admin .view[data-view="desk"] .pdtabs{display:none!important}

html.idm-admin .view[data-view="desk"] nav.dmenu{display:none!important}
html body .dsd .ah-side-i small{display:none!important}
html body .dsd .ah-side-i b,html body .dsd .nav-sec b{text-transform:none!important}

html body header.site .btn.myidm{background:#fff!important;border:1.5px solid #fff!important;color:var(--brand-primary,#307C48)!important;-webkit-text-fill-color:var(--brand-primary,#307C48)!important;opacity:1!important}
html body .dsd small{text-transform:none!important}

html.idm-dash .topbar a,html.idm-dash .topbar button{opacity:1!important}

/* the menu's hide and show control: three lines */
html body .dsd-burger,html body .dsd-open svg,html body .dsd-toggle svg{display:block}
html body .dsd-burger{display:inline-grid;place-items:center;width:38px;height:38px;padding:0!important;border-radius:10px;border:1px solid #DDE7E1;background:#fff;color:var(--brand-primary,#307C48);cursor:pointer;flex:none}
html body .dsd-burger:hover{background:#EAF6EF}

/* side menu icons (Bootstrap Icons) and the highlighted account item */
html body .dsd .dsd-i{color:var(--brand-primary,#307C48)}
html body .dsd .dsd-i .bi{font-size:1.05rem;line-height:1;color:var(--brand-primary,#307C48)}
html body .dsd a.ah-side-feature{background:#EAF6EF;border:1.5px solid var(--brand-line,#BEE3CE);margin-bottom:6px}
html body .dsd a.ah-side-feature:hover{background:#D9EFE3}

/* ---------- tables fit the window: text wraps, every column and action stays visible ---------- */
html body .ts-wrap{overflow-x:visible!important;max-width:100%}
html body .ts-wrap table{width:100%!important;min-width:0!important;table-layout:auto}
html body .ts-wrap th,html body .ts-wrap td{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;vertical-align:top}
html body .ts-wrap td .btn,html body .ts-wrap td button,html body .ts-wrap td a.ib{white-space:normal!important;max-width:100%}
@media (max-width:760px){
 html body .ts-wrap{border:0;background:transparent}
 html body .ts-wrap table thead{display:none}
 html body .ts-wrap table,html body .ts-wrap tbody{display:block;width:100%!important}
 html body .ts-wrap tr{display:block;margin:0 0 12px;padding:12px 14px;border:1px solid #DDE7E1;border-radius:14px;background:#fff!important}
 html body .ts-wrap td{display:grid;grid-template-columns:minmax(96px,40%) minmax(0,1fr);gap:10px;align-items:start;padding:7px 0!important;border:0!important;background:transparent!important}
 html body .ts-wrap td::before{content:attr(data-label);font-size:.8rem;font-weight:700;color:var(--brand-primary,#307C48);text-transform:uppercase;letter-spacing:.04em;line-height:1.35}
 html body .ts-wrap td[data-label=""]::before,html body .ts-wrap td:not([data-label])::before{content:none}
 html body .ts-wrap td:not([data-label]){grid-template-columns:1fr}
}
/* side menu: only the page being visited is shaded; the account item has no permanent tint */
html body .dsd a.ah-side-feature,html body .dsd a.ah-side-feature:hover{background:transparent!important}
/* statistics: smaller cards, all in one row */
html.idm-dash .view[data-view="desk"] .kpis{grid-template-columns:repeat(auto-fit,minmax(0,1fr))!important;gap:8px!important;margin:8px 0 14px!important}
html.idm-dash .view[data-view="desk"] .kpis .card{padding:10px 12px!important;min-width:0}
html.idm-dash .view[data-view="desk"] .kpis .card b{font-size:1.25rem!important}
html.idm-dash .view[data-view="desk"] .kpis .card .muted{font-size:.64rem!important;letter-spacing:.03em!important;line-height:1.25!important;white-space:normal}
/* staff search results (password reset) */
html body .pw-results{display:grid;gap:6px;margin-top:8px;max-height:280px;overflow:auto}
html body .pw-hit{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:9px 12px;border:1.5px solid var(--brand-line,#BEE3CE);border-radius:10px;background:#fff;color:#1A1A1A;cursor:pointer;font:inherit}
html body .pw-hit b{color:var(--brand-primary,#307C48)}
html body .pw-hit small{color:#5b6b62}
html body .pw-hit:hover,html body .pw-hit:focus-visible{background:#EAF6EF;outline:none;border-color:var(--brand-primary,#307C48)}
