/* PeopleOps HR V14 — Pulse UI refinement
   UI/UX only. Business logic, routes, database and permissions are unchanged. */
:root{
  --p14-bg:#f5f7fb;
  --p14-surface:#ffffff;
  --p14-surface-2:#f8fafc;
  --p14-ink:#101828;
  --p14-ink-2:#344054;
  --p14-muted:#667085;
  --p14-line:#e4e7ec;
  --p14-blue:#365cf5;
  --p14-blue-2:#2447d7;
  --p14-cyan:#10b8c7;
  --p14-green:#12a66a;
  --p14-red:#d14b55;
  --p14-amber:#c87d08;
  --p14-navy:#0d1730;
  --p14-navy-2:#152341;
  --p14-shadow:0 12px 34px rgba(16,24,40,.08);
  --p14-shadow-lg:0 22px 64px rgba(16,24,40,.14);
  --p14-radius:22px;
  --p14-radius-sm:15px;
}
html,body{background:var(--p14-bg)!important;color:var(--p14-ink)!important}
body{background:
  radial-gradient(circle at 4% 0%,rgba(54,92,245,.07),transparent 27rem),
  radial-gradient(circle at 98% 12%,rgba(16,184,199,.055),transparent 23rem),
  var(--p14-bg)!important}
body:before{opacity:.18!important;background-size:42px 42px!important}

/* High contrast foundation */
.page-title,.card-title,.surface-panel-head h2,.surface-panel-head h3,.workday-welcome h1,
.profile-group h3,.salary-headline strong,.attendance-day-head strong{color:var(--p14-ink)!important}
.page-subtitle,.text-muted,.form-help,.stat-note,.calendar-meta{color:var(--p14-muted)!important}
.eyebrow{color:#5268b8!important;font-weight:850!important;letter-spacing:1.35px!important}
.card,.surface-panel{background:#fff!important;border:1px solid rgba(228,231,236,.95)!important;box-shadow:var(--p14-shadow)!important;backdrop-filter:none!important}
.card-head,.surface-panel-head{background:#fff!important;border-bottom:1px solid #edf0f5!important}

/* Sidebar — quieter, more premium, clearer labels */
.sidebar{background:
  radial-gradient(circle at 15% 0%,rgba(72,104,255,.27),transparent 16rem),
  linear-gradient(180deg,#111a33 0%,#0e172c 54%,#0a1223 100%)!important;box-shadow:14px 0 45px rgba(13,23,48,.12)!important}
.brand{font-size:16px!important;letter-spacing:-.25px!important}
.brand-mark{background:linear-gradient(145deg,#5578ff,#365cf5 60%,#14aebf)!important;border-radius:13px!important;box-shadow:0 12px 28px rgba(54,92,245,.3)!important}
.nav-label,.nav-section-label{color:#7f8ba8!important}
.nav-link{color:#bac4d8!important;border-radius:13px!important}
.nav-link:hover{color:#fff!important;background:rgba(255,255,255,.065)!important}
.nav-link.active{background:linear-gradient(90deg,rgba(61,96,245,.27),rgba(16,184,199,.10))!important;border-color:rgba(113,143,255,.18)!important;color:#fff!important}
.nav-link.active:before{background:linear-gradient(#66d5df,#5b76ff)!important;box-shadow:0 0 18px rgba(75,110,255,.65)!important}

/* Top bar */
.topbar{height:72px!important;background:rgba(255,255,255,.88)!important;border-bottom:1px solid #e9edf3!important;backdrop-filter:blur(18px) saturate(140%)!important}
.topbar-title{color:#475467!important;font-weight:750!important}
.avatar{background:#eef2ff!important;color:#3452d7!important;border-color:#dce4ff!important}
.notification-trigger{background:#fff!important;border-color:#e2e7ef!important}

/* Buttons and form controls — obvious actions, readable text */
.btn{border-radius:13px!important;font-weight:780!important}
.btn-primary,.btn-hero{background:linear-gradient(135deg,#4267ff,#3153e5)!important;color:#fff!important;border-color:#3153e5!important;box-shadow:0 10px 28px rgba(54,92,245,.23)!important}
.btn-primary:hover,.btn-hero:hover{box-shadow:0 14px 34px rgba(54,92,245,.31)!important}
.btn-secondary{background:#fff!important;color:#344054!important;border-color:#d5dae3!important}
.form-control{background:#fff!important;color:#101828!important;border-color:#d7dce5!important;box-shadow:0 1px 2px rgba(16,24,40,.02)!important}
.form-control::placeholder{color:#98a2b3!important}
.form-control:focus{border-color:#6f8aff!important;box-shadow:0 0 0 4px rgba(54,92,245,.10)!important}

/* Dashboard — desktop */
.role-employee .employee-dashboard{gap:20px!important}
.role-employee .workday-welcome{padding:10px 2px 2px!important}
.role-employee .workday-welcome h1{font-size:35px!important;letter-spacing:-1.25px!important}
.role-employee .workday-welcome p:not(.eyebrow){color:#667085!important;font-weight:520!important}
.role-employee .workday-welcome-status{background:#fff!important;border:1px solid #e4e7ec!important;box-shadow:0 8px 26px rgba(16,24,40,.07)!important}
.role-employee .workday-welcome-status span:not(.status-dot){color:#667085!important}
.role-employee .workday-welcome-status strong{color:#101828!important}

.role-employee .workday-hero{grid-template-columns:minmax(0,1.55fr) minmax(330px,.62fr)!important;gap:18px!important}
.role-employee .workday-hero-main{min-height:300px!important;border-radius:28px!important;padding:30px!important;background:
  radial-gradient(circle at 92% 14%,rgba(39,209,219,.22),transparent 31%),
  radial-gradient(circle at 4% 100%,rgba(84,103,255,.28),transparent 34%),
  linear-gradient(135deg,#121d39 0%,#1a2a50 58%,#143847 100%)!important;box-shadow:0 24px 68px rgba(15,28,58,.22)!important}
.role-employee .workday-hero-main .eyebrow,.role-employee .eyebrow-inverse{color:#b9c9ff!important}
.role-employee .workday-hero-main h2{color:#fff!important;font-size:36px!important;letter-spacing:-1.2px!important;text-shadow:0 2px 12px rgba(0,0,0,.15)!important}
.role-employee .workday-hero-main .hero-context{color:#d7e2f2!important;font-size:14px!important}
.role-employee .workday-status-badge{background:rgba(255,255,255,.13)!important;color:#fff!important;border:1px solid rgba(255,255,255,.19)!important;backdrop-filter:blur(10px)!important}
.role-employee .workday-progress{background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.13)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
.role-employee .workday-progress-copy span{color:#c7d4e8!important}
.role-employee .workday-progress-copy strong{color:#fff!important}
.role-employee .workday-progress-copy strong small{color:#9ce7eb!important}
.role-employee .workday-progress-bar{background:rgba(255,255,255,.14)!important}
.role-employee .workday-progress-bar span{background:linear-gradient(90deg,#32d2dc,#7fa4ff)!important;box-shadow:0 0 16px rgba(50,210,220,.32)!important}
.role-employee .workday-metrics{border-color:rgba(255,255,255,.12)!important}
.role-employee .workday-metrics>div{background:rgba(255,255,255,.055)!important;border-color:rgba(255,255,255,.10)!important}
.role-employee .workday-metrics span{color:#c8d5e7!important}
.role-employee .workday-metrics strong{color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.14)!important}

.role-employee .workday-action-panel{border-radius:28px!important;background:linear-gradient(160deg,#fff 0%,#f8fbff 58%,#eef7ff 100%)!important;border:1px solid #dfe7f5!important;box-shadow:0 18px 52px rgba(31,54,94,.11)!important;padding:28px!important;position:relative;overflow:hidden}
.role-employee .workday-action-panel:before{content:"";position:absolute;right:-50px;top:-60px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(54,92,245,.16),rgba(16,184,199,.04) 58%,transparent 70%);pointer-events:none}
.role-employee .workday-action-panel .action-panel-label{color:#586b9a!important;font-size:10px!important;font-weight:900!important;letter-spacing:1.4px!important;text-transform:uppercase}
.role-employee .workday-action-panel>strong{color:#101828!important;font-size:29px!important;letter-spacing:-.8px!important}
.role-employee .workday-action-panel>p{color:#667085!important;font-size:13px!important;line-height:1.55!important}
.role-employee .workday-action-panel .btn-hero{min-height:52px!important;border-radius:15px!important;font-size:14px!important}
.role-employee .last-punch-card,.role-employee .live-work-timer{background:#fff!important;border:1px solid #e4eaf3!important}
.role-employee .last-punch-card span,.role-employee .live-work-timer span{color:#667085!important}
.role-employee .last-punch-card strong,.role-employee .live-work-timer strong{color:#101828!important}

/* Summary chips */
.role-employee .workday-kpis{gap:12px!important}
.role-employee .workday-kpis article{background:#fff!important;border:1px solid #e5e9f0!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(16,24,40,.055)!important;padding:17px 18px!important;position:relative;overflow:hidden}
.role-employee .workday-kpis article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(#365cf5,#10b8c7);opacity:.72}
.role-employee .workday-kpis span{color:#667085!important}
.role-employee .workday-kpis strong{color:#101828!important;font-size:18px!important}
.role-employee .workday-kpis small{color:#7b8496!important}

/* Information panels */
.surface-panel-head h2{font-size:17px!important;letter-spacing:-.25px!important}
.surface-panel-head a{font-weight:750!important}
.workday-timeline li div span,.workday-timeline li time,.health-summary p,.weekly-day small,.upcoming-list span,.rules-list p{color:#667085!important}
.workday-timeline li div strong,.weekly-day strong,.upcoming-list strong,.rules-list strong,.health-summary strong{color:#101828!important}
.health-summary>div{background:#fff!important}
.weekly-day{background:#fff!important;border-color:#e7ebf1!important}
.weekly-day.is-today{background:#eef3ff!important;border-color:#8aa1ff!important}

/* Tables / calendars / modals — contrast cleanup */
.table th{color:#667085!important;background:#f8fafc!important}
.table td{color:#263247!important;background:#fff!important}
.table tbody tr:hover td{background:#f8faff!important}
.calendar-weekdays div{color:#667085!important;background:#f8fafc!important}
.calendar-day{color:#101828!important;background:#fff!important}
.calendar-number{color:#101828!important}
.app-dialog,.attendance-day-modal-card{background:#fff!important;color:#101828!important}
.dialog-head,.dialog-body,.dialog-actions{color:#101828!important}

/* New mobile-only quick punch. It is intentionally not a new business action; it uses the same attendance route. */
.mobile-punch-spotlight{display:none}

/* Mobile-first refinement */
@media(max-width:800px){
  body{background:#f5f7fb!important}
  body:before{display:none!important}
  .content{padding:14px 12px 102px!important}
  .topbar{height:62px!important;padding:0 12px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 1px 0 #edf0f4!important}
  .topbar-mobile-brand{font-size:17px!important;color:#101828!important}
  .mobile-menu,.notification-trigger{background:#fff!important;color:#344054!important;border-color:#e3e7ee!important;box-shadow:0 4px 14px rgba(16,24,40,.05)!important}
  .avatar{background:#eef2ff!important;color:#365cf5!important}

  .role-employee .employee-dashboard{display:flex!important;flex-direction:column!important;gap:12px!important;max-width:none!important}
  .role-employee .mobile-punch-spotlight{display:block!important;order:-10;position:relative;overflow:hidden;border-radius:26px;padding:18px;background:
    radial-gradient(circle at 95% -5%,rgba(63,220,226,.22),transparent 36%),
    linear-gradient(145deg,#111c38 0%,#1a2b53 64%,#16424b 100%);box-shadow:0 22px 50px rgba(17,31,62,.24);color:#fff;isolation:isolate}
  .role-employee .mobile-punch-spotlight:before{content:"";position:absolute;width:170px;height:170px;right:-88px;bottom:-94px;border-radius:50%;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.018);z-index:-1}
  .mobile-punch-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
  .mobile-punch-topline>div{display:grid;gap:2px}.mobile-punch-kicker{font-size:9px;letter-spacing:1.35px;text-transform:uppercase;color:#aebfe0;font-weight:900}.mobile-punch-topline>div>strong{font-size:13px;color:#fff}
  .mobile-punch-state{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);font-size:9px;font-weight:850;color:#fff;text-transform:uppercase;letter-spacing:.45px;white-space:nowrap}.mobile-punch-state i{width:7px;height:7px;border-radius:50%;background:#58d59b;box-shadow:0 0 0 4px rgba(88,213,155,.10)}.mobile-punch-state.status-absent i{background:#ff747c}.mobile-punch-state.status-on_break i{background:#ffc85b}
  .mobile-punch-copy{padding:20px 0 14px}.mobile-punch-copy h2{margin:0;color:#fff;font-size:28px;line-height:1.04;letter-spacing:-.9px}.mobile-punch-copy p{margin:7px 0 0;max-width:34ch;color:#c8d5e8;font-size:12.5px;line-height:1.5}
  .mobile-punch-button{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px 12px;border-radius:17px;background:#fff;color:#152344;box-shadow:0 12px 26px rgba(0,0,0,.16)}.mobile-punch-button:active{transform:scale(.985)}.mobile-punch-button-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#4267ff,#10b8c7);color:#fff;font-size:20px;font-weight:900}.mobile-punch-button>span:nth-child(2){display:grid;gap:1px}.mobile-punch-button b{color:#101828;font-size:14px}.mobile-punch-button small{color:#667085;font-size:10px}.mobile-punch-button-arrow{color:#365cf5;font-size:20px;font-weight:900;padding-right:3px}
  .mobile-punch-meta{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin-top:14px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.09)}.mobile-punch-meta>div{padding:10px 11px;background:rgba(10,18,38,.18)}.mobile-punch-meta span{display:block;color:#aebdd5;font-size:8.5px;text-transform:uppercase;letter-spacing:.8px;font-weight:800}.mobile-punch-meta strong{display:block;margin-top:2px;color:#fff;font-size:12px;font-variant-numeric:tabular-nums}

  /* Action appears at the top only once on mobile. */
  .role-employee .workday-action-panel{display:none!important}
  .role-employee .workday-hero{grid-template-columns:1fr!important;gap:0!important;order:0}
  .role-employee .workday-hero-main{min-height:0!important;padding:18px!important;border-radius:22px!important;background:#fff!important;color:#101828!important;box-shadow:0 8px 26px rgba(16,24,40,.065)!important;border:1px solid #e5e9f0!important}
  .role-employee .workday-hero-main:before,.role-employee .workday-hero-main:after{display:none!important}
  .role-employee .workday-hero-main .eyebrow,.role-employee .workday-hero-main .eyebrow-inverse{color:#5268b8!important}
  .role-employee .workday-hero-main h2{color:#101828!important;font-size:24px!important;text-shadow:none!important}
  .role-employee .workday-hero-main .hero-context{color:#667085!important;font-size:12px!important}
  .role-employee .workday-status-badge{background:#eef2ff!important;color:#3552cf!important;border-color:#dce4ff!important}
  .role-employee .workday-progress{margin-top:15px!important;padding:13px!important;background:#f8fafc!important;border-color:#e7ebf1!important}
  .role-employee .workday-progress-copy span{color:#667085!important}.role-employee .workday-progress-copy strong{color:#101828!important}.role-employee .workday-progress-copy strong small{color:#0b8f9a!important}
  .role-employee .workday-progress-bar{height:7px!important;background:#e9edf4!important}.role-employee .workday-progress-bar span{background:linear-gradient(90deg,#365cf5,#10b8c7)!important;box-shadow:none!important}
  .role-employee .workday-metrics{margin-top:12px!important;gap:7px!important;border:0!important}.role-employee .workday-metrics>div{padding:10px!important;border:1px solid #e5e9f0!important;border-radius:12px!important;background:#fff!important}.role-employee .workday-metrics span{color:#667085!important;font-size:8.5px!important}.role-employee .workday-metrics strong{color:#101828!important;text-shadow:none!important;font-size:15px!important}

  .role-employee .workday-welcome{order:-5;padding:2px 2px 0!important;display:block!important}.role-employee .workday-welcome h1{font-size:25px!important;line-height:1.08!important;letter-spacing:-.75px!important}.role-employee .workday-welcome p:not(.eyebrow){font-size:12px!important}.role-employee .workday-welcome-status{display:none!important}
  .dashboard-notifications{order:-4}
  .role-employee .workday-kpis{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;gap:9px!important;padding:1px 1px 4px!important;margin:0 -1px!important;scrollbar-width:none}.role-employee .workday-kpis::-webkit-scrollbar{display:none}.role-employee .workday-kpis article{min-width:176px!important;scroll-snap-align:start;padding:13px 14px!important;border-radius:16px!important}.role-employee .workday-kpis strong{font-size:16px!important}.role-employee .workday-kpis small{font-size:9.5px!important}

  .role-employee .employee-dashboard-grid{gap:12px!important}.role-employee .surface-panel{border-radius:19px!important;box-shadow:0 7px 22px rgba(16,24,40,.055)!important}.surface-panel-head{padding:14px 15px!important}.surface-panel-head h2{font-size:15px!important}.surface-panel-head .eyebrow{font-size:8.5px!important}
  .workday-timeline{padding:5px 15px 12px!important}.workday-timeline li{padding:11px 0!important}.weekly-snapshot{padding:12px!important}.weekly-day{min-width:86px!important;border-radius:13px!important}
  .attendance-alert{border-radius:15px!important}

  /* Bottom nav with stronger active state and safe-area ergonomics */
  .mobile-bottom-nav{left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;height:68px!important;padding:6px!important;border-radius:22px!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(221,226,235,.95)!important;box-shadow:0 20px 48px rgba(16,24,40,.18)!important}
  .mobile-bottom-link{color:#7c8799!important;border-radius:16px!important}.mobile-bottom-link.active{background:#eef2ff!important;color:#365cf5!important;box-shadow:none!important}.mobile-bottom-link.active:before{display:none!important}.mobile-bottom-link small{font-size:8.5px!important}

  /* Mobile cards and forms should use full available width and comfortable controls. */
  .card,.surface-panel{border-radius:18px!important}.card-body{padding:16px!important}.form-control{min-height:48px!important;border-radius:13px!important;font-size:16px!important}.btn{min-height:46px!important}.page-head{margin-bottom:15px!important}.page-title{font-size:25px!important}.page-subtitle{font-size:12px!important}
  .attendance-calendar{min-width:650px!important}
}

@media(max-width:520px){
  .content{padding-left:10px!important;padding-right:10px!important}
  .role-employee .mobile-punch-spotlight{border-radius:23px;padding:16px}.mobile-punch-copy h2{font-size:26px}.mobile-punch-button{grid-template-columns:40px minmax(0,1fr) auto}.mobile-punch-button-icon{width:40px;height:40px}
  .role-employee .workday-hero-main{padding:16px!important}.role-employee .workday-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}.role-employee .workday-metrics>div{padding:9px 7px!important}.role-employee .workday-metrics strong{font-size:14px!important}
}

/* Motion that feels purposeful rather than decorative. */
@keyframes p14-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.role-employee .mobile-punch-spotlight,.role-employee .workday-welcome,.role-employee .workday-hero,.role-employee .workday-kpis{animation:p14-enter .38s both}
.role-employee .workday-welcome{animation-delay:.04s}.role-employee .workday-hero{animation-delay:.07s}.role-employee .workday-kpis{animation-delay:.10s}
@media(prefers-reduced-motion:reduce){.role-employee .mobile-punch-spotlight,.role-employee .workday-welcome,.role-employee .workday-hero,.role-employee .workday-kpis{animation:none!important}}
