/* Staff Attendance ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Tech / Sci-Fi premium theme */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700&family=Rajdhani:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-0: #06090f;
  --bg-1: #0b1220;
  --bg-2: #101a2e;
  --surface: rgba(12, 12, 28, 0.72);
  --surface-solid: #0f0f1f;
  --surface-2: rgba(18, 18, 40, 0.85);
  --border: rgba(94, 234, 212, 0.14);
  --border-strong: rgba(94, 234, 212, 0.28);
  --text: #e8eef8;
  --muted: #8b9bb8;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-dim: rgba(45, 212, 191, 0.12);
  --accent-hover: #5eead4;
  --sidebar: rgba(8, 8, 18, 0.88);
  --sidebar-text: #9db0cc;
  --sidebar-active: rgba(45, 212, 191, 0.12);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 0 0 1px rgba(45, 212, 191, 0.06), 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-display: 'Orbitron', sans-serif;
  --font-ui: 'Rajdhani', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --glow-soft: 0 0 24px rgba(45, 212, 191, 0.18);

  /* Dashboard status colours (Dark Mode / Holo Night) */
  --status-total: #E2E8F0;
  /* Silver */
  --status-present: #22C55E;
  /* Bright Green */
  --status-late: #F59E0B;
  /* Amber */
  --status-break: #8B5CF6;
  /* Violet */
  --status-wfh: #EC4899;
  /* Pink */
  --status-dayoff: #94A3B8;
  /* Cool Grey */
  --status-notclocked: #EF4444;
  /* Bright Red */
}

@media (max-width: 767.98px) {
  .admin-offday-adjustments .offday-adjustment-mobile {
    padding: .7rem .75rem;
  }

  .admin-offday-adjustments .offday-mobile__top {
    align-items: center;
  }

  .admin-offday-adjustments .offday-mobile__top strong {
    font-size: .94rem;
  }

  .admin-offday-adjustments .offday-mobile__top span:not(.offday-mobile__status) {
    font-size: .74rem;
  }

  .admin-offday-adjustments .offday-mobile__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .2rem .5rem;
    margin-top: .45rem;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.3;
  }

  .admin-offday-adjustments .offday-mobile__summary span:nth-child(3) {
    grid-column: 1 / -1;
    color: var(--text);
    font-weight: 600;
  }

  .admin-offday-adjustments .offday-mobile__review {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 82px;
    min-height: 34px;
  }

  .admin-offday-adjustments .offday-mobile__review i {
    margin-left: .2rem;
  }

  .admin-offday-adjustments .offday-adjustment-mobile section {
    display: none;
  }

  .admin-offday-adjustments .offday-adjustment-mobile.is-expanded section {
    display: block;
  }
}

* {
  box-sizing: border-box;
}

img.logo-theme-light {
  display: none !important;
}

html[data-theme='day'] img.logo-theme-dark {
  display: none !important;
}

html[data-theme='day'] img.logo-theme-light {
  display: block !important;
}

body.app-body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 50%, rgb(27, 27, 47) 0%, rgb(15, 15, 31) 50%, rgb(0, 0, 0) 100%);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* SINT-matched deep space base (radial nebula void) */
body.app-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
      rgb(27, 27, 47) 0%,
      rgb(15, 15, 31) 50%,
      rgb(0, 0, 0) 100%);
}

body.app-body::after {
  display: none;
}

#chronoAmbient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%,
      rgb(27, 27, 47) 0%,
      rgb(15, 15, 31) 50%,
      rgb(0, 0, 0) 100%);
}

#chronoAmbient canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

html[data-globe='off'] #chronoAmbient,
html[data-globe='off'] #chronoAmbient canvas,
html[data-theme='day'][data-globe='off'] #chronoAmbient,
html[data-theme='day'][data-globe='off'] #chronoAmbient canvas,
html[data-theme='night'][data-globe='off'] #chronoAmbient,
html[data-theme='night'][data-globe='off'] #chronoAmbient canvas {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767.98px) {
  .admin-offday-adjustments .table-responsive-card {
    display: none;
  }

  .admin-offday-adjustments .offday-adjustments-mobile {
    display: grid;
    gap: .7rem;
  }

  .admin-offday-adjustments .offday-adjustment-mobile {
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    background: var(--surface);
  }

  .admin-offday-adjustments .offday-mobile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
  }

  .admin-offday-adjustments .offday-mobile__top strong {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .admin-offday-adjustments .offday-mobile__top span:not(.offday-mobile__status) {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-top: .15rem;
  }

  .admin-offday-adjustments .offday-mobile__status {
    flex: 0 0 auto;
    padding: .2rem .45rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
  }

  .admin-offday-adjustments .status-pending {
    color: #b45309;
    background: rgba(245, 158, 11, .16);
  }

  .admin-offday-adjustments .status-decided {
    color: #047857;
    background: rgba(16, 185, 129, .14);
  }

  .admin-offday-adjustments section {
    margin-top: .8rem;
    padding-top: .7rem;
    border-top: 1px solid var(--border);
  }

  .admin-offday-adjustments section h6 {
    margin: 0 0 .5rem;
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .1em;
  }

  .admin-offday-adjustments .offday-mobile__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem .8rem;
  }

  .admin-offday-adjustments .offday-mobile__grid div,
  .admin-offday-adjustments .offday-mobile__balance {
    display: grid;
    gap: .12rem;
  }

  .admin-offday-adjustments .offday-mobile__grid span,
  .admin-offday-adjustments .offday-mobile__balance span {
    color: var(--muted);
    font-size: .72rem;
  }

  .admin-offday-adjustments .offday-mobile__grid strong,
  .admin-offday-adjustments .offday-mobile__balance strong {
    font-size: .86rem;
  }

  .admin-offday-adjustments .offday-mobile__balance {
    grid-template-columns: 1fr auto;
    gap: .35rem .7rem;
  }

  .admin-offday-adjustments .offday-mobile__decision {
    display: grid;
    gap: .55rem;
  }

  .admin-offday-adjustments .offday-mobile__decision label {
    font-size: .8rem;
    line-height: 1.35;
  }

  .admin-offday-adjustments .offday-mobile__decision button {
    min-height: 40px;
  }
}

.admin-break-records .table-responsive-card {
  display: none;
}

.admin-break-records .break-records-mobile {
  display: grid;
  gap: .65rem;
  padding: .75rem;
}

.admin-break-records .break-record-mobile {
  padding: .8rem .85rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius, 12px);
  background: var(--surface);
}

.admin-break-records .break-record-mobile.is-exceeded {
  border-left-color: #f59e0b;
}

.admin-break-records .break-record-mobile__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}

.admin-break-records .break-record-mobile__identity {
  min-width: 0;
  display: grid;
  gap: .15rem;
}

.admin-break-records .break-record-mobile__identity strong {
  font-size: .98rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.admin-break-records .break-record-mobile__identity span {
  color: var(--muted);
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.admin-break-records .break-record-mobile__status {
  flex: 0 1 auto;
  max-width: 45%;
  padding: .2rem .4rem;
  border-radius: 999px;
  color: #047857;
  background: rgba(16, 185, 129, .13);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.admin-break-records .break-record-mobile.is-exceeded .break-record-mobile__status {
  color: #b45309;
  background: rgba(245, 158, 11, .16);
}

.admin-break-records .break-record-mobile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem .8rem;
  margin: .8rem 0;
}

.admin-break-records .break-record-mobile__grid div {
  min-width: 0;
  display: grid;
  gap: .12rem;
}

.admin-break-records .break-record-mobile__grid span,
.admin-break-records .break-record-mobile__total span {
  color: var(--muted);
  font-size: .72rem;
}

.admin-break-records .break-record-mobile__grid strong,
.admin-break-records .break-record-mobile__total strong {
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.admin-break-records .break-record-mobile__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--border);
}

.admin-break-records .break-record-mobile__action {
  width: 100%;
  min-height: 38px;
  margin-top: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
}

#chronoAmbient {
  opacity: .85;
}
}

/* Staff management: mobile cards retain the desktop table for larger screens. */
.admin-staff-management .staff-page-header {
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}

.admin-staff-management .staff-management-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .admin-staff-management #advancedStaffFilters {
    display: contents !important;
  }

  .admin-staff-management #advancedStaffFilters > * {
    margin-top: var(--bs-gutter-y) !important;
    padding-right: calc(var(--bs-gutter-x) * .5) !important;
    padding-left: calc(var(--bs-gutter-x) * .5) !important;
  }

  .admin-staff-management #advancedStaffFilters .form-label {
    display: block !important;
  }
}

@media (max-width: 767.98px) {
  .admin-staff-management .staff-page-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: .75rem !important;
    padding-bottom: .6rem;
    margin-bottom: .75rem !important;
  }

  .admin-staff-management .staff-page-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-staff-management .staff-page-header .btn {
    flex: 0 0 auto;
    width: auto;
    padding: .35rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    height: 34px;
    min-height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
  }

  .admin-staff-management .app-content {
    min-width: 0;
    padding: .75rem;
  }

  .admin-staff-management .staff-filter-card {
    margin-bottom: .75rem !important;
    background: color-mix(in srgb, var(--surface) 96%, #08111d);
  }

  .admin-staff-management .staff-filter-card .card-body {
    padding: .65rem .75rem;
  }

  .admin-staff-management .search-bar-combo {
    display: flex;
    min-width: 0;
  }

  .admin-staff-management .search-bar-combo__input {
    min-width: 0;
    height: 36px;
    font-size: .82rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .admin-staff-management .search-bar-combo__btn {
    flex: 0 0 auto;
    height: 36px;
    min-height: 36px;
    padding: 0 .75rem;
    font-size: .8rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .admin-staff-management .staff-filter-mobile-toolbar {
    margin-top: .15rem;
  }

  .admin-staff-management .staff-filter-toggle-btn {
    height: 30px;
    padding: 0 .65rem;
    font-size: .75rem;
    font-weight: 500;
    border-radius: 5px;
    border-color: var(--border);
    background: color-mix(in srgb, var(--surface) 90%, #fff 10%);
    color: var(--text);
  }

  .admin-staff-management .staff-filter-toggle-btn .badge {
    font-size: .65rem;
    padding: 0.15rem 0.35rem;
  }

  .admin-staff-management .staff-filter-reset-link {
    font-size: .75rem;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .admin-staff-management #advancedStaffFilters.show,
  .admin-staff-management #advancedStaffFilters.collapsing {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    margin-top: .35rem;
  }

  .admin-staff-management #advancedStaffFilters > .col-6 {
    padding-inline: .25rem;
  }

  .admin-staff-management #advancedStaffFilters .form-label {
    font-size: .72rem;
    font-weight: 600;
    margin-bottom: .2rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .02em;
  }

  .admin-staff-management #advancedStaffFilters .form-select {
    height: 34px;
    font-size: .8rem;
    padding: .25rem 1.75rem .25rem .5rem;
  }

  .admin-staff-management .staff-management-desktop {
    display: none !important;
  }

  .admin-staff-management .staff-management-mobile {
    display: flex !important;
    flex-direction: column;
    gap: .65rem;
    padding: .65rem;
  }

  .admin-staff-management .staff-card {
    min-width: 0;
    padding: .75rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 98%, #08111d);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    transition: border-color .15s ease;
  }

  .admin-staff-management .staff-card:hover,
  .admin-staff-management .staff-card:focus-within {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  }

  .admin-staff-management .staff-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
    min-width: 0;
  }

  .admin-staff-management .staff-card__identity {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-staff-management .staff-card__name {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-staff-management .staff-card__meta-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .45rem;
    margin-top: .2rem;
    min-width: 0;
  }

  .admin-staff-management .staff-card__meta-sub .username-badge {
    font-size: .72rem;
    padding: .1rem .35rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--surface) 80%, #000 20%);
    border: 1px solid var(--border);
    color: var(--accent);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .admin-staff-management .staff-card__email {
    font-size: .73rem;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .admin-staff-management .staff-card__status {
    flex: 0 0 auto;
    margin-top: 1px;
  }

  .admin-staff-management .staff-card__status .status-badge {
    font-size: .68rem;
    padding: .2rem .55rem;
    letter-spacing: .02em;
    white-space: nowrap;
    border-radius: 999px;
    font-weight: 600;
  }

  .admin-staff-management .staff-card__body {
    padding: .45rem .6rem;
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface) 92%, #000 8%);
    border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
  }

  .admin-staff-management .staff-card__pos-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px dashed color-mix(in srgb, var(--border) 60%, transparent);
    min-width: 0;
  }

  .admin-staff-management .staff-card__pos-val {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
    overflow-wrap: anywhere;
  }

  .admin-staff-management .staff-card__meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem .6rem;
    min-width: 0;
  }

  .admin-staff-management .staff-card__meta-cell {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .1rem;
  }

  .admin-staff-management .staff-card__label {
    font-size: .64rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
  }

  .admin-staff-management .staff-card__meta-val {
    font-size: .78rem;
    font-weight: 500;
    color: var(--text);
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .admin-staff-management .staff-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    min-width: 0;
    margin-top: .1rem;
  }

  .admin-staff-management .staff-card__btn-edit,
  .admin-staff-management .staff-card__btn-delete {
    height: 34px;
    min-height: 34px;
    padding: 0 .5rem;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1;
    transition: all .15s ease;
  }

  .admin-staff-management .staff-card__btn-edit {
    background: color-mix(in srgb, var(--surface) 90%, #fff 10%);
    border-color: var(--border);
    color: var(--text);
  }

  .admin-staff-management .staff-card__btn-edit:hover,
  .admin-staff-management .staff-card__btn-edit:active {
    background: color-mix(in srgb, var(--accent) 15%, var(--surface));
    border-color: var(--accent);
    color: var(--accent);
  }

  .admin-staff-management .staff-card__btn-delete {
    background: transparent;
    border: 1px solid color-mix(in srgb, #ef4444 40%, var(--border));
    color: color-mix(in srgb, #ef4444 85%, var(--text));
  }

  .admin-staff-management .staff-card__btn-delete:hover,
  .admin-staff-management .staff-card__btn-delete:active {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #ef4444;
  }

  .admin-staff-management .report-pagination {
    margin-top: -.1rem;
  }

  .admin-staff-management .report-pagination .pagination-summary {
    margin-bottom: .15rem;
  }

  .admin-staff-management .report-pagination-mobile .pagination-mobile-btn {
    min-height: 38px;
  }
}

a {
  margin-top: 2px;
  gap: 2px 8px;
}

.staff-dashboard .activity-strip-badge-line {
  margin-top: .35rem !important;
}

.staff-dashboard .badge-result {
  padding: 4px 8px;
  font-size: .66rem;
}

.staff-dashboard .app-footer {
  padding: .55rem .75rem;
  font-size: .72rem;
}
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  background: transparent !important;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Sidebar ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.app-sidebar {
  width: 268px;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.98) 0%, rgba(6, 10, 18, 0.98) 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 1040;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.35);
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.sidebar-brand::after {
  content: '';
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(56, 189, 248, 0.15));
  color: var(--accent);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--glow-soft);
  animation: none;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}

.brand-mark .brand-logo-img,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.brand-name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.sidebar-nav {
  padding: .45rem .6rem;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--sidebar-text);
  padding: .52rem .8rem;
  border-radius: var(--radius-sm);
  margin-bottom: .2rem;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  position: relative;
}

.sidebar-nav .nav-link__label {
  flex: 1;
  min-width: 0;
}

.sidebar-nav .nav-badge {
  flex-shrink: 0;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .35rem;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-nav .nav-badge.is-on {
  display: inline-flex;
  animation: navBadgePulse 2.2s ease-out infinite;
}

.sidebar-nav .nav-badge.is-bump {
  animation: navBadgeBump .45s ease;
}

@keyframes navBadgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(251, 113, 133, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0);
  }
}

@keyframes navBadgeBump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.28);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .sidebar-nav .nav-badge.is-on,
  .sidebar-nav .nav-badge.is-bump {
    animation: none !important;
  }
}

.sidebar-nav .nav-link:hover {
  background: rgba(45, 212, 191, 0.06);
  color: #fff;
  border-color: rgba(45, 212, 191, 0.12);
}

.sidebar-nav .nav-link.active {
  background: var(--sidebar-active);
  color: var(--accent);
  border-color: var(--border-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-nav .nav-link i {
  font-size: 1.05rem;
  width: 1.2rem;
  text-align: center;
  opacity: 0.9;
}

.sidebar-footer {
  padding: .65rem .85rem;
  flex: 0 0 auto;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.user-chip {
  display: flex;
  gap: .7rem;
  align-items: center;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a5f, #0f2744);
  color: var(--accent);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  color: #fff;
  font-size: .84rem;
  line-height: 1.2;
  font-weight: 600;
  font-family: var(--font-ui);
}

.user-role {
  font-size: .68rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Main ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: rgba(8, 14, 26, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: .8rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-information {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 0 0 auto;
}

.topbar-information--admin {
  flex: 1 1 auto;
}

/* Staff has no desktop ticker or title in the top bar; keep its controls together on the right. */
.staff-area .app-topbar .topbar-information {
  margin-left: auto;
}

@media (min-width: 768px) {
  .staff-leave-new-request-toggle {
    padding: .8rem 1.15rem;
    border: 1px solid #0f766e;
    border-radius: .65rem;
    background: #0f766e;
    color: #fff;
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 3px 10px rgba(15, 118, 110, .2);
    cursor: pointer;
  }

  .staff-leave-new-request-toggle:hover,
  .staff-leave-new-request-toggle:focus-visible {
    border-color: #115e59;
    background: #115e59;
    color: #fff;
  }

  .staff-leave-new-request-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .staff-leave-new-request-toggle>.bi-chevron-down {
    transition: transform .2s ease;
  }

  .staff-leave-new-request-toggle[aria-expanded='true']>.bi-chevron-down {
    transform: rotate(180deg);
  }

  .staff-leave-layout #newRequestCard.show,
  .staff-leave-layout #newRequestCard.collapsing {
    margin-top: .75rem;
    max-width: 800px;
  }

  .staff-leave-layout #newRequestCard .card-header {
    display: none;
  }

  .staff-leave-layout #newRequestCard .card-body {
    max-width: 760px;
  }

  .staff-leave-requests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .staff-leave-summary-stats {
    align-items: center;
    gap: .45rem;
    margin-left: auto;
  }

  .staff-leave-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .staff-leave-summary-pill strong {
    color: var(--text);
    font: 700 .82rem var(--font-mono, monospace);
  }

  .staff-leave-summary-pill--pending { border-color: #b45309; }
  .staff-leave-summary-pill--approved { border-color: #059669; }
  .staff-leave-summary-pill--approved strong { color: #047857; }
  .staff-leave-summary-pill--rejected { border-color: #dc2626; }
  .staff-leave-summary-pill--rejected strong { color: #b91c1c; }
}

.staff-leave-toggle-chevron {
  transition: transform .2s ease;
}

[aria-expanded='true'] > .staff-leave-toggle-chevron,
.staff-leave-new-request-toggle[aria-expanded='true'] > .bi-chevron-down {
  transform: rotate(180deg);
}

.staff-leave-admin-feedback {
  padding: .55rem .7rem;
  border: 1px solid color-mix(in srgb, #22d3ee 45%, var(--border));
  border-left: 3px solid #06b6d4;
  border-radius: .45rem;
  background: color-mix(in srgb, #0891b2 10%, var(--surface));
}

.staff-leave-admin-feedback__label {
  margin-bottom: .2rem;
  color: #0891b2;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .staff-leave-history-table {
    width: 100%;
    min-width: 920px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
  }

  .staff-leave-history-table > :is(thead, tbody) > tr > :is(th, td) {
    vertical-align: top;
    padding: 1rem .75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, #000 15%);
  }

  .staff-leave-history-table > tbody > tr {
    transition: background-color .15s ease;
  }

  .staff-leave-history-table > tbody > tr:hover {
    background-color: color-mix(in srgb, var(--surface) 94%, #000 6%);
  }

  .staff-leave-history-table :is(th, td):nth-child(1) {
    width: 14%;
  }

  .staff-leave-history-table :is(th, td):nth-child(2) {
    width: 20%;
  }

  .staff-leave-history-table :is(th, td):nth-child(3) {
    width: 29%;
  }

  .staff-leave-history-table :is(th, td):nth-child(4) {
    width: 15%;
  }

  .staff-leave-history-table :is(th, td):nth-child(5) {
    width: 22%;
  }

  .staff-leave-history-table td:nth-child(2),
  .staff-leave-history-table td:nth-child(3),
  .staff-leave-history-table td:nth-child(5) {
    overflow-wrap: anywhere;
  }

  .staff-leave-history-table td:nth-child(4) .status-badge {
    white-space: nowrap;
    letter-spacing: 0;
  }
}

.topbar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.app-topbar:has(.topbar-ticker) .topbar-title {
  flex: 0 1 auto;
  max-width: min(200px, 22vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  margin-left: .25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.app-topbar .btn {
  font-weight: 600;
  letter-spacing: .025em;
}

.sidebar-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  font-size: 1.15rem;
}

.topbar-mobile-avatar {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
}

.user-avatar-sm {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, #1e3a5f, #0f2744);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.user-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme='day'] .user-avatar-sm {
  background: linear-gradient(135deg, #dff7f3, #c7e9e5);
  border-color: #8acfc6;
  color: #0f766e;
}

.dash-btn-break {
  cursor: pointer;
  min-height: 4.25rem;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.12);
}

.dash-btn-break:not(:disabled)::after {
  content: '\203A';
  font-size: 1.25rem;
  flex: 0 0 auto;
  opacity: .55;
}

html[data-theme='day'] .dash-btn-break {
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.08);
}

html[data-theme='day'] .dash-btn-break:not(:disabled)::after {
  color: #0f766e;
}

.app-content {
  padding: 1.35rem 1.4rem 1.75rem;
  flex: 1;
}

.app-footer {
  padding: .75rem 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Cards & stats ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.card-soft {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Filter / export card ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â allow dropdown to escape */
.card-soft.card-filters {
  overflow: visible;
  z-index: 30;
}

.card-soft.card-filters .card-body {
  overflow: visible;
}

.report-export-dropdown {
  position: relative;
  display: inline-flex;
}

.report-export-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: auto !important;
  min-width: 100% !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 0.35rem !important;
  background: #0c1628 !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
  transform: none !important;
  z-index: 1080;
}

.report-export-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

.report-export-dropdown .dropdown-item:hover,
.report-export-dropdown .dropdown-item:focus {
  background: var(--accent-dim);
  color: var(--accent);
}

.report-export-dropdown .dropdown-divider {
  margin: 0.3rem 0;
  border-color: var(--border);
  opacity: 0.5;
}

.card-soft::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.45), transparent);
  pointer-events: none;
}

.card-soft .card-body {
  padding: 1.15rem 1.25rem;
}

.staff-profile-card .card-body form {
  gap: 0;
}

.staff-profile-card .card-body form>.btn {
  margin-bottom: 0;
}

.staff-profile-row .staff-profile-card {
  height: 100%;
}

.admin-staff-form-page .staff-form-section + .staff-form-section {
  margin-top: 1.15rem;
}

.admin-staff-form-page .staff-form-section-title {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 .85rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--border);
}

.admin-staff-form-page .staff-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 16px;
  align-items: start;
}

.admin-staff-form-page .staff-form-grid > [class*="col-"] {
  min-width: 0;
  width: 100%;
  max-width: none;
  flex: none;
}

.admin-staff-form-page .staff-form-grid .form-control,
.admin-staff-form-page .staff-form-grid .form-select,
.admin-staff-form-page .staff-form-grid .input-group,
.admin-staff-form-page .staff-form-grid .admin-email-label-row {
  width: 100%;
  max-width: none;
}

/* Composite controls stay on one line inside the grid column. */
.admin-staff-form-page .staff-form-grid .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: 0;
}

.admin-staff-form-page .staff-form-grid .input-group > .form-control {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.admin-staff-form-page .staff-form-grid .input-group > .btn,
.admin-staff-form-page .staff-form-grid .input-group > .input-group-text {
  flex: 0 0 auto;
  width: auto;
}

@media (max-width: 767.98px) {
  .admin-staff-form-page .staff-form-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .9rem;
  }
}

@media (min-width: 992px) {
  .admin-staff-form-page .admin-email-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: .6rem;
    min-height: 1.5rem;
    margin-bottom: .375rem;
  }

  .admin-staff-form-page .admin-email-label-row .btn-email-verify {
    flex: 0 0 auto;
  }

.email-status {
    flex: 0 0 auto;
  }

  .staff-profile-row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .staff-profile-row .staff-profile-card .card-body {
    padding: 1rem 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .admin-staff-form-page .row.g-3 {
    --bs-gutter-y: .7rem;
  }

  .admin-staff-form-page .card-soft {
    min-width: 0;
  }

  .admin-staff-form-page .col-lg-8>.card-soft>.card-body {
    padding: .8rem .85rem .85rem;
  }

  .admin-staff-form-page #staff-form>.d-flex:last-child {
    margin-top: .75rem !important;
    padding-top: 0 !important;
  }

  .admin-staff-form-page #staff-form>.d-flex:last-child .btn {
    min-height: 40px;
    padding: .4rem .9rem;
  }

  .admin-staff-form-page .staff-advanced-recovery {
    margin-top: .7rem;
  }

  .admin-staff-form-page .staff-advanced-recovery>summary {
    list-style: none;
    cursor: pointer;
    padding: .75rem .85rem;
    font-size: .86rem;
  }

  .admin-staff-form-page .staff-advanced-recovery>summary::-webkit-details-marker {
    display: none;
  }

  .admin-staff-form-page .staff-recovery-chevron {
    transition: transform .2s ease;
  }

  .admin-staff-form-page .staff-advanced-recovery[open] .staff-recovery-chevron {
    transform: rotate(180deg);
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body {
    padding: .8rem .85rem;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body>div:first-child>.form-hint {
    margin-bottom: .8rem !important;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body .mb-3 {
    margin-bottom: .7rem !important;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body > div:first-child { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }

.template-send-section {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.template-send-label { color: #fbbf24 !important; }

#sidebar_template_preview {
  flex: 1 1 auto;
  min-height: 12rem;
  max-height: none;
}

html[data-theme='day'] .template-send-label { color: #a16207 !important; }

#sidebar_template_preview {
    min-height: 10.5rem;
    max-height: 16.5rem;
    overflow-y: auto;
    font-size: .78rem;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body>.mt-4 {
    margin-top: .8rem !important;
    padding-top: 0 !important;
  }

  .admin-staff-form-page .staff-account-access-section {
    margin-top: .7rem !important;
  }

  .admin-staff-form-page .account-access-heading {
    display: none;
  }

  .admin-staff-form-page .staff-account-access-section .row {
    --bs-gutter-y: .7rem;
  }

  .admin-staff-form-page .staff-account-access-section .card-body {
    padding: .8rem .85rem;
  }

  .admin-staff-form-page .staff-account-access-section .card-header {
    padding: .7rem .85rem;
    font-size: .88rem;
  }

  .admin-staff-form-page .staff-reset-recovery .card-header {
    font-size: 0;
  }

  .admin-staff-form-page .staff-reset-recovery .card-header::after {
    content: 'Reset Staff Access';
    font-size: .88rem;
  }

  .admin-staff-form-page .staff-verify-recovery .card-header {
    font-size: 0;
  }

  .admin-staff-form-page .staff-verify-recovery .card-header::after {
    content: 'Verify Staff Email';
    font-size: .88rem;
  }

  .admin-staff-form-page .staff-account-access-section .form-hint {
    min-height: 0;
    margin-bottom: .7rem !important;
    font-size: .8rem;
  }

  .admin-staff-form-page .staff-account-access-section .btn {
    min-height: 38px;
    font-size: .84rem;
  }

  .admin-staff-form-page .staff-advanced-recovery>summary {
    font-size: .92rem;
    font-weight: 700;
  }

  .admin-staff-form-page .staff-reset-recovery .card-header::after,
  .admin-staff-form-page .staff-verify-recovery .card-header::after {
    font-size: .94rem;
    font-weight: 650;
  }

  .admin-staff-form-page .staff-account-access-section .form-hint {
    font-size: .86rem;
    line-height: 1.45;
  }

  .admin-staff-form-page .staff-verify-recovery .form-hint {
    align-items: center;
    min-height: 38px;
  }

  .admin-staff-form-page .staff-verify-recovery .staff-status-label,
  .admin-staff-form-page .staff-verify-recovery .email-status {
    line-height: 1.2;
  }

  .admin-staff-form-page .staff-reset-recovery .btn-outline-secondary {
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 42%, var(--border));
    background: color-mix(in srgb, var(--surface) 82%, #94a3b8);
    font-weight: 600;
  }
}

@media (max-width: 991.98px) {
  .admin-staff-form-page .admin-email-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .375rem;
  }

  .admin-staff-form-page .admin-email-label-row .form-label {
    display: block;
    margin-bottom: 0;
  }

  .admin-staff-form-page .admin-email-label-row .email-status {
    display: inline-flex;
    margin-top: 0;
  }
}

.staff-profile-card .form-control:disabled,
.staff-profile-card .staff-profile-name-field {
  background-color: #1e293b;
  color: #cbd5e1;
  border-color: #475569;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

html[data-theme='night'] .staff-profile-row input.form-control:not(:disabled):not([readonly]) {
  background-color: #08111f;
  border-color: #176b85;
  color: #e6edf7;
}

html[data-theme='night'] .staff-profile-row input.form-control:not(:disabled):not([readonly]):focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .16);
}

html[data-theme='night'] .staff-profile-row .input-group-text {
  border-color: #176b85;
}

html[data-theme='night'] .staff-profile-row .input-group:focus-within .input-group-text {
  border-color: #00d4ff;
}

html[data-theme='night'] .staff-profile-card .form-control:disabled,
html[data-theme='night'] .staff-profile-card .staff-profile-name-field {
  background-color: #182538;
  border-color: #31445d;
  color: #dbe7f4;
}

html[data-theme='night'] .staff-profile-card .form-label .bi-lock-fill {
  color: #64748b;
}

html[data-theme='night'] .staff-profile-row .password-field input.form-control:not(:disabled):not([readonly]) {
  background-color: #0b1728;
  border-color: #24506b;
}

html[data-theme='night'] .staff-profile-row .password-field input.form-control:not(:disabled):not([readonly]):focus {
  border-color: #16c7d9;
  box-shadow: 0 0 8px rgba(22, 199, 217, .35);
}

html[data-theme='day'] .staff-profile-card .form-control:disabled,
html[data-theme='day'] .staff-profile-card .staff-profile-name-field {
  background-color: #e2e8f0;
  color: #1f2937;
  border-color: #cbd5e1;
}

.card-soft .card-header {
  background: rgba(45, 212, 191, 0.04);
  border-bottom: 1px solid var(--border);
  padding: .95rem 1.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: -20%;
  top: -40%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.stat-label {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .35rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.04em;
}

.stat-hint {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .4rem;
  font-family: var(--font-ui);
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Buttons ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.btn {
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

.btn-accent {
  background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #041016;
  text-shadow: none;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.22);
}

.btn-accent:hover,
.btn-accent:focus {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  border-color: var(--accent-hover);
  color: #041016;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.35);
}

.btn-outline-secondary {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.btn-outline-secondary:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--accent-dim);
}

.btn-outline-danger {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.35);
}

.btn-outline-danger:hover {
  background: rgba(251, 113, 133, 0.12);
  border-color: var(--danger);
  color: #fecdd3;
}

.btn-outline-primary {
  color: var(--accent-2);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-outline-primary:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.btn-outline-dark {
  color: var(--text);
  border-color: var(--border);
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: var(--border-strong);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border-color: rgba(251, 191, 36, 0.4);
  color: #1c1002;
}

.btn-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-action-lg {
  min-height: 54px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Status chips (HUD style, not soft pills) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.status-badge+.status-badge {
  margin-left: .5rem;
}

/* Keep status outlines clearly visible against both theme surfaces. */
html[data-theme] body .status-badge.status-badge {
  border-color: currentColor !important;
}

.badge-present {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.32);
}

.badge-late {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.42);
}

.badge-break {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.32);
}

.badge-wfh {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.32);
}

.badge-completed {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.32);
}

.badge-absent,
.badge-notclocked {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.32);
}

.badge-off {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.28);
}

.badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.32);
}

.badge-incomplete {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.32);
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Code & Username Badges (High Contrast) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
code {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
}

.username-badge {
  display: inline-block;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.38) !important;
  padding: 0.22rem 0.6rem !important;
  border-radius: 6px !important;
  font-family: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
}

html[data-theme='day'] code {
  color: #0f766e;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

html[data-theme='day'] .username-badge {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  font-family: var(--font-mono, monospace) !important;
  font-weight: 500 !important;
  padding: 0.15rem 0.45rem !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Staff Accounts Table Layout ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.staff-table {
  table-layout: fixed;
  width: 100%;
}

.staff-table th,
.staff-table td {
  vertical-align: middle;
}

.staff-table th:nth-child(1),
.staff-table td:nth-child(1) {
  width: 24%;
  padding-right: 0.5rem;
}

.staff-table td:nth-child(1) .fw-semibold {
  word-break: break-word;
}

.staff-table th:nth-child(2),
.staff-table td:nth-child(2) {
  width: 17%;
}

.staff-table th:nth-child(3),
.staff-table td:nth-child(3) {
  width: 21%;
}

.staff-table th:nth-child(4),
.staff-table td:nth-child(4) {
  width: 13%;
}

.staff-table th:nth-child(5),
.staff-table td:nth-child(5) {
  width: 13%;
}

.staff-table th:nth-child(6),
.staff-table td:nth-child(6) {
  width: 12%;
  text-align: left;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Daily Attendance Card Header Alignment ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.daily-attendance-card-header {
  padding: 0 !important;
}

.daily-attendance-header-title {
  width: 85%;
  padding: .95rem 1.25rem;
  display: flex;
  align-items: center;
}

.daily-attendance-header-action {
  width: 15%;
  padding: .95rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .daily-attendance-card-header {
    flex-wrap: wrap;
    padding: .75rem 1.25rem !important;
  }

  .daily-attendance-header-title {
    width: auto;
    padding: 0;
  }

  .daily-attendance-header-action {
    width: auto;
    padding: 0;
    margin-left: auto;
  }
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Daily Attendance Table Layout ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.daily-attendance-table {
  table-layout: fixed;
  width: 100%;
}

.daily-attendance-table th,
.daily-attendance-table td {
  vertical-align: middle;
}

.daily-attendance-table th:nth-child(1),
.daily-attendance-table td:nth-child(1) {
  width: 22%;
  word-break: break-word;
}

.daily-attendance-table th:nth-child(2),
.daily-attendance-table td:nth-child(2) {
  width: 9%;
  white-space: nowrap;
}

.daily-attendance-table th:nth-child(3),
.daily-attendance-table td:nth-child(3) {
  width: 9%;
  white-space: nowrap;
}

.daily-attendance-table th:nth-child(4),
.daily-attendance-table td:nth-child(4) {
  width: 17%;
}

.daily-attendance-table th:nth-child(5),
.daily-attendance-table td:nth-child(5) {
  width: 11%;
  white-space: nowrap;
}

.daily-attendance-table th:nth-child(6),
.daily-attendance-table td:nth-child(6) {
  width: 17%;
  white-space: nowrap;
}

.daily-attendance-table th:nth-child(7) {
  width: 15%;
  text-align: left;
}

.daily-attendance-table td:nth-child(7) {
  width: 15%;
  text-align: left;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Attendance Records (History) Table Layout ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.staff-attendance-table {
  table-layout: fixed;
  min-width: 840px;
}

.staff-attendance-table th,
.staff-attendance-table td {
  vertical-align: middle;
}

.staff-attendance-table th:nth-child(1),
.staff-attendance-table td:nth-child(1) {
  width: 18%;
}

.staff-attendance-table th:nth-child(2),
.staff-attendance-table td:nth-child(2),
.staff-attendance-table th:nth-child(3),
.staff-attendance-table td:nth-child(3) {
  width: 18%;
  white-space: nowrap;
}

.staff-attendance-table th:nth-child(4),
.staff-attendance-table td:nth-child(4) {
  width: 14%;
}

.staff-attendance-table th:nth-child(5),
.staff-attendance-table td:nth-child(5),
.staff-attendance-table th:nth-child(6),
.staff-attendance-table td:nth-child(6) {
  width: 16%;
}

.attendance-records-table {
  table-layout: fixed;
  width: 100%;
}

.attendance-records-mobile {
  display: none;
}

.attendance-records-table th,
.attendance-records-table td {
  vertical-align: middle;
}

.attendance-records-table th:nth-child(1),
.attendance-records-table td:nth-child(1) {
  width: 12%;
  white-space: nowrap;
}

.attendance-records-table th:nth-child(2),
.attendance-records-table td:nth-child(2) {
  width: 20%;
  word-break: break-word;
}

.attendance-records-table th:nth-child(3),
.attendance-records-table td:nth-child(3) {
  width: 10%;
  white-space: nowrap;
}

.attendance-records-table th:nth-child(4),
.attendance-records-table td:nth-child(4) {
  width: 10%;
  white-space: nowrap;
}

.attendance-records-table th:nth-child(5),
.attendance-records-table td:nth-child(5) {
  width: 19%;
}

.attendance-records-table th:nth-child(6),
.attendance-records-table td:nth-child(6) {
  width: 9%;
  white-space: nowrap;
}

.attendance-records-table th:nth-child(7),
.attendance-records-table td:nth-child(7) {
  width: 9%;
  white-space: nowrap;
}

.attendance-records-table th:nth-child(8),
.attendance-records-table td:nth-child(8) {
  width: 11%;
  text-align: left;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Leave / WFH Requests Table Layout (Single View) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.leave-requests-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
}

.leave-requests-table th,
.leave-requests-table td {
  vertical-align: middle;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.leave-requests-table th:first-child,
.leave-requests-table td:first-child {
  padding-left: 1rem;
}

.leave-requests-table th:last-child,
.leave-requests-table td:last-child {
  padding-right: 1rem;
}

.leave-requests-table th:nth-child(1),
.leave-requests-table td:nth-child(1) {
  width: 25%;
  word-break: break-word;
}

.leave-requests-table th:nth-child(2),
.leave-requests-table td:nth-child(2) {
  width: 8%;
  white-space: nowrap;
}

.leave-requests-table th:nth-child(3),
.leave-requests-table td:nth-child(3) {
  width: 12%;
  word-break: break-word;
}

.leave-requests-table th:nth-child(4),
.leave-requests-table td:nth-child(4) {
  width: 32%;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}

.leave-requests-table th:nth-child(5),
.leave-requests-table td:nth-child(5) {
  width: 8%;
  white-space: nowrap;
}

.leave-requests-table th:nth-child(6),
.leave-requests-table td:nth-child(6) {
  width: 15%;
  text-align: left;
  white-space: nowrap;
}

.leave-requests-table .btn-sm {
  padding: 0.22rem 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.attendance-status-cell {
  white-space: nowrap;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Hero / meta ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.hero-action {
  background:
    linear-gradient(145deg, rgba(16, 28, 48, 0.95) 0%, rgba(10, 18, 34, 0.92) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(45, 212, 191, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.1), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(45, 212, 191, 0.08), transparent 35%);
  pointer-events: none;
}

.hero-status {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: .4rem;
  color: #fff;
  position: relative;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  position: relative;
}

.meta-item {
  background: rgba(6, 12, 24, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color .2s ease;
}

.meta-item:hover {
  border-color: var(--border-strong);
}

.meta-item .label {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta-item .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: .2rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Tables ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.table-responsive-card {
  overflow-x: auto;
}

.attendance-status-cell {
  white-space: normal;
}

.attendance-status-cell .status-badge {
  margin: .1rem .2rem .1rem 0;
}

.break-records-table th,
.break-records-table td {
  vertical-align: middle;
}

.break-records-table th:nth-child(1),
.break-records-table td:nth-child(1) {
  width: 105px;
  white-space: nowrap;
}

.break-records-table th:nth-child(2),
.break-records-table td:nth-child(2) {
  max-width: 200px;
  width: 16%;
  word-break: break-word;
}

.break-records-table th:nth-child(3),
.break-records-table td:nth-child(3) {
  white-space: nowrap;
}

html[lang^='ms'] .admin-break-records .break-records-table th:nth-child(3),
html[lang^='ms'] .admin-break-records .break-records-table td:nth-child(3) {
  width: 18%;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(1) { width: 10% !important; }
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(2) { width: 17% !important; }
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(3) { width: 16% !important; }
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(4),
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(5) { width: 10% !important; }
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(6) { width: 10% !important; }
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(7) { width: 9% !important; }
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(8) { width: 7% !important; }
html[lang^='ms'] .admin-break-records .break-records-table col:nth-child(9) { width: 11% !important; }
html[lang^='ms'] .admin-break-records .break-records-table th:nth-child(7),
html[lang^='ms'] .admin-break-records .break-records-table th:nth-child(8),
html[lang^='ms'] .admin-break-records .break-records-table th:nth-child(9) {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
html[lang^='ms'] .admin-break-records .break-records-table th:nth-child(4),
html[lang^='ms'] .admin-break-records .break-records-table td:nth-child(4),
html[lang^='ms'] .admin-break-records .break-records-table th:nth-child(5),
html[lang^='ms'] .admin-break-records .break-records-table td:nth-child(5) { min-width: 0; }

.break-records-table th:nth-child(4),
.break-records-table td:nth-child(4),
.break-records-table th:nth-child(5),
.break-records-table td:nth-child(5) {
  width: 110px;
  min-width: 110px;
  white-space: nowrap;
}

.break-records-table th:nth-child(6),
.break-records-table td:nth-child(6) {
  width: 180px;
}

.break-duration-cell {
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.break-duration-cell .status-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.break-records-table th:nth-child(7),
.break-records-table td:nth-child(7) {
  width: 125px;
  white-space: nowrap;
}

.break-records-table th:nth-child(8),
.break-records-table td:nth-child(8) {
  width: 70px;
  white-space: nowrap;
}

.break-records-table th:last-child,
.break-records-table td:last-child {
  width: 125px;
  white-space: nowrap;
  text-align: left;
}

.leave-requests-table {
  width: 100%;
  min-width: 1250px;
  table-layout: fixed;
}

.leave-requests-table th:nth-child(1) {
  width: 13%;
}

.leave-requests-table th:nth-child(2) {
  width: 11%;
}

.leave-requests-table th:nth-child(3) {
  width: 16rem;
}

.leave-requests-table th:nth-child(5) {
  width: 12%;
}

.leave-requests-table th:nth-child(6) {
  width: 18rem;
}

.leave-requests-table td:nth-child(4),
.leave-requests-table td:nth-child(6) {
  overflow-wrap: anywhere;
}

.audit-history-table {
  min-width: 900px;
  table-layout: fixed;
}

.audit-history-table th:nth-child(1) {
  width: 12%;
}

.audit-history-table th:nth-child(2) {
  width: 13%;
}

.audit-history-table th:nth-child(3) {
  width: 14%;
}

.audit-history-table th:nth-child(4),
.audit-history-table th:nth-child(5) {
  width: 10%;
}

.audit-history-table th:nth-child(6) {
  width: 19%;
}

.audit-history-table th:nth-child(7) {
  width: 22%;
}

.table.audit-history-table th,
.table.audit-history-table td {
  padding: .65rem .75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.table.audit-history-table th {
  font-size: .75rem;
  letter-spacing: .08em;
}

.table.audit-history-table td {
  font-size: .9rem;
  font-weight: 500;
}

.audit-date,
.audit-time {
  display: block;
}

.audit-time,
.audit-empty {
  color: var(--muted);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: rgba(94, 234, 212, 0.1);
  --bs-table-striped-bg: rgba(45, 212, 191, 0.03);
  --bs-table-hover-bg: rgba(45, 212, 191, 0.06);
  color: var(--text);
  margin-bottom: 0;
}

.table thead th {
  font-family: var(--font-ui);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  border-bottom-color: var(--border-strong) !important;
  background: rgba(45, 212, 191, 0.05);
}

.table td {
  vertical-align: middle;
  border-color: rgba(94, 234, 212, 0.08);
  font-weight: 500;
}

.table-warning,
.table>tbody>tr.table-warning>* {
  --bs-table-bg: rgba(245, 158, 11, 0.14);
  --bs-table-color: var(--text);
  color: var(--text);
}

.table>tbody>tr.table-warning>td:first-child {
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, 0.85);
}

.empty-state {
  text-align: center;
  padding: 2.75rem 1rem;
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: .5rem;
  display: block;
  color: var(--accent);
  opacity: 0.7;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Forms ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.form-label {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--muted);
}

.form-control,
.form-select {
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.form-control {
  background-color: rgba(6, 12, 22, 0.75);
  background-image: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.15), 0 0 24px rgba(45, 212, 191, 0.12);
}

.form-control:focus {
  background-color: rgba(8, 16, 30, 0.95);
}

.form-control::placeholder {
  color: #5a6d8a;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Date filter presets ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.date-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.date-presets__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.date-presets__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.date-preset {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.35rem 0.7rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.date-preset:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.date-preset.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #071b22;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

html[data-theme='day'] .date-presets {
  border-bottom-color: rgba(15, 40, 60, 0.12);
}

html[data-theme='day'] .date-preset {
  background: rgba(14, 116, 144, 0.06);
  border-color: rgba(14, 116, 144, 0.28);
  color: #0f2a3d;
}

html[data-theme='day'] .date-preset:hover,
html[data-theme='day'] .date-preset.is-active {
  background: rgba(14, 116, 144, 0.14);
  border-color: #0e7490;
  color: #0e7490;
}

html[data-theme='day'] .date-preset.is-active {
  background: #0e7490;
  color: #fff;
}

.date-preset.is-active::before {
  content: '\2713';
  margin-right: .35em;
}

.date-presets--compact {
  margin-bottom: 0;
  padding-bottom: 0.45rem;
  border-bottom: none;
  justify-content: flex-start;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

.date-presets--compact .date-presets__label {
  display: none;
}

.date-presets--compact .date-preset {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}

/* Flatpickr ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â always show DD/MM/YYYY */
input.flatpickr-input[type="date"],
input.flatpickr-input[readonly] {
  display: none !important;
}

input.flatpickr-alt {
  background-color: rgba(6, 12, 22, 0.75);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232dd4bf' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 10px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.flatpickr-calendar {
  background: #0b1220;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #1e293b);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border-radius: 0.5rem;
  font-family: var(--font-body);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-weekdays .flatpickr-weekday,
.flatpickr-calendar .flatpickr-time input,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  color: #e2e8f0;
  fill: #e2e8f0;
}

.flatpickr-calendar .flatpickr-time input:hover,
.flatpickr-calendar .flatpickr-time input:focus,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-calendar .flatpickr-time .flatpickr-am-pm:focus,
.flatpickr-calendar .flatpickr-current-month input.cur-year:hover,
.flatpickr-calendar .flatpickr-current-month input.cur-year:focus {
  background: #17263a;
  color: #f8fafc;
}

.flatpickr-calendar .flatpickr-time .numInputWrapper:hover,
.flatpickr-calendar .flatpickr-current-month .numInputWrapper:hover {
  background: #17263a;
}

.flatpickr-calendar .numInputWrapper span.arrowUp:after {
  border-bottom-color: #5eead4;
}

.flatpickr-calendar .numInputWrapper span.arrowDown:after {
  border-top-color: #5eead4;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: var(--accent);
  color: var(--accent);
}

.flatpickr-day {
  color: #cbd5e1;
  border-radius: 0.35rem;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: var(--accent);
  color: #fff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #041016;
  font-weight: 700;
}

.flatpickr-day.today {
  border-color: var(--accent);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #475569;
}

html[data-theme='day'] input.flatpickr-alt {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230f766e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3e%3c/svg%3e");
}

html[data-theme='day'] .flatpickr-calendar {
  background: #fff;
  border-color: rgba(14, 116, 144, 0.28);
  box-shadow: 0 12px 32px rgba(15, 42, 61, 0.12);
}

html[data-theme='day'] .flatpickr-months .flatpickr-month,
html[data-theme='day'] .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme='day'] .flatpickr-calendar .flatpickr-weekdays .flatpickr-weekday,
html[data-theme='day'] .flatpickr-calendar .flatpickr-time input,
html[data-theme='day'] .flatpickr-calendar .flatpickr-time .flatpickr-am-pm,
html[data-theme='day'] .flatpickr-calendar .flatpickr-current-month input.cur-year,
html[data-theme='day'] .flatpickr-day {
  color: #0f2a3d;
  fill: #0f2a3d;
}

html[data-theme='day'] .flatpickr-calendar .flatpickr-time input:hover,
html[data-theme='day'] .flatpickr-calendar .flatpickr-time input:focus,
html[data-theme='day'] .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover,
html[data-theme='day'] .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:focus,
html[data-theme='day'] .flatpickr-calendar .flatpickr-current-month input.cur-year:hover,
html[data-theme='day'] .flatpickr-calendar .flatpickr-current-month input.cur-year:focus,
html[data-theme='day'] .flatpickr-calendar .flatpickr-time .numInputWrapper:hover,
html[data-theme='day'] .flatpickr-calendar .flatpickr-current-month .numInputWrapper:hover {
  background: #e2f3f1;
  color: #0f2a3d;
}

html[data-theme='day'] .flatpickr-calendar .numInputWrapper span.arrowUp:after {
  border-bottom-color: #0f766e;
}

html[data-theme='day'] .flatpickr-calendar .numInputWrapper span.arrowDown:after {
  border-top-color: #0f766e;
}

html[data-theme='day'] .flatpickr-day.prevMonthDay,
html[data-theme='day'] .flatpickr-day.nextMonthDay {
  color: #94a3b8;
}

.form-label {
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.form-control {
  background-color: rgba(6, 12, 22, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-control:focus {
  background-color: rgba(8, 16, 30, 0.95);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

/* Shared field states for Holo Night, including authentication and admin forms. */
html[data-theme='night'] :is(input, textarea).form-control:not(:disabled):not([readonly]),
html[data-theme='night'] select.form-select:not(:disabled) {
  background-color: #08111f;
  border-color: #176b85;
  color: #e6edf7;
}

html[data-theme='night'] :is(input, textarea).form-control:not(:disabled):not([readonly]):focus,
html[data-theme='night'] select.form-select:not(:disabled):focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .16);
}

html[data-theme='night'] .form-control:disabled,
html[data-theme='night'] .form-control[readonly],
html[data-theme='night'] .form-select:disabled {
  background-color: #182538;
  border-color: #31445d;
  color: #8896aa;
  opacity: 1;
  box-shadow: none;
}

html[data-theme='night'] .form-label .bi-lock-fill {
  color: #64748b;
}

html[data-theme='night'] .password-field input.form-control:not(:disabled):not([readonly]) {
  background-color: #0b1728;
  border-color: #24506b;
}

html[data-theme='night'] .password-field input.form-control:not(:disabled):not([readonly]):focus {
  border-color: #16c7d9;
  box-shadow: 0 0 8px rgba(22, 199, 217, .35);
}

html[data-theme='night'] .input-group-text {
  border-color: #176b85;
}

html[data-theme='night'] .input-group:focus-within .input-group-text {
  border-color: #00d4ff;
}

.input-group-text {
  background-color: rgba(16, 26, 46, 0.95);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
}

.input-group:focus-within .input-group-text {
  border-color: var(--accent);
}

.timeout-display-badge,
[data-timeout-display] {
  background: rgba(56, 189, 248, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #7dd3fc !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.06em !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.1) !important;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: rgba(15, 23, 42, 0.5);
  color: var(--muted);
  opacity: 1;
}

.form-select {
  background-color: rgba(6, 12, 22, 0.92);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232dd4bf' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 10px;
  padding-right: 2.4rem;
  -webkit-appearance: none;
  appearance: none;
}

.form-select:focus {
  background-color: rgba(8, 16, 30, 0.98);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235eead4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 10px;
}

.form-select option {
  background-color: #0c1628;
  color: #e8eef8;
}

.form-check-input {
  background-color: rgba(6, 12, 22, 0.8);
  border-color: var(--border-strong);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-hint {
  font-size: .85rem;
  color: var(--muted);
  font-family: var(--font-ui);
}

.balance-card-title {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .02em;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Combined Search Bar (Google Style) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.search-bar-combo {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  background-color: rgba(6, 12, 22, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-bar-combo:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.search-bar-combo .search-bar-combo__input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0.9rem;
  padding-right: 0.5rem;
  flex: 1 1 auto;
}

.search-bar-combo .search-bar-combo__btn {
  border: none !important;
  background: var(--accent) !important;
  color: #03151f !important;
  padding: 0.45rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-top-right-radius: calc(var(--radius-sm) - 1px);
  border-bottom-right-radius: calc(var(--radius-sm) - 1px);
  transition: filter .18s ease, transform .12s ease;
  white-space: nowrap;
}

.search-bar-combo .search-bar-combo__btn:hover {
  filter: brightness(1.12);
  color: #010a0f !important;
}

.search-bar-combo .search-bar-combo__btn:active {
  transform: scale(0.98);
}

html[data-theme='day'] .search-bar-combo {
  background-color: #ffffff;
  border-color: rgba(15, 40, 70, 0.22);
}

html[data-theme='day'] .search-bar-combo:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

html[data-theme='day'] .search-bar-combo .search-bar-combo__btn {
  background: var(--accent) !important;
  color: #ffffff !important;
}

html[data-theme='day'] .search-bar-combo .search-bar-combo__btn:hover {
  filter: brightness(1.08);
  color: #ffffff !important;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Alerts ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.alert {
  border-radius: var(--radius-sm);
  border-width: 1px;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
}

.alert-success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.alert-danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.alert-info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.break-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Typography helpers ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.h4,
h2.h4,
.app-content>.d-flex h2 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.15rem !important;
}

.text-muted {
  color: var(--muted) !important;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Auth ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.auth-shell {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

.auth-shell::before,
.auth-shell::after {
  display: none;
}

.auth-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: rgba(10, 18, 34, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 60px rgba(45, 212, 191, 0.08);
  padding: 2rem 1.85rem;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: .35rem;
  color: #fff;
}

.auth-card .subtitle {
  color: var(--accent);
  margin-bottom: 1.35rem;
  font-family: var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: .85rem;
}

.auth-card .brand-mark {
  margin-left: auto;
  margin-right: auto;
}

/* Language switcher */
.btn-group .btn,
.lang-switch .btn {
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
}

.dropdown-menu {
  background: #0c1628;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
}

.dropdown-item {
  color: var(--text);
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.toast {
  background: #0e1628;
  border: 1px solid var(--border);
}

/* Loading */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-overlay .spinner-border {
  color: var(--accent) !important;
  width: 2.5rem;
  height: 2.5rem;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1040;
  display: none;
}

.sidebar-backdrop.show {
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 212, 191, 0.4);
}

@media (max-width: 1199.98px) {
  .topbar-information--admin .chrono-status {
    display: none;
  }

  .app-topbar,
  .topbar-information {
    gap: .65rem;
  }

  .app-topbar .topbar-information--admin .topbar-chrono,
  .topbar-actions {
    padding-left: .65rem;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050 !important;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.22, .61, .36, 1);
    max-height: 100dvh;
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility 0s linear .28s;
    z-index: 1040 !important;
  }

  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .topbar-actions {
    margin-left: 0;
  }

  .app-topbar .topbar-information--admin .topbar-chrono {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {

  .app-sidebar,
  .sidebar-backdrop {
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .app-sidebar {
    width: min(320px, 88vw);
  }

  .sidebar-footer {
    padding: .75rem .85rem;
  }
}

@media (max-width: 575.98px) {
  .app-topbar {
    min-height: 4rem;
    padding: .55rem .75rem;
    gap: .5rem;
  }

  .app-topbar .topbar-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: .86rem;
    letter-spacing: .045em;
  }

  .app-topbar .topbar-information {
    display: none;
  }

  .app-topbar:has(.topbar-ticker) .topbar-title {
    max-width: none;
    flex: 1 1 auto;
  }

  .topbar-information {
    flex: 1 1 auto;
  }

  .topbar-actions {
    gap: .35rem;
    padding-left: .45rem;
  }

  .app-content {
    padding: .9rem .75rem 1.25rem;
  }

  .dash-greeting-title {
    font-size: 1.2rem;
  }

  .dash-compact-header {
    gap: .55rem;
    padding-bottom: .65rem;
  }

  .staff-dashboard .hero-action {
    padding: 1rem;
  }

  .staff-dashboard .hero-status {
    font-size: 1rem;
  }

  .app-footer {
    padding: .65rem .75rem;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .7rem;
  }

  .date-presets {
    display: block;
  }

  .date-presets__label {
    display: block;
    margin-bottom: .55rem;
  }

  .date-presets__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    width: 100%;
  }

  .date-preset {
    width: 100%;
    min-height: 2.65rem;
    padding: .5rem .2rem;
    font-size: .72rem;
    text-align: center;
    white-space: nowrap;
  }

  /* Keep the history feed visually dominant on attendance pages. */
  .attendance-filter-card {
    margin-bottom: .75rem !important;
  }

  .attendance-filter-card .card-body {
    padding: .8rem !important;
  }

  .attendance-filter-card .date-presets {
    margin-bottom: .55rem;
    padding-bottom: .55rem;
  }

  .attendance-filter-card .form-label {
    margin-bottom: .25rem;
    font-size: .72rem;
  }

  .attendance-filter-card .form-control,
  .attendance-filter-card .btn {
    min-height: 2.5rem;
  }

  .attendance-filter-card form>.col-12.d-flex {
    gap: .5rem !important;
  }
}

@media print {

  /* Do NOT hide body.app-body ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â that blanks the entire print preview */
  body.app-body::before,
  body.app-body::after,
  #chronoAmbient,
  #chronoAmbient canvas,
  .toast-container,
  .loading-overlay,
  .sidebar-backdrop,
  .app-sidebar,
  .app-topbar,
  .app-footer,
  .no-print {
    display: none !important;
  }

  html,
  body.app-body {
    display: block !important;
    background: #fff !important;
    color: #000 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .app-wrapper,
  .app-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    position: static !important;
  }

  .app-content {
    display: block !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
    position: static !important;
  }

  .card-soft,
  .stat-card,
  .hero-action,
  .hud-frame,
  .row,
  .col-6,
  .col-md-3 {
    break-inside: avoid;
  }

  .card-soft,
  .stat-card,
  .hero-action,
  .hud-frame {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: static !important;
    overflow: visible !important;
  }

  .card-header,
  .stat-label,
  .stat-value,
  .form-hint,
  .table,
  .table th,
  .table td,
  .empty-state,
  .nav-link__label {
    color: #000 !important;
    background: transparent !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000 !important;
    background-image: none !important;
  }

  .stat-card .stat-value,
  .card-header {
    background: #fff !important;
  }

  .table thead th {
    background: #eee !important;
    border-color: #999 !important;
  }

  .table td,
  .table th {
    border-color: #bbb !important;
  }

  .table-responsive-card {
    overflow: visible !important;
  }

  .status-badge {
    border: 1px solid #666 !important;
    background: #f3f3f3 !important;
    color: #000 !important;
    box-shadow: none !important;
    -webkit-text-fill-color: #000 !important;
  }

  .chrono-reveal,
  .chrono-reveal.chrono-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hud-frame::after,
  .energy-card::after {
    display: none !important;
  }
}

body.is-printing #chronoAmbient,
body.is-printing .toast-container,
body.is-printing .loading-overlay {
  visibility: hidden !important;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Chronos Pulse ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â content reveal + interactions (no blocking page transitions) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.chrono-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

body.chrono-ready .chrono-reveal {
  opacity: 1;
  transform: none;
}

body.is-spa-nav .app-content {
  opacity: 0.92;
  transition: opacity .12s ease;
}

.hud-frame {
  position: relative;
}

.hud-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 18px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 18px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) top right / 18px 2px no-repeat,
    linear-gradient(var(--accent-2), var(--accent-2)) top right / 2px 18px no-repeat,
    linear-gradient(#fb923c, #fb923c) bottom left / 18px 2px no-repeat,
    linear-gradient(#fb923c, #fb923c) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 18px no-repeat;
  opacity: 0.85;
}

.topbar-chrono {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.topbar-information--admin .topbar-chrono {
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.chrono-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: .25rem .55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(45, 212, 191, 0.08);
}

.chrono-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: statusPulse 2s ease-out infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.chrono-clock {
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: 0.12em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: .15rem;
  min-width: 7.2rem;
  justify-content: center;
  padding: .3rem .55rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(6, 12, 24, 0.55);
}

.chrono-clock span[data-s] {
  color: var(--accent-2);
}

.chrono-command__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.chrono-command__sub {
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  font-size: .95rem;
}

@media (min-width: 992px) {
  .admin-dashboard .dash-admin-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 21rem;
    grid-template-rows: auto auto auto;
    column-gap: 1rem !important;
    row-gap: .6rem !important;
    align-items: center !important;
  }

  .admin-dashboard .dash-admin-heading {
    display: contents;
  }

  .admin-dashboard .dash-admin-filter {
    display: contents !important;
  }

  .admin-dashboard .dash-admin-heading .chrono-command__sub {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.125rem;
    line-height: 1.35;
  }

  .admin-dashboard .dash-admin-heading .chrono-command__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 2rem;
    line-height: 1;
  }

  .admin-dashboard .dash-admin-heading>.text-muted {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0 !important;
    font-size: 1rem !important;
    line-height: 1.35;
  }

  .admin-dashboard .dash-admin-filter .date-presets--compact {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    padding: 0;
  }

  .admin-dashboard .dash-admin-filter .date-presets__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
  }

  .admin-dashboard .dash-admin-filter .date-preset {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
  }

  .admin-dashboard .dash-admin-date-field {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }

  .admin-dashboard .dash-admin-date-field .form-label {
    display: none;
  }

  .admin-dashboard .dash-admin-date-field .form-control {
    width: 100%;
  }

  .admin-dashboard .dash-admin-filter-footer {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .35rem;
  }

  .admin-dashboard .dash-admin-filter-footer .form-hint,
  .admin-dashboard .dash-admin-filter-footer a {
    font-size: .78rem;
  }

  .admin-dashboard .dash-admin-filter-footer a {
    white-space: nowrap;
    color: var(--accent);
  }
}

.chrono-rings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.chrono-ring {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem .75rem 1.1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.chrono-ring::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ring-color, rgba(45, 212, 191, 0.45)), transparent);
  pointer-events: none;
}

.chrono-ring:hover {
  transform: translateY(-3px);
  border-color: var(--ring-color, var(--border-strong));
  box-shadow: 0 0 20px color-mix(in srgb, var(--ring-color, #2dd4bf) 25%, transparent), var(--shadow);
}

.chrono-ring__svg {
  width: 100px;
  height: 100px;
  margin: 0 auto .55rem;
  display: block;
  transform: rotate(-90deg);
}

.pulse-ring__track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 7;
}

.pulse-ring__meter {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke: var(--ring-color, var(--accent));
  filter: drop-shadow(0 0 8px var(--ring-color, var(--accent)));
}

.chrono-ring__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.chrono-ring__label {
  margin-top: .5rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e2e8f0;
  font-weight: 700;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.chrono-ring--total {
  --ring-color: var(--status-total, #F1F5F9);
}

.chrono-ring--present {
  --ring-color: var(--status-present, #22C55E);
}

.chrono-ring--late {
  --ring-color: var(--status-late, #F59E0B);
}

.chrono-ring--break {
  --ring-color: var(--status-break, #8B5CF6);
}

.chrono-ring--wfh {
  --ring-color: var(--status-wfh, #EC4899);
}

.chrono-ring--off {
  --ring-color: var(--status-dayoff, #94A3B8);
}

.chrono-ring--notclocked,
.chrono-ring--pending {
  --ring-color: var(--status-notclocked, #EF4444);
}

.stat-card {
  cursor: default;
}

.stat-card .stat-value[data-count-to] {
  font-variant-numeric: tabular-nums;
}

/* Style actual cells: generated content on table rows can create phantom columns. */
.table tbody tr>td {
  transition: background-color .2s ease;
}

.table tbody tr:hover>td {
  background-color: var(--bs-table-hover-bg);
}

.badge-break,
.badge-present {
  position: relative;
}

.badge-break::before,
.badge-present::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: statusPulse 2.2s ease-out infinite;
}

.hero-action.pulse-live {
  animation: heroBreathe 4.5s ease-in-out infinite;
}

@keyframes heroBreathe {

  0%,
  100% {
    box-shadow: var(--shadow), inset 0 1px 0 rgba(45, 212, 191, 0.12);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 0 36px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(45, 212, 191, 0.2);
  }
}

.btn-action-lg {
  position: relative;
  overflow: hidden;
}

.btn-action-lg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: none;
}

.btn-action-lg:hover::after {
  animation: btnSweep .7s ease;
}

@keyframes btnSweep {
  to {
    transform: translateX(120%);
  }
}

/* Energy follow-light on cards */
.energy-card {
  --ex: 50%;
  --ey: 0%;
}

.energy-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(420px circle at var(--ex) var(--ey), rgba(45, 212, 191, 0.16), transparent 42%);
  z-index: 0;
}

.energy-card:hover::after {
  opacity: 1;
}

.energy-card>* {
  position: relative;
  z-index: 1;
}

.hud-frame::after {
  z-index: 2;
}

.chrono-clock--tick span[data-s] {
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
}

@media (prefers-reduced-motion: reduce) {

  .chrono-status__dot,
  .badge-break::before,
  .badge-present::before,
  .hero-action.pulse-live {
    animation: none !important;
  }

  .chrono-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .topbar-ticker__track.is-scrolling {
    animation: tickerScroll 32s linear infinite !important;
  }

  .btn-accent::before,
  .btn-action-lg::before {
    animation: none !important;
  }
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Theme toggle ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.12);
  transition: all .2s ease;
  font-weight: 600;
}

.theme-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.6);
  color: #e0f2fe;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.theme-toggle .theme-toggle__icon-night {
  color: #38bdf8;
  font-size: 1rem;
}

.theme-toggle .theme-toggle__icon-day {
  display: none;
}

.theme-toggle.is-day {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-toggle.is-day:hover {
  background: #e2e8f0;
  border-color: #0f766e;
  color: #0f766e;
}

.theme-toggle.is-day .theme-toggle__icon-night {
  display: none;
}

.theme-toggle.is-day .theme-toggle__icon-day {
  display: inline;
  color: #d97706;
  font-size: 1rem;
}

.theme-toggle__text {
  font-size: .8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  white-space: nowrap;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â 3D Globe toggle ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.globe-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.12);
  transition: all .2s ease;
  font-weight: 600;
}

.globe-toggle:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.6);
  color: #99f6e4;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.25);
}

.globe-toggle .globe-toggle__icon {
  color: #2dd4bf;
  font-size: 1rem;
  transition: transform .3s ease, color .2s ease;
}

.globe-toggle:hover .globe-toggle__icon {
  transform: rotate(20deg);
}

.globe-toggle.is-off {
  opacity: 0.65;
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  box-shadow: none;
}

.globe-toggle.is-off .globe-toggle__icon {
  color: #94a3b8;
}

.globe-toggle__text {
  font-size: .8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  white-space: nowrap;
}

html[data-theme='day'] .globe-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: #cbd5e1;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme='day'] .globe-toggle:hover {
  background: #e2e8f0;
  border-color: #0f766e;
  color: #0f766e;
}

html[data-theme='day'] .globe-toggle .globe-toggle__icon {
  color: #0f766e;
}

html[data-theme='day'] .globe-toggle.is-off {
  background: rgba(241, 245, 249, 0.8);
  border-color: #e2e8f0;
  color: #64748b;
  opacity: 0.75;
}

html[data-theme='day'] .globe-toggle.is-off .globe-toggle__icon {
  color: #64748b;
}

.auth-page .auth-top>.globe-toggle {
  min-height: 42px;
  font-size: .95rem;
  min-width: 42px;
  padding: .45rem .85rem;
}

.auth-page .auth-top>.globe-toggle i {
  font-size: 1.1rem;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Sidebar Mobile Controls (Unified Modern Cyber & Light Layout) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.sidebar-mobile-controls {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 173, 204, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-mobile-controls__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

.sidebar-mobile-controls .globe-toggle,
.sidebar-mobile-controls .theme-toggle {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.4rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sidebar-mobile-controls .globe-toggle__text,
.sidebar-mobile-controls .theme-toggle__text {
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-mobile-controls__lang {
  width: 100%;
}

.sidebar-mobile-controls .lang-switcher {
  width: 100%;
  position: relative;
}

.sidebar-mobile-controls .lang-switcher .lang-switcher__btn {
  width: 100%;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 173, 204, 0.22);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.sidebar-mobile-controls .lang-switcher .lang-switcher__btn:hover,
.sidebar-mobile-controls .lang-switcher .lang-switcher__btn:focus {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(45, 212, 191, 0.5);
  color: #fff;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.18);
}

.sidebar-mobile-controls .lang-switcher .dropdown-menu {
  width: 100%;
  min-width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  margin-top: 0.35rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.sidebar-mobile-controls .sidebar-logout-btn {
  width: 100%;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

/* Night theme controls */
html[data-theme='night'] .sidebar-mobile-controls {
  border-top-color: rgba(148, 173, 204, 0.15);
}

html[data-theme='night'] .sidebar-mobile-controls .lang-switcher .dropdown-menu {
  background: #0d1a2d;
  border: 1px solid rgba(148, 173, 204, 0.2);
}

html[data-theme='night'] .sidebar-mobile-controls .lang-switcher .dropdown-item {
  color: #cbd5e1;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
}

html[data-theme='night'] .sidebar-mobile-controls .lang-switcher .dropdown-item:hover,
html[data-theme='night'] .sidebar-mobile-controls .lang-switcher .dropdown-item.active {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

html[data-theme='night'] .sidebar-mobile-controls .sidebar-logout-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.08);
}

html[data-theme='night'] .sidebar-mobile-controls .sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}

/* Day theme controls */
html[data-theme='day'] .sidebar-mobile-controls {
  border-top-color: rgba(15, 40, 70, 0.1);
}

html[data-theme='day'] .sidebar-mobile-controls .lang-switcher .lang-switcher__btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 40, 70, 0.16);
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme='day'] .sidebar-mobile-controls .lang-switcher .lang-switcher__btn:hover,
html[data-theme='day'] .sidebar-mobile-controls .lang-switcher .lang-switcher__btn:focus {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.45);
  color: #0f766e;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

html[data-theme='day'] .sidebar-mobile-controls .lang-switcher .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(15, 40, 70, 0.12);
  box-shadow: 0 10px 30px rgba(15, 40, 70, 0.1);
}

html[data-theme='day'] .sidebar-mobile-controls .lang-switcher .dropdown-item {
  color: #334155;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
}

html[data-theme='day'] .sidebar-mobile-controls .lang-switcher .dropdown-item:hover,
html[data-theme='day'] .sidebar-mobile-controls .lang-switcher .dropdown-item.active {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
}

html[data-theme='day'] .sidebar-mobile-controls .sidebar-logout-btn {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.32);
  color: #dc2626;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.06);
}

html[data-theme='day'] .sidebar-mobile-controls .sidebar-logout-btn:hover {
  background: rgba(220, 38, 38, 0.14);
  border-color: #dc2626;
  color: #991b1b;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.18);
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Admin live ticker (news marquee) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.topbar-ticker {
  flex: 1 1 240px;
  max-width: none;
  min-width: 0;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .32rem .6rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(6, 14, 28, 0.72);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.06);
}

.topbar-ticker__label {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: .7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  opacity: 1;
}

.topbar-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.topbar-ticker__track {
  display: block;
  width: max-content;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e8eef8;
}

.topbar-ticker__track.is-scrolling {
  animation: tickerScroll 32s linear infinite;
}

.topbar-ticker__track.is-scrolling-fast {
  animation-duration: 22s;
}

.topbar-ticker:hover .topbar-ticker__track.is-scrolling {
  animation-play-state: paused;
}

.topbar-ticker__item {
  color: #e8eef8;
}

.topbar-ticker__item.is-in {
  color: #5eead4;
}

.topbar-ticker__item.is-break {
  color: #f9a8d4;
}

.topbar-ticker__item.is-late {
  color: #fbbf24;
}

.topbar-ticker__item.is-leave {
  color: #38bdf8;
}

.topbar-ticker__item.is-alert {
  color: #fb7185;
}

.topbar-ticker__item.is-summary {
  color: #bae6fd;
}

.topbar-ticker__item.is-info,
.topbar-ticker__item.is-idle {
  color: #cbd5e1;
}

.topbar-ticker__sep {
  color: rgba(94, 234, 212, 0.45);
  font-size: .55rem;
  opacity: 1;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

html[data-theme='day'] .topbar-ticker {
  background: #ffffff;
  border-color: rgba(15, 40, 70, 0.22);
  box-shadow: 0 1px 2px rgba(15, 40, 70, 0.06);
}

html[data-theme='day'] .topbar-ticker__label {
  color: #0f766e;
}

html[data-theme='day'] .topbar-ticker__item,
html[data-theme='day'] .topbar-ticker__track {
  color: #0f172a;
}

html[data-theme='day'] .topbar-ticker__item.is-in {
  color: #0f766e;
}

html[data-theme='day'] .topbar-ticker__item.is-break {
  color: #a21caf;
}

html[data-theme='day'] .topbar-ticker__item.is-late {
  color: #b45309;
}

html[data-theme='day'] .topbar-ticker__item.is-leave {
  color: #0369a1;
}

html[data-theme='day'] .topbar-ticker__item.is-alert {
  color: #be123c;
}

html[data-theme='day'] .topbar-ticker__item.is-summary {
  color: #075985;
}

html[data-theme='day'] .topbar-ticker__item.is-info,
html[data-theme='day'] .topbar-ticker__item.is-idle {
  color: #334155;
}

html[data-theme='day'] .topbar-ticker__sep {
  color: rgba(15, 118, 110, 0.4);
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Magnetic light edge (subtle) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.btn-accent,
.btn-action-lg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-accent::before,
.btn-action-lg::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--mag-angle, 0deg),
      transparent 0deg 70deg,
      rgba(94, 234, 212, 0.55) 110deg,
      rgba(56, 189, 248, 0.45) 150deg,
      transparent 200deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .2s ease;
}

.btn-accent:hover::before,
.btn-accent:focus-visible::before,
.btn-action-lg:hover::before,
.btn-action-lg:focus-visible::before {
  opacity: 0.85;
  animation: magOrbit 1.4s linear infinite;
}

@property --mag-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes magOrbit {
  to {
    --mag-angle: 360deg;
  }
}

#chronoAmbient.chrono-ambient--day {
  background: radial-gradient(circle at 50% 38%,
      rgba(14, 165, 233, 0.16) 0%,
      rgba(45, 212, 191, 0.10) 28%,
      rgba(219, 234, 248, 0.45) 60%,
      transparent 100%);
}

html[data-theme='day']:not([data-globe='off']) #chronoAmbient {
  display: block !important;
  opacity: 0.95;
}

html[data-theme='day']:not([data-globe='off']) #chronoAmbient canvas {
  filter: contrast(1.15) saturate(1.4);
  mix-blend-mode: normal;
  opacity: 0.88;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Day console theme (eye-comfort light mode) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
html[data-theme='day'] {
  --bg-0: #dce4ee;
  --bg-1: #e5edf5;
  --bg-2: #edf2f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(14, 165, 233, 0.18);
  --border-strong: rgba(15, 118, 110, 0.35);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f766e;
  --accent-2: #0369a1;
  --accent-dim: rgba(15, 118, 110, 0.10);
  --accent-hover: #0d9488;
  --sidebar: rgba(248, 250, 252, 0.92);
  --sidebar-text: #475569;
  --sidebar-active: rgba(15, 118, 110, 0.10);
  --success: #047857;
  --warning: #b45309;
  --danger: #be123c;
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --glow-soft: 0 0 0 1px rgba(14, 165, 233, 0.15);
}

html[data-theme='day'] body.app-body {
  background: transparent;
  color: var(--text);
}

html[data-theme='day'] body.app-body::before {
  background: linear-gradient(165deg, #dbe5f0 0%, #e8eef6 45%, #f1f5f9 100%);
  opacity: 1;
}

/* Use the Attendance/Breaks blue backdrop consistently across light-mode pages. */
@media screen and (max-width: 767.98px) {
  html[data-theme='day'] .staff-history-page .attendance-mobile-record-card.record-day-off {
    background: #e9edf2 !important;
  }

  html[data-theme='night'] .staff-history-page .attendance-mobile-record-card.record-day-off {
    background: #28323f !important;
  }

  html[data-theme='day'] .staff-history-page .staff-breaks-mobile-feed .attendance-mobile-record-card.border-warning-subtle {
    background: #fff7df !important;
  }

  html[data-theme='night'] .staff-history-page .staff-breaks-mobile-feed .attendance-mobile-record-card.border-warning-subtle {
    background: #342e20 !important;
  }
}

@media screen {
  html[data-theme='night'] .staff-history-page .card-soft {
    background: #111f33;
    border-color: rgba(148, 173, 204, .2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  }

  html[data-theme='night'] .staff-history-page .card-header {
    background: #15263c;
    border-color: rgba(148, 173, 204, .2);
  }

  html[data-theme='night'] .staff-history-page .attendance-mobile-record-card {
    background: #182b42;
    border-color: #617c9b !important;
  }

  html[data-theme='night'] .staff-history-page .attendance-mobile-record-card.border-warning-subtle {
    border-color: #d99d24 !important;
  }

  html[data-theme='day'] .staff-history-page .attendance-mobile-record-card {
    border-color: #8ba4be !important;
  }

  html[data-theme='day'] .staff-history-page .attendance-mobile-record-card.border-warning-subtle {
    border-color: #c58a17 !important;
  }

  html[data-theme='night'] .staff-history-page .attendance-mobile-record-card .border-top {
    border-color: rgba(148, 173, 204, .2) !important;
  }

  html[data-theme='night'] .staff-history-page .attendance-mobile-record-card .font-monospace {
    font-family: var(--font-body) !important;
    letter-spacing: normal;
    font-variant-numeric: tabular-nums;
  }

  html[data-theme='night'] .staff-history-page .text-success {
    color: #6ee7b7 !important;
  }

  html[data-theme='night'] .staff-history-page .text-muted {
    color: #afbed1 !important;
  }

  html[data-theme='night'] body.app-body {
    background: #06090f !important;
  }

  html[data-theme='night'] body.app-body::before {
    background: linear-gradient(165deg, #172a42 0%, #101e32 45%, #0b1424 100%) !important;
    background-attachment: fixed !important;
  }

  html[data-theme='night'] body.app-body .app-wrapper,
  html[data-theme='night'] body.app-body .auth-shell {
    background: transparent !important;
  }

  html[data-theme='day'] body.app-body {
    background: transparent !important;
  }

  html[data-theme='day'] body.app-body::before {
    background: linear-gradient(165deg, #dbe5f0 0%, #e8eef6 45%, #f1f5f9 100%) !important;
    background-attachment: fixed !important;
  }

  html[data-theme='day'] body.app-body .app-wrapper,
  html[data-theme='day'] body.app-body .auth-shell {
    background: transparent !important;
  }
}

html[data-theme='day'] .app-topbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 40, 70, 0.04);
}

html[data-theme='day'] .topbar-title {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

html[data-theme='day'] .chrono-status {
  color: var(--accent);
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.28);
}

html[data-theme='day'] .chrono-clock {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

html[data-theme='day'] .chrono-clock span[data-s] {
  color: var(--accent-2);
  text-shadow: none;
}

html[data-theme='night'] .app-sidebar {
  background: linear-gradient(180deg, #102037 0%, #0d1a2d 100%);
  border-right-color: rgba(148, 173, 204, .18);
  box-shadow: 3px 0 20px rgba(0, 0, 0, .16);
}

html[data-theme='night'] .sidebar-footer {
  background: #0d1a2d;
  border-top-color: rgba(148, 173, 204, .18);
}

html[data-theme='day'] .app-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right-color: rgba(15, 40, 70, 0.12);
  box-shadow: 2px 0 20px rgba(15, 40, 70, 0.05);
}

html[data-theme='day'] .sidebar-brand {
  border-bottom-color: rgba(15, 40, 70, 0.08);
}

html[data-theme='day'] .sidebar-brand::after {
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.35), transparent);
}

html[data-theme='day'] .brand-mark {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(3, 105, 161, 0.12));
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15);
}

html[data-theme='day'] .brand-name {
  color: #0f172a;
}

html[data-theme='day'] .brand-sub {
  color: #0f766e;
}

html[data-theme='day'] .sidebar-nav .nav-link {
  color: #475569;
}

html[data-theme='day'] .sidebar-nav .nav-link i {
  color: #64748b;
}

html[data-theme='day'] .sidebar-nav .nav-link:hover {
  background: rgba(13, 148, 136, 0.08);
  color: #0f172a;
  border-color: rgba(13, 148, 136, 0.2);
}

html[data-theme='day'] .sidebar-nav .nav-link:hover i {
  color: #0f766e;
}

html[data-theme='day'] .sidebar-nav .nav-link.active {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: inset 3.5px 0 0 #0f766e;
}

html[data-theme='day'] .sidebar-nav .nav-link.active i {
  color: #0f766e;
}

html[data-theme='day'] .sidebar-footer {
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top-color: rgba(15, 40, 70, 0.08);
}

html[data-theme='day'] .user-avatar {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(3, 105, 161, 0.12));
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.28);
}

html[data-theme='day'] .user-name {
  color: #0f172a;
}

html[data-theme='day'] .user-role {
  color: #0f766e;
}

html[data-theme='day'] .card-soft,
html[data-theme='day'] .stat-card,
html[data-theme='day'] .chrono-ring,
html[data-theme='day'] .hero-action {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme='day'] .stat-card:hover,
html[data-theme='day'] .chrono-ring:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--ring-color, rgba(14, 165, 233, 0.45));
  box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--ring-color, #0ea5e9) 25%, transparent), 0 0 0 1px var(--ring-color, #0ea5e9);
  transform: translateY(-2px);
}

html[data-theme='day'] .card-soft::before,
html[data-theme='day'] .stat-card::after,
html[data-theme='day'] .hero-action::before {
  opacity: 0.25;
}

html[data-theme='day'] .card-header {
  background: rgba(241, 245, 249, 0.85);
  color: #0f172a;
  border-bottom-color: var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme='day'] .chrono-command__title,
html[data-theme='day'] .chrono-ring__value,
html[data-theme='day'] .stat-value,
html[data-theme='day'] .hero-status {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  text-shadow: none;
}

html[data-theme='day'] .chrono-ring__label {
  color: #0f172a !important;
  font-weight: 700;
}

html[data-theme='day'] .stat-label,
html[data-theme='day'] .chrono-command__sub,
html[data-theme='day'] .text-muted,
html[data-theme='day'] .form-hint,
html[data-theme='day'] .empty-state {
  color: #475569 !important;
}

html[data-theme='day'] .pulse-ring__track {
  stroke: rgba(148, 163, 184, 0.32);
  stroke-width: 7;
}

html[data-theme='day'] .pulse-ring__meter {
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--ring-color) 45%, transparent));
}

html[data-theme='day'] .chrono-ring--total {
  --ring-color: #334155;
}

html[data-theme='day'] .chrono-ring--present {
  --ring-color: #16a34a;
}

html[data-theme='day'] .chrono-ring--late {
  --ring-color: #d97706;
}

html[data-theme='day'] .chrono-ring--break {
  --ring-color: #7c3aed;
}

html[data-theme='day'] .chrono-ring--wfh {
  --ring-color: #db2777;
}

html[data-theme='day'] .chrono-ring--off {
  --ring-color: #64748b;
}

html[data-theme='day'] .chrono-ring--notclocked,
html[data-theme='day'] .chrono-ring--pending {
  --ring-color: #dc2626;
}

html[data-theme='day'] .meta-item {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border);
}

html[data-theme='day'] .meta-item .value {
  color: var(--accent);
}

html[data-theme='day'] .hero-action {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme='day'] .btn-close {
  filter: none;
}

html[data-theme='day'] .table {
  --bs-table-color: #0f172a;
  --bs-table-bg: #fafbfd;
  --bs-table-border-color: rgba(15, 23, 42, 0.08);
  --bs-table-striped-bg: #f4f6fa;
  --bs-table-hover-bg: rgba(15, 118, 110, 0.05);
  color: #0f172a;
}

html[data-theme='day'] .table thead th {
  color: #0f766e;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme='day'] .table td {
  color: #0f172a;
}

html[data-theme='day'] .form-control,
html[data-theme='day'] .form-select {
  background-color: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 40, 70, 0.22);
}

html[data-theme='day'] .form-select option,
html[data-theme='day'] .form-select optgroup {
  background-color: #ffffff;
  color: #0f172a;
}

html[data-theme='day'] .form-control:focus,
html[data-theme='day'] .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

html[data-theme='day'] .form-control::placeholder {
  color: #94a3b8;
}

html[data-theme='day'] .btn-outline-secondary {
  color: #334155;
  border-color: rgba(15, 40, 70, 0.28);
  background: #ffffff;
}

html[data-theme='day'] .btn-outline-secondary:hover {
  color: #0f172a;
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
}

html[data-theme='day'] .btn-accent {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0f766e !important;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  text-shadow: none !important;
}

html[data-theme='day'] .btn-accent:hover,
html[data-theme='day'] .btn-accent:focus {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%) !important;
  border-color: #115e59 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3) !important;
}

html[data-theme='day'] .btn-outline-primary {
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.35);
}

html[data-theme='day'] .btn-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border);
  color: #0f172a;
}

html[data-theme='day'] .dropdown-menu {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

html[data-theme='day'] .dropdown-item {
  color: #0f172a;
}

html[data-theme='day'] .dropdown-item:hover,
html[data-theme='day'] .dropdown-item:focus,
html[data-theme='day'] .dropdown-item.active {
  background: rgba(15, 118, 110, 0.1);
  color: #0f172a;
}

html[data-theme='day'] .dropdown-divider {
  border-color: rgba(15, 40, 70, 0.12);
}

/* Status badges ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â high contrast on light cards matching dashboard palette */
html[data-theme='day'] .badge-present {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

html[data-theme='day'] .badge-late {
  background: #fde68a;
  color: #92400e;
  border-color: #f59e0b;
  font-weight: 600;
}

html[data-theme='day'] .table-warning,
html[data-theme='day'] .table>tbody>tr.table-warning>* {
  --bs-table-bg: rgba(217, 119, 6, 0.14) !important;
  --bs-table-color: #0f172a !important;
  color: #0f172a !important;
}

html[data-theme='day'] .table>tbody>tr.table-warning>td:first-child {
  box-shadow: inset 4px 0 0 #d97706 !important;
}

html[data-theme='day'] .badge-break {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

html[data-theme='day'] .badge-wfh {
  background: #fce7f3;
  color: #be185d;
  border-color: #fbcfe8;
}

html[data-theme='day'] .badge-completed {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

html[data-theme='day'] .badge-absent,
html[data-theme='day'] .badge-notclocked {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

html[data-theme='day'] .badge-off {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

html[data-theme='day'] .badge-pending {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

html[data-theme='day'] .badge-incomplete {
  background: #fce7f3;
  color: #be185d;
  border-color: #fbcfe8;
}

html[data-theme='day'] .alert {
  color: #0f172a;
}

html[data-theme='day'] .loading-overlay {
  background: rgba(232, 238, 246, 0.82);
}

html[data-theme='day'] .loading-overlay .text-light,
html[data-theme='day'] .loading-overlay .spinner-border {
  color: var(--accent) !important;
  border-color: var(--accent);
}

html[data-theme='day'] .app-footer {
  color: #64748b;
  border-top-color: var(--border);
  background: rgba(255, 255, 255, 0.65);
}

html[data-theme='day'] .hud-frame::after {
  opacity: 0.55;
}

html[data-theme='day'] .energy-card::after {
  background: radial-gradient(420px circle at var(--ex) var(--ey), rgba(15, 118, 110, 0.1), transparent 42%);
}

/* Day Mode Form Overrides */
html[data-theme='day'] .form-label {
  color: #334155;
}

html[data-theme='day'] .form-control {
  background-color: #ffffff;
  border-color: rgba(15, 40, 70, 0.22);
  color: #0f172a;
}

html[data-theme='day'] .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  background-color: #ffffff;
}

html[data-theme='day'] .input-group-text {
  background-color: #f1f5f9;
  border-color: rgba(15, 40, 70, 0.22);
  color: #0e7490;
}

html[data-theme='day'] .timeout-display-badge,
html[data-theme='day'] [data-timeout-display] {
  background: #e0f2fe !important;
  border-color: #93c5fd !important;
  color: #0369a1 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

html[data-theme='day'] .form-select {
  background-color: #ffffff;
  border-color: rgba(15, 40, 70, 0.22);
  color: #0f172a;
}

html[data-theme='day'] .form-select option {
  background-color: #ffffff;
  color: #0f172a;
}

html[data-theme='day'] .form-check-input {
  background-color: #ffffff;
  border: 1.5px solid #94a3b8;
}

html[data-theme='day'] .form-check-input:hover {
  border-color: var(--accent);
}

html[data-theme='day'] .form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

html[data-theme='day'] .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

html[data-theme='day'] .form-check-label {
  color: #1e293b;
}

/* Authentication: quieter ambient art and readable, consistent controls. */
.auth-page #chronoAmbient {
  opacity: .55;
}

.auth-page .auth-card,
.auth-page .auth-top {
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

.auth-page .auth-card h1 {
  letter-spacing: .02em;
  font-weight: 700;
}

.auth-page .auth-card .subtitle {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.auth-page .form-label,
.auth-page .btn {
  letter-spacing: normal;
  text-transform: none;
}

html[data-theme='day'] :is(.auth-page, .recovery-page) .auth-card {
  background: #ffffff;
  border-color: rgba(15, 40, 70, .18);
  box-shadow: 0 18px 48px rgba(30, 50, 80, .16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Verification and recovery result cards must remain readable in light mode. */
html[data-theme='day'] :is(.auth-page, .recovery-page) .auth-card .alert-success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

html[data-theme='day'] :is(.auth-page, .recovery-page) .auth-card .alert-danger {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

html[data-theme='day'] :is(.auth-page, .recovery-page) .auth-card h1 {
  color: #0f172a;
}

html[data-theme='day'] .auth-page .auth-card .subtitle {
  color: #0f766e;
}

html[data-theme='day'] :is(.auth-page, .recovery-page) .auth-card .form-label {
  color: #334155;
}

html[data-theme='day'] :is(.auth-page, .recovery-page) .auth-card .form-control {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

html[data-theme='day'] :is(.auth-page, .recovery-page) .auth-card .form-control:focus {
  background-color: #ffffff;
  border-color: #0f766e;
}

html[data-theme='day'] .recovery-page .auth-card a {
  color: #0f766e;
}

html[data-theme='day'] .auth-page .auth-card a[href*='forgot_password'],
html[data-theme='night'] .auth-page .auth-card a[href*='forgot_password'] {
  color: #0f766e;
}

html[data-theme='day'] .auth-page .auth-card a[href*='forgot_password']:hover,
html[data-theme='day'] .auth-page .auth-card a[href*='forgot_password']:focus-visible {
  color: #0d9488;
}

.auth-page .auth-top>.theme-toggle,
.auth-page .auth-top>.lang-switcher>.btn {
  min-height: 42px;
  font-size: .95rem;
}

/* The admin dashboard keeps the ambient scene behind operational data. */
.admin-dashboard #chronoAmbient {
  opacity: .75;
}

.admin-dashboard .topbar-ticker {
  opacity: .78;
}

.admin-dashboard .stat-card {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, .05), 0 10px 24px rgba(0, 0, 0, .25);
}

html[data-theme='day'] .admin-dashboard .stat-card {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(14, 165, 233, 0.18);
}

.auth-page .auth-top>.theme-toggle {
  min-width: 42px;
  padding: .45rem .85rem;
}

.auth-page .auth-top>.theme-toggle i {
  font-size: 1.1rem;
}

.auth-page .auth-top>.lang-switcher>.btn {
  padding-inline: .8rem;
}

.auth-page .auth-card input.form-control-lg {
  font-size: 1.05rem !important;
  line-height: 1.5;
}

.auth-page .auth-card input:-webkit-autofill,
.auth-page .auth-card input:-webkit-autofill:hover,
.auth-page .auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0e1828 inset;
  -webkit-text-fill-color: #e8eef8;
  caret-color: #e8eef8;
  font-size: 1.05rem !important;
  line-height: 1.5;
}

html[data-theme='day'] .auth-page .auth-card input:-webkit-autofill,
html[data-theme='day'] .auth-page .auth-card input:-webkit-autofill:hover,
html[data-theme='day'] .auth-page .auth-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
}

/* Keep Chrome's saved-password fill dark even when the input is focused. */
html[data-theme='night'] .auth-page .auth-card input.form-control:-webkit-autofill,
html[data-theme='night'] .auth-page .auth-card input.form-control:-webkit-autofill:hover,
html[data-theme='night'] .auth-page .auth-card input.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0b1728 inset, 0 0 0 3px rgba(22, 199, 217, .16);
  -webkit-text-fill-color: #e8eef8;
  caret-color: #e8eef8;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  width: 100%;
  padding-right: 3.25rem;
}

.password-field .form-control.is-invalid,
.password-field .form-control.is-valid {
  background-image: none !important;
}

.password-toggle {
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.2rem;
}

html[data-theme='night'] .password-toggle {
  color: #afbed1;
}

html[data-theme='night'] .password-toggle:hover,
html[data-theme='night'] .password-toggle:focus-visible {
  color: #e8eef8;
}

html[data-theme='day'] .password-toggle {
  color: #64748b;
}

html[data-theme='day'] .password-toggle:hover {
  color: #334155;
}

html[data-theme='day'] .password-toggle:focus-visible {
  color: #334155;
}

html[data-theme='night'] .auth-page .password-toggle {
  color: #afbed1;
}

html[data-theme='night'] .auth-page .password-toggle:hover,
html[data-theme='night'] .auth-page .password-toggle:focus-visible {
  color: #e8eef8;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.leave-action-modal .modal-content {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.leave-action-modal .modal-header,
.leave-action-modal .modal-footer {
  border-color: var(--border);
}

.leave-action-modal .modal-title {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.leave-action-modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: .8;
}

html[data-theme='day'] .leave-action-modal .btn-close {
  filter: none;
}

.leave-action-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
}

html[data-theme='day'] .leave-action-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.correction-confirm-modal .modal-content {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.correction-confirm-modal .modal-header,
.correction-confirm-modal .modal-footer {
  border-color: var(--border);
}

.correction-confirm-modal .modal-title {
  color: var(--text);
}

.correction-confirm-modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: .8;
}

html[data-theme='day'] .modal-content {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  border-color: #cbd5e1;
}

html[data-theme='day'] .correction-confirm-modal .btn-close {
  filter: none;
}

.correction-confirm-context {
  color: var(--muted);
}

.correction-confirm-context strong {
  color: var(--text);
}

.correction-confirm-table {
  color: var(--text);
  table-layout: fixed;
}

.correction-confirm-table th,
.correction-confirm-table td {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.correction-confirm-table th:first-child {
  width: 3.5rem;
}

.correction-confirm-table th:nth-child(2) {
  width: 28%;
}

.correction-confirm-reason {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.correction-confirm-empty {
  color: var(--muted);
}

@media (max-width: 480px) {
  .auth-page .auth-card {
    width: calc(100% - 2rem);
    padding: 1.5rem;
  }
}

/* Reports: action buttons alignment and sizing */
.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
}

.report-actions .report-export-dropdown,
.report-actions .btn {
  flex: 0 0 auto;
}

.report-actions .btn {
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 23, 38, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-sizing: border-box;
  margin: 0;
  line-height: 1;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.report-actions .btn:hover,
.report-actions .btn:focus,
.report-actions .btn.show,
.report-actions .btn:active {
  background: #1e2b3a;
  border-color: var(--accent);
  color: var(--accent);
}

html[data-theme='day'] .report-actions .btn-outline-secondary {
  background: #fff;
  border-color: #cbd5e1;
  color: #1e293b;
}

html[data-theme='day'] .report-actions .btn-outline-secondary:hover,
html[data-theme='day'] .report-actions .btn-outline-secondary.show {
  background: #f1f5f9;
  border-color: #0e7490;
  color: #0e7490;
}

html[data-theme='day'] .report-export-dropdown .dropdown-menu {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme='day'] .report-export-dropdown .dropdown-item {
  color: #1e293b;
}

html[data-theme='day'] .report-export-dropdown .dropdown-item:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.report-summary>div {
  display: flex;
}

.report-summary-card {
  --report-accent: #93c5fd;
  min-height: 104px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: color-mix(in srgb, var(--surface) 60%, var(--report-accent) 12%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--report-accent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.report-summary-card::after {
  display: none;
}

.report-summary-card .stat-label {
  color: #d7e3f2;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.25;
}

.report-summary-card .stat-value {
  color: var(--report-accent);
  text-align: left;
}

.report-summary-card__hours {
  font-size: 1.4rem;
}

.report-summary-card--records {
  --report-accent: #93c5fd;
  border-left-color: var(--report-accent);
}

.report-summary-card--present {
  --report-accent: #6ee7b7;
  border-left-color: var(--report-accent);
}

.report-summary-card--late {
  --report-accent: #fcd34d;
  border-left-color: var(--report-accent);
}

.report-summary-card--hours {
  --report-accent: #67e8f9;
  border-left-color: var(--report-accent);
}

.report-results-card {
  background: color-mix(in srgb, var(--surface) 94%, var(--bg-1) 6%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.report-results-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .7rem 1rem;
}

.report-period {
  display: inline-flex;
  align-items: center;
  padding: .38rem .75rem;
  border: 1px solid #3b8a94;
  border-radius: var(--radius-sm);
  background: #102b36;
  color: #e4f9fb;
  font: 700 .95rem var(--font-body);
  letter-spacing: .015em;
  white-space: nowrap;
}

.report-period-label {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-right: .25rem;
}

.report-results-table {
  min-width: 1200px;
  table-layout: fixed;
}

.report-results-table th:nth-child(1) {
  width: 11%;
}

.report-results-table th:nth-child(2) {
  width: 24%;
}

.report-results-table th:nth-child(3),
.report-results-table th:nth-child(4) {
  width: 10%;
}

.report-results-table th:nth-child(5) {
  width: 7%;
}

.report-results-table th:nth-child(6),
.report-results-table th:nth-child(7) {
  width: 12%;
}

.report-results-table th:nth-child(8) {
  width: 14%;
}

.report-results-table th,
.report-results-table td {
  padding: .85rem .8rem;
  line-height: 1.35;
  vertical-align: middle;
}

.report-results-table thead th {
  white-space: normal;
  overflow-wrap: break-word;
  letter-spacing: .06em;
}

.report-results-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.report-results-table td:nth-child(2) {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.report-results-table td:not(:nth-child(2)) {
  white-space: nowrap;
}

.report-results-table .report-status-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  white-space: normal;
}

.report-results-table .report-status-badges .status-badge {
  max-width: 100%;
  margin: 0 !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

.report-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  background: #0b1424;
}

.report-pagination-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.report-pagination-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 34px;
  padding: 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: var(--radius-sm, 6px);
  white-space: nowrap;
}

.report-pagination-current {
  cursor: default;
}

.report-pagination-ellipsis {
  color: var(--text);
  font-weight: 700;
  padding: 0 .2rem;
}

.report-pagination .form-hint {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.report-pagination-links .btn-outline-secondary {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.report-pagination-links .btn-outline-secondary:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
}

.report-pagination-links .btn-outline-secondary.disabled {
  color: var(--muted);
  opacity: .5;
  background: transparent;
}

html[data-theme='day'] .report-pagination {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

html[data-theme='day'] .report-pagination .form-hint {
  color: #64748b;
}

html[data-theme='day'] .report-pagination-links .btn-outline-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme='day'] .report-pagination-links .btn-outline-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

html[data-theme='day'] .report-pagination-links .btn-outline-secondary.disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  opacity: .7;
}

html[data-theme='day'] .report-pagination-links .report-pagination-current {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
}

.report-pagination-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.report-pagination-mobile .pagination-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  white-space: nowrap;
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.report-pagination-mobile .pagination-mobile-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
}

.report-pagination-mobile .pagination-mobile-btn.disabled {
  color: var(--muted);
  opacity: .5;
  background: transparent;
  pointer-events: none;
}

.pagination-mobile-indicator {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

html[data-theme='day'] .report-pagination-mobile .pagination-mobile-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

html[data-theme='day'] .report-pagination-mobile .pagination-mobile-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

html[data-theme='day'] .report-pagination-mobile .pagination-mobile-btn.disabled {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  opacity: .7;
}

html[data-theme='day'] .pagination-mobile-indicator {
  color: #334155;
}

@media (max-width: 767px) {
  .report-pagination {
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }

  .report-pagination-links {
    justify-content: center;
    width: 100%;
    gap: 0.35rem;
  }

  .report-pagination-links .btn {
    min-width: 2rem;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }
}

html[data-theme='day'] .report-summary-card--records {
  --report-accent: #1d4ed8;
  border-left-color: var(--report-accent);
}

html[data-theme='day'] .report-summary-card--present {
  --report-accent: #047857;
  border-left-color: var(--report-accent);
}

html[data-theme='day'] .report-summary-card--late {
  --report-accent: #92400e;
  border-left-color: var(--report-accent);
}

html[data-theme='day'] .report-summary-card--hours {
  --report-accent: #0e7490;
  border-left-color: var(--report-accent);
}

html[data-theme='day'] .report-summary-card .stat-label {
  color: #334155;
}

html[data-theme='day'] .report-summary-card .stat-value {
  color: var(--report-accent);
  -webkit-text-fill-color: var(--report-accent);
}

html[data-theme='day'] .report-results-card {
  background: var(--surface-solid);
}

html[data-theme='day'] .report-period {
  background: #e6f4f7;
  border-color: #0e7490;
  color: #164e63;
}

.reports-page #chronoAmbient {
  opacity: .18;
}

.settings-page #chronoAmbient {
  opacity: .12;
}

.settings-form {
  max-width: 960px;
}

.policy-page #chronoAmbient {
  opacity: .16;
}

.policy-disclosure {
  border-top: 1px solid var(--border);
}

.policy-disclosure summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.policy-disclosure summary::-webkit-details-marker {
  display: none;
}

.policy-disclosure summary::after {
  content: '+';
  color: var(--accent);
  margin-left: auto;
  font-size: 1.25rem;
}

.policy-disclosure[open] summary::after {
  content: '\2212';
}

.policy-disclosure summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.preview-message-disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.preview-message-disclosure > summary::-webkit-details-marker {
  display: none;
}

.preview-message-disclosure > summary::after {
  content: '\25B8';
  font-size: .9rem;
}

.preview-message-disclosure[open] > summary::after {
  content: '\25BE';
}

.policy-entitlement {
  color: var(--accent);
}

.policy-disclosure-body {
  padding: 0 0 1rem;
  line-height: 1.65;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Policy Break Rules Table ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.policy-break-table {
  table-layout: fixed;
  width: 100%;
}

.policy-break-table th,
.policy-break-table td {
  vertical-align: middle;
  padding: 0.75rem 1rem;
}

.policy-table-tfoot {
  border-top: 2px solid var(--border-strong) !important;
  background: var(--surface-2);
}

.policy-table-tfoot th,
.policy-table-tfoot td {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
  font-size: 0.95rem;
}

.policy-total-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm, 6px);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 600;
}

html[data-theme='day'] .policy-table-tfoot {
  background: #f8fafc !important;
  border-top: 2px solid #cbd5e1 !important;
}

html[data-theme='day'] .policy-total-badge {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #99f6e4;
}

.recovery-info {
  position: relative;
  flex: 0 0 auto;
}

.recovery-info summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  list-style: none;
  cursor: pointer;
  color: var(--accent);
}

.recovery-info>.form-hint {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  width: 220px;
  max-width: 60vw;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}

.recovery-info summary::-webkit-details-marker {
  display: none;
}

.recovery-info summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Global Loading & Progress Bar ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.chrono-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #38bdf8);
  box-shadow: 0 0 12px var(--accent), 0 0 6px var(--accent-2);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.2s ease;
}

.chrono-progress-bar.is-active {
  opacity: 1;
  width: 75%;
  animation: chronoProgressGlow 1.5s infinite linear;
}

.chrono-progress-bar.is-done {
  width: 100%;
  opacity: 0;
  transition: width 0.15s ease, opacity 0.3s ease 0.15s;
}

@keyframes chronoProgressGlow {
  0% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.35);
  }

  100% {
    filter: brightness(1);
  }
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Report Filtering Loading Overlay ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.report-content-wrapper {
  position: relative;
  transition: opacity 0.2s ease;
}

.report-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.68);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.report-content-wrapper.is-loading .report-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}

.report-content-wrapper.is-loading>*:not(.report-loading-overlay) {
  opacity: 0.45;
  filter: blur(0.5px);
  transition: opacity 0.2s ease, filter 0.2s ease;
  pointer-events: none;
}

.report-loading-spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.25rem;
  background: rgba(13, 22, 38, 0.92);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(45, 212, 191, 0.25);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.03em;
  animation: floatSlow 2s ease-in-out infinite alternate;
}

.report-loading-spinner-box .spinner-border {
  width: 2.2rem;
  height: 2.2rem;
  border-width: 3px;
  color: var(--accent) !important;
}

.report-loading-text {
  font-size: 0.95rem;
  color: var(--accent);
  font-family: inherit;
}

html[data-theme='day'] .report-loading-overlay {
  background: rgba(241, 245, 249, 0.75);
}

html[data-theme='day'] .report-loading-spinner-box {
  background: rgba(255, 255, 255, 0.95);
  border-color: #cbd5e1;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

html[data-theme='day'] .report-loading-text {
  color: #0284c7;
}

@keyframes floatSlow {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm, 6px);
}

html[data-theme='day'] .admin-role-badge {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.35);
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Staff Dashboard Glassmorphism & Typography Enhancements ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.staff-dashboard .stat-card,
.staff-dashboard .hero-action,
.staff-dashboard .card-soft {
  background: rgba(10, 18, 32, 0.72) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme='day'] .staff-dashboard .stat-card,
html[data-theme='day'] .staff-dashboard .hero-action,
html[data-theme='day'] .staff-dashboard .card-soft {
  background: rgba(248, 250, 252, 0.82) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(13, 148, 136, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.dashboard-date-bold {
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

html[data-theme='day'] .dashboard-date-bold {
  color: #0f172a !important;
}

.dashboard-day-unbold {
  font-weight: 400;
  color: var(--text-muted, #94a3b8);
}

.staff-dashboard .stat-hint {
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
  margin-top: 0.4rem;
}

html[data-theme='day'] .staff-dashboard .stat-hint {
  color: #475569 !important;
}

.staff-dashboard .meta-item .label {
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-dashboard .meta-item .value {
  font-size: 1.12rem !important;
  font-weight: 600;
}

.break-policy-box {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(56, 189, 248, 0.2) !important;
}

html[data-theme='day'] .break-policy-box {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(13, 148, 136, 0.25) !important;
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Staff Schedule: Ambient Background ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.page-schedule #chronoAmbient {
  opacity: 0.55;
}

.page-schedule .app-wrapper {
  background: transparent !important;
}

html[data-theme='day'] .page-schedule .app-wrapper {
  background: transparent !important;
}

.schedule-top-bar {
  padding-bottom: 0.25rem;
}

/* 3 Dominant Top Cards/Pills */
.schedule-top-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 767px) {
  .schedule-top-pills {
    grid-template-columns: 1fr;
  }
}

.schedule-top-pill {
  background: #0d1729;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease;
}

.schedule-top-pill:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

html[data-theme='day'] .schedule-top-pill {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.schedule-top-pill__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 7px;
}

html[data-theme='day'] .schedule-top-pill__label {
  color: #64748b;
}

.schedule-top-pill__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}

html[data-theme='day'] .schedule-top-pill__value {
  color: #0f172a;
}

.schedule-top-pill__sub {
  font-size: 0.86rem;
  color: #64748b;
  margin-top: 0.1rem;
}

html[data-theme='day'] .schedule-top-pill__sub {
  color: #64748b;
}

/* Weekly Off pill is strictly neutral grey/slate */
.schedule-top-pill--off {
  background: #0b121e;
  border-color: rgba(148, 163, 184, 0.25);
}

.schedule-top-pill--off .schedule-top-pill__value {
  color: #cbd5e1;
}

html[data-theme='day'] .schedule-top-pill--off {
  background: rgba(241, 245, 249, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: #cbd5e1;
}

html[data-theme='day'] .schedule-top-pill--off .schedule-top-pill__value {
  color: #334155;
}

/* Hero Week Card */
.schedule-hero-card {
  background: #0b1424 !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

html[data-theme='day'] .schedule-hero-card {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.schedule-day-card {
  display: flex;
  flex-direction: column;
  background: #111e33;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 10px;
  padding: 1rem 0.65rem;
  min-height: 180px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.schedule-day-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

html[data-theme='day'] .schedule-day-card {
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: #e2e8f0;
}

html[data-theme='day'] .schedule-day-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

/* Today highlight */
.schedule-day-card--today {
  border-color: #2dd4bf !important;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.25) !important;
  background: #0f273d !important;
}

html[data-theme='day'] .schedule-day-card--today {
  border-color: #0d9488 !important;
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.2) !important;
  background: rgba(240, 253, 250, 0.88) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Day Off Card: Strictly Grey / Slate */
.schedule-day-card--off {
  background: #0c1422 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  opacity: 0.9;
}

html[data-theme='day'] .schedule-day-card--off {
  background: rgba(241, 245, 249, 0.75) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: #e2e8f0 !important;
}

.schedule-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.55rem;
  margin-bottom: 0.85rem;
}

html[data-theme='day'] .schedule-day-header {
  border-bottom-color: #e2e8f0;
}

.schedule-day-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #f1f5f9;
}

html[data-theme='day'] .schedule-day-name {
  color: #0f172a;
}

.schedule-day-date-str {
  font-size: 0.88rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

html[data-theme='day'] .schedule-day-date-str {
  color: #64748b;
}

.schedule-today-pill {
  background: #0d9488;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  display: inline-block;
}

.schedule-day-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
}

/* Distinct Status Badges - Prominent and readable */
.schedule-state-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Absent: Bold Red */
.badge-absent {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
}

html[data-theme='day'] .badge-absent {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

/* Day Off: Pure Grey */
.badge-off {
  background: rgba(148, 163, 184, 0.14) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

html[data-theme='day'] .badge-off {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

/* Completed: Teal */
.badge-completed {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #2dd4bf !important;
  border: 1px solid rgba(45, 212, 191, 0.38) !important;
}

html[data-theme='day'] .badge-completed {
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border-color: #bbf7d0 !important;
}

/* Late: Amber */
.badge-late {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

html[data-theme='day'] .badge-late {
  background: #fffbeb !important;
  color: #d97706 !important;
  border-color: #fde68a !important;
}

.badge-exceeded {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

html[data-theme='day'] .badge-exceeded {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fdba74;
}

/* Scheduled: Neutral Slate */
.badge-scheduled {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme='day'] .badge-scheduled {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.schedule-actual-time {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.schedule-actual-time--hint {
  font-size: 0.87rem;
}

html[data-theme='day'] .schedule-top-bar .text-white,
html[data-theme='day'] .schedule-hero-card .text-white {
  color: #0f172a !important;
}

html[data-theme='day'] .schedule-top-bar .text-accent,
html[data-theme='day'] .schedule-top-pill .text-accent,
html[data-theme='day'] .schedule-hero-card .text-accent {
  color: #0f766e !important;
}

html[data-theme='day'] .schedule-actual-time.text-warning {
  color: #92400e !important;
}

html[data-theme='day'] .schedule-actual-time.text-info {
  color: #075985 !important;
}

html[data-theme='day'] .schedule-actual-time.text-muted {
  color: #475569 !important;
}

.schedule-moon-icon {
  color: #94a3b8 !important;
  opacity: 0.8;
}

html[data-theme='day'] .schedule-moon-icon {
  color: #64748b !important;
}

/* Mobile leave request cards: separate each request instead of one continuous sheet. */
.leave-mobile-list {
  background: var(--surface);
}

.leave-mobile-card {
  background: #111e33;
  border: 1px solid rgba(56, 189, 248, .2);
  border-left: 4px solid #64748b;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}

.leave-mobile-card[data-status='pending'] {
  border-left-color: #f59e0b;
}

.leave-mobile-card[data-status='approved'] {
  border-left-color: #22c55e;
}

.leave-mobile-card[data-status='rejected'] {
  border-left-color: #ef4444;
}

.leave-mobile-reason {
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .14);
}

.leave-mobile-admin-note {
  background: rgba(14, 165, 233, .08);
  border: 1px solid rgba(14, 165, 233, .22);
}

.leave-mobile-icon-box {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
}

.notification-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.notification-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  cursor: pointer;
}

.notification-preference--all {
  width: 100%;
  flex: 0 0 100%;
  margin-bottom: .65rem;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  font-weight: 600;
}

@media (min-width: 992px) {
  .notification-settings-card>.card-header {
    font-size: 0;
  }

  .notification-settings-card>.card-header::after {
    content: attr(data-desktop-label);
    font-size: 1.05rem;
  }

  .notification-settings-card>.card-header>i {
    font-size: 1.05rem;
  }

  .notification-settings-card .notification-preference--all {
    width: 100%;
    min-height: 2.7rem;
    margin: 0;
    padding: .45rem .65rem;
    font-size: 0;
  }

  .notification-settings-card .notification-preference--all::before {
    content: attr(data-push-label);
    font-size: .95rem;
  }

  .notification-settings-card .notification-preference--all>span:first-child {
    font-size: 0;
    margin-left: auto;
  }

  .notification-settings-card .notification-preference--all>span:first-child::after {
    content: attr(data-allow-label);
    font-size: .9rem;
  }
}

.notification-toggle,
.notification-option {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notification-switch {
  width: 2.2rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #94a3b8;
  position: relative;
  flex: 0 0 auto;
}

.notification-switch::after {
  content: '';
  position: absolute;
  width: .95rem;
  height: .95rem;
  top: .15rem;
  left: .15rem;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}

.notification-toggle:checked+.notification-switch {
  background: #0d9488;
}

.notification-toggle:checked+.notification-switch::after {
  transform: translateX(.95rem);
}

.staff-profile-page .attendance-location-toggle {
  width: 100%;
  min-height: 2.75rem;
}

.staff-profile-page .attendance-location-toggle-control {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
}

.staff-profile-page .attendance-location-state {
  line-height: 1.4;
}

.staff-profile-page .attendance-location-card[data-preference="undecided"] .attendance-location-state {
  color: var(--accent);
}

.staff-profile-page .attendance-location-card[data-preference="undecided"] .notification-switch {
  background: #94a3b8;
}


.staff-profile-page .attendance-browser-status {
  color: var(--muted);
  font-size: .85rem;
}

.staff-profile-page .attendance-permission-badge {
  display: inline-flex;
  align-items: center;
  padding: .14rem .5rem;
  margin-left: .25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 8%, transparent);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
}

.staff-profile-page .attendance-permission-badge.is-allowed {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.staff-profile-page .attendance-permission-badge.is-blocked {
  color: #b7791f;
  border-color: color-mix(in srgb, #b7791f 28%, var(--border));
  background: color-mix(in srgb, #b7791f 8%, transparent);
}

.staff-profile-page .attendance-location-help summary {
  padding: .65rem 0;
  gap: .4rem;
  font-size: .85rem;
  color: var(--accent);
  opacity: .75;
  font-weight: 700;
}

.staff-profile-page .attendance-location-help summary::before { content: none; }
.staff-profile-page .attendance-location-help summary::after { content: '\25B8'; margin-left: 0; font-size: .95rem; line-height: 1; }
.staff-profile-page .attendance-location-help[open] summary::after { content: '\25BE'; }

.staff-profile-page .attendance-location-help .policy-disclosure-body {
  padding-bottom: .2rem;
  color: var(--muted);
  font-size: .85rem;
}

.staff-profile-page .attendance-location-help ol {
  padding-left: 1.3rem;
}

.staff-profile-page .attendance-location-help li+li {
  margin-top: .3rem;
}

.staff-profile-page .attendance-location-help.is-blocked summary {
  opacity: 1;
}

.notification-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #94a3b8;
  border-radius: .2rem;
  color: transparent;
  font-size: .9rem;
  font-weight: 800;
}

.notification-checkbox::after {
  content: '\2713';
}

.staff-policy-break-cards {
  display: none;
}

.staff-policy-hours-summary {
  display: none;
}

.staff-policy-conduct {
  display: none;
}

.staff-policy-leave-columns {
  display: none;
}

@media (min-width: 992px) {
  .staff-policy-page .policy-hours-original {
    display: none;
  }

  .staff-policy-page .policy-conduct-original {
    display: none;
  }

  .staff-policy-page .staff-policy-conduct {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .staff-policy-page .staff-conduct-rule {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: rgba(148, 163, 184, .06);
  }

  .staff-policy-page .staff-conduct-icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    border-radius: .65rem;
    background: rgba(20, 184, 166, .1);
    color: var(--accent);
    font-size: 1.15rem;
  }

  .staff-policy-page .staff-conduct-rule strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--text);
    font-size: 1rem;
  }

  .staff-policy-page .staff-conduct-rule p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
  }

  .staff-policy-page .staff-policy-hours-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.35rem 1.5rem;
  }

  .staff-policy-page .staff-policy-shift-time {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    color: var(--text);
  }

  .staff-policy-page .staff-policy-shift-time i {
    display: grid;
    place-items: center;
    flex: 0 0 2.8rem;
    height: 2.8rem;
    border: 1px solid var(--border-strong);
    border-radius: .75rem;
    background: rgba(20, 184, 166, .09);
    color: var(--accent);
    font-size: 1.25rem;
  }

  .staff-policy-page .staff-policy-shift-time strong {
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    line-height: 1.2;
  }

  .staff-policy-page .staff-policy-hours-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .staff-policy-page .staff-policy-hours-facts>div {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: rgba(148, 163, 184, .06);
  }

  .staff-policy-page .staff-policy-hours-facts span {
    color: var(--muted);
    font-size: .78rem;
  }

  .staff-policy-page .staff-policy-hours-facts strong {
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .staff-policy-page .staff-policy-hours-facts small {
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.35;
  }

  .staff-policy-page .staff-policy-hours-note {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .82rem;
  }
}

@media (max-width: 767.98px) {
  .admin-attendance-records .table-responsive-card {
    display: none;
  }

  .admin-attendance-records .attendance-records-mobile {
    display: grid;
    gap: .65rem;
    padding: .75rem;
  }

  .admin-attendance-records .attendance-record-mobile {
    padding: .8rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    background: var(--surface);
  }

  .admin-attendance-records .attendance-record-mobile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
  }

  .admin-attendance-records .attendance-record-mobile__identity {
    min-width: 0;
    display: grid;
    gap: .15rem;
  }

  .admin-attendance-records .attendance-record-mobile__identity strong {
    font-size: .98rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .admin-attendance-records .attendance-record-mobile__identity span {
    color: var(--muted);
    font-size: .8rem;
  }

  .admin-attendance-records .attendance-record-mobile__status {
    flex: 0 1 auto;
    max-width: 48%;
    text-align: right;
  }

  .admin-attendance-records .attendance-record-mobile__status .badge {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .admin-attendance-records .attendance-record-mobile__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem .8rem;
    margin: .8rem 0;
  }

  .admin-attendance-records .attendance-record-mobile__grid div {
    min-width: 0;
    display: grid;
    gap: .12rem;
  }

  .admin-attendance-records .attendance-record-mobile__grid span {
    color: var(--muted);
    font-size: .72rem;
  }

  .admin-attendance-records .attendance-record-mobile__grid strong {
    font-size: .86rem;
    overflow-wrap: anywhere;
  }

  .admin-attendance-records .attendance-record-mobile__action {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.staff-history-page .attendance-mobile-record-card.record-today {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .2), 0 4px 12px rgba(16, 185, 129, .08);
}

.attendance-today-label {
  display: inline-block;
  margin-left: .4rem;
  padding: .15rem .4rem;
  border-radius: .3rem;
  background: rgba(16, 185, 129, .12);
  color: #059669;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

html[data-theme='night'] .attendance-today-label {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .18);
}
}

@media (max-width: 767.98px) {
  .staff-dashboard .dash-primary-layout {
    display: flex;
    flex-direction: column;
  }

  .staff-dashboard .dash-primary-layout>.dash-hero-panel {
    order: 1;
    margin-bottom: 1rem !important;
  }

  .staff-dashboard .dash-primary-layout>.dash-compact-header {
    order: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .5rem;
    padding: .75rem;
    background: rgba(148, 163, 184, .06);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: .65rem;
    box-shadow: none;
  }

  html[data-theme='day'] .staff-dashboard .dash-primary-layout>.dash-compact-header {
    background: rgba(241, 245, 249, .65);
    border-color: rgba(148, 163, 184, .22);
  }

  .staff-dashboard .dash-greeting-status {
    padding-top: .15rem;
  }

  .staff-dashboard .dash-greeting-status .badge {
    font-size: .65rem;
  }

  .staff-dashboard .dash-greeting-title {
    font-size: 1.15rem;
  }

  .staff-dashboard .dash-date-line {
    font-size: .8rem;
  }

  .staff-dashboard .dash-mobile-context-strip {
    display: none;
  }

  .staff-dashboard .dash-hero-break .dash-hero-metrics>.dash-metric-item:nth-child(4),
  .staff-dashboard .dash-hero-break .dash-metric-sub {
    display: none;
  }

  .staff-dashboard .dash-hero-break .dash-hero-metrics>.dash-metric-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .staff-dashboard .dash-hero-working {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .staff-dashboard .dash-hero-working>.dash-hero-status-row {
    order: 0;
  }

  .staff-dashboard .dash-hero-working>.dash-hero-metrics,
  .staff-dashboard .dash-hero-working>.dash-hero-mobile-summary {
    order: 1;
  }

  .staff-dashboard .dash-hero-working>.dash-action-row {
    order: 2;
  }

  .staff-dashboard .dash-hero-working>.dash-overrun-banner {
    order: 3;
    margin-top: 1rem;
    margin-bottom: 0 !important;
    font-size: .8rem;
  }

  .staff-dashboard .dash-hero-working>.dash-hero-divider {
    display: none;
  }

  .staff-dashboard .dash-working-title {
    font-size: 1.25rem;
    text-transform: none !important;
    letter-spacing: normal;
  }
}

.staff-policy-leave-bullets {
  display: none;
}

@media (max-width: 767.98px) {
  .staff-policy-page .app-content {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: normal;
  }

  .staff-policy-page .staff-policy-leave-bullets.form-hint {
    padding: .75rem .85rem .75rem 1.8rem;
    margin-bottom: 1rem;
    border-radius: .5rem;
    background: color-mix(in srgb, var(--accent) 5%, transparent);
    font-family: inherit;
    font-size: .78rem;
    color: var(--muted);
  }

  .staff-policy-page .policy-disclosure {
    border: 1px solid var(--border);
    border-radius: .65rem;
    margin-top: .75rem;
    overflow: hidden;
  }

  .staff-policy-page .policy-disclosure summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .5rem;
    padding: .85rem;
    background: color-mix(in srgb, var(--accent) 5%, transparent);
  }

  .staff-policy-page .policy-disclosure summary>.fw-semibold {
    font-size: 1rem;
    font-weight: 700 !important;
    grid-column: 1;
  }

  .staff-policy-page .policy-disclosure summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .staff-policy-page .policy-entitlement {
    grid-column: 1;
    justify-self: start;
    padding: .2rem .5rem;
    border-radius: .35rem;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-size: .8rem;
    font-weight: 600;
  }

  .staff-policy-page .policy-disclosure-body {
    padding: .85rem;
    border-top: 1px solid var(--border);
  }

  .staff-policy-page .policy-disclosure-body .staff-policy-leave-bullets {
    font-size: .85rem;
    line-height: 1.65;
    color: var(--text);
  }

  .staff-policy-page .policy-leave-paragraph {
    display: none;
  }

  .staff-policy-page .staff-policy-leave-bullets {
    display: block;
    padding-left: 1.15rem;
    margin: 0;
    line-height: 1.6;
    font-size: .85rem;
  }

  .staff-policy-page .staff-policy-leave-bullets>li {
    padding-left: .15rem;
    margin-bottom: .65rem;
  }

  .staff-policy-page .staff-policy-leave-bullets>li:last-child {
    margin-bottom: 0;
  }

  .staff-policy-page .policy-conduct-original {
    display: none;
  }

  .staff-policy-page .staff-policy-conduct {
    display: grid;
    gap: .75rem;
    padding: 1rem;
  }

  .staff-conduct-rule {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
  }

  .staff-conduct-rule+.staff-conduct-rule {
    padding-top: .85rem;
    border-top: 1px solid var(--border);
  }

  .staff-conduct-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: .5rem;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    color: var(--accent);
  }

  .staff-conduct-rule strong {
    display: block;
    margin-bottom: .3rem;
    font-size: .95rem;
  }

  .staff-policy-page .staff-conduct-rule p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.6;
  }

  .staff-policy-page .policy-hours-original {
    display: none;
  }

  .staff-policy-page .staff-policy-hours-summary {
    display: block;
    padding: 1rem;
  }

  .staff-policy-shift-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem .35rem;
    border-radius: .5rem;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    font-size: 1.1rem;
    color: var(--accent);
  }

  .staff-policy-hours-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
  }

  .staff-policy-hours-facts>div {
    display: flex;
    flex-direction: column;
    gap: .3rem;
  }

  .staff-policy-hours-facts span {
    font-size: .8rem;
    color: var(--muted);
  }

  .staff-policy-hours-facts strong {
    font-size: 1.3rem;
  }

  .staff-policy-hours-facts small {
    font-size: .75rem;
    line-height: 1.5;
    color: var(--muted);
  }

  .staff-policy-hours-note {
    border-top: 1px solid var(--border);
    margin: 1rem 0 0 !important;
    padding-top: .75rem;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.5;
  }

  .staff-policy-page #chronoAmbient {
    display: none !important;
  }

  .staff-policy-page .app-wrapper {
    background: var(--bg-0);
  }

  .staff-policy-page .card-soft {
    background: #0b1528;
  }

  html[data-theme='day'] .staff-policy-page .card-soft {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .staff-policy-page .app-content>h2 {
    display: none;
  }

  .staff-policy-page .card-header {
    padding: .75rem 1rem;
  }

  .staff-policy-page .card-body:not(.p-0) {
    padding: 1rem;
  }

  .staff-policy-page .card-body p {
    margin-bottom: .65rem;
  }

  .staff-policy-page .policy-break-table {
    display: none;
  }

  .staff-policy-page .staff-policy-break-cards {
    display: grid;
    gap: .65rem;
    padding: .85rem;
  }

  .staff-policy-break-card {
    padding: .8rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
  }

  .staff-policy-break-card>strong {
    display: block;
    margin-bottom: .6rem;
    color: var(--accent);
  }

  .staff-policy-break-card dl {
    margin: 0;
    display: grid;
    gap: .4rem;
  }

  .staff-policy-break-card dl>div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
  }

  .staff-policy-break-card dt {
    font-size: .8rem;
    font-weight: 400;
    color: var(--muted);
  }

  .staff-policy-break-card dd {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .staff-policy-break-total {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .2rem;
    font-size: .85rem;
  }

  .staff-policy-calculation {
    margin-top: .75rem;
    border-top: 1px solid var(--border);
    padding-top: .6rem;
    font-size: .8rem;
  }

  .staff-policy-calculation summary {
    cursor: pointer;
    color: var(--accent);
    padding: .25rem 0;
    font-weight: 600;
  }

  .staff-policy-calculation>div {
    padding: .65rem;
    margin-top: .4rem;
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    border-radius: .35rem;
    line-height: 1.65;
  }
}

.notification-option:checked+.notification-checkbox {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.notification-option:focus-visible+.notification-checkbox,
.notification-toggle:focus-visible+.notification-switch {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .notification-preferences {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .leave-mobile-stat-card--pending {
    border: 1px solid #b45309;
    background: #fff1cc;
  }

  .leave-mobile-stat-card__pending-count {
    display: block;
    color: #78350f;
    font-size: 1.5rem !important;
    line-height: 1.2;
  }

  html[data-theme='night'] .leave-mobile-stat-card--pending {
    background: #3a2b13;
    border-color: #fbbf24;
  }

  html[data-theme='night'] .leave-mobile-stat-card__pending-count {
    color: #fde68a;
  }
}

html[data-theme='day'] .leave-mobile-list {
  background: transparent;
}

html[data-theme='day'] .leave-mobile-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: #dbe3ec;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .07);
}

html[data-theme='day'] .leave-mobile-card[data-status='pending'] {
  border-left-color: #f59e0b;
}

html[data-theme='day'] .leave-mobile-card[data-status='approved'] {
  border-left-color: #22c55e;
}

html[data-theme='day'] .leave-mobile-card[data-status='rejected'] {
  border-left-color: #ef4444;
}

html[data-theme='day'] .leave-mobile-reason {
  background: rgba(248, 250, 252, 0.75);
  border-color: #e2e8f0;
}

html[data-theme='day'] .leave-mobile-admin-note {
  background: rgba(240, 249, 255, 0.85);
  border-color: #bae6fd;
}

/* Mobile schedule: keep the summary readable and fit the week into a compact grid. */
@media (max-width: 767.98px) {
  .page-schedule .schedule-week-summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 !important;
    padding: .35rem .85rem !important;
    border: 1px solid var(--border) !important;
    border-radius: .65rem;
    background: var(--surface-2);
  }

  .page-schedule .schedule-week-summary>div {
    min-width: 0;
    justify-content: space-between;
    padding: .65rem 0;
  }

  .page-schedule .schedule-week-summary>div+div {
    border-top: 1px solid var(--border);
  }

  .page-schedule .schedule-week-summary strong {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
  }

  .page-schedule .schedule-mobile-summary-card {
    padding: 1rem;
    background: #111f33;
    border: 1px solid #526a85;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    position: relative;
    z-index: 1;
  }

  html[data-theme='day'] .page-schedule .schedule-mobile-summary-card {
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #bdcede;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  }

  .page-schedule .schedule-mobile-summary-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  .page-schedule .schedule-mobile-summary-hours {
    margin-top: .45rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
  }

  .page-schedule .schedule-mobile-summary-hours span {
    color: var(--muted);
    font-weight: 400;
  }

  .page-schedule .schedule-mobile-summary-target {
    margin-top: .3rem;
    color: var(--muted);
    font-size: .88rem;
  }

  .page-schedule .schedule-mobile-summary-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: .5rem;
    margin-top: .9rem;
  }

  .page-schedule .schedule-mobile-summary-fact {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid #526a85;
    border-radius: .6rem;
    background: #182b42;
  }

  html[data-theme='day'] .page-schedule .schedule-mobile-summary-fact {
    border-color: #d5e1eb;
    background: #eef4f8;
  }

  .page-schedule .schedule-mobile-summary-fact span {
    color: var(--muted);
    font-size: .71rem;
    line-height: 1.25;
  }

  .page-schedule .schedule-mobile-summary-fact strong {
    color: var(--text);
    font-size: .88rem;
    line-height: 1.3;
  }

  .page-schedule .schedule-week-nav {
    width: 100%;
  }

  .page-schedule .schedule-week-nav .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .page-schedule .schedule-week-nav .btn-group .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding-inline: .35rem;
    white-space: nowrap;
    font-size: .73rem;
  }

  .page-schedule .schedule-week-nav .btn-group .btn:first-child i {
    position: absolute;
    left: .7rem;
    margin: 0 !important;
  }

  .page-schedule .schedule-week-nav .btn-group .btn:last-child i {
    position: absolute;
    right: .7rem;
    margin: 0 !important;
  }

  .page-schedule .schedule-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .page-schedule .schedule-day-card {
    min-height: 145px;
    padding: .7rem .5rem;
  }

  .page-schedule .schedule-day-header {
    padding-bottom: .4rem;
    margin-bottom: .55rem;
  }

  .page-schedule .schedule-day-name {
    font-size: .82rem;
  }

  .page-schedule .schedule-day-date-str,
  .page-schedule .schedule-actual-time {
    font-size: .72rem;
  }

  .page-schedule .schedule-state-badge {
    max-width: 100%;
    padding: .3rem .35rem;
    font-size: .65rem;
    white-space: nowrap;
  }
}

/* ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Staff Dashboard: Ambient 3D Globe Background ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬ÂÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â */
.staff-dashboard #chronoAmbient,
.page-dashboard #chronoAmbient {
  opacity: .7;
}

.staff-dashboard .app-wrapper,
.page-dashboard .app-wrapper {
  background: transparent !important;
}

html[data-theme='day'] .staff-dashboard .app-wrapper,
html[data-theme='day'] .page-dashboard .app-wrapper {
  background: transparent !important;
}

/* Compact Header */
.dash-compact-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.dash-greeting-title {
  font-family: var(--font-ui);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

html[data-theme='day'] .dash-greeting-title {
  color: #0f172a;
}

.dash-date-line {
  font-size: 0.95rem;
}

.dash-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dash-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.88rem;
}

html[data-theme='day'] .dash-meta-pill {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.meta-pill-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

html[data-theme='day'] .meta-pill-label {
  color: #64748b;
}

.meta-pill-val {
  font-weight: 600;
  color: #f1f5f9;
}

html[data-theme='day'] .meta-pill-val {
  color: #0f172a;
}

@media (min-width: 992px) {
  .staff-dashboard .dash-meta-strip {
    width: min(100%, 58rem);
    gap: .75rem;
  }

  .staff-dashboard .dash-meta-pill {
    flex: 1 1 0;
    min-height: 3rem;
    justify-content: space-between;
    padding: .65rem .9rem;
    gap: .75rem;
  }

  .staff-dashboard .dash-meta-pill:nth-child(2) {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    background: color-mix(in srgb, var(--accent) 8%, var(--surface-solid));
  }

  .staff-dashboard .dash-meta-pill .meta-pill-val {
    white-space: nowrap;
  }
}

/* Hero Panel (The Central Workspace) */
.dash-hero-panel {
  background: #0b1528;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  position: relative;
}

html[data-theme='day'] .dash-hero-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.dash-hero-working {
  border-left: 4px solid #10b981;
}

.dash-hero-break {
  border-left: 4px solid #f59e0b;
}

.dash-hero-ready {
  border-left: 4px solid #38bdf8;
}

.dash-hero-completed {
  border-left: 4px solid #2dd4bf;
}

.dash-hero-off {
  border-left: 4px solid #64748b;
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.dash-working-title {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 600;
}

.topbar-ticker__group {
  display: inline-block;
  white-space: nowrap;
}

.topbar-ticker__group[hidden] {
  display: none;
}

.topbar-ticker__group .topbar-ticker__sep {
  padding: 0 .65rem;
}

.desktop-content-title {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 600;
}

#appConfirmModal .modal-content {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

#appConfirmModal :is(.modal-header, .modal-footer) {
  border-color: var(--border);
}

html[data-theme='night'] #appConfirmModal .modal-content {
  background: #111f33;
  color: #f1f5f9;
  border-color: #304966;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .5);
  opacity: 1;
}

html[data-theme='night'] #appConfirmModal :is(.modal-header, .modal-footer) {
  border-color: rgba(148, 173, 204, .25);
}

html[data-theme='night'] #appConfirmModal .btn-close {
  filter: invert(1);
}

html[data-theme='night'] #deleteStaffModal .modal-content {
  background: #111f33;
  color: #f1f5f9;
  border: 1px solid #304966;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .5);
  opacity: 1;
}

html[data-theme='night'] #deleteStaffModal :is(.modal-header, .modal-footer) {
  border-color: rgba(148, 173, 204, .25);
}

html[data-theme='night'] #deleteStaffModal .modal-body,
html[data-theme='night'] #deleteStaffModal .form-hint {
  color: #afbed1;
}

html[data-theme='night'] #deleteStaffModal .btn-close {
  filter: invert(1);
}

/* Flat Hero Metrics (Clean 3-column layout) */
.dash-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 14px 0;
}

@media (max-width: 768px) {
  .dash-hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.dash-metric-item {
  display: flex;
  flex-direction: column;
}

.dash-metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}

html[data-theme='day'] .dash-metric-label {
  color: #64748b;
}

.dash-metric-value {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.dash-metric-hero-work {
  font-size: 2.3rem;
  font-weight: 800;
  color: #2dd4bf !important;
  letter-spacing: -0.02em;
}

html[data-theme='day'] .dash-metric-hero-work {
  color: #0d9488 !important;
}

.dash-metric-sub {
  margin-top: 4px;
}

/* Overrun Alert */
.dash-overrun-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fca5a5;
  font-size: 0.92rem;
}

.dash-overrun-details summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  cursor: pointer;
  list-style: none;
}

.dash-overrun-details summary::-webkit-details-marker {
  display: none;
}

.dash-overrun-details summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.dash-overrun-expand {
  font-size: .8rem;
  white-space: nowrap;
}

.dash-overrun-details[open] .bi-chevron-down {
  display: inline-block;
  transform: rotate(180deg);
}

.dash-overrun-list {
  list-style: none;
  padding: .65rem 0 0;
  margin: .65rem 0 0;
  border-top: 1px solid rgba(239, 68, 68, .25);
}

.dash-overrun-list li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .25rem 0;
}

html[data-theme='day'] .dash-overrun-banner {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

html[data-theme='night'] .staff-dashboard .dash-overrun-banner {
  background: #302b20;
  border-color: #8e7238;
  color: #f5cf7a;
}

html[data-theme='night'] .staff-dashboard .dash-overrun-banner :is(.text-danger, .text-white-emphasis) {
  color: #f5cf7a !important;
}

html[data-theme='night'] .staff-dashboard .dash-overrun-list {
  border-top-color: rgba(245, 207, 122, .25);
}

html[data-theme='night'] .staff-dashboard .dash-overrun-expand {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dash-hero-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.15);
}

html[data-theme='day'] .dash-hero-divider {
  background: #e2e8f0;
}

/* Desktop working hero: give the primary card a clearer information hierarchy. */
@media (min-width: 992px) {
  .staff-dashboard .dash-hero-working {
    padding: 1.65rem 2rem 1.4rem;
  }

  .staff-dashboard .dash-hero-working>.dash-hero-status-row {
    margin: -0.15rem 0 1.15rem !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .staff-dashboard .dash-hero-working .dash-hero-status-meta {
    padding: .45rem .75rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
    background: color-mix(in srgb, var(--accent) 4%, transparent);
  }

  .staff-dashboard .dash-hero-working .dash-hero-metrics {
    gap: 0;
    margin-bottom: 1.25rem !important;
    padding: .25rem 0 1.35rem;
  }

  .staff-dashboard .dash-hero-working .dash-metric-item {
    min-height: 5.25rem;
    padding: 0 1.5rem;
    border-left: 1px solid var(--border);
  }

  .staff-dashboard .dash-hero-working .dash-metric-item:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .staff-dashboard .dash-hero-working .dash-metric-item:last-child {
    padding-right: 0;
  }

  .staff-dashboard .dash-hero-working .dash-action-row {
    align-items: flex-end !important;
    gap: 2rem !important;
  }

  .staff-dashboard .dash-hero-working .dash-break-actions-group {
    flex: 1 1 auto;
    min-width: 0;
  }

  .staff-dashboard .dash-hero-working .dash-clockout-group {
    flex: 0 0 12rem;
    padding-top: 0 !important;
  }
}

/* Action Area */
.dash-break-actions-group .dash-action-label,
.dash-clockout-group .dash-action-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dash-btn-break {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #f1f5f9;
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .22), 0 6px 14px rgba(0, 0, 0, .12);
}

html[data-theme='night'] .dash-btn-break {
  background: #172a43;
  border-color: #416887;
  color: #f8fafc;
}

html[data-theme='night'] .dash-btn-break:hover:not(:disabled),
html[data-theme='night'] .dash-btn-break:focus-visible {
  background: #1d4058;
  border-color: #36c7c0;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(54, 199, 192, .18), 0 6px 16px rgba(0, 0, 0, .22);
}

html[data-theme='day'] .dash-btn-break {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.dash-btn-break:hover:not(:disabled) {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

html[data-theme='day'] .dash-btn-break:hover:not(:disabled) {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0369a1;
}

.dash-btn-break:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.break-btn-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.break-btn-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.break-btn-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.break-btn-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

html[data-theme='day'] .break-btn-sub {
  color: #64748b;
}

/* Distinct High-Hierarchy Clock Out Button */
.btn-clock-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

html[data-theme='night'] .btn-clock-out {
  background: #3a2330;
  border-color: #f05b72;
  color: #ff9aaa;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 7px 16px rgba(239, 68, 68, .16);
}

html[data-theme='day'] .btn-clock-out {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}

.btn-clock-out:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5) !important;
  transform: translateY(-1px);
}

/* Today's Activity Card */
.dash-activity-card {
  background: #0b1528;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 22px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme='day'] .dash-activity-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: #cbd5e1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}


.dash-activity-header {
  border-bottom-color: rgba(148, 163, 184, 0.15) !important;
}

html[data-theme='day'] .dash-activity-header {
  border-bottom-color: #e2e8f0 !important;
}

.dash-activity-title {
  letter-spacing: 0.04em;
  font-weight: 800;
}

.dash-activity-card .table {
  --bs-table-bg: transparent;
}

.dash-activity-card .table thead th {
  border-top: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 10px 12px;
}

.dash-activity-card .table tbody td {
  padding: 14px 12px;
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

html[data-theme='day'] .dash-activity-card .table tbody td {
  border-bottom-color: #f1f5f9;
}

.dash-activity-card .table tbody tr:last-child td {
  border-bottom: none;
}

/* Activity Feed (Flex-based row layout) */
.dash-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-activity-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: background 0.15s ease;
}

.dash-activity-strip:last-child {
  border-bottom: none;
}

html[data-theme='day'] .dash-activity-strip {
  border-bottom-color: #f1f5f9;
}

/* Icon column */
.activity-strip-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #94a3b8;
}

html[data-theme='day'] .activity-strip-icon {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.activity-strip-icon.icon-type-in {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

html[data-theme='day'] .activity-strip-icon.icon-type-in {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.activity-strip-icon.icon-type-out {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

html[data-theme='day'] .activity-strip-icon.icon-type-out {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.activity-strip-icon.icon-type-lunch {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

html[data-theme='day'] .activity-strip-icon.icon-type-lunch {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}

.activity-strip-icon.icon-type-solat {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

html[data-theme='day'] .activity-strip-icon.icon-type-solat {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #7c3aed;
}

.activity-strip-icon.icon-type-short {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}

html[data-theme='day'] .activity-strip-icon.icon-type-short {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}

/* Activity text */
.activity-strip-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

html[data-theme='day'] .activity-strip-name {
  color: #1e293b;
}

.activity-strip-time {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

html[data-theme='day'] .activity-strip-time {
  color: #94a3b8;
}

/* Duration column */
.activity-strip-dur {
  font-size: 0.88rem;
  color: #94a3b8;
  white-space: nowrap;
}

html[data-theme='day'] .activity-strip-dur {
  color: #64748b;
}

/* Badge result */
.badge-result {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge-result-green {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

html[data-theme='day'] .badge-result-green {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.badge-result-red {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

html[data-theme='day'] .badge-result-red {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.badge-result-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

html[data-theme='day'] .badge-result-amber {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.badge-result-violet {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

html[data-theme='day'] .badge-result-violet {
  background: #faf5ff;
  color: #7c3aed;
  border-color: #e9d5ff;
}

.result-sub {
  font-size: 0.78rem;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Empty state */
.dash-activity-empty {
  color: #475569;
}

/* View more link */
.dash-view-more-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  white-space: nowrap;
}

html[data-theme='day'] .dash-view-more-link {
  color: #0284c7;
}

.dash-view-more-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

html[data-theme='day'] .dash-view-more-link:hover {
  color: #0369a1;
}

/* Staff dashboard polish: readable details with the existing display identity. */
.staff-dashboard .toast {
  min-width: min(360px, calc(100vw - 32px));
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.staff-dashboard .toast-body {
  padding: 14px 16px;
}

.staff-dashboard .dash-metric-label {
  font-size: 0.83rem;
}

.staff-dashboard .dash-metric-sub,
.staff-dashboard .dash-hero-status-meta {
  font-size: 0.92rem !important;
}

.staff-dashboard .break-btn-title {
  font-size: 1rem;
}

.staff-dashboard .break-btn-sub {
  font-size: 0.84rem;
}

html[data-theme='day'] .staff-dashboard .dash-hero-panel .text-light,
html[data-theme='day'] .staff-dashboard .dash-hero-panel .dash-metric-value.text-muted {
  color: #334155 !important;
}

html[data-theme='day'] .staff-dashboard .dash-hero-panel .text-warning {
  color: #a16207 !important;
}

html[data-theme='day'] .staff-dashboard .dash-hero-panel .text-accent {
  color: #0f766e !important;
}

html[data-theme='day'] .staff-dashboard .dash-hero-panel .text-white-emphasis {
  color: #0f172a !important;
}

html[data-theme='day'] .staff-dashboard .dash-hero-panel .dash-metric-sub,
html[data-theme='day'] .staff-dashboard .dash-hero-panel .dash-hero-status-meta {
  color: #475569 !important;
}

.attendance-location-choice-modal .modal-content {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.attendance-location-choice-modal .modal-header,
.attendance-location-choice-modal .modal-footer {
  border-color: var(--border);
}

.attendance-location-choice-modal .modal-title,
.attendance-location-choice-modal .modal-body {
  color: var(--text);
}

.attendance-location-choice-modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: .8;
}

html[data-theme='day'] .attendance-location-choice-modal .modal-content {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: #cbd5e1;
}

html[data-theme='day'] .attendance-location-choice-modal .modal-header,
html[data-theme='day'] .attendance-location-choice-modal .modal-footer {
  border-color: #e2e8f0;
}

html[data-theme='day'] .attendance-location-choice-modal .modal-title,
html[data-theme='day'] .attendance-location-choice-modal .modal-body {
  color: #0f172a;
}

html[data-theme='day'] .attendance-location-choice-modal .btn-close {
  filter: none;
}

/* Keep the attendance permission prompt compact and easy to use on phones. */
@media (max-width: 575.98px) {
  .attendance-location-choice-modal .modal-dialog {
    width: auto;
    max-width: none;
    margin: .75rem;
    min-height: calc(100% - 1.5rem);
  }

  .attendance-location-choice-modal .modal-content {
    max-height: 88vh;
    border-radius: 1rem;
  }

  .attendance-location-choice-modal .modal-header {
    padding: 1rem 1.1rem;
  }

  .attendance-location-choice-modal .modal-title {
    padding-right: .5rem;
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .attendance-location-choice-modal .modal-body {
    overflow-y: auto;
    padding: 1rem 1.1rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .attendance-location-choice-modal .modal-footer {
    display: grid;
    gap: .65rem;
    padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .attendance-location-choice-modal .modal-footer .btn {
    width: 100%;
    min-height: 3rem;
    margin: 0;
  }

  .attendance-location-choice-modal .modal-footer .btn-outline-secondary {
    color: var(--text);
    border-color: var(--border-strong);
  }

  .attendance-location-choice-modal .btn-close {
    flex: 0 0 auto;
    padding: .75rem;
    margin: -.5rem -.5rem -.5rem .5rem;
  }
}

.dashboard-confirm-modal .modal-content {
  background: #0b1528;
  color: #e8eef8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.dashboard-confirm-modal {
  z-index: 1060;
}

.correction-confirm-modal {
  z-index: 1060;
}

.modal-backdrop {
  z-index: 1050;
}

.dashboard-confirm-modal .modal-header,
.dashboard-confirm-modal .modal-footer {
  border-color: rgba(148, 163, 184, 0.15);
}

.dashboard-confirm-modal .modal-title {
  font-family: var(--font-ui);
  font-weight: 700;
}

.dashboard-confirm-modal .modal-body {
  color: #b8c6db;
}

html[data-theme='day'] .dashboard-confirm-modal .modal-content {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #0f172a;
  border-color: #cbd5e1;
}

html[data-theme='day'] .dashboard-confirm-modal .modal-header,
html[data-theme='day'] .dashboard-confirm-modal .modal-footer {
  border-color: #e2e8f0;
}

html[data-theme='day'] .dashboard-confirm-modal .modal-body {
  color: #475569;
}

html[data-theme='day'] .dashboard-confirm-modal .btn-close {
  filter: none;
}

.staff-dashboard .dash-hero-panel,
.staff-dashboard .dash-activity-card {
  border-top-color: rgba(148, 163, 184, 0.16);
  border-right-color: rgba(148, 163, 184, 0.16);
  border-bottom-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.staff-dashboard .dash-activity-card {
  border-left-color: rgba(148, 163, 184, 0.16);
  padding: 20px 24px 12px;
}

.staff-dashboard .dash-activity-title {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.staff-dashboard .dash-activity-header {
  gap: 12px;
}

.staff-dashboard .dash-activity-strip {
  padding: 11px 0;
  min-height: 68px;
}

.staff-dashboard .activity-strip-left,
.staff-dashboard .activity-strip-details {
  min-width: 0;
}

.staff-dashboard .activity-strip-name,
.staff-dashboard .activity-strip-meta,
.staff-dashboard .badge-result,
.staff-dashboard .dash-view-more-link {
  font-family: var(--font-body);
}

.staff-dashboard .activity-strip-name {
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.staff-dashboard .activity-strip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.staff-dashboard .activity-strip-time,
.staff-dashboard .activity-strip-dur {
  margin-top: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: #94a3b8;
}

.staff-dashboard .activity-strip-dur {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  padding-left: 12px;
}

.staff-dashboard .activity-strip-right {
  flex-shrink: 0;
}

.staff-dashboard .badge-result {
  justify-content: center;
  min-width: 120px;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.staff-dashboard .badge-result-red {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.22);
  color: #fda4af;
}

.staff-dashboard .badge-result-green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}

.staff-dashboard .result-sub.text-danger {
  color: #fda4af !important;
  font-weight: 500 !important;
}

.staff-dashboard .dash-view-more-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

html[data-theme='day'] .staff-dashboard .activity-strip-time,
html[data-theme='day'] .staff-dashboard .activity-strip-dur {
  color: #64748b;
}

html[data-theme='day'] .staff-dashboard .badge-result-red {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

html[data-theme='day'] .staff-dashboard .result-sub.text-danger {
  color: #be123c !important;
}

html[data-theme='day'] .staff-dashboard .dash-hero-panel,
html[data-theme='day'] .staff-dashboard .dash-activity-card {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

@media (max-width: 575.98px) {
  .staff-dashboard .dash-activity-card {
    padding: 16px 16px 8px;
  }

  .staff-dashboard .dash-activity-strip {
    flex-wrap: wrap;
    gap: 10px;
  }

  .staff-dashboard .activity-strip-left {
    width: 100%;
  }

  .staff-dashboard .activity-strip-right {
    margin-left: 54px !important;
  }

  .staff-dashboard .activity-strip-badge-wrap {
    text-align: left !important;
  }
}

/* Responsive: stack right side on very small screens */
@media (max-width: 480px) {
  .dash-activity-strip {
    flex-wrap: wrap;
    gap: 8px;
  }

  .activity-strip-right {
    margin-left: 50px;
    /* indent under icon */
  }
}

/* ==========================================================================
   Mobile PWA, Touch Ergonomics & Safe-Area Insets
   ========================================================================== */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}

button,
.btn,
[role="button"] {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .app-main {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .dash-hero-ready .btn-action-lg,
  .dash-hero-break .btn-action-lg,
  .btn-clock-out {
    min-height: 56px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    padding: 14px 24px;
    border-radius: 12px;
  }

  .dash-hero-ready .btn-action-lg i,
  .dash-hero-break .btn-action-lg i,
  .btn-clock-out i {
    font-size: 1.35rem;
  }

  .dash-clockout-group {
    width: 100%;
    margin-left: 0 !important;
  }

  .dash-break-actions-group {
    width: 100%;
  }

  .dash-break-actions-group .d-flex {
    display: flex !important;
    flex-direction: column;
    gap: .65rem !important;
  }

  .dash-break-actions-group .dash-btn-break {
    min-height: 4.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    width: 100%;
    padding: .85rem 1rem;
    font-size: 0.95rem;
  }

  .auth-card {
    margin: 1rem auto;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .dash-hero-break {
    padding: 1rem;
  }

  .dash-hero-break .dash-hero-status-row {
    margin-bottom: .8rem !important;
  }

  .dash-hero-break .dash-hero-status-title {
    width: 100%;
  }

  .dash-hero-break .dash-hero-status-title .h5 {
    font-size: 1rem;
  }

  .dash-hero-break .dash-hero-status-meta {
    width: 100%;
    margin-top: .2rem;
  }

  .dash-hero-break .dash-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1rem !important;
    padding: .5rem 0;
  }

  .dash-hero-break .dash-metric-value {
    font-size: 1.35rem;
  }

  .dash-hero-break .dash-metric-label {
    font-size: .7rem;
  }

  .dash-hero-break .dash-hero-action-footer {
    align-items: stretch !important;
    padding-top: .8rem !important;
  }

  .dash-hero-break .dash-hero-action-footer>div {
    order: 2;
    width: 100%;
  }

  .dash-hero-break .dash-hero-action-footer .btn-action-lg {
    order: 1;
    width: 100%;
  }
}

/* Consistent Holo Night surfaces across staff navigation pages. */
@media screen {
  html[data-theme='night'] .staff-area:not(.staff-history-page) {
    --surface: #111f33;
    --surface-solid: #111f33;
    --surface-2: #182b42;
    --border: rgba(148, 173, 204, .25);
    --border-strong: #617c9b;
    --muted: #afbed1;
  }

  html[data-theme='night'] .staff-area:not(.staff-history-page) :is(.card-soft, .dash-hero-panel, .dash-activity-card, .schedule-hero-card, .schedule-mobile-summary-card, .schedule-top-pill) {
    background: #111f33 !important;
    border-color: rgba(148, 173, 204, .25) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  }

  html[data-theme='night'] .staff-area:not(.staff-history-page) .card-header {
    background: #15263c;
    border-color: rgba(148, 173, 204, .2);
  }

  html[data-theme='night'] .staff-area:not(.staff-history-page) :is(.schedule-day-card, .leave-mobile-card, .staff-policy-break-card, .policy-disclosure, .notification-preference) {
    background: #182b42;
    border-color: #617c9b;
  }

  html[data-theme='night'] .staff-area .schedule-day-card--today {
    background: #163d40;
    border-color: #2dd4bf;
  }

  html[data-theme='night'] .staff-area :is(.schedule-day-card--off, .schedule-top-pill--off) {
    background: #28323f !important;
  }

  html[data-theme='night'] .staff-area .leave-mobile-card[data-status='pending'] {
    border-left-color: #fbbf24;
  }

  html[data-theme='night'] .staff-area .leave-mobile-card[data-status='approved'] {
    border-left-color: #6ee7b7;
  }

  html[data-theme='night'] .staff-area .leave-mobile-card[data-status='rejected'] {
    border-left-color: #fb7185;
  }

  html[data-theme='night'] .staff-area:not(.staff-history-page) :is(.text-muted, .schedule-top-pill__sub) {
    color: #afbed1 !important;
  }

  html[data-theme='night'] .staff-area:not(.staff-history-page) .text-success {
    color: #6ee7b7 !important;
  }

  html[data-theme='night'] .app-content form[method='get'] [data-auto-filter-hint]+a {
    color: #5eead4;
    text-decoration-color: currentColor;
    font-weight: 600;
  }

  html[data-theme='night'] .app-content form[method='get'] [data-auto-filter-hint]+a:is(:hover, :focus-visible) {
    color: #99f6e4;
  }

  html[data-theme='night'] .staff-leave-page .profile-balance-card {
    background: #111f33;
    border-color: rgba(148, 173, 204, .25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  }
  html[data-theme='night'] .staff-leave-page .profile-balance-grid {
    background: #111f33;
    border-color: rgba(148, 173, 204, .25);
  }

  html[data-theme='night'] .staff-leave-page .profile-balance-card__header {
    color: #cbd5e1;
  }

  html[data-theme='night'] .staff-leave-page .profile-balance-card__number {
    color: #f8fafc;
  }

  html[data-theme='night'] .staff-leave-page :is(.profile-balance-card__unit, .profile-balance-card__description) {
    color: #afbed1;
  }

  html[data-theme='night'] .staff-leave-page .profile-balance-card:first-child .profile-balance-card__icon {
    background: rgba(16, 185, 129, .15) !important;
    color: #6ee7b7 !important;
  }

  html[data-theme='night'] .staff-leave-page .profile-balance-card:nth-child(2) .profile-balance-card__icon {
    background: rgba(245, 158, 11, .15) !important;
    color: #fbbf24 !important;
  }
}

@media (min-width: 992px) {
  .staff-policy-page .staff-policy-leave-columns {
    display: grid;
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 4rem;
    gap: 1rem;
    width: 100%;
    padding: .75rem .25rem .55rem;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .staff-policy-page .staff-policy-leave-columns span:last-child {
    text-align: center;
  }

  .staff-policy-page .policy-disclosure {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }

  html[data-theme='night'] .staff-policy-page .policy-disclosure {
    border-color: #344a63;
    background: transparent;
  }

  .staff-policy-page .policy-disclosure:last-of-type {
    border-bottom: 1px solid var(--border);
  }

  .staff-policy-page .policy-disclosure summary {
    display: grid;
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 4rem;
    align-items: center;
    gap: 1rem;
    padding: .85rem .25rem;
    background: transparent;
  }

  .staff-policy-page .policy-disclosure summary:hover,
  .staff-policy-page .policy-disclosure[open] summary {
    background: rgba(148, 173, 204, .055);
  }

  .staff-policy-page .policy-disclosure summary>.fw-semibold {
    color: var(--text);
    font-weight: 600 !important;
  }


  .staff-policy-page .policy-disclosure summary::after {
    grid-column: 3;
    justify-self: center;
    margin-left: 0;
    color: var(--accent);
    font-size: 1.1rem;
  }

  .staff-policy-page .policy-disclosure[open] summary::after {
    content: '\2303';
  }

  .staff-policy-page .policy-entitlement {
    justify-self: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    font-size: .92rem;
    font-weight: 500;
  }

  .staff-policy-page .policy-disclosure-body {
    padding: .2rem .25rem 1rem;
    border-top: 0;
  }

  html[data-theme='night'] .staff-policy-page .policy-entitlement {
    color: #72c9c1;
  }

  .staff-policy-page .policy-disclosure-body .policy-leave-paragraph {
    display: none;
  }

  .staff-policy-page .policy-disclosure-body .staff-policy-leave-bullets {
    display: grid;
    gap: .5rem;
    max-width: 82ch;
    margin: 0;
    padding-left: 1.35rem;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: .9rem;
    line-height: 1.55;
  }

  .staff-policy-page .policy-disclosure-body .staff-policy-leave-bullets li::marker {
    color: var(--accent);
  }

  .staff-policy-page .policy-disclosure-body>ul.mt-2 {
    max-width: 82ch;
    padding-left: 1.35rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: .9rem;
    line-height: 1.55;
  }
}

/* Keep staff creation focused on sharing credentials and finishing. */
.staff-policy-page .policy-quick-details {
  width: 100%;
  padding: .25rem 0 .35rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (min-width: 992px) {
  .staff-policy-page .policy-quick-details {
    /* Let the expanded section use the card width. Its readable children
       below provide the intentional measure for dense policy content. */
    width: 100%;
  }
}

.staff-policy-page .policy-quick-details h3 {
  margin: .7rem 0 .45rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.staff-policy-page .policy-quick-tiers {
  display: grid;
  width: 100%;
  margin: 0 0 .85rem;
}

.staff-policy-page .policy-quick-tiers>div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: .42rem 0;
  border-bottom: 1px solid var(--border);
}

.staff-policy-page .policy-quick-tiers dt {
  color: var(--text);
  font-weight: 500;
}

.staff-policy-page .policy-quick-tiers dd {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.staff-policy-page .policy-quick-holiday {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: .5rem 0 .9rem;
}

.staff-policy-page .policy-quick-holiday strong {
  color: var(--accent);
}

.staff-policy-page .policy-quick-holiday span {
  color: var(--text);
}

.staff-policy-page .policy-quick-notes {
  display: grid;
  width: 100%;
  gap: .4rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: .87rem;
  line-height: 1.5;
}

@media (max-width: 991.98px) {

  .staff-policy-page .policy-quick-tiers,
  .staff-policy-page .policy-quick-notes {
    width: 100%;
  }
}

.staff-policy-page .policy-quick-notes li::marker {
  color: var(--accent);
}

.staff-policy-page .policy-disclosure .policy-legal-details {
  width: 100%;
  margin-top: .85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 991.98px) {
  .staff-policy-page .policy-disclosure .policy-legal-details {
    width: 100%;
  }
}

.staff-policy-page .policy-disclosure .policy-legal-details>summary {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem 0 .2rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.staff-policy-page .policy-disclosure .policy-legal-details>summary::after {
  content: '\25B8';
  margin-left: 0;
  color: inherit;
  font-size: 1rem;
}

.staff-policy-page .policy-disclosure .policy-legal-details[open]>summary::after {
  content: '\25BE';
}

.staff-policy-page .policy-legal-details .policy-legal-hide,
.staff-policy-page .policy-legal-details:not([open])>.policy-legal-copy {
  display: none;
}

.staff-policy-page .policy-legal-details[open] .policy-legal-view {
  display: none;
}

.staff-policy-page .policy-legal-details[open] .policy-legal-hide {
  display: inline;
}

.staff-policy-page .policy-legal-copy {
  padding: .45rem 0 .25rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

.staff-policy-page .policy-legal-copy p {
  margin: 0;
}

.staff-policy-page .policy-legal-copy ul {
  margin: .6rem 0 0;
  padding-left: 1.25rem;
}

.admin-staff-form-page .topbar-ticker {
  display: none !important;
}

.admin-staff-form-page .topbar-title {
  max-width: none;
  flex-shrink: 0;
}

.staff-credentials-handoff {
  border-left: 3px solid #34d399;
}

.staff-credentials-handoff .bg-dark {
  background: var(--surface-2) !important;
  border-color: var(--border-strong) !important;
}

.staff-credentials-handoff code {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
}

.credential-value-panel {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .45) !important;
}

.credential-value-panel .text-muted { color: #aebed3 !important; }
.credential-template {
  background: #20252b;
  border-color: rgba(148, 163, 184, .5) !important;
  color: #b9d5ff;
}

html[data-theme='day'] .credential-value-panel {
  background: #f1f5f9;
  border-color: #cbd5e1 !important;
}

html[data-theme='day'] .credential-value-panel .text-muted { color: #475569 !important; }
html[data-theme='day'] .credential-template {
  background: #f8fafc;
  border-color: #cbd5e1 !important;
  color: #334155;
}

.email-status {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
}

.email-status--verified {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.email-status--pending {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

/* Staff profile readability and consistent card rhythm. */
.staff-profile-page .card-soft > .card-body,
.staff-profile-page .staff-profile-card > .card-body {
  padding: 1rem 1.1rem;
}
.staff-profile-page .staff-profile-card:first-of-type .form-hint,
.staff-profile-page .staff-profile-card:first-of-type .small {
  color: #4b5563;
}
.staff-profile-page .staff-profile-row .form-label i {
  margin-right: .4rem !important;
}
.staff-profile-page .app-content {
  padding-bottom: 2rem;
}
html[data-theme='night'] .staff-profile-page .staff-profile-card:first-of-type .form-hint,
html[data-theme='night'] .staff-profile-page .staff-profile-card:first-of-type .small {
  color: #cbd5e1;
}

html[data-theme='day'] .email-status--verified {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.4);
}

html[data-theme='day'] .email-status--pending {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.account-access-heading {
  font-family: var(--font-display, inherit);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .35rem !important;
}

.staff-status-label {
  color: rgba(226, 232, 240, 0.85);
  font-weight: 500;
}

html[data-theme='day'] .staff-status-label {
  color: var(--muted);
}

.staff-reset-recovery,
.staff-verify-recovery {
  border-radius: var(--radius, 12px);
  min-height: 100%;
}

.staff-reset-recovery .card-header,
.staff-verify-recovery .card-header {
  padding: .75rem 1rem;
  font-size: .92rem;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.staff-reset-recovery .card-body,
.staff-verify-recovery .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.staff-reset-recovery .form-hint,
.staff-verify-recovery .form-hint {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
  min-height: 2.3rem;
  display: flex;
  align-items: center;
}

.staff-reset-recovery .btn,
.staff-verify-recovery .btn {
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.staff-reset-recovery .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}

.staff-reset-recovery .btn-outline-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme='day'] .staff-reset-recovery .btn-outline-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.staff-advanced-recovery {
  border-radius: var(--radius, 12px);
  border-color: rgba(245, 158, 11, .42);
}

.staff-advanced-recovery .card-header {
  padding: .75rem 1rem;
  font-size: .92rem;
  font-weight: 600;
}

.staff-advanced-recovery .card-body {
  padding: 1rem;
}

.staff-advanced-recovery .form-hint {
  font-size: .8rem;
  line-height: 1.4;
}

#sidebar_template_preview {
  max-height: none;
  overflow: auto;
  font-size: .8rem;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.42) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: rgba(226, 232, 240, 0.75) !important;
}

html[data-theme='day'] #sidebar_template_preview {
  background: rgba(241, 245, 249, 0.7) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #334155 !important;
}

.staff-reset-handoff {
  padding: 1.25rem;
  border: 1px solid rgba(251, 191, 36, .35);
  border-radius: var(--radius, 12px);
  background: rgba(12, 20, 36, .62);
  color: #fde68a;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.staff-reset-handoff__message {
  padding: 1rem;
  border: 1px solid rgba(251, 191, 36, .25);
  border-radius: .5rem;
  background: rgba(12, 20, 36, .35);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

html[data-theme='day'] .staff-reset-handoff {
  background: rgba(255, 251, 235, .72);
  color: #78350f;
}

html[data-theme='day'] .staff-reset-handoff__message {
  background: rgba(255, 255, 255, .48);
}

@media (max-width: 767.98px) {

  .staff-breaks-mobile-feed .staff-break-record__heading,
  .staff-breaks-mobile-feed .staff-break-record__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
  }

  .staff-breaks-mobile-feed .staff-break-record__heading {
    justify-content: space-between;
    margin-bottom: .5rem;
  }

  .staff-breaks-mobile-feed .staff-break-record__details {
    line-height: 1.5;
  }

  .staff-breaks-mobile-feed .staff-break-record__duration {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem .75rem;
    margin-top: .5rem;
    padding-top: .45rem;
    border-top: 1px solid var(--border);
  }

  .staff-breaks-mobile-feed .staff-break-record__duration strong {
    color: var(--text);
    white-space: nowrap;
  }

  html[data-theme='day'] .staff-history-page .staff-breaks-mobile-feed .staff-break-record.border-warning-subtle {
    background: #fff !important;
    border-color: #8ba4be !important;
    border-left: 3px solid #c58a17 !important;
  }

  html[data-theme='night'] .staff-history-page .staff-breaks-mobile-feed .staff-break-record.border-warning-subtle {
    background: #182b42 !important;
    border-color: #617c9b !important;
    border-left: 3px solid #d99d24 !important;
  }

  .staff-dashboard .dash-activity-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 0;
  }

  .staff-dashboard .activity-strip-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    margin-top: .15rem;
    font-size: 1.05rem;
  }

  .staff-dashboard .activity-strip-primary {
    flex-direction: column;
    align-items: flex-start !important;
    gap: .15rem !important;
  }

  .staff-dashboard .activity-strip-name {
    font-size: .95rem;
    line-height: 1.4;
  }

  .staff-dashboard .activity-strip-time {
    font-family: var(--font-body) !important;
    font-size: .8rem;
    line-height: 1.5;
    white-space: normal;
  }

  .staff-dashboard .activity-strip-meta {
    font-size: .8rem;
    line-height: 1.5;
    margin-top: .3rem !important;
  }
}

@media (min-width: 768px) {
  .staff-history-page .attendance-filter-card .card-body {
    padding: 0.85rem 1.15rem;
  }

  .staff-history-page .attendance-filter-card .date-presets {
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .staff-history-page .attendance-filter-card .form-label {
    margin-bottom: 0.2rem;
  }

  .staff-history-page .attendance-filter-card form.row {
    --bs-gutter-y: 0.25rem;
  }
}

/* Login utilities: two toggles above the centered language selector on phones. */
@media (max-width: 575.98px) {
  .auth-page.login-page .auth-shell {
    overflow: visible;
  }

  .auth-page.login-page .auth-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 3px;
    margin-inline: 16px;
    padding: 16px 0 0;
    z-index: 2;
  }

  .auth-page.login-page .auth-top>.globe-toggle,
  .auth-page.login-page .auth-top>.theme-toggle {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    gap: .4rem;
    padding: .45rem .5rem;
  }

  .auth-page.login-page .auth-top>.lang-switcher {
    position: relative;
    z-index: 3;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .auth-page.login-page .auth-top>.lang-switcher>.dropdown-menu {
    z-index: 2000;
  }

  .auth-page.login-page .auth-top>.lang-switcher>.btn {
    min-height: 44px;
    padding-inline: .65rem;
  }

  .auth-page.login-page .auth-card {
    width: calc(100% - 32px);
    margin: 30px auto 16px;
  }

  .auth-page.login-page .form-check-label {
    max-width: calc(100% - 1.75rem);
    line-height: 1.4;
  }
}

/* Login language menu: clear surface and comfortable tap targets. */
.auth-page.login-page .auth-top>.lang-switcher>.dropdown-menu {
  min-width: 11rem;
  padding: .35rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
}

.auth-page.login-page .auth-top>.lang-switcher>.dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: .6rem .75rem;
  border-radius: calc(var(--radius-sm) - 2px);
  line-height: 1.35;
}

.auth-page.login-page .auth-top>.lang-switcher>.dropdown-menu .dropdown-item:active,
.auth-page.login-page .auth-top>.lang-switcher>.dropdown-menu .dropdown-item:focus-visible {
  background: var(--accent-dim);
  color: var(--accent);
  outline: none;
}

@media (max-width: 575.98px) {
  .auth-page.login-page .auth-top>.lang-switcher>.dropdown-menu {
    min-width: 11.5rem;
  }
}

/* Final mobile dashboard overrides keep the compact treatment ahead of legacy rules. */
@media (max-width: 767.98px) {
  .staff-dashboard .app-content {
    padding: .75rem .75rem 1rem;
  }

  .staff-dashboard .dash-primary-layout>.dash-hero-panel {
    margin-bottom: .75rem !important;
  }

  .staff-dashboard .dash-hero-completed {
    padding: 14px 16px;
  }

  .staff-dashboard .dash-hero-completed .dash-hero-status-row {
    margin-bottom: .35rem !important;
  }

  .staff-dashboard .dash-hero-completed .mobile-summary-span {
    margin-bottom: .75rem !important;
    line-height: 1.25;
  }

  .staff-dashboard .dash-mobile-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }

  .staff-dashboard .mobile-metric-col {
    min-width: 0;
  }

  .staff-dashboard .mobile-metric-label {
    font-size: .68rem;
    line-height: 1.2;
  }

  .staff-dashboard .mobile-metric-val {
    line-height: 1.25;
  }

  .staff-dashboard .dash-activity-card {
    margin-top: .75rem;
    padding: 14px 14px 8px;
  }

  .staff-dashboard .dash-activity-header {
    margin-bottom: .35rem !important;
    padding-bottom: .55rem !important;
  }

  .staff-dashboard .dash-activity-strip {
    padding: 8px 0;
    min-height: 0;
    gap: 6px;
  }

  .staff-dashboard .activity-strip-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .staff-dashboard .activity-strip-left {
    gap: .65rem !important;
  }

  .staff-dashboard .activity-strip-meta {
    margin-top: 2px;
    gap: 2px 8px;
  }

  .staff-dashboard .activity-strip-badge-line {
    margin-top: .35rem !important;
  }

  .staff-dashboard .badge-result {
    padding: 4px 8px;
    font-size: .66rem;
  }

  .staff-dashboard .app-footer {
    padding: .55rem .75rem;
    font-size: .72rem;
  }
}

/* Attendance history mobile cards: fixed hierarchy and two-column metrics. */
@media (max-width: 767.98px) {
  .staff-history-page .staff-attendance-mobile-feed {
    padding: .75rem !important;
  }

  .staff-history-page .attendance-mobile-record-card {
    margin-bottom: .7rem !important;
    padding: 10px 12px !important;
    overflow: hidden;
  }

  .staff-history-page .attendance-mobile-record-card>.d-flex.align-items-center {
    min-height: 1.7rem;
    gap: .5rem;
  }

  .staff-history-page .attendance-mobile-record-card>.d-flex.align-items-center>span {
    min-width: 0;
    line-height: 1.3;
  }

  .staff-history-page .attendance-mobile-record-card>.d-flex.align-items-baseline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    margin: .35rem 0 0 !important;
    line-height: 1.35;
  }

  .staff-history-page .attendance-mobile-record-card>.d-flex.align-items-baseline>span:first-child {
    min-width: 0;
    white-space: nowrap;
  }

  .staff-history-page .attendance-mobile-record-card>.d-flex.align-items-baseline>span:last-child {
    white-space: nowrap;
    text-align: right;
  }

  .staff-history-page .attendance-mobile-record-card>.border-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
    margin-top: .55rem !important;
    padding-top: .55rem !important;
    line-height: 1.3;
  }

  .staff-history-page .attendance-mobile-record-card>.border-top>div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .12rem;
  }

  .staff-history-page .attendance-mobile-record-card>.border-top>div:last-child {
    text-align: right;
  }

  .staff-history-page .attendance-mobile-record-card .status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .2rem .45rem;
    border-radius: .35rem;
    font-size: .64rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .staff-history-page .attendance-mobile-record-card .badge-wfh {
    opacity: .8;
  }

  .staff-history-page .attendance-mobile-record-card .badge-off {
    font-size: .56rem;
    opacity: .82;
  }

  .staff-history-page .attendance-mobile-record-card .attendance-today-label {
    vertical-align: middle;
    margin-top: -.05rem;
  }

  .staff-history-page .attendance-mobile-record-card>.d-flex.align-items-center>div {
    margin-right: 2px;
  }

  .staff-history-page .attendance-filter-card .date-preset {
    min-height: 2.45rem;
  }

  .staff-history-page .attendance-filter-card .form-hint {
    font-size: .72rem;
  }

  .staff-history-page>.card-soft>.card-header {
    padding: .7rem .85rem;
  }
}

/* Break history mobile cards: compact three-part scan hierarchy. */
@media (max-width: 767.98px) {
  .staff-history-page .staff-breaks-mobile-feed {
    padding: .75rem !important;
  }

  .staff-history-page .staff-breaks-mobile-feed .staff-break-record {
    margin-bottom: .7rem !important;
    padding: 10px 12px !important;
    overflow: hidden;
  }

  .staff-breaks-mobile-feed .staff-break-record__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: .55rem;
    margin-bottom: .45rem;
  }

  .staff-breaks-mobile-feed .staff-break-record__title {
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .staff-breaks-mobile-feed .staff-break-record__status {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
  }

  .staff-breaks-mobile-feed .staff-break-record__status .status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .2rem .45rem;
    border-radius: .35rem;
    font-size: .64rem;
    line-height: 1.1;
  }

  .staff-breaks-mobile-feed .staff-break-record__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: .5rem;
    margin: 0;
    line-height: 1.35;
  }

  .staff-breaks-mobile-feed .staff-break-record__details>span {
    min-width: 0;
  }

  .staff-breaks-mobile-feed .staff-break-record__details>span:last-child {
    text-align: right;
    white-space: nowrap;
  }

  .staff-breaks-mobile-feed .staff-break-record__duration {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px solid var(--border);
    line-height: 1.3;
  }

  .staff-breaks-mobile-feed .staff-break-record__duration>span {
    min-width: 0;
  }

  .staff-breaks-mobile-feed .staff-break-record__duration>span:last-child {
    text-align: right;
  }

  .staff-breaks-mobile-feed .staff-break-record__duration strong {
    color: var(--text);
    white-space: nowrap;
  }

  .staff-breaks-mobile-feed .staff-break-record.border-warning-subtle .staff-break-record__status {
    color: #c2410c;
  }
}

/* Schedule mobile polish: readable day-card hierarchy without desktop changes. */
@media (max-width: 767.98px) {
  .page-schedule .schedule-hero-card>.card-header {
    padding: .75rem .85rem !important;
  }

  .page-schedule .schedule-hero-card>.card-body {
    padding: .75rem !important;
  }

  .page-schedule .schedule-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .page-schedule .schedule-day-card {
    min-height: 150px;
    padding: .78rem .7rem;
  }

  .page-schedule .schedule-day-header {
    min-height: 1.8rem;
    margin-bottom: .55rem;
    padding-bottom: .45rem;
  }

  .page-schedule .schedule-day-name {
    font-size: .8rem;
  }

  .page-schedule .schedule-day-date-str {
    font-size: .72rem;
    white-space: nowrap;
  }

  .page-schedule .schedule-today-pill {
    padding: .18rem .4rem;
    font-size: .62rem;
    line-height: 1.2;
  }

  .page-schedule .schedule-day-body {
    justify-content: flex-start;
    gap: .5rem;
    padding: .2rem 0 0;
  }

  .page-schedule .schedule-state-badge {
    max-width: 100%;
    padding: .3rem .45rem;
    font-size: .62rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .page-schedule .schedule-actual-time {
    max-width: 100%;
    font-size: .7rem;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .page-schedule .schedule-day-card--off .schedule-state-badge {
    font-size: .58rem;
    opacity: .82;
  }

  .page-schedule .schedule-week-nav .btn-group .btn {
    min-height: 2.7rem;
  }
}

@media (max-width: 360px) {
  .page-schedule .schedule-calendar-grid {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .page-schedule .schedule-day-card {
    min-height: 132px;
  }
}

/* Leave requests: compact mobile card hierarchy and readable feedback. */
@media (max-width: 767.98px) {
  .staff-area .leave-mobile-list {
    gap: .7rem !important;
  }

  .staff-area .leave-mobile-card {
    min-width: 0;
    padding: .75rem !important;
  }

  .staff-area .leave-mobile-card> :first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start !important;
    gap: .5rem;
    margin-bottom: .65rem !important;
  }

  .staff-area .leave-mobile-card> :first-child> :first-child {
    min-width: 0;
    align-items: flex-start !important;
  }

  .staff-area .leave-mobile-card> :first-child> :first-child> :last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .staff-area .leave-mobile-card> :first-child> :last-child {
    text-align: right;
  }

  .staff-area .leave-mobile-card .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.6rem;
    padding: .25rem .5rem;
    border-radius: .3rem;
    font-size: .68rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .staff-area .leave-mobile-reason,
  .staff-area .leave-mobile-admin-note {
    margin-bottom: .65rem !important;
    padding: .55rem .65rem !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .staff-area .leave-mobile-admin-note> :first-child {
    margin-bottom: .25rem !important;
  }

  .staff-area .leave-mobile-card> :last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .staff-area .leave-mobile-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .staff-area .leave-mobile-stat-card>span:last-child {
    line-height: 1.2;
  }

  .staff-area .leave-mobile-stat-card__pending-count {
    font-size: 1.25rem !important;
  }

  .staff-area .d-md-none>.btn[data-bs-target="#newRequestCard"] {
    min-height: 44px;
  }
}

/* Leave page mobile atmosphere: protect the content stack while keeping edge ambience. */
@media (max-width: 767.98px) {
  .staff-leave-page .app-content {
    position: relative;
    isolation: isolate;
  }

  .staff-leave-page .app-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 72% at 50% 30%, rgba(8, 18, 34, .9) 0%, rgba(8, 18, 34, .72) 54%, rgba(8, 18, 34, .18) 100%);
  }

  .staff-leave-page .app-content>* {
    position: relative;
    z-index: 1;
  }

  html[data-theme='day'] .staff-leave-page .app-content::before {
    background: radial-gradient(ellipse 78% 72% at 50% 30%, rgba(241, 245, 249, .92) 0%, rgba(241, 245, 249, .72) 54%, rgba(241, 245, 249, .18) 100%);
  }
}

/* Profile mobile polish: compact cards and a calmer central content zone. */
@media (max-width: 767.98px) {
  .staff-profile-page .app-content {
    position: relative;
    isolation: isolate;
  }

  .staff-profile-page .app-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 78% 72% at 50% 28%, rgba(8, 18, 34, .9) 0%, rgba(8, 18, 34, .72) 54%, rgba(8, 18, 34, .16) 100%);
  }

  .staff-profile-page .app-content {
    padding-bottom: 3rem;
  }

  .staff-profile-page .app-content>* {
    position: relative;
    z-index: 1;
  }

  html[data-theme='day'] .staff-profile-page .app-content::before {
    background: radial-gradient(ellipse 78% 72% at 50% 28%, rgba(241, 245, 249, .92) 0%, rgba(241, 245, 249, .72) 54%, rgba(241, 245, 249, .16) 100%);
  }

  .staff-profile-page .app-content>.row:first-of-type {
    gap: .7rem !important;
    margin-bottom: .75rem !important;
  }

  .staff-profile-page .row:first-of-type .card-soft {
    padding: .75rem !important;
  }

  .staff-profile-page .balance-card-title {
    font-size: .72rem;
    line-height: 1.25;
  }

  .staff-profile-page .row:first-of-type .h3 {
    font-size: 1.35rem;
    margin-top: .3rem !important;
  }

  .staff-profile-page .staff-profile-card .card-body {
    padding: .8rem !important;
  }

  .staff-profile-page .staff-profile-card .card-header {
    padding: .7rem .8rem;
  }

  .staff-profile-page .staff-profile-row {
    gap: .75rem !important;
  }

  .staff-profile-page .staff-profile-row .row.g-2>[class*='col-'] {
    width: 100%;
  }

  .staff-profile-page .staff-profile-row .row.g-2>.col-6:nth-child(1),
  .staff-profile-page .staff-profile-row .row.g-2>.col-6:nth-child(2),
  .staff-profile-page .staff-profile-row .row.g-2>.col-6:nth-last-child(2),
  .staff-profile-page .staff-profile-row .row.g-2>.col-6:last-child {
    width: 50%;
  }

  .staff-profile-page .staff-profile-row label {
    margin-bottom: .25rem;
    font-size: .78rem;
  }

  .staff-profile-page .staff-profile-row .form-control {
    min-width: 0;
  }

  .staff-profile-page .staff-profile-row .form-hint {
    line-height: 1.35;
  }

  .staff-profile-page .staff-profile-row .btn-outline-info {
    margin-top: .15rem;
  }

  .staff-profile-page .staff-profile-actions {
    padding-top: .85rem !important;
  }

  .staff-profile-page .staff-profile-actions .btn {
    min-height: 44px;
    width: 100%;
  }

  .staff-profile-page .staff-profile-row .mb-3 {
    margin-bottom: .7rem !important;
  }

  .staff-profile-page .notification-settings-card,
  .staff-profile-page .notification-settings-card+.staff-profile-card {
    margin-top: .75rem !important;
  }
}

@media (max-width: 379.98px) {
  .staff-profile-page .staff-profile-row .row.g-2>.col-6 {
    width: 100%;
  }
}

/* Final profile mobile polish: spacing and control alignment only. */
@media (max-width: 767.98px) {
  .staff-profile-page .app-content::before {
    background: radial-gradient(ellipse 78% 72% at 50% 28%, rgba(8, 18, 34, .84) 0%, rgba(8, 18, 34, .66) 54%, rgba(8, 18, 34, .14) 100%);
  }

  html[data-theme='day'] .staff-profile-page .app-content::before {
    background: radial-gradient(ellipse 78% 72% at 50% 28%, rgba(241, 245, 249, .86) 0%, rgba(241, 245, 249, .66) 54%, rgba(241, 245, 249, .14) 100%);
  }

  .staff-profile-page .app-content>.row:first-of-type .card-soft {
    padding: .65rem .75rem !important;
  }

  .staff-profile-page .notification-preference {
    min-height: 2.5rem;
    padding-block: .35rem;
    align-items: center;
  }

  .staff-profile-page .notification-preference>span:first-child {
    line-height: 1.25;
  }

  .staff-profile-page .notification-checkbox,
  .staff-profile-page .notification-switch {
    align-self: center;
  }

  .staff-profile-page .notification-settings-card+.staff-profile-card .card-body>.d-flex {
    align-items: center;
  }

  .staff-profile-page .notification-settings-card+.staff-profile-card .notification-preference {
    min-height: 2.75rem;
  }
}

/* Keep attendance location controls compact on narrow screens. */
@media (max-width: 575.98px) {
  .staff-profile-page .attendance-location-card {
    margin-bottom: .55rem !important;
  }

  .staff-profile-page .attendance-location-card .card-header {
    padding: .55rem .7rem !important;
  }

  .staff-profile-page .attendance-location-card .card-body {
    padding: .55rem .7rem .45rem !important;
  }

  .staff-profile-page .attendance-location-description {
    margin-bottom: .55rem !important;
    line-height: 1.35;
  }

  .staff-profile-page .attendance-location-state {
    display: none;
  }

  .staff-profile-page .attendance-location-toggle {
    min-height: 2.75rem;
    padding: .35rem .55rem;
    gap: .4rem;
  }

  .staff-profile-page .attendance-location-toggle>span:first-child {
    min-width: 0;
  }

  .staff-profile-page .attendance-location-toggle-control {
    margin-left: auto;
    flex-shrink: 0;
  }

  .staff-profile-page .attendance-browser-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .5rem;
  }

  .staff-profile-page .attendance-permission-badge {
    margin-left: 0;
    flex-shrink: 0;
  }

  .staff-profile-page .attendance-location-help {
    margin-top: .4rem !important;
  }

  .staff-profile-page .attendance-location-help summary {
    min-height: 2.5rem;
    padding: .4rem 0;
  }
}

/* Restore balanced breathing room in the two mobile profile summary cards. */
@media (max-width: 767.98px) {
  .staff-profile-page .app-content>.row:first-of-type .card-soft {
    padding: .8rem .75rem !important;
  }

  .staff-profile-page .app-content>.row:first-of-type .card-soft .small {
    margin-top: .18rem;
  }

  .staff-profile-page .app-content>.row:first-of-type .card-soft .h3 {
    margin-top: .42rem !important;
  }
}

/* Admin dashboard: compact mobile overview and record cards. */
.admin-dashboard .dashboard-attendance-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .admin-dashboard .app-content {
    min-width: 0;
    padding: .75rem;
  }

  .admin-dashboard .chrono-command {
    position: relative;
    z-index: 1;
    margin-bottom: .75rem !important;
  }

  .admin-dashboard .dash-admin-header {
    display: grid !important;
    gap: .75rem !important;
    margin-bottom: .8rem !important;
  }

  .admin-dashboard .dash-admin-heading .chrono-command__sub {
    font-size: .8rem;
  }

  .admin-dashboard .dash-admin-heading .chrono-command__title {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .admin-dashboard .dash-admin-heading>.text-muted {
    line-height: 1.35;
  }

  .admin-dashboard .dash-admin-filter {
    display: grid !important;
    gap: .55rem !important;
    min-width: 0;
  }

  .admin-dashboard .dash-admin-filter .date-presets--compact,
  .admin-dashboard .dash-admin-date-field {
    min-width: 0;
    width: 100%;
  }

  .admin-dashboard .dash-admin-filter .date-presets__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
  }

  .admin-dashboard .dash-admin-filter .date-preset {
    min-width: 0;
    width: 100%;
    padding-inline: .25rem;
    text-align: center;
    white-space: nowrap;
    font-size: .78rem;
  }

  .admin-dashboard .dash-admin-date-field .form-control {
    width: 100%;
    min-width: 0;
  }

  .admin-dashboard .dash-admin-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-width: 0;
  }

  .admin-dashboard .dash-admin-filter-footer .form-hint {
    font-size: .75rem;
  }

  .admin-dashboard .dash-admin-filter-footer a {
    flex: 0 0 auto;
    font-size: .75rem;
    white-space: nowrap;
  }

  .admin-dashboard .chrono-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
    margin-top: .15rem;
    margin-bottom: .75rem;
  }

  .admin-dashboard .chrono-ring {
    min-width: 0;
    min-height: auto;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--surface) 92%, #08111d);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    text-align: left;
  }

  .admin-dashboard .chrono-ring__gauge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    margin: 0;
    min-width: 0;
  }

  .admin-dashboard .chrono-ring__svg {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    flex-shrink: 0;
    display: block;
    transform: rotate(-90deg);
  }

  .admin-dashboard .chrono-ring__value {
    margin-left: auto;
    font-size: clamp(1.2rem, 4vw, 1.45rem);
    font-weight: 700;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
    white-space: nowrap;
    color: #ffffff;
    min-width: 0;
  }

  .admin-dashboard .chrono-ring__label {
    min-height: 1.45rem;
    margin-top: 0;
    font-family: var(--font-ui);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    word-break: break-word;
  }

  .admin-dashboard .chrono-ring--notclocked {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 8px 12px;
    gap: 8px;
  }

  .admin-dashboard .chrono-ring--notclocked .chrono-ring__gauge {
    display: contents;
  }

  .admin-dashboard .chrono-ring--notclocked .chrono-ring__svg {
    order: 1;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .admin-dashboard .chrono-ring--notclocked .chrono-ring__label {
    order: 2;
    min-height: 0;
    margin: 0 0 0 10px;
    align-self: center;
    font-size: .74rem;
    white-space: nowrap;
  }

  .admin-dashboard .chrono-ring--notclocked .chrono-ring__value {
    order: 3;
    margin-left: auto;
    align-self: center;
    font-size: clamp(1.2rem, 4vw, 1.45rem);
  }

  @media (max-width: 360px) {
    .admin-dashboard .chrono-rings {
      gap: .5rem;
    }

    .admin-dashboard .chrono-ring {
      padding: 7px 10px;
      gap: 3px;
    }

    .admin-dashboard .chrono-ring__svg {
      width: 34px;
      height: 34px;
      min-width: 34px;
      min-height: 34px;
    }

    .admin-dashboard .chrono-ring__value {
      font-size: 1.15rem;
    }

    .admin-dashboard .chrono-ring__label {
      font-size: .66rem;
      min-height: 1.35rem;
    }

    .admin-dashboard .chrono-ring--notclocked {
      min-height: 48px;
      padding: 7px 10px;
      gap: 6px;
    }

    .admin-dashboard .chrono-ring--notclocked .chrono-ring__svg {
      width: 34px;
      height: 34px;
      min-width: 34px;
      min-height: 34px;
    }

    .admin-dashboard .chrono-ring--notclocked .chrono-ring__label {
      font-size: .7rem;
      margin-left: 8px;
    }

    .admin-dashboard .chrono-ring--notclocked .chrono-ring__value {
      font-size: 1.15rem;
    }
  }

  .admin-dashboard .hud-frame {
    position: relative;
    z-index: 1;
    min-width: 0;
    background: color-mix(in srgb, var(--surface) 94%, #08111d);
  }

  .admin-dashboard .daily-attendance-card-header {
    flex-wrap: nowrap;
    gap: .5rem;
    padding: .7rem .85rem !important;
  }

  .admin-dashboard .daily-attendance-header-title {
    min-width: 0;
    font-size: .83rem;
    line-height: 1.25;
  }

  .admin-dashboard .daily-attendance-header-action {
    flex: 0 0 auto;
  }

  .admin-dashboard .daily-attendance-header-action .btn {
    font-size: .7rem;
    padding: .25rem .45rem;
    white-space: nowrap;
  }

  .admin-dashboard .dashboard-attendance-desktop {
    display: none;
  }

  .admin-dashboard .dashboard-attendance-mobile {
    display: grid;
    gap: .65rem;
    padding: .7rem;
  }

  .admin-dashboard .dashboard-staff-card {
    min-width: 0;
    padding: .7rem .8rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, #64748b);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 97%, #08111d);
  }

  .admin-dashboard .dashboard-staff-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem .7rem;
    min-width: 0;
  }

  .admin-dashboard .dashboard-staff-card__name {
    flex: 1 1 9rem;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .admin-dashboard .dashboard-staff-card__status {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .admin-dashboard .dashboard-staff-card__status {
    align-self: center;
  }

  .admin-dashboard .dashboard-staff-card__status .badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .admin-dashboard .dashboard-staff-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem .85rem;
    margin: .65rem 0;
  }

  .admin-dashboard .dashboard-staff-card__metrics>div {
    min-width: 0;
  }

  .admin-dashboard .dashboard-staff-card__metrics span {
    display: block;
    color: color-mix(in srgb, var(--muted) 72%, #e2e8f0);
    font-size: .72rem;
    line-height: 1.25;
  }

  .admin-dashboard .dashboard-staff-card__metrics strong {
    display: block;
    margin-top: .18rem;
    font-size: .88rem;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .admin-dashboard .dashboard-staff-card__action {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: .35rem .7rem;
    white-space: nowrap;
  }

  .admin-dashboard .report-pagination {
    text-align: center;
  }

  .admin-dashboard .dashboard-attendance-mobile+.report-pagination {
    margin-top: -.15rem;
    margin-bottom: .7rem;
  }

  .admin-dashboard .report-pagination .pagination-summary {
    display: block;
    margin-bottom: .2rem;
  }

  .admin-dashboard .report-pagination-mobile {
    gap: .4rem !important;
  }

  .admin-dashboard .report-pagination-mobile .pagination-mobile-btn {
    min-width: 0;
    min-height: 38px;
    padding: .45rem .55rem;
    white-space: nowrap;
  }

  .admin-dashboard .pagination-mobile-indicator {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .8rem;
  }
}

@media (max-width: 767.98px) {
  html[data-theme='day'] .admin-dashboard .dashboard-staff-card__metrics span {
    color: #475569;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .admin-dashboard .report-pagination-links {
    display: none !important;
  }

  .admin-dashboard .report-pagination-mobile {
    display: flex !important;
  }

  .admin-dashboard .pagination-summary .d-sm-inline {
    display: none !important;
  }

  .admin-dashboard .pagination-summary .d-sm-none {
    display: inline !important;
  }
}

/* Admin attendance location: primary evidence first, raw fields on demand. */
.admin-attendance-detail .attendance-location-event {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.admin-attendance-detail .attendance-location-event__header {
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

.admin-attendance-detail .attendance-location-event__title {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.admin-attendance-detail .attendance-location-event__time {
  margin-top: .2rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-attendance-detail .attendance-location-event__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .7rem;
  padding: .85rem 0 .35rem;
}

.admin-attendance-detail .attendance-location-event__accuracy {
  color: var(--muted);
  font-size: .82rem;
}

.admin-attendance-detail .attendance-location-event__fact {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .5rem 0;
  font-size: .88rem;
}

.admin-attendance-detail .attendance-location-event__fact>span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-attendance-detail .attendance-location-event__fact>strong {
  color: var(--text);
  font-weight: 600;
}

.admin-attendance-detail .attendance-location-event__fact>strong.attendance-location-event__positive {
  color: var(--success);
}

.admin-attendance-detail .attendance-location-event__fact>strong.attendance-location-event__warning {
  color: var(--warning);
}

.admin-attendance-detail .attendance-location-event__unavailable {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
}

.admin-attendance-detail .attendance-location-event__fact>small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-attendance-detail .attendance-location-event__map {
  align-self: flex-start;
  margin: .45rem 0 .2rem;
}

.admin-attendance-detail .attendance-location-event__technical {
  margin-top: auto;
  padding-top: .45rem;
}

.admin-attendance-detail .attendance-location-event__technical>summary {
  justify-content: flex-start;
  gap: .4rem;
  padding: .65rem 0 .15rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
}

.admin-attendance-detail .attendance-location-event__technical>summary::after {
  content: '\25B8';
  margin-left: 0;
  color: inherit;
  font-size: 1rem;
}

.admin-attendance-detail .attendance-location-event__technical[open]>summary::after {
  content: '\25BE';
}

.admin-attendance-detail .attendance-location-event__technical:not([open]) .attendance-location-event__hide,
.admin-attendance-detail .attendance-location-event__technical[open] .attendance-location-event__show {
  display: none;
}

.admin-attendance-detail .attendance-location-event__technical .policy-disclosure-body {
  padding: .7rem 0 .1rem;
}

.admin-attendance-detail .attendance-location-event__technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1rem;
}

.admin-attendance-detail .attendance-location-event__technical-grid div {
  min-width: 0;
}

.admin-attendance-detail .attendance-location-event__technical-grid dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.admin-attendance-detail .attendance-location-event__technical-grid dd {
  margin: .1rem 0 0;
  color: var(--text);
  font-size: .8rem;
  overflow-wrap: anywhere;
}

/* Admin attendance detail: mobile-only scan and correction layout. */
.admin-attendance-detail .attendance-detail-breaks-mobile,
.admin-attendance-detail .attendance-detail-audit-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .admin-attendance-detail .attendance-location-event {
    padding: .8rem;
  }

  .admin-attendance-detail .app-content {
    min-width: 0;
    padding: .75rem;
  }

  .admin-attendance-detail .app-content>.mb-3:first-child {
    margin-bottom: .7rem !important;
  }

  .admin-attendance-detail .app-content>.mb-3:first-child .btn {
    min-height: 40px;
    padding: .45rem .7rem;
  }

  .admin-attendance-detail .row.g-3 {
    --bs-gutter-y: .7rem;
  }

  .admin-attendance-detail .card-soft {
    min-width: 0;
    background: color-mix(in srgb, var(--surface) 96%, #08111d);
  }

  .admin-attendance-detail .card-header {
    padding: .75rem .85rem;
  }

  .admin-attendance-detail .card-body {
    padding: .8rem .85rem;
  }

  .admin-attendance-detail .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: .8rem !important;
  }

  .admin-attendance-detail .meta-item {
    min-width: 0;
    padding: .55rem .6rem;
  }

  .admin-attendance-detail .meta-item .label {
    font-size: .7rem;
  }

  .admin-attendance-detail .meta-item .value {
    font-size: .9rem;
    overflow-wrap: anywhere;
  }

  .admin-attendance-detail .meta-item .status-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .admin-attendance-detail .card-body>h3 {
    margin-bottom: .4rem;
  }

  .admin-attendance-detail .card-body>.text-muted {
    margin-bottom: 0;
    font-size: .82rem;
  }

  .admin-attendance-detail .card-body>.table-responsive-card {
    display: none;
  }

  .admin-attendance-detail .attendance-detail-breaks-mobile {
    display: grid;
    gap: .35rem;
    margin-bottom: .15rem;
  }

  .admin-attendance-detail .attendance-detail-break-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .15rem .6rem;
    padding: .45rem .55rem;
    border: 1px solid var(--border);
    border-radius: .4rem;
    font-size: .78rem;
  }

  .admin-attendance-detail .attendance-detail-break-mobile span:last-child {
    grid-column: 1 / -1;
    color: var(--muted);
  }

  .admin-attendance-detail .form-hint {
    font-size: .78rem;
    line-height: 1.35;
  }

  .admin-attendance-detail .row.g-3>.col-lg-6:nth-child(2) .card-body>.mb-3>.form-hint {
    line-height: 1.5;
  }

  .admin-attendance-detail form .mb-3 {
    margin-bottom: .9rem !important;
  }

  .admin-attendance-detail .form-control {
    width: 100%;
    min-width: 0;
  }

  .admin-attendance-detail form .btn-accent {
    width: 100%;
    min-height: 46px;
    padding: .6rem .8rem;
  }

  .admin-attendance-detail .card-soft.mt-3 {
    margin-top: .7rem !important;
  }

  .admin-attendance-detail .attendance-detail-audit-mobile {
    display: grid;
    gap: .55rem;
    padding: .65rem .75rem;
  }

  .admin-attendance-detail .attendance-detail-audit-entry {
    padding: .65rem .7rem;
    border: 1px solid var(--border);
    border-radius: .45rem;
    font-size: .78rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .admin-attendance-detail .attendance-detail-audit-entry>div+div {
    margin-top: .2rem;
  }

  .admin-attendance-detail .attendance-detail-audit-entry span {
    color: var(--muted);
  }

  .admin-attendance-detail .empty-state {
    padding: .8rem;
    font-size: .82rem;
  }

  .admin-attendance-detail .card-soft.mt-3 .empty-state {
    padding-block: .55rem;
  }
}

/* Desktop Edit Staff: keep actions close to the fields and lift account access type. */
@media (min-width: 992px) {
  .admin-staff-form-page .col-lg-8>.card-soft>.card-body {
    padding-bottom: .9rem;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body>.mt-4 {
    margin-top: .5rem !important;
    padding-top: 0 !important;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body {
    padding-bottom: .9rem;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body>div:first-child>.form-hint {
    margin-bottom: 1.75rem !important;
  }

  .admin-staff-form-page .staff-advanced-recovery .card-body .mb-3 {
    margin-bottom: .75rem !important;
  }

  .admin-staff-form-page #staff-form {
    justify-content: flex-start !important;
  }

  .admin-staff-form-page #staff-form>.d-flex:last-child {
    margin-top: 1rem !important;
    padding-top: 0 !important;
  }

  .admin-staff-form-page #staff-form>.d-flex:last-child .btn {
    min-height: 40px;
    padding: .4rem 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
  }

  .admin-staff-form-page .account-access-heading {
    font-size: .9rem;
    font-weight: 750;
    margin-bottom: .25rem !important;
  }

  .admin-staff-form-page .staff-account-access-section .card-header {
    font-size: .98rem;
  }

  .admin-staff-form-page .staff-account-access-section .form-hint {
    font-size: .88rem;
  }

  .admin-staff-form-page .staff-account-access-section .email-status {
    font-size: .76rem;
  }

  .admin-staff-form-page .staff-account-access-section .btn {
    font-size: .9rem;
  }
}

@media (max-width: 767.98px) {
  .admin-offday-adjustments .offday-adjustment-mobile section {
    display: none;
  }

  .admin-offday-adjustments .offday-adjustment-mobile.is-expanded section {
    display: block;
  }
}

.admin-leave-requests .leave-requests-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .admin-leave-requests .table-responsive-card {
    display: none;
  }

  .admin-leave-requests .leave-requests-mobile {
    display: grid;
    gap: .65rem;
    padding: .7rem;
  }

  .admin-leave-requests .leave-request-mobile {
    padding: .7rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    background: var(--surface);
  }

  .admin-leave-requests .leave-request-mobile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
  }

  .admin-leave-requests .leave-request-mobile__top strong {
    min-width: 0;
    font-size: .95rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .admin-leave-requests .leave-request-mobile__top .badge {
    flex: 0 0 auto;
  }

  .admin-leave-requests .leave-request-mobile__meta {
    margin-top: .18rem;
    color: var(--muted);
    font-size: .78rem;
    overflow-wrap: anywhere;
  }

  .admin-leave-requests .leave-request-mobile__reason {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: .35rem;
    font-size: .82rem;
    line-height: 1.35;
  }

  .admin-leave-requests .leave-request-mobile__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-top: .6rem;
  }

  .admin-leave-requests .leave-request-mobile__actions .btn {
    min-height: 38px;
    padding-inline: .5rem;
  }
}

.report-results-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .reports-page .report-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .5rem !important;
  }

  .reports-page .report-actions>.btn-accent {
    grid-column: 1 / -1;
  }

  .reports-page .report-actions .report-export-dropdown,
  .reports-page .report-actions>a {
    min-width: 0;
    width: 100%;
  }

  .reports-page .report-actions .report-export-dropdown>.btn,
  .reports-page .report-actions>a {
    width: 100%;
    min-height: 38px;
  }

  .reports-page .report-period {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .reports-page .report-results-card .table-responsive-card {
    display: none;
  }

  .reports-page .report-results-mobile {
    display: grid;
    gap: .55rem;
    padding: .65rem .7rem;
  }

  .reports-page .report-result-mobile {
    padding: .55rem .65rem;
    border: 1px solid var(--border);
    border-radius: .55rem;
    background: var(--surface);
  }

  .reports-page .report-result-mobile__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    color: var(--muted);
    font-size: .76rem;
  }

  .reports-page .report-result-mobile__top>div {
    flex: 0 1 auto;
    max-width: 48%;
  }

  .reports-page .report-result-mobile__top .badge {
    white-space: normal;
    line-height: 1.1;
    text-align: center;
  }

  .reports-page .report-result-mobile__name {
    display: block;
    margin-top: .18rem;
    font-size: .88rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .reports-page .report-result-mobile__times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    margin-top: .35rem;
    color: var(--muted);
    font-size: .7rem;
  }

  .reports-page .report-result-mobile__times b {
    display: block;
    color: var(--text);
    font-size: .78rem;
    font-weight: 600;
  }

  .reports-page .report-result-mobile__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    margin-top: .3rem;
    color: var(--muted);
    font-size: .72rem;
  }

  .reports-page .report-summary .col-6 {
    min-width: 0;
  }

  .reports-page .report-summary-card {
    min-height: 96px;
    padding: .7rem;
  }
}

@media (max-width: 768px) {
  .admin-dashboard .dash-admin-header {
    gap: .6rem !important;
    margin-bottom: .55rem !important;
  }

  .admin-dashboard .dash-admin-heading .chrono-command__sub {
    margin-bottom: .1rem;
  }

  .admin-dashboard .dash-admin-heading .chrono-command__title {
    line-height: 1.1;
  }

  .admin-dashboard .dash-admin-heading>.text-muted {
    margin-top: .2rem !important;
  }

  .admin-dashboard .dash-admin-filter {
    gap: .45rem !important;
  }

  .admin-dashboard .dash-admin-filter .date-presets__chips {
    gap: .3rem;
  }

  .admin-dashboard .dash-admin-filter .date-preset {
    min-height: 34px;
  }

  .admin-dashboard .dash-admin-date-field .form-label {
    margin-bottom: .2rem;
  }

  .admin-dashboard .dash-admin-filter-footer {
    gap: .4rem;
    line-height: 1.25;
  }

  .admin-dashboard .hud-frame {
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .admin-dashboard .dash-admin-header {
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: rgba(226, 232, 240, .84);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  html[data-theme='night'] .admin-dashboard .dash-admin-header {
    background: rgba(15, 23, 42, .82);
    border-color: rgba(148, 163, 184, .24);
    box-shadow: 0 8px 24px rgba(2, 6, 23, .2);
  }

  .admin-dashboard .dash-admin-heading .chrono-command__sub {
    color: #0f766e;
    font-weight: 700;
    opacity: 1;
  }

  html[data-theme='night'] .admin-dashboard .dash-admin-heading .chrono-command__sub {
    color: #5eead4;
  }

  .admin-dashboard .dash-admin-heading .chrono-command__title {
    color: #172033;
  }

  html[data-theme='night'] .admin-dashboard .dash-admin-heading .chrono-command__title {
    color: #f8fafc;
  }

  .admin-dashboard .dash-admin-heading>.text-muted {
    color: #475569 !important;
    opacity: .95;
  }

  html[data-theme='night'] .admin-dashboard .dash-admin-heading>.text-muted {
    color: #cbd5e1 !important;
  }

  .admin-dashboard .dash-admin-date-field .form-label {
    color: #334155;
    font-weight: 650;
  }

  html[data-theme='night'] .admin-dashboard .dash-admin-date-field .form-label {
    color: #e2e8f0;
  }

  .admin-dashboard .dash-admin-filter-footer .form-hint {
    color: #475569;
    opacity: .95;
  }

  html[data-theme='night'] .admin-dashboard .dash-admin-filter-footer .form-hint {
    color: #cbd5e1;
  }

  .admin-dashboard .dash-admin-filter-footer a {
    color: #0f766e;
    font-weight: 600;
  }

  html[data-theme='night'] .admin-dashboard .dash-admin-filter-footer a {
    color: #5eead4;
  }
}

@media (max-width: 768px) {
  .admin-dashboard .dash-admin-filter-footer a {
    color: #0d6efd;
    text-decoration: underline;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .admin-dashboard .dash-admin-filter-footer a:hover,
  .admin-dashboard .dash-admin-filter-footer a:focus-visible {
    color: #0a58ca;
  }
}

/* Break Records keeps its table presentation on desktop. */
@media (min-width: 768px) {

  .admin-staff-management .staff-management-mobile,
  .admin-leave-requests .leave-requests-mobile,
  .admin-offday-adjustments .offday-adjustments-mobile,
  .admin-attendance-records .attendance-records-mobile,
  .admin-dashboard .dashboard-attendance-mobile {
    display: none !important;
  }

  .admin-break-records .break-records-table-desktop {
    display: block !important;
  }

  .admin-break-records .break-records-cards-mobile {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .admin-break-records .break-records-table-desktop {
    display: none !important;
  }

  .admin-break-records .break-records-cards-mobile {
    display: grid !important;
  }
}

.staff-profile-email-label-row,
.staff-email-verification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.staff-profile-email-label-row {
  margin-bottom: .375rem;
}

.staff-profile-email-label-row .email-status {
  flex: 0 0 auto;
}

.staff-email-verification-info {
  min-width: 0;
}

.staff-email-verification-info>div {
  margin-top: .3rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.staff-profile-page .staff-verification-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.staff-profile-page .staff-verification-link:hover,
.staff-profile-page .staff-verification-link:focus-visible {
  color: var(--accent-strong, var(--accent));
  text-decoration-thickness: 2px;
}

.staff-filter-reset-link {
  color: var(--accent) !important;
  font-weight: 700;
}

.staff-filter-reset-link:hover,
.staff-filter-reset-link:focus-visible {
  color: var(--accent-strong, var(--accent)) !important;
}

@media (max-width: 767.98px) {
  .staff-profile-page .staff-profile-email-label-row {
    gap: .4rem;
  }

  .staff-profile-page .staff-profile-email-label-row .form-label {
    min-width: 0;
  }

  .staff-profile-page .staff-email-verification-card .card-body {
    padding: .8rem .85rem;
  }

  .staff-profile-page .staff-email-verification-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
  }

  .staff-profile-page .staff-email-verification-row form,
  .staff-profile-page .staff-email-verification-row .btn {
    width: 100%;
  }

  .staff-profile-page .staff-email-verification-row .btn {
    min-height: 40px;
  }
}

.office-assigned-staff__count { color: var(--text); }
html[data-theme='night'] .office-assigned-staff {
  background: #111f33;
  color: #f1f5f9;
  border-color: #304966;
}
html[data-theme='night'] .office-assigned-staff__count { color: #f1f5f9; }
html[data-theme='night'] .office-assigned-staff .text-muted { color: #afbed1 !important; }

.office-location-feedback {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(94, 234, 212, 0.18) !important;
}

html[data-theme='day'] .office-location-feedback {
  background: #f8fafc;
  border-color: #e2e8f0 !important;
}

html[data-theme='night'] .office-form-location-card {
  background: #111f33 !important;
  border-color: rgba(148, 173, 204, .25) !important;
  color: #f1f5f9;
}

html[data-theme='night'] .office-form-location-card .text-muted,
html[data-theme='night'] .office-form-location-card .form-hint {
  color: #afbed1 !important;
}

html[data-theme='night'] .office-form-location-card .office-location-feedback-panel {
  background: #182b42 !important;
  border-color: #617c9b !important;
  color: #f1f5f9;
}

html[data-theme='night'] .office-form-location-card .office-location-feedback-panel .text-muted {
  color: #c4d2e3 !important;
}

#office_map_frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Persistent notification center */
.notification-bell { position: relative; }
.notification-bell__button { position: relative; min-width: 2.3rem; }
.notification-bell__count { position: absolute; top: -.45rem; right: -.5rem; min-width: 1.25rem; padding: 0 .25rem; border-radius: 1rem; background: #dc3545; color: #fff; font-size: .68rem; line-height: 1.25rem; }
.notification-dropdown { width: min(23rem, calc(100vw - 1rem)); max-width: calc(100vw - 1rem); padding: 0; max-height: min(34rem, 70vh); overflow-y: auto; background: #ffffff; color: #1e293b; border: 1px solid rgba(148, 163, 184, .65); box-shadow: 0 14px 32px rgba(15, 23, 42, .18); opacity: 1; z-index: 1080; }
.notification-dropdown__heading { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--bs-border-color, #444); }
.notification-dropdown__heading,
.notification-dropdown__item,
.notification-dropdown__all,
.notification-empty { background: #ffffff; }
.notification-dropdown__item { display: grid; gap: .2rem; padding: .7rem 1rem; border-bottom: 1px solid var(--bs-border-color, #444); color: inherit; text-decoration: none; }
.notification-dropdown__item:hover, .notification-dropdown__item:focus-visible { background: rgba(20,184,166,.14); color: inherit; }
.notification-dropdown__item, .notification-item { border-left: 3px solid transparent; }
.notification-dropdown__item.is-unread, .notification-item.is-unread { border-left-color: #14b8a6; }
.notification-dropdown__item small { font-size: .82rem; }
.notification-dropdown__item time { color: var(--bs-secondary-color, #aaa); font-size: .72rem; }
.notification-dropdown__all { display: block; padding: .7rem 1rem; text-align: center; color: #0f766e; }
.notification-dropdown__all:hover, .notification-dropdown__all:focus-visible { color: #0d9488; }
.notification-page { max-width: 58rem; margin: 0 auto; }
.notification-page__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.notification-filters { display: flex; gap: .5rem; margin-bottom: 1rem; }
.notification-filters .btn-primary {
  background: #0f8298;
  border-color: #0f8298;
  color: #ffffff;
}
.notification-filters .btn-outline-secondary {
  border-color: #0f8298;
  color: #0f6678;
}
.notification-filters .btn-outline-secondary:hover,
.notification-filters .btn-outline-secondary:focus-visible {
  background: rgba(15, 130, 152, .12);
  border-color: #0f8298;
  color: #0b5261;
}
html[data-theme='night'] .notification-filters .btn-primary {
  background: #1597a7;
  border-color: #1597a7;
}
html[data-theme='night'] .notification-filters .btn-outline-secondary {
  border-color: #1597a7;
  color: #62d9dc;
}
html[data-theme='night'] .notification-filters .btn-outline-secondary:hover,
html[data-theme='night'] .notification-filters .btn-outline-secondary:focus-visible {
  background: rgba(21, 151, 167, .18);
  border-color: #62d9dc;
  color: #9af0ed;
}
.notification-list { display: grid; gap: .6rem; }
.notification-item { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid rgba(148, 163, 184, .55); border-radius: .65rem; background: #ffffff; color: #1e293b; }
.notification-item__body { min-width: 0; }
.notification-item__body a { text-decoration: none; }
.notification-empty { padding: 1rem; color: var(--bs-secondary-color, #aaa); }
@media (max-width: 575px) {
  .notification-item, .notification-page__heading { flex-wrap: wrap; }
  .notification-dropdown {
    position: fixed !important;
    width: min(23rem, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;
    max-height: min(32rem, calc(100vh - 8rem));
    margin-top: .65rem !important;
    top: 4rem !important;
    right: 1rem !important;
    left: auto !important;
    transform: none !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .24);
  }

  .notification-dropdown__heading { padding: .7rem .85rem; }
  .notification-empty { padding: .8rem .85rem; margin-bottom: 0; }
  .notification-dropdown__all { padding: .55rem .85rem; font-size: .95rem; }
}
.notification-open-button { display: grid; width: 100%; gap: .2rem; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.notification-open-button strong { font-weight: 600; }
.notification-open-button .notification-title { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; }
.notification-title.is-unread { font-weight: 700; color: #0f766e; }
.notification-unread-dot { display: inline-block; width: .5rem; height: .5rem; flex: 0 0 .5rem; border-radius: 50%; background: #14b8a6; }
.notification-open-button small { font-size: .82rem; }
.notification-open-button time { color: #64748b; font-size: .72rem; }
.notification-item .text-muted { color: #64748b !important; }
html[data-theme='night'] .admin-offday-adjustments a.small[href*='offday_adjustments.php'] {
  color: #34d399 !important;
}
html[data-theme='night'] .admin-offday-adjustments a.small[href*='offday_adjustments.php']:hover,
html[data-theme='night'] .admin-offday-adjustments a.small[href*='offday_adjustments.php']:focus-visible {
  color: #6ee7b7 !important;
}
.staff-policy-page .form-hint a[href*='jtksm.mohr.gov.my'] {
  color: var(--accent) !important;
}
.staff-policy-page .form-hint a[href*='jtksm.mohr.gov.my']:hover,
.staff-policy-page .form-hint a[href*='jtksm.mohr.gov.my']:focus-visible {
  color: var(--accent-strong, var(--accent)) !important;
}
html[data-theme='night'] .staff-policy-page .form-hint a[href*='jtksm.mohr.gov.my'] {
  color: #2dd4bf !important;
}
html[data-theme='night'] .staff-policy-page .form-hint a[href*='jtksm.mohr.gov.my']:hover,
html[data-theme='night'] .staff-policy-page .form-hint a[href*='jtksm.mohr.gov.my']:focus-visible {
  color: #99f6e4 !important;
}
html[data-theme='night'] .settings-page a[href*='/admin/schedules.php'] {
  color: #2dd4bf !important;
}
html[data-theme='night'] .settings-page a[href*='/admin/schedules.php']:hover,
html[data-theme='night'] .settings-page a[href*='/admin/schedules.php']:focus-visible {
  color: #99f6e4 !important;
}
html[data-theme='night'] .auth-page a[href*='forgot_password'] {
  color: #2dd4bf !important;
}
html[data-theme='night'] .auth-page a[href*='forgot_password']:hover,
html[data-theme='night'] .auth-page a[href*='forgot_password']:focus-visible {
  color: #99f6e4 !important;
}
html[data-theme='night'] .notification-dropdown {
  background: #111f33;
  color: #f1f5f9;
  border-color: #304966;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .42);
  opacity: 1;
}
html[data-theme='night'] .notification-dropdown__heading,
html[data-theme='night'] .notification-dropdown__item {
  border-color: rgba(148, 173, 204, .25);
  background: #111f33;
}
html[data-theme='night'] .notification-dropdown__item {
  background: #111f33;
  color: #f1f5f9;
}
html[data-theme='night'] .notification-dropdown__item:hover,
html[data-theme='night'] .notification-dropdown__item:focus-visible {
  background: rgba(45, 212, 191, .14);
  color: #ffffff;
}
html[data-theme='night'] .notification-dropdown__item time,
html[data-theme='night'] .notification-open-button time {
  color: #afbed1;
}
html[data-theme='night'] .notification-dropdown__all {
  background: #111f33;
  color: #5eead4;
}
html[data-theme='night'] .notification-empty { background: #111f33; }
html[data-theme='night'] .notification-dropdown__all:hover,
html[data-theme='night'] .notification-dropdown__all:focus-visible {
  background: #182b42;
  color: #99f6e4;
}
html[data-theme='night'] .notification-item {
  background: #111f33;
  border-color: rgba(148, 173, 204, .25);
  color: #f1f5f9;
}
html[data-theme='night'] .notification-item .text-muted,
html[data-theme='night'] .notification-open-button time { color: #afbed1 !important; }
html[data-theme='night'] .notification-title.is-unread { color: #99f6e4; }
html[data-theme='night'] .notification-unread-dot { background: #2dd4bf; }
html[data-theme='night'] .notification-empty { color: #afbed1; }

/* Account access actions: shared secondary treatment for reset and verification. */
.staff-account-action {
  height: 40px;
  min-height: 40px;
  padding: .5rem 1rem;
  border: 1px solid #64748b;
  border-radius: var(--radius-sm, 8px);
  background: rgba(248, 250, 252, .55);
  color: #172554;
  font-weight: 500;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.staff-account-action:hover,
.staff-account-action:focus-visible {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.staff-account-action:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

.staff-account-action:active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.staff-account-action:disabled,
.staff-account-action[aria-disabled='true'] {
  opacity: .55;
  cursor: not-allowed;
  background: transparent;
  color: #64748b;
  border-color: #94a3b8;
}

.staff-account-action[aria-busy='true'] {
  cursor: wait;
  opacity: .75;
}

html[data-theme='night'] .staff-account-action {
  border-color: #41627f;
  background: rgba(15, 23, 42, .35);
  color: #dbeafe;
}

html[data-theme='night'] .staff-account-action:hover,
html[data-theme='night'] .staff-account-action:focus-visible {
  border-color: #38bdf8;
  background: #0284c7;
  color: #fff;
}

html[data-theme='night'] .staff-account-action:active {
  background: #0369a1;
  border-color: #0369a1;
  color: #fff;
}

html[data-theme='night'] .staff-account-action:disabled,
html[data-theme='night'] .staff-account-action[aria-disabled='true'] {
  color: #94a3b8;
  border-color: #475569;
  background: rgba(15, 23, 42, .2);
}


.attendance-location-event__reported { gap: .35rem; }
.attendance-location-event__proximity { display:block; font-size:1rem; line-height:1.35; }
.attendance-location-event__proximity--positive { color:#047857; }
.attendance-location-event__proximity--warning { color:#b45309; }
.attendance-location-event__office-name { color:var(--text); font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.attendance-location-event__distance { color:var(--muted); font-size:.9rem; line-height:1.45; }
html[data-theme='night'] .attendance-location-event__proximity--positive { color:#34d399; }
html[data-theme='night'] .attendance-location-event__proximity--warning { color:#fbbf24; }
@media (max-width: 576px) { .attendance-location-event__distance { overflow-wrap:anywhere; } }

.attendance-location-event__proximity--positive + .attendance-location-event__office-name { color: #047857; }
.attendance-location-event__proximity--warning + .attendance-location-event__office-name { color: #b45309; }
html[data-theme='night'] .attendance-location-event__proximity--positive + .attendance-location-event__office-name { color: #34d399; }
html[data-theme='night'] .attendance-location-event__proximity--warning + .attendance-location-event__office-name { color: #fbbf24; }

.attendance-detail-summary-note { color: var(--muted); font-size: .82rem; line-height: 1.45; margin: -.5rem 0 1rem; }

.manual-correction-form { max-width: 720px; }
@media (min-width: 768px) {
  .manual-correction-form { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .manual-correction-form > .mb-3:nth-of-type(3),
  .manual-correction-form > button { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) { .manual-correction-form { max-width: none; } }
.admin-attendance-detail .table-responsive-card { overflow-x:auto; }

/* Attendance Location card rhythm when paired with the summary card. */
.admin-attendance-detail .attendance-location-event__header { padding-bottom: 1rem; }
.admin-attendance-detail .attendance-location-event__status { padding: 1rem 0 .8rem; margin-bottom: .25rem; }
.admin-attendance-detail .attendance-location-event__reported { padding: .8rem 0 .9rem; gap: .45rem; }
.admin-attendance-detail .attendance-location-event__office-name { margin-top: .1rem; }
.admin-attendance-detail .attendance-location-event__distance { margin-top: .15rem; }
.admin-attendance-detail .attendance-location-event__map { margin-top: .75rem; margin-bottom: .35rem; }
.admin-attendance-detail .attendance-location-event__technical { padding-top: .65rem; }
@media (max-width: 767.98px) {
  .admin-attendance-detail .attendance-location-event { min-height: 0; }
  .admin-attendance-detail .attendance-location-event__status { padding-top: .85rem; }
  .admin-attendance-detail .attendance-location-event__reported { padding-top: .65rem; padding-bottom: .75rem; }
}

.attendance-records-table td:nth-child(3) small,
.attendance-records-table td:nth-child(4) small { display:block; white-space:normal; overflow-wrap:anywhere; line-height:1.25; font-size:.75rem; }

