/**
 * MANAGER DASHBOARD CSS - MODERN NAVY PROFESSIONAL THEME
 * Cohesive design matching employee app aesthetic
 * Clean, modern, trustworthy
 */

/* ===== 1. CSS RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fa;
  color: #2c3e50;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ===== 2. DESIGN SYSTEM VARIABLES ===== */
:root {
  /* Brand Colors - Slate Blue Professional Theme (matching employee app) */
  --slate-dark: #1e293b;
  --slate-medium: #334155;
  --navy-dark: #2c3e50;
  --navy-medium: #34495e;
  --blue-primary: #3498db;
  --blue-darker: #2980b9;
  --blue-light: #5dade2;

  /* Status Colors */
  --green-success: #27ae60;
  --green-darker: #229954;
  --orange-warning: #e67e22;
  --orange-darker: #d35400;
  --red-danger: #e74c3c;
  --red-darker: #c0392b;
  --teal-info: #1abc9c;
  --teal-darker: #16a085;

  /* Additional card colors for better differentiation */
  --red-bright: #dc2626;
  --yellow-warning: #eab308;
  --blue-info: #2563eb;
  --amber-warning: #f59e0b;
  --purple-security: #9333ea;

  /* Neutral Colors */
  --white: #ffffff;
  --gray-lightest: #f8f9fa;
  --gray-light: #ecf0f1;
  --gray-medium: #bdc3c7;
  --gray-dark: #7f8c8d;
  --text-dark: #2c3e50;
  --text-muted: #7f8c8d;
  --border-color: #ecf0f1;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 28px rgba(0, 0, 0, 0.15);
  --shadow-button: 0 4px 12px rgba(52, 152, 219, 0.3);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 2rem;
  --font-4xl: 2.5rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ===== 3. LAYOUT - DASHBOARD HEADER ===== */
.manager-dashboard {
  background: var(--gray-lightest);
  min-height: 100vh;
}

.dashboard-header {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 100;
}

.dashboard-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary) 0%, var(--teal-info) 50%, var(--blue-primary) 100%);
}

.dashboard-header .container-fluid {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.dashboard-header__title-section {
  flex: 1;
}

.dashboard-header__title {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dashboard-header__title i {
  color: var(--blue-light);
  font-size: var(--font-2xl);
}

.dashboard-header__subtitle {
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
}

.dashboard-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Logout Button */
.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Re-enrollment Alert Button */
#reenrollmentAlert {
  position: relative;
}

#reenrollmentAlertBtn {
  background: rgba(230, 126, 34, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 126, 34, 0.3);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

#reenrollmentAlertBtn:hover {
  background: rgba(230, 126, 34, 0.25);
  transform: translateY(-1px);
}

#reenrollmentCount {
  background: var(--red-danger);
  color: var(--white);
  font-size: var(--font-xs);
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Security Alert Button - Match re-enrollment styling */
#securityAlert {
  position: relative;
}

#securityAlertBtn {
  background: rgba(231, 76, 60, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

#securityAlertBtn:hover {
  background: rgba(231, 76, 60, 0.25);
  transform: translateY(-1px);
}

#securityCount {
  background: var(--red-danger);
  color: var(--white);
  font-size: var(--font-xs);
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ===== 4. CONTAINER & SPACING ===== */
.container-fluid {
  width: 100%;
  padding-right: var(--space-xl);
  padding-left: var(--space-xl);
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(-1 * var(--space-sm));
  margin-left: calc(-1 * var(--space-sm));
}

.col-xl-3, .col-lg-6, .col-md-6, .col-12 {
  position: relative;
  width: 100%;
  padding-right: var(--space-sm);
  padding-left: var(--space-sm);
}

.g-4 {
  --bs-gutter-y: var(--space-lg);
  --bs-gutter-x: var(--space-lg);
}

.mb-4 {
  margin-bottom: var(--space-lg) !important;
}

.mb-6 {
  margin-bottom: var(--space-2xl) !important;
}

/* ===== 5. STATUS CARDS (MODERN ELEVATED DESIGN) ===== */
.status-card {
  background: linear-gradient(135deg, var(--white) 0%, #fafbfc 100%);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue-primary);
}

.status-card-pending::before { background: var(--orange-warning); }
.status-card-approved::before { background: var(--green-success); }
.status-card-flagged::before { background: var(--red-danger); }
.status-card-info::before { background: var(--blue-primary); }
.status-card-critical::before { background: var(--red-bright); }
.status-card-high::before { background: var(--yellow-warning); }
.status-card-medium::before { background: var(--blue-info); }
.status-card-gps::before { background: var(--red-bright); }
.status-card-network::before { background: var(--amber-warning); }
.status-card-beacon::before { background: var(--purple-security); }

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.status-card-title {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.status-card-value {
  font-size: var(--font-4xl);
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
  margin: 0;
}

.status-card-pending .status-card-value { color: var(--orange-warning); }
.status-card-approved .status-card-value { color: var(--green-success); }
.status-card-flagged .status-card-value { color: var(--red-danger); }
.status-card-info .status-card-value { color: var(--blue-primary); }
.status-card-critical .status-card-value { color: var(--red-bright); }
.status-card-high .status-card-value { color: var(--yellow-warning); }
.status-card-medium .status-card-value { color: var(--blue-info); }
.status-card-gps .status-card-value { color: var(--red-bright); }
.status-card-network .status-card-value { color: var(--amber-warning); }
.status-card-beacon .status-card-value { color: var(--purple-security); }

/* Status card description text */
.status-card-description {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin: var(--space-sm) 0;
  line-height: 1.4;
}

/* Status card action button */
.status-card-action {
  margin-top: var(--space-md);
}

/* ===== 6. FILTERS & SEARCH SECTION ===== */
.filters-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
}

.filters-section__header {
  padding: var(--space-lg) var(--space-xl);
  background: var(--gray-light);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filters-section__title {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filters-section__title i {
  color: var(--blue-primary);
}

.filters-section__body {
  padding: var(--space-xl);
}

.collapse.show {
  display: block;
}

.collapse:not(.show) {
  display: none;
}

/* ===== 7. FORM ELEMENTS ===== */
.form-label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.form-control, .form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-sm);
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
  color: var(--gray-dark);
}

.input-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.input-group-text {
  background: var(--gray-light);
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--gray-dark);
}

.input-group .form-control {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.row.g-3 {
  gap: var(--space-md);
}

.col-lg-3, .col-lg-2 {
  flex: 1;
  min-width: 200px;
}

/* ===== 8. PROFESSIONAL CARD SECTIONS ===== */
.card-professional {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
}

/* Remove bottom margin from cards inside expandable sections to prevent double spacing */
#reenrollmentSection .card-professional,
#securityFlaggedSection .card-professional {
  margin-bottom: 0;
}

/* Minimal padding - pixel-perfect alignment */
#reenrollmentSection .card-professional__body,
#securityFlaggedSection .card-professional__body {
  padding: 0 var(--space-xs) 0 calc(var(--space-xs) + 4px);
}

.card-professional__header {
  padding: var(--space-lg) var(--space-xl);
  background: var(--gray-light);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-professional__title {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 var(--space-xs) 0;
}

.card-professional__body {
  padding: 0;
}

.card-professional__footer {
  padding: var(--space-lg) var(--space-xl);
  background: var(--gray-light);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ===== 9. TABLE (MODERN NAVY HEADER) ===== */
.table-responsive {
  overflow-x: auto;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-modern__header {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-modern__header th {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--blue-primary);
}

.table-modern__header th i {
  color: var(--blue-light);
  margin-left: var(--space-xs);
}

/* Center-align Actions header to match data cells */
.table-modern__header th.table-modern__actions {
  text-align: center;
}

.table-modern__sortable {
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-base);
}

.table-modern__sortable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.table-modern tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-base);
}

.table-modern tbody tr:hover {
  background: var(--gray-lightest);
}

.table-modern tbody td {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-sm);
  color: var(--text-dark);
}

.table-modern__checkbox {
  width: 40px;
  text-align: center;
}

/* Fixed column widths for consistent alignment */
.table-modern th:nth-child(2),
.table-modern td:nth-child(2) {
  width: 180px;
  min-width: 180px;
  text-align: left;
}

.table-modern th:nth-child(3),
.table-modern td:nth-child(3) {
  width: 160px;
  min-width: 160px;
  text-align: left;
}

.table-modern th:nth-child(4),
.table-modern td:nth-child(4) {
  width: 100px;
  min-width: 100px;
  text-align: right;
  padding-right: 12px;
}

.table-modern th:nth-child(5),
.table-modern td:nth-child(5) {
  width: 120px;
  min-width: 120px;
  text-align: center;
}

.table-modern th:nth-child(6),
.table-modern td:nth-child(6) {
  width: 110px;
  min-width: 110px;
  text-align: center;
}

.table-modern th:nth-child(7),
.table-modern td:nth-child(7) {
  width: 120px;
  min-width: 120px;
  text-align: left;
}

.table-modern__actions {
  width: 140px;
  text-align: center;
}

/* Employee info cell */
.employee-info strong {
  font-weight: 600;
  color: var(--text-dark);
}

.employee-info small {
  color: var(--text-muted);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge-pending {
  background: rgba(230, 126, 34, 0.1);
  color: var(--orange-warning);
}

.status-badge-approved {
  background: rgba(39, 174, 96, 0.1);
  color: var(--green-success);
}

.status-badge-rejected {
  background: rgba(231, 76, 60, 0.1);
  color: var(--red-danger);
}

/* Quality badge - container only, Bootstrap classes provide styling */
.quality-badge {
  display: inline-block;
  /* No background, padding, or colors - let child badge handle all styling */
}

/* ===== 10. BUTTONS & ACTIONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--font-xs);
}

/* Primary button (Blue gradient) */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-darker) 100%);
  color: var(--white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

/* Success button (Green) */
.btn-success {
  background: linear-gradient(135deg, var(--green-success) 0%, var(--green-darker) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

/* Danger button (Red) */
.btn-danger {
  background: linear-gradient(135deg, var(--red-danger) 0%, var(--red-darker) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Outline buttons */
.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary);
}

.btn-outline-primary:hover {
  background: var(--blue-primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-success {
  background: transparent;
  border: 2px solid var(--green-success);
  color: var(--green-success);
}

.btn-outline-success:hover {
  background: var(--green-success);
  color: var(--white);
}

.btn-outline-danger {
  background: transparent;
  border: 2px solid var(--red-danger);
  color: var(--red-danger);
}

.btn-outline-danger:hover {
  background: var(--red-danger);
  color: var(--white);
}

.btn-outline-secondary {
  background: transparent;
  border: 2px solid var(--gray-medium);
  color: var(--gray-dark);
}

.btn-outline-secondary:hover {
  background: var(--gray-medium);
  color: var(--white);
}

.btn-outline-warning {
  background: transparent;
  border: 2px solid var(--orange-warning);
  color: var(--orange-warning);
}

.btn-outline-warning:hover {
  background: var(--orange-warning);
  color: var(--white);
}

.btn-outline-info {
  background: transparent;
  border: 2px solid var(--blue-info);
  color: var(--blue-info);
}

.btn-outline-info:hover {
  background: var(--blue-info);
  color: var(--white);
}

.btn-outline-purple {
  background: transparent;
  border: 2px solid var(--purple-security);
  color: var(--purple-security);
}

.btn-outline-purple:hover {
  background: var(--purple-security);
  color: var(--white);
}

/* Button group */
.btn-group {
  display: inline-flex;
  gap: 0.25rem;
}

.btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: var(--font-xs);
}

/* ===== 11. PAGINATION ===== */
.pagination {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.page-item .page-link {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.page-item.active .page-link {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page-item:not(.disabled):not(.active) .page-link:hover {
  background: var(--gray-lightest);
}

/* ===== 12. MODAL (LOGOUT CONFIRMATION) ===== */
.logout-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.logout-modal-overlay.show {
  display: flex;
}

.logout-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: var(--gray-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3,
.modal-title {
  margin: 0;
  flex: 1;
  font-size: var(--font-xl);
  color: var(--text-dark);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-body p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-dark);
}

/* ===== SECURITY MODAL COMPONENTS ===== */

/* Employee info section */
.security-modal-employee-info {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.security-modal-info-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.security-modal-info-row:last-child {
  margin-bottom: 0;
}

.security-modal-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 5rem;
}

.security-modal-value {
  color: var(--text-medium);
}

/* Alert boxes with icons */
.security-modal-alert {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.security-modal-alert:last-child {
  margin-bottom: 0;
}

.security-modal-alert-danger {
  background: #fee;
  border: 1px solid #fcc;
}

.security-modal-alert-info {
  background: #fef8e7;
  border: 1px solid #f9e79f;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.security-modal-alert-info > i {
  color: #f39c12;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.security-modal-alert-info > span {
  flex: 1;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Alert header with icon */
.security-modal-alert-header {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.security-modal-alert-header > i {
  color: #c0392b;
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.security-modal-alert-header > span {
  flex: 1;
  font-weight: 600;
  color: #c0392b;
  line-height: 1.5;
}

/* Failures list */
.security-modal-failures-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.security-modal-failures-list > li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  color: #c0392b;
}

.security-modal-failures-list > li > i {
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.security-modal-failures-list > li > span {
  flex: 1;
  line-height: 1.5;
}

/* Bulk stats */
.security-modal-stats {
  margin: var(--space-md) 0;
}

.security-modal-stat {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
}

.security-modal-stat-label {
  font-weight: 500;
  color: var(--text-dark);
}

.security-modal-stat-value {
  font-weight: 600;
  color: var(--text-dark);
}

.security-modal-stat-danger {
  color: #c0392b;
}

.security-modal-failures-summary {
  margin: var(--space-sm) 0 0 0;
  padding: var(--space-sm);
  background: rgba(192, 57, 43, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #c0392b;
}

.modal-actions {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

.logout-modal .btn-cancel,
.logout-modal .btn-logout {
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  min-width: 100px;
}

.logout-modal .btn-cancel {
  background: var(--gray-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.logout-modal .btn-cancel:hover {
  background: #e9ecef;
  color: var(--text-dark);
}

.logout-modal .btn-logout {
  background: var(--red-danger);
  color: white;
}

.logout-modal .btn-logout:hover {
  background: var(--red-darker);
}

.logout-modal .btn-logout:focus,
.logout-modal .btn-cancel:focus {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

/* Timesheet Modal Specific Styles */
.timesheet-modal-content {
  max-width: 1450px;
  width: 96%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.timesheet-modal-content .modal-body {
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  overflow-x: auto;
}

.modal-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: var(--font-lg);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--gray-light);
  color: var(--text-dark);
}

.timesheet-modal-data {
  padding: var(--space-sm) 0;
}

.timesheet-info-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.timesheet-info-section h4 {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-lg);
  color: var(--text-dark);
}

.timesheet-meta-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.timesheet-meta-section p {
  margin: var(--space-xs) 0;
  font-size: var(--font-sm);
  color: var(--text-dark);
}

.timesheet-entries-section h5 {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-md);
  color: var(--text-dark);
}

.timesheet-entries-table {
  width: 100%;
  margin-top: var(--space-md);
  border-collapse: collapse;
}

.timesheet-entries-table th,
.timesheet-entries-table td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-sm);
}

.timesheet-entries-table th {
  background: var(--gray-light);
  font-weight: 600;
  color: var(--text-dark);
}

.timesheet-entries-table tbody tr:hover {
  background: var(--gray-lighter);
}

.timesheet-modal-content .btn-approve,
.timesheet-modal-content .btn-reject {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.timesheet-modal-content .btn-approve {
  background: var(--green-success);
  color: white;
}

.timesheet-modal-content .btn-approve:hover {
  background: #28a745;
}

.timesheet-modal-content .btn-reject {
  background: var(--red-danger);
  color: white;
}

.timesheet-modal-content .btn-reject:hover {
  background: var(--red-darker);
}

/* Disabled state for modal action buttons */
.timesheet-modal-content .btn-approve:disabled,
.timesheet-modal-content .btn-reject:disabled,
.btn-approve.disabled,
.btn-reject.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(50%);
}

.hidden {
  display: none !important;
}

/* ===== PROFESSIONAL TIMESHEET MODAL STYLING ===== */

/* Modal header enhancements */
.modal-header-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-badges {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.quality-score-badge {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-sm);
}

.quality-score-badge.quality-excellent {
  background: var(--green-success);
  color: white;
}

.quality-score-badge.quality-good {
  background: var(--orange-warning);
  color: white;
}

.quality-score-badge.quality-poor {
  background: var(--red-danger);
  color: white;
}

.status-badge-modal {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-sm);
  text-transform: uppercase;
}

.status-badge-modal.status-pending {
  background: var(--orange-warning);
  color: white;
}

.status-badge-modal.status-approved {
  background: var(--green-success);
  color: white;
}

.status-badge-modal.status-rejected {
  background: var(--red-danger);
  color: white;
}

.status-badge-modal.status-flagged {
  background: var(--orange-warning);
  color: white;
}

/* Summary cards - Sleek compact design */
.summary-cards-grid {
  margin-bottom: var(--space-lg);
}

.summary-cards-container {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: nowrap;
  margin-bottom: var(--space-lg);
  padding: var(--space-xs);
  background: transparent;
}

.summary-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  min-width: 0;
  transition: all 0.2s ease;
}

.summary-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.summary-card-icon {
  font-size: 1.1rem;
  opacity: 0.8;
}

.summary-card-primary .summary-card-icon { color: var(--blue-primary); }
.summary-card-success .summary-card-icon { color: var(--green-success); }
.summary-card-warning .summary-card-icon { color: var(--orange-warning); }
.summary-card-danger .summary-card-icon { color: var(--red-danger); }

.summary-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.summary-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.summary-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Employee info card - Compact */
.employee-info-card {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.employee-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
  color: white;
}

.employee-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.employee-details p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.employee-details i {
  opacity: 0.8;
  font-size: 1rem;
}

/* Approval metadata section */
.approval-metadata-section {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.approval-metadata-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.approval-metadata-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.approval-metadata-content p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.approval-metadata-content i {
  opacity: 0.8;
  font-size: 0.9rem;
  min-width: 16px;
}

.approval-metadata-content strong {
  font-weight: 600;
  margin-right: var(--space-xs);
}

.approval-notes-empty .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

/* Section titles - Compact */
.section-title {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.section-title i {
  color: var(--slate-medium);
  font-size: 0.9rem;
}

/* Professional entries table - Compact */
.entries-section-wrapper {
  margin-bottom: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

.professional-entries-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
}

.professional-entries-table thead {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
  color: white;
}

.professional-entries-table th {
  padding: var(--space-sm);
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.professional-entries-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem;
}

.professional-entries-table tbody tr:hover {
  background: #fafafa;
}

/* Optimized column widths for better space distribution */
.professional-entries-table th:nth-child(1),
.professional-entries-table td:nth-child(1) {
  width: 105px;
  min-width: 105px;
  white-space: nowrap;
}

.professional-entries-table th:nth-child(2),
.professional-entries-table td:nth-child(2) {
  width: 130px;
  min-width: 130px;
  white-space: nowrap;
}

.professional-entries-table th:nth-child(3),
.professional-entries-table td:nth-child(3) {
  width: 85px;
  min-width: 85px;
  text-align: right;
  padding-right: 12px;
}

.professional-entries-table th:nth-child(4),
.professional-entries-table td:nth-child(4) {
  width: 175px;
  min-width: 175px;
  text-align: center;
}

.professional-entries-table th:nth-child(5),
.professional-entries-table td:nth-child(5) {
  width: 240px;
  min-width: 240px;
  text-align: center;
}

.professional-entries-table th:nth-child(6),
.professional-entries-table td:nth-child(6) {
  width: 135px;
  min-width: 135px;
  text-align: center;
}

.professional-entries-table th:nth-child(7),
.professional-entries-table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
  white-space: nowrap;
  text-align: right;
  padding-right: 12px;
}

.professional-entries-table td:nth-child(8) {
  max-width: 310px;
  min-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-date {
  font-weight: 600;
  color: var(--text-dark);
}

.entry-day {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
}

.entry-time {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-dark);
}

.entry-hours {
  font-weight: 600;
  color: var(--slate-medium);
}

/* Security cell wrapper - separates badges from eye icon */
.security-cell-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Security badges only - centered independently */
.security-badges-only {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  align-items: center;
}

.security-badge {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.security-badge i {
  font-size: 0.7rem;
}

.security-badge-verified {
  background: #dcfce7;
  color: #15803d;
}

.security-badge-failed {
  background: #fee2e2;
  color: #dc2626;
}

.security-badge-na {
  background: #fef3c7;
  color: #92400e;
  font-weight: 500;
}

.security-badge-none {
  background: var(--gray-light);
  color: var(--text-muted);
}

/* Recognition cell wrapper - separates badges from eye icon */
.recognition-cell-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Recognition badges only - centered independently */
.recognition-badges-only {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  align-items: center;
}

.recognition-badge {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 90px;
  justify-content: center;
}

.recognition-badge i {
  font-size: 0.7rem;
}

.recognition-badge-auto,
.recognition-badge-facial_recognition {
  background: #dbeafe;
  color: #1e40af;
}

.recognition-badge-manual,
.recognition-badge-manual_entry {
  background: #e5e7eb;
  color: #6b7280;
}

.confidence-badge {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--green-success);
  color: white;
  min-width: 45px;
  display: inline-block;
  text-align: center;
}

/* N/A Confidence Badge (for mixed recognition) */
.confidence-badge-na {
  background: #e5e7eb;
  color: #6b7280;
  font-style: italic;
}

/* Confirmed Recognition Badge (medium confidence facial match) */
.recognition-badge-confirmed {
  background: #fef3c7;
  color: #92400e;
}

/* Mixed Recognition Badge - Distinct orange/amber color */
.recognition-badge-mixed {
  background: #fff7ed;
  color: #c2410c;
}

/* Denied/Identity Mismatch Badge - Red warning */
.recognition-badge-denied {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  font-weight: 600;
}

.recognition-badge-denied i {
  color: #dc2626;
}

/* Verified tier (95%+ confidence) - GREEN */
.recognition-badge-verified {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.recognition-badge-verified i {
  color: #15803d;
}

/* Low confidence tier (<85%) - RED/Warning */
.recognition-badge-low-confidence {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.recognition-badge-low-confidence i {
  color: #dc2626;
}

/* Confidence badge color variants */
/* Base confidence badge (default - used for 85-94%) */
.confidence-badge-warning {
  background: #fbbf24;
  color: white;
}

/* Excellent confidence (95%+) - GREEN */
.confidence-badge-excellent {
  background: var(--green-success);
  color: white;
}

/* Low confidence (<85%) - RED */
.confidence-badge-low {
  background: #ef4444;
  color: white;
}

/* Security Details Button */
.btn-security-details {
  padding: 4px 6px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  outline: none;
  color: var(--blue-primary);
  border-radius: 3px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-security-details:hover {
  background: rgba(30, 64, 175, 0.08);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: scale(1.1);
}

.btn-security-details:focus {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

.btn-security-details i {
  font-size: 0.7rem;
}

/* Security Details Modal */
.security-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.security-details-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.security-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(135deg, var(--slate-dark), var(--slate-medium));
}

.security-details-header h3 {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--white);
}

.security-details-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-lg);
}

.security-details-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.security-details-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

/* Security Event Section */
.security-event-section {
  background: var(--gray-lightest);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.security-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
}

.security-event-header h4 {
  margin: 0;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--slate-dark);
}

.security-event-time {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Security Checks */
/* Security checks list in modal (renamed to avoid conflict with three-dot system) */
.security-checks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.security-check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
}

.security-check-item-passed {
  border-color: #86efac;
  background: #f0fdf4;
}

.security-check-item-failed {
  border-color: #fca5a5;
  background: #fef2f2;
}

.security-check-item-na {
  border-color: var(--gray-medium);
  background: var(--gray-lightest);
}

.security-check-item-icon {
  font-size: var(--font-lg);
  width: 24px;
  text-align: center;
}

.security-check-item-passed .security-check-item-icon {
  color: var(--green-success);
}

.security-check-item-failed .security-check-item-icon {
  color: var(--red-danger);
}

.security-check-item-na .security-check-item-icon {
  color: var(--text-muted);
}

.security-check-item-label {
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--slate-dark);
}

.security-check-item-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-sm);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.security-check-item-status-passed {
  background: #dcfce7;
  color: #15803d;
}

.security-check-item-status-failed {
  background: #fee2e2;
  color: #dc2626;
}

.security-check-item-status-na {
  background: var(--gray-light);
  color: var(--text-muted);
}

.security-check-item-details {
  grid-column: 2 / 4;
  margin-top: var(--space-xs);
  font-size: var(--font-sm);
  color: var(--text-muted);
}

/* Security Assessment */
.security-assessment {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 2px solid #bae6fd;
}

.security-assessment h4 {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--slate-dark);
}

.security-assessment-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-weight: 600;
}

.security-assessment-badge i {
  font-size: var(--font-xl);
}

.security-assessment-badge-passed {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  border: 2px solid #86efac;
}

.security-assessment-badge-failed {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  border: 2px solid #fca5a5;
}

/* Recognition Details Button */
.btn-recognition-details {
  padding: 4px 6px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  outline: none;
  color: var(--blue-primary);
  border-radius: 3px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-recognition-details:hover {
  background: rgba(30, 64, 175, 0.08);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: scale(1.1);
}

.btn-recognition-details:focus {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

.btn-recognition-details i {
  font-size: 0.7rem;
}

/* Recognition Details Modal */
.recognition-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.recognition-details-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.recognition-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(135deg, var(--slate-dark), var(--slate-medium));
}

.recognition-details-header h3 {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--white);
}

.recognition-details-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-lg);
}

.recognition-details-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.recognition-details-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

/* Recognition Event Section */
.recognition-event-section {
  background: var(--gray-lightest);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.recognition-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
}

.recognition-event-header h4 {
  margin: 0;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--slate-dark);
}

/* Recognition Details Container */
.recognition-details-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.recognition-detail-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--white);
  border-radius: var(--radius-sm);
}

/* Recognition Detail Row Variants (matching Security modal patterns) */
.recognition-detail-row-verified {
  border: 2px solid #86efac;
  background: #f0fdf4;
}

.recognition-detail-row-verified .recognition-icon {
  color: #15803d;
}

.recognition-detail-row-confirmed {
  border: 2px solid #fcd34d;
  background: #fffbeb;
}

.recognition-detail-row-confirmed .recognition-icon {
  color: #b45309;
}

.recognition-detail-row-manual {
  border: 2px solid var(--gray-medium);
  background: var(--gray-lightest);
}

.recognition-detail-row-manual .recognition-icon {
  color: var(--text-muted);
}

/* RED tier variants for identity_denied and low confidence */
.recognition-detail-row-denied {
  border: 2px solid #fca5a5;
  background: #fef2f2;
}

.recognition-detail-row-denied .recognition-icon {
  color: #dc2626;
}

.recognition-detail-row-low-confidence {
  border: 2px solid #fca5a5;
  background: #fef2f2;
}

.recognition-detail-row-low-confidence .recognition-icon {
  color: #dc2626;
}

.recognition-icon {
  width: 24px;
  color: var(--blue-primary);
  font-size: var(--font-base);
}

.recognition-label {
  font-weight: 600;
  color: var(--slate-dark);
  min-width: 100px;
}

.recognition-value {
  color: var(--text-dark);
  font-weight: 500;
}

/* Recognition Assessment */
.recognition-assessment {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 2px solid #bae6fd;
}

.recognition-assessment h4 {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--slate-dark);
}

.recognition-assessment-badge {
  display: block;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-weight: 600;
}

.recognition-assessment-badge > i:first-child {
  font-size: var(--font-xl);
  margin-right: var(--space-sm);
  vertical-align: middle;
}

.recognition-assessment-badge-same {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  border: 2px solid #86efac;
}

.recognition-assessment-badge-mixed {
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  color: #c2410c;
  border: 2px solid #fdba74;
}

/* Recognition Assessment Badge Variants
 * Threshold boundaries (consistent across all components):
 * - >= 95.00%: excellent (GREEN)
 * - 85.00% - 94.99%: warning (ORANGE/AMBER)
 * - < 85.00%: review (RED)
 * - Manual/no biometric: manual (GRAY)
 */
.recognition-assessment-badge-excellent {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  border: 2px solid #86efac;
}

/* Warning tier: 85-94.99% confidence - ORANGE/AMBER */
.recognition-assessment-badge-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #b45309;
  border: 2px solid #fcd34d;
}

/* Review tier: < 85% confidence - RED */
.recognition-assessment-badge-review {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  border: 2px solid #fca5a5;
}

.recognition-assessment-badge-manual {
  background: linear-gradient(135deg, var(--gray-lightest), #f1f5f9);
  color: var(--text-muted);
  border: 2px solid var(--gray-medium);
}

.recognition-assessment-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
}

.recognition-assessment-header i {
  font-size: var(--font-xl);
  flex-shrink: 0;
}

.recognition-assessment-label {
  font-size: inherit;
  font-weight: 600;
}

.recognition-assessment-note {
  display: block;
  font-size: var(--font-sm);
  font-weight: 400;
  color: inherit;
  opacity: 0.9;
  margin-top: var(--space-sm);
}

.recognition-assessment-confidence {
  display: block;
  font-size: var(--font-sm);
  font-weight: 400;
  color: inherit;
  opacity: 0.85;
  margin-top: var(--space-xs);
}

.recognition-assessment-action {
  display: block;
  font-size: var(--font-sm);
  font-weight: 400;
  color: inherit;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.recognition-assessment-action i {
  margin-right: var(--space-xs);
  color: #f59e0b;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Photos column - Thumbnails */
.photos-container {
  display: flex;
  align-items: center;
}

.photo-thumbnails {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 106px;
  justify-content: center;
}

.photo-thumbnail {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid var(--border-color);
}

.photo-thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--blue-primary);
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo Placeholder (when photo is missing) */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  position: relative;
}

/* Colored dot with X for missing photos (matches photo thumbnail dots) */
.photo-placeholder-dot {
  position: absolute;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #ef4444;  /* Red for missing photo */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  font-weight: bold;
}

.photo-placeholder-dot::before {
  content: '×';  /* X symbol */
}

.photo-placeholder-dot-clock-in {
  left: 6px;
}

.photo-placeholder-dot-clock-out {
  right: 6px;
}

.photo-label {
  position: absolute;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: help;
}

.photo-label-clock-in {
  left: 6px;
  background: #22c55e;  /* Green dot for Clock In */
}

.photo-label-clock-out {
  right: 6px;
  background: #ef4444;  /* Red dot for Clock Out */
}

/* Photo Lightbox Modal */
.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-lightbox.visible {
  opacity: 1;
}

.photo-lightbox.closing {
  opacity: 0;
}

.photo-lightbox-content {
  background: white;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.photo-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--slate-dark);
  color: white;
  border-radius: 8px 8px 0 0;
}

.photo-lightbox-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.photo-lightbox-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.photo-lightbox-image-container {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: calc(90vh - 60px);
}

.photo-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Validation section - Compact */
.validation-section-wrapper {
  margin-bottom: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.validation-success {
  background: #dcfce7;
  color: #15803d;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  font-size: 0.85rem;
}

.validation-success i {
  font-size: 1rem;
}

.issues-list {
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.issues-header {
  padding: var(--space-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
}

.issues-header-error {
  background: #fee2e2;
  color: #dc2626;
}

.issues-header-warning {
  background: #fef3c7;
  color: #92400e;
}

.issues-items {
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
}

.issue-item {
  padding: var(--space-sm);
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.8rem;
}

.issue-item:last-child {
  border-bottom: none;
}

/* Informational items (roster alignment summary, etc.) */
.issue-item-info {
  background: #f0f9ff;  /* Very light blue tint */
  font-style: italic;
  color: #475569;  /* Softer text color */
  opacity: 0.85;
  padding: var(--space-sm);
  border-bottom: 1px solid #dbeafe;
}

.issue-item-info .issue-message {
  display: flex;
  align-items: center;
  gap: 8px;
}

.issue-item-info .issue-text {
  color: #475569;  /* Muted text */
  font-weight: 400;
}

/* Label removed for cleaner look */

.issue-message {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.issue-field-badge {
  padding: 2px 4px;
  background: var(--gray-light);
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: auto;
}

/* Grouped Issues - Category Sections */
.issues-list-grouped .issues-category {
  margin-top: var(--space-xs);
  border-left: 3px solid var(--gray-light);
  margin-left: 0;  /* No indent - flush with header */
}

.issues-category-header {
  padding: var(--space-xs) var(--space-sm);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.issues-category-header i {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Category color accents */
.issues-category-data_quality {
  border-left-color: #6366f1;
}

.issues-category-data_quality .issues-category-header {
  color: #4f46e5;
}

.issues-category-hours_overtime {
  border-left-color: #f59e0b;
}

.issues-category-hours_overtime .issues-category-header {
  color: #d97706;
}

.issues-category-roster_alignment {
  border-left-color: #f59e0b;
}

.issues-category-roster_alignment .issues-category-header {
  color: #d97706;
}

.issues-category-compliance {
  border-left-color: #3b82f6;
}

.issues-category-compliance .issues-category-header {
  color: #2563eb;
}

.issues-category-other {
  border-left-color: #6b7280;
}

.issues-category-other .issues-category-header {
  color: #4b5563;
}

.issues-category .issues-items {
  background: #fafafa;
  list-style: none;
  margin: 0;
  padding: 0;
}

.issues-category .issue-item {
  padding: var(--space-sm) var(--space-sm);
  font-size: 0.8rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;  /* LEFT-ALIGNED like Compliance Checks */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
}

.issues-category .issue-item:last-child {
  border-bottom: none;
}

/* Issue message layout - inline format */
.issues-category .issue-message {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  text-align: left;
}

/* Date prefix styling - inline */
.issue-date-prefix {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

/* Issue text styling */
.issue-text {
  font-weight: 400;
  color: var(--text-dark);
}

/* Field badge styling - on right side */
.issue-field-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: var(--radius-xs);
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}

/* Compliance section - Compact */
.compliance-section-wrapper {
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.compliance-grid {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.compliance-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.compliance-card-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
  opacity: 0.7;
}

.compliance-card-info .compliance-card-icon { color: var(--blue-primary); }
.compliance-card-success .compliance-card-icon { color: var(--green-success); }
.compliance-card-warning .compliance-card-icon { color: var(--orange-warning); }

.compliance-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.compliance-card-value {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-dark);
}

.compliance-flags-card {
  width: 100%;
  background: white;
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-top: var(--space-xs);
}

/* Warning state for compliance flags with issues */
.compliance-flags-card.compliance-flags-warning {
  background: #fffbeb;
  border: 1px solid #fbbf24;
}

.compliance-flags-card h6 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.8rem;
}

.compliance-flags-card.compliance-flags-warning h6 {
  color: #92400e;
}

.compliance-flags-card.compliance-flags-warning h6 i {
  color: #f59e0b;
  margin-right: 4px;
}

.compliance-flags-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

/* Compliance Flags - Checklist Style */
.compliance-flags-checklist {
  background: white;
  border: 1px solid var(--border-color);
}

.compliance-flags-checklist h6 {
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.compliance-flags-checklist h6 i {
  color: var(--blue-primary);
  margin-right: 6px;
}

/* Add amber title when there are warnings */
.compliance-flags-checklist.has-warnings h6 {
  color: #92400e;
}

.compliance-flags-checklist.has-warnings h6 i {
  color: #f59e0b;
}

.compliance-flags-checklist-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.compliance-flags-checklist-list .flag-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
}

/* OK state - visually de-emphasized */
.flag-item.flag-ok {
  background: #f8fafc;
  color: var(--text-muted);
}

.flag-item.flag-ok .flag-icon {
  color: var(--green-success);
}

.flag-item.flag-ok .flag-label {
  font-weight: 500;
}

.flag-item.flag-ok .flag-status {
  font-size: 0.75rem;
  color: var(--green-success);
}

/* Warning state - visually emphasized */
.flag-item.flag-warning {
  background: #fef3c7;
  color: #92400e;
}

.flag-item.flag-warning .flag-icon {
  color: #f59e0b;
}

.flag-item.flag-warning .flag-label {
  font-weight: 600;
}

.flag-item.flag-warning .flag-status {
  font-size: 0.75rem;
  color: #d97706;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .timesheet-modal-content {
    max-width: 95%;
    width: 95%;
  }

  .professional-entries-table {
    font-size: 0.75rem;
  }

  .professional-entries-table th,
  .professional-entries-table td {
    padding: 6px;
  }
}

@media (max-width: 768px) {
  .timesheet-modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
  }

  .timesheet-modal-content .modal-body {
    max-height: calc(100vh - 180px);
    overflow-x: auto;
  }

  .summary-cards-container {
    flex-direction: column;
  }

  .professional-entries-table {
    font-size: 0.7rem;
  }

  .professional-entries-table th,
  .professional-entries-table td {
    padding: 4px;
  }

  .employee-details {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* ===== 13. LOADING & NOTIFICATIONS ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.loading-spinner {
  margin: 0 auto;
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-light);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-message {
  margin-top: var(--space-md);
  font-size: var(--font-sm);
  color: var(--text-muted);
}

#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.notification {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--blue-primary);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Notification show/hide states */
.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.hide {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Softer notification colors */
.notification.alert-success {
  background-color: #d4edda !important;
  border-left-color: #28a745;
}

.alert-success { border-left-color: var(--green-success); }
.alert-danger {
  border-left-color: var(--red-danger);
  padding: var(--space-md);
}
.alert-warning {
  border-left-color: var(--orange-warning);
  padding: var(--space-md);
}

/* Security validation section cards */
#securitySummaryCards.row.g-3 {
  padding: 0 var(--space-md);
  margin: 0;
}

#securitySummaryCards .alert {
  margin-bottom: 0;
}

#securitySummaryCards .alert h6 {
  margin-bottom: var(--space-sm);
}

#securitySummaryCards .alert .small {
  margin-bottom: var(--space-sm);
}

/* Re-enrollment summary cards - force equal heights and alignment */
#reenrollmentSummaryCards .col-lg-4 {
  display: flex;  /* Make column a flex container */
}

#reenrollmentSummaryCards .alert {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 160px;  /* Ensure consistent minimum height */
}

/* Medium Priority - Professional Light Blue */
.alert-primary-soft {
  background-color: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-left: 4px solid var(--blue-primary);
  color: var(--navy-dark);
}

.alert-primary-soft .badge {
  background-color: var(--blue-primary) !important;
}

.alert-primary-soft .btn-outline-info {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.alert-primary-soft .btn-outline-info:hover {
  background-color: var(--blue-primary);
  color: white;
}

/* Notification icon styling */
.notification-icon {
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== 14. UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.flex-display {
  display: flex !important;
}

.d-flex {
  display: flex !important;
}

.d-none {
  display: none !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.gap-2 {
  gap: var(--space-sm) !important;
}

.gap-3 {
  gap: var(--space-md) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-center {
  text-align: center !important;
}

.text-warning {
  color: var(--orange-warning) !important;
}

.text-success {
  color: var(--green-success) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: var(--space-xs) !important;
}

.mb-2 {
  margin-bottom: var(--space-sm) !important;
}

.mb-3 {
  margin-bottom: var(--space-md) !important;
}

.mt-2 {
  margin-top: var(--space-sm) !important;
}

.mt-4 {
  margin-top: var(--space-lg) !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.me-2 {
  margin-right: var(--space-sm) !important;
}

.py-5 {
  padding-top: var(--space-2xl) !important;
  padding-bottom: var(--space-2xl) !important;
}

.p-0 {
  padding: 0 !important;
}

.small {
  font-size: var(--font-sm);
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.top-0 {
  top: 0 !important;
}

.start-100 {
  left: 100% !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: var(--font-xs);
  font-weight: 600;
  border-radius: 999px;
}

.rounded-pill {
  border-radius: 999px !important;
}

.bg-danger {
  background-color: var(--red-danger) !important;
  color: var(--white) !important;
}

.bg-warning {
  background-color: var(--orange-warning) !important;
  color: var(--white) !important;
}

.bg-success {
  background-color: var(--green-success) !important;
  color: var(--white) !important;
}

.bg-info {
  background-color: var(--teal-info) !important;
  color: var(--white) !important;
}

.bg-secondary {
  background-color: var(--gray-dark) !important;
  color: var(--white) !important;
}

.fade {
  transition: opacity var(--transition-base);
}

.fade.show {
  opacity: 1;
}

.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  accent-color: var(--blue-primary);
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--blue-primary);
}

/* ===== 15. RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .dashboard-header .container-fluid {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-header__actions {
    width: 100%;
    justify-content: center;
  }

  .status-card {
    margin-bottom: var(--space-md);
  }

  .filters-section__body .row {
    flex-direction: column;
  }

  .table-responsive {
    overflow-x: scroll;
  }

  .card-professional__header,
  .card-professional__footer {
    padding: var(--space-md);
  }

  .logout-modal {
    width: 95%;
    margin: var(--space-md);
  }

  .logout-modal .modal-actions {
    flex-direction: column-reverse;
  }

  .logout-modal .btn-cancel,
  .logout-modal .btn-logout {
    width: 100%;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 991px) {
  .dashboard-header__title {
    font-size: var(--font-xl);
  }

  .status-card-value {
    font-size: var(--font-3xl);
  }
}

/* ===== 16. LOGIN PAGE STYLES ===== */
.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.login-card {
  max-width: 400px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0056b3 0%, #20c997 100%);
}

.login-header {
  margin-bottom: var(--space-md);
}

.login-icon {
  font-size: 4rem;
  color: #004494;
  margin-bottom: var(--space-lg);
  display: block;
  animation: loginIconPulse 3s ease-in-out infinite;
}

@keyframes loginIconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.login-title {
  font-size: var(--font-2xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.login-subtitle {
  font-size: var(--font-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.login-actions {
  margin-bottom: var(--space-lg);
}

.login-button {
  width: 100%;
  background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  position: relative;
  overflow: hidden;
}

.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.login-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #004494 0%, #003875 100%);
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
  text-decoration: none;
  color: white;
}

.login-button:hover::before {
  left: 100%;
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.login-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.security-indicators {
  text-align: center;
}

.login-footer-text {
  color: var(--text-muted);
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssl-indicator {
  color: var(--text-muted);
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xs);
}

/* Login page responsive design */
@media (max-width: 480px) {
  .login-container {
    padding: var(--space-md);
  }

  .login-card {
    padding: var(--space-lg);
  }

  .login-title {
    font-size: var(--font-xl);
  }

  .login-subtitle {
    font-size: var(--font-base);
  }

  .login-icon {
    font-size: 3rem;
  }
}

/* ===== 17. LOGOUT PAGE STYLES ===== */
.logout-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.logout-card {
  max-width: 400px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.logout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.logout-header {
  margin-bottom: var(--space-xl);
}

.logout-icon {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: var(--space-lg);
  display: block;
  animation: logoutIconBounce 2s ease-in-out infinite;
}

@keyframes logoutIconBounce {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(-5deg);
  }
}

.logout-title {
  font-size: var(--font-2xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.logout-subtitle {
  font-size: var(--font-lg);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.logout-spinner {
  margin: var(--space-xl) 0;
  display: flex;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid #0056b3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logout-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.logout-footer-text {
  color: var(--text-muted);
  font-size: var(--font-sm);
}

/* Logout page responsive design */
@media (max-width: 480px) {
  .logout-container {
    padding: var(--space-md);
  }

  .logout-card {
    padding: var(--space-lg);
  }

  .logout-title {
    font-size: var(--font-xl);
  }

  .logout-subtitle {
    font-size: var(--font-base);
  }

  .logout-icon {
    font-size: 3rem;
  }
}

/* ===== FLATPICKR DATE RANGE PICKER CUSTOMIZATION ===== */

/* Date range picker input styling */
#dateRangePicker {
  cursor: pointer;
  background-color: #fff;
  padding-right: 35px;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23666\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"/><line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"/><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"/><line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

#dateRangePicker:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.15);
  outline: 0;
}

/* Flatpickr calendar customization */
.flatpickr-calendar {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 2px solid #2c3e50;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  z-index: 9999;
  margin-top: 4px;
}

.flatpickr-months {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
  border-radius: 8px 8px 0 0;
}

/* Month text - force white on dark background */
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month span.cur-month {
  color: #fff !important;
  font-weight: 600;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: #fff;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: rgba(255, 255, 255, 0.8);
}

/* Selected date range styling */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--blue-primary, #3498db);
  border-color: var(--blue-primary, #3498db);
  color: #fff;
  font-weight: 600;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--blue-darker, #2980b9);
  border-color: var(--blue-darker, #2980b9);
}

/* Days in range styling */
.flatpickr-day.inRange {
  background: rgba(52, 152, 219, 0.1);
  border-color: transparent;
  box-shadow: -5px 0 0 rgba(52, 152, 219, 0.1), 5px 0 0 rgba(52, 152, 219, 0.1);
}

/* Today styling */
.flatpickr-day.today {
  border-color: var(--color-primary, #2c3e50);
}

.flatpickr-day.today:hover {
  background: rgba(44, 62, 80, 0.1);
  border-color: var(--color-primary, #2c3e50);
}

/* Disabled days */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
}

/* Weekday labels */
.flatpickr-weekday {
  color: rgba(0, 0, 0, 0.54);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Responsive calendar on mobile */
@media (max-width: 768px) {
  .flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
    height: auto;
  }
}

/* ===== 24. REJECTION MODAL STYLES ===== */
.rejection-modal {
  max-width: 500px;
}

.rejection-timesheet-info {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.rejection-timesheet-info p {
  margin: var(--space-xs) 0;
  font-size: var(--font-base);
}

.rejection-timesheet-info strong {
  color: var(--text-dark);
  min-width: 100px;
  display: inline-block;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  font-size: var(--font-base);
}

.form-select,
.form-control {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-control {
  font-family: inherit;
  resize: vertical;
}

.form-text {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--font-sm);
}

.text-danger {
  color: var(--red-danger);
}

.text-muted {
  color: var(--text-muted);
}

/* Modal close button */
.modal-close {
  background: transparent;
  border: none;
  font-size: var(--font-xl);
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-dark);
}

/* Rejection modal responsive */
@media (max-width: 576px) {
  .rejection-modal {
    max-width: 95%;
    margin: var(--space-md);
  }

  .rejection-timesheet-info strong {
    min-width: auto;
    display: block;
  }
}


/* Re-enrollment Approval Modal */
.reenrollment-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.reenrollment-employee-card {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reenrollment-employee-card.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

.reenrollment-employee-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.reenrollment-employee-card .employee-info {
  flex: 1;
}

.reenrollment-employee-card .employee-name {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-dark);
}

.reenrollment-employee-card .employee-position {
  margin: 0;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.priority-badge {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.priority-badge.priority-critical {
  background-color: var(--red-danger);
  color: white;
}

.priority-badge.priority-high {
  background-color: var(--orange-warning);
  color: white;
}

.priority-badge.priority-medium {
  background-color: var(--blue-primary);
  color: white;
}

.reenrollment-employee-card .card-details {
  margin-bottom: var(--space-md);
}

.reenrollment-employee-card .detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-light);
}

.reenrollment-employee-card .detail-row:last-child {
  border-bottom: none;
}

.reenrollment-employee-card .detail-label {
  font-weight: 500;
  color: var(--text-muted);
}

.reenrollment-employee-card .detail-value {
  font-weight: 500;
  color: var(--text-dark);
}

.reenrollment-employee-card .card-actions {
  display: flex;
  gap: var(--space-sm);
}

.btn-approve-reenrollment {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--green-success);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-approve-reenrollment:hover:not(:disabled) {
  background-color: #27ae60;
}

.btn-approve-reenrollment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-dismiss-reenrollment {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dismiss-reenrollment:hover:not(:disabled) {
  background-color: var(--surface-hover);
  border-color: var(--text-muted);
}

.btn-dismiss-reenrollment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reenrollment-modal .empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.reenrollment-modal .empty-state i {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--green-success);
}

.reenrollment-modal .empty-state p {
  margin: 0;
  font-size: var(--font-lg);
}

/* Modal open state for body scroll lock */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .reenrollment-modal {
    max-width: 95%;
    margin: var(--space-md);
  }
  
  .reenrollment-employee-card .card-actions {
    flex-direction: column;
  }
}

/* ========================================
   Public Holiday Hours Display
   ======================================== */

/* Hours breakdown container */
.hours-with-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-hours-total {
  font-weight: 600;
  color: var(--color-text-dark);
}

.hours-breakdown {
  font-size: 0.85em;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Public holiday badge */
.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}

.ph-badge i {
  font-size: 0.85em;
}

/* Midnight split indicator for shifts crossing midnight */
.midnight-split-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  margin-left: 4px;
}

.midnight-split-indicator i {
  font-size: 0.85em;
}

/* ========================================
   Dashboard Indicator Dots & Tooltips
   ======================================== */

/* Indicator Dots - 12px with border ring for discoverability */
.indicator-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;

    /* Border ring and shadow create "interactive" appearance */
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);

    /* Smooth transitions for hover */
    transition: filter 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* Hover effect - instant feedback without animation */
.indicator-dot:hover {
    filter: brightness(0.85);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

.indicator-green {
    background-color: #28a745;
}

.indicator-yellow {
    background-color: #ffc107;
}

.indicator-red {
    background-color: #dc3545;
}

/* Security Tooltip (on dot) */
.indicator-dot[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    white-space: pre-line;
    min-width: 240px;
    max-width: 320px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.indicator-dot[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

/* Quality Badge Hover (roster count) */
.quality-badge[data-quality-info]:hover::after {
    content: attr(data-quality-info);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #555;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* ========================================
   Three-Dot Validation Indicators
   ======================================== */

/* Checks column header icon */
.checks-header-icon {
    font-size: 0.75rem;
}

/* Checks cell container */
/* Checks column cell - center aligned */
.checks-cell {
    text-align: center;
    vertical-align: middle;
}

/* Three-dot indicator container - centered inline flex */
.check-indicators {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

/* Individual check dot - consistent sizing with constraints */
.check-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    border-radius: 50%;
    display: inline-block;
    cursor: help;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    position: relative;
}

/* Hover state with subtle glow */
.check-dot:hover {
    transform: scale(1.25);
    box-shadow: 0 0 6px currentColor;
}

/* Status colors with subtle inner shadow for depth */
.check-pass {
    background-color: #198754; /* Bootstrap success green */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.check-warn {
    background-color: #ffc107; /* Bootstrap warning yellow */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.check-fail {
    background-color: #dc3545; /* Bootstrap danger red */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.check-na {
    background-color: #adb5bd; /* Lighter gray for better visibility */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}


