/* ==========================================================================
   Crextio Salary & Attendance Dashboard Components (salary.html)
   Seamless integration with Crextio Unified Design System & Dark Obsidian Mode
   ========================================================================== */

/* Color Variables specific to Salary Page */
:root {
  --weekend-red: #ea645a;
  --stripe-bg: repeating-linear-gradient(-45deg,
      rgba(215, 212, 204, 0.45),
      rgba(215, 212, 204, 0.45) 1.5px,
      transparent 1.5px,
      transparent 5.5px);
  --bar-stripe: repeating-linear-gradient(-45deg,
      #cfd2d8,
      #cfd2d8 1.5px,
      #e9ebef 1.5px,
      #e9ebef 4px);
}

/* ==========================================================================
   Column 1: Team Members Roster
   ========================================================================== */
.employee-card {
  background: var(--surface-card);
  border-radius: 1.25rem;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  border: 1.5px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}

.employee-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 200, 160, 0.25);
  border-color: rgba(245, 196, 67, 0.4);
}

.employee-card.active {
  border-color: var(--accent-yellow);
  box-shadow: 0 8px 24px rgba(245, 196, 67, 0.2);
  background: #ffffff;
}

.employee-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  margin-right: 14px;
}

.employee-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.employee-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.employee-role {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Segmented Custom Progress Bar */
.segmented-progress {
  height: 6px;
  width: 100%;
  display: flex;
  gap: 3px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 14px;
}

.progress-seg {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.seg-yellow {
  background-color: var(--accent-yellow);
}

.seg-dark {
  background-color: var(--surface-dark-pill);
}

.seg-striped {
  background: var(--bar-stripe);
}

/* Pagination Control */
.employee-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 0 4px;
}

.btn-page-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page-nav:hover {
  background: var(--surface-dark-pill);
  color: #fff;
  border-color: var(--surface-dark-pill);
}

.btn-page-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-page-num:hover,
.btn-page-num.active {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

.page-dots {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 4px;
}

/* ==========================================================================
   Column 2: Search, Summary & Calendar
   ========================================================================== */
.calendar-search-bar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.btn-icon-subtle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.btn-icon-subtle:hover {
  color: var(--text-main);
}

.calendar-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--text-main);
  width: 100%;
}

.calendar-search-input::placeholder {
  color: #9EA2A9;
}

.btn-circle-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #4B4E55;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-circle-action:hover {
  background: var(--surface-dark-pill);
  color: #FFFFFF;
}

/* Summary Stat Row */
.summary-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.stat-headline {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.dropdown-month-pill {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3B3E45;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-month-pill:hover {
  background: #FDFDFD;
  border-color: #D8D4CB;
}

/* Status Overview Badges */
.status-pill-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.3fr;
  gap: 12px;
  margin-bottom: 24px;
}

.status-metric-card {
  display: flex;
  flex-direction: column;
}

.status-metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.pill-metric-badge {
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 42px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.pill-metric-badge:hover {
  transform: translateY(-1px);
}

.pill-workday {
  background-color: var(--accent-yellow);
  color: #433306;
}

.pill-truancy {
  background-color: #27282B;
  color: #FFFFFF;
}

.pill-vocation {
  background-color: #A4A8AF;
  color: #FFFFFF;
}

/* ==========================================================================
   Calendar Main Card Box & Events Overlay
   ========================================================================== */
.calendar-card-box {
  background: var(--surface-card);
  border-radius: 1.75rem;
  padding: 24px 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.25s ease;
}

.calendar-card-box:hover {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.06);
}

.calendar-wrapper {
  position: relative;
  width: 100%;
}

.calendar-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 12px;
}

.cal-head-cell {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cal-head-cell.weekend-header {
  color: var(--weekend-red);
}

.calendar-grid-container {
  position: relative;
  width: 100%;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 68px);
  gap: 8px;
  width: 100%;
}

.cal-day-cell {
  background: #FBF9F5;
  border: 1px solid rgba(235, 232, 224, 0.85);
  border-radius: 12px;
  padding: 8px 10px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.cal-day-cell:hover {
  background: #FFFFFF;
  border-color: rgba(245, 196, 67, 0.6);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cal-day-num {
  font-size: 0.84rem;
  font-weight: 600;
  color: #4B4E54;
  line-height: 1;
}

.cal-day-cell.other-month .cal-day-num {
  color: #9DA0A7;
}

/* Weekend / Stripe Textured Days */
.cal-day-cell.is-striped {
  background-image: var(--stripe-bg);
  background-color: #F8F6F1;
}

/* Active Highlighted Cell (11 Dec - Birthday Mike's) */
.cal-day-cell.is-highlighted {
  background-color: var(--accent-yellow) !important;
  background-image: none !important;
  box-shadow: 0 6px 18px rgba(245, 196, 67, 0.35);
  border: 1px solid rgba(229, 171, 38, 0.7);
}

.cal-day-cell.is-highlighted .cal-day-num {
  color: #1A1A1A;
  font-weight: 700;
}

.highlight-badge-pill {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #1A1A1A;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.highlight-caption {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2B2308;
  line-height: 1.15;
  margin-top: 6px;
}

/* Overlay layer for spanning event badges */
.calendar-events-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 68px);
  gap: 8px;
  z-index: 10;
}

.cal-event-banner {
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.73rem;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 28px;
  align-self: end;
  margin-bottom: 6px;
  margin-left: 6px;
  margin-right: 6px;
}

.cal-event-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cal-event-banner .dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Banner 1: Vocation (Dec 1 - Dec 3) */
.banner-vocation {
  grid-column: 3 / span 3;
  grid-row: 1;
  background-color: #F1F2F5;
  color: #4B4E54;
  border: 1px solid rgba(220, 222, 228, 0.9);
  justify-content: space-between;
}

.banner-vocation .dot-indicator {
  background-color: #8F949C;
}

/* Banner 2: Work Day (Dec 13 - Dec 16) */
.banner-workday {
  grid-column: 1 / span 4;
  grid-row: 3;
  background-color: #FFF9E6;
  background-image: repeating-linear-gradient(-45deg,
      rgba(245, 196, 67, 0.22),
      rgba(245, 196, 67, 0.22) 2px,
      transparent 2px,
      transparent 6px);
  color: #3F3513;
  border: 1px solid rgba(245, 196, 67, 0.45);
  justify-content: space-between;
}

.banner-workday .dot-indicator {
  background-color: var(--accent-yellow);
}

/* Banner 3: Sickness (Dec 22 - Dec 24) */
.banner-sickness {
  grid-column: 3 / span 3;
  grid-row: 4;
  background-color: #F4F5F7;
  background-image: repeating-linear-gradient(-45deg,
      rgba(180, 184, 192, 0.32),
      rgba(180, 184, 192, 0.32) 2px,
      transparent 2px,
      transparent 5px);
  color: #2B2D31;
  border: 1px solid rgba(210, 213, 218, 0.85);
  justify-content: space-between;
}

.banner-sickness .dot-indicator {
  background-color: var(--surface-dark-pill);
}

/* ==========================================================================
   Column 3: Profile Details Card (Auto-Extending Box)
   ========================================================================== */
.profile-column {
  min-width: 320px;
  transition: min-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card-container {
  background: var(--surface-card);
  border-radius: 1.75rem;
  padding: 0 22px 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  position: relative;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  transition: min-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Hero abstract banner */
.profile-hero-banner {
  height: 100px;
  margin: 0 -22px;
  overflow: hidden;
  position: relative;
  background-color: #0D0D0E;
}

.profile-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Avatar positioned over hero edge */
.profile-avatar-center {
  position: relative;
  margin-top: -44px;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.profile-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4.5px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  background-color: #FFFFFF;
}

.profile-user-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 2px;
}

.profile-user-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 22px;
}

/* Section Subheadings */
.profile-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

/* Basic Information Items with Dynamic Extending Box */
.basic-info-wrapper {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  transition: all 0.25s ease;
}

.basic-info-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.info-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 3px 0;
  margin-bottom: 7px;
  position: relative;
  width: 100%;
  gap: 8px;
  min-width: 0;
}

.info-item-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #646872;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.info-item-label i {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-dotted-leader {
  flex: 1 1 8px;
  min-width: 6px;
  border-bottom: 1.5px dotted #D0D2D7;
  margin: 0 4px;
  position: relative;
  top: -2px;
}

.info-item-value {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

/* Documents Cards */
.document-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.doc-card {
  border-radius: 1rem;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.doc-card-contract {
  background-color: #EAF1FA;
}

.doc-card-resume {
  background-color: #FCEDEA;
}

.doc-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.badge-word {
  background-color: #276AC7;
  color: #FFFFFF;
}

.badge-ppt {
  background-color: #E55438;
  color: #FFFFFF;
}

.doc-info-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
}

.doc-info-size {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Statistics Progress Bars */
.stat-bar-group {
  margin-bottom: 14px;
}

.stat-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.stat-bar-title {
  color: #646872;
  font-weight: 500;
}

.stat-bar-value {
  color: var(--text-main);
  font-weight: 600;
}

.stat-segmented-bar {
  height: 6px;
  width: 100%;
  display: flex;
  gap: 3px;
  border-radius: 6px;
  overflow: hidden;
}

/* ==========================================================================
   Dark Theme for Salary & Attendance Components ([data-theme="dark"])
   ========================================================================== */
[data-theme="dark"] .employee-card {
  background-color: #1D1D25;
  border-color: #2A2A38;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .employee-card:hover {
  background-color: #22222E;
  border-color: rgba(245, 196, 67, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .employee-card.active {
  background-color: #242432;
  border-color: var(--accent-yellow);
  box-shadow: 0 8px 24px rgba(245, 196, 67, 0.15);
}

[data-theme="dark"] .employee-name {
  color: #F4F4F7;
}

[data-theme="dark"] .seg-dark {
  background-color: #F5C443;
}

[data-theme="dark"] .seg-striped {
  background: repeating-linear-gradient(-45deg,
      #3E3E4E,
      #3E3E4E 1.5px,
      #282834 1.5px,
      #282834 4px);
}

[data-theme="dark"] .btn-page-nav {
  background: #1D1D25;
  border-color: #2A2A38;
  color: #9E9EA8;
}

[data-theme="dark"] .btn-page-nav:hover {
  background: #F5C443;
  color: #121216;
  border-color: #F5C443;
}

[data-theme="dark"] .btn-page-num:hover,
[data-theme="dark"] .btn-page-num.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .calendar-search-bar {
  background: rgba(29, 29, 37, 0.95);
  border-color: #2C2C3A;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .btn-circle-action {
  background: rgba(255, 255, 255, 0.08);
  color: #E4E4E7;
}

[data-theme="dark"] .btn-circle-action:hover {
  background: #F5C443;
  color: #121216;
}

[data-theme="dark"] .stat-headline {
  color: #F4F4F7;
}

[data-theme="dark"] .dropdown-month-pill {
  background: #1D1D25;
  border-color: #2C2C3A;
  color: #E4E4E7;
}

[data-theme="dark"] .dropdown-month-pill:hover {
  background: #242430;
  border-color: #383848;
}

[data-theme="dark"] .calendar-card-box {
  background: #1D1D25;
  border-color: #2A2A38;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .calendar-card-box:hover {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .cal-day-cell {
  background: #15151C;
  border: 1px solid #242432;
  box-shadow: none;
}

[data-theme="dark"] .cal-day-cell:hover {
  background: #1A1A24;
  border-color: rgba(245, 196, 67, 0.5);
}

[data-theme="dark"] .cal-day-num {
  color: #D4D4D8;
}

[data-theme="dark"] .cal-day-cell.other-month .cal-day-num {
  color: #555562;
}

[data-theme="dark"] .cal-day-cell.is-striped {
  background-color: #16161D;
  background-image: repeating-linear-gradient(-45deg,
      rgba(50, 50, 65, 0.6),
      rgba(50, 50, 65, 0.6) 1.5px,
      transparent 1.5px,
      transparent 5.5px);
}

[data-theme="dark"] .banner-vocation {
  background-color: #22222E;
  color: #E4E4E7;
  border-color: #323242;
}

[data-theme="dark"] .banner-vocation .dot-indicator {
  background-color: #8F949C;
}

[data-theme="dark"] .banner-workday {
  background-color: #2B2616;
  border-color: rgba(245, 196, 67, 0.4);
  color: #FDE68A;
}

[data-theme="dark"] .banner-sickness {
  background-color: #252532;
  border-color: #38384A;
  color: #F4F4F7;
}

[data-theme="dark"] .profile-card-container {
  background: #1D1D25;
  border-color: #2A2A38;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .profile-avatar-img {
  border-color: #1D1D25;
  background-color: #1D1D25;
}

[data-theme="dark"] .profile-user-name,
[data-theme="dark"] .profile-section-title {
  color: #F4F4F7;
}

[data-theme="dark"] .profile-user-role {
  color: #A1A1AA;
}

[data-theme="dark"] .highlight-caption {
  color: #121216;
}

[data-theme="dark"] .status-metric-label {
  color: #A1A1AA;
}

[data-theme="dark"] .pill-workday {
  background-color: var(--accent-yellow);
  color: #121216;
}

[data-theme="dark"] .pill-truancy {
  background-color: #272834;
  color: #F4F4F7;
}

[data-theme="dark"] .pill-vocation {
  background-color: #38384A;
  color: #E4E4E7;
}

[data-theme="dark"] .info-item-label {
  color: #A1A1AA;
}

[data-theme="dark"] .info-dotted-leader {
  border-bottom-color: #38384A;
}

[data-theme="dark"] .info-item-value {
  color: #F4F4F7;
}

[data-theme="dark"] .doc-card-contract {
  background-color: #1C2436;
}

[data-theme="dark"] .doc-card-resume {
  background-color: #321C1C;
}

[data-theme="dark"] .doc-info-title {
  color: #F4F4F7;
}

[data-theme="dark"] .stat-bar-title {
  color: #9E9EA8;
}

[data-theme="dark"] .stat-bar-value {
  color: #F4F4F7;
}


/* Responsive adjustments for salary components */
@media (max-width: 1200px) {
  .status-pill-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .calendar-month-grid {
    grid-auto-rows: 52px;
    gap: 4px;
  }

  .cal-day-cell {
    padding: 4px 6px;
    border-radius: 8px;
  }

  .cal-event-banner {
    font-size: 0.62rem;
    height: 22px;
    padding: 0 6px;
  }

  .stat-headline {
    font-size: 1.3rem;
  }

  .document-cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .profile-column {
    min-width: 100%;
  }

  .info-item-row {
    flex-wrap: wrap;
    gap: 2px;
  }

  .info-dotted-leader {
    display: none;
  }

  .info-item-value {
    text-align: left;
    width: 100%;
    padding-left: 24px;
    white-space: normal;
    word-break: break-word;
  }
}

/* ==========================================================================
   Mobile-Friendly Salary & SalaryProfile Master-Detail Architecture
   ========================================================================== */

/* Top Header Mobile Heading */
.mobile-header-page-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .mobile-header-page-title {
  color: #F4F4F7;
}

/* Header Filter Trigger Button (Mobile) */
.mobile-filter-header-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-filter-header-btn:hover {
  background: var(--surface-dark-pill);
  color: #FFFFFF;
}

[data-theme="dark"] .mobile-filter-header-btn {
  background: #1D1D25;
  border-color: #2A2A38;
  color: #E4E4E7;
}

[data-theme="dark"] .mobile-filter-header-btn:hover {
  background: var(--accent-yellow);
  color: #121216;
}

/* Floating Scroll-Up Filter Bar */
.mobile-scroll-up-bar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1045;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(225, 222, 214, 0.95);
  border-radius: 50px;
  padding: 8px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mobile-scroll-up-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

[data-theme="dark"] .mobile-scroll-up-bar {
  background: rgba(28, 28, 36, 0.94);
  border-color: rgba(50, 50, 65, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.mobile-scroll-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.scroll-up-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.2;
}

[data-theme="dark"] .scroll-up-title {
  color: #F4F4F7;
}

.scroll-up-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-scroll-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-scroll-filter:hover {
  background: var(--accent-yellow);
  color: #121216;
}

[data-theme="dark"] .btn-scroll-filter {
  background: var(--accent-yellow);
  color: #121216;
}

/* Back to All Profiles Button */
.mobile-back-container {
  display: none;
  margin-bottom: 20px;
}

.btn-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-back-pill:hover {
  background: var(--surface-dark-pill);
  color: #FFFFFF;
  border-color: var(--surface-dark-pill);
  transform: translateX(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.btn-back-pill i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-back-pill:hover i {
  transform: translateX(-3px);
}

[data-theme="dark"] .btn-back-pill {
  background: #1D1D25;
  border-color: #2A2A38;
  color: #F4F4F7;
}

[data-theme="dark"] .btn-back-pill:hover {
  background: var(--accent-yellow);
  color: #121216;
  border-color: var(--accent-yellow);
}

/* Card view meta details */
.employee-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 6px;
  flex-shrink: 0;
}

.employee-badge-salary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.775rem;
  font-weight: 700;
  color: #1a1a1e;
  background: rgba(245, 196, 67, 0.28);
  border: 1px solid rgba(245, 196, 67, 0.55);
  padding: 4px 12px;
  height: 28px;
  min-width: 66px;
  max-width: 96px;
  border-radius: 50px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  flex-shrink: 0;
}

[data-theme="dark"] .employee-badge-salary {
  background: rgba(245, 196, 67, 0.18);
  color: #F5C443;
  border-color: rgba(245, 196, 67, 0.38);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.employee-card:hover .employee-badge-salary {
  background: rgba(245, 196, 67, 0.38);
  border-color: rgba(245, 196, 67, 0.7);
  transform: scale(1.02);
}

.employee-card.active .employee-badge-salary {
  background: rgba(245, 196, 67, 0.42);
  border-color: #D4A32A;
  color: #121216;
  box-shadow: 0 2px 8px rgba(245, 196, 67, 0.28);
}

[data-theme="dark"] .employee-card.active .employee-badge-salary {
  background: rgba(245, 196, 67, 0.26);
  border-color: var(--accent-yellow);
  color: #FCD872;
  box-shadow: 0 2px 8px rgba(245, 196, 67, 0.25);
}

/* Employee pagination button states */
.btn-page-nav.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-page-num.active {
  color: #121216 !important;
  background: var(--accent-yellow) !important;
  font-weight: 700;
}

[data-theme="dark"] .btn-page-num.active {
  color: #121216 !important;
  background: var(--accent-yellow) !important;
  font-weight: 700;
}

/* Hide any pagination summary text like 'Showing X to Y results' */
.employee-roster-column nav p.small,
.employee-roster-column nav div p {
  display: none !important;
}

.employee-card-chevron {
  font-size: 0.95rem;
  color: #A1A1AA;
  transition: transform 0.2s ease;
}

.employee-card:hover .employee-card-chevron {
  transform: translateX(3px);
  color: var(--accent-yellow);
}

/* Responsive Master-Detail Switching on Mobile (< 992px) */
@media (max-width: 991.98px) {
  /* Cover full screen edge-to-edge on mobile with ZERO gap between screen and canvas */
  .crextio-canvas {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 8px 12px 8px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    overflow-x: hidden !important;
  }

  .employee-pagination {
    margin-top: 14px !important;
    margin-bottom: 4px !important;
  }

  .salary-main-layout {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .crextio-canvas .employee-roster-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .crextio-canvas .employee-list-container {
    padding: 0 !important;
    width: 100% !important;
  }

  .employee-card {
    padding: 14px 16px !important;
    border-radius: 1.15rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
    width: 100% !important;
  }

  /* Default Mobile State: All persons shown in card view (Column 1) */
  .salary-main-layout:not(.mobile-detail-mode) .employee-roster-column {
    display: block !important;
    width: 100% !important;
  }

  .salary-main-layout:not(.mobile-detail-mode) .calendar-center-column,
  .salary-main-layout:not(.mobile-detail-mode) .profile-column,
  .salary-main-layout:not(.mobile-detail-mode) .mobile-back-container {
    display: none !important;
  }

  /* Mobile Detail Mode (active after clicking any employee card): */
  .salary-main-layout.mobile-detail-mode .employee-roster-column {
    display: none !important;
  }

  .salary-main-layout.mobile-detail-mode .mobile-back-container {
    display: block !important;
    order: 0 !important;
    width: 100% !important;
  }

  /* Only that person's Detailed Employee Profile Card is shown on top */
  .salary-main-layout.mobile-detail-mode .profile-column {
    display: block !important;
    width: 100% !important;
    order: 1 !important;
    margin-bottom: 24px;
  }

  /* All other details appear below that */
  .salary-main-layout.mobile-detail-mode .calendar-center-column {
    display: block !important;
    width: 100% !important;
    order: 2 !important;
  }

  /* Mobile Card enhancements */
  .employee-card {
    padding: 16px 18px;
    border-radius: 1.15rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 575.98px) {
  .brand-badge {
    padding: 0.38rem 0.75rem;
    font-size: 0.95rem;
    gap: 6px;
  }

  .mobile-header-page-title {
    font-size: 1.05rem;
  }

  .employee-card {
    padding: 14px 16px;
  }

  .mobile-scroll-up-bar {
    left: 8px;
    right: 8px;
    top: 8px;
    padding: 6px 12px;
  }
}

/* Desktop View (>= 992px): Preserves standard 3-column layout exactly */
@media (min-width: 992px) {
  .mobile-back-container,
  .mobile-scroll-up-bar,
  .mobile-filter-header-btn {
    display: none !important;
  }

  .salary-main-layout .employee-roster-column,
  .salary-main-layout .calendar-center-column,
  .salary-main-layout .profile-column {
    display: block !important;
  }

  .salary-main-layout .employee-roster-column {
    order: 1;
  }

  .salary-main-layout .calendar-center-column {
    order: 2;
  }

  .salary-main-layout .profile-column {
    order: 3;
  }
}

/* Offcanvas Filter Drawer (Responsive, fits comfortably on mobile screens) */
.crextio-filter-offcanvas {
  background-color: #FAF8F4;
  border-left: 1px solid var(--border-subtle);
  width: 310px !important;
  max-width: 88vw !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  border-radius: 24px 0 0 24px !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15) !important;
}

.crextio-filter-offcanvas .offcanvas-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 1rem 1.15rem !important;
  box-sizing: border-box !important;
}

.crextio-filter-offcanvas .form-control,
.crextio-filter-offcanvas .form-select {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .crextio-filter-offcanvas {
  background-color: #171720 !important;
  border-left-color: #2A2A38 !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6) !important;
}

.filter-drawer-tag-btn {
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-drawer-tag-btn:hover,
.filter-drawer-tag-btn.active {
  background: var(--surface-dark-pill);
  color: #FFFFFF;
  border-color: var(--surface-dark-pill);
}

[data-theme="dark"] .filter-drawer-tag-btn {
  background: #20202C;
  border-color: #2C2C3D;
  color: #E4E4E7;
}

[data-theme="dark"] .filter-drawer-tag-btn:hover,
[data-theme="dark"] .filter-drawer-tag-btn.active {
  background: var(--accent-yellow);
  color: #121216;
  border-color: var(--accent-yellow);
}