/* =========================================================================
   portal.css — "LGU Employee Command Center" cinematic layer (Midsalip)
   ADDITIVE on top of app.css. Removing the <link> rolls back cleanly.
   Reuses app.css brand tokens (--brand #0d4a76, --brand-2 #1474b8, --ink,
   --good/--warn/--bad) and ADDS a warm golden-hour accent ramp.
   Anti-AI-slop: navy = institutional trust, gold = "golden hour" civic
   warmth, high-contrast ink (no faint grey, senior-readable), depth via
   layered shadows (not a shadow-2xl reflex), icons map to meaning.
   Shared by the EMPLOYEE dashboard and the ADMIN/landing dashboard.
   ========================================================================= */
:root {
  --gold:       #e8990f;
  --gold-2:     #ffc24d;   /* bright highlight / glow */
  --gold-deep:  #b9700a;
  --gold-ink:   #6a4400;   /* gold text on light bg, AAA-readable */
  --amber-soft: #fdf1d8;

  --c-violet: #6d28d9;
  --c-green:  #1d7a4d;
  --c-blue:   #1474b8;
  --c-orange: #d97316;
  --c-pink:   #b8316b;
  --c-red:    #b00020;

  --navy-1: #0e508a;
  --navy-2: #0a3a64;
  --navy-3: #062840;

  --portal-radius: 16px;
  --portal-shadow:    0 1px 2px rgba(6,37,56,.10), 0 10px 26px -10px rgba(6,37,56,.28), 0 28px 56px -28px rgba(6,37,56,.40);
  --portal-shadow-hi: 0 1px 2px rgba(6,37,56,.12), 0 16px 34px -12px rgba(6,37,56,.34), 0 36px 70px -30px rgba(6,37,56,.50);
}

/* Wider canvas so the command center can breathe (mockup is a wide layout). */
body.app-shelled .container.portal-container { max-width: 1560px; }
/* Hide the default tiny footer on portal pages — we render a richer one. */
body.portal-on .sitefoot { display: none; }

/* =========================================================================
   1. SIDEBAR — cinematic command-center navigation
   ========================================================================= */
body.app-shelled .sidebar {
  background:
    radial-gradient(120% 46% at 0% 0%, rgba(232,153,15,.12) 0%, transparent 46%),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 50%, var(--navy-3) 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 8px 0 30px -10px rgba(6,37,56,.55);
}
body.app-shelled .sidebar::after {            /* gold rail down the inner edge */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,194,77,.55) 16%, rgba(232,153,15,.30) 60%, transparent 100%);
  pointer-events: none;
}

.sidebar-brand { padding: 18px 18px 15px; border-bottom: 1px solid rgba(255,194,77,.16); }
.sidebar-brand .sp-seal { width: 52px; height: 52px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.sidebar-app { font-size: 15px; letter-spacing: .2px; }
.sidebar-owner { color: rgba(255,255,255,.78); }

.sidebar-section-label {
  color: var(--gold-2); opacity: .92;
  font-size: 11px; letter-spacing: .2em;
  margin: 16px 6px 8px 14px;
}

.snav {
  gap: 14px; padding: 12px 15px; font-size: 15px;
  border-radius: 13px; color: #fff;
}
.snav span { line-height: 1.15; }
.snav svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--gold-2); opacity: .82; }
.snav:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 100%);
  border-color: rgba(255,194,77,.30); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 18px -6px rgba(0,0,0,.45);
}
.snav:hover svg { opacity: 1; }
.snav.is-active {
  background: linear-gradient(180deg, rgba(20,116,184,.6) 0%, rgba(13,74,118,.55) 100%);
  border-color: rgba(255,194,77,.55); color: #fff; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 0 0 1px rgba(255,194,77,.22),
              0 12px 26px -8px rgba(232,153,15,.45), 0 4px 10px rgba(6,37,56,.45);
}
.snav.is-active::before {
  content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 5px;
  border-radius: 0 5px 5px 0; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 16px rgba(255,194,77,.85);
}
.snav.is-active svg { color: var(--gold-2); opacity: 1; }
.snav.is-active::after { border-color: var(--gold-2); }

/* "Soon" (not-yet-built) modules — present, styled, but inert (no 404). */
.snav-soon { cursor: default; color: rgba(255,255,255,.66); }
.snav-soon svg { opacity: .5; }
.snav-soon:hover { transform: none; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.snav-soon:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.snav-pill {
  margin-left: auto; flex: 0 0 auto;
  font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #1b1205; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 5px rgba(232,153,15,.4);
}
.snav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); flex: 0 0 auto; }

/* Inspirational quote + building silhouette */
.sidebar-quote {
  position: relative; margin: 10px 14px 4px; padding: 16px 16px 14px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(232,153,15,.16) 0%, rgba(232,153,15,.05) 100%);
  border: 1px solid rgba(255,194,77,.28); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.sidebar-quote::after {   /* faint civic skyline behind the quote */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; opacity: .25;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.5) 0 8px, transparent 8px 11px, rgba(255,255,255,.5) 11px 18px,
    transparent 18px 22px, rgba(255,255,255,.5) 22px 34px, transparent 34px 38px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000); mask-image: linear-gradient(180deg, transparent, #000);
}
.sidebar-quote p { position: relative; margin: 0; color: #fff; font-size: 13px; font-style: italic; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 6px rgba(6,37,56,.5); }
.sidebar-quote-stars { position: relative; margin-top: 8px; color: var(--gold-2); letter-spacing: 3px; }
.sidebar-quote-stars svg { width: 14px; height: 14px; }

.sidebar-user-name { font-size: 13.5px; }
.sidebar-user-dot { background: #2ecf77; }

/* =========================================================================
   2. MASTHEAD — golden-hour "EMPLOYEE PORTAL" command bar
   ========================================================================= */
.portal { display: block; }

.portal-masthead {
  position: relative; overflow: hidden; border-radius: var(--portal-radius);
  margin: 4px 0 20px; padding: 24px 30px; color: #fff;
  background:
    radial-gradient(58% 150% at 88% 16%, rgba(255,196,77,.6) 0%, rgba(232,153,15,.22) 34%, transparent 68%),
    linear-gradient(100deg, #0a3a5e 0%, #0d4a76 32%, #1a5e88 50%, #8a5a1c 78%, #c98019 100%);
  border: 1px solid rgba(255,194,77,.30); box-shadow: var(--portal-shadow);
}
.portal-masthead::before {     /* warm sun bloom top-right */
  content: ""; position: absolute; top: -45%; right: 5%; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,212,125,.92) 0%, rgba(255,194,77,.35) 42%, transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.pm-skyline {                  /* CSS skyline silhouette + light streak */
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; opacity: .92;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,224,150,.65) 46%, rgba(255,255,255,.85) 52%, rgba(255,224,150,.55) 58%, transparent 80%) bottom/100% 2px no-repeat,
    repeating-linear-gradient(90deg,
      rgba(6,37,56,.55) 0 14px, rgba(6,37,56,0) 14px 18px, rgba(6,37,56,.62) 18px 26px, rgba(6,37,56,0) 26px 30px,
      rgba(6,37,56,.5) 30px 50px, rgba(6,37,56,0) 50px 54px, rgba(6,37,56,.66) 54px 64px, rgba(6,37,56,0) 64px 70px,
      rgba(6,37,56,.5) 70px 86px, rgba(6,37,56,0) 86px 90px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 72%); mask-image: linear-gradient(180deg, transparent 0%, #000 72%);
}
.pm-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.pm-headline { min-width: 0; }
.pm-title {
  margin: 0; font-size: clamp(30px, 4.2vw, 52px); font-weight: 900; letter-spacing: -.02em; line-height: .98; color: #fff;
  text-shadow: 0 2px 2px rgba(6,37,56,.45), 0 0 28px rgba(255,194,77,.35);
}
.pm-sub {
  margin: 8px 0 0; font-size: clamp(14px, 1.3vw, 19px); font-weight: 800; letter-spacing: .02em;
  color: var(--gold-2); text-shadow: 0 1px 6px rgba(6,37,56,.6);
}
.pm-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.pm-search { position: relative; flex: 1 1 300px; min-width: 200px; }
.pm-search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #5a6b7a; pointer-events: none; }
.pm-search input {
  width: 100%; padding: 13px 16px 13px 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 15px; font-family: inherit;
  box-shadow: 0 6px 18px -8px rgba(6,37,56,.5), inset 0 1px 0 rgba(255,255,255,.6);
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.pm-search input::placeholder { color: #66747f; }
.pm-search input:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; background: #fff; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(255,194,77,.5), 0 8px 22px -8px rgba(6,37,56,.55); }

.pm-bell-wrap { position: relative; flex: 0 0 auto; }
.pm-bell {
  position: relative; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); color: #fff; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -6px rgba(6,37,56,.5); transition: background .18s ease, transform .18s ease;
}
.pm-bell:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.pm-bell svg { width: 24px; height: 24px; }
.pm-badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: linear-gradient(180deg, #ff5a5f, #e11d28); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
  border: 2px solid #0d4a76; box-shadow: 0 2px 6px rgba(225,29,40,.6);
}
.pm-bell-pop {
  position: absolute; top: 58px; right: 0; z-index: 40; width: 260px; padding: 14px 16px;
  background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--portal-shadow-hi); display: none; text-align: left;
}
.pm-bell-pop.is-open { display: block; }
.pm-bell-pop h4 { margin: 0 0 6px; font-size: 13px; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.pm-bell-pop p { margin: 0; font-size: 14px; }
.pm-bell-pop a { font-weight: 700; }

.pm-profile {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px;
  background: rgba(255,255,255,.96); color: var(--ink); border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 6px 18px -8px rgba(6,37,56,.55); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.pm-profile:hover { transform: translateY(-1px); text-decoration: none; box-shadow: var(--portal-shadow-hi); }
.pm-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.pm-profile-text { display: flex; flex-direction: column; line-height: 1.18; }
.pm-profile-name { font-size: 15px; font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }
.pm-verified { width: 15px; height: 15px; flex: 0 0 auto; }
.pm-profile-pos { font-size: 12px; font-weight: 700; color: var(--ink); }
.pm-profile-role { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.pm-chev { width: 14px; height: 14px; color: var(--muted); }

/* =========================================================================
   3. STAT CARDS — big numbers, colored icons, raised glass
   ========================================================================= */
.portal-stats { display: grid; gap: 16px; margin: 0 0 18px; grid-template-columns: repeat(4, 1fr) 1.5fr; }
.pcard {
  position: relative; background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  border: 1px solid #e4ebf2; border-radius: var(--portal-radius); box-shadow: var(--portal-shadow);
  transition: transform .2s ease, box-shadow .2s ease; min-width: 0;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--portal-shadow-hi); }

.pstat { padding: 20px; display: flex; flex-direction: column; gap: 11px; }
.pstat-top { display: flex; align-items: center; gap: 13px; }
.pstat-ico {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 8px 18px -6px rgba(6,37,56,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.pstat-ico svg { width: 27px; height: 27px; }
.pstat-ico.i-violet { background: linear-gradient(150deg, #8b5cf6, var(--c-violet)); }
.pstat-ico.i-green  { background: linear-gradient(150deg, #34c281, var(--c-green)); }
.pstat-ico.i-blue   { background: linear-gradient(150deg, #38a6ec, var(--c-blue)); }
.pstat-ico.i-orange { background: linear-gradient(150deg, #ffb04d, var(--c-orange)); }
.pstat-ico.i-gold   { background: linear-gradient(150deg, var(--gold-2), var(--gold-deep)); }
.pstat-lbl { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pstat-num { font-size: 38px; font-weight: 900; line-height: 1; color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pstat-num .unit { font-size: 17px; font-weight: 800; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.pstat-sub { font-size: 13px; font-weight: 600; color: var(--ink); }
.pstat-foot { margin-top: auto; padding-top: 4px; }
.pstat-foot a, .plink { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--brand-2); text-decoration: none; }
.pstat-foot a svg, .plink svg { width: 15px; height: 15px; }
.pstat-foot a:hover, .plink:hover { color: var(--brand); text-decoration: none; }
.pstat.i-orange-accent .pstat-num { color: var(--c-orange); }
.pstat.i-violet-accent .pstat-num { color: var(--c-violet); }
.pstat.i-blue-accent .pstat-num   { color: var(--c-blue); }
.pstat.i-green-accent .pstat-num  { color: var(--c-green); }

.nmv-tag {
  display: inline-block; margin-left: 6px; vertical-align: 2px; padding: 1px 7px; border-radius: 999px;
  background: var(--amber-soft); color: var(--gold-ink); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid rgba(232,153,15,.4);
}

/* Profile summary card (5th cell) */
.pprofile { padding: 18px 20px; display: flex; align-items: flex-start; gap: 15px; }
.pprofile-photo {
  width: 60px; height: 60px; border-radius: 16px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: 0 8px 18px -6px rgba(6,37,56,.4), inset 0 0 0 3px rgba(255,255,255,.55);
}
.pprofile-body { min-width: 0; flex: 1 1 auto; }
.pprofile-name { font-size: 17px; font-weight: 900; color: var(--brand); letter-spacing: -.01em; }
.pprofile-pos  { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pprofile-rows { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0 0 10px; }
.pprofile-rows dt { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pprofile-rows dt svg { width: 14px; height: 14px; color: var(--brand-2); }
.pprofile-rows dd { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); text-align: right; }
.pprofile-rows dd.ok { color: var(--c-green); }
.pprofile-cta .btn { font-size: 13px; padding: 8px 14px; }

/* =========================================================================
   4. ANALYTICS ROW — trend / donut / quick actions
   ========================================================================= */
.portal-analytics { display: grid; gap: 16px; margin: 0 0 18px; grid-template-columns: 1.7fr 1.15fr 1.25fr; }
.ppanel { padding: 20px 22px; min-width: 0; }
.ppanel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ppanel-title { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; }
.pchip { font-size: 12.5px; font-weight: 700; color: var(--ink); background: #eef4f9; border: 1px solid #d8e4ee; border-radius: 999px; padding: 5px 12px; }

.ptrend { width: 100%; max-width: 100%; height: 210px; display: block; }
.ptrend-grid line { stroke: #e4ebf2; stroke-width: 1; }
.ptrend-axis { fill: var(--muted); font-size: 11px; font-weight: 700; }
.ptrend-target { stroke: #2ea36b; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ptrend-area { fill: url(#ptrendfill); }
.ptrend-line { fill: none; stroke: var(--brand-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ptrend-dot { fill: #fff; stroke: var(--brand-2); stroke-width: 2.5; }
.ptrend-tip rect { fill: var(--brand); }
.ptrend-tip text { fill: #fff; font-size: 12px; font-weight: 800; }

.pdonut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pdonut { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.pdonut svg { transform: rotate(-90deg); width: 132px; height: 132px; }
.pdonut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pdonut-total { font-size: 30px; font-weight: 900; color: var(--brand); font-variant-numeric: tabular-nums; }
.pdonut-total-lbl { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.pdonut-legend { display: flex; flex-direction: column; gap: 9px; flex: 1 1 150px; min-width: 150px; }
.pleg { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pleg .dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.pleg .val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 800; }
.pleg .pct { color: var(--muted); font-weight: 700; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

.pqa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pqa {
  display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 13px 14px; text-align: left; text-decoration: none;
  border: 1px solid #e4ebf2; border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.2; box-shadow: 0 4px 12px -6px rgba(6,37,56,.18);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.pqa:hover { transform: translateY(-3px); border-color: rgba(255,194,77,.55); box-shadow: 0 12px 24px -10px rgba(6,37,56,.34); text-decoration: none; }
.pqa-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 14px -5px rgba(6,37,56,.4), inset 0 1px 0 rgba(255,255,255,.4); }
.pqa-ico svg { width: 22px; height: 22px; }
.pqa-ico.i-blue   { background: linear-gradient(150deg, #38a6ec, var(--c-blue)); }
.pqa-ico.i-green  { background: linear-gradient(150deg, #34c281, var(--c-green)); }
.pqa-ico.i-orange { background: linear-gradient(150deg, #ffb04d, var(--c-orange)); }
.pqa-ico.i-violet { background: linear-gradient(150deg, #8b5cf6, var(--c-violet)); }
.pqa-ico.i-pink   { background: linear-gradient(150deg, #f06aa0, var(--c-pink)); }
.pqa-ico.i-gold   { background: linear-gradient(150deg, var(--gold-2), var(--gold-deep)); }

/* =========================================================================
   5. LOWER ROW — recent requests / activity / announcements / schedule
   ========================================================================= */
.portal-lower { display: grid; gap: 16px; margin: 0 0 18px; grid-template-columns: 1.5fr 1.2fr 1.2fr 1.1fr; }
.portal-lower > * { min-width: 0; }

.ptable { width: 100%; border-collapse: collapse; }
.ptable th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); padding: 8px; border-bottom: 2px solid #e4ebf2; }
.ptable td { padding: 11px 8px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid #eef2f6; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ptable .ref { font-weight: 800; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.ptable .eye { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand-2); }
.ptable .eye svg { width: 17px; height: 17px; }
.pstatus { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pstatus.pending     { background: #fdf1d8; color: var(--gold-ink); }
.pstatus.approved    { background: #e3f6ec; color: var(--good); }
.pstatus.disapproved { background: #f8e0e0; color: var(--bad); }
.pstatus.cancelled   { background: #eef2f6; color: var(--muted); }

.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plist li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef2f6; align-items: flex-start; }
.plist li:last-child { border-bottom: 0; }
.pdot-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.pdot-ico svg { width: 19px; height: 19px; }
.pdot-ico.ok   { background: #e3f6ec; color: var(--good); }
.pdot-ico.warn { background: #fdf1d8; color: var(--gold-ink); }
.pdot-ico.info { background: var(--brand-soft); color: var(--brand-2); }
.pdot-ico.bad  { background: #f8e0e0; color: var(--bad); }
.pdot-ico.violet { background: #efe7fc; color: var(--c-violet); }
.pactivity-main { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pactivity-meta { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pactivity-time { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }

.pann { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef2f6; }
.pann:last-child { border-bottom: 0; }
.pann-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--amber-soft); color: var(--gold-ink); display: inline-flex; align-items: center; justify-content: center; }
.pann-ico svg { width: 19px; height: 19px; }
.pann-title { font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pann-new { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: var(--c-red); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; vertical-align: 1px; }
.pann-meta { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 3px; }

.psched { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid #eef2f6; align-items: center; }
.psched:last-child { border-bottom: 0; }
.psched-date { flex: 0 0 auto; width: 52px; text-align: center; border-radius: 11px; overflow: hidden; border: 1px solid #e4ebf2; box-shadow: 0 3px 8px -4px rgba(6,37,56,.25); }
.psched-date .m { display: block; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 0; }
.psched-date .d { display: block; font-size: 22px; font-weight: 900; color: var(--brand); padding: 3px 0; font-variant-numeric: tabular-nums; }
.psched-title { font-size: 13px; font-weight: 800; color: var(--ink); }
.psched-meta { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }

.pview-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--brand-2); text-decoration: none; }
.pview-all:hover { text-decoration: none; color: var(--brand); }
.pempty { padding: 18px 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: center; }

/* =========================================================================
   6. ADMIN dashboard harmonization (spotlight + roster live alongside portal)
   ========================================================================= */
.portal .sp-spotlight { border-radius: var(--portal-radius); margin-bottom: 18px; }
.portal .card { border-radius: var(--portal-radius); }
.portal .roster-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

/* =========================================================================
   7. PORTAL FOOTER
   ========================================================================= */
.portal-footer {
  margin: 6px 0 0; padding: 16px 22px; border-radius: var(--portal-radius);
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy-3) 100%); color: rgba(255,255,255,.86);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px solid rgba(255,194,77,.18); box-shadow: var(--portal-shadow);
}
.portal-footer-links { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.portal-footer-links a { color: #fff; text-decoration: none; }
.portal-footer-links a:hover { color: var(--gold-2); text-decoration: none; }
.portal-footer-links .sep { color: rgba(255,255,255,.35); }
.portal-footer-tag { font-size: 14px; font-weight: 800; font-style: italic; color: var(--gold-2); text-shadow: 0 1px 6px rgba(6,37,56,.5); }

/* =========================================================================
   8. RESPONSIVE
   ========================================================================= */
.portal-stats > *, .portal-analytics > * { min-width: 0; }

@media (max-width: 1280px) {
  .portal-stats { grid-template-columns: repeat(3, 1fr); }
  .portal-stats .pprofile { grid-column: span 3; }
  .portal-analytics { grid-template-columns: 1fr 1fr; }
  .portal-analytics .pqa-panel { grid-column: span 2; }
  .portal-lower { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .portal-masthead { padding: 22px 20px; }
  .pm-inner { flex-direction: column; align-items: stretch; }
  .pm-tools { width: 100%; }
  .pm-search { flex: 1 1 100%; order: 3; }
  .portal-stats { grid-template-columns: 1fr 1fr; }
  .portal-stats .pprofile { grid-column: span 2; }
  .portal-analytics { grid-template-columns: 1fr; }
  .portal-analytics .pqa-panel { grid-column: auto; }
  .portal-lower { grid-template-columns: 1fr; }
  .portal-footer { flex-direction: column; align-items: flex-start; }
  /* Wide data tables scroll inside their card instead of stretching the page.
     (height is content-driven, so overflow-y stays a no-op — no vertical bars.) */
  .portal .card { overflow-x: auto; }
}
@media (max-width: 520px) {
  .pm-title { font-size: 30px; }
  .portal-stats { grid-template-columns: 1fr; }
  .portal-stats .pprofile { grid-column: auto; }
  .pqa-grid { grid-template-columns: 1fr; }
  .pm-profile-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .pqa, .pm-bell, .pm-profile, .snav { transition: none; }
  .pcard:hover, .pqa:hover, .pm-profile:hover { transform: none; }
  [role="status"] { transition: none !important; }   /* portal.js "Soon" toast */
}
@media print {
  .portal-masthead, .pm-tools, .pqa-panel, .sidebar-quote, .portal-footer { display: none !important; }
}
