:root{
  --portal-navy:#041a3a;
  --portal-navy-2:#082c5f;
  --portal-blue:#1268f3;
  --portal-cyan:#16b8e8;
  --portal-green:#15b86a;
  --portal-red:#dc3545;
  --portal-amber:#e69218;
  --portal-bg:#f5f8fd;
  --portal-soft:#edf5ff;
  --portal-white:#ffffff;
  --portal-text:#13253f;
  --portal-muted:#66758b;
  --portal-border:#d9e5f3;
  --portal-shadow:0 18px 48px rgba(4,26,58,.10);
  --portal-radius:20px;
  --portal-container:1280px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--portal-text);
  background:var(--portal-bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
}
body.admin-bar .portal-site-header{top:32px}
a{color:var(--portal-blue);text-decoration:none;transition:.22s ease}
a:hover{color:var(--portal-cyan)}
button,input,select,textarea{font:inherit}
button{transition:.22s ease}
img{max-width:100%;height:auto}
.portal-container{width:min(calc(100% - 36px),var(--portal-container));margin:0 auto}
.portal-skip-link{
  position:fixed;left:14px;top:-100px;z-index:100000;
  padding:10px 16px;border-radius:10px;color:#fff;background:var(--portal-blue)
}
.portal-skip-link:focus{top:14px}

/* Header */
.portal-site-header{
  position:sticky;top:0;z-index:9999;
  border-bottom:1px solid rgba(18,104,243,.10);
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 30px rgba(4,26,58,.06);
  backdrop-filter:blur(18px)
}
.portal-header-inner{
  min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:22px
}
.portal-brand{display:flex;align-items:center;gap:12px;color:var(--portal-navy)}
.portal-brand img{width:72px;max-height:64px;object-fit:contain}
.portal-brand .custom-logo-link{display:flex}
.portal-brand .custom-logo{width:72px;max-height:64px}
.portal-brand-mark{
  width:48px;height:48px;display:grid;place-items:center;border-radius:14px;
  color:#fff;background:linear-gradient(135deg,var(--portal-blue),var(--portal-cyan));font-weight:900
}
.portal-brand-text{display:flex;flex-direction:column;line-height:1.15}
.portal-brand-text strong{font-size:18px}
.portal-brand-text small{margin-top:4px;color:var(--portal-muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.portal-header-actions{display:flex;align-items:center;gap:16px}
.portal-header-dashboard{
  padding:9px 13px;border-radius:10px;color:var(--portal-blue);background:var(--portal-soft);font-weight:800
}
.portal-user-chip{display:flex;align-items:center;gap:9px}
.portal-user-chip>span:last-child{display:flex;flex-direction:column;line-height:1.2}
.portal-user-chip strong{font-size:13px}
.portal-user-chip small{margin-top:3px;color:var(--portal-muted);font-size:10px;font-weight:800;text-transform:uppercase}
.portal-user-avatar{
  width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px;border-radius:50%;
  color:#fff;background:linear-gradient(135deg,var(--portal-blue),var(--portal-cyan));font-weight:900
}
.portal-user-avatar-large{width:74px;height:74px;margin:0 auto 14px;font-size:28px}
.portal-secure-label{display:flex;align-items:center;gap:8px;color:var(--portal-muted);font-size:13px;font-weight:800}
.portal-secure-label svg{width:20px;height:20px;color:var(--portal-blue)}

/* Footer */
.portal-site-footer{padding:28px 0;color:rgba(255,255,255,.80);background:linear-gradient(135deg,#021126,var(--portal-navy-2))}
.portal-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.portal-footer-inner>div:first-child{display:flex;flex-direction:column}
.portal-footer-inner strong{color:#fff}
.portal-footer-inner span{font-size:13px}
.portal-footer-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.portal-footer-links a{color:rgba(255,255,255,.80)}
.portal-back-to-top{
  position:fixed;right:22px;bottom:22px;z-index:999;
  width:48px;height:48px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;
  color:#fff;background:linear-gradient(135deg,var(--portal-blue),var(--portal-cyan));
  box-shadow:0 14px 30px rgba(18,104,243,.28);opacity:0;visibility:hidden;transform:translateY(14px);cursor:pointer
}
.portal-back-to-top.is-visible{opacity:1;visibility:visible;transform:none}
.portal-back-to-top svg{width:23px;height:23px}

/* Login */
.portal-login-hero{
  position:relative;overflow:hidden;padding:80px 0;
  background:
    radial-gradient(circle at 85% 10%,rgba(22,184,232,.24),transparent 26%),
    radial-gradient(circle at 15% 90%,rgba(18,104,243,.18),transparent 30%),
    linear-gradient(135deg,#03152f,#073675 72%,#075398)
}
.portal-login-hero:before{
  content:"";position:absolute;inset:0;opacity:.18;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:38px 38px
}
.portal-login-layout{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.75fr);align-items:center;gap:70px}
.portal-login-copy{color:#fff}
.portal-login-copy h1{max-width:760px;margin:12px 0 22px;font-size:clamp(3rem,6vw,5.4rem);line-height:.98;letter-spacing:-.05em}
.portal-login-copy>p{max-width:680px;color:rgba(255,255,255,.76);font-size:18px}
.portal-kicker{
  display:inline-flex;color:var(--portal-blue);font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase
}
.portal-kicker-light{color:#7fe8ff}
.portal-login-features{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:34px}
.portal-login-features>div{
  display:flex;align-items:center;gap:12px;padding:14px;border:1px solid rgba(255,255,255,.12);
  border-radius:14px;background:rgba(255,255,255,.06);backdrop-filter:blur(10px)
}
.portal-login-features span{
  width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;border-radius:10px;
  color:#03152f;background:#7fe8ff;font-size:11px;font-weight:900
}
.portal-login-features strong{font-size:13px}
.portal-login-panel{
  overflow:hidden;border:1px solid rgba(255,255,255,.28);border-radius:26px;background:#fff;
  box-shadow:0 32px 90px rgba(0,0,0,.30)
}
.portal-login-tabs{display:grid;grid-template-columns:1fr 1fr;padding:8px;background:#eff5fb}
.portal-login-tab{
  min-height:48px;border:0;border-radius:12px;color:var(--portal-muted);background:transparent;font-weight:850;cursor:pointer
}
.portal-login-tab.is-active{color:#fff;background:linear-gradient(135deg,var(--portal-blue),var(--portal-cyan));box-shadow:0 10px 24px rgba(18,104,243,.20)}
.portal-login-form{display:none;padding:32px}
.portal-login-form.is-active{display:block}
.portal-login-form h2,.portal-signed-in-card h2{margin:7px 0 8px;color:var(--portal-navy);font-size:30px}
.portal-login-form>p,.portal-signed-in-card>p{margin-bottom:22px;color:var(--portal-muted);font-size:14px}
.portal-login-form form p{margin:0 0 15px}
.portal-login-form label{display:block;margin-bottom:6px;color:var(--portal-text);font-size:12px;font-weight:800}
.portal-login-form input[type="text"],
.portal-login-form input[type="password"]{
  width:100%;min-height:48px;padding:0 14px;border:1px solid var(--portal-border);border-radius:11px;background:#fbfdff
}
.portal-login-form .login-remember label{display:flex;align-items:center;gap:8px;font-weight:600}
.portal-login-form .button-primary{
  width:100%;min-height:49px;border:0;border-radius:12px;color:#fff;
  background:linear-gradient(135deg,var(--portal-blue),var(--portal-cyan));box-shadow:0 12px 24px rgba(18,104,243,.20);font-weight:850;cursor:pointer
}
.portal-login-help{display:flex;justify-content:space-between;gap:12px;padding:18px 32px;border-top:1px solid var(--portal-border);color:var(--portal-muted);font-size:11px}
.portal-signed-in-card{padding:40px;text-align:center}
.portal-signed-in-card .portal-button{width:100%;margin-top:10px}
.portal-text-link{display:inline-block;margin-top:16px;font-size:13px;font-weight:800}
.portal-public-notices,.portal-security-section{padding:70px 0}
.portal-public-notices{background:#fff}
.portal-security-section{background:var(--portal-bg)}
.portal-security-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.portal-security-grid>div{padding:27px;border:1px solid var(--portal-border);border-radius:18px;background:#fff}
.portal-security-grid h3{margin:14px 0 8px;color:var(--portal-navy)}
.portal-security-grid p{margin:0;color:var(--portal-muted);font-size:13px}
.portal-security-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#fff;background:var(--portal-green);font-weight:900}

/* Shared portal UI */
.portal-page-main{min-height:calc(100vh - 160px);padding:34px 0 70px}
.portal-page-content{min-height:300px}
.portal-page-content>.portal-dashboard{margin:0}
.portal-page-header{margin-bottom:28px}
.portal-page-header h1{margin:0;color:var(--portal-navy);font-size:42px}
.portal-dashboard{padding:0 0 20px}
.portal-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  margin-bottom:20px;padding:30px;border-radius:var(--portal-radius);
  color:#fff;background:
    radial-gradient(circle at 90% 10%,rgba(127,232,255,.25),transparent 25%),
    linear-gradient(135deg,var(--portal-navy),var(--portal-blue))
}
.portal-welcome h1{margin:7px 0;color:#fff;font-size:clamp(2rem,4vw,3.3rem);line-height:1.05}
.portal-welcome p{margin:0;color:rgba(255,255,255,.74)}
.portal-welcome-admin{background:radial-gradient(circle at 85% 0,rgba(127,232,255,.22),transparent 28%),linear-gradient(135deg,#03152f,#0a4a96)}
.portal-welcome-actions{display:flex;gap:10px;flex-wrap:wrap}
.portal-button{
  min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border:0;border-radius:11px;
  color:#fff;background:linear-gradient(135deg,var(--portal-blue),var(--portal-cyan));box-shadow:0 10px 24px rgba(18,104,243,.20);
  font-size:13px;font-weight:850;cursor:pointer
}
.portal-button:hover{color:#fff;transform:translateY(-2px);box-shadow:0 15px 30px rgba(18,104,243,.26)}
.portal-button-secondary{color:var(--portal-blue);background:#fff}
.portal-button-secondary:hover{color:var(--portal-blue)}
.portal-button-ghost{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.08);box-shadow:none}
.portal-button-success{background:linear-gradient(135deg,#079b56,var(--portal-green))}
.portal-button-danger{background:linear-gradient(135deg,#b42332,var(--portal-red))}
.portal-button-small{min-height:38px;padding:0 13px;font-size:11px}
.portal-tabs{
  position:sticky;top:94px;z-index:200;display:flex;gap:7px;overflow-x:auto;margin-bottom:20px;padding:8px;
  border:1px solid var(--portal-border);border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(4,26,58,.07);backdrop-filter:blur(16px)
}
.portal-tab{
  flex:0 0 auto;min-height:42px;padding:0 15px;border:0;border-radius:10px;color:var(--portal-muted);background:transparent;font-size:12px;font-weight:850;cursor:pointer
}
.portal-tab:hover,.portal-tab.is-active{color:#fff;background:linear-gradient(135deg,var(--portal-blue),var(--portal-cyan))}
.portal-panel{display:none}
.portal-panel.is-active{display:block}
.portal-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.portal-stat{padding:22px;border:1px solid var(--portal-border);border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(4,26,58,.05)}
.portal-stat span{display:block;color:var(--portal-muted);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.portal-stat strong{display:block;margin-top:8px;color:var(--portal-navy);font-size:27px;line-height:1.15}
.portal-grid{display:grid;gap:20px}
.portal-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-grid-admin-employees{grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr)}
.portal-align-start{align-items:start}
.portal-card{
  min-width:0;padding:27px;border:1px solid var(--portal-border);border-radius:var(--portal-radius);background:#fff;box-shadow:0 10px 30px rgba(4,26,58,.07)
}
.portal-card h2{margin:6px 0 14px;color:var(--portal-navy);font-size:24px;line-height:1.15}
.portal-card h3{color:var(--portal-navy)}
.portal-card>p{color:var(--portal-muted);font-size:13px}
.portal-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.portal-card-heading h2{margin-bottom:0}
.portal-live-clock{color:var(--portal-blue);font-size:15px;font-weight:900}
.portal-text-button{padding:0;border:0;color:var(--portal-blue);background:transparent;font-size:11px;font-weight:850;cursor:pointer}
.portal-text-button:hover{color:var(--portal-cyan)}
.portal-text-danger{color:var(--portal-red)}
.portal-count-label{padding:6px 10px;border-radius:999px;color:var(--portal-blue);background:var(--portal-soft);font-size:11px;font-weight:850}
.portal-shift-status{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}
.portal-shift-status>div{padding:16px;border:1px solid var(--portal-border);border-radius:13px;background:#fbfdff}
.portal-shift-status span{display:block;color:var(--portal-muted);font-size:10px;font-weight:800;text-transform:uppercase}
.portal-shift-status strong{display:block;margin-top:4px;color:var(--portal-navy);font-size:16px}
.portal-clock-actions form{margin:0}
.portal-complete-message{display:inline-flex;padding:10px 13px;border-radius:10px;color:#087443;background:#e8f9f0;font-size:12px;font-weight:850}
.portal-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:10px 0 22px}
.portal-section-heading h2{margin:6px 0 0;color:var(--portal-navy);font-size:32px}
.portal-alert{margin-bottom:18px;padding:14px 17px;border-radius:12px;font-size:13px;font-weight:750}
.portal-alert-success{color:#087443;background:#e7f9ef;border:1px solid #bdebd1}
.portal-alert-warning{color:#80520b;background:#fff5dc;border:1px solid #f1dba7}
.portal-alert-error{color:#a3202d;background:#fff0f1;border:1px solid #f0c4c8}
.portal-empty{padding:25px;border:1px dashed var(--portal-border);border-radius:14px;color:var(--portal-muted);background:#fbfdff;text-align:center;font-size:13px}
.portal-access-message{padding:30px;border:1px solid var(--portal-border);border-radius:18px;background:#fff;text-align:center}

/* Forms */
.portal-form{display:grid;gap:15px}
.portal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.portal-form-field{min-width:0}
.portal-form-field-grow{grid-column:span 1}
.portal-form-field label{display:block;margin-bottom:6px;color:var(--portal-text);font-size:11px;font-weight:850}
.portal-form-field small{display:block;margin-top:6px;color:var(--portal-muted);font-size:10px}
.portal-form input,
.portal-form select,
.portal-form textarea,
.portal-filter-form input,
.portal-filter-form select{
  width:100%;min-height:46px;padding:10px 13px;border:1px solid var(--portal-border);border-radius:10px;color:var(--portal-text);background:#fbfdff;outline:none
}
.portal-form textarea{resize:vertical}
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus,
.portal-filter-form input:focus,
.portal-filter-form select:focus{border-color:var(--portal-blue);box-shadow:0 0 0 4px rgba(18,104,243,.09)}
.portal-filter-form{
  display:grid;grid-template-columns:minmax(200px,1fr) 160px 160px auto;align-items:end;gap:12px;margin-bottom:18px;padding:15px;border-radius:14px;background:var(--portal-bg)
}
.portal-row-actions{display:flex;align-items:center;gap:12px}
.portal-row-actions form{margin:0}

/* Tables */
.portal-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--portal-border);border-radius:14px}
.portal-table{width:100%;min-width:740px;border-collapse:collapse;background:#fff}
.portal-table th,.portal-table td{padding:14px 13px;border-bottom:1px solid var(--portal-border);text-align:left;vertical-align:middle}
.portal-table th{color:var(--portal-muted);background:#f7faff;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.portal-table td{font-size:12px}
.portal-table tbody tr:last-child td{border-bottom:0}
.portal-table tbody tr:hover{background:#fbfdff}
.portal-table small{color:var(--portal-muted)}

/* Status badges */
.portal-badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.portal-badge-pending{color:#80520b;background:#fff3cf}
.portal-badge-approved{color:#087443;background:#e3f8ed}
.portal-badge-rejected{color:#a3202d;background:#ffe9eb}
.portal-badge-resolved{color:#315c9c;background:#e9f1ff}

/* Notices */
.portal-notice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.portal-notice{padding:18px;border:1px solid var(--portal-border);border-left:4px solid var(--portal-blue);border-radius:14px;background:#fff}
.portal-notice-important{border-left-color:var(--portal-amber)}
.portal-notice-urgent{border-left-color:var(--portal-red)}
.portal-notice h3{margin:8px 0;color:var(--portal-navy);font-size:17px}
.portal-notice-content{color:var(--portal-muted);font-size:12px}
.portal-notice-content p:last-child{margin-bottom:0}
.portal-notice-meta,.portal-notice-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--portal-muted);font-size:9px;font-weight:750;text-transform:uppercase}
.portal-notice-footer{margin-top:13px;padding-top:11px;border-top:1px solid var(--portal-border)}
.portal-priority{color:var(--portal-blue)}
.portal-notice-important .portal-priority{color:var(--portal-amber)}
.portal-notice-urgent .portal-priority{color:var(--portal-red)}
.portal-notice-admin-list{display:grid;gap:10px}
.portal-notice-admin-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px;border:1px solid var(--portal-border);border-radius:12px}
.portal-notice-admin-item>div{display:flex;flex-direction:column}
.portal-notice-admin-item span{color:var(--portal-muted);font-size:10px}

/* Requests */
.portal-request-list,.portal-request-admin-list{display:grid;gap:13px}
.portal-request-item{padding:16px;border:1px solid var(--portal-border);border-radius:13px;background:#fbfdff}
.portal-request-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.portal-request-heading>div{display:flex;flex-direction:column}
.portal-request-heading span:not(.portal-badge){color:var(--portal-muted);font-size:10px}
.portal-request-item>p,.portal-request-message{color:var(--portal-muted);font-size:12px}
.portal-request-dates{font-weight:750}
.portal-admin-reply{margin-top:12px;padding:13px;border-radius:11px;background:var(--portal-soft)}
.portal-admin-reply strong{color:var(--portal-blue);font-size:10px;text-transform:uppercase}
.portal-admin-reply p{margin:5px 0 0}
.portal-request-admin{display:grid;gap:15px}
.portal-request-admin h3{margin:5px 0 0;font-size:20px}
.portal-request-admin .portal-request-heading p{margin:4px 0 0}
.portal-request-response{padding-top:15px;border-top:1px solid var(--portal-border)}

/* Profile and snapshots */
.portal-profile-list{margin:0}
.portal-profile-list>div{display:grid;grid-template-columns:150px 1fr;gap:20px;padding:12px 0;border-bottom:1px solid var(--portal-border)}
.portal-profile-list>div:last-child{border-bottom:0}
.portal-profile-list dt{color:var(--portal-muted);font-size:11px;font-weight:800}
.portal-profile-list dd{margin:0;color:var(--portal-navy);font-size:13px;font-weight:750}
.portal-snapshot-list{display:grid;gap:10px}
.portal-snapshot-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px;border:1px solid var(--portal-border);border-radius:12px}
.portal-snapshot-item>div{display:flex;flex-direction:column}
.portal-snapshot-item strong{font-size:12px}
.portal-snapshot-item span{color:var(--portal-muted);font-size:10px}

/* Error */
.portal-error-page{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:60px 0}
.portal-error-card{padding:55px;border:1px solid var(--portal-border);border-radius:24px;background:#fff;box-shadow:var(--portal-shadow);text-align:center}
.portal-error-card>strong{display:block;color:var(--portal-blue);font-size:90px;line-height:1}
.portal-error-card h1{color:var(--portal-navy)}

/* Focus */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(22,184,232,.35);outline-offset:3px
}

/* Responsive */
@media(max-width:1100px){
  .portal-login-layout{grid-template-columns:1fr;gap:45px}
  .portal-login-copy{text-align:center}
  .portal-login-copy>p{margin-left:auto;margin-right:auto}
  .portal-login-features{max-width:760px;margin-left:auto;margin-right:auto;text-align:left}
  .portal-login-panel{width:min(100%,620px);margin:0 auto}
  .portal-grid-admin-employees{grid-template-columns:1fr}
  .portal-stat-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .portal-grid-2,.portal-notice-grid{grid-template-columns:1fr}
  .portal-filter-form{grid-template-columns:1fr 1fr}
  .portal-filter-form .portal-button{align-self:end}
  .portal-security-grid{grid-template-columns:1fr}
}
@media(max-width:782px){
  body.admin-bar .portal-site-header{top:46px}
}
@media(max-width:720px){
  .portal-header-inner{min-height:72px}
  .portal-brand-text{display:none}
  .portal-header-dashboard{display:none}
  .portal-user-chip>span:last-child{display:none}
  .portal-login-hero{padding:58px 0}
  .portal-login-copy h1{font-size:clamp(2.6rem,14vw,4.2rem)}
  .portal-login-features{grid-template-columns:1fr}
  .portal-welcome{align-items:flex-start;flex-direction:column;padding:23px}
  .portal-welcome-actions{width:100%}
  .portal-welcome-actions .portal-button{flex:1}
  .portal-tabs{top:82px}
  .portal-stat-grid{grid-template-columns:1fr 1fr}
  .portal-form-grid{grid-template-columns:1fr}
  .portal-shift-status{grid-template-columns:1fr}
  .portal-filter-form{grid-template-columns:1fr}
  .portal-footer-inner{align-items:flex-start;flex-direction:column}
  .portal-login-help{flex-direction:column}
}
@media(max-width:480px){
  .portal-container{width:min(calc(100% - 22px),var(--portal-container))}
  .portal-stat-grid{grid-template-columns:1fr}
  .portal-card{padding:20px;border-radius:16px}
  .portal-section-heading h2{font-size:26px}
  .portal-login-form{padding:24px}
  .portal-login-tabs{grid-template-columns:1fr}
  .portal-security-section,.portal-public-notices{padding:50px 0}
  .portal-profile-list>div{grid-template-columns:1fr;gap:4px}
}


/* Integrated portal inside the main Data Solution website */
.datasolution-employee-portal{
  min-height:70vh;
}
.portal-integrated-dashboard{
  padding:34px 0 72px;
  background:var(--portal-bg);
}
.portal-login-alert{
  margin:18px 24px 0;
  padding:12px 14px;
  border:1px solid #f0c4c8;
  border-radius:11px;
  color:#a3202d;
  background:#fff0f1;
  font-size:12px;
  font-weight:750;
}
body.datasolution-employee-portal-page .site-footer{
  margin-top:0;
}
body.datasolution-employee-portal-page .portal-tabs{
  top:154px;
}
@media(max-width:720px){
  body.datasolution-employee-portal-page .portal-tabs{
    top:86px;
  }
}


/* Version 3.2 — accurate Nepal time and expanded employee management */
.portal-stat-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.portal-clock-meta{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:3px;
  text-align:right;
}
.portal-clock-meta small{
  color:var(--portal-muted);
  font-size:9px;
  font-weight:750;
}
.portal-shift-status-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.portal-attendance-status-line{
  display:flex;
  margin:-4px 0 18px;
}
.portal-clock-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.portal-clock-actions form{
  margin:0;
}
.portal-button-warning{
  background:linear-gradient(135deg,#ce7900,var(--portal-amber));
}
.portal-subsection-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  margin:30px 0 16px;
  padding-top:24px;
  border-top:1px solid var(--portal-border);
}
.portal-subsection-heading h3{
  margin:5px 0 0;
  color:var(--portal-navy);
  font-size:21px;
}
.portal-subsection-heading p{
  max-width:520px;
  margin:0;
  color:var(--portal-muted);
  font-size:12px;
}
.portal-employee-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.portal-employee-setting-card{
  padding:17px;
  border:1px solid var(--portal-border);
  border-radius:14px;
  background:#fbfdff;
}
.portal-employee-setting-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.portal-employee-setting-heading>div{
  display:flex;
  flex-direction:column;
}
.portal-employee-setting-heading strong{
  color:var(--portal-navy);
  font-size:13px;
}
.portal-employee-setting-heading span:not(.portal-badge){
  color:var(--portal-muted);
  font-size:10px;
}
.portal-setting-fields{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.portal-setting-fields label{
  color:var(--portal-muted);
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
}
.portal-setting-fields input,
.portal-setting-fields select{
  width:100%;
  min-height:38px;
  margin-top:5px;
  padding:6px 8px;
  border:1px solid var(--portal-border);
  border-radius:8px;
  color:var(--portal-text);
  background:#fff;
  font-size:11px;
}
.portal-leave-summary{
  margin:12px 0;
  color:var(--portal-muted);
  font-size:10px;
  font-weight:750;
}
.portal-attendance-correction{
  margin-bottom:18px;
  border:1px solid var(--portal-border);
  border-radius:14px;
  background:#fbfdff;
}
.portal-attendance-correction summary{
  padding:15px 17px;
  color:var(--portal-blue);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.portal-attendance-correction-form{
  padding:0 17px 17px;
}
.portal-form-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.portal-form-field-span-2{
  grid-column:span 2;
}

@media(max-width:1180px){
  .portal-stat-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .portal-setting-fields{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .portal-employee-settings-grid{
    grid-template-columns:1fr;
  }
  .portal-shift-status-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .portal-form-grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px){
  .portal-stat-grid{
    grid-template-columns:1fr 1fr;
  }
  .portal-setting-fields,
  .portal-form-grid-4{
    grid-template-columns:1fr;
  }
  .portal-form-field-span-2{
    grid-column:auto;
  }
  .portal-subsection-heading{
    flex-direction:column;
  }
}
