:root {
  --primary-color: #29a87c;
  --primary-dark: #1b6e51;
  --primary-light: #33b588;
  --secondary-color: #f3c5df;
  --secondary-dark: #009f68;
  --text-light: #ffffff;
  --text-dark: #000000;
  --border-color: #00000024;
  --error-color: #e78484;
  --warning-color: #f1f189;
  --success-color: #29a87c;
  --info-color: #f3d8c6;
  --pending-color: #f1ab7c;
}

body {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Loading Modal Styles */
.loadModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 62, 80, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loadInner {
  text-align: center;
  max-width: 50%;
}

/* Loading Animation */
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #444;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) { left: 8px; animation: lds-ellipsis1 0.6s infinite; }
.lds-ellipsis div:nth-child(2) { left: 8px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(3) { left: 32px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(4) { left: 56px; animation: lds-ellipsis3 0.6s infinite; }

@keyframes lds-ellipsis1 { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes lds-ellipsis3 { 0% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes lds-ellipsis2 { 0% { transform: translate(0, 0); } 100% { transform: translate(24px, 0); } }

.go-login-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
  min-height: 100vh;
  box-sizing: border-box;
}

.go-login-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  color: #222;
}

.go-login-card h1 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #222;
}

.go-login-subtitle {
  color: #555;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.go-login-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #388e3c;
  background: #e8f5e9;
  border-radius: 8px;
  padding: 0.75rem;
}

/* New styles for the sign-in buttons */
.signInButtons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.provider-btn:hover {
  background-color: #f7f7f7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.provider-btn img {
  width: 20px;
  height: 20px;
}

/* Form Controls */
input[type="range"].form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--secondary-color);
  cursor: pointer;
  border-radius: 50%;
  border: 0;
}

input[type="range"].form-range::-moz-range-thumb {
  background-color: var(--secondary-color);
  cursor: pointer;
  border-radius: 50%;
  border: 0;
}

input[type="range"].form-range::-ms-thumb {
  background-color: var(--secondary-color);
  cursor: pointer;
  border-radius: 50%;
  border: 0;
}

/* Alert Overlay */
.alert-overlay {
  display: block;
  background: var(--error-color);
  border-radius: 1rem;
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  min-height: 1.5rem;
  min-width: 1.5rem;
  max-height: 1.5rem;
  max-width: 1.5rem;
  z-index: 5555;
}

.alert-overlay.hidden {
  display: none;
}

/* Dialog Styles */
.ui-dialog {
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.ui-dialog .ui-dialog-content {
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
}

.ui-dialog .ui-dialog-titlebar {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 1rem;
}

.ui-dialog .ui-dialog-buttonpane {
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  margin-top: 0;
}

.ui-dialog .ui-dialog-buttonpane button {
  margin: 0 0.5rem;
}

/* Navigation Tabs */
.nav-tabs {
  --bs-nav-tabs-border-width: 1px;
  --bs-nav-tabs-border-color: var(--text-dark);
  --bs-nav-tabs-border-radius: var(--bs-border-radius);
  --bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--text-dark);
  --bs-nav-tabs-link-active-color: var(--text-dark);
  --bs-nav-tabs-link-active-bg: var(--secondary-color);
  --bs-nav-tabs-link-active-border-color: var(--text-dark);
  border-bottom: var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color);
}

.nav-tabs .nav-link {
  border: var(--bs-nav-tabs-border-width) solid var(--border-color);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-color: #424242;
  color: var(--text-dark);
}

.nav-tabs .nav-link.active {
  color: var(--text-dark);
  background-color: var(--secondary-color);
  border-color: var(--text-dark);
}

#manager-tab {
  position: relative;
}

/* Calendar Styles */
.ui-datepicker td.highlight-pending a, .highlight-pending {
  background-color: var(--warning-color);
  color: var(--text-dark);
  font-weight: bold;
}

.ui-datepicker td.highlight-approved a, .highlight-approved {
  background-color: var(--success-color);
  color: var(--text-dark);
  font-weight: bold;
}

.ui-datepicker td.highlight-preApproved a, .highlight-preApproved {
  background-color: #9c27b0;
  color: var(--text-light);
  font-weight: bold;
}

.ui-datepicker td.highlight-rejected a, .highlight-rejected {
  background-color: var(--error-color);
  color: var(--text-dark);
  font-weight: bold;
}

.ui-datepicker td.highlight-cancelled a, .highlight-cancelled {
  background-color: var(--info-color);
  color: var(--text-dark);
  font-weight: bold;
}

.ui-datepicker td.highlight-cancelReq a, .highlight-cancelReq {
  background-color: var(--pending-color);
  color: var(--text-dark);
}

/* Nav Pills Styles */
.nav-pills .nav-link.active, 
.nav-pills .show>.nav-link {
  color: var(--text-light);
  background-color: var(--primary-dark);
}

.nav-pills .nav-link {
  border-radius: 0.375rem;
  color: var(--text-light);
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.nav-link:focus, 
.nav-link:hover {
  color: var(--text-light);
  background-color: var(--primary-light);
}

/* Button Styles */
.btn-primary {
  --bs-btn-color: var(--text-light);
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-dark);
  --bs-btn-hover-color: var(--text-light);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: var(--text-light);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-disabled-color: var(--text-light);
  --bs-btn-disabled-bg: var(--primary-light);
  --bs-btn-disabled-border-color: var(--primary-color);
}

/* Table Styles */
.table-primary {
  --bs-table-color: var(--text-light);
  --bs-table-bg: var(--primary-color);
  --bs-table-border-color: var(--primary-dark);
  --bs-table-striped-bg: var(--primary-light);
  --bs-table-striped-color: var(--text-light);
  --bs-table-active-bg: var(--primary-light);
  --bs-table-active-color: var(--text-light);
  --bs-table-hover-bg: var(--secondary-dark);
  --bs-table-hover-color: var(--text-dark);
}

/* Form Check Styles */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Mini Calendar Grid */
.mini-calendar-grid {
  width: 100%;
  font-size: 0.9em;
  margin-bottom: 1em;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(41, 168, 124, 0.05);
  margin-bottom: 1rem;
}

.mini-calendar-grid .thead {
  font-weight: bold;
  background-color: #f2f2f2;
  margin-bottom: 0.2em;
}

.mini-calendar-grid .row {
  margin: 0;
}

.mini-calendar-grid .col {
  padding: 0.5em;
  border: 1px solid #ddd;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 2em;
}

.mini-calendar-grid .week-number {
  font-weight: bold;
  background-color: #e9ecef;
  justify-content: center;
}

.mini-calendar-grid .day-number {
  font-weight: bold;
  margin-bottom: 0.2em;
}

.mini-calendar-grid .day.requested-date {
  background-color: #d1e7dd;
  color: #0f5132;
}

.mini-calendar-grid .conflict-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.2em;
}

.mini-calendar-grid .conflict {
  background-color: #f8d7da;
  color: #842029;
  font-size: 0.7em;
  border-radius: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.1em 0.2em;
  margin-bottom: 0.1em;
  text-align: center;
  width: 80%;
}

.mini-calendar-grid .conflict.dept-true {
  background-color: #f39090;
  color: #664d03;
}

.mini-calendar-grid .conflict.site-true {
  background-color: #ffce79;
  color: #004085;
}

.mini-calendar-grid .conflict.other-true {
  background-color: #f5f5f5;
  color: #333;
}

.month-title {
  margin: 1em 0 0.5em;
  font-weight: bold;
}

/* Mobile Navigation Styles */
.mobile-nav-header {
  background-color: var(--primary-color);
  padding: 1rem;
  border-bottom: 2px solid var(--primary-dark);
}

.mobile-title-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-title {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}



.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile notification badge */
.mobile-notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Fallback mobile styles using JavaScript-detected mobile mode */
body.mobile-mode .main-nav {
  position: fixed;
  top: 0;
  left: -66.67%;
  width: 66.67%;
  height: 100vh;
  background-color: var(--primary-color);
  z-index: 1000;
  transition: left 0.3s ease;
  padding-top: 5rem;
  display: block !important;
}

body.mobile-mode .main-nav.open {
  left: 0;
}

body.mobile-mode .main-nav .nav-tabs {
  flex-direction: column;
  width: 100%;
  padding: 0 1rem;
}

body.mobile-mode .main-nav .nav-item {
  width: 100%;
  margin-bottom: 0.5rem;
}

body.mobile-mode .main-nav .nav-link {
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 1.2rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

body.mobile-mode .main-nav .nav-link.active {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

body.mobile-mode .mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 66.67%;
  width: 33.33%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

body.mobile-mode .mobile-menu-overlay:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

body.mobile-mode .mobile-menu-overlay.show {
  display: block;
}

body.mobile-mode .action-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  padding: 1rem;
  border-top: 2px solid var(--primary-dark);
  z-index: 100;
}

body.mobile-mode .action-controls .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

body.mobile-mode .main-container {
  padding-bottom: 5rem;
}

body.mobile-mode .tab-content {
  margin-top: 1rem;
}

/* Mobile Tab Navigation - Multiple breakpoints for better emulation support */
@media (max-width: 991px), (max-device-width: 991px), (max-width: 768px), (max-device-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: -66.67%; /* Start off-screen, covering 2/3 width */
    width: 66.67%; /* Cover 2/3 of the screen */
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: left 0.3s ease;
    padding-top: 5rem;
    display: block !important; /* Override Bootstrap's d-none */
  }

  .main-nav.open {
    left: 0;
  }

  .main-nav .nav-tabs {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .main-nav .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .main-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .main-nav .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--text-dark);
  }

  /* Overlay for mobile menu */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 66.67%; /* Start where the menu ends */
    width: 33.33%; /* Cover the remaining 1/3 of the screen */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .mobile-menu-overlay:hover {
    background-color: rgba(0, 0, 0, 0.6);
  }

  .mobile-menu-overlay.show {
    display: block;
  }

  /* Mobile Save Button - Always Visible */
  .action-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    border-top: 2px solid var(--primary-dark);
    z-index: 100;
  }

  .action-controls .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
  }

  /* Adjust main content for fixed footer */
  .main-container {
    padding-bottom: 8rem; /* Increased from 5rem to accommodate sticky button + breathing room */
  }

  /* Tab content adjustments */
  .tab-content {
    margin-top: 1rem;
  }
}

/* High-DPI Mobile Device Optimizations */
/*
@media (max-width: 991px), (max-device-width: 991px) {
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
      font-size: 42px;
      line-height: 1.6;
    }

    .main-container p,
    .main-container div,
    .main-container span {
      font-size: 2.25rem !important;
      line-height: 1.7 !important;
    }

    .leave-summary,
    .leave-summary p,
    .leave-summary div,
    .leave-summary span {
      font-size: 2.625rem !important;
      line-height: 1.8 !important;
      font-weight: 500 !important;
    }

    .form-label,
    label {
      font-size: 2.625rem !important;
      font-weight: 700 !important;
      margin-bottom: 1rem !important;
    }

    h1, .h1 {
      font-size: 5.25rem;
      line-height: 1.2;
      margin-bottom: 1.5rem;
    }

    h2, .h2 {
      font-size: 4.5rem;
      line-height: 1.3;
      margin-bottom: 1.25rem;
    }

    h3, .h3 {
      font-size: 3.75rem;
      line-height: 1.4;
      margin-bottom: 1rem;
    }

    h4, .h4 {
      font-size: 3.375rem;
      line-height: 1.4;
      margin-bottom: 0.875rem;
    }

    h5, .h5 {
      font-size: 3rem;
      line-height: 1.5;
      margin-bottom: 0.75rem;
    }

    h6, .h6 {
      font-size: 2.625rem;
      line-height: 1.5;
      margin-bottom: 0.75rem;
    }

    .form-control {
      font-size: 2.625rem;
      padding: 2.25rem 3rem;
      min-height: 7.5rem;
      border-radius: 1.5rem;
      border-width: 3px;
    }

    .form-text {
      font-size: 2.0625rem;
    }

    .btn {
      font-size: 2.625rem;
      padding: 2.25rem 4.125rem;
      min-height: 7.5rem;
      border-radius: 1.5rem;
      font-weight: 700;
      border-width: 3px;
    }

    .btn-sm {
      font-size: 2.25rem;
      padding: 1.875rem 3.375rem;
      min-height: 6.75rem;
    }

    .btn-lg {
      font-size: 3rem;
      padding: 2.625rem 5.25rem;
      min-height: 8.25rem;
    }

    .table {
      font-size: 2.25rem;
    }

    .table th {
      font-size: 2.625rem;
      padding: 2.25rem 1.875rem;
      font-weight: 700;
    }

    .table td {
      padding: 1.875rem 1.875rem;
    }

    .card {
      font-size: 2.25rem;
    }

    .card-header {
      font-size: 2.625rem;
      padding: 3rem 3.375rem;
      font-weight: 700;
    }

    .card-body {
      padding: 3.375rem;
    }

    .nav-link {
      font-size: 2.625rem;
      padding: 2.25rem 3.375rem;
      font-weight: 600;
    }

    .mobile-title {
      font-size: 4.5rem;
      font-weight: 700;
    }

    .action-controls .btn {
      font-size: 2.8125rem;
      padding: 2.625rem 3.75rem;
      font-weight: 700;
    }

    input[type="date"],
    input[type="datetime-local"],
    input[type="time"],
    select {
      font-size: 3rem;
      padding: 2.625rem 3.375rem;
      min-height: 8.25rem;
      border-width: 3px;
    }

    .date-picker-wrapper {
      font-size: 3rem;
    }

    .date-picker-wrapper .form-control {
      font-size: 3rem;
      padding: 2.625rem 3.375rem;
      min-height: 8.25rem;
    }

    .date-picker-wrapper {
      display: none !important;
    }

    .native-date-inputs {
      display: block !important;
    }

    .native-date-inputs .form-control {
      font-size: 2.625rem !important;
      padding: 2.25rem 3rem !important;
      min-height: 7.5rem !important;
      border-radius: 1.5rem !important;
      border-width: 3px !important;
      margin-bottom: 1rem !important;
    }

    .native-date-inputs .form-label {
      font-size: 2.625rem !important;
      font-weight: 700 !important;
      margin-bottom: 1rem !important;
    }

    .input-warning {
      border-color: #dc3545 !important;
      border-width: 3px !important;
      box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    }

    .input-warning:focus {
      border-color: #dc3545 !important;
      box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    }

    .date-picker-wrapper .calendar {
      font-size: 2.625rem !important;
    }

    .date-picker-wrapper .calendar th,
    .date-picker-wrapper .calendar td {
      font-size: 2.625rem !important;
      padding: 1.5rem !important;
      min-height: 4.5rem !important;
    }

    .date-picker-wrapper .calendar .day {
      font-size: 2.625rem !important;
      padding: 1.125rem !important;
      min-width: 4.5rem !important;
      min-height: 4.5rem !important;
    }

    .alert {
      font-size: 2.25rem;
      padding: 2.25rem 3rem;
      border-width: 3px;
    }

    .modal-content {
      font-size: 2.25rem;
    }

    .modal-header {
      font-size: 2.625rem;
      padding: 3rem 3.375rem;
      font-weight: 700;
    }

    .modal-body {
      padding: 3.375rem;
    }

    .modal-footer {
      padding: 3rem 3.375rem;
    }

    .mb-3 {
      margin-bottom: 3.75rem !important;
    }

    .mb-4 {
      margin-bottom: 4.5rem !important;
    }

    .mt-3 {
      margin-top: 3.75rem !important;
    }

    .mt-4 {
      margin-top: 4.5rem !important;
    }

    .p-3 {
      padding: 3.75rem !important;
    }

    .p-4 {
      padding: 4.5rem !important;
    }

    .main-container {
      padding-bottom: 12rem !important;
    }

    .mobile-request-cards {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .request-card {
      background: #e6f7f0;
      border: 3px solid var(--primary-color);
      border-radius: 1.5rem;
      padding: 2.25rem;
      box-shadow: 0 3px 12px rgba(41, 168, 124, 0.15);
      transition: all 0.3s ease;
    }

    .request-card:hover {
      box-shadow: 0 6px 18px rgba(41, 168, 124, 0.25);
      transform: translateY(-2px);
    }

    .request-card.cancelled-card {
      opacity: 0.8;
      background: #f5f5f5;
      border-color: #ccc;
    }

    .request-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .request-date-range {
      font-size: 2.25rem;
      font-weight: 700;
      color: var(--primary-dark);
      line-height: 1.3;
    }

    .request-status {
      font-size: 1.875rem;
      font-weight: 600;
      padding: 0.75rem 1.5rem;
      border-radius: 0.75rem;
      text-align: center;
      min-width: fit-content;
    }

    .status-pending { background: #f1ab7c; color: #000; }
    .status-approved { background: #29a87c; color: #fff; }
    .status-preapproved { background: #9c27b0; color: #fff; }
    .status-rejected { background: #e78484; color: #fff; }
    .status-cancelreq { background: #f1ab7c; color: #000; }
    .status-cancelled { background: #ccc; color: #666; }

    .request-card-body {
      margin-bottom: 1.5rem;
    }

    .request-hours {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .hours-label {
      font-size: 1.875rem;
      font-weight: 600;
      color: var(--primary-dark);
    }

    .hours-value {
      font-size: 2.25rem;
      font-weight: 700;
      color: var(--primary-color);
    }

    .request-card-footer {
      display: flex;
      justify-content: flex-end;
    }

    .request-card-footer .btn {
      font-size: 1.875rem;
      padding: 1.125rem 2.25rem;
      border-radius: 0.75rem;
      font-weight: 600;
      min-width: fit-content;
    }

    .main-nav .nav-link {
      font-size: 2.8125rem;
      padding: 2.625rem 3.375rem;
      font-weight: 600;
    }

    .mobile-manager-cards {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .manager-request-card {
      background: #e6f7f0;
      border: 3px solid var(--primary-color);
      border-radius: 1.5rem;
      padding: 2.25rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 3px 12px rgba(41, 168, 124, 0.15);
      transition: all 0.3s ease;
    }

    .manager-request-card:hover {
      box-shadow: 0 6px 18px rgba(41, 168, 124, 0.25);
      transform: translateY(-2px);
    }

    .manager-request-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .request-employee {
      font-size: 2.25rem;
      font-weight: 700;
      color: var(--primary-dark);
      line-height: 1.3;
    }

    .request-status {
      font-size: 1.875rem;
      font-weight: 600;
      padding: 0.75rem 1.5rem;
      border-radius: 0.75rem;
      text-align: center;
      min-width: fit-content;
    }

    .status-pending { background: #f1ab7c; color: #000; }
    .status-cancelreq { background: #f1ab7c; color: #000; }
    .status-approved { background: #29a87c; color: #fff; }
    .status-cancelled { background: #ccc; color: #666; }
    .status-rejected { background: #e78484; color: #fff; }
    .status-unknown { background: #f0f0f0; color: #666; }

    .manager-request-body {
      margin-bottom: 1.5rem;
    }

    .request-dates, .request-hours {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }

    .dates-label, .hours-label {
      font-size: 1.875rem;
      font-weight: 600;
      color: var(--primary-dark);
      min-width: fit-content;
    }

    .dates-value, .hours-value {
      font-size: 2.25rem;
      font-weight: 700;
      color: var(--primary-color);
    }

    .request-conflicts {
      margin-top: 1.5rem;
      padding: 1.5rem;
      background: #fff3cd;
      border: 2px solid #ffc107;
      border-radius: 0.75rem;
    }

    .conflicts-title {
      font-size: 1.875rem;
      font-weight: 700;
      color: #856404;
      margin-bottom: 0.75rem;
    }

    .conflict-type {
      font-size: 1.5rem;
      font-weight: 600;
      color: #856404;
      margin: 0.75rem 0 0.375rem 0;
    }

    .conflict-item {
      font-size: 1.5rem;
      padding: 0.375rem 0.75rem;
      margin: 0.375rem 0;
      border-radius: 0.375rem;
      background: #fff;
      border-left: 4px solid #ffc107;
      color: #333;
    }

    .dept-conflict { 
      border-left-color: #e78484; 
      background: #ffeaea;
      font-weight: 600;
    }
    .site-conflict { 
      border-left-color: #17a2b8; 
      background: #e7f7f9;
      font-weight: 500;
      opacity: 0.9;
    }
    .other-conflict { 
      border-left-color: #6c757d; 
      background: #f8f9fa;
      font-weight: 400;
      opacity: 0.8;
    }

    .manager-request-footer {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
    }

    .manager-request-footer .btn {
      font-size: 1.875rem;
      padding: 1.125rem 2.25rem;
      border-radius: 0.75rem;
      font-weight: 600;
      min-width: fit-content;
      flex: 1;
      max-width: 200px;
    }

    .mobile-approved-cards {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .approved-request-card {
      background: #f8f9fa;
      border: 3px solid #dee2e6;
      border-radius: 1.5rem;
      padding: 2.25rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }

    .approved-request-card:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transform: translateY(-1px);
    }

    .approved-request-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .approved-request-body {
      margin-bottom: 1.5rem;
    }

    .approved-request-footer {
      display: flex;
      justify-content: center;
    }

    .approved-request-footer .btn {
      font-size: 1.875rem;
      padding: 1.125rem 2.25rem;
      border-radius: 0.75rem;
      font-weight: 600;
      min-width: fit-content;
    }

    .nav-link[data-bs-target="#admin-tab-pane"] {
      display: none !important;
    }

    .mobile-menu-toggle {
      width: 5.5rem;
      height: 5.5rem;
      padding: 1.25rem;
      margin: 0.5rem;
    }

    .hamburger-line {
      height: 7.5px;
      margin: 1px 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
      opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
      transform: rotate(-45deg) translate(8px, -7px);
    }

    .mobile-notification-badge {
      position: absolute;
      top: 8px;
      right: 4px;
      background: #dc3545;
      color: white;
      border-radius: 50%;
      min-width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 700;
      border: 3px solid white;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
      z-index: 1000;
    }
  }
}
*/

.role-section-wrapper {
  border-bottom: 0.1rem solid #1d8d66;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.role-section-wrapper.admin-highlight {
  background: #fff9f2;
  border: 0.2rem dashed #f0ad4e;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: inset 0 0 0.75rem rgba(240, 173, 78, 0.2);
  color: #4a3515;
}

.role-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.role-section-badge {
  font-size: 1.125rem;
  font-weight: 600;
  background: #f0ad4e;
  color: #4a3515;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-section-wrapper.admin-highlight h2 {
  color: #a35600;
}

.role-section-wrapper.admin-highlight a,
.role-section-wrapper.admin-highlight span,
.role-section-wrapper.admin-highlight p {
  color: inherit;
}

/* Mobile Responsiveness */
@media (max-width: 991px), (max-device-width: 991px) {
  body {
    font-size: 1.2em;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
  }

  label {
    font-size: 1.1em;
  }

  .small-font {
    font-size: 0.7em !important;
  }

  input[type="text"],
  input[type="number"],
  input[type="time"],
  .form-control,
  .btn,
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 1em;
    height: auto;
  }

  .btn.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8em;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
  }

  #hoursTaken {
    font-size: 1em;
  }

  #time-slider-mob {
    padding: 0.25rem 0;
  }

  input[type="range"].form-range {
    height: 1.5rem;
    padding: 0.25rem 0;
  }

  input[type="range"].form-range::-webkit-slider-thumb {
    width: 2rem;
    height: 2rem;
    margin-top: -0.75rem;
  }

  input[type="range"].form-range::-moz-range-thumb {
    width: 2rem;
    height: 2rem;
    margin-top: -0.75rem;
  }

  input[type="range"].form-range::-ms-thumb {
    width: 2rem;
    height: 2rem;
    margin-top: -0.75rem;
  }

  /* Dialog Mobile Optimization */
  .ui-dialog {
    width: 95vw !important;
    max-height: 80vh;
    margin: 10vh auto !important;
  }

  .ui-dialog .ui-dialog-content {
    padding: 0.75rem;
    max-height: calc(80vh - 100px);
  }

  .ui-dialog .ui-dialog-titlebar {
    padding: 0.75rem;
  }

  .ui-dialog .ui-dialog-buttonpane {
    padding: 0.75rem;
  }

  .ui-dialog .ui-dialog-buttonpane button {
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
  }

  /* Mobile Request Cards - Regular Mobile */
  .mobile-request-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .request-card {
    background: #e6f7f0; /* Light green background */
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(41, 168, 124, 0.15);
    transition: all 0.3s ease;
  }

  .request-card:hover {
    box-shadow: 0 4px 12px rgba(41, 168, 124, 0.25);
    transform: translateY(-2px);
  }

  .request-card.cancelled-card {
    opacity: 0.6;
    background: #f5f5f5;
    border-color: #ccc;
  }

  .request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .request-date-range {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
  }

  .request-status {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    min-width: fit-content;
  }

  .status-pending { background: #f1ab7c; color: #000; }
  .status-approved { background: #29a87c; color: #fff; }
  .status-preapproved { background: #9c27b0; color: #fff; }
  .status-rejected { background: #e78484; color: #fff; }
  .status-cancelreq { background: #f1ab7c; color: #000; }
  .status-cancelled { background: #ccc; color: #666; }

  .request-card-body {
    margin-bottom: 1rem;
  }

  .request-remaining {
    color: var(--primary-dark);
  }
  .request-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hours-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
  }

  .hours-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .request-card-footer {
    display: flex;
    justify-content: flex-end;
  }

    .request-card-footer .btn {
      font-size: 1.25rem;
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 600;
      min-width: fit-content;
    }

    /* Manager Mobile Cards - Regular Mobile */
    .mobile-manager-cards {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .manager-request-card {
      background: #e6f7f0;
      border: 2px solid var(--primary-color);
      border-radius: 1rem;
      padding: 1.5rem;
      margin-bottom: 1rem;
      box-shadow: 0 2px 8px rgba(41, 168, 124, 0.15);
      transition: all 0.3s ease;
    }

    .manager-request-card:hover {
      box-shadow: 0 4px 12px rgba(41, 168, 124, 0.25);
      transform: translateY(-2px);
    }

    .manager-request-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .request-employee {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-dark);
      line-height: 1.3;
    }

    .request-status {
      font-size: 1.25rem;
      font-weight: 600;
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      text-align: center;
      min-width: fit-content;
    }

    .status-pending { background: #f1ab7c; color: #000; }
    .status-cancelreq { background: #f1ab7c; color: #000; }
    .status-approved { background: #29a87c; color: #fff; }
    .status-cancelled { background: #ccc; color: #666; }
    .status-rejected { background: #e78484; color: #fff; }
    .status-unknown { background: #f0f0f0; color: #666; }

    .manager-request-body {
      margin-bottom: 1rem;
    }

    .request-dates, .request-hours {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .dates-label, .hours-label {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--primary-dark);
      min-width: fit-content;
    }

    .dates-value, .hours-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
    }

    .request-conflicts {
      margin-top: 1rem;
      padding: 1rem;
      background: #fff3cd;
      border: 2px solid #ffc107;
      border-radius: 0.5rem;
    }

    .conflicts-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #856404;
      margin-bottom: 0.5rem;
    }

    .conflict-type {
      font-size: 1rem;
      font-weight: 600;
      color: #856404;
      margin: 0.5rem 0 0.25rem 0;
    }

    .conflict-item {
      font-size: 1rem;
      padding: 0.25rem 0.5rem;
      margin: 0.25rem 0;
      border-radius: 0.25rem;
      background: #fff;
      border-left: 3px solid #ffc107;
      color: #333;
    }

    .dept-conflict { 
      border-left-color: #e78484; 
      background: #ffeaea;
      font-weight: 600;
    }
    .site-conflict { 
      border-left-color: #17a2b8; 
      background: #e7f7f9;
      font-weight: 500;
      opacity: 0.9;
    }
    .other-conflict { 
      border-left-color: #6c757d; 
      background: #f8f9fa;
      font-weight: 400;
      opacity: 0.8;
    }

    .manager-request-footer {
      display: flex;
      gap: 1rem;
      justify-content: center;
    }

    .manager-request-footer .btn {
      font-size: 1.25rem;
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 600;
      min-width: fit-content;
      flex: 1;
      max-width: 150px;
    }

    /* Mobile Approved Cards - Regular Mobile */
    .mobile-approved-cards {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .approved-request-card {
      background: #f8f9fa;
      border: 2px solid #dee2e6;
      border-radius: 1rem;
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }

    .approved-request-card:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transform: translateY(-1px);
    }

    .approved-request-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .approved-request-body {
      margin-bottom: 1rem;
    }

    .approved-request-footer {
      display: flex;
      justify-content: center;
    }

    .approved-request-footer .btn {
      font-size: 1.25rem;
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 600;
      min-width: fit-content;
    }

    /* Hide admin tab on mobile */
    .nav-link[data-bs-target="#admin-tab-pane"] {
      display: none !important;
    }
  }

/* Accessibility Styles */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus Styles */
:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

  /* --- Custom Fonts --- */
@font-face {
  font-family: 'atype';
  src: url('https://glass-onion.com/cdn/shop/t/37/assets/AType_Stencil.woff2?v=182570324496506315351695887485') format('woff2'),
       url('https://glass-onion.com/cdn/shop/t/37/assets/AType_Stencil.woff?v=180251697276022649061695887485') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url("https://p.typekit.net/p.css?s=1&k=cqp1uzc&ht=tk&f=24539.24540.24547.24548&a=82769951&app=typekit&e=css");

/* Table Styles */
.table-responsive {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--primary-color);
}

.sticky-header th {
  background-color: var(--primary-color);
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
  padding: 12px;
  border-bottom: 2px solid var(--text-light);
}

.sticky-header th:hover {
  background-color: var(--primary-dark);
}

.sticky-header th.sortable {
  position: relative;
  padding-right: 25px;
}

.sticky-header th.sortable i {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.sticky-header th.asc i:before {
  content: "\f0de";  /* fa-sort-up */
  opacity: 1;
}

.sticky-header th.desc i:before {
  content: "\f0dd";  /* fa-sort-down */
  opacity: 1;
}

.employee-table tbody tr {
  cursor: pointer;
}

.employee-table tbody tr:hover {
  background-color: var(--primary-light) !important;
}

/* Search Box Styles */
.search-container {
  position: relative;
}

.search-container input {
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.search-container input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 0.2rem rgba(41, 168, 124, 0.25);
  outline: none;
}

.search-container input::placeholder {
  color: #999;
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 2rem;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

/* --- Custom Accordion Styles --- */
.custom-accordion .accordion-item {
  background: #e6f7f0; /* Pale green, or use #f3c5df for lilac */
  border: 1px solid var(--primary-dark);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.custom-accordion-header {
  background: #e9d3e0; /* Deeper lilac */
  color: var(--primary-dark);
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px 8px 0 0;
}

.custom-accordion-header:hover {
  background: #f3c5df; /* Tertiary lilac for hover */
  color: var(--primary-dark);
}

.custom-accordion-header.active,
.custom-accordion-header[aria-expanded="true"] {
  background: #dba8c6; /* Darker pink */
  color: var(--text-light);
  border-color: #bf87a7; /* Even darker pink */
}

.custom-accordion-content {
  background: #e6f7f0; /* Match the item background */
  padding: 1rem 1.5rem;
  border-radius: 0 0 8px 8px;
}

.mini-calendar-grid.container {
  padding-top: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-bottom: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

/* Centralised modal spinner styles */
.modal-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0 1em 0;
}
.modal-spinner-message {
  font-size: 1.1em;
  color: #26a69a;
  margin-bottom: 0.7em;
  font-weight: 500;
}
.lds-spinner {
  color: official;
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-spinner div {
  transform-origin: 32px 32px;
  animation: lds-spinner 1.2s linear infinite;
  position: absolute;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 29px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #26a69a;
}
.lds-spinner div:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
.lds-spinner div:nth-child(2) { transform: rotate(30deg); animation-delay: -1s; }
.lds-spinner div:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
.lds-spinner div:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
.lds-spinner div:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
.lds-spinner div:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
.lds-spinner div:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
.lds-spinner div:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
.lds-spinner div:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
.lds-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.lds-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.lds-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }
@keyframes lds-spinner {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Full-page loader overlay */
.loadModal .modal-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loadModal .modal-spinner-message {
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 1em;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.loadModal .lds-spinner div:after {
  background: #fff;
}
/* End full-page loader overlay */

/* Employee Table and Form Styles */
.employee-table th, .employee-table td {
  font-size: 0.9rem;
  padding: 0.5rem;
}
.employee-table .text-success {
  font-weight: 500;
}
.employee-table .text-warning {
  font-weight: 500;
}
.employee-table .text-muted {
  font-style: italic;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.form-text {
  font-size: 0.8rem;
}
.border-bottom {
  border-bottom: 2px solid #dee2e6 !important;
}

/* Ensure jQuery UI dialog is above alert-overlay */
.ui-dialog {
  z-index: 6000 !important;
}

/* Birthday calculation table styling (match pre-approved leave tables) */
#birthday-calc-table {
  background: #eafaf1;
}
#birthday-calc-table th, #birthday-calc-table td {
  vertical-align: middle;
}
#birthday-calc-table tr.selected {
  background-color: #d1f2eb;
}
#birthday-calc-table tbody tr:hover {
  background-color: #f2f6f7;
}

.pending-change-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.pending-change-row:hover {
  background-color: #e0e0e0 !important;
}

.pending-change-row.even-row {
  background-color: #dcdcdc;
}

.pending-change-row.odd-row {
  background-color: #cccccc;
}

.change-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.change-icon {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.change-icon i {
  font-size: 16px;
}

.change-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.change-action {
  margin-left: 16px;
}

.change-action .btn {
  font-size: 12px;
  padding: 4px 8px;
}

#pending-changes-section .card {
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#pending-changes-section .card-header {
  background-color: #1d8d66;
  color: white;
  border-bottom: none;
}

#pending-changes-section .card-body {
  padding: 0;
}

#pending-changes-container {
  min-height: 60px;
}

#pending-changes-container .text-muted {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Mobile-specific styling for pending changes */
@media (max-width: 991px) {
  .pending-change-row {
    padding: 16px 12px;
  }
  
  .change-text {
    font-size: 13px;
    line-height: 1.4;
    color: #333 !important;
  }
  
  .change-text strong {
    color: #000 !important;
    font-weight: bold;
  }
  
  .mobile-button {
    padding: 8px 12px !important;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .change-icon {
    margin-right: 8px;
  }
  
  .change-action {
    margin-left: 8px;
  }
}