/* The compact header is shared by both portal themes. */
#hdr.portal-header{display:none;grid-template-columns:40px 145px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:76px;height:auto;padding:12px 18px;background:#145c33;color:#f7fcf5;position:sticky;top:0;z-index:450;box-shadow:0 2px 6px #102e221a;font-family:Manrope,system-ui,sans-serif}
#hdr.portal-header:not([style*="display: none"]):not([style*="display:none"]){display:grid!important}
#hdr.portal-header::after{display:none}
#hdr.portal-header *{font-family:inherit}
#hdr.portal-header>.portal-header-logo{width:40px;height:44px;margin:0;padding:3px;object-fit:contain;border-radius:11px;background:#fff;box-shadow:none;align-self:center}
#hdr.portal-header>.portal-header-brand{min-width:0;margin:0;align-self:center}
#hdr.portal-header h1{margin:0;color:inherit;font-size:calc(14px * var(--pt-font-scale, 1));line-height:1.25;font-weight:800;letter-spacing:-.3px;white-space:nowrap}
#hdr.portal-header .ver{display:block;margin-top:3px;color:#d2e5d4;opacity:1;font-size:calc(11px * var(--pt-font-scale, 1));line-height:1.4;letter-spacing:0;white-space:normal}
#hdr.portal-header #taburi{display:flex;align-items:center;min-width:0;width:auto;height:40px;gap:3px;margin:0;padding:0;border:0;order:0;flex-wrap:nowrap;overflow:visible;background:none}
#hdr.portal-header #headerTabs{display:flex;align-items:center;gap:3px;flex:1;min-width:0;height:100%;overflow-x:auto;scrollbar-width:none}
#hdr.portal-header #headerTabs::-webkit-scrollbar{display:none}
#hdr.portal-header #taburi .tab,#hdr.portal-header #taburiMai{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:38px;height:40px;padding:0 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#d2e5d4;font-size:calc(12px * var(--pt-font-scale, 1));line-height:1.4;font-weight:600;letter-spacing:0;opacity:1;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
#hdr.portal-header #taburi .tab:hover,#hdr.portal-header #taburiMai:hover,#hdr.portal-header #taburiMai[aria-expanded=true]{background:#ffffff19;color:#f7fcf5}
#hdr.portal-header #taburi .tab.on,#hdr.portal-header #taburiMai.on{background:#f0f7e8;color:#245d37;font-weight:800}
#hdr.portal-header .header-icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#hdr.portal-header #taburiMai{position:static;margin:0;align-self:stretch;gap:5px;padding-inline:9px}
#hdr.portal-header #taburiMai .header-icon{width:13px;height:13px}
#hdr.portal-header .portal-header-tools{display:flex;align-items:center;gap:7px;min-width:0}
#hdr.portal-header .portal-header-tools>.btn.sec,#hdr.portal-header #btnMeniu{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:38px;min-width:38px;height:38px;margin:0;padding:8px;border:1px solid #ffffff24;border-radius:10px;background:#ffffff09;box-shadow:none;color:#f7fcf5;font-size:calc(12px * var(--pt-font-scale, 1));line-height:1.4;font-weight:700;letter-spacing:0;white-space:nowrap;transform:none;backdrop-filter:none}
#hdr.portal-header .portal-header-tools>.btn.sec:hover,#hdr.portal-header #btnMeniu:hover{background:#ffffff20;box-shadow:none;transform:none;filter:none}
#hdr.portal-header #btnAsist{height:40px;padding:7px 11px;background:#f2f8e9;border-color:transparent;color:#225734}
#hdr.portal-header #btnAsist:hover{background:#dceecd}
#hdr.portal-header #btnAsist img{width:23px!important;height:23px!important;margin:0!important;padding:0;object-fit:cover;border-radius:50%;vertical-align:middle;background:#fff;box-shadow:none}
#hdr.portal-header #btnAjutor .header-icon,#hdr.portal-header #btnMeniu>svg{width:17px;height:17px}
#hdr.portal-header #accountMenu{margin-left:3px;padding-left:8px;border-left:1px solid #ffffff30}
#hdr.portal-header #btnAccount{min-height:38px;padding:3px 9px 3px 4px;gap:7px;border-color:#ffffff24;background:#ffffff09}
#hdr.portal-header #btnAccount:hover,#hdr.portal-header #btnAccount[aria-expanded=true]{background:#ffffff20}
#hdr.portal-header #accountInitials{width:31px;height:31px;background:#d8edc6;color:#244d30;font-size:calc(12px * var(--pt-font-scale, 1));font-weight:800;letter-spacing:.7px}
#hdr.portal-header #onlineBadge{font-size:calc(11px * var(--pt-font-scale, 1))!important}
#hdr.portal-header #headerOverflow{position:fixed;z-index:480;width:300px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain;padding:8px;background:#fff;color:#263b2d;border:1px solid #e1e8de;border-radius:14px;box-shadow:0 16px 45px #0e2c2633;scrollbar-gutter:stable}
#hdr.portal-header .header-overflow-title{padding:7px 10px 10px;color:#69786d;font-size:calc(11px * var(--pt-font-scale, 1));font-weight:700;letter-spacing:.6px}
#hdr.portal-header #headerOverflowItems{display:grid;gap:2px}
#hdr.portal-header #headerOverflow .tab{justify-content:flex-start;width:100%;min-height:39px;height:auto;padding:10px;color:#263b2d;text-align:left;white-space:normal;overflow-wrap:anywhere;font-weight:600}
#hdr.portal-header #headerOverflow .tab:hover{background:#edf4e9;color:#23663e}
#hdr.portal-header #headerOverflow .tab.on{background:#edf4e9;color:#23663e;font-weight:800}
#hdr.portal-header [data-header-unavailable],#hdr.portal-header #taburiMai[hidden],#hdr.portal-header #headerOverflow[hidden]{display:none!important}
#hdr.portal-header :is(button,[tabindex]):focus-visible{outline:2px solid #b7da8e;outline-offset:3px}
@media(max-width:900px){
  #hdr.portal-header{grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding:10px 12px}
  #hdr.portal-header>.portal-header-logo{width:34px;height:38px;border-radius:9px}
  #hdr.portal-header h1{font-size:calc(14px * var(--pt-font-scale, 1))}
  #hdr.portal-header #taburi{grid-column:1/-1;grid-row:2;height:43px}
  #hdr.portal-header .portal-header-tools{grid-column:3;grid-row:1;gap:5px}
  #hdr.portal-header #btnAsist{width:38px;min-width:38px;padding:6px}
  #hdr.portal-header .header-tavi-label{display:none}
  #hdr.portal-header #accountMenu{padding-left:0;margin-left:1px;border:0}
  #hdr.portal-header #btnAccount{padding:3px}
  #hdr.portal-header #btnAccount>svg{display:none}
}
@media(max-width:420px){
  #hdr.portal-header{grid-template-columns:30px minmax(0,1fr) auto;gap:7px}
  #hdr.portal-header>.portal-header-logo{width:30px;height:35px}
  #hdr.portal-header h1{font-size:calc(12.5px * var(--pt-font-scale, 1))}
  #hdr.portal-header .portal-header-tools{gap:3px}
  #hdr.portal-header .portal-header-tools>.btn.sec,#hdr.portal-header #btnMeniu{min-width:34px;padding:6px}
  #hdr.portal-header #onlineBadge{display:none!important}
}
@media(max-width:360px){
  #hdr.portal-header>.portal-header-brand{grid-column:2/-1}
  #hdr.portal-header .portal-header-tools{grid-column:1/-1;grid-row:2;justify-content:flex-end}
  #hdr.portal-header #taburi{grid-row:3}
}
@media(pointer:coarse){
  #hdr.portal-header .portal-header-tools>.btn.sec,#hdr.portal-header #btnMeniu,#hdr.portal-header #btnAccount,#hdr.portal-header #taburi .tab,#hdr.portal-header #taburiMai{min-height:44px;height:44px}
  #hdr.portal-header .portal-header-tools>.btn.sec,#hdr.portal-header #btnMeniu,#hdr.portal-header #btnAccount{min-width:44px}
  #hdr.portal-header #taburi{height:44px}
}
@media(prefers-reduced-motion:reduce){#hdr.portal-header #taburi .tab,#hdr.portal-header #taburiMai{transition:none}}
@media print{#hdr.portal-header #headerOverflow{display:none!important}}
/* DEF-12: „✋ Aprobări” alb, cu bulina roșie a cererilor, vizibil în antet pentru SPUC/admin/director */
#hdr.portal-header .portal-header-tools>#btnAprobari{padding:7px 12px;border-radius:20px;border-color:transparent;background:#fff;color:#145c33;font-weight:700}
#hdr.portal-header .portal-header-tools>#btnAprobari:hover{background:#edf4e9}
