/* Portal EMS — premium polish v3 (20260314) */
:root{
  --premium-shadow-sm: 0 10px 26px rgba(15,23,42,.06);
  --premium-shadow-md: 0 18px 46px rgba(15,23,42,.08);
  --premium-radius-lg: 18px;
  --premium-surface: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,253,.98));
}
body{background:radial-gradient(circle at 0% 0%, rgba(0,165,207,.05), transparent 24%),radial-gradient(circle at 100% 0%, rgba(0,80,158,.05), transparent 22%),var(--bg) !important;}
.container,.main{animation:fadeUp .28s ease;}
@keyframes fadeUp{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.card,.kpiCard,.miniStat,.procRow,.priorityItem,.pendingCard,.statusTile,.featureCard,.guidedCard,.summaryMetric,.softList__item,.authCard--clean,.profileMenu,.notifPanel,.cmdk__panel,.tableWrap,.table-wrap,.dropzone,.formCard,.moduleCard,.publicHeroCard,.publicPromoCard{box-shadow:var(--premium-shadow-sm) !important;}
.card,.kpiCard,.miniStat,.procRow,.priorityItem,.pendingCard,.statusTile,.featureCard,.guidedCard,.summaryMetric,.authCard--clean,.profileMenu,.notifPanel,.cmdk__panel,.tableWrap,.table-wrap,.dropzone,.formCard{border-radius:var(--premium-radius-lg) !important;}
.card,.kpiCard,.miniStat,.procRow,.priorityItem,.pendingCard,.statusTile,.summaryMetric,.guidedCard,.featureCard,.softList__item,.tableWrap,.table-wrap,.dropzone,.formCard{background:var(--premium-surface) !important;border-color:rgba(15,23,42,.08) !important;}
.card:hover,.kpiCard:hover,.pendingCard:hover,.guidedCard:hover,.featureCard:hover,.moduleCard:hover,.summaryMetric:hover,.procRow:hover,.priorityItem:hover,.softList__item:hover{box-shadow:var(--premium-shadow-md) !important;}
.topbar{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 10px 24px rgba(15,23,42,.05);}
.topbar__left,.topbar__right{gap:12px !important;}
.brand{gap:12px;}.brand__logo{width:34px;height:34px;border-radius:12px;padding:6px;}.brand__name{letter-spacing:-.02em;}
.search{position:relative;display:flex;align-items:center;gap:10px;}.search input{width:380px;max-width:46vw;padding:12px 16px;padding-right:76px;border-radius:16px;font-size:14px;}
.searchShortcut{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:1px solid rgba(15,23,42,.12);background:rgba(255,255,255,.78);color:rgba(15,23,42,.64);border-radius:10px;padding:4px 8px;font-size:11px;font-weight:700;letter-spacing:.02em;pointer-events:auto;}.searchShortcut:hover{background:#fff;color:#0f172a;}
.company.company-select select,.company-in-profile select{border-radius:14px !important;padding:11px 14px !important;font-weight:600;}
.iconbtn,.profileBtn{border-radius:14px !important;}
.profileBtn{padding:6px 10px 6px 6px !important;background:rgba(255,255,255,.72) !important;border:1px solid rgba(15,23,42,.09) !important;}.profileBtn:hover{background:rgba(255,255,255,.95) !important;box-shadow:var(--premium-shadow-sm);}.profileBtn__name{max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.avatar,.sidebarFooter__avatar,.sidebarFooter__avatar--premium{box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 20px rgba(0,80,158,.12);}
.profileMenu,.notifPanel,.cmdk__panel{background:rgba(255,255,255,.96) !important;border:1px solid rgba(15,23,42,.10) !important;}.notifPanel{border-radius:18px !important;}.notifItem{border-radius:14px;}.notifItem:hover{background:rgba(0,80,158,.05) !important;}
.hero,.dashboardHero,.pageHead{position:relative;overflow:hidden;}
.hero::after,.dashboardHero::after,.pageHead::after{content:'';position:absolute;inset:auto -10% -40px auto;width:260px;height:260px;border-radius:999px;background:radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);pointer-events:none;}
.hero__eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.12);backdrop-filter:blur(12px);}.hero h1 span{color:rgba(255,255,255,.86);}
.heroMetaBar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px;}.heroMetaBar__item{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:13px 14px;backdrop-filter:blur(12px);}.heroMetaBar__label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:rgba(255,255,255,.72);margin-bottom:6px;}.heroMetaBar__value{font-weight:800;color:#fff;}.heroMetaBar__value small{display:block;font-size:12px;font-weight:600;color:rgba(255,255,255,.72);margin-top:5px;}
.heroQuickActions .btn,.card .btn,.publicTopbar .btn{border-radius:14px !important;}.heroQuickActions .btn--primary,.publicTopbar .btn--primary,.authCard .btn--primary{box-shadow:0 12px 24px rgba(0,80,158,.20);}.heroInlineStats__item{min-height:94px;}
.scoreRing{position:relative;box-shadow:inset 0 0 0 8px rgba(255,255,255,.62),0 20px 40px rgba(0,80,158,.10);}.scoreRing::before{content:'';position:absolute;inset:8px;border-radius:50%;border:1px dashed rgba(0,80,158,.18);}.scoreRing span{position:relative;z-index:1;}
.summaryGrid,.statusTiles,.pendingBoard,.guidedGrid,.featureGrid,.moduleGrid{gap:14px !important;}
.statusTile__state,.pendingCard__title,.guidedCard__title,.featureCard__title,.summaryMetric strong,.kpiCard__value,.miniStat__value{letter-spacing:-.03em;}
.pendingCard__count{min-width:58px;text-align:right;}.pendingCard__state,.statusTile__percent{font-weight:600;}
.checkItem{border-radius:16px !important;transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;}.checkItem:hover{transform:translateY(-1px);box-shadow:var(--premium-shadow-sm);}.checkItem__icon{box-shadow:inset 0 1px 0 rgba(255,255,255,.5);}
.moduleCard{border-radius:22px !important;overflow:hidden;min-height:208px;}.moduleCard::before{opacity:.88 !important;}.moduleCard__icon{box-shadow:0 12px 24px rgba(2,6,23,.18);}.moduleCard__cta{display:inline-flex;align-items:center;gap:8px;width:fit-content;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);}.moduleCard__cta::after{content:'→';}
.sidebar .navGroup{margin-bottom:12px;}.sidebar .navGroup__title{width:100%;display:flex;align-items:center;justify-content:space-between;border-radius:14px !important;padding:12px 14px !important;font-weight:700;border:none;cursor:pointer;text-align:left;}.sidebar .nav a{border-radius:14px !important;padding:12px 12px !important;}
.sidebar .ico,.menuMiniIcon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);font-size:11px;font-weight:800;letter-spacing:.02em;}.sidebar .nav a.active .ico{background:rgba(0,165,207,.22);border-color:rgba(0,165,207,.36);}.sidebarCompany{background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)) !important;border-radius:18px !important;}.sidebarFooter__profile,.sidebarFooter__logout{border-radius:16px !important;}
.auth__wrap{padding:28px 20px !important;}.authCard--clean{width:min(980px,100%) !important;display:grid;grid-template-columns:1.08fr .92fr;gap:0 !important;overflow:hidden;padding:0 !important;background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,253,.98)) !important;}.authCard--clean .authCover{min-height:100%;background:linear-gradient(140deg, rgba(0,51,102,.92), rgba(0,80,158,.88) 58%, rgba(0,165,207,.78)), url('../img/bg_login_ems.png') center/cover no-repeat !important;}.authCard--clean > :not(.authCover){position:relative;z-index:1;}.authSide{position:relative;padding:38px 34px;color:#fff;}.authSide::after{content:'';position:absolute;inset:auto -30px -40px auto;width:240px;height:240px;border-radius:999px;background:radial-gradient(circle, rgba(255,255,255,.20), transparent 68%);}.authSide__eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;}.authSide h2{margin:18px 0 10px;font-size:clamp(28px,4vw,40px);line-height:1.05;letter-spacing:-.04em;}.authSide p{color:rgba(255,255,255,.82);max-width:48ch;}.authTrust{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;}.authTrust__pill{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);color:#fff;font-size:13px;font-weight:600;}.authTrust__pill::before{content:'•';color:rgba(255,255,255,.74);}.authFormSide{padding:34px 32px 30px;display:flex;flex-direction:column;justify-content:center;}.authBrand{margin-bottom:22px !important;}.authBrand__mascot{width:52px !important;height:52px !important;padding:8px !important;background:rgba(0,80,158,.08) !important;border:1px solid rgba(0,80,158,.10) !important;}.authBrand__title{font-size:20px !important;}.authIntro h1{font-size:clamp(28px,3vw,34px) !important;letter-spacing:-.04em;margin-bottom:10px !important;}.authTrustRow{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px;}.authTrustRow__item{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;border:1px solid rgba(15,23,42,.08);background:rgba(247,250,253,.92);color:#0f172a;font-size:12px;font-weight:700;}.authTrustRow__item::before{content:'';width:7px;height:7px;border-radius:999px;background:linear-gradient(135deg, var(--ems-blue), var(--ems-cyan));}.passwordInput{position:relative;}.passwordInput input{padding-right:94px !important;}.passwordToggle{position:absolute;top:50%;right:10px;transform:translateY(-50%);border:1px solid rgba(15,23,42,.10);background:#fff;border-radius:10px;padding:7px 10px;font-size:12px;font-weight:700;color:#0f172a;}.passwordToggle:hover{box-shadow:var(--premium-shadow-sm);}.authSubNote{margin-top:12px;color:rgba(15,23,42,.60);font-size:12px;line-height:1.5;}.authAssist{margin-top:14px !important;}.authFooter{margin-top:22px !important;padding-top:18px;border-top:1px solid rgba(15,23,42,.08);}
.publicTopbar .brand{gap:12px;}.publicTopbar .brandMark{width:34px;height:34px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:rgba(0,80,158,.08);border:1px solid rgba(0,80,158,.10);}.publicTopbar .brandMeta{display:flex;flex-direction:column;line-height:1.05;}.publicTopbar .brandMeta small{color:var(--muted);font-size:12px;}
.publicHero{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;margin-top:12px;margin-bottom:16px;}.publicHeroCard{position:relative;overflow:hidden;border-radius:24px;padding:28px;background:linear-gradient(135deg, rgba(0,51,102,.96), rgba(0,80,158,.92) 58%, rgba(0,165,207,.82));color:#fff;}.publicHeroCard h1{color:#fff;font-size:clamp(32px,4vw,44px);line-height:1.02;letter-spacing:-.05em;margin-bottom:12px;}.publicHeroCard p{color:rgba(255,255,255,.82);max-width:58ch;}.publicHeroCard__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}.publicHeroCard__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px;}.publicHeroCard__stat{border-radius:16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);padding:12px 13px;}.publicHeroCard__stat span{display:block;color:rgba(255,255,255,.70);font-size:12px;margin-bottom:6px;}.publicHeroCard__stat strong{font-size:20px;}.publicPromoCard{border-radius:24px;padding:24px;background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,253,.98));border:1px solid rgba(15,23,42,.08);}.publicPromoCard__list{display:grid;gap:12px;margin-top:16px;}.publicPromoCard__item{display:flex;gap:10px;align-items:flex-start;}.publicPromoCard__bullet{width:26px;height:26px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:rgba(0,80,158,.08);color:var(--ems-blue);font-weight:800;flex:0 0 auto;}
.emptyState,.cmdkEmpty{border-radius:16px;background:linear-gradient(180deg, rgba(247,250,253,.98), rgba(255,255,255,.98));border:1px dashed rgba(15,23,42,.14);}
@media (max-width:1100px){.search input{width:300px;max-width:40vw;}.authCard--clean{grid-template-columns:1fr !important;}.authCover{min-height:220px !important;}}
@media (max-width:860px){.publicHero,.heroMetaBar,.publicHeroCard__stats{grid-template-columns:1fr;}.searchShortcut{display:none;}}
@media (max-width:720px){.search input{width:100%;max-width:100%;}.search{width:min(100%,360px);}.authFormSide{padding:26px 20px 22px;}.authSide{padding:28px 20px;}.authBrand__mascot{width:46px !important;height:46px !important;}.publicHeroCard,.publicPromoCard{padding:20px;}}
@media (max-width:480px){.heroMetaBar{margin-top:14px;}.heroMetaBar__item{padding:12px;}.authTrustRow__item,.authTrust__pill{width:100%;justify-content:flex-start;}.publicHeroCard__actions .btn{width:100%;justify-content:center;}}


/* Fixes v3.1 — login balance */
.auth__wrap{max-width:1120px !important; width:100% !important;}
.authCard--clean{width:min(1040px,100%) !important; grid-template-columns:minmax(360px, 1.02fr) minmax(380px, .98fr) !important;}
.authCard--clean .authCover{display:block !important;}
.authSide{padding:34px 32px !important;}
.authSide h2{font-size:clamp(24px, 3vw, 34px) !important; max-width:14ch; text-wrap:balance;}
.authSide p{font-size:15px !important; line-height:1.55 !important; max-width:32ch !important;}
.authTrust{gap:8px !important; margin-top:18px !important;}
.authTrust__pill{padding:9px 11px !important; font-size:12px !important;}
.authFormSide{padding:34px 34px 30px !important;}
.authIntro h1{font-size:clamp(30px, 3vw, 36px) !important; text-wrap:balance;}
.authIntro .muted{max-width:34ch;}
@media (max-width:1100px){
  .auth__wrap{max-width:760px !important;}
  .authCard--clean{grid-template-columns:1fr !important;}
  .authSide h2{max-width:18ch;}
}
@media (max-width:720px){
  .auth__wrap{max-width:560px !important;}
  .authCard--clean{width:100% !important;}
  .authSide{padding:24px 20px !important;}
  .authFormSide{padding:24px 20px 22px !important;}
}


/* Fixes v3.2 — login refinement */
.auth__wrap{min-height:calc(100vh - 24px) !important;display:flex;align-items:center;justify-content:center;padding:36px 24px !important;}
.authCard--clean{width:min(1160px,100%) !important;grid-template-columns:minmax(420px,.98fr) minmax(460px,1.02fr) !important;min-height:680px;}
.authCard--clean .authCover{position:relative;isolation:isolate;background:linear-gradient(145deg, rgba(0,51,102,.96), rgba(0,80,158,.90) 60%, rgba(0,165,207,.82)), url('../img/bg_login_ems.png') center/cover no-repeat !important;}
.authCard--clean .authCover::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.02));opacity:.55;mix-blend-mode:screen;pointer-events:none;}
.authCard--clean .authCover::after{content:'';position:absolute;inset:auto -80px -80px auto;width:320px;height:320px;border-radius:999px;background:radial-gradient(circle, rgba(255,255,255,.16), transparent 68%);pointer-events:none;}
.authSide{display:flex;flex-direction:column;justify-content:center;padding:46px 40px !important;}
.authSide__eyebrow{align-self:flex-start;margin-bottom:6px;}
.authSide h2{max-width:12ch !important;font-size:clamp(30px,3vw,42px) !important;line-height:1.02 !important;margin:10px 0 14px !important;}
.authSide p{max-width:34ch !important;font-size:16px !important;line-height:1.65 !important;margin:0 !important;}
.authTrust{margin-top:24px !important;gap:10px !important;}
.authTrust__pill{backdrop-filter:blur(6px);}
.authFormSide{padding:42px 42px 34px !important;justify-content:center;min-width:0;}
.authBrand{display:flex;align-items:center;gap:14px;margin-bottom:18px !important;}
.authBrand__mascot{width:44px !important;height:44px !important;padding:7px !important;border-radius:14px !important;object-fit:contain;background:rgba(0,80,158,.08) !important;}
.authBrand__mascot--symbol{background:#fff !important;border:1px solid rgba(0,80,158,.10) !important;box-shadow:0 10px 18px rgba(15,23,42,.05);}
.authBrand__title{font-size:19px !important;line-height:1.05;}
.authBrand__sub{font-size:13px !important;line-height:1.35;}
.authIntro h1{font-size:clamp(34px,3.2vw,42px) !important;line-height:1.03 !important;margin:0 0 12px !important;}
.authIntro .muted{max-width:30ch;font-size:16px !important;line-height:1.55 !important;margin-bottom:0 !important;}
.authTrustRow{margin:18px 0 22px !important;gap:10px !important;}
.authTrustRow__item{padding:10px 13px !important;font-size:12px !important;}
.authFormSide .form{display:grid;gap:16px;}
.authFormSide label span{display:block;margin-bottom:7px;font-weight:700;color:#334155;}
.passwordInput input{padding-right:116px !important;}
.passwordToggle{min-width:88px;height:40px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;}
.authFormSide .btn--primary{margin-top:4px;height:52px;font-size:15px;}
.authAssist{margin-top:8px !important;text-align:center;}
.authSubNote{margin-top:4px;font-size:13px !important;}
.authFooter{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:24px !important;}
@media (max-width:1180px){.authCard--clean{width:min(1080px,100%) !important;grid-template-columns:minmax(360px,.95fr) minmax(420px,1.05fr) !important;}}
@media (max-width:1024px){.auth__wrap{padding:24px 18px !important;}.authCard--clean{grid-template-columns:1fr !important;min-height:auto;}.authSide{padding:34px 28px !important;}.authFormSide{padding:30px 28px 26px !important;}.authSide h2{max-width:16ch !important;}}
@media (max-width:720px){.auth__wrap{padding:18px 14px !important;}.authSide{padding:24px 20px !important;}.authFormSide{padding:24px 20px 22px !important;}.authIntro h1{font-size:32px !important;}.authBrand{margin-bottom:14px !important;}.authBrand__mascot{width:40px !important;height:40px !important;} .authFooter{font-size:12px;} }


/* Fixes v3.3 — login final + sidebar usability */
body.auth{display:block !important;min-height:100vh !important;padding:0 !important;overflow-y:auto !important;}
.auth__wrap{min-height:100vh !important;display:flex;align-items:flex-start !important;justify-content:center;padding:22px 24px 28px !important;box-sizing:border-box;}
.authCard--clean{width:min(1120px,100%) !important;grid-template-columns:minmax(400px,.94fr) minmax(470px,1.06fr) !important;min-height:auto !important;margin:0 auto;}
.authCard--clean .authCover{min-height:100%;}
.authSide{padding:36px 34px !important;justify-content:flex-start !important;}
.authSide__eyebrow{margin-bottom:10px;font-size:11px !important;padding:7px 11px !important;}
.authSide h2{max-width:11ch !important;font-size:clamp(28px,2.8vw,38px) !important;line-height:1.02 !important;margin:8px 0 16px !important;}
.authSide p{max-width:30ch !important;font-size:15px !important;line-height:1.6 !important;}
.authTrust{margin-top:20px !important;gap:8px !important;}
.authTrust__pill{padding:9px 12px !important;font-size:12px !important;}
.authFormSide{padding:34px 38px 30px !important;justify-content:flex-start !important;}
.authBrand{margin-bottom:14px !important;}
.authBrand__mascot{width:40px !important;height:40px !important;}
.authBrand__title{font-size:18px !important;}
.authIntro h1{font-size:clamp(30px,3vw,38px) !important;line-height:1.04 !important;margin-bottom:10px !important;}
.authIntro .muted{max-width:32ch !important;font-size:15px !important;}
.authTrustRow{margin:16px 0 20px !important;gap:8px !important;}
.authTrustRow__item{padding:8px 12px !important;font-size:12px !important;}
.authFormSide .form{gap:14px !important;}
.authFormSide .btn--primary{height:50px !important;}
.authAssist{margin-top:6px !important;}
.authSubNote{margin-top:2px !important;}
.authFooter{margin-top:18px !important;padding-top:14px !important;}
@media (max-width:1100px){.auth__wrap{padding:18px 18px 24px !important;}.authCard--clean{width:min(980px,100%) !important;grid-template-columns:1fr !important;}.authSide{padding:26px 24px !important;}.authSide h2{max-width:15ch !important;}.authFormSide{padding:28px 24px 24px !important;}}
@media (max-width:640px){.auth__wrap{padding:12px !important;}.authSide{padding:22px 18px !important;}.authFormSide{padding:22px 18px 20px !important;}.authTrust__pill,.authTrustRow__item{width:100%;justify-content:flex-start;}}
