:root {
  --employee-bottom-nav-height: 86px;
  --emp-bg: #050b16;
  --emp-bg-2: #070f1e;
  --emp-surface: #0d1729;
  --emp-surface-2: #111d33;
  --emp-surface-3: #16243d;
  --emp-line: #263550;
  --emp-line-strong: #344766;
  --emp-brand: #38c7f4;
  --emp-brand-2: #57daf5;
  --emp-text: #eef5ff;
  --emp-muted: #9aa8bd;
  --emp-success: #49d39a;
  --emp-warning: #f7c76b;
  --emp-danger: #ff6b7a;
  --emp-radius: 18px;
  --emp-shadow: 0 22px 54px rgba(0, 0, 0, .34);
}

html.employee-portal-root,
body.employee-portal {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--emp-bg) !important;
  color: var(--emp-text) !important;
  color-scheme: dark;
  overflow-x: hidden !important;
}

body.employee-portal *,
body.employee-portal *::before,
body.employee-portal *::after {
  box-sizing: border-box;
}

body.employee-portal #app.employee-app {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 86% 0%, rgba(56, 199, 244, .14), transparent 17rem),
    radial-gradient(circle at 12% 18%, rgba(73, 211, 154, .09), transparent 13rem),
    linear-gradient(180deg, var(--emp-bg) 0%, var(--emp-bg-2) 48%, #050914 100%);
}

body.employee-portal .employee-shell {
  position: relative;
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(var(--employee-bottom-nav-height) + 18px);
  background:
    linear-gradient(180deg, rgba(17, 29, 51, .42), transparent 210px),
    var(--emp-bg);
  color: var(--emp-text);
  box-shadow: 0 0 0 1px rgba(52, 71, 102, .28), 0 30px 90px rgba(0, 0, 0, .42);
  overflow-x: clip;
}

body.employee-portal .employee-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: rgba(7, 15, 30, .92);
  border-bottom: 1px solid rgba(52, 71, 102, .72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

body.employee-portal .employee-brand,
body.employee-portal .employee-user,
body.employee-portal .person-cell,
body.employee-portal .login-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.employee-portal .employee-brand {
  flex: 1 1 auto;
}

body.employee-portal .employee-brand img,
body.employee-portal .login-brand-row img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 14px;
  background: #07111f;
  border: 1px solid var(--emp-line);
  padding: 4px;
}

body.employee-portal .employee-brand strong,
body.employee-portal .employee-user strong,
body.employee-portal .person-cell strong,
body.employee-portal .login-brand-row strong {
  display: block;
  color: var(--emp-text);
  font-weight: 900;
  line-height: 1.25;
}

body.employee-portal .employee-brand span,
body.employee-portal .employee-user span,
body.employee-portal .employee-user small,
body.employee-portal .person-cell small,
body.employee-portal .login-brand-row span {
  display: block;
  color: var(--emp-muted) !important;
  font-size: 12px;
  line-height: 1.35;
}

body.employee-portal .employee-user {
  flex: 0 1 46%;
  max-width: 46%;
  padding: 6px;
  border: 1px solid rgba(52, 71, 102, .78);
  border-radius: 999px;
  background: rgba(17, 29, 51, .72);
}

body.employee-portal .employee-user>span,
body.employee-portal .employee-brand>div {
  min-width: 0;
}

body.employee-portal .employee-user strong,
body.employee-portal .employee-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.employee-portal .employee-main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 14px 22px;
}

body.employee-portal .employee-page-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  padding-bottom: 10px;
}

body.employee-portal .employee-page-head::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emp-brand), transparent);
}

body.employee-portal .employee-page-head h1 {
  margin: 0;
  color: var(--emp-text);
  font-size: clamp(25px, 7vw, 36px);
  line-height: 1.16;
}

body.employee-portal .employee-page-head p,
body.employee-portal .employee-card p,
body.employee-portal .employee-login-card p,
body.employee-portal label,
body.employee-portal .employee-list-item span,
body.employee-portal .employee-list-item small,
body.employee-portal .employee-stat span,
body.employee-portal .employee-stat small,
body.employee-portal .profile-list dt {
  color: var(--emp-muted) !important;
}

body.employee-portal .employee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

body.employee-portal .employee-card,
body.employee-portal .employee-hero-card,
body.employee-portal .employee-stat,
body.employee-portal .employee-login-card,
body.employee-portal .status-strip,
body.employee-portal .quick-action-card {
  min-width: 0;
  color: var(--emp-text);
  background: linear-gradient(180deg, rgba(17, 29, 51, .98), rgba(13, 23, 41, .98));
  border: 1px solid rgba(52, 71, 102, .9);
  border-radius: var(--emp-radius);
  box-shadow: var(--emp-shadow);
}

body.employee-portal .employee-card,
body.employee-portal .employee-hero-card,
body.employee-portal .employee-stat,
body.employee-portal .employee-login-card {
  padding: 22px;
  overflow: hidden;
}

body.employee-portal .employee-card h2,
body.employee-portal .employee-login-card h1,
body.employee-portal .profile-list dd,
body.employee-portal .employee-list-item strong,
body.employee-portal .quick-action-card strong {
  color: var(--emp-text);
}

body.employee-portal .employee-card h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 5vw, 27px);
  line-height: 1.25;
}

body.employee-portal .employee-card p {
  margin-top: 0;
  line-height: 1.75;
}

body.employee-portal .employee-hero-card {
  background:
    radial-gradient(circle at 16% 16%, rgba(87, 218, 245, .22), transparent 9rem),
    linear-gradient(145deg, #0d1729 0%, #0a2a3d 55%, #10334c 100%);
  border-color: rgba(56, 199, 244, .36);
}

body.employee-portal .employee-hero-card p {
  margin: 14px 0 0;
  color: rgba(238, 245, 255, .82) !important;
}

body.employee-portal .employee-stat {
  display: grid;
  gap: 5px;
  min-height: 112px;
}

body.employee-portal .employee-stat strong {
  display: block;
  color: var(--emp-brand);
  font-size: 36px;
  line-height: 1;
}

body.employee-portal .employee-actions-row,
body.employee-portal .employee-actions-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

body.employee-portal .employee-actions-stack,
body.employee-portal .punch-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.employee-portal .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--emp-line-strong);
  border-radius: 15px;
  background: var(--emp-surface-2);
  color: var(--emp-text);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  -webkit-tap-highlight-color: transparent;
}

body.employee-portal .button.primary {
  border-color: rgba(56, 199, 244, .72);
  background: linear-gradient(135deg, var(--emp-brand), var(--emp-brand-2));
  color: #04111d;
}

body.employee-portal .button.ghost {
  background: rgba(13, 23, 41, .88);
  color: var(--emp-brand-2);
}

body.employee-portal .button.danger {
  background: rgba(255, 107, 122, .13);
  border-color: rgba(255, 107, 122, .48);
  color: var(--emp-danger);
}

body.employee-portal .button.full {
  width: 100%;
}

body.employee-portal .button:active,
body.employee-portal .quick-action-card:active,
body.employee-portal .employee-bottom-nav button:active {
  transform: scale(.985);
}

body.employee-portal input,
body.employee-portal select,
body.employee-portal textarea {
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  border: 1px solid var(--emp-line-strong);
  border-radius: 15px;
  background: #091326 !important;
  color: var(--emp-text) !important;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

body.employee-portal textarea {
  min-height: 126px;
  resize: vertical;
}

body.employee-portal input::placeholder,
body.employee-portal textarea::placeholder {
  color: #73839b;
}

body.employee-portal select option {
  background: var(--emp-bg-2);
  color: var(--emp-text);
}

body.employee-portal input:focus,
body.employee-portal select:focus,
body.employee-portal textarea:focus {
  border-color: var(--emp-brand);
  box-shadow: 0 0 0 4px rgba(56, 199, 244, .14);
}

body.employee-portal .employee-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}

body.employee-portal .employee-form-grid .span-2 {
  grid-column: 1 / -1;
}

body.employee-portal .employee-list {
  display: grid;
  gap: 10px;
}

body.employee-portal .employee-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(52, 71, 102, .8);
  border-radius: 16px;
  background: rgba(13, 23, 41, .82);
}

body.employee-portal .employee-list-item>div:first-child {
  min-width: 0;
}

body.employee-portal .employee-list-item span,
body.employee-portal .employee-list-item small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

body.employee-portal .list-item-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

body.employee-portal .list-item-side .button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
}

body.employee-portal .employee-location-box,
body.employee-portal .biometric-box,
body.employee-portal .risk-box,
body.employee-portal .gps-panel,
body.employee-portal .message {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(56, 199, 244, .09);
  border: 1px solid rgba(56, 199, 244, .34);
  color: var(--emp-text);
}

body.employee-portal .message {
  margin: 0 0 14px;
}

body.employee-portal .message.warning {
  background: rgba(247, 199, 107, .12);
  border-color: rgba(247, 199, 107, .42);
  color: var(--emp-warning);
}

body.employee-portal .danger-box,
body.employee-portal .message.error {
  background: rgba(255, 107, 122, .12) !important;
  border-color: rgba(255, 107, 122, .46) !important;
  color: var(--emp-danger) !important;
}

body.employee-portal .inside-box {
  background: rgba(73, 211, 154, .11) !important;
  border-color: rgba(73, 211, 154, .42) !important;
  color: var(--emp-text) !important;
}

body.employee-portal .risk-box.danger-box {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 122, .28), 0 14px 34px rgba(255, 107, 122, .08);
}

body.employee-portal .risk-box .map-link {
  width: fit-content;
  min-height: 38px;
  margin-top: 4px;
  padding: 8px 12px;
}

body.employee-portal .profile-photo-editor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(52, 71, 102, .72);
  border-radius: 16px;
  background: rgba(9, 19, 38, .62);
}

body.employee-portal .hidden-file {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

body.employee-portal .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.employee-portal .empty-state {
  padding: 18px;
  border: 1px dashed rgba(154, 168, 189, .46);
  border-radius: 16px;
  background: rgba(13, 23, 41, .64);
  color: var(--emp-muted);
  text-align: center;
}

body.employee-portal .empty-state::before {
  content: "-";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(56, 199, 244, .12);
  color: var(--emp-brand);
  font-weight: 900;
}

body.employee-portal .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 199, 244, .12);
  border: 1px solid rgba(56, 199, 244, .28);
  color: var(--emp-brand-2);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

body.employee-portal .status-approved,
body.employee-portal .status-present,
body.employee-portal .status-read {
  background: rgba(73, 211, 154, .12);
  border-color: rgba(73, 211, 154, .32);
  color: var(--emp-success);
}

body.employee-portal .status-pending,
body.employee-portal .status-late,
body.employee-portal .status-unread {
  background: rgba(247, 199, 107, .13);
  border-color: rgba(247, 199, 107, .34);
  color: var(--emp-warning);
}

body.employee-portal .status-rejected,
body.employee-portal .status-absent {
  background: rgba(255, 107, 122, .13);
  border-color: rgba(255, 107, 122, .34);
  color: var(--emp-danger);
}

body.employee-portal .avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(135deg, #123553, #07111f);
  border: 1px solid rgba(87, 218, 245, .34);
  color: var(--emp-text);
  font-weight: 900;
  object-fit: cover;
}

body.employee-portal .avatar.tiny {
  width: 34px;
  height: 34px;
  border-radius: 13px;
}

body.employee-portal .avatar.large {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 26px;
}

body.employee-portal .employee-login-screen {
  min-height: 100dvh;
  max-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 22% 0%, rgba(56, 199, 244, .18), transparent 18rem),
    linear-gradient(180deg, var(--emp-bg) 0%, var(--emp-bg-2) 100%);
  overflow: hidden;
}

body.employee-portal .employee-login-card {
  width: min(360px, 100%);
  max-height: calc(100dvh - 20px);
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vh, 28px);
  border-color: rgba(56, 199, 244, .25);
  overflow: auto;
  scrollbar-width: thin;
}

body.employee-portal .employee-login-card h1,
body.employee-portal .employee-login-card p {
  text-align: center;
}

body.employee-portal .employee-login-card h1 {
  margin: 4px 0 2px;
  font-size: clamp(24px, 5.8vh, 32px);
  line-height: 1.15;
}

body.employee-portal .employee-login-card label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

body.employee-portal .employee-login-card input {
  min-height: 46px;
  margin-top: 0;
  border-radius: 13px;
  padding: 10px 12px;
  font-size: 15px;
}

body.employee-portal .employee-login-card .button {
  min-height: 44px;
  border-radius: 13px;
}

body.employee-portal .login-password-field {
  position: relative;
  display: block;
}

body.employee-portal .login-password-field input {
  padding-inline-end: 74px;
}

body.employee-portal .password-toggle {
  position: absolute;
  inset-inline-end: 7px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 54px;
  min-height: 32px;
  border: 1px solid rgba(56, 199, 244, .3);
  border-radius: 10px;
  background: rgba(56, 199, 244, .11);
  color: var(--emp-brand-2);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body.employee-portal .password-toggle[aria-pressed="true"] {
  background: rgba(73, 211, 154, .14);
  border-color: rgba(73, 211, 154, .35);
  color: #bbf7d0;
}

body.employee-portal .login-brand-row {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 4px;
  text-align: center;
}

body.employee-portal .login-brand-row img {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  padding: 5px;
  background: rgba(56, 199, 244, .10);
  border: 1px solid rgba(56, 199, 244, .24);
  box-shadow: 0 18px 38px rgba(56, 199, 244, .10);
}

body.employee-portal .login-brand-row strong,
body.employee-portal .login-brand-row span {
  text-align: center;
}

body.employee-portal .login-brand-row strong {
  font-size: 20px;
}

body.employee-portal .login-features,
body.employee-portal .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 8px;
}

body.employee-portal .hero-meta {
  justify-content: flex-start;
  margin-bottom: 0;
}

body.employee-portal .login-feature,
body.employee-portal .hero-chip,
body.employee-portal .panel-kicker,
body.employee-portal .profile-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(56, 199, 244, .11);
  border: 1px solid rgba(56, 199, 244, .24);
  color: var(--emp-brand-2);
  font-size: 12px;
  font-weight: 900;
}

body.employee-portal .hero-chip.success {
  border-color: rgba(73, 211, 154, .34);
  background: rgba(73, 211, 154, .12);
  color: #bbf7d0;
}

body.employee-portal .hero-chip.warning {
  border-color: rgba(245, 158, 11, .34);
  background: rgba(245, 158, 11, .12);
  color: #fde68a;
}

body.employee-portal .hero-chip.holiday {
  border-color: rgba(73, 211, 154, .38);
  background: linear-gradient(135deg, rgba(73, 211, 154, .18), rgba(56, 199, 244, .12));
  color: #d9fff0;
}

body.employee-portal .employee-login-card .login-feature {
  min-height: 28px;
  font-size: 11px;
}

body.employee-portal .panel-kicker,
body.employee-portal .profile-chip {
  margin-bottom: 8px;
}

body.employee-portal .status-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

body.employee-portal .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--emp-success);
  box-shadow: 0 0 0 6px rgba(73, 211, 154, .12);
}

body.employee-portal .status-dot.warning {
  background: var(--emp-warning);
  box-shadow: 0 0 0 6px rgba(247, 199, 107, .13);
}

body.employee-portal .status-dot.danger {
  background: var(--emp-danger);
  box-shadow: 0 0 0 6px rgba(255, 107, 122, .13);
}

body.employee-portal .quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.employee-portal .quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 112px;
  padding: 14px;
  text-align: right;
  cursor: pointer;
}

body.employee-portal .quick-action-card .quick-icon {
  margin-bottom: auto;
}

body.employee-portal .quick-action-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

body.employee-portal .quick-action-card span:last-child {
  color: var(--emp-muted);
  font-size: 11px;
  line-height: 1.3;
}

body.employee-portal .quick-icon,
body.employee-portal .feature-icon,
body.employee-portal .step-item b {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(56, 199, 244, .13);
  color: var(--emp-brand-2);
  font-weight: 900;
}

body.employee-portal .punch-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

body.employee-portal .punch-orb {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 20%, var(--emp-brand-2), #15507a 72%);
  color: #03101c;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(56, 199, 244, .22);
}

body.employee-portal .step-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body.employee-portal .step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emp-muted);
  font-size: 13px;
}

body.employee-portal .step-item b {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

body.employee-portal .gps-panel {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

body.employee-portal .profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body.employee-portal .profile-list {
  display: grid;
  gap: 0;
  margin: 18px 0;
  padding: 4px 12px;
  border: 1px solid rgba(52, 71, 102, .76);
  border-radius: 16px;
  background: rgba(13, 23, 41, .64);
}

body.employee-portal .profile-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(52, 71, 102, .58);
}

body.employee-portal .profile-list div:last-child {
  border-bottom: 0;
}

body.employee-portal .profile-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.employee-portal .employee-bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 60;
  transform: translateX(-50%);
  width: min(100%, 560px);
  height: var(--employee-bottom-nav-height);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  padding: 9px max(7px, env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-right));
  background: rgba(7, 15, 30, .94);
  border-top: 1px solid rgba(52, 71, 102, .88);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, .36);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

body.employee-portal .employee-bottom-nav button {
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--emp-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

body.employee-portal .employee-bottom-nav button strong {
  width: 26px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

body.employee-portal .employee-bottom-nav button span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.employee-portal .employee-bottom-nav button.is-active {
  background: linear-gradient(135deg, rgba(56, 199, 244, .95), rgba(87, 218, 245, .88));
  color: #03101c;
  box-shadow: 0 10px 22px rgba(56, 199, 244, .24);
}

body.employee-portal .employee-admin-link,
body.employee-portal .admin-shortcut,
body.employee-portal [href*="admin/index"],
body.employee-portal [href*="admin-login"] {
  display: none !important;
}

body.employee-portal .hidden {
  display: none !important;
}

@media (min-width: 520px) {
  body.employee-portal .employee-stat {
    grid-column: span 4;
  }
}

@media (max-width: 430px) {
  body.employee-portal .employee-main {
    padding-inline: 12px;
  }

  body.employee-portal .employee-topbar {
    min-height: 66px;
    padding-inline: 12px;
  }

  body.employee-portal .employee-brand img {
    width: 38px;
    height: 38px;
  }

  body.employee-portal .employee-brand strong {
    font-size: 15px;
  }

  body.employee-portal .employee-user {
    max-width: 42%;
  }

  body.employee-portal .employee-user span {
    display: none;
  }

  body.employee-portal .employee-page-head {
    display: block;
  }

  body.employee-portal .employee-page-head h1 {
    font-size: 28px;
  }

  body.employee-portal .employee-page-head p {
    font-size: 13px;
  }

  body.employee-portal .employee-card,
  body.employee-portal .employee-hero-card,
  body.employee-portal .employee-stat,
  body.employee-portal .employee-login-card {
    padding: 15px;
    border-radius: 17px;
  }

  body.employee-portal .employee-form-grid,
  body.employee-portal .employee-actions-stack,
  body.employee-portal .punch-buttons {
    grid-template-columns: 1fr;
  }

  body.employee-portal .employee-list-item,
  body.employee-portal .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  body.employee-portal .list-item-side {
    width: 100%;
    justify-content: flex-start;
  }

  body.employee-portal .status-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.employee-portal .status-strip .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.employee-portal .punch-focus {
    grid-template-columns: 1fr;
  }

  body.employee-portal .punch-orb {
    display: none;
  }

  body.employee-portal .profile-list div {
    grid-template-columns: 1fr;
  }

  body.employee-portal .login-brand-row {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  body.employee-portal .employee-bottom-nav {
    padding-inline: 4px;
    gap: 1px;
  }

  body.employee-portal .employee-bottom-nav button {
    min-height: 54px;
    padding-inline: 2px;
    font-size: 9px;
  }

  body.employee-portal .employee-bottom-nav button span {
    max-width: 42px;
  }

  body.employee-portal .employee-card,
  body.employee-portal .employee-hero-card,
  body.employee-portal .employee-stat,
  body.employee-portal .employee-login-card {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {

  body.employee-portal *,
  body.employee-portal *::before,
  body.employee-portal *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* 2026 completion pack: employee requests and wider bottom nav */
body.employee-portal .employee-bottom-nav {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

body.employee-portal .employee-bottom-nav button {
  font-size: 9px;
}

body.employee-portal .employee-list-item small {
  display: block;
  margin-top: 3px;
}

@media (max-width: 420px) {
  body.employee-portal .employee-bottom-nav {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    grid-template-columns: none;
  }

  body.employee-portal .employee-bottom-nav button {
    min-width: 64px;
  }
}

/* Full Operations Pack employee additions */
.employee-bottom-nav {
  overflow-x: auto;
  scrollbar-width: thin;
}

.employee-bottom-nav button {
  min-width: 74px;
}

.employee-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-actions-row .button {
  flex: 1 1 140px;
}

.big-number {
  display: block;
  font-size: clamp(2rem, 10vw, 3.5rem);
  color: #67e8f9;
}

/* Final mobile-first polish */
.employee-app .hero-card,
.employee-app .employee-card.full,
.employee-app .employee-card.accent-card {
  background: linear-gradient(135deg, rgba(56, 199, 244, .14), rgba(15, 23, 42, .92));
  border: 1px solid rgba(56, 199, 244, .22);
}

.employee-app .quick-actions,
.employee-app .action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.employee-app .button {
  min-height: 46px;
  border-radius: 16px;
}

@media (max-width: 560px) {
  .employee-app {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .employee-app .employee-card,
  .employee-app .panel {
    padding: 16px;
  }

  .employee-app h1 {
    font-size: 24px;
  }

  .employee-app h2 {
    font-size: 20px;
  }
}

body.employee-portal .danger-text {
  color: #b42318;
  font-weight: 800;
}


/* Audit V7 hardening: bottom navigation, more sheet, toast, skeleton, password strength, print */
:root {
  --z-topbar: 20;
  --z-nav: 30;
  --z-fab: 40;
  --z-sheet: 50;
  --z-modal: 60;
  --z-camera: 70;
  --z-toast: 80;
  --z-banner: 9000;
}

body.employee-portal .employee-topbar {
  z-index: var(--z-topbar);
}

body.employee-portal .employee-bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  z-index: var(--z-nav);
}

body.employee-portal .employee-bottom-nav button {
  min-width: 0 !important;
  font-size: 10px;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease, transform .12s ease;
}

body.employee-portal .employee-card,
body.employee-portal .employee-hero-card,
body.employee-portal .employee-stat,
body.employee-portal .quick-action-card {
  transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}

body.employee-portal .employee-more-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sheet) - 1);
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(6px);
}

body.employee-portal .employee-more-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 560px);
  z-index: var(--z-sheet);
  padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(17, 29, 51, .98), rgba(7, 15, 30, .98));
  border: 1px solid rgba(52, 71, 102, .9);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .42);
}

body.employee-portal .more-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 4px auto 12px;
  border-radius: 99px;
  background: rgba(154, 168, 189, .55);
}

body.employee-portal .more-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

body.employee-portal .more-sheet-head strong {
  font-size: 18px;
}

body.employee-portal .more-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.employee-portal .more-sheet-grid button {
  min-height: 76px;
  border: 1px solid rgba(52, 71, 102, .76);
  border-radius: 18px;
  background: rgba(13, 23, 41, .92);
  color: var(--emp-text);
  display: grid;
  place-items: center;
  gap: 4px;
  font: inherit;
  font-weight: 800;
}

body.employee-portal .more-sheet-grid button strong {
  font-size: 22px;
}

body.employee-portal .more-sheet-grid button span {
  font-size: 12px;
  color: var(--emp-muted);
}

body.employee-portal .more-sheet-grid button.is-active {
  background: linear-gradient(135deg, rgba(56, 199, 244, .95), rgba(87, 218, 245, .86));
  color: #03101c;
}

body.employee-portal .more-sheet-grid button.is-active span {
  color: #03101c;
}

.hr-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--employee-bottom-nav-height, 86px) + 12px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(52, 71, 102, .78);
  background: rgba(13, 23, 41, .96);
  color: var(--emp-text);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .25s ease, opacity .22s ease;
}

.hr-toast.is-visible {
  transform: none;
  opacity: 1;
}

.hr-toast.ok {
  border-color: rgba(73, 211, 154, .5);
}

.hr-toast.error {
  border-color: rgba(255, 107, 122, .55);
}

@keyframes hr-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

body.employee-portal .skeleton {
  display: block;
  min-height: 20px;
  width: 72%;
  border-radius: 12px;
  background: linear-gradient(90deg, #1a2744 25%, #243560 50%, #1a2744 75%);
  background-size: 200% 100%;
  animation: hr-shimmer 1.4s ease infinite;
  margin: 10px 0;
}

body.employee-portal .skeleton.wide {
  width: 100%;
  min-height: 28px;
}

body.employee-portal .skeleton.short {
  width: 44%;
}

.password-strength {
  display: grid;
  gap: 7px;
  margin-top: -2px;
}

.password-strength span {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--emp-danger) 0 33%, rgba(255, 255, 255, .08) 33%);
  overflow: hidden;
}

.password-strength strong {
  color: var(--emp-muted);
  font-size: 12px;
}

.password-strength[data-level="medium"] span {
  background: linear-gradient(90deg, var(--emp-warning) 0 66%, rgba(255, 255, 255, .08) 66%);
}

.password-strength[data-level="strong"] span {
  background: linear-gradient(90deg, var(--emp-success) 0 100%);
}

@media (max-width: 420px) {
  body.employee-portal .more-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.employee-portal .employee-bottom-nav button strong {
    font-size: 18px;
  }
}

@media print {

  body.employee-portal .employee-bottom-nav,
  body.employee-portal .employee-topbar,
  body.employee-portal .employee-more-sheet,
  body.employee-portal .employee-more-backdrop,
  .hr-toast {
    display: none !important;
  }

  body.employee-portal .employee-shell {
    padding-bottom: 0;
    box-shadow: none;
  }

  body.employee-portal .employee-card {
    box-shadow: none;
    border-color: #ddd;
    break-inside: avoid;
  }
}

/* v1.3.4 — employee decision acknowledgement */
.decision-card.is-acknowledged {
  border-color: rgba(34, 197, 94, .38);
  background: linear-gradient(180deg, rgba(34, 197, 94, .08), rgba(255, 255, 255, .02))
}

/* Redesigned Dashboard Styles */
.compact-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 20px;
}

.compact-metric-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 8px;
  background: linear-gradient(180deg, rgba(17, 29, 51, .98), rgba(13, 23, 41, .98));
  border: 1px solid rgba(52, 71, 102, .8);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--emp-shadow);
  text-align: center;
  color: inherit;
  font: inherit;
}

.compact-metric-badge:active {
  transform: scale(0.95);
  background: var(--emp-surface-2);
  border-color: var(--emp-brand);
}

.compact-metric-badge .badge-icon {
  font-size: 22px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 8px rgba(56, 199, 244, 0.2));
}

.compact-metric-badge strong {
  display: block;
  font-size: 20px;
  color: var(--emp-brand);
  line-height: 1;
}

.compact-metric-badge span {
  display: block;
  font-size: 11px;
  color: var(--emp-muted);
  font-weight: 700;
  white-space: nowrap;
}

/* Enhanced Quick Actions */
.quick-action-card {
  border-color: rgba(56, 199, 244, 0.12) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quick-action-card:active {
  transform: translateY(-2px) scale(0.98);
  border-color: var(--emp-brand) !important;
  box-shadow: 0 10px 25px rgba(56, 199, 244, 0.15) !important;
}

.quick-icon {
  box-shadow: 0 4px 12px rgba(56, 199, 244, 0.1);
  transition: all 0.2s ease;
}

.quick-action-card:active .quick-icon {
  background: var(--emp-brand) !important;
  color: #050b16 !important;
  transform: scale(1.1);
}

/* Enhanced Premium Dashboard Styling */
.employee-hero-card {
  background: linear-gradient(135deg, rgba(56, 199, 244, 0.15), rgba(56, 199, 244, 0.05)) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 199, 244, 0.2) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  border-radius: 32px !important;
  padding: 30px !important;
}

.compact-metrics-grid {
  gap: 16px !important;
  padding: 4px 0;
}

.compact-metric-card {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.compact-metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand) !important;
  background: rgba(56, 199, 244, 0.06) !important;
}

.compact-metric-card i {
  font-size: 24px !important;
  margin-bottom: 12px !important;
  display: block;
  opacity: 0.8;
}

.compact-metric-card strong {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--text-bold);
}

.status-strip {
  border-radius: 20px !important;
  padding: 16px 20px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border) !important;
  margin: 12px 0;
}

.quick-action-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
  gap: 12px !important;
}

.quick-action-card {
  aspect-ratio: 1 / 1;
  padding: 16px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  transition: all 0.2s ease;
}

.quick-action-card:active {
  transform: scale(0.92);
  background: rgba(56, 199, 244, 0.1) !important;
}

.quick-action-card span {
  font-size: 24px !important;
  margin-bottom: 8px;
}

.quick-action-card strong {
  font-size: 11px !important;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.2;
}

/* Attendance identity verification overlay */
.identity-selfie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(14px);
}

.identity-selfie-panel {
  width: min(420px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(56, 199, 244, .32);
  border-radius: 24px;
  background: #0d1729;
  color: #eef5ff;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  text-align: center;
}

.identity-selfie-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.identity-selfie-panel p {
  margin: 0 0 14px;
  color: #9fb4d1;
  line-height: 1.7;
}

.identity-selfie-panel video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  border-radius: 20px;
  background: #030712;
  border: 1px solid rgba(148, 163, 184, .24);
  transform: scaleX(-1);
}

.identity-selfie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 460px) {
  .identity-selfie-actions {
    grid-template-columns: 1fr;
  }
}

.identity-risk-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.identity-risk-flags span {
  border: 1px solid rgba(251, 191, 36, .35);
  color: #fde68a;
  background: rgba(251, 191, 36, .10);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.gps-real-map {
  display: grid;
  gap: 12px;
  width: 100%;
}

.gps-real-map iframe {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(56, 199, 244, .28);
  border-radius: 18px;
  background: #071120;
}

.gps-geofence-diagram {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
}

.gps-geofence-ring {
  width: min(190px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, .72);
  position: relative;
  display: grid;
  place-items: center;
  color: #b9f6d3;
  background: radial-gradient(circle, rgba(34, 197, 94, .16), rgba(34, 197, 94, .05) 52%, transparent 54%);
}

.gps-geofence-ring::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #38c7f4;
  box-shadow: 0 0 16px rgba(56, 199, 244, .65);
}

.gps-geofence-ring span {
  font-weight: 900;
  font-size: 13px;
  transform: translateY(-28px);
}

.gps-geofence-ring i {
  position: absolute;
  left: var(--marker-offset, 0%);
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, .16), 0 0 18px rgba(34, 197, 94, .5);
}

.gps-geofence-diagram.outside .gps-geofence-ring {
  border-color: rgba(244, 63, 94, .72);
  background: radial-gradient(circle, rgba(34, 197, 94, .10), rgba(244, 63, 94, .05) 58%, transparent 60%);
}

.gps-geofence-diagram.outside .gps-geofence-ring i {
  background: #f43f5e;
  box-shadow: 0 0 0 8px rgba(244, 63, 94, .16), 0 0 18px rgba(244, 63, 94, .5);
}

/* Attendance Identity Guard V3 */
.identity-policy-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 7, 18, .72);
  backdrop-filter: blur(10px);
  padding: 20px;
}

.identity-policy-panel {
  width: min(520px, 100%);
  background: var(--emp-surface, #0f172a);
  color: var(--emp-text, #e5eefb);
  border: 1px solid var(--emp-line, rgba(148, 163, 184, .22));
  border-radius: 28px 28px max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-bottom));
  padding: 26px 22px max(26px, env(safe-area-inset-bottom));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

.identity-policy-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.identity-policy-panel p,
.identity-policy-panel li {
  color: var(--emp-muted, #94a3b8);
  line-height: 1.8;
  font-size: 14px;
}

.identity-policy-panel ul {
  margin: 14px 0 18px;
  padding-inline-start: 22px;
}

.identity-policy-panel .input {
  width: 100%;
  border: 1px solid var(--emp-line, rgba(148, 163, 184, .22));
  background: rgba(15, 23, 42, .78);
  color: var(--emp-text, #e5eefb);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 10px 0 16px;
  text-align: center;
  letter-spacing: .12em;
}

.identity-risk-flags span {
  margin: 3px;
}


/* === V12 employee login + org chart refinement === */
body.employee-portal .refined-login-card {
  position: relative;
  overflow: hidden;
}

body.employee-portal .refined-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: radial-gradient(circle at 50% 0%, rgba(76, 191, 255, .18), transparent 72%);
  pointer-events: none;
}

body.employee-portal .refined-login-card>* {
  position: relative;
  z-index: 1;
}

body.employee-portal .employee-login-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--emp-text-soft, rgba(226, 232, 240, .88));
  font-weight: 800;
  text-align: center;
}

body.employee-portal .login-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(56, 199, 244, .12);
  border: 1px solid rgba(56, 199, 244, .24);
  font-size: 12px;
}

body.employee-portal .login-separator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 199, 244, .95), rgba(59, 130, 246, .8));
  box-shadow: 0 0 0 4px rgba(56, 199, 244, .10);
}

body.employee-portal .compact-ghost {
  min-height: 42px;
}

body.employee-portal .team-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

body.employee-portal .team-summary-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(56, 199, 244, .16);
  background: linear-gradient(180deg, rgba(13, 30, 56, .92), rgba(8, 17, 34, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 30px rgba(2, 8, 23, .26);
}

body.employee-portal .team-summary-card span {
  color: rgba(191, 219, 254, .85);
  font-size: 12px;
  font-weight: 800;
}

body.employee-portal .team-summary-card strong {
  font-size: 18px;
  line-height: 1.5;
}

body.employee-portal .team-summary-card small {
  color: rgba(191, 219, 254, .68);
}

body.employee-portal .employee-org-shell {
  overflow: hidden;
}

body.employee-portal .employee-org-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

body.employee-portal .org-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 232, 240, .88);
  font-size: 13px;
  font-weight: 700;
}

body.employee-portal .legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .8);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .10);
}

body.employee-portal .legend-dot.executive {
  background: #38c7f4;
  box-shadow: 0 0 0 4px rgba(56, 199, 244, .16);
}

body.employee-portal .legend-dot.me {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

body.employee-portal .legend-dot.team {
  background: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .16);
}

body.employee-portal .legend-dot.manager {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}

body.employee-portal .employee-org-tree {
  display: grid;
  gap: 18px;
}

body.employee-portal .employee-org-tree-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
}

body.employee-portal .employee-org-children {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-top: 18px;
}

body.employee-portal .employee-org-children::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 2px;
  height: 18px;
  transform: translateX(50%);
  background: linear-gradient(180deg, rgba(56, 199, 244, .65), rgba(56, 199, 244, 0));
}

body.employee-portal .employee-org-node {
  width: min(100%, 320px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(56, 199, 244, .18);
  background: linear-gradient(180deg, rgba(13, 29, 54, .96), rgba(7, 16, 31, .96));
  box-shadow: 0 18px 40px rgba(2, 8, 23, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
  text-align: right;
}

body.employee-portal .employee-org-node.is-me {
  border-color: rgba(34, 197, 94, .45);
  box-shadow: 0 18px 42px rgba(34, 197, 94, .12), inset 0 0 0 1px rgba(34, 197, 94, .18);
}

body.employee-portal .employee-org-node.is-direct-report {
  border-color: rgba(168, 85, 247, .38);
  box-shadow: 0 18px 42px rgba(168, 85, 247, .10), inset 0 0 0 1px rgba(168, 85, 247, .16);
}

body.employee-portal .employee-org-node.is-my-manager {
  border-color: rgba(245, 158, 11, .4);
  box-shadow: 0 18px 42px rgba(245, 158, 11, .10), inset 0 0 0 1px rgba(245, 158, 11, .16);
}

body.employee-portal .employee-org-tree>.employee-org-tree-item:first-child>.employee-org-node {
  border-color: rgba(56, 199, 244, .48);
  box-shadow: 0 20px 50px rgba(56, 199, 244, .14), inset 0 0 0 1px rgba(56, 199, 244, .18);
}

body.employee-portal .org-node-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

body.employee-portal .org-node-copy {
  display: grid;
  gap: 4px;
}

body.employee-portal .org-node-copy strong {
  font-size: 16px;
  line-height: 1.6;
}

body.employee-portal .org-node-copy span {
  color: rgba(191, 219, 254, .8);
  font-size: 13px;
  line-height: 1.7;
}

body.employee-portal .org-node-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.employee-portal .org-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56, 199, 244, .11);
  border: 1px solid rgba(56, 199, 244, .18);
  color: rgba(226, 232, 240, .92);
  font-size: 12px;
  font-weight: 800;
}

body.employee-portal .org-chip-muted {
  background: rgba(148, 163, 184, .10);
  border-color: rgba(148, 163, 184, .16);
  color: rgba(191, 219, 254, .76);
}

body.employee-portal .my-team-focus-grid .employee-list-item {
  border-radius: 18px;
}

@media (max-width:980px) {
  body.employee-portal .team-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px) {
  body.employee-portal .team-overview-grid {
    grid-template-columns: 1fr;
  }

  body.employee-portal .employee-org-children {
    grid-template-columns: 1fr;
  }

  body.employee-portal .employee-org-node {
    width: 100%;
    border-radius: 20px;
  }

  body.employee-portal .employee-login-intro {
    gap: 8px;
  }
}

/* === V13 production polish batch === */
body.employee-portal .profile-photo-actions {
  display: grid;
  gap: 6px;
  align-items: center;
}

body.employee-portal .profile-photo-actions small {
  color: var(--emp-muted);
  line-height: 1.7;
}

body.employee-portal .disputes-polished-page .employee-card {
  border-color: rgba(56, 199, 244, .20);
}

body.employee-portal .disputes-hero-card {
  background:
    radial-gradient(circle at 12% 8%, rgba(168, 85, 247, .16), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(56, 199, 244, .16), transparent 32%),
    linear-gradient(180deg, rgba(14, 32, 60, .94), rgba(7, 16, 31, .95));
}

body.employee-portal .compact-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

body.employee-portal .compact-workflow span {
  display: grid;
  gap: 6px;
  min-height: 76px;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(56, 199, 244, .18);
  background: rgba(6, 18, 36, .55);
  color: rgba(226, 232, 240, .9);
  font-weight: 900;
}

body.employee-portal .compact-workflow strong {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38c7f4, #2f80ed);
  color: #03101c;
}

body.employee-portal .segmented-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(52, 71, 102, .72);
  border-radius: 18px;
  background: rgba(9, 19, 38, .62);
}

body.employee-portal .segmented-field>span {
  width: 100%;
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 900;
}

body.employee-portal .segmented-field label,
body.employee-portal .polished-check {
  cursor: pointer;
  user-select: none;
}

body.employee-portal .segmented-field label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 199, 244, .20);
  background: rgba(56, 199, 244, .08);
}

body.employee-portal .segmented-field input,
body.employee-portal .polished-check input {
  width: 18px;
  height: 18px;
  accent-color: #38c7f4;
}

body.employee-portal .danger-levels label:last-child {
  border-color: rgba(255, 107, 122, .32);
  background: rgba(255, 107, 122, .10);
}

body.employee-portal .repeat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.employee-portal .polished-history-list .employee-list-item {
  border-radius: 18px;
  background: rgba(7, 16, 31, .68);
}

body.employee-portal .employee-bottom-nav {
  min-height: calc(76px + env(safe-area-inset-bottom));
  height: calc(76px + env(safe-area-inset-bottom));
  border-top-color: rgba(56, 199, 244, .22);
  box-shadow: 0 -18px 44px rgba(2, 8, 23, .48);
}

body.employee-portal .employee-bottom-nav button {
  min-height: 58px;
  border-radius: 18px;
  white-space: nowrap;
}

body.employee-portal .employee-bottom-nav button.is-active {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(56, 199, 244, .16);
}

body.employee-portal .employee-more-sheet {
  border-color: rgba(56, 199, 244, .24);
  box-shadow: 0 -30px 70px rgba(2, 8, 23, .58);
}

body.employee-portal .employee-card,
body.employee-portal .employee-login-card,
body.employee-portal .employee-more-sheet {
  backdrop-filter: blur(10px);
}

@media (max-width: 640px) {

  body.employee-portal .compact-workflow,
  body.employee-portal .repeat-grid {
    grid-template-columns: 1fr;
  }

  body.employee-portal .employee-bottom-nav {
    overflow-x: hidden;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  body.employee-portal .employee-bottom-nav button {
    min-width: 0;
    padding: 7px 5px;
  }

  body.employee-portal .employee-bottom-nav button strong {
    font-size: 18px;
  }

  body.employee-portal .employee-bottom-nav button span {
    font-size: 10px;
  }
}

body.employee-portal .must-change-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px 14px;
  border-color: rgba(245, 158, 11, .35) !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, .12), rgba(7, 16, 31, .92)) !important;
}

body.employee-portal .must-change-card strong {
  color: #fde68a;
}

body.employee-portal .must-change-card span {
  color: rgba(226, 232, 240, .86);
}

@media (max-width:640px) {
  body.employee-portal .must-change-card {
    grid-template-columns: 1fr;
  }
}

body.employee-portal .device-inline-status {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(56, 199, 244, .24);
  background: rgba(7, 16, 31, .62);
  color: rgba(226, 232, 240, .88);
}

body.employee-portal .device-inline-status strong {
  color: #eaf6ff;
  font-weight: 900;
}

body.employee-portal .device-inline-status span {
  color: rgba(203, 213, 225, .84);
  line-height: 1.7;
}

body.employee-portal .device-inline-status.ok {
  border-color: rgba(34, 197, 94, .30);
  background: rgba(22, 163, 74, .08);
}

body.employee-portal .device-inline-status.warn {
  border-color: rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .10);
}

body.employee-portal .device-security-card {
  border-color: rgba(56, 199, 244, .28) !important;
}

body.employee-portal .holiday-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-color: rgba(73, 211, 154, .34) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(73, 211, 154, .18), transparent 36%),
    linear-gradient(135deg, rgba(10, 34, 32, .94), rgba(7, 16, 31, .96)) !important;
}

body.employee-portal .holiday-card h2,
body.employee-portal .holiday-card p {
  margin: 0;
}

body.employee-portal .holiday-card p {
  color: rgba(226, 232, 240, .84);
  line-height: 1.7;
}

body.employee-portal .holiday-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(73, 211, 154, .34);
  background: rgba(73, 211, 154, .12);
  color: #bbf7d0;
  font-size: 28px;
  box-shadow: 0 16px 38px rgba(73, 211, 154, .10);
}

body.employee-portal .holiday-card .employee-actions-row {
  grid-column: 1 / -1;
}

body.employee-portal .attendance-floating-reminder {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: 520px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(56, 199, 244, .34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 199, 244, .20), transparent 38%),
    rgba(7, 16, 31, .98);
  box-shadow: 0 22px 54px rgba(2, 8, 23, .58);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}

body.employee-portal .attendance-floating-reminder.is-visible {
  transform: none;
  opacity: 1;
}

body.employee-portal .attendance-floating-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(56, 199, 244, .22), rgba(47, 128, 237, .18));
  border: 1px solid rgba(56, 199, 244, .30);
  font-size: 24px;
}

body.employee-portal .attendance-floating-copy {
  display: grid;
  gap: 3px;
}

body.employee-portal .attendance-floating-copy strong {
  color: #f8fbff;
  font-weight: 900;
}

body.employee-portal .attendance-floating-copy span {
  color: rgba(226, 232, 240, .82);
  font-size: 13px;
  line-height: 1.5;
}

body.employee-portal .attendance-floating-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8px;
}

body.employee-portal .attendance-floating-actions .button {
  min-height: 44px;
  border-radius: 14px;
}

@media (max-width: 420px) {
  body.employee-portal .holiday-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  body.employee-portal .attendance-floating-reminder {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  body.employee-portal .attendance-floating-actions {
    grid-template-columns: 1fr;
  }
}

body.employee-portal .live-location-alert-backdrop {
  align-items: center;
  justify-content: center;
  padding: 14px;
}

body.employee-portal .live-location-alert-modal {
  width: min(430px, 100%);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  border-color: rgba(56, 199, 244, .34);
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 199, 244, .16), transparent 42%),
    rgba(7, 16, 31, .97);
}

body.employee-portal .live-location-alert-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 199, 244, .36);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 199, 244, .20), rgba(47, 128, 237, .16));
  box-shadow: 0 18px 34px rgba(56, 199, 244, .12);
  font-size: 28px;
}

body.employee-portal .live-location-alert-copy {
  display: grid;
  gap: 8px;
}

body.employee-portal .live-location-alert-copy h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(22px, 6vw, 30px);
}

body.employee-portal .live-location-alert-copy p {
  margin: 0;
  color: rgba(226, 232, 240, .82);
  line-height: 1.75;
}

body.employee-portal .live-location-alert-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  gap: 10px;
}

body.employee-portal .live-location-alert-actions .button {
  min-height: 52px;
  border-radius: 16px;
  white-space: normal;
}

@media (max-width: 420px) {
  body.employee-portal .live-location-alert-modal {
    padding: 20px;
  }

  body.employee-portal .live-location-alert-actions {
    grid-template-columns: 1fr;
  }
}

/* 094 employee mobile role addons */
.manager-mobile-hub .accent-card,
.committee-mobile-hub .disputes-hero-card {
  background: linear-gradient(135deg, rgba(30, 64, 175, .88), rgba(124, 58, 237, .72));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
}

.employee-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.employee-metrics>div {
  border-radius: 18px;
  padding: .85rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
}

.employee-metrics span {
  display: block;
  opacity: .82;
  font-size: .78rem;
}

.employee-metrics strong {
  display: block;
  font-size: 1.45rem;
  margin-top: .25rem;
}

.employee-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
}

.employee-mini-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.employee-mini-table th,
.employee-mini-table td {
  padding: .72rem .85rem;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  text-align: right;
}

.employee-mini-table th {
  font-size: .78rem;
  opacity: .78;
}

.employee-mini-table tr:last-child td {
  border-bottom: 0;
}

/* v095 mobile KPI workflow polish */
.employee-portal .kpi-advanced .accent-card {
  border-color: rgba(59, 130, 246, .34);
  background: radial-gradient(circle at top right, rgba(37, 99, 235, .22), transparent 42%), linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .94));
}

.employee-portal .kpi-slider-field {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 1.15rem;
  padding: .9rem;
  background: rgba(15, 23, 42, .55);
}

.employee-portal .kpi-slider-field.is-readonly {
  opacity: .78;
  background: rgba(30, 41, 59, .5);
}

.employee-portal .kpi-progress {
  height: .45rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, .18);
  margin-top: .45rem;
}

.employee-portal .kpi-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #22c55e);
}

/* v31-production-hardening-098: manager KPI mobile review */
.manager-kpi-mobile-page .accent-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, .28), rgba(168, 85, 247, .18));
  border-color: rgba(96, 165, 250, .35)
}

.manager-kpi-review-card {
  border: 1px solid rgba(96, 165, 250, .28);
  background: linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(30, 41, 59, .72))
}

.kpi-mobile-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem
}

.kpi-mobile-score-grid label {
  display: grid;
  gap: .35rem
}

.kpi-mobile-score-grid input,
.manager-kpi-review-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(2, 6, 23, .42);
  color: #fff;
  padding: .75rem
}

.manager-kpi-review-card textarea {
  min-height: 84px
}

@media(max-width:560px) {
  .kpi-mobile-score-grid {
    grid-template-columns: 1fr
  }

  .manager-kpi-review-card .panel-head {
    align-items: flex-start
  }
}

/* ============================================================
   HR v099 Employee Portal — UX & Mobile Enhancements
   ============================================================ */

/* ── Smooth punch orb animation ── */
body.employee-portal .punch-orb {
  font-size: 64px;
  line-height: 1;
  text-align: center;
  padding: 20px;
  filter: drop-shadow(0 0 16px rgba(0, 194, 255, .32));
  animation: emp-orb-breathe 2.8s ease-in-out infinite;
}

@keyframes emp-orb-breathe {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(0, 194, 255, .28));
  }

  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 22px rgba(0, 194, 255, .48));
  }
}

/* ── Primary punch button ── */
body.employee-portal .punch-primary-card .button.primary {
  min-height: 60px;
  font-size: 18px !important;
  border-radius: 18px !important;
  letter-spacing: 0 !important;
  position: relative;
  overflow: hidden;
}

body.employee-portal .punch-primary-card .button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
  transform: translateX(-100%);
  animation: emp-shimmer 2.4s ease-in-out infinite;
}

@keyframes emp-shimmer {
  0% {
    transform: translateX(-100%);
  }

  60% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ── Action cards on home screen ── */
body.employee-portal .quick-action-card {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

body.employee-portal .quick-action-card:hover,
body.employee-portal .quick-action-card:focus-visible {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(0, 80, 200, .20) !important;
  border-color: rgba(0, 194, 255, .40) !important;
}

body.employee-portal .quick-action-card:active {
  transform: scale(.97) !important;
  transition-duration: .08s !important;
}

/* ── GPS status indicator ── */
body.employee-portal .gps-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--emp-warning);
}

body.employee-portal .gps-status-dot.ok {
  background: var(--emp-success);
  box-shadow: 0 0 0 4px rgba(73, 211, 154, .16);
  animation: emp-gps-pulse 2s ease-in-out infinite;
}

body.employee-portal .gps-status-dot.error {
  background: var(--emp-danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 122, .14);
}

@keyframes emp-gps-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(73, 211, 154, .16);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(73, 211, 154, .06);
  }
}

/* ── Result message box ── */
body.employee-portal .message.compact {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--emp-line-strong);
  background: rgba(17, 29, 51, .72);
  color: var(--emp-text);
  font-size: 13px;
  line-height: 1.65;
  animation: emp-msg-in .22s ease both;
}

body.employee-portal .message.compact.success {
  border-color: rgba(73, 211, 154, .42);
  background: rgba(73, 211, 154, .1);
  color: #b3f0d6;
}

body.employee-portal .message.compact.error {
  border-color: rgba(255, 107, 122, .42);
  background: rgba(255, 107, 122, .1);
  color: #ffd5da;
}

@keyframes emp-msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Notification badge ── */
body.employee-portal .notif-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emp-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--emp-bg);
  animation: emp-notif-pop .3s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes emp-notif-pop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* ── Loading state shimmer for employee cards ── */
body.employee-portal .employee-card.is-loading * {
  animation: emp-skeleton 1.6s ease infinite !important;
}

body.employee-portal .emp-skeleton {
  background: linear-gradient(90deg, rgba(26, 42, 74, .4) 25%, rgba(26, 42, 74, .7) 50%, rgba(26, 42, 74, .4) 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: emp-skeleton 1.6s ease infinite;
  color: transparent !important;
  border-color: transparent !important;
}

@keyframes emp-skeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Slide-up page transition ── */
body.employee-portal .employee-main>* {
  animation: emp-page-in .26s ease both;
}

@keyframes emp-page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Leave status indicators ── */
body.employee-portal .leave-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Profile avatar ring ── */
body.employee-portal .avatar.profile-avatar {
  box-shadow: 0 0 0 3px var(--emp-line-strong), 0 0 0 6px rgba(56, 199, 244, .1);
}

/* ── Punch type label text ── */
body.employee-portal [data-punch-type="in"] {
  background: linear-gradient(135deg, rgba(0, 214, 143, .9), rgba(0, 194, 255, .8)) !important;
  color: #031022 !important;
  border-color: rgba(0, 214, 143, .5) !important;
}

body.employee-portal [data-punch-type="out"] {
  background: linear-gradient(135deg, rgba(255, 59, 107, .88), rgba(255, 140, 0, .8)) !important;
  color: #fff !important;
  border-color: rgba(255, 59, 107, .5) !important;
}

/* ── Responsive ── */
@media (max-width: 380px) {
  body.employee-portal .employee-topbar {
    min-height: 64px;
    padding-top: calc(8px + env(safe-area-inset-top));
  }

  body.employee-portal .employee-main {
    padding: 14px 12px 22px;
  }
}

/* ════════════════════════════════════════════════════════════
   v101 EMPLOYEE APP UX IMPROVEMENTS
   ════════════════════════════════════════════════════════════ */

/* ── Login screen ── */
.employee-login-wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 199, 244, .10) 0%, transparent 65%),
    var(--bg-deep);
}

.login-logo-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 199, 244, .18), rgba(87, 218, 245, .08));
  border: 1px solid rgba(56, 199, 244, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 8px rgba(56, 199, 244, .06), 0 20px 50px rgba(0, 0, 0, .4);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(56, 199, 244, .06), 0 20px 50px rgba(0, 0, 0, .4);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(56, 199, 244, .10), 0 20px 50px rgba(0, 0, 0, .4);
  }
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px 28px 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
  backdrop-filter: blur(20px);
}

.login-card h1 {
  font-size: clamp(20px, 5vw, 26px);
  margin: 0 0 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── Hero home card ── */
.hero-home-card {
  background: linear-gradient(135deg,
      rgba(56, 199, 244, .14) 0%,
      rgba(87, 218, 245, .06) 50%,
      rgba(13, 23, 41, .6) 100%);
  border: 1px solid rgba(56, 199, 244, .22);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}

.hero-home-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 199, 244, .12), transparent 70%);
  pointer-events: none;
}

.hero-greeting {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}

.hero-name {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.hero-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-stat {
  flex: 1 1 80px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}

.hero-stat .stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  display: block;
  line-height: 1.1;
}

.hero-stat .stat-lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-top: 3px;
}

/* ── Quick actions grid ── */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  text-align: center;
  transition: background .2s, border-color .2s, transform .15s;
  color: var(--text);
  text-decoration: none;
}

.quick-action-btn:hover {
  background: var(--surface-raised);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.quick-action-btn:active {
  transform: scale(.96);
}

.quick-action-btn .qa-icon {
  font-size: 24px;
  line-height: 1;
  display: block;
}

.quick-action-btn .qa-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
}

.quick-action-btn.primary-action {
  background: linear-gradient(135deg, rgba(56, 199, 244, .18), rgba(56, 199, 244, .08));
  border-color: rgba(56, 199, 244, .35);
}

.quick-action-btn.primary-action .qa-label {
  color: var(--brand);
}

/* ── Punch orb improvements ── */
.punch-orb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  gap: 20px;
}

.punch-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
      rgba(56, 199, 244, .40) 0%,
      rgba(56, 199, 244, .15) 45%,
      rgba(5, 11, 22, .8) 100%);
  border: 2px solid rgba(56, 199, 244, .4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform .2s, box-shadow .3s;
  box-shadow:
    0 0 0 8px rgba(56, 199, 244, .06),
    0 0 0 20px rgba(56, 199, 244, .03),
    0 24px 60px rgba(0, 0, 0, .5);
}

.punch-orb::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(56, 199, 244, .18);
  animation: orbRing 2.5s ease-in-out infinite;
}

.punch-orb::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(56, 199, 244, .08);
  animation: orbRing 2.5s ease-in-out .5s infinite;
}

@keyframes orbRing {

  0%,
  100% {
    transform: scale(1);
    opacity: .6;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.punch-orb:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 12px rgba(56, 199, 244, .10),
    0 0 0 28px rgba(56, 199, 244, .04),
    0 28px 70px rgba(0, 0, 0, .6);
}

.punch-orb.punched-in {
  background: radial-gradient(circle at 35% 35%,
      rgba(73, 211, 154, .35) 0%,
      rgba(73, 211, 154, .12) 45%,
      rgba(5, 11, 22, .8) 100%);
  border-color: rgba(73, 211, 154, .4);
  box-shadow:
    0 0 0 8px rgba(73, 211, 154, .07),
    0 0 0 20px rgba(73, 211, 154, .03),
    0 24px 60px rgba(0, 0, 0, .5);
}

.punch-orb.punched-in::before,
.punch-orb.punched-in::after {
  border-color: rgba(73, 211, 154, .2);
}

.punch-orb-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.punch-orb.punched-in .punch-orb-label {
  color: var(--success);
}

.punch-orb-time {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ── GPS status indicator ── */
.gps-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}

.gps-status.acquiring {
  background: rgba(247, 199, 107, .08);
  border-color: rgba(247, 199, 107, .25);
  color: var(--warning);
}

.gps-status.acquired {
  background: rgba(73, 211, 154, .08);
  border-color: rgba(73, 211, 154, .25);
  color: var(--success);
}

.gps-status.error {
  background: rgba(255, 107, 122, .08);
  border-color: rgba(255, 107, 122, .25);
  color: var(--danger);
}

.gps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.gps-status.acquiring .gps-dot {
  animation: gpsAcquire .9s ease-in-out infinite alternate;
}

@keyframes gpsAcquire {
  from {
    opacity: .3;
    transform: scale(.8);
  }

  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ── Notification badge on nav ── */
.nav-badge {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

/* v116: more menu must show multiple icons per row on phones */
body.employee-portal .employee-more-sheet {
  width: min(calc(100vw - 16px), 520px) !important;
  max-width: none !important;
}

body.employee-portal .employee-more-sheet .more-sheet-grid,
body.employee-portal .more-sheet-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.employee-portal .more-sheet-grid button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;
  padding: 8px 5px !important;
}

@media (min-width: 430px) {

  body.employee-portal .employee-more-sheet .more-sheet-grid,
  body.employee-portal .more-sheet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 330px) {

  body.employee-portal .employee-more-sheet .more-sheet-grid,
  body.employee-portal .more-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}