@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');:root {
  --font-primary: "Comfortaa", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  --font-family: var(--font-primary);

  /* Yaazh 360 Signature Royal Blue & Radiant Gold Luxury Palette */
  --bg-page: #F8F9FC;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #FFFFFF;
  --bg-sidebar: #061B3A;
  --bg-sidebar-hover: rgba(212, 160, 23, 0.12);
  --bg-blur: blur(20px);

  --text-primary: #0D1B2A;
  --text-secondary: #5A6A80;
  --text-muted: #8E9BAE;
  --text-sidebar: #B0C4DE;
  --text-sidebar-active: #FFD700;

  --border: rgba(6, 27, 58, 0.08);
  --border-subtle: rgba(6, 27, 58, 0.04);

  /* Signature Royal Blue */
  --primary: #0056B3;
  --primary-hover: #004494;
  --primary-light: rgba(0, 86, 179, 0.08);
  --primary-glow: rgba(0, 86, 179, 0.25);

  /* Signature Radiant Metallic Gold */
  --accent-gold: #D4A017;
  --accent-gold-hover: #B8860B;
  --accent-gold-light: rgba(212, 160, 23, 0.12);
  --accent-gold-glow: rgba(212, 160, 23, 0.3);

  --success: #34C759;
  --success-bg: rgba(52, 199, 89, 0.12);
  --warning: #FF9500;
  --warning-bg: rgba(255, 149, 0, 0.12);
  --danger: #FF3B30;
  --danger-bg: rgba(255, 59, 48, 0.12);
  --info: #5856D6;
  --info-bg: rgba(88, 86, 214, 0.12);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary) !important;
}

html, body, #root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1 { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

/* Application Shell */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  z-index: 50;
  color: var(--text-sidebar);
  box-sizing: border-box;
}

.sidebar-header {
  flex-shrink: 0;
  height: 72px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--bg-sidebar);
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #D4A017;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--bg-sidebar);
}

.nav-links {
  flex: 1 1 0%;
  min-height: 0;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Custom subtle scrollbar for sidebar navigation */
.nav-links::-webkit-scrollbar {
  width: 5px;
}

.nav-links::-webkit-scrollbar-track {
  background: transparent;
}

.nav-links::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.nav-links::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-link:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-sidebar-active);
}

.nav-link.active {
  background: linear-gradient(135deg, #0056B3 0%, #014B9D 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 86, 179, 0.35);
  border-left: 3px solid #D4A017;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 260px;
  min-height: 100vh;
  background-color: var(--bg-page);
}

.top-header {
  height: 72px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.page-content {
  flex: 1;
  padding: 2.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-content:has(.employee-page-fullwidth) {
  max-width: 100%;
  padding: 1.5rem 2rem;
  margin: 0;
}

.page-header {
  margin-bottom: 2rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  height: 42px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: white;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background-color: var(--primary-light);
  color: var(--text-primary);
}

.btn-icon.danger:hover {
  background-color: var(--danger-bg);
  color: var(--danger);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tables */
.table-container {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

th {
  background-color: #fafafa;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  height: 48px;
}

tbody tr {
  height: 64px;
  transition: background-color 0.15s ease;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #fafafa;
}

/* Badges */
.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--primary-light); color: var(--text-secondary); }

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #e4e7ec;
  background-color: var(--bg-card, #ffffff);
  color: #344054;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control {
  height: auto;
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 100px;
}

.form-control:hover:not(:disabled) {
  border-color: #b8c2cf;
}

.form-control:focus {
  outline: none;
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f8fafc;
}

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

/* Utils */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(17, 24, 39, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}


/* Custom Select Dropdown Styles */
.custom-select-container {
  position: relative;
  display: inline-block;
  min-width: 220px;
}
.filter-select-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 240px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  z-index: 1000;
  padding: 6px;
}
.custom-select-search-wrapper {
  display: flex;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 4px;
  background: #F8FAFC;
  border-radius: 8px;
  height: 36px;
}
.custom-select-search-icon {
  color: #64748B;
  margin-right: 8px;
}
.custom-select-search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.85rem;
  color: #0F172A;
  background: transparent;
}
.custom-select-search-input::placeholder {
  color: #94A3B8;
}
.custom-select-options {
  max-height: 280px;
  overflow-y: auto;
  padding: 0;
}
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.custom-select-option {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.custom-select-option:hover {
  background: #F8FAFC;
}
.custom-select-option.selected {
  background: #F0FDF4;
}
.custom-select-option.selected .custom-select-option-text {
  color: #15803D;
}
.custom-select-option-text {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-no-options {
  padding: 12px;
  text-align: center;
  color: #64748B;
  font-size: 0.85rem;
}



/* Custom Date Picker Styles */
.custom-datepicker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 320px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 16px;
  user-select: none;
}
.custom-datepicker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.custom-datepicker-month {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
}
.custom-datepicker-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.custom-datepicker-nav:hover {
  background: #F0FDF4;
  color: #16A34A;
}
.custom-datepicker-days-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}
.custom-datepicker-day-name {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
}
.custom-datepicker-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.custom-datepicker-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.custom-datepicker-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 100%;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0F172A;
  transition: all 0.15s ease;
}
.custom-datepicker-cell:hover:not(.disabled) {
  background: #F0FDF4;
}
.custom-datepicker-cell.disabled {
  color: #CBD5E1;
  cursor: default;
}
.custom-datepicker-cell.selected {
  background: #16A34A;
  color: #FFFFFF;
}
.custom-datepicker-cell.today {
  border: 1px solid #16A34A;
  color: #16A34A;
}
.custom-datepicker-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #E2E8F0;
  padding-top: 12px;
}
.custom-datepicker-today-btn {
  background: #F0FDF4;
  color: #16A34A;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.custom-datepicker-today-btn:hover {
  background: #DCFCE7;
}

.mobile-menu-btn {
  display: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN (Media Queries)
   ============================================================ */

/* TABLET & MOBILE RESPONSIVE UPDATES */
@media screen and (max-width: 1024px) {
  /* Hide sidebar on mobile/tablet by default (moved to drawer) */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: min(280px, 85vw);
    max-width: 85vw;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
  
  .top-header {
    padding: 0 1rem !important;
    height: 70px;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  .page-content {
    padding: 1.5rem 1rem !important;
  }
}

@media screen and (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  
  /* Make cards stack */
  .stat-card-grid {
    grid-template-columns: 1fr !important;
  }

  /* Table Responsiveness: allow container scrolling on mobile */
  .table-container {
    overflow-x: auto;
  }

  /* Or Convert tables to cards on very small screens via classes applied in React */
  .responsive-table {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    display: none;
  }
  
  .responsive-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--bg-card);
    height: auto;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .responsive-table td:last-child {
    border-bottom: none;
  }
  
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
    color: var(--text-secondary);
  }

  /* Forms */
  .form-row {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  /* Modals */
  .modal-content {
    width: calc(100% - 24px) !important;
    margin: 0 auto;
    padding: 1.5rem;
    max-height: 90vh;
  }

  /* Dates and select */
  .custom-select-container, .custom-select-dropdown, .custom-datepicker-dropdown {
    width: 100%;
    min-width: unset;
  }
  
  .custom-datepicker-dropdown {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
    max-width: 320px;
  }
  
  .mobile-hide {
    display: none !important;
  }
  
  /* Make buttons full width on small screens when stacked */
  .btn-group-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-group-mobile .btn {
    width: 100%;
  }
}

/* Touch Targets for Mobile (Minimum 44px) */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }
  .nav-link {
    min-height: 44px;
  }
  .custom-select-option {
    min-height: 44px;
  }
  .form-control {
    min-height: 44px;
  }
  .custom-datepicker-cell {
    min-height: 40px;
  }
  .custom-datepicker-nav {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Flex responsive helpers */
.flex-column-mobile {
  display: flex;
}

@media screen and (max-width: 768px) {
  .flex-column-mobile {
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-w-full {
    width: 100% !important;
  }
}

/* ============================================================
   ADMIN MOBILE CARD TABLE STYLES
   ============================================================ */

/* Desktop: show table, hide cards */
.admin-table-desktop {
  display: block;
}
.admin-cards-mobile {
  display: none;
}

/* Mobile card styles */
.admin-mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

.admin-mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.4rem 0;
  gap: 0.5rem;
}

.admin-mobile-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: 90px;
  flex-shrink: 0;
}

.admin-mobile-card-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
  flex: 1;
}

.admin-mobile-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-mobile-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.admin-mobile-card-actions button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

/* Mobile admin overrides */
@media screen and (max-width: 767px) {
  /* Switch to cards on mobile */
  .admin-table-desktop {
    display: none !important;
  }
  .admin-cards-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
  }

  /* Page header */
  .page-header h2 {
    font-size: 1.25rem;
  }

  /* Filters wrap */
  .admin-filters {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .admin-filters > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .admin-filters input[type="text"] {
    width: 100% !important;
  }

  /* Header mobile */
  .top-header {
    padding: 0 0.75rem !important;
    height: 60px !important;
    padding-top: 0 !important;
  }

  /* Prevent body overflow */
  html, body, #root {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Custom select full width */
  .custom-select-container {
    width: 100% !important;
  }
}

/* ============================================================
   FINAL ADMIN MOBILE RESPONSIVE FIX
   ============================================================ */

@media screen and (max-width: 767px) {

  .app-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    overflow-x: hidden;
  }

  .page-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1rem !important;
    overflow-x: hidden;
  }

  .page-header {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.25rem;
  }

  .page-header h1,
  .page-header h2,
  .page-header h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Prevent cards/sections from forcing page width */
  .card,
  .table-container,
  .admin-cards-mobile,
  .admin-mobile-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Filter section */
  .admin-filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .admin-filters > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Custom dropdown */
  .custom-select-container {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .custom-select-dropdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  /* Buttons should never push screen width */
  .btn {
    max-width: 100%;
  }

  /* Mobile top header */
  .top-header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Mobile sidebar */
  .sidebar {
    width: min(280px, 85vw);
    max-width: 85vw;
  }

  /* Mobile cards */
  .admin-mobile-card {
    overflow: hidden;
  }

  .admin-mobile-card-row {
    min-width: 0;
  }

  .admin-mobile-card-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-mobile-card-actions {
    width: 100%;
  }

  .admin-mobile-card-actions button {
    min-width: 0;
  }

  /* Never allow long text to create horizontal scroll */
  .table-container,
  table,
  td,
  th {
    max-width: 100%;
  }
}

/* ============================================================
   ATTENDANCE MODAL MOBILE RESPONSIVENESS
   ============================================================ */

.attendance-modal-overlay {
  z-index: 1010 !important;
}

.attendance-modal-content {
  width: min(900px, calc(100vw - 48px));
  max-width: none !important;
  max-height: calc(100vh - 48px);
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  border-radius: 16px;
  background-color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.attendance-modal-header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 10;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.attendance-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.attendance-grid-employee {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.attendance-grid-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.attendance-grid-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.attendance-grid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.9rem;
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
}

.attendance-modal-actions {
  display: flex;
  gap: 1rem;
}

.attendance-long-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.attendance-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background-color: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

@media screen and (max-width: 767px) {
  .attendance-modal-overlay {
    padding: 12px !important;
  }

  .attendance-modal-content {
    width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 14px !important;
  }

  .attendance-modal-header {
    padding: 14px 16px !important;
    align-items: center !important;
  }
  
  .attendance-modal-header h3 {
    font-size: 17px !important;
  }
  
  .attendance-modal-header div {
    font-size: 12px !important;
  }

  .attendance-modal-body {
    padding: 14px 16px !important;
    gap: 1.5rem !important;
  }

  .attendance-grid-employee,
  .attendance-grid-summary,
  .attendance-grid-details,
  .attendance-grid-stats {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .attendance-modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .attendance-modal-actions button {
    width: 100%;
    min-height: 42px;
  }
  
  .attendance-img {
    height: 200px;
  }
}

/* ============================================================
   EMPLOYEE MODAL MOBILE RESPONSIVENESS
   ============================================================ */

.employee-modal-overlay {
  z-index: 1010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.employee-modal-content {
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 32px);
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  border-radius: 16px;
  background-color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.employee-modal-header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 10;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.employee-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.employee-modal-footer {
  position: sticky;
  bottom: 0;
  background-color: white;
  z-index: 10;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.employee-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.employee-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.employee-long-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media screen and (max-width: 767px) {
  .employee-modal-overlay {
    padding: 12px !important;
  }

  .employee-modal-content {
    width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 14px !important;
  }

  .employee-modal-header {
    padding: 14px 16px !important;
    align-items: center !important;
  }
  
  .employee-modal-header h2 {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }
  
  .employee-modal-header div {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .employee-modal-body {
    padding: 14px 16px !important;
    gap: 1.25rem !important;
  }

  .employee-grid-2,
  .employee-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .employee-modal-footer {
    padding: 14px 16px !important;
    flex-direction: column;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .employee-modal-footer button {
    width: 100%;
    min-height: 42px;
  }
}

/* ============================================================
   UNIVERSAL MODAL MOBILE RESPONSIVENESS
   ============================================================ */

.universal-modal-overlay {
  z-index: 1010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.universal-modal-content {
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 32px);
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  border-radius: 16px;
  background-color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin: 16px;
}

.universal-modal-header {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 10;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.universal-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.universal-modal-footer {
  position: sticky;
  bottom: 0;
  background-color: white;
  z-index: 10;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.universal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.universal-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.universal-long-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media screen and (max-width: 767px) {
  .universal-modal-overlay {
    padding: 12px !important;
  }

  .universal-modal-content {
    width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
    max-height: calc(100dvh - 24px) !important;
    border-radius: 14px !important;
  }

  .universal-modal-header {
    padding: 14px 16px !important;
    align-items: center !important;
  }
  
  .universal-modal-header h2 {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }
  
  .universal-modal-header div {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .universal-modal-body {
    padding: 14px 16px !important;
    gap: 1.25rem !important;
  }

  .universal-grid-2,
  .universal-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .universal-modal-footer {
    padding: 14px 16px !important;
    flex-direction: column;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .universal-modal-footer button {
    width: 100%;
    min-height: 42px;
  }
}

.login-card {
  width: min(100% - 24px, 420px) !important;
  padding: 3rem 2.5rem !important;
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  .login-card {
    padding: 2rem 1.5rem !important;
  }
}

/* ============================================================
   SIDEBAR & LAYOUT MOBILE RESPONSIVENESS
   ============================================================ */

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu-btn {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .mobile-hide {
    display: none !important;
  }
  
  .top-header {
    padding: 0 1rem !important;
  }
  
  .page-content {
    padding: 1.5rem 1rem !important;
  }
}

/* ============================================================
   EMPLOYEE MOBILE SIDEBAR - FINAL RESPONSIVE FIX
   ============================================================ */

/* Desktop default */
.sidebar {
  width: 260px;
  box-sizing: border-box;
}

.main-content {
  margin-left: 260px;
  min-width: 0;
}

/* Overlay hidden on desktop */
.sidebar-overlay {
  display: none;
}


/* ============================================================
   TABLET + MOBILE
   ============================================================ */

@media screen and (max-width: 1024px) {

  .sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: min(280px, 82vw);
    max-width: 280px;

    height: 100vh;
    height: 100dvh;

    margin: 0;

    transform: translateX(-105%);

    transition:
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: 1000;

    overflow: hidden;

    box-shadow:
      12px 0 30px rgba(0, 0, 0, 0.18);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    width: 100%;
    min-width: 0;

    margin-left: 0 !important;

    overflow-x: hidden;
  }

  .mobile-menu-btn {
    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    cursor: pointer;
  }

  /* Overlay */
  .sidebar-overlay {
    display: block;

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    background: rgba(15, 23, 42, 0.48);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    z-index: 999;

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .sidebar-overlay.open {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
  }

  .top-header {
    width: 100%;

    box-sizing: border-box;

    margin-left: 0;

    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-content {
    width: 100%;

    box-sizing: border-box;

    min-width: 0;

    overflow-x: hidden;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media screen and (max-width: 600px) {

  .app-container {
    width: 100%;
    min-width: 0;

    overflow-x: hidden;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin-left: 0 !important;

    overflow-x: hidden;
  }


  /* --------------------------------
     SIDEBAR
     -------------------------------- */

  .sidebar {
    width: 82vw;
    max-width: 290px;
    min-width: 250px;

    transform: translateX(-105%);

    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }


  /* --------------------------------
     SIDEBAR HEADER
     -------------------------------- */

  .sidebar-header {
    height: 70px;

    box-sizing: border-box;

    padding: 0 16px;

    display: flex !important;

    align-items: center;
    justify-content: space-between;
  }

  .sidebar-brand {
    margin: 0;

    font-size: 1.05rem;
  }

  /* Close button */
  .sidebar-header .btn-icon {
    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0 !important;

    border: 0;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    cursor: pointer;
  }


  /* --------------------------------
     NAVIGATION
     -------------------------------- */

  .nav-links {
    padding: 18px 12px;

    gap: 5px;
  }

  .nav-link {
    min-height: 46px;

    box-sizing: border-box;

    padding: 10px 13px;

    border-radius: 9px;

    white-space: nowrap;
  }


  /* --------------------------------
     LOGOUT
     -------------------------------- */

  .sidebar > div:last-child {
    padding:
      16px 12px
      max(16px, env(safe-area-inset-bottom));
  }


  /* --------------------------------
     TOP HEADER
     -------------------------------- */

  .top-header {
    width: 100%;

    height: 64px !important;

    padding:
      0 14px !important;

    box-sizing: border-box;

    gap: 10px;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;

    padding: 0 !important;

    flex-shrink: 0;
  }


  /* --------------------------------
     HIDE DESKTOP DATE WIDGET
     -------------------------------- */

  .top-header > div:last-child {
    gap: 8px !important;
  }

  .top-header > div:last-child > div:first-child {
    display: none !important;
  }


  /* --------------------------------
     PAGE CONTENT
     -------------------------------- */

  .page-content {
    width: 100%;

    max-width: 100%;

    min-width: 0;

    padding:
      16px !important;

    box-sizing: border-box;

    overflow-x: hidden;
  }
}


/* ============================================================
   VERY SMALL DEVICES — 360px
   ============================================================ */

@media screen and (max-width: 380px) {

  .sidebar {
    width: 82vw;
    min-width: 245px;
    max-width: 290px;
  }

  .sidebar-header {
    padding: 0 14px;
  }

  .nav-links {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-link {
    min-height: 44px;

    padding:
      9px 12px;

    font-size: 13px;
  }

  .page-content {
    padding: 14px !important;
  }
}

/* =========================================
   MOBILE LOGIN RESPONSIVE FIX
   ========================================= */

@media (max-width: 767px) {

  html,
  body,
  #root {
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
  }

  .login-page {
    width: 100%;
    min-width: 100%;
    min-height: 100dvh;
    height: auto;
    display: block;
    overflow-x: hidden;
    background: #f7faf8;
  }

  /* Hide left visual section on mobile */
  .login-visual {
    display: none !important;
  }

  /* Login section uses complete mobile width */
  .login-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 100dvh;
    height: auto !important;

    margin: 0 !important;
    padding: 32px 20px 28px !important;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0 !important;

    box-sizing: border-box;
  }

  /* Login content wrapper if present */
  .login-panel > * {
    max-width: 100%;
  }

  /* Heading */
  .login-panel h1,
  .login-panel h2 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.15;
  }

  /* Subtitle */
  .login-panel p {
    max-width: 100%;
  }

  /* Form */
  .login-panel form {
    width: 100%;
    max-width: 100%;
  }

  /* Labels */
  .login-panel label {
    width: 100%;
    display: block;
    box-sizing: border-box;
  }

  /* Inputs */
  .login-panel input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* Input wrapper */
  .login-panel .input-wrapper,
  .login-panel .form-group,
  .login-panel .input-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Sign in button */
  .login-panel button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Security footer */
  .login-panel .login-security,
  .login-panel .security-text {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}


/* Smaller phones */
@media (max-width: 380px) {

  .login-panel {
    padding: 26px 16px 24px !important;
  }

  .login-panel h1,
  .login-panel h2 {
    font-size: 26px;
  }

  .login-panel input {
    height: 46px;
  }

  .login-panel button[type="submit"] {
    height: 46px;
  }
}

/* =========================================
   LOGIN PAGE - DESKTOP + MOBILE
   ========================================= */

.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  background-color: var(--bg-page);
}

.login-card {
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.login-error {
  background-color: var(--danger-bg);
  color: var(--danger);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Tablet */
@media (max-width: 768px) {
  .login-page {
    min-height: 100dvh;
    padding: 20px;
    align-items: center;
  }

  .login-card {
    max-width: 100%;
    padding: 2rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .login-page {
    min-height: 100dvh;
    padding: 16px;
    align-items: center;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .login-header {
    margin-bottom: 2rem;
  }

  .login-title {
    font-size: 1.3rem;
  }

  .login-subtitle {
    font-size: 0.78rem;
  }

  .login-error {
    padding: 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
  }

  .form-label {
    font-size: 0.85rem;
  }

  .form-control {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .login-card .btn {
    min-height: 48px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .login-page {
    padding: 12px;
  }

  .login-card {
    padding: 22px 16px;
  }

  .login-title {
    font-size: 1.2rem;
  }
}

/* ============================================================
   LOGIN PAGE - FULL VIEWPORT FIX
   ============================================================ */

html,
body,
#root {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
}

/* Login page should always fit inside viewport */
.login-page,
.login-container,
.universal-login,
.universal-login-page {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}

/* Prevent login columns from creating extra height */
.login-page *,
.login-container *,
.universal-login *,
.universal-login-page * {
  box-sizing: border-box;
}

/* Desktop login layout */
@media screen and (min-width: 768px) {
  .login-page,
  .login-container,
  .universal-login,
  .universal-login-page {
    overflow: hidden;
  }
}

/* Mobile login */
@media screen and (max-width: 767px) {
  .login-page,
  .login-container,
  .universal-login,
  .universal-login-page {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-y: auto;
  }

  body {
    overflow-y: auto;
  }
}
/* Professional Leave Details modal */
.leave-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding: 2px 3px 4px 0;
}

.leave-detail-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #e7eee9;
  border-radius: 12px;
  background: #fbfdfb;
}

.leave-detail-label {
  color: #718078;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.leave-detail-value {
  color: #1f3428;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.leave-detail-muted {
  color: #718078;
  font-size: 12px;
}

.leave-detail-employee {
  background: #f0fdf4;
  border-color: #d7f1df;
}

.leave-detail-period {
  background: #f8fbf9;
}

.leave-detail-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.leave-status-pending {
  background: #eff6ff;
  color: #2563eb;
}

.leave-status-approved {
  background: #dcfce7;
  color: #15803d;
}

.leave-status-rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.leave-detail-reason {
  grid-column: 1 / -1;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.leave-detail-rejection {
  grid-column: 1 / -1;
  background: #fff7f7;
  border-color: #fecaca;
}

.leave-detail-reason-text {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .leave-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    max-height: 52vh;
  }

  .leave-detail-card,
  .leave-detail-reason,
  .leave-detail-rejection {
    grid-column: 1;
    padding: 12px;
  }

  .leave-detail-value {
    font-size: 13px;
  }
}


/* Push notification button responsive layout */
.push-notifications-container {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.push-notifications-container button {
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .push-notifications-container {
    width: 100%;
    align-items: stretch;
  }

  .push-notifications-container button {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
  }
}

/* ===== Attendance Header Mobile Responsive Fix ===== */

@media screen and (max-width: 600px) {
  /* Allow header items to wrap instead of overlapping */
  header,
  .admin-header,
  .employee-header,
  .employee-header-right {
    flex-wrap: wrap !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  /* Notification group takes a separate row */
  .push-notifications-container {
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }

  .push-notifications-container button {
    width: 100% !important;
    min-height: 42px;
    padding: 9px 12px !important;
    font-size: 13px !important;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  /* Prevent notification controls from forcing overflow */
  .push-notifications-container,
  .push-notifications-container * {
    box-sizing: border-box;
  }
}

/* Precise mobile header layout fix */
@media screen and (max-width: 600px) {
  .admin-header-right,
  .employee-header-right {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .admin-header-right > div:has(.push-notifications-container),
  .employee-header-right > div:has(.push-notifications-container) {
    flex: 1 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .push-notifications-container {
    width: 100% !important;
    align-items: stretch !important;
  }

  .push-notifications-container button {
    width: 100% !important;
    min-height: 42px !important;
    white-space: normal !important;
  }
}

/* Final mobile push notification layout fix */
@media screen and (max-width: 600px) {
  header.top-header.employee-top-header {
    height: auto !important;
    min-height: 80px !important;
    padding: 10px 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 20 !important;
    box-sizing: border-box !important;
  }

  .employee-header-right {
    display: flex !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .push-controls-wrapper {
    display: flex !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    order: 3 !important;
    box-sizing: border-box !important;
  }

  .push-controls-wrapper .push-notifications-container {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }

  .push-controls-wrapper .push-notifications-container button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Mobile: hide header push controls to prevent profile overlap */
@media screen and (max-width: 600px) {
  .employee-header-right > .push-controls-wrapper {
    display: none !important;
  }

  .employee-header-right .push-notifications-container {
    display: none !important;
  }
}

/* Mobile push notification controls */
.mobile-push-notifications {
  display: none;
}

@media (max-width: 768px) {
  .desktop-push-controls {
    display: none !important;
  }

  .mobile-push-notifications {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    position: relative;
    z-index: 1;
  }

  .mobile-push-notifications .push-notifications-container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
  }

  .mobile-push-notifications button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-push-notifications p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Admin mobile notification alignment */
.admin-mobile-push-controls {
  display: none;
}

@media (max-width: 768px) {
  .desktop-push-controls {
    display: none !important;
  }

  .admin-mobile-push-controls {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    position: relative;
    z-index: 2;
    background: var(--bg-page, #f8fafc);
  }

  .admin-mobile-push-controls .push-notifications-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .admin-mobile-push-controls .enable-push-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-mobile-push-controls .push-button-desktop {
    display: none;
  }

  .admin-mobile-push-controls .push-button-mobile {
    display: inline-flex;
  }
}

/* Mobile push notification: icon only */
@media (max-width: 768px) {
  .push-button-desktop {
    display: none !important;
  }

  .push-button-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-push-notifications,
  .admin-mobile-push-controls {
    align-items: center !important;
    flex-direction: row !important;
    gap: 12px !important;
  }

  .mobile-push-notifications .enable-push-button,
  .admin-mobile-push-controls .enable-push-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-push-notifications .push-notifications-container,
  .admin-mobile-push-controls .push-notifications-container {
    flex-direction: row !important;
    align-items: center !important;
  }
}

/* Admin mobile notification icons - final layout */
.admin-mobile-push-controls {
  display: none;
}

@media (max-width: 768px) {
  .admin-mobile-push-controls {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px;
    position: relative;
    z-index: 1;
    background: var(--bg-page, #f8fafc);
  }

  .admin-mobile-push-controls .push-notifications-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .admin-mobile-push-controls .enable-push-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-mobile-push-controls .push-button-desktop {
    display: none !important;
  }

  .admin-mobile-push-controls .push-button-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile header notification and announcement icons */
.admin-mobile-push-controls {
  display: none;
}

@media (max-width: 768px) {
  .admin-mobile-push-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 8px 16px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-mobile-push-controls button,
  .admin-mobile-push-controls .notification-bell-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  .mobile-announcement-button {
    background: #fff0e5 !important;
    color: #e56108 !important;
    border: 1px solid #ffdcc4 !important;
  }

  .admin-mobile-push-controls .push-button-desktop {
    display: none !important;
  }

  .admin-mobile-push-controls .enable-push-button {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .admin-mobile-push-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 8px 16px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .admin-mobile-push-controls .mobile-announcement-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: #fff0e5 !important;
    color: #e56108 !important;
    border: 1px solid #ffdcc4 !important;
  }

  .admin-mobile-push-controls .push-notifications-container {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .notification-dropdown-panel {
    position: fixed !important;
    top: 125px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(65vh, 430px) !important;
    z-index: 99999 !important;
  }
}

/* Employee header: notification actions left, profile right */
.mobile-employee-header-actions {
  display: none;
}

@media (max-width: 768px) {
  .employee-header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .employee-header-right .employee-date-widget {
    display: none !important;
  }

  .employee-header-right > .desktop-push-controls {
    display: none !important;
  }

  .mobile-employee-header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .employee-header-profile {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 0 !important;
  }

  .employee-header-user-info {
    display: none !important;
  }

  .mobile-employee-header-actions .enable-push-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-employee-header-actions .push-button-desktop {
    display: none !important;
  }

  .mobile-employee-header-actions .push-button-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* FINAL FIX: Employee mobile header icon alignment */
@media (max-width: 768px) {
  .employee-header-right {
    margin-left: auto !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
    justify-content: flex-end !important;
    gap: 12px !important;
  }

  .mobile-employee-header-actions {
    margin-left: auto !important;
    padding-left: 12px !important;
    padding-right: 8px !important;
    flex-shrink: 0 !important;
    gap: 10px !important;
  }

  .employee-header-profile {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }

  .employee-top-header {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }
}

/* FINAL: Keep employee icons beside profile on mobile */
@media screen and (max-width: 768px) {
  header.employee-top-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  header.employee-top-header .employee-header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    padding: 0 !important;
    flex: 0 1 auto !important;
  }

  header.employee-top-header .mobile-employee-header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  header.employee-top-header .employee-header-profile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  header.employee-top-header .mobile-employee-header-actions button,
  header.employee-top-header .mobile-employee-header-actions .enable-push-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile: show Enable Push Notifications icon */
@media (max-width: 768px) {
  .mobile-employee-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-direction: row !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .mobile-employee-header-actions .push-notifications-container {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .mobile-employee-header-actions .enable-push-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background: #e56108 !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
  }

  .mobile-employee-header-actions .push-button-desktop {
    display: none !important;
  }

  .mobile-employee-header-actions .push-button-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-employee-header-actions .push-notifications-container p {
    display: none !important;
  }
}

/* Final push icon spacing and status popup: desktop + mobile */
.push-controls-wrapper,
.mobile-employee-header-actions {
  align-items: center;
  gap: 10px !important;
}

.push-notifications-container {
  position: relative;
}

.push-status-toast {
  position: fixed !important;
  left: 50% !important;
  bottom: 24px !important;
  transform: translateX(-50%) !important;
  z-index: 100000 !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  background: #166534 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.2) !important;
  font-size: 14px !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 768px) {
  .mobile-employee-header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .mobile-employee-header-actions > * {
    flex-shrink: 0 !important;
  }

  .mobile-employee-header-actions .enable-push-button {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}

/* Centered push notification confirmation modal */
.push-status-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 200000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(3px);
}

.push-status-modal {
  position: relative !important;
  width: min(420px, calc(100vw - 40px)) !important;
  max-width: 100% !important;
  margin: auto !important;
  padding: 30px 24px 24px !important;
  box-sizing: border-box !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  color: #172033 !important;
  text-align: center !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25) !important;
  animation: push-modal-appear 180ms ease-out;
}

.push-status-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 18px !important;
  border-radius: 50% !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-size: 36px !important;
  font-weight: 700 !important;
}

.push-status-modal h2 {
  margin: 0 0 12px !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #172033 !important;
  overflow-wrap: anywhere !important;
}

.push-status-modal p {
  margin: 0 0 24px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  overflow-wrap: anywhere !important;
}

.push-status-ok {
  width: 100% !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #e56108 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

@keyframes push-modal-appear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .push-status-overlay {
    padding: 20px !important;
  }

  .push-status-modal {
    width: 100% !important;
    max-width: 360px !important;
    padding: 28px 22px 22px !important;
    border-radius: 18px !important;
  }

  .push-status-modal h2 {
    font-size: 21px !important;
  }

  .push-status-modal p {
    font-size: 15px !important;
  }

  .push-status-ok {
    min-height: 50px !important;
  }
}

.push-choice-disable,
.push-choice-cancel {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  touch-action: manipulation;
}

.push-choice-disable {
  border: 1px solid #e5e7eb;
  background: #fff7ed;
  color: #c2410c;
}

.push-choice-cancel {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #475569;
}

/* Admin mobile announcement action visibility */
@media screen and (max-width: 768px) {
  .admin-mobile-push-controls {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 20 !important;
    overflow: visible !important;
  }

  .admin-mobile-push-controls .push-notifications-container,
  .admin-mobile-push-controls .admin-announcement-action {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto !important;
    position: relative !important;
  }

  .admin-mobile-push-controls .enable-push-button {
    display: inline-flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
  }

  .admin-mobile-push-controls .push-button-desktop {
    display: none !important;
  }

  .admin-mobile-push-controls .push-button-mobile {
    display: inline-flex !important;
    visibility: visible !important;
  }

  .admin-mobile-push-controls button {
    touch-action: manipulation !important;
  }
}
/* Mobile push notification popup overlap fix */
.push-status-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.push-status-modal {
  width: 100% !important;
  max-width: 420px !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  padding: 28px 22px !important;
  text-align: center !important;
}

.push-status-modal h2,
.push-status-modal p {
  position: static !important;
  overflow-wrap: anywhere !important;
  line-height: 1.5 !important;
}

.push-status-modal p {
  margin-bottom: 24px !important;
}

.push-status-modal button {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin: 6px !important;
  min-height: 44px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

.push-status-modal .push-status-ok {
  min-width: 100px !important;
}

@media (max-width: 480px) {
  .push-status-modal {
    max-width: 360px !important;
    padding: 24px 18px !important;
  }
}

/* FIX: Admin Push Notification Choice Popup */
.push-status-modal .push-status-ok,
.push-status-modal .push-choice-disable,
.push-status-modal .push-choice-cancel {
  display: flex !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: normal !important;
  flex: 0 0 auto !important;
}

.push-status-modal:has(.push-choice-disable) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: calc(100vw - 32px) !important;
  max-width: 360px !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.push-status-modal:has(.push-choice-disable) > .push-status-icon,
.push-status-modal:has(.push-choice-disable) > h2,
.push-status-modal:has(.push-choice-disable) > p {
  flex: 0 0 auto !important;
  position: static !important;
}


/* Push notification popup - compact mobile UI */
.push-status-modal {
  width: min(280px, calc(100vw - 36px)) !important;
  max-width: 280px !important;
  margin: auto !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  text-align: center !important;
}

.push-status-modal h2,
.push-status-modal h3 {
  font-size: 16px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.push-status-modal button:only-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 12px auto 0 !important;
}

.push-status-modal:has(.push-choice-disable) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

.push-status-modal:has(.push-choice-disable) button {
  width: 100% !important;
  max-width: 220px !important;
  margin: 0 auto !important;
}


/* FINAL FIX: Push notification success popup */
.push-status-modal {
  width: min(270px, calc(100vw - 40px)) !important;
  max-width: 270px !important;
  padding: 18px 16px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px !important;
}

.push-status-modal > *,
.push-status-modal > * > * {
  box-sizing: border-box !important;
}

.push-status-modal button {
  align-self: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 8px auto 0 !important;
}

.push-status-modal button:only-child {
  margin-inline: auto !important;
}

.push-status-modal:has(.push-choice-disable) button {
  width: 100% !important;
  max-width: 220px !important;
  margin: 0 auto !important;
}


/* Push notification success icon and centered OK button */
.push-status-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: #dcfce7 !important;
  color: #16a34a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px !important;
}

.push-status-modal {
  width: min(280px, calc(100vw - 36px)) !important;
  max-width: 280px !important;
  padding: 18px 16px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.push-status-modal .push-status-ok {
  display: flex !important;
  width: fit-content !important;
  min-width: 64px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 14px auto 0 !important;
}


/* FIX: Mobile header notification and profile icon alignment */
@media (max-width: 600px) {
  .mobile-employee-header,
  .admin-mobile-push-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0 !important;
  }

  .mobile-employee-header > *,
  .admin-mobile-push-controls > * {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .admin-mobile-push-controls button,
  .mobile-employee-header button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  .admin-mobile-push-controls .push-button-desktop {
    display: none !important;
  }

  .admin-mobile-push-controls .push-button-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* Employee mobile header - final equal alignment */
@media screen and (max-width: 768px) {
  header.employee-top-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 12px !important;
  }

  header.employee-top-header .employee-header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-left: auto !important;
    padding: 0 !important;
  }

  header.employee-top-header .mobile-employee-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header.employee-top-header .mobile-employee-header-actions > * {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  header.employee-top-header .mobile-employee-header-actions .enable-push-button,
  header.employee-top-header .mobile-employee-header-actions button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  header.employee-top-header .employee-header-profile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header.employee-top-header .employee-header-profile img,
  header.employee-top-header .employee-header-profile button,
  header.employee-top-header .employee-header-profile .profile-avatar-button {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    object-fit: cover !important;
  }

  header.employee-top-header .mobile-employee-header-actions .push-button-desktop {
    display: none !important;
  }

  header.employee-top-header .mobile-employee-header-actions .push-button-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* Correct employee header spacing on mobile */
@media (max-width: 768px) {
  header.employee-top-header .employee-header-right {
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  header.employee-top-header .employee-date-widget,
  header.employee-top-header .desktop-push-controls {
    display: none !important;
  }

  header.employee-top-header .mobile-employee-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header.employee-top-header .mobile-employee-header-actions > * {
    margin: 0 !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }

  header.employee-top-header .employee-header-profile {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  header.employee-top-header .employee-header-profile .avatar {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
  }

  header.employee-top-header .mobile-employee-header-actions button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* HR Accounts - Company dropdown */
.hr-company-dropdown {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 14px;
  border: 1px solid #dce3e8 !important;
  border-radius: 9px !important;
  background-color: #ffffff;
  color: #263442;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hr-company-dropdown:hover {
  border-color: #9ba9b5 !important;
}

.hr-company-dropdown:focus {
  border-color: #198754 !important;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12) !important;
}

.hr-company-dropdown option {
  padding: 12px;
  background: #ffffff;
  color: #263442;
  font-size: 14px;
}

.hr-company-dropdown option:checked {
  background-color: #e8f5ee;
  color: #176b43;
  font-weight: 600;
}

.hr-company-dropdown:disabled {
  background-color: #f3f5f7;
  color: #929ba5;
  cursor: not-allowed;
}

/* Admin and HR sidebar dropdown navigation */
.nav-dropdown-trigger {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-arrow {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 8px 18px;
  padding-left: 10px;
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  animation: nav-submenu-enter 160ms ease-out;
}

.nav-sub-link {
  min-height: 42px;
  padding-left: 12px !important;
  font-size: 13px !important;
}

.nav-sub-link svg {
  flex-shrink: 0;
}

.nav-dropdown-trigger:focus-visible,
.nav-sub-link:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

@keyframes nav-submenu-enter {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-submenu {
    animation: none;
  }
}

.holiday-form-card {
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  margin: 0 auto 28px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.holiday-form-card h2 {
  margin: 0 0 26px;
  color: #172033;
  font-size: 23px;
  font-weight: 700;
}

.holiday-form-card .holiday-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.holiday-form-card input,
.holiday-form-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  transition: border-color .2s, box-shadow .2s;
}

.holiday-form-card input:focus,
.holiday-form-card textarea:focus {
  outline: none;
  border-color: #e56108;
  box-shadow: 0 0 0 3px rgba(229, 97, 8, .12);
}

.holiday-form-card button[type="submit"] {
  background: #e56108 !important;
  color: #fff !important;
  border-radius: 9px;
}

.holiday-form-card button[type="button"] {
  border-radius: 9px;
}

@media (max-width: 640px) {
  .holiday-form-card {
    padding: 20px 16px;
  }

  .holiday-form-card .holiday-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Holiday Form  Professional Light Green & Orange Theme */
.holiday-form-card {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  max-width: 966px;
  width: 100%;
  margin: 0 auto 30px;
  padding: 30px 32px;
  box-sizing: border-box;
  background: linear-gradient(145deg, #ffffff 0%, #f5fbf6 100%);
  border: 1px solid #cfe8d5;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(35, 100, 58, 0.08);
  color: #24352b;
}

.holiday-form-card h2 {
  margin: 0 0 26px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #183b29;
}

.holiday-form-card label,
.holiday-form-card .holiday-company-field,
.holiday-form-card .holiday-description-field {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: #344b3b;
}

.holiday-form-card .holiday-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 22px;
}

.holiday-form-card input,
.holiday-form-card textarea {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #26382c;
  background: #ffffff;
  border: 1px solid #cbded0;
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.holiday-form-card input {
  min-height: 46px;
  padding: 11px 14px;
}

.holiday-form-card textarea {
  min-height: 105px;
  padding: 12px 14px;
  resize: vertical;
}

.holiday-form-card input::placeholder,
.holiday-form-card textarea::placeholder {
  color: #89998e;
}

.holiday-form-card input:hover,
.holiday-form-card textarea:hover {
  border-color: #91c7a0;
}

.holiday-form-card input:focus,
.holiday-form-card textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #e56108;
  box-shadow: 0 0 0 3px rgba(229, 97, 8, 0.12);
}

.holiday-form-card .holiday-company-field {
  margin-bottom: 22px;
}

.holiday-form-card .holiday-description-field {
  margin-top: 2px;
}

.holiday-form-card button {
  min-height: 44px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.holiday-form-card button[type="submit"] {
  background: #e56108 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(229, 97, 8, .16);
}

.holiday-form-card button[type="submit"]:hover:not(:disabled) {
  background: #c95105 !important;
  box-shadow: 0 5px 12px rgba(229, 97, 8, .22);
  transform: translateY(-1px);
}

.holiday-form-card button[type="button"] {
  background: #edf6ef !important;
  color: #355b40 !important;
  border-color: #d8e9dc;
}

.holiday-form-card button[type="button"]:hover {
  background: #deefe2 !important;
}

.holiday-form-card button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .holiday-form-card {
    padding: 22px 17px;
    border-radius: 13px;
  }

  .holiday-form-card h2 {
    font-size: 21px;
    margin-bottom: 20px;
  }

  .holiday-form-card .holiday-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .holiday-form-card button {
    padding: 0 15px;
  }
}


/* Holiday page  light green primary action */
.holiday-form-card button[type="submit"] {
  background: #b9e4c5 !important;
  color: #17452a !important;
  border: 1px solid #a5d8b4 !important;
  box-shadow: 0 3px 8px rgba(54, 130, 76, 0.10);
}

.holiday-form-card button[type="submit"]:hover:not(:disabled) {
  background: #a5d8b4 !important;
  border-color: #8bc99d !important;
  color: #123b22 !important;
  box-shadow: 0 5px 12px rgba(54, 130, 76, 0.16);
}


/* Holiday date picker  aligned with Live Locations calendar */
.holiday-form-card .attendance-datepicker-wrapper {
  width: 100%;
}

.holiday-form-card .custom-date-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.holiday-form-card .custom-date-input,
.holiday-form-card .custom-date-control input {
  width: 100%;
  min-height: 46px;
  padding: 11px 42px 11px 14px;
  box-sizing: border-box;
  border: 1px solid #cfe2d3;
  border-radius: 10px;
  background: #ffffff;
  color: #24352b;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.holiday-form-card .custom-date-input:hover,
.holiday-form-card .custom-date-control input:hover {
  border-color: #91c7a0;
}

.holiday-form-card .custom-date-input:focus,
.holiday-form-card .custom-date-control input:focus {
  outline: none;
  border-color: #e56108;
  box-shadow: 0 0 0 3px rgba(229, 97, 8, .12);
}

.holiday-form-card .custom-date-icon-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #edf7ef;
  color: #269653;
  cursor: pointer;
}

.holiday-form-card .custom-date-icon-button:hover {
  background: #d9efdf;
  color: #18763c;
}

.holiday-form-card .attendance-custom-calendar {
  overflow: hidden;
  padding: 0;
  border: 1px solid #cfe8d5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(25, 70, 40, .14);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.holiday-form-card .attendance-custom-calendar .react-datepicker__header {
  padding-top: 12px;
  border-bottom: 1px solid #e1eee4;
  background: #f0f8f2;
}

.holiday-form-card .attendance-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #244b31;
  font-size: 14px;
  font-weight: 700;
}

.holiday-form-card .attendance-calendar-header button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #d5e8da;
  border-radius: 7px;
  background: #ffffff;
  color: #277b43;
}

.holiday-form-card .attendance-calendar-header button:hover {
  background: #dff2e4;
}

.holiday-form-card .attendance-custom-calendar .react-datepicker__day-name {
  color: #63776a;
  font-size: 12px;
  font-weight: 600;
}

.holiday-form-card .attendance-custom-calendar .react-datepicker__day {
  border-radius: 8px;
  color: #344b3b;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  transition: background .15s ease, color .15s ease;
}

.holiday-form-card .attendance-custom-calendar .react-datepicker__day:hover {
  border-radius: 8px;
  background: #e0f2e5;
  color: #205e34;
}

.holiday-form-card .attendance-custom-calendar .react-datepicker__day--selected,
.holiday-form-card .attendance-custom-calendar .react-datepicker__day--keyboard-selected {
  border-radius: 8px;
  background: #b9e4c5;
  color: #17452a;
  font-weight: 700;
}

.holiday-form-card .attendance-custom-calendar .react-datepicker__day--today {
  border: 1px solid #e56108;
  font-weight: 700;
}

.holiday-form-card .attendance-custom-calendar .react-datepicker__day--outside-month,
.holiday-form-card .attendance-custom-calendar .react-datepicker__day--disabled {
  color: #b7c2ba;
}

.holiday-form-card button[type="submit"] {
  background: #b9e4c5 !important;
  color: #17452a !important;
  border: 1px solid #a5d8b4 !important;
  box-shadow: 0 3px 8px rgba(54, 130, 76, .10);
}

.holiday-form-card button[type="submit"]:hover:not(:disabled) {
  background: #a5d8b4 !important;
  border-color: #8bc99d !important;
  color: #123b22 !important;
}

/* ==========================================================================
   custom-dropdown.css — Standardized Dropdown Styling based on Live Locations
   ========================================================================== */

.custom-select-container {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.custom-select-trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.custom-select-trigger:hover:not(:disabled) {
  border-color: #b8c2cf;
}

.custom-select-trigger:focus-visible,
.custom-select-trigger.active {
  outline: none;
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

.custom-select-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
}

.custom-select-trigger-icon {
  display: flex;
  align-items: center;
  color: #64748b;
  flex-shrink: 0;
}

.custom-select-trigger-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.custom-select-trigger-arrow {
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-select-trigger.active .custom-select-trigger-arrow {
  transform: rotate(180deg);
}

/* Backdrop dismiss overlay */
.custom-select-dismiss {
  position: fixed;
  inset: 0;
  z-index: 9990;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

/* Menu Dropdown */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 220px;
  max-width: 100vw;
  padding: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(16, 24, 40, 0.12);
  z-index: 9999;
  box-sizing: border-box;
}

.custom-select-dropdown.align-right {
  left: auto;
  right: 0;
}

.custom-select-dropdown.open-upward {
  top: auto;
  bottom: calc(100% + 6px);
  box-shadow: 0 -14px 35px rgba(16, 24, 40, 0.12);
}

/* Search Box */
.custom-select-search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f4;
  color: #667085;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 4px;
}

.custom-select-search-icon {
  color: #64748b;
  flex-shrink: 0;
}

.custom-select-search-input {
  width: 100%;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 13px;
}

.custom-select-search-input::placeholder {
  color: #94a3b8;
}

/* Options Container */
.custom-select-options {
  max-height: 240px;
  overflow-y: auto;
  padding: 2px 0;
}

.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Individual Option */
.custom-select-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-select-option:hover {
  background: #f5f7fa;
  color: #0f172a;
}

.custom-select-option.selected {
  background: #f0f2f5;
  color: #0f172a;
  font-weight: 600;
}

.custom-select-option-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-option-check {
  color: #344054;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.custom-select-no-options {
  padding: 14px 10px;
  color: #667085;
  font-size: 12px;
  text-align: center;
}
/* ==========================================================================
   custom-datepicker.css — Standardized Calendar / Date Picker based on Live Locations
   ========================================================================== */

.custom-datepicker-container {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.custom-datepicker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 6px;
  user-select: none;
}

.custom-datepicker-trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.custom-datepicker-trigger > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-datepicker-trigger:hover:not(:disabled) {
  border-color: #b8c2cf;
}

.custom-datepicker-trigger:focus-visible,
.custom-datepicker-trigger.active {
  outline: none;
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

.custom-datepicker-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8fafc;
}

.custom-datepicker-trigger-icon {
  color: #64748b;
  flex-shrink: 0;
}

/* Dismiss overlay */
.custom-datepicker-dismiss {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9990 !important;
  width: 100vw !important;
  height: 100vh !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: default !important;
  pointer-events: auto !important;
}

/* Calendar Card Popup */
.custom-datepicker-calendar {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(16, 24, 40, 0.18);
  z-index: 9999;
  box-sizing: border-box;
}

.custom-datepicker-calendar.open-upwards {
  top: auto;
  bottom: calc(100% + 6px);
  box-shadow: 0 -14px 35px rgba(16, 24, 40, 0.18);
}

.custom-datepicker-calendar.align-right {
  left: auto;
  right: 0;
}

/* Year & Month quick selectors in header */
.custom-datepicker-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-datepicker-month-select,
.custom-datepicker-year-select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.custom-datepicker-month-select:focus,
.custom-datepicker-year-select:focus {
  border-color: #315C55;
}

/* Isolate all buttons inside the calendar popup from external button styling */
.custom-datepicker-calendar button {
  font-family: inherit !important;
  box-sizing: border-box !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  transform: none !important;
}

/* Calendar Header */
.custom-datepicker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.custom-datepicker-heading strong {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}

.custom-datepicker-heading button {
  display: grid !important;
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  min-width: 30px !important;
  place-items: center !important;
  border: 1px solid #eaecf0 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #475467 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.custom-datepicker-heading button:hover {
  background: #f5f7fa !important;
  border-color: #d0d5dd !important;
}

/* Calendar Days Grid */
.custom-datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 32px);
  justify-content: space-between;
  gap: 3px 0;
  width: 100%;
  box-sizing: border-box;
}

.custom-datepicker-weekday,
.custom-datepicker-blank,
.custom-datepicker-day {
  display: grid;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  place-items: center;
  box-sizing: border-box;
}

.custom-datepicker-weekday {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  user-select: none;
}

.custom-datepicker-day {
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #344054 !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-datepicker-day:hover:not(:disabled) {
  background: #f0f2f5 !important;
  color: #1d2939 !important;
}

.custom-datepicker-day.is-selected {
  background: #344054 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.custom-datepicker-day.is-today:not(.is-selected) {
  border: 1px solid #344054 !important;
  font-weight: 600 !important;
}

.custom-datepicker-day:disabled {
  color: #d0d5dd !important;
  background: transparent !important;
  cursor: not-allowed !important;
}

/* Today Action */
.custom-datepicker-today-btn {
  width: 100% !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin-top: 10px !important;
  padding: 0 12px !important;
  border: 1px solid #eaecf0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #344054 !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.custom-datepicker-today-btn:hover {
  background: #f5f7fa !important;
  border-color: #d0d5dd !important;
}

@media (max-width: 480px) {
  .custom-datepicker-calendar {
    width: 272px;
    max-width: calc(100vw - 32px);
  }
}
/* ==========================================================================
   EmployeeForm.css — Dedicated Component & Page Styles for Add/Edit Employee
   ========================================================================== */

/* Fullscreen / Full-width container overrides */
.employee-form-fullscreen-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.employee-form-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* Modal variant */
.employee-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  box-sizing: border-box;
}

.employee-modal-content {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* Header */
.employee-form-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.employee-form-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.employee-form-header p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Horizontal Steps / Tabs Navigation */
.employee-form-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.employee-form-tabs::-webkit-scrollbar {
  display: none;
}

.employee-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 1.25rem;
  border: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  outline: none;
  position: relative;
}

.employee-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
}

.employee-tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.employee-tab-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.employee-tab-btn.active .employee-tab-step-badge {
  background: var(--primary);
  color: #ffffff;
}

.employee-tab-error-badge {
  background: var(--danger);
  color: #ffffff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Error Banner */
.employee-form-error-banner {
  margin: 1.5rem 2rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.employee-form-error-banner-icon {
  flex-shrink: 0;
}

.employee-form-error-banner-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Form Body */
.employee-form-body {
  padding: 2rem;
  flex: 1;
}

.employee-modal-content .employee-form-body {
  overflow-y: auto;
  max-height: calc(90vh - 170px);
}

.employee-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.employee-section-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.employee-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.employee-section-header-row .employee-section-title {
  margin-bottom: 0;
}

/* Form Inputs & Readonly helper styles */
.employee-readonly-input {
  background-color: var(--primary-light) !important;
  color: var(--text-secondary) !important;
  font-weight: 600;
}

.employee-field-help {
  color: var(--text-muted);
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.employee-field-error {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: block;
}

/* Profile Photo Uploader */
.employee-photo-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.employee-photo-preview {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
}

.employee-photo-placeholder {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-page);
  font-size: 0.8rem;
  text-align: center;
}

.employee-photo-placeholder-icon {
  opacity: 0.4;
  margin-bottom: 4px;
}

.employee-photo-controls {
  flex: 1;
  min-width: 260px;
}

.employee-photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease;
}

.employee-photo-upload-btn:hover {
  filter: brightness(1.08);
}

.employee-photo-file-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.employee-photo-remove-btn {
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
  padding: 0;
}

/* Dynamic Nested Cards (Education, Experience, Documents) */
.employee-nested-card {
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--bg-page);
}

.employee-nested-card-title {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.employee-nested-card-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.employee-nested-remove-btn {
  color: var(--danger);
  font-size: 0.8rem;
  padding: 0 0.85rem;
  height: 32px;
}

.employee-nested-add-btn {
  font-size: 0.8rem;
  padding: 0 0.85rem;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.employee-candidate-type-toggle {
  display: flex;
  gap: 0.75rem;
}

.employee-candidate-type-btn {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.employee-candidate-type-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
}

.employee-candidate-type-btn:not(.active) {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Password eye button */
.employee-password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* Footer Navigation & Actions */
.employee-form-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-page);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.employee-footer-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive Media Queries */
@media screen and (max-width: 900px) {
  .employee-form-header,
  .employee-form-body,
  .employee-form-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .employee-form-tabs {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 640px) {
  .employee-form-header {
    padding: 1rem;
  }

  .employee-form-body {
    padding: 1.25rem 1rem;
  }

  .employee-form-footer {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .employee-form-footer > div {
    display: flex;
    justify-content: stretch;
  }

  .employee-footer-actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .employee-footer-actions button,
  .employee-form-footer button {
    width: 100%;
    justify-content: center;
  }

  .employee-tab-btn {
    padding: 0.85rem 1rem;
    font-size: 0.825rem;
  }
}
/* ==========================================================================
   EmployeeFormPage.css — Page level layout styling for Add/Edit Employee route
   ========================================================================== */

.employee-page-fullwidth {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.employee-page-top-bar {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.employee-page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.employee-page-error-message {
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 1rem;
}
.employee-documents-panel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 1rem;
  padding: 1.25rem;
}

.employee-documents-panel form {
  width: 100%;
  min-width: 0;
  align-items: start;
}

.employee-documents-panel form label {
  min-width: 0;
  width: 100%;
  color: var(--text-primary, #263238);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.employee-documents-panel form input:not([type="file"]),
.employee-documents-panel form select {
  width: 100% !important;
  min-width: 0;
  height: 44px;
  box-sizing: border-box !important;
  padding: 0.65rem 0.75rem !important;
  border: 1px solid var(--border, #d9dee7) !important;
  border-radius: 8px !important;
  background: var(--input-bg, #fff);
  color: var(--text-primary, #263238);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.employee-documents-panel form input[type="file"] {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box !important;
  padding: 0.45rem !important;
  border: 1px dashed var(--border, #d9dee7);
  border-radius: 8px;
  background: var(--input-bg, #fff);
  color: var(--text-primary, #263238);
  font: inherit;
}

.employee-documents-panel form input:focus,
.employee-documents-panel form select:focus {
  border-color: var(--primary, #e56108) !important;
  box-shadow: 0 0 0 3px rgba(229, 97, 8, 0.12);
}

.employee-documents-panel form input[type="file"]::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: #fff0e6;
  color: #b94b00;
  font-weight: 600;
  cursor: pointer;
}

.employee-documents-panel form small {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.employee-documents-panel form button {
  min-height: 44px;
  border-radius: 8px;
  white-space: nowrap;
}

.employee-documents-panel table {
  min-width: 560px;
}

.employee-documents-panel th,
.employee-documents-panel td {
  vertical-align: middle;
}

@media (max-width: 600px) {
  .employee-documents-panel {
    padding: 1rem;
  }

  .employee-documents-panel form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .employee-documents-panel form label,
  .employee-documents-panel form > div {
    grid-column: 1 / -1 !important;
  }

  .employee-documents-panel form button {
    width: 100%;
    justify-content: center;
  }
}
.branding-page {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px);
  color: #18212b;
}

.branding-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.branding-eyebrow {
  color: #737e89;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.branding-heading h1 {
  margin: 9px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.branding-heading p,
.branding-muted {
  color: #77818d;
  font-size: 13px;
  line-height: 1.7;
}

.branding-heading p {
  margin: 0;
}

.branding-heading-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #e6e9ed;
  border-radius: 14px;
  background: #ffffff;
  color: #455260;
}

.branding-alert {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.branding-error {
  border: 1px solid #f0c5c5;
  background: #fff5f5;
  color: #a82323;
}

.branding-success {
  border: 1px solid #bfe5ce;
  background: #f1fbf5;
  color: #17683a;
}

.branding-panel {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid #e5e9ee;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(20, 30, 45, 0.035);
}

.branding-panel h2 {
  margin: 0 0 8px;
  color: #1e2935;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.branding-panel h3 {
  margin: 22px 0 8px;
  color: #293542;
  font-size: 15px;
}

.branding-panel > .branding-muted {
  margin: 0 0 22px;
}

.branding-label {
  display: block;
  margin: 19px 0 8px;
  color: #34404d;
  font-size: 12px;
  font-weight: 700;
}

.branding-company-select {
  display: flex;
  align-items: center;
  gap: 12px;
}

.branding-company-select > svg {
  flex-shrink: 0;
  color: #7c8793;
}

.branding-company-select select {
  flex: 1;
  min-width: 0;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #dfe4e9;
  border-radius: 8px;
  background: #ffffff;
  color: #26323d;
  font: inherit;
  font-size: 13px;
}

.branding-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.branding-form-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.branding-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #dfe4e9;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: #26323d;
  font: inherit;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.branding-input:focus,
.branding-company-select select:focus {
  border-color: #9aa7b4;
  box-shadow: 0 0 0 3px rgba(49, 92, 85, 0.08);
}

.branding-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.65;
}

.branding-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.branding-color-row input[type="color"] {
  width: 52px;
  height: 44px;
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid #dfe4e9;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.branding-section-divider {
  margin-top: 26px;
  border-top: 1px solid #e9edf1;
}

.branding-upload {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px;
  border: 1px dashed #cbd3dc;
  border-radius: 10px;
  background: #fafbfc;
  color: #566372;
  text-align: center;
  cursor: pointer;
}

.branding-upload:hover {
  border-color: #8a97a5;
  background: #f5f7f9;
}

.branding-upload span {
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.branding-upload small {
  color: #89929c;
  font-size: 11px;
}

.branding-logo-preview-wrap {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e8ebef;
  border-radius: 9px;
  background: #fafbfc;
}

.branding-logo-preview {
  display: block;
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

.branding-save-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 25px;
  padding: 12px 18px;
  border: 0;
  border-radius: 9px;
  background: #263c37;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 150ms ease;
}

.branding-save-button:hover:not(:disabled) {
  filter: brightness(1.12);
}

.branding-save-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.branding-preview-panel {
  overflow: hidden;
}

.branding-live-preview {
  min-width: 0;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin: 22px 0 25px;
  border: 1px solid #e6e9ed;
  border-radius: 11px;
  background: #ffffff;
}

.branding-preview-left {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.branding-preview-logo {
  max-width: 105px;
  max-height: 48px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 5px;
  background: #ffffff;
  object-fit: contain;
}

.branding-preview-company {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.branding-preview-copy {
  margin-top: auto;
  margin-bottom: auto;
  padding: 28px 0;
}

.branding-preview-copy h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.branding-preview-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-line;
}

.branding-preview-footer {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.branding-preview-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #ffffff;
}

.branding-preview-form {
  width: 100%;
  max-width: 200px;
}

.branding-preview-eyebrow {
  color: #929aa4;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.branding-preview-form h3 {
  margin: 9px 0 5px;
  color: #17212b;
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: -0.035em;
}

.branding-preview-form > p {
  margin: 0 0 17px;
  color: #87909a;
  font-size: 9px;
}

.branding-preview-field {
  min-height: 31px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 0 8px;
  border: 1px solid #e1e5e9;
  border-radius: 5px;
  color: #8b949e;
  font-size: 8px;
}

.branding-preview-login {
  min-height: 33px;
  display: grid;
  place-items: center;
  margin-top: 15px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
}

.branding-url-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.branding-url-row .branding-input {
  flex: 1;
}

.branding-icon-button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e0e5ea;
  border-radius: 8px;
  background: #ffffff;
  color: #4f5c69;
  cursor: pointer;
}

.branding-icon-button:hover:not(:disabled) {
  background: #f5f7f9;
}

.branding-icon-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.branding-url-row + .branding-muted {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .branding-grid {
    grid-template-columns: 1fr;
  }

  .branding-live-preview {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .branding-page {
    padding: 16px;
  }

  .branding-heading {
    align-items: flex-start;
  }

  .branding-heading-icon {
    width: 42px;
    height: 42px;
  }

  .branding-live-preview {
    grid-template-columns: 1fr;
  }

  .branding-preview-left {
    min-height: 230px;
  }

  .branding-preview-right {
    min-height: 280px;
  }

  .branding-url-row {
    flex-wrap: wrap;
  }

  .branding-url-row .branding-input {
    flex-basis: 100%;
  }
}

/* Branding Settings - Company selector */
.branding-company-select select {
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 15px;
  border: 1px solid #dce4e9;
  border-radius: 10px;
  background-color: #ffffff;
  color: #253442;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(20, 35, 50, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.branding-company-select select:hover {
  border-color: #aab7c2;
}

.branding-company-select select:focus {
  border-color: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.branding-company-select select option {
  padding: 12px;
  background: #ffffff;
  color: #253442;
  font-size: 14px;
}

.branding-company-select select option:checked {
  background: #e8f5ee;
  color: #176b43;
  font-weight: 600;
}

.branding-company-select select:disabled {
  background: #f3f5f7;
  color: #929ba5;
  cursor: not-allowed;
}

/* Branding preview: match the real login panel texture */
.branding-preview-left {
  background-image:
    radial-gradient(ellipse at 12% 15%, rgba(255,255,255,.15), transparent 38%),
    radial-gradient(ellipse at 88% 82%, rgba(0,0,0,.13), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 12px);
}

.branding-preview-logo {
  padding: 0;
  border-radius: 0;
  background: transparent;
}/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
.live-locations-page {
  color: #172033;
  padding: 28px;
  min-width: 0;
}
.live-locations-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:24px; }
.live-eyebrow { display:flex; align-items:center; gap:7px; color:#014B9D; font-size:11px; font-weight:800; letter-spacing:1.4px; }
.live-locations-heading h1 { margin:9px 0 6px; font-size:clamp(25px,3vw,32px); letter-spacing:-.8px; font-weight:750; }
.live-locations-heading p,.live-panel-heading p { margin:0; color:#7a8495; font-size:13px; }
.live-refresh-button,.live-reset-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:11px 16px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; color:#344054; font-weight:650; cursor:pointer; white-space:nowrap; }
.live-refresh-button:hover,.live-reset-button:hover { border-color:#0056B3; color:#014B9D; }
.live-refresh-button:disabled { opacity:.65; cursor:wait; }
.live-spin { animation:live-rotate .9s linear infinite; }
@keyframes live-rotate { to { transform:rotate(360deg); } }
.live-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.live-summary-card { display:flex; align-items:center; gap:14px; min-height:84px; padding:17px 19px; background:#fff; border:1px solid #edf0f4; border-radius:14px; }
.live-summary-icon { width:44px; height:44px; display:grid; place-items:center; color:#0056B3; background:rgba(0, 86, 179, 0.08); border-radius:12px; }
.live-summary-card div { display:grid; gap:5px; }
.live-summary-card div span { color:#7a8495; font-size:12px; }
.live-summary-card strong { font-size:22px; color:#172033; }
.live-tracking-toolbar { display:grid; grid-template-columns:minmax(150px,1fr) minmax(220px,1.5fr) minmax(150px,1fr) minmax(150px,1fr) auto; gap:13px; align-items:end; padding:16px; margin-bottom:18px; background:#fff; border:1px solid #edf0f4; border-radius:14px; }
.live-tracking-toolbar label { display:grid; gap:7px; min-width:0; }
.live-tracking-toolbar label > span { display:flex; align-items:center; gap:6px; color:#667085; font-size:11px; font-weight:750; }
.live-tracking-toolbar input,.live-tracking-toolbar select { width:100%; min-width:0; box-sizing:border-box; padding:11px 12px; border:1px solid #e4e7ec; border-radius:9px; background:#fff; color:#344054; font:inherit; font-size:12px; outline:none; }
.live-tracking-toolbar input:focus,.live-tracking-toolbar select:focus { border-color:#0056B3; box-shadow:0 0 0 3px #0056B31a; }
.live-tracking-toolbar select { appearance:none; -webkit-appearance:none; padding-right:38px; cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C65A12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.live-tracking-toolbar select option { padding:10px; background:#fff; color:#344054; }
.live-tracking-toolbar input[type="date"] { color-scheme:light; cursor:pointer; }
.live-tracking-toolbar input[type="date"]::-webkit-calendar-picker-indicator { cursor:pointer; padding:4px; border-radius:5px; filter: invert(43%) sepia(80%) saturate(1932%) hue-rotate(355deg) brightness(92%) contrast(95%); }
.live-tracking-toolbar input[type="date"]::-webkit-datetime-edit { color:#344054; }
.live-selected-details .live-location-name { display:grid; gap:5px; }
.live-selected-details .live-location-name strong { text-align:left; color:#0056B3; line-height:1.5; }
.live-tracking-layout { display:grid; grid-template-columns:minmax(300px,.78fr) minmax(0,1.65fr); gap:18px; align-items:stretch; }
.live-map-panel,.live-employee-panel,.live-history-panel { min-width:0; overflow:hidden; background:#fff; border:1px solid #edf0f4; border-radius:15px; }
.live-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 20px; border-bottom:1px solid #f0f2f5; }
.live-panel-heading h2 { margin:0 0 5px; font-size:15px; font-weight:750; }
.live-status-dot { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:20px; background:rgba(0, 86, 179, 0.08); color:#0056B3; font-size:11px; font-weight:750; white-space:nowrap; }
.live-status-dot > span { width:6px; height:6px; border-radius:50%; background:#0056B3; }
.live-history-count { padding:6px 9px; border-radius:8px; background:rgba(0, 86, 179, 0.08); color:#0056B3; font-size:11px; font-weight:750; white-space:nowrap; }
.live-map-wrap { position:relative; height:560px; }
.live-leaflet-map { width:100%; height:100%; z-index:1; }
.live-map-overlay { position:absolute; inset:0; z-index:500; display:grid; place-items:center; background:#ffffffb8; color:#475467; font-size:13px; pointer-events:none; }
.live-map-empty { position:absolute; left:50%; top:50%; z-index:450; transform:translate(-50%,-50%); width:min(300px,calc(100% - 36px)); display:grid; justify-items:center; gap:10px; padding:22px; text-align:center; border:1px solid #edf0f4; border-radius:14px; background:#fffffff2; color:#7a8495; pointer-events:none; }
.live-map-empty svg { color:#0056B3; }
.live-map-empty strong { color:#172033; font-size:14px; }
.live-map-empty span { font-size:12px; line-height:1.6; }
.live-playback-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 15px; border-bottom:1px solid #f0f2f5; }
.live-playback-controls > span { color:#7a8495; font-size:11px; text-align:right; }
.live-play-button { display:inline-flex; align-items:center; gap:7px; padding:9px 11px; border:0; border-radius:9px; background:#0056B3; color:white; font-size:12px; font-weight:750; cursor:pointer; }
.live-play-button:disabled { opacity:.45; cursor:not-allowed; }
.live-timeline { max-height:510px; overflow:auto; }
.live-timeline-message { padding:24px 18px; color:#7a8495; font-size:12px; line-height:1.6; }
.live-timeline-item { position:relative; display:flex; width:100%; gap:12px; padding:15px 16px; border:0; border-bottom:1px solid #f0f2f5; background:#fff; text-align:left; cursor:pointer; }
.live-timeline-item:hover,.live-timeline-item.active { background:#F8F9FC; }
.live-timeline-marker { position:relative; flex:0 0 10px; width:10px; height:10px; margin-top:4px; border:2px solid #0056B3; border-radius:50%; background:#fff; }
.live-timeline-item.active .live-timeline-marker { background:#0056B3; box-shadow:0 0 0 4px #0056B31f; }
.live-timeline-copy { min-width:0; display:grid; gap:6px; }
.live-timeline-copy strong { color:#202939; font-size:12px; font-weight:750; }
.live-timeline-copy small { display:flex; align-items:center; gap:5px; color:#7a8495; font-size:10px; overflow-wrap:anywhere; }
.live-route-footer { display:grid; gap:12px; padding:14px 18px; border-top:1px solid #f0f2f5; }
.live-route-footer > div:first-child { display:flex; align-items:center; gap:7px; color:#667085; font-size:11px; }
.live-route-footer > div:first-child svg { color:#0056B3; }
.live-range-control { display:flex; align-items:center; gap:12px; color:#667085; font-size:11px; }
.live-range-control input { width:100%; accent-color:#0056B3; cursor:pointer; }
.live-sharing-panel { margin-top:18px; }
.live-sharing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.live-sharing-card { display:flex; align-items:flex-start; gap:11px; min-width:0; padding:15px; border:0; border-right:1px solid #f0f2f5; border-bottom:1px solid #f0f2f5; background:#fff; text-align:left; cursor:pointer; }
.live-sharing-card:hover,.live-sharing-card.selected { background:#F8F9FC; }
.live-avatar { width:39px; height:39px; flex:0 0 39px; display:grid; place-items:center; border-radius:12px; background:rgba(0, 86, 179, 0.12); color:#014B9D; font-weight:800; }
.live-employee-info { min-width:0; flex:1; display:grid; gap:5px; }
.live-employee-info strong { overflow:hidden; text-overflow:ellipsis; color:#202939; font-size:13px; }
.live-employee-info span,.live-employee-info small { color:#7a8495; font-size:11px; overflow-wrap:anywhere; }
.live-row-dot { width:8px; height:8px; flex:0 0 8px; margin-top:6px; border-radius:50%; background:#0056B3; }
.live-list-empty { padding:26px 20px; color:#7a8495; text-align:center; font-size:12px; line-height:1.6; }
.live-selected-details { padding:18px; background:#fcfcfd; border:1px solid #edf0f4; border-radius:14px; }
.live-selected-summary { margin-top:18px; }
.live-selected-details h3 { margin:0 0 14px; font-size:13px; }
.live-selected-details p { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin:0; padding:9px 0; border-bottom:1px solid #f0f2f5; font-size:11px; }
.live-selected-details p span { color:#7a8495; }
.live-selected-details p strong { text-align:right; overflow-wrap:anywhere; }
.live-selected-details .live-coordinates { display:grid; gap:5px; }
.live-selected-details .live-coordinates strong { text-align:left; }
.live-error { display:flex; align-items:flex-start; gap:9px; margin-bottom:18px; padding:13px 15px; border:1px solid #fecaca; border-radius:10px; background:#fef2f2; color:#b42318; font-size:13px; overflow-wrap:anywhere; }
.live-footer-note { margin:15px 0 0; color:#7a8495; font-size:11px; line-height:1.6; }
@media (max-width:1100px) {
  .live-tracking-layout { grid-template-columns:1fr; }
  .live-timeline { max-height:360px; }
  .live-map-wrap { height:470px; }
}
@media (max-width:760px) {
  .live-tracking-toolbar { grid-template-columns:1fr 1fr; }
  .live-locations-page { padding:16px; }
  .live-summary-grid { grid-template-columns:1fr; gap:10px; }
  .live-tracking-toolbar { grid-template-columns:1fr 1fr; }
  .live-tracking-toolbar label:first-child { grid-column:1/-1; }
  .live-reset-button { min-height:40px; }
  .live-sharing-grid { grid-template-columns:1fr; }
  .live-map-wrap { height:380px; }
}
@media (max-width:480px) {
  .live-locations-heading { align-items:flex-start; }
  .live-refresh-button { padding:10px; font-size:12px; }
  .live-tracking-toolbar { grid-template-columns:1fr; }
  .live-tracking-toolbar label:first-child { grid-column:auto; }
}



/* Custom employee dropdown and calendar */
.live-tracking-toolbar {
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  overflow: visible;
}

.live-custom-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.live-custom-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.live-custom-select {
  position: relative;
  min-width: 0;
}

.live-custom-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.live-custom-trigger > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-custom-trigger:hover:not(:disabled) {
  border-color: #b8c2cf;
}

.live-custom-trigger:focus-visible {
  outline: 3px solid #64748b26;
  border-color: #64748b;
}

.live-custom-trigger:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.live-date-trigger {
  font-variant-numeric: tabular-nums;
}

.live-custom-dismiss {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.live-custom-menu,
.live-custom-calendar {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  min-width: 220px;
  padding: 7px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px #1018281c;
}

.live-custom-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f4;
  color: #667085;
}

.live-custom-search input {
  width: 100%;
  min-width: 0;
  padding: 3px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 12px;
}

.live-custom-options {
  max-height: 230px;
  overflow-y: auto;
}

.live-custom-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.live-custom-option:hover {
  background: #f5f7fa;
}

.live-custom-option.is-selected {
  background: #f0f2f5;
  font-weight: 650;
}

.live-option-check {
  color: #344054;
}

.live-custom-empty {
  padding: 14px 10px;
  color: #667085;
  font-size: 12px;
  text-align: center;
}

.live-custom-calendar {
  left: auto;
  right: 0;
  width: 258px;
  min-width: 258px;
  padding: 12px;
}

.live-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.live-calendar-heading strong {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.live-calendar-heading button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #eaecf0;
  border-radius: 7px;
  background: #fff;
  color: #475467;
  cursor: pointer;
}

.live-calendar-heading button:hover {
  background: #f5f7fa;
}

.live-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.live-calendar-weekday,
.live-calendar-blank,
.live-calendar-day {
  display: grid;
  min-width: 0;
  height: 30px;
  place-items: center;
}

.live-calendar-weekday {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
}

.live-calendar-day {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.live-calendar-day:hover:not(:disabled) {
  background: #f0f2f5;
}

.live-calendar-day.is-selected {
  background: #344054;
  color: #fff;
  font-weight: 700;
}

.live-calendar-day:disabled {
  color: #d0d5dd;
  cursor: not-allowed;
}

.live-calendar-today {
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.live-calendar-today:hover {
  background: #f5f7fa;
}

@media (max-width: 1100px) {
  .live-tracking-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .live-tracking-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-custom-calendar {
    left: 0;
    right: auto;
    width: min(258px, calc(100vw - 48px));
    min-width: 0;
  }
}

/* Map UI refresh - professional light theme */
.live-map-panel {
  border-color: #e4e7ec;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.045);
}

.live-map-panel .live-panel-heading {
  min-height: 76px;
  padding: 17px 20px;
  background: #fff;
  border-bottom: 1px solid #eaecf0;
}

.live-map-panel .live-panel-heading h2 {
  color: #101828;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.live-map-panel .live-panel-heading p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.live-map-panel .live-status-dot {
  padding: 7px 10px;
  border: 1px solid #d1fadf;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 10px;
}

.live-map-wrap {
  position: relative;
  height: 580px;
  overflow: hidden;
  isolation: isolate;
  background: #eef2f6;
}

.live-leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #eef2f6;
  font-family: inherit;
}

.live-leaflet-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid #d0d5dd !important;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(16, 24, 40, 0.13);
}

.live-leaflet-map .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 32px;
  border-bottom-color: #eaecf0 !important;
  background: #fff;
  color: #344054;
  transition: background .15s ease;
}

.live-leaflet-map .leaflet-control-zoom a:hover {
  background: #f2f4f7;
  color: #101828;
}

.live-leaflet-map .leaflet-control-attribution {
  padding: 4px 7px;
  border-radius: 6px 0 0 0;
  background: rgba(255, 255, 255, .9);
  color: #667085;
  font-size: 10px;
}

.live-leaflet-map .leaflet-control-attribution a {
  color: #475467;
}

.live-leaflet-map .leaflet-popup-content-wrapper {
  padding: 3px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .16);
}

.live-leaflet-map .leaflet-popup-content {
  margin: 13px 16px;
  color: #475467;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.8;
}

.live-leaflet-map .leaflet-popup-content strong {
  display: inline-block;
  margin-bottom: 3px;
  color: #101828;
  font-size: 13px;
  font-weight: 750;
}

.live-leaflet-map .leaflet-popup-tip {
  box-shadow: 0 3px 6px rgba(16, 24, 40, .06);
}

.live-leaflet-map .leaflet-container a.leaflet-popup-close-button {
  padding: 7px 8px 0 0;
  color: #667085;
}

.live-route-footer {
  gap: 13px;
  padding: 15px 18px;
  background: #fff;
}

.live-route-footer > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.live-route-footer > div:first-child svg {
  color: #65A30D;
}

.live-range-control {
  gap: 12px;
}

.live-range-control > span {
  flex: 0 0 auto;
  min-width: 48px;
  color: #667085;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.live-range-control input {
  accent-color: #65A30D;
}

.live-map-empty {
  z-index: 5;
  padding: 26px 22px;
  border-color: #eaecf0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
  backdrop-filter: blur(8px);
}

.live-map-empty svg {
  display: block;
  padding: 12px;
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #fff4ed;
  color: #65A30D;
}

.live-map-empty strong {
  color: #101828;
  font-size: 14px;
}

.live-map-empty span {
  color: #667085;
  font-size: 12px;
  line-height: 1.7;
}

.live-map-overlay {
  z-index: 10;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(3px);
}

@media (max-width: 1100px) {
  .live-map-wrap {
    height: 500px;
  }
}

@media (max-width: 760px) {
  .live-map-panel .live-panel-heading {
    align-items: flex-start;
    padding: 15px;
  }

  .live-map-wrap {
    height: 430px;
  }

  .live-map-panel .live-status-dot {
    max-width: 125px;
    white-space: normal;
    line-height: 1.4;
  }

  .live-route-footer {
    padding: 13px;
  }
}

@media (max-width: 480px) {
  .live-map-wrap {
    height: 360px;
  }

  .live-map-panel .live-panel-heading {
    gap: 8px;
  }

  .live-map-panel .live-panel-heading h2 {
    font-size: 14px;
  }

  .live-leaflet-map .leaflet-control-zoom {
    margin-top: 10px;
    margin-left: 10px;
  }
}

/* Floating route map actions */
.live-map-floating-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-map-floating-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  color: #344054;
  box-shadow: 0 3px 12px rgba(16, 24, 40, 0.14);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.live-map-floating-controls button svg {
  color: #65A30D;
  flex-shrink: 0;
}

.live-map-floating-controls button:hover:not(:disabled) {
  background: #fff7ed;
  border-color: #65A30D;
  transform: translateY(-1px);
}

.live-map-floating-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 480px) {
  .live-map-floating-controls {
    top: 10px;
    right: 10px;
  }

  .live-map-floating-controls button {
    min-width: 104px;
    padding: 9px 10px;
    font-size: 11px;
  }
}

/* Route marker legend */
.live-map-marker-legend {
  position: absolute;
  left: 14px;
  bottom: 28px;
  z-index: 800;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 12px rgba(16, 24, 40, 0.12);
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
}

.live-map-marker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-map-marker-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
}

.live-map-marker-legend .legend-start { background: #0056B3; }
.live-map-marker-legend .legend-end { background: #dc2626; }
.live-map-marker-legend .legend-current { background: #84CC16; }

@media (max-width: 480px) {
  .live-map-marker-legend {
    left: 8px;
    bottom: 25px;
    gap: 8px;
    padding: 8px;
    font-size: 10px;
  }
}

/* Map UI polish - compact header and balanced layout */
.live-tracking-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.8fr);
  gap: 16px;
  align-items: stretch;
}

.live-map-panel {
  min-width: 0;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(16, 24, 40, 0.055);
}

.live-map-heading {
  min-height: 94px;
  align-items: center;
  gap: 12px;
}

.live-map-heading-main { min-width: 0; }

.live-map-heading-main h2 {
  margin: 0 0 4px;
  color: #101828;
  font-size: 16px;
  font-weight: 750;
}

.live-map-heading-main p {
  margin: 0 0 8px;
  color: #667085;
  font-size: 12px;
}

.live-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.live-map-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 11px;
}

.live-map-meta svg {
  color: #65A30D;
  flex-shrink: 0;
}

.live-map-wrap.live-route-map-wrap {
  height: 540px;
  overflow: hidden;
  background: #f2f4f7;
  border-top: 1px solid #f0f2f5;
}

.live-map-marker-legend {
  left: 14px;
  bottom: 14px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 3px 12px rgba(16,24,40,.12);
}

.live-map-marker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
}

.live-map-marker-legend i {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(16,24,40,.25);
}

.live-map-marker-legend .legend-start { background: #0056B3; }
.live-map-marker-legend .legend-end { background: #dc2626; }
.live-map-marker-legend .legend-current {
  background: #84CC16;
  box-shadow: 0 0 0 2px #9a3412;
}

.live-route-footer { gap: 10px; padding: 13px 16px; }

@media (max-width: 1100px) {
  .live-tracking-layout { grid-template-columns: minmax(0, 1fr); }
  .live-map-wrap.live-route-map-wrap { height: 480px; }
}

@media (max-width: 760px) {
  .live-map-heading { align-items: flex-start; padding: 14px; }
  .live-map-heading-main h2 { font-size: 15px; }
  .live-map-meta { flex-direction: column; gap: 6px; }
  .live-map-wrap.live-route-map-wrap { height: 420px; }
  .live-map-marker-legend {
    left: 8px;
    bottom: 8px;
    gap: 8px;
    padding: 8px 9px;
  }
}

@media (max-width: 480px) {
  .live-map-heading { flex-direction: column; }
  .live-map-wrap.live-route-map-wrap { height: 360px; }
  .live-map-marker-legend span { font-size: 10px; }
}

/* Balanced Timeline + Route Map Layout */
.live-tracking-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.8fr);
  gap: 16px;
  align-items: stretch;
}

.live-history-panel,
.live-map-panel {
  min-width: 0;
  height: fit-content;
}

.live-map-panel {
  overflow: hidden;
}

.live-timeline {
  max-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.live-map-wrap.live-route-map-wrap {
  height: 540px;
  min-height: 540px;
  position: relative;
  overflow: hidden;
}

.live-leaflet-map {
  width: 100%;
  height: 100%;
}

.live-route-footer {
  padding: 13px 16px;
  gap: 10px;
}

@media (max-width: 1100px) {
  .live-tracking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .live-timeline {
    max-height: 340px;
  }

  .live-map-wrap.live-route-map-wrap {
    height: 480px;
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .live-tracking-layout {
    gap: 12px;
  }

  .live-timeline {
    max-height: 520px;
  }

  .live-map-wrap.live-route-map-wrap {
    height: 420px;
    min-height: 420px;
  }
}

@media (max-width: 480px) {
  .live-map-wrap.live-route-map-wrap {
    height: 360px;
    min-height: 360px;
  }

  .live-route-footer {
    padding: 12px;
  }

  .live-map-marker-legend {
    max-width: calc(100% - 16px);
    flex-wrap: wrap;
  }
}

/* Timeline + Map reference layout */
.live-locations-page {
  padding: 20px;
  background: #f8fafc;
}

.live-locations-heading {
  margin-bottom: 16px;
}

.live-summary-grid {
  display: none;
}

.live-tracking-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 260px) minmax(220px, 260px) auto;
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
}

.live-tracking-layout {
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.65fr);
  gap: 12px;
  align-items: stretch;
}

.live-history-panel,
.live-map-panel {
  border-radius: 12px;
  min-height: 650px;
}

.live-history-panel {
  display: flex;
  flex-direction: column;
}

.live-history-panel > .live-panel-heading {
  padding: 14px 16px;
}

.live-playback-controls {
  padding: 10px 14px;
}

.live-timeline {
  flex: 1;
  min-height: 0;
  max-height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #98a2b3 #f2f4f7;
}

.live-timeline-item {
  gap: 12px;
  padding: 13px 14px;
}

.live-timeline-item:hover,
.live-timeline-item.active {
  background: #fff7ed;
}

.live-timeline-marker {
  border-color: #65A30D;
}

.live-timeline-item.active .live-timeline-marker {
  background: #65A30D;
  box-shadow: 0 0 0 4px #65A30D1c;
}

.live-map-panel {
  display: flex;
  flex-direction: column;
}

.live-map-heading {
  padding: 13px 16px;
}

.live-map-wrap {
  height: auto;
  min-height: 570px;
  flex: 1;
}

.live-leaflet-map {
  min-height: 570px;
}

.live-route-footer {
  gap: 8px;
  padding: 12px 16px;
}

.live-route-footer .live-range-control input {
  accent-color: #65A30D;
}

.live-play-button {
  background: #65A30D;
}

.live-play-button:hover:not(:disabled) {
  background: #c94e05;
}

.live-sharing-panel,
.live-selected-summary {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .live-tracking-layout {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  }

  .live-history-panel,
  .live-map-panel {
    min-height: 560px;
  }

  .live-timeline {
    max-height: 500px;
  }

  .live-map-wrap,
  .live-leaflet-map {
    min-height: 470px;
  }
}

@media (max-width: 760px) {
  .live-locations-page {
    padding: 12px;
  }

  .live-tracking-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .live-tracking-layout {
    grid-template-columns: 1fr;
  }

  .live-history-panel,
  .live-map-panel {
    min-height: auto;
  }

  .live-timeline {
    max-height: 420px;
  }

  .live-map-wrap,
  .live-leaflet-map {
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .live-tracking-toolbar {
    grid-template-columns: 1fr;
  }
}


/* Reference-inspired compact live tracking workspace */
.live-locations-page {
  padding: 16px 18px;
  background: #f7f8fa;
  color: #1f2937;
}

.live-locations-heading {
  margin-bottom: 12px;
}

.live-locations-heading h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
}

.live-locations-heading p {
  font-size: 12px;
}

.live-tracking-toolbar {
  grid-template-columns: minmax(250px, 1fr) minmax(190px, 230px) minmax(190px, 230px) auto;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border-color: #e6e8ec;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .035);
}

.live-tracking-layout {
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.65fr);
  gap: 12px;
  align-items: stretch;
}

.live-history-panel,
.live-map-panel {
  min-height: 620px;
  border-color: #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .035);
}

.live-history-panel {
  display: flex;
  flex-direction: column;
}

.live-history-panel > .live-panel-heading,
.live-map-panel .live-panel-heading {
  padding: 12px 14px;
  min-height: 64px;
}

.live-panel-heading h2 {
  font-size: 14px;
}

.live-timeline-summary {
  margin-top: 5px !important;
  font-size: 11px !important;
}

.live-history-count {
  background: #fff4e8;
  color: #c65a12;
}

.live-playback-controls {
  padding: 9px 12px;
  background: #fcfcfd;
}

.live-play-button {
  padding: 8px 10px;
  border-radius: 7px;
  background: #65A30D;
  font-size: 11px;
}

.live-play-button:hover:not(:disabled) {
  background: #c94e05;
}

.live-timeline {
  flex: 1;
  min-height: 0;
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.live-timeline-item {
  gap: 10px;
  padding: 11px 13px;
  border-bottom-color: #f0f1f3;
}

.live-timeline-item:hover,
.live-timeline-item.active {
  background: #fff7ed;
}

.live-timeline-marker {
  margin-top: 3px;
  border-color: #65A30D;
}

.live-timeline-item.active .live-timeline-marker {
  background: #65A30D;
  box-shadow: 0 0 0 3px #65A30D1c;
}

.live-timeline-copy {
  gap: 5px;
}

.live-timeline-copy strong {
  font-size: 12px;
}

.live-timeline-copy small {
  font-size: 10px;
  line-height: 1.45;
}

.live-map-panel {
  display: flex;
  flex-direction: column;
}

.live-map-heading {
  align-items: center;
}

.live-map-heading-main h2 {
  font-size: 14px;
}

.live-map-wrap.live-route-map-wrap {
  height: auto;
  min-height: 540px;
  flex: 1;
  background: #eef1f4;
}

.live-leaflet-map {
  min-height: 540px;
}

.live-status-dot {
  padding: 6px 8px;
  font-size: 10px;
}

.live-route-footer {
  padding: 10px 14px;
  gap: 8px;
  border-top-color: #e9ebef;
}

.live-range-control input {
  accent-color: #65A30D;
}

.live-map-marker-legend {
  gap: 9px;
  padding: 8px 10px;
  font-size: 10px;
}

.live-sharing-panel,
.live-selected-summary {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .live-tracking-layout {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  }

  .live-history-panel,
  .live-map-panel {
    min-height: 560px;
  }

  .live-timeline {
    max-height: 500px;
  }

  .live-map-wrap.live-route-map-wrap,
  .live-leaflet-map {
    min-height: 470px;
  }
}

@media (max-width: 760px) {
  .live-locations-page {
    padding: 12px;
  }

  .live-tracking-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .live-tracking-layout {
    grid-template-columns: 1fr;
  }

  .live-history-panel,
  .live-map-panel {
    min-height: auto;
  }

  .live-timeline {
    max-height: 400px;
  }

  .live-map-wrap.live-route-map-wrap,
  .live-leaflet-map {
    min-height: 380px;
  }
}

@media (max-width: 480px) {
  .live-locations-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .live-locations-heading h1 {
    font-size: 22px;
  }

  .live-tracking-toolbar {
    grid-template-columns: 1fr;
  }

  .live-map-wrap.live-route-map-wrap,
  .live-leaflet-map {
    min-height: 350px;
  }
}

/* ===== Timeline Layout Refresh ===== */
.live-tracking-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.live-tracking-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.65fr);
  gap: 16px;
  align-items: stretch;
}

.live-history-panel,
.live-map-panel {
  min-width: 0;
  min-height: 0;
  height: 650px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.live-history-panel {
  display: flex;
  flex-direction: column;
}

.live-history-panel .live-panel-heading {
  flex-shrink: 0;
  padding: 16px;
  border-bottom: 1px solid #e8edf2;
  background: #ffffff;
}

.live-history-panel .live-panel-heading h2,
.live-map-heading-main h2 {
  margin: 0 0 6px;
  color: #172033;
  font-size: 16px;
  font-weight: 700;
}

.live-history-panel .live-panel-heading p {
  margin: 4px 0;
  color: #64748b;
  font-size: 12px;
}

.live-timeline-summary {
  color: #94a3b8 !important;
  font-size: 11px !important;
}

.live-history-count {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: #fff1e6;
  color: #c45108;
  font-size: 11px;
  font-weight: 600;
}

.live-playback-controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  background: #f8fafc;
}

.live-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  background: #65A30D;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.live-playback-controls > span {
  color: #64748b;
  font-size: 11px;
}

.live-timeline {
  position: relative;
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 10px 12px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.live-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 13px 12px;
  border: 1px solid #e5eaf0;
  border-bottom: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.live-timeline-item + .live-timeline-item {
  margin-top: 8px;
}

.live-timeline-item:hover,
.live-timeline-item.active {
  border-color: #f3b184;
  background: #fff8f2;
}

.live-timeline-marker {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid #65A30D;
  border-radius: 50%;
  background: #ffffff;
}

.live-timeline-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.live-timeline-copy strong {
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.live-timeline-copy small {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.live-timeline-copy small svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.live-map-panel {
  display: flex;
  flex-direction: column;
}

.live-map-panel .live-map-heading {
  flex-shrink: 0;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #e8edf2;
  background: #ffffff;
}

.live-map-heading-main {
  min-width: 0;
}

.live-map-heading-main p {
  margin: 4px 0 8px;
  color: #64748b;
  font-size: 12px;
}

.live-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.live-map-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
}

.live-map-wrap.live-route-map-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #edf2f7;
}

.live-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.live-map-marker-legend {
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
  font-size: 11px;
}

.live-route-footer {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid #e5eaf0;
  background: #ffffff;
}

.live-route-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.live-route-footer > div:first-child svg {
  color: #65A30D;
}

.live-range-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-range-control > span {
  flex-shrink: 0;
  color: #64748b;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.live-range-control input {
  flex: 1;
  min-width: 0;
  width: 100%;
  cursor: pointer;
  accent-color: #65A30D;
}

.live-sharing-panel,
.live-selected-summary {
  margin-top: 16px;
}

@media (max-width: 1000px) {
  .live-tracking-layout {
    grid-template-columns: minmax(290px, 0.85fr) minmax(0, 1.15fr);
  }

  .live-history-panel,
  .live-map-panel {
    height: 600px;
  }
}

@media (max-width: 760px) {
  .live-tracking-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .live-tracking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-history-panel {
    height: 520px;
  }

  .live-map-panel {
    height: 520px;
  }

  .live-map-wrap.live-route-map-wrap {
    min-height: 0;
  }

  .live-leaflet-map {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .live-tracking-toolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .live-history-panel,
  .live-map-panel {
    height: 480px;
  }

  .live-map-panel .live-map-heading {
    align-items: flex-start;
    padding: 12px;
  }

  .live-map-meta {
    gap: 6px;
  }
}

/* ===== End Timeline Layout Refresh ===== */


/* ===== Reference-style Route Map ===== */

.live-map-panel {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  overflow: hidden;
}

.live-map-panel .live-map-heading {
  padding: 12px 16px;
  border-bottom: 1px solid #e5eaf0;
}

.live-map-wrap.live-route-map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  background: #eef4f9;
}

.live-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #eef4f9;
}

/* Light map appearance */
.live-leaflet-map .leaflet-tile-pane {
  filter: saturate(.72) brightness(1.04);
}

/* Route line styled like the reference */
.live-leaflet-map .leaflet-overlay-pane path.leaflet-interactive {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Clean floating map controls */
.live-map-wrap .leaflet-control-zoom {
  border: 0 !important;
  border-radius: 9px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .13) !important;
}

.live-map-wrap .leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  color: #334155 !important;
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.live-map-wrap .leaflet-control-attribution {
  font-size: 9px;
  background: rgba(255,255,255,.85) !important;
}

.live-map-marker-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15,23,42,.12);
}

.live-route-footer {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e5eaf0;
}

.live-range-control input[type="range"] {
  accent-color: #0056B3;
  cursor: pointer;
}

/* Responsive map height */
@media (min-width: 761px) {
  .live-map-panel {
    height: 650px;
  }

  .live-map-wrap.live-route-map-wrap,
  .live-leaflet-map {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .live-map-panel {
    height: 520px;
  }
}

/* ===== End Reference-style Route Map ===== */


/* ===== Live Location Reference Map Styling ===== */
.live-map-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.live-map-panel .live-map-heading {
  flex-shrink: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.live-map-wrap.live-route-map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: #edf2f7;
}

.live-route-map-wrap .live-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #edf2f7;
}

.live-route-map-wrap .leaflet-tile {
  filter: saturate(.82) contrast(1.02);
}

.live-route-map-wrap .leaflet-overlay-pane path.leaflet-interactive {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-route-map-wrap .leaflet-control-zoom {
  border: 1px solid #dfe3e8 !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(15 23 42 / 10%);
}

.live-route-map-wrap .leaflet-control-zoom a {
  width: 32px;
  height: 32px;
  line-height: 32px;
  color: #344054;
  background: #fff;
  border-bottom-color: #e5e7eb;
}

.live-route-map-wrap .leaflet-control-attribution {
  font-size: 10px;
  background: rgb(255 255 255 / 85%);
}

.live-map-floating-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.live-map-floating-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  color: #344054;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(15 23 42 / 10%);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.live-map-floating-controls button:hover:not(:disabled) {
  color: #65A30D;
  border-color: #65A30D;
}

.live-map-floating-controls button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.live-map-marker-legend {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  background: rgb(255 255 255 / 95%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(15 23 42 / 8%);
  font-size: 11px;
}

.live-route-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.live-range-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 42%;
}

.live-range-control input[type="range"] {
  width: 100%;
  accent-color: #0056B3;
  cursor: pointer;
}

@media (min-width: 761px) {
  .live-map-panel {
    height: 650px;
  }

  .live-map-wrap.live-route-map-wrap,
  .live-route-map-wrap .live-leaflet-map {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .live-map-panel {
    height: 520px;
  }

  .live-map-floating-controls button span {
    display: none;
  }

  .live-route-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .live-range-control {
    min-width: 100%;
  }
}
/* ===== End Live Location Reference Map Styling ===== */



/* ===== Modern Live Tracking UI Refresh ===== */
.live-locations-page {
  padding: 24px;
  background: #f7f9fc;
  color: #172033;
}

.live-locations-heading {
  margin-bottom: 20px;
}

.live-locations-heading h1 {
  font-size: clamp(25px, 2.5vw, 32px);
  letter-spacing: -0.8px;
  font-weight: 750;
}

.live-summary-grid {
  display: grid;
}

.live-tracking-toolbar {
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(160px, 1fr)) auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid #e4eaf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgb(16 24 40 / 4%);
}

.live-tracking-toolbar input,
.live-tracking-toolbar select,
.live-custom-trigger {
  min-height: 42px;
  border-radius: 10px;
  border-color: #dce4ec;
}

.live-tracking-layout {
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.65fr);
  gap: 18px;
  align-items: stretch;
}

.live-history-panel,
.live-map-panel,
.live-employee-panel {
  min-width: 0;
  border: 1px solid #e3e9f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(16 24 40 / 5%);
}

.live-history-panel,
.live-map-panel {
  height: 660px;
  min-height: 0;
  overflow: hidden;
}

.live-history-panel {
  display: flex;
  flex-direction: column;
}

.live-history-panel .live-panel-heading,
.live-map-panel .live-map-heading {
  flex-shrink: 0;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
}

.live-panel-heading h2,
.live-map-heading-main h2 {
  color: #172033;
  font-size: 15px;
  font-weight: 750;
}

.live-panel-heading p,
.live-map-heading-main p {
  color: #778397;
}

.live-history-count {
  border-radius: 999px;
  background: rgba(0, 86, 179, 0.08);
  color: #0056B3;
}

.live-playback-controls {
  flex-shrink: 0;
  padding: 13px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #edf1f5;
}

.live-play-button {
  min-height: 38px;
  padding: 10px 15px;
  border-radius: 10px;
  background: #0056B3;
}

.live-play-button:hover:not(:disabled) {
  background: #014B9D;
}

.live-timeline {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.live-timeline-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 11px;
  margin-bottom: 8px;
  padding: 13px;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  background: #fff;
  transition: background .18s ease, border-color .18s ease;
}

.live-timeline-item:hover,
.live-timeline-item.active {
  border-color: #a7dfbd;
  background: #f0faf4;
}

.live-timeline-marker {
  border-color: #0056B3;
}

.live-timeline-item.active .live-timeline-marker {
  background: #0056B3;
  box-shadow: 0 0 0 4px rgb(22 131 74 / 12%);
}

.live-timeline-copy strong {
  color: #202c3d;
  font-size: 12px;
}

.live-timeline-copy small {
  color: #778397;
  line-height: 1.55;
}

.live-map-panel {
  display: flex;
  flex-direction: column;
}

.live-map-heading {
  gap: 12px;
}

.live-map-wrap.live-route-map-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #edf3f0;
}

.live-route-map-wrap .live-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #edf3f0;
}

.live-route-map-wrap .leaflet-tile {
  filter: saturate(.82) contrast(1.01) brightness(1.02);
}

.live-route-map-wrap .leaflet-overlay-pane path.leaflet-interactive {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-route-map-wrap .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid #e0e7e2 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgb(16 24 40 / 12%) !important;
}

.live-route-map-wrap .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  color: #344054;
  background: #fff;
}

.live-map-floating-controls {
  top: 14px;
  right: 14px;
  gap: 8px;
}

.live-map-floating-controls button {
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid #e2e9e4;
  border-radius: 11px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 4px 14px rgb(16 24 40 / 10%);
}

.live-map-floating-controls button svg {
  color: #0056B3;
}

.live-map-floating-controls button:hover:not(:disabled) {
  color: #116b3b;
  border-color: #86cba0;
  background: #f3fbf5;
}

.live-map-marker-legend {
  left: 14px;
  bottom: 14px;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid #e2e9e4;
  border-radius: 12px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 4px 14px rgb(16 24 40 / 10%);
}

.live-map-marker-legend .legend-start {
  background: #0056B3;
}

.live-map-marker-legend .legend-end {
  background: #dc2626;
}

.live-map-marker-legend .legend-current {
  background: #60A5FA;
  box-shadow: 0 0 0 1px #16834a;
}

.live-route-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid #edf1f5;
}

.live-route-footer > div:first-child svg {
  color: #0056B3;
}

.live-range-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-range-control > span {
  min-width: 52px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.live-range-control input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #0056B3;
}

.live-sharing-panel,
.live-selected-summary {
  margin-top: 18px;
}

.live-sharing-panel {
  border-radius: 18px;
  box-shadow: 0 6px 24px rgb(16 24 40 / 4%);
}

.live-sharing-card {
  padding: 17px;
  transition: background .18s ease;
}

.live-sharing-card:hover,
.live-sharing-card.selected {
  background: #f0faf4;
}

.live-avatar {
  background: #e5f6eb;
  color: #0056B3;
}

.live-selected-details {
  border-color: #e4eaf1;
  border-radius: 14px;
  background: #f9fbfd;
}

@media (max-width: 1100px) {
  .live-tracking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-history-panel {
    height: 480px;
  }

  .live-map-panel {
    height: 620px;
  }
}

@media (max-width: 760px) {
  .live-locations-page {
    padding: 14px;
  }

  .live-tracking-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-history-panel {
    height: 480px;
  }

  .live-map-panel {
    height: 540px;
  }

  .live-map-panel .live-map-heading {
    align-items: flex-start;
    padding: 14px;
  }

  .live-map-meta {
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .live-locations-page {
    padding: 10px;
  }

  .live-tracking-toolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .live-history-panel,
  .live-map-panel {
    border-radius: 14px;
  }

  .live-history-panel {
    height: 460px;
  }

  .live-map-panel {
    height: 490px;
  }

  .live-map-floating-controls button {
    min-width: 40px;
    padding: 9px;
  }

  .live-map-marker-legend {
    left: 8px;
    bottom: 8px;
    gap: 8px;
    padding: 8px;
    font-size: 10px;
  }

  .live-route-footer {
    padding: 12px;
  }
}
/* ===== End Modern Live Tracking UI Refresh ===== */

/* RolePendingActionsModal.css - Styled with Comfortaa */

.role-reminder-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  animation: roleReminderFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-family: 'Comfortaa', var(--font-primary, sans-serif);
}

.role-reminder-card,
.role-reminder-card * {
  font-family: 'Comfortaa', var(--font-primary, sans-serif);
  box-sizing: border-box;
}

@keyframes roleReminderFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.role-reminder-card {
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  box-shadow: -12px 0 40px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: roleReminderSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes roleReminderSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Header */
.role-reminder-header {
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.role-reminder-title-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.role-reminder-bell-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-reminder-ping {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 9px;
  height: 9px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: pulsePing 1.8s infinite;
}

@keyframes pulsePing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.role-reminder-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ea580c;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.role-reminder-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.role-reminder-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.role-reminder-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Notice */
.role-reminder-notice {
  padding: 10px 20px;
  background: #fefce8;
  border-bottom: 1px solid #fef08a;
}

.role-reminder-notice p {
  margin: 0;
  font-size: 12px;
  color: #854d0e;
  line-height: 1.45;
  font-weight: 500;
}

/* Stats grid */
.role-reminder-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.role-reminder-stat-box {
  background: #ffffff;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.role-reminder-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.role-reminder-stat-num {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.role-reminder-stat-lbl {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.stat-orange {
  border-color: #fed7aa;
  background: #fff7ed;
}
.stat-orange .role-reminder-stat-num,
.stat-orange .role-reminder-stat-lbl {
  color: #c2410c;
}

.stat-blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.stat-blue .role-reminder-stat-num,
.stat-blue .role-reminder-stat-lbl {
  color: #1d4ed8;
}

.stat-purple {
  border-color: #e9d5ff;
  background: #faf5ff;
}
.stat-purple .role-reminder-stat-num,
.stat-purple .role-reminder-stat-lbl {
  color: #7e22ce;
}

.stat-red {
  border-color: #fecaca;
  background: #fef2f2;
}
.stat-red .role-reminder-stat-num,
.stat-red .role-reminder-stat-lbl {
  color: #dc2626;
}

.stat-green {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.stat-green .role-reminder-stat-num,
.stat-green .role-reminder-stat-lbl {
  color: #15803d;
}

/* Scroll area */
.role-reminder-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-reminder-list-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-reminder-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.role-reminder-item:hover {
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
  transform: translateY(-1px);
}

.role-reminder-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 8px;
}

.role-reminder-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.role-reminder-emp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
}

.role-reminder-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.35;
}

.role-reminder-item-detail {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 8px;
}

.role-reminder-item-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ea580c;
  padding-top: 6px;
  border-top: 1px dashed #f1f5f9;
}

/* Footer */
.role-reminder-footer {
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-reminder-main-action-btn {
  width: 100%;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.role-reminder-main-action-btn:hover {
  background: #c2410c;
}

.role-reminder-dismiss-btn {
  width: 100%;
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.role-reminder-dismiss-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Admin Work From Home Management */
.leaves-page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px;
  box-sizing: border-box;
  color: #0f172a;
}

.leaves-page .leaves-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.leaves-page .eyebrow {
  margin-bottom: 8px;
  color: #0757B8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.leaves-page .leaves-header h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.leaves-page .leaves-header p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.leaves-page .summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #0757B8;
}

.leaves-page .summary strong {
  font-size: 28px;
  line-height: 1;
}

.leaves-page .summary span {
  font-size: 13px;
  font-weight: 600;
}

.leaves-page .card {
  min-width: 0;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(7, 87, 184, 0.045);
}

.leaves-page .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.leaves-page .card-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.leaves-page .card-head p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.leaves-page .refresh {
  flex-shrink: 0;
  padding: 10px 17px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #0757B8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.leaves-page .refresh:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.leaves-page button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.leaves-page .state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 28px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

.leaves-page .alert {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.leaves-page .alert.success {
  color: #0757B8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.leaves-page .alert.error {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffd0cc;
}

.leaves-page .table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.leaves-page table {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.leaves-page th {
  padding: 14px 16px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
}

.leaves-page td {
  padding: 16px;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.leaves-page tbody tr:last-child td {
  border-bottom: 0;
}

.leaves-page tbody tr:hover {
  background: #ffffff;
}

.leaves-page td strong {
  color: #0f172a;
}

.leaves-page td.reason,
.leaves-page td.remarks {
  min-width: 140px;
  max-width: 280px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.leaves-page .status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.leaves-page .status.pending {
  color: #946200;
  background: #fff7db;
}

.leaves-page .status.approved {
  color: #0757B8;
  background: #eff6ff;
}

.leaves-page .status.rejected {
  color: #b42318;
  background: #fee9e7;
}

.leaves-page .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaves-page .actions button {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.leaves-page .actions .approve {
  color: #ffffff;
  background: #0757B8;
}

.leaves-page .actions .approve:hover {
  background: #004494;
}

.leaves-page .actions .reject {
  color: #b42318;
  background: #fff1f0;
  border-color: #ffd5d1;
}

.leaves-page .actions .reject:hover {
  background: #ffe3e0;
}

@media (max-width: 900px) {
  .leaves-page {
    padding: 24px 20px;
  }

  .leaves-page .card {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .leaves-page {
    padding: 18px 12px;
  }

  .leaves-page .leaves-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }

  .leaves-page .summary {
    width: 100%;
    box-sizing: border-box;
  }

  .leaves-page .card {
    padding: 16px;
    border-radius: 12px;
  }

  .leaves-page .card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .leaves-page .refresh {
    align-self: flex-start;
  }
}
.holiday-page {
  --holiday-green: #0056B3;
  --holiday-green-dark: #014B9D;
  --holiday-green-light: #F8F9FC;
  --holiday-text: #172033;
  --holiday-muted: #64748b;
  --holiday-border: #e2e8f0;
  width: 100%;
  min-width: 0;
  color: var(--holiday-text);
  font-family: Inter, "Segoe UI", sans-serif;
}

.holiday-page * { box-sizing: border-box; }

.holiday-page h1,
.holiday-page h2 {
  color: var(--holiday-text);
  font-weight: 750;
  letter-spacing: -0.45px;
}

.holiday-page .holiday-filter-panel,
.holiday-page .holiday-form-panel,
.holiday-page .holiday-table-panel {
  background: #fff;
  border: 1px solid var(--holiday-border);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .035);
}

.holiday-page .holiday-filter-panel {
  padding: 22px;
  margin-bottom: 20px;
}

.holiday-page .holiday-form-panel {
  padding: 24px;
  margin-bottom: 22px;
}

.holiday-page .holiday-table-panel {
  overflow-x: auto;
  margin-top: 20px;
}

.holiday-page label {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.holiday-page input:not([type="checkbox"]),
.holiday-page textarea,
.holiday-page select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.holiday-page textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.holiday-page input:focus,
.holiday-page textarea:focus,
.holiday-page select:focus {
  border-color: var(--holiday-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .10);
}

.holiday-page button { font-family: inherit; }

.holiday-page button:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .24);
  outline-offset: 2px;
}

/* Green primary actions, including existing inline orange buttons */
.holiday-page button[type="submit"] {
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--holiday-green) !important;
  color: #fff !important;
  font-weight: 650;
}

.holiday-page button[type="submit"]:hover:not(:disabled) {
  background: var(--holiday-green-dark) !important;
  box-shadow: 0 5px 14px rgba(22, 163, 74, .18);
  transform: translateY(-1px);
}

.holiday-page table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate !important;
  border-spacing: 0;
}

.holiday-page thead { background: #f8fafc !important; }

.holiday-page th {
  padding: 15px 18px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .65px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--holiday-border) !important;
}

.holiday-page td {
  padding: 16px 18px !important;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px solid #eef2f7 !important;
}

.holiday-page tbody tr { transition: background .16s ease; }
.holiday-page tbody tr:hover { background: #F8F9FC; }
.holiday-page tbody tr:last-child td { border-bottom: none !important; }
.holiday-page td:first-child { color: var(--holiday-text); font-weight: 650; }

.holiday-page .custom-select-container {
  position: relative;
  width: 100%;
  min-width: 0;
}

.holiday-page .custom-select-trigger {
  min-height: 44px;
  border-radius: 10px !important;
}

.holiday-page .custom-select-dropdown {
  z-index: 1000;
  border: 1px solid var(--holiday-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
  overflow: hidden;
}

.holiday-page .custom-select-option:hover,
.holiday-page .custom-select-option.selected {
  background: #F8F9FC;
  color: #014B9D;
}

.holiday-page .attendance-datepicker-wrapper,
.holiday-page .custom-date-field,
.holiday-page .custom-date-control {
  width: 100%;
}

.holiday-page .custom-date-input {
  min-height: 44px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--holiday-text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .holiday-page .holiday-filter-panel,
  .holiday-page .holiday-form-panel { padding: 16px; }
  .holiday-page .holiday-filter-panel,
  .holiday-page .holiday-form-panel,
  .holiday-page .holiday-table-panel { border-radius: 12px; }
  .holiday-page th,
  .holiday-page td { padding: 12px !important; }
}

/* ===== Holiday form alignment refinement ===== */
.holiday-page .holiday-company-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-bottom: 18px;
}

.holiday-page .holiday-company-field > label,
.holiday-page .holiday-company-field > span {
  display: block;
  width: 100%;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.holiday-page .holiday-company-field .custom-select-container {
  width: 100%;
  max-width: none;
}

.holiday-page .holiday-company-field .custom-select-trigger {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
}

.holiday-page .holiday-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
}

.holiday-page .holiday-form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.holiday-page .holiday-description-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.holiday-page .holiday-description-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 15px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #fbfdff;
  color: #172033;
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
  transition: border-color .18s ease, box-shadow .18s ease,
    background .18s ease;
}

.holiday-page .holiday-description-field textarea:focus {
  background: #fff;
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .10);
}

.holiday-page .holiday-description-field textarea::placeholder {
  color: #94a3b8;
}

@media (max-width: 640px) {
  .holiday-page .holiday-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
/* ==========================================================================
   REPORTING MANAGERS MODULE - SIMPLIFIED STYLES
   ========================================================================== */

.reporting-managers-page {
  padding: 24px 32px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: inherit;
}

.rm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.rm-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.rm-header p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
}

.rm-actions {
  display: flex;
  gap: 12px;
}

/* BUTTONS */
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.rm-btn-primary {
  background: var(--primary, #0056B3);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.rm-btn-primary:hover:not(:disabled) {
  background: #014B9D;
}

.rm-btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.rm-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.rm-btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.rm-btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

/* ALERTS */
.rm-alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* TOOLBAR & SEARCH */
.rm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rm-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}

.rm-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.rm-search-input {
  width: 100%;
  height: 42px;
  padding: 10px 14px 10px 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.rm-search-input:focus {
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* TABLE CARD */
.rm-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.rm-table th {
  background: #f8fafc;
  padding: 14px 20px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rm-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.rm-table tr:last-child td {
  border-bottom: none;
}

.rm-table tr:hover {
  background: #f8fafc;
}

.rm-profile-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rm-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}

.rm-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* STATUS BADGES */
.rm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.rm-badge-active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.rm-badge-inactive {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ACTION BUTTONS (VIEW, EDIT, DELETE) */
.rm-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rm-icon-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rm-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.rm-icon-btn.rm-btn-delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* MODAL SYSTEM */
.rm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.rm-container {
  padding: 24px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .rm-container {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .rm-container {
    padding: 12px;
  }
}

.rm-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.rm-modal.rm-modal-sm {
  max-width: 440px;
}

.rm-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rm-modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.rm-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.rm-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.rm-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rm-modal-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  border-radius: 6px;
}

.rm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rm-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.rm-input, .rm-select {
  width: 100%;
  height: 42px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.15s ease;
  outline: none;
}

.rm-input:focus, .rm-select:focus {
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.rm-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.rm-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rm-password-wrap .rm-input {
  padding-right: 42px;
}

.rm-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-password-toggle:hover {
  color: #0f172a;
}

.rm-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* VIEW GRID */
.rm-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.rm-view-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rm-view-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rm-view-val {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

/* EMPTY & LOADING STATES */
.rm-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
}

.rm-empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #0f172a;
}

.rm-empty-state p {
  margin: 0;
  font-size: 14px;
}

.rm-spinner-icon {
  animation: rmSpin 0.8s linear infinite;
  color: #0056B3;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .reporting-managers-page {
    padding: 20px;
  }
  .rm-table {
    min-width: 680px;
  }
  .rm-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .reporting-managers-page {
    padding: 14px;
  }
  .rm-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
  }
  .rm-header h1,
  .rm-title {
    font-size: 20px;
  }
  .rm-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .rm-actions .rm-btn {
    flex: 1;
    min-width: 140px;
  }
  .rm-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }
  .rm-search-box {
    max-width: 100%;
    min-width: 100%;
  }
  .rm-table-card {
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rm-table th {
    padding: 10px 14px;
    font-size: 11px;
    white-space: nowrap;
  }
  .rm-table td {
    padding: 12px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .rm-modal {
    width: 95%;
    max-width: 95%;
    margin: 12px;
  }
  .rm-view-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .reporting-managers-page {
    padding: 10px;
  }
  .rm-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .rm-modal-header {
    padding: 14px 16px;
  }
  .rm-modal-body {
    padding: 16px;
  }
  .rm-modal-footer {
    padding: 12px 16px;
    flex-direction: column-reverse;
  }
  .rm-modal-footer .rm-btn {
    width: 100%;
  }
}
.mgr-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-main, #f8fafc);
  color: var(--text-primary, #0f172a);
}

.mgr-sidebar {
  width: 260px;
  background: #1e293b;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.mgr-sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mgr-brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.mgr-brand-sub {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mgr-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.mgr-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.mgr-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mgr-nav-link.active {
  background: var(--primary, #315C55);
  color: #fff;
  font-weight: 600;
}

.mgr-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mgr-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mgr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
}

.mgr-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mgr-logout-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Main Content Area */
.mgr-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mgr-topbar {
  height: 64px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.mgr-sidebar-toggle-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  cursor: pointer;
  margin-right: 12px;
}

.mgr-sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mgr-content {
  padding: 24px;
  flex: 1;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .mgr-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  }
  .mgr-sidebar.open {
    transform: translateX(0);
  }
  .mgr-sidebar-close-btn {
    display: inline-flex;
  }
  .mgr-sidebar-toggle-btn {
    display: inline-flex;
  }
  .mgr-main {
    margin-left: 0;
  }
  .mgr-topbar {
    padding: 0 16px;
    height: 58px;
  }
  .mgr-content {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .mgr-topbar {
    padding: 0 12px;
    height: 54px;
  }
  .mgr-content {
    padding: 12px;
  }
}

.mgr-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mgr-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.mgr-dash-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-primary, #0f172a);
}

.mgr-dash-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.mgr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.mgr-stat-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mgr-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mgr-stat-content {
  display: flex;
  flex-direction: column;
}

.mgr-stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.mgr-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.mgr-team-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mgr-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mgr-section-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--text-primary, #0f172a);
}

.mgr-company-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .mgr-company-banner {
    flex-direction: column;
    align-items: stretch !important;
    padding: 16px !important;
  }
  .mgr-company-banner > div {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .mgr-company-banner .rm-btn {
    flex: 1;
    justify-content: center;
  }
}

.mgr-section-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mgr-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
}

.mgr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 600px;
}

.mgr-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mgr-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.mgr-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #0056B3);
  text-decoration: none;
  transition: color 0.15s;
}

.mgr-link-btn:hover {
  color: #014B9D;
}

.mgr-empty-preview {
  padding: 36px 16px;
  text-align: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* RESPONSIVE MEDIA QUERIES FOR MANAGER DASHBOARD */
@media (max-width: 1024px) {
  .mgr-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .mgr-dash-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .mgr-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .mgr-stat-card {
    padding: 14px;
    gap: 12px;
  }
  .mgr-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  .mgr-stat-icon svg {
    width: 20px;
    height: 20px;
  }
  .mgr-stat-value {
    font-size: 20px;
  }
  .mgr-stat-label {
    font-size: 12px;
  }
  .mgr-section-card {
    padding: 14px;
  }
  .mgr-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .mgr-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* EmployeeMultiSelect.css */
.emp-multiselect-container {
  position: relative;
  width: 100%;
}

.emp-multiselect-container.disabled {
  opacity: 0.7;
  pointer-events: none;
}

.emp-multiselect-trigger {
  min-height: 44px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.emp-multiselect-trigger:hover {
  border-color: #cbd5e1;
}

.emp-multiselect-trigger.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.emp-multiselect-content {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.emp-multiselect-placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.emp-multiselect-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Avatar Stack */
.emp-avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.emp-stacked-avatar {
  margin-left: -7px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: #ffffff;
  display: inline-flex;
}

.emp-stacked-avatar:first-child {
  margin-left: 0;
}

.emp-stacked-more {
  margin-left: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.emp-selected-count {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.emp-multiselect-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.emp-clear-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s;
}

.emp-clear-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.emp-chevron {
  color: #64748b;
  transition: transform 0.2s ease;
}

.emp-chevron.rotated {
  transform: rotate(180deg);
}

/* Selected Pills Row */
.emp-selected-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.emp-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 8px 3px 4px;
  font-size: 12px;
  color: #1e293b;
  font-weight: 500;
}

.emp-pill-name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-pill-remove {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #94a3b8;
  margin-left: 2px;
}

.emp-pill-remove:hover {
  color: #ef4444;
}

/* Dropdown */
.emp-multiselect-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  z-index: 99999;
  overflow: hidden;
  animation: empSlideDown 0.15s ease-out;
}

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

.emp-search-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.emp-search-icon {
  color: #94a3b8;
  margin-right: 8px;
}

.emp-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0f172a;
}

.emp-search-input::placeholder {
  color: #94a3b8;
}

.emp-list-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}

.emp-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.emp-list-item:hover {
  background-color: #f8fafc;
}

.emp-list-item.selected {
  background-color: #f1f5f9;
}

.emp-item-avatar-wrapper {
  flex-shrink: 0;
}

.emp-avatar-img {
  border-radius: 50%;
  object-fit: cover;
}

.emp-avatar-initials {
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emp-item-info {
  flex: 1;
  min-width: 0;
}

.emp-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-item-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.emp-meta-id {
  font-weight: 500;
  color: #475569;
}

.emp-meta-desig {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-item-check {
  flex-shrink: 0;
}

.emp-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.emp-checkbox.checked {
  background-color: #0f172a;
  border-color: #0f172a;
}

.emp-no-results {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================================
   TASK WORKSPACE - TWO-COLUMN SPLIT LAYOUT (GOOGLE MEET / MODERN PM THEME)
   ========================================================================== */

.task-workspace-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.task-workspace-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  max-height: 850px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: inherit;
}

/* WORKSPACE HEADER */
.task-workspace-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.task-workspace-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-workspace-header-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.task-mode-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WORKSPACE BODY GRID */
.task-workspace-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  background: #ffffff;
}

/* LEFT PANEL */
.task-panel-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.task-panel-left-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 120px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.task-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.task-input-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s;
}

.task-input-title:focus {
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.task-textarea-desc {
  font-size: 14px;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
}

.task-textarea-desc:focus {
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.task-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.task-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* LEFT PANEL FOOTER BUTTONS */
.task-panel-left-footer {
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

/* RIGHT PANEL */
.task-panel-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fafbfc;
  overflow: hidden;
}

/* RIGHT TABS */
.task-tabs-header,
.task-panel-right-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 16px;
  flex-shrink: 0;
}

.task-tab-btn {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.task-tab-btn:hover {
  color: #0f172a;
}

.task-tab-btn.active {
  color: #0056B3;
  border-bottom-color: #0056B3;
}

/* TAB CONTENT SCROLL */
.task-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

/* COMMENTS LIST */
.task-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.task-comment-card,
.task-comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.task-comment-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.task-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.task-comment-body {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.task-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.task-comment-role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.task-comment-author {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.task-comment-time {
  font-size: 11px;
  color: #94a3b8;
}

.task-comment-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* AUDIO COMMENT */
.task-audio-player {
  margin-top: 6px;
  width: 100%;
  max-width: 280px;
}

/* IMAGE COMMENT */
.task-comment-img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 260px !important;
  max-height: 200px !important;
  object-fit: cover !important;
  border-radius: 8px;
  margin-top: 6px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.task-comment-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* LINK COMMENT */
.task-comment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0284c7;
  font-size: 13px;
  text-decoration: none;
  margin-top: 4px;
  font-weight: 500;
}

.task-comment-link:hover {
  text-decoration: underline;
}

/* COMPOSER AT BOTTOM OF RIGHT PANEL */
.task-comment-composer {
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-composer-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.task-composer-textarea {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  resize: none;
  outline: none;
  font-family: inherit;
  max-height: 80px;
  line-height: 1.4;
}

.task-composer-textarea:focus {
  border-color: #0056B3;
}

.task-composer-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-tool-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.task-tool-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.task-tool-btn.recording {
  color: #dc2626;
  background: #fee2e2;
  animation: pulseRec 1.2s infinite;
}

@keyframes pulseRec {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.task-send-btn {
  background: #0056B3;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.task-send-btn:hover {
  background: #014B9D;
}

.task-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.task-spin {
  animation: spin 1s linear infinite;
}

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

.task-rec-pulse {
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
  display: inline-block;
  animation: pulseRec 1s infinite;
}

/* ATTACHMENTS TAB */
.task-attachment-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* ACTIVITY LOG TAB */
.task-activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.task-activity-node {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.task-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0056B3;
  margin-top: 6px;
  flex-shrink: 0;
}

/* TIME LOG TAB */
.task-timelog-summary {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .task-workspace-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .task-panel-left {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    height: auto;
  }
  .task-panel-right {
    height: 500px;
  }
}


/* ==========================================================================
   REDESIGNED TASK DETAILS / EDIT TASK LEFT PANEL STYLES
   ========================================================================== */

.task-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-required {
  color: #ef4444;
}

/* Voice Input Integration for Title and Description */
.task-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.task-voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-voice-btn:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0056B3;
  border-color: #94a3b8;
}

.task-voice-btn.recording {
  background: #fef2f2;
  color: #dc2626;
  border-color: #f87171;
  animation: pulse-voice 1.5s infinite;
}

@keyframes pulse-voice {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.task-voice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  display: inline-block;
  animation: blink-dot 1s infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Modern Typography: Title Input */
.task-input-title-modern {
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  transition: all 0.2s ease;
}

.task-input-title-modern:focus {
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.task-input-title-modern:disabled {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

/* Modern Typography: Description Textarea */
.task-textarea-modern {
  width: 100%;
  min-height: 120px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  transition: all 0.2s ease;
}

.task-textarea-modern:focus {
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.task-textarea-modern:disabled {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

/* Date Pickers Grid */
.task-dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Status & Priority Controls Grid */
.task-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.task-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.task-select-modern {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 36px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  background-color: #ffffff;
  color: #1e293b;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: all 0.2s ease;
}

.task-select-modern:focus {
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.task-select-modern:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}

/* Indicators */
.task-status-indicator,
.task-priority-indicator {
  position: absolute;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
}

/* Status Color Palette */
.status-dot-pending { background-color: #94a3b8; box-shadow: 0 0 0 2px #e2e8f0; } /* Grey: To Do */
.status-dot-in_progress { background-color: #2563eb; box-shadow: 0 0 0 2px #dbeafe; } /* Blue: In Progress */
.status-dot-completed { background-color: #0056B3; box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.12); } /* Green: Completed */
.status-dot-on_hold { background-color: #ea580c; box-shadow: 0 0 0 2px #ffedd5; } /* Orange: On Hold */
.status-dot-cancelled { background-color: #dc2626; box-shadow: 0 0 0 2px #fee2e2; } /* Red: Cancelled */

/* Priority Color Palette */
.priority-dot-high,
.priority-dot-urgent { background-color: #dc2626; box-shadow: 0 0 0 2px #fee2e2; } /* Red: High / Urgent */
.priority-dot-medium { background-color: #f59e0b; box-shadow: 0 0 0 2px #fef3c7; } /* Orange / Amber: Medium */
.priority-dot-low { background-color: #0056B3; box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.12); } /* Green: Low */

/* Footer Actions */
.task-panel-left-actions {
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Responsive Design for Task Workspace Modal */
@media (max-width: 1024px) {
  .task-workspace-backdrop {
    padding: 12px;
  }
  .task-workspace-modal {
    height: 96vh;
    max-height: none;
    overflow-y: auto;
  }
  .task-workspace-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
  }
  .task-workspace-body {
    grid-template-columns: 1fr;
    overflow: visible;
    height: auto;
  }
  .task-panel-left {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    height: auto;
    overflow: visible;
  }
  .task-panel-left-scroll {
    padding: 18px 20px 24px 20px;
    overflow-y: visible;
    height: auto;
  }
  .task-panel-left-actions {
    position: sticky;
    bottom: 0;
    z-index: 15;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
  .task-panel-right {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .task-workspace-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .task-workspace-modal {
    border-radius: 16px 16px 0 0;
    height: 94vh;
    max-height: 94vh;
    overflow-y: auto;
  }
  .task-workspace-header {
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
  }
  .task-workspace-header-title h2 {
    font-size: 16px;
  }
  .task-tabs-header,
  .task-panel-right-tabs {
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .task-tab-btn {
    padding: 12px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .task-panel-left-scroll {
    padding: 14px 14px 24px 14px;
    gap: 16px;
    overflow-y: visible;
    height: auto;
  }
  .task-input-title-modern {
    font-size: 14px;
    padding: 10px 12px;
  }
  .task-textarea-modern {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 90px;
  }
  .task-dates-grid,
  .task-controls-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .task-panel-left-actions {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 15;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
  .task-panel-left-actions .rm-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .task-panel-left-actions > div {
    display: flex;
    gap: 8px;
  }
  .task-panel-right {
    height: 480px;
  }
  .task-tab-content {
    padding: 14px;
  }
  .task-comment-composer {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .task-workspace-modal {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
  }
  .task-workspace-header-title {
    gap: 6px;
  }
  .task-workspace-header-title h2 {
    font-size: 15px;
  }
  .task-mode-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .task-panel-left-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .task-panel-left-actions button {
    width: 100%;
    justify-content: center;
  }
  .task-panel-left-actions > div {
    width: 100%;
    flex-direction: row;
  }
  .task-panel-left-actions > div button {
    flex: 1;
  }
}
.task-manager-page {
  padding: 24px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.task-filter-controls {
  display: flex;
  gap: 10px;
}

@media (max-width: 1024px) {
  .task-manager-page {
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .task-manager-page {
    padding: 12px;
  }
  .task-filter-controls {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }
  .task-filter-controls > div {
    flex: 1;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .task-filter-controls {
    flex-direction: column;
  }
}




/* Clean Modern Split Login */
.login-screen-split {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  width: 100vw;
  display: flex;
  background-color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* ============================================================
   LEFT SIDE ARCH HERO (Zero scroll, precise height)
   ============================================================ */
.login-left-hero-wrapper {
  flex: 1.15;
  max-width: 50%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  background-color: #FFFFFF;
  display: flex;
  overflow: hidden;
}

.login-hero-arch-mask {
  position: relative;
  width: 100%;
  height: 100%;
  /* Curved semi-elliptical right arch boundary */
  border-top-right-radius: 46vw 100vh;
  border-bottom-right-radius: 46vw 100vh;
  overflow: hidden;
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.04);
}

.login-hero-arch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ============================================================
   RIGHT SIDE LOGIN FORM
   ============================================================ */
.login-right-content-wrapper {
  flex: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
  background-color: #FFFFFF;
  box-sizing: border-box;
  overflow: hidden;
}

/* Beautiful elevated login card container */
.login-form-inner-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  padding: 38px 36px 30px;
  border-radius: 24px;
  box-shadow: 0 12px 42px rgba(15, 23, 42, 0.07), 0 2px 10px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Welcome Titles */
.login-welcome-header {
  margin-bottom: 30px;
  text-align: left;
}

.login-welcome-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #1E293B;
  font-family: 'Comfortaa', cursive, 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.login-welcome-subtitle {
  margin: 8px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  color: #64748B;
}

/* Error message */
.login-split-error-box {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  line-height: 1.4;
}

/* Form */
.login-split-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Modern Input Card/Field with subtle background and active border */
.login-split-field-row {
  position: relative;
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 16px;
  transition: all 200ms ease;
}

.login-split-field-row:focus-within {
  background: #FFFFFF;
  border-color: #0757B8;
  box-shadow: 0 0 0 3px rgba(7, 87, 184, 0.12);
}

.login-split-icon {
  color: #94A3B8;
  flex-shrink: 0;
  margin-right: 12px;
  transition: color 200ms ease;
}

.login-split-field-row:focus-within .login-split-icon {
  color: #0757B8;
}

.login-split-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: #1E293B;
  padding: 0;
  font-family: inherit;
}

.login-split-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
  font-size: 14px;
}

.login-split-pwd-toggle {
  background: none;
  border: none;
  padding: 4px;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 150ms ease;
}

.login-split-pwd-toggle:hover {
  color: #4A5568;
}

/* Bottom Action Row */
.login-split-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 16px;
}

.login-split-forgot-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #0757B8;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: color 150ms ease;
}

.login-split-forgot-btn:hover {
  color: #004494;
  text-decoration: underline;
}

/* Pill Button */
.login-split-submit-pill {
  background: #0757B8;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 12px 36px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: 'Comfortaa', cursive, 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(7, 87, 184, 0.28);
  transition: all 180ms ease;
  min-width: 110px;
}

.login-split-submit-pill:hover:not(:disabled) {
  background: #004B9D;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7, 87, 184, 0.35);
}

.login-split-submit-pill:active:not(:disabled) {
  transform: translateY(0);
}

.login-split-submit-pill:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-split-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}

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

/* Footer Credits with Background-Removed Logo */
.login-split-footer {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.login-split-footer-text {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
  font-family: 'Comfortaa', sans-serif;
}

.login-split-footer-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
}

/* ============================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ============================================================ */
@media (max-width: 960px) {
  .login-screen-split {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow-y: auto;
  }

  .login-left-hero-wrapper {
    display: block;
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 250px;
  }

  .login-hero-arch-mask {
    border-top-right-radius: 0;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .login-right-content-wrapper {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 32px 24px 40px 24px;
    overflow: visible;
  }

  .login-form-inner-container {
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .login-left-hero-wrapper {
    height: 210px;
  }

  .login-hero-arch-mask {
    border-bottom-right-radius: 32px;
    border-bottom-left-radius: 32px;
  }

  .login-welcome-title {
    font-size: 25px;
  }

  .login-welcome-subtitle {
    font-size: 14px;
  }

  .login-split-action-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .login-split-submit-pill {
    width: auto;
    padding: 12px 32px;
  }

  .login-split-forgot-btn {
    text-align: left;
  }

  .login-split-footer {
    justify-content: flex-end;
    margin-top: 36px;
  }
}
/* Personal Daily Alarm Styles - Light Green Theme */
.personal-alarm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.personal-alarm-ring-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: alarmPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #bbf7d0;
}

@keyframes alarmPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.personal-alarm-ring-icon-box {
  width: 72px;
  height: 72px;
  background: rgba(0, 86, 179, 0.12);
  color: #0056B3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: bellRing 0.8s infinite alternate ease-in-out;
}

@keyframes bellRing {
  from { transform: rotate(-12deg); }
  to { transform: rotate(12deg); }
}

.personal-alarm-ring-modal h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.personal-alarm-ring-time {
  font-size: 32px;
  font-weight: 800;
  color: #0056B3;
  margin: 8px 0;
  letter-spacing: -0.02em;
}

.personal-alarm-ring-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
}

.personal-alarm-stop-btn {
  width: 100%;
  padding: 14px;
  background: #0056B3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25);
}

.personal-alarm-stop-btn:hover {
  background: #014B9D;
  transform: translateY(-1px);
}

.personal-alarm-unmute-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* Card in Dashboard - Light Green Theme */
.personal-alarm-card {
  margin: 1rem 1rem 0;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
}

.personal-alarm-card:hover {
  border-color: #60A5FA;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.09);
}

.personal-alarm-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.personal-alarm-icon-box {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background: #F8F9FC;
  color: #0056B3;
  border: 1px solid rgba(0, 86, 179, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.alarm-active-bell {
  color: #0056B3;
  animation: bellGentle 2s infinite ease-in-out;
}

@keyframes bellGentle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.personal-alarm-header-info {
  flex: 1;
}

.personal-alarm-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.personal-alarm-header-info h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.personal-alarm-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
  text-transform: uppercase;
}

.personal-alarm-status-pill.active {
  background: rgba(0, 86, 179, 0.12);
  color: #014B9D;
  border: 1px solid #bbf7d0;
}

.personal-alarm-status-pill.inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.personal-alarm-header-info p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.personal-alarm-toggle {
  width: 46px;
  height: 26px;
  background: #cbd5e1;
  border: none;
  border-radius: 9999px;
  padding: 3px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s ease;
}

.personal-alarm-toggle.active {
  background: #0056B3;
}

.personal-alarm-toggle-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  display: block;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.personal-alarm-toggle.active .personal-alarm-toggle-thumb {
  transform: translateX(20px);
}

.personal-alarm-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.personal-alarm-time-control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.personal-alarm-time-control label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 12-Hour AM/PM Picker UI */
.alarm-picker-container {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 3px 6px;
  gap: 4px;
  transition: border-color 0.2s;
}

.alarm-picker-container:focus-within {
  border-color: #0056B3;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}

.alarm-time-select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  padding: 4px 6px;
  outline: none;
  cursor: pointer;
  border-radius: 6px;
}

.alarm-time-select:hover {
  background: #e2e8f0;
}

.alarm-time-colon {
  font-weight: 700;
  font-size: 15px;
  color: #475569;
}

.alarm-ampm-btn-group {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  margin-left: 4px;
}

.alarm-ampm-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alarm-ampm-btn.active {
  background: #0056B3;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.personal-alarm-saved-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.personal-alarm-saved-display strong {
  color: #0056B3;
  font-size: 13px;
  font-weight: 700;
}

.personal-alarm-save-btn {
  padding: 9px 20px;
  background: #0056B3;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}

.personal-alarm-save-btn:hover:not(:disabled) {
  background: #014B9D;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
  transform: translateY(-1px);
}

.personal-alarm-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.personal-alarm-success-msg {
  font-size: 12px;
  color: #014B9D;
  background: rgba(0, 86, 179, 0.12);
  border: 1px solid #bbf7d0;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* =========================================================
   EMPLOYEE DASHBOARD
   Light Green Enterprise Theme
========================================================= */

.employee-dashboard {
  --dashboard-green: #0056B3; /* Yaazh Royal Blue */
  --dashboard-green-dark: #014B9D; /* Yaazh Deep Royal Blue */
  --dashboard-green-light: rgba(0, 86, 179, 0.12); /* Soft Royal Tint */
  --dashboard-green-soft: #F8F9FC; /* Luxury Canvas Tint */
  --dashboard-text: #0f172a;
  --dashboard-muted: #64748b;
  --dashboard-border: #e2e8f0;

  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--dashboard-text);
}

/* =========================================================
   LOADING
========================================================= */

.employee-dashboard-loading {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-loader {
  text-align: center;
  color: var(--dashboard-muted);
}

.loader-ring {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(0, 86, 179, 0.12);
  border-top-color: var(--dashboard-green);
  border-radius: 50%;
  animation: dashboardSpin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* =========================================================
   HERO
========================================================= */

.dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(255, 255, 255, 0.24),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #014B9D 0%,
      #0056B3 48%,
      #38BDF8 100%
    );

  padding: 2rem 2rem 4rem;
  margin-bottom: -2rem;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.08);
  top: -250px;
  right: -100px;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, 0.07);
  bottom: -250px;
  left: -130px;
}

.dashboard-hero-top {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1120px;
  margin: 0 auto;
}

.dashboard-greeting {
  color: white;
}

.dashboard-small-greeting {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.dashboard-greeting h1 {
  margin: 0;
  color: white;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.greeting-hand {
  margin-left: 0.45rem;
}

.dashboard-date {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  opacity: 0.88;
}

.profile-avatar-button {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;

  border-radius: 50%;
  padding: 3px;

  border: 3px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.25);

  cursor: pointer;
  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-avatar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(21, 128, 61, 0.25);
}

.dashboard-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dashboard-avatar-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: white;
  color: var(--dashboard-green);
}

/* =========================================================
   WORKING CARD
========================================================= */

.working-card {
  position: relative;
  z-index: 5;

  margin: 0 1rem;
  background: white;

  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;

  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.08),
    0 3px 12px rgba(15, 23, 42, 0.04);

  padding: 1rem;
}

.working-card-inner {
  background:
    linear-gradient(
      135deg,
      #f8fffa 0%,
      #F8F9FC 100%
    );

  border-radius: 20px;
  padding: 1.4rem;
}

.working-status-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.working-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      145deg,
      #22c55e,
      #014B9D
    );

  color: white;

  box-shadow:
    0 10px 25px rgba(22, 163, 74, 0.25);
}

.working-status-content {
  min-width: 0;
  flex: 1;
}

.working-label {
  display: block;
  color: var(--dashboard-muted);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.working-status-content h2 {
  margin: 0;
  color: var(--dashboard-green-dark);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.working-status-content p {
  margin: 0.45rem 0 0;
  color: var(--dashboard-muted);
  font-size: 0.9rem;
}

.working-status-content p strong {
  color: var(--dashboard-text);
  font-size: 1rem;
}

.attendance-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.55rem 0.9rem;
  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 700;

  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status-ontime,
.status-completed {
  color: #014B9D;
  background: rgba(0, 86, 179, 0.12);
}

.status-late {
  color: #b45309;
  background: #fef3c7;
}

.status-neutral {
  color: #64748b;
  background: #f1f5f9;
}

/* =========================================================
   ATTENDANCE BUTTONS
========================================================= */

.attendance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;

  margin-top: 1.35rem;
}

.attendance-action-btn {
  min-height: 58px;

  border: none;
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;

  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.attendance-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.check-in-btn {
  color: #166534;
  background: rgba(0, 86, 179, 0.12);
}

.check-in-btn:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.15);
}

.check-out-btn {
  color: white;

  background:
    linear-gradient(
      135deg,
      #22c55e,
      #014B9D
    );

  box-shadow:
    0 8px 20px rgba(22, 163, 74, 0.18);
}

.check-out-btn:hover:not(:disabled) {
  box-shadow:
    0 12px 28px rgba(22, 163, 74, 0.25);
}

.disabled-action {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* =========================================================
   LOCATION
========================================================= */

.location-card {
  margin: 1rem 1rem 0;

  background: white;
  border: 1px solid var(--dashboard-border);
  border-radius: 20px;

  min-height: 86px;

  display: flex;
  align-items: center;

  padding: 1rem 1.25rem;

  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.04);
}

.location-section,
.accuracy-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.location-section {
  flex: 1.25;
}

.accuracy-section {
  flex: 0.75;
}

.location-icon,
.accuracy-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  color: var(--dashboard-green);
  background: #ecfdf5;
}

.location-label {
  display: block;

  color: var(--dashboard-muted);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.location-value {
  display: block;

  color: var(--dashboard-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.location-divider {
  width: 1px;
  height: 42px;
  background: var(--dashboard-border);
  margin: 0 1.5rem;
}

/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;

  margin: 1rem 1rem 0;
}

.quick-action-card {
  border: 1px solid var(--dashboard-border);
  background: white;

  min-height: 128px;

  border-radius: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.65rem;

  color: var(--dashboard-text);

  cursor: pointer;

  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.035);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.quick-action-card:hover {
  transform: translateY(-3px);

  border-color: #bbf7d0;

  box-shadow:
    0 12px 25px rgba(22, 163, 74, 0.1);
}

.quick-action-card span {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.quick-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;
}

.history-icon {
  color: #014B9D;
  background: rgba(0, 86, 179, 0.12);
}

.reports-icon {
  color: #014B9D;
  background: rgba(0, 86, 179, 0.08);
}

.profile-icon {
  color: #166534;
  background: #ecfdf5;
}

/* =========================================================
   SUMMARY
========================================================= */

.summary-section,
.recent-section {
  margin: 1.8rem 1rem 0;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 1rem;
}

.section-heading-row h2,
.recent-heading h2 {
  margin: 0;

  color: var(--dashboard-text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-heading-row p {
  margin: 0.25rem 0 0;

  color: var(--dashboard-muted);
  font-size: 0.8rem;
}

.summary-calendar {
  display: flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.55rem 0.8rem;

  border: 1px solid rgba(0, 86, 179, 0.12);
  border-radius: 999px;

  background: #F8F9FC;

  color: #014B9D;

  font-size: 0.78rem;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.summary-card {
  min-height: 135px;

  border-radius: 20px;

  padding: 1rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  border: 1px solid transparent;
}

.summary-card-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
}

.summary-card span {
  color: #475569;
  font-size: 0.82rem;
}

.summary-card strong {
  color: var(--dashboard-text);
  font-size: 1.25rem;
  font-weight: 800;
}

.summary-green {
  background: #F8F9FC;
  border-color: rgba(0, 86, 179, 0.12);
}

.summary-green .summary-card-icon {
  color: #0056B3;
  background: rgba(0, 86, 179, 0.12);
}

.summary-red {
  background: #fff7f7;
  border-color: #fee2e2;
}

.summary-red .summary-card-icon {
  color: #dc2626;
  background: #fee2e2;
}

.summary-yellow {
  background: #fffbeb;
  border-color: #fef3c7;
}

.summary-yellow .summary-card-icon {
  color: #d97706;
  background: #fef3c7;
}

.summary-blue {
  background: #F8F9FC;
  border-color: rgba(0, 86, 179, 0.12);
}

.summary-blue .summary-card-icon {
  color: #014B9D;
  background: rgba(0, 86, 179, 0.12);
}

.summary-status {
  color: #014B9D !important;

  padding: 0.35rem 0.75rem;

  border-radius: 999px;

  background: rgba(0, 86, 179, 0.12);

  font-size: 0.78rem !important;
}

/* =========================================================
   RECENT ATTENDANCE
========================================================= */

.recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 1rem;
}

.recent-heading a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;

  color: var(--dashboard-green);

  text-decoration: none;

  font-size: 0.82rem;
  font-weight: 700;
}

.recent-heading a:hover {
  color: var(--dashboard-green-dark);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.recent-attendance-card {
  display: flex;
  align-items: center;

  min-height: 90px;

  padding: 0.85rem 1rem;

  border: 1px solid var(--dashboard-border);
  border-radius: 18px;

  background: white;

  box-shadow:
    0 5px 16px rgba(15, 23, 42, 0.035);
}

.recent-date-box {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;

  border-radius: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #F8F9FC;
  border: 1px solid rgba(0, 86, 179, 0.12);
}

.recent-date-box strong {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--dashboard-text);
}

.recent-date-box span {
  margin-top: 0.2rem;

  color: var(--dashboard-muted);

  font-size: 0.7rem;
}

.recent-timeline {
  width: 28px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

.recent-timeline::after {
  content: '';

  position: absolute;

  top: 0;
  bottom: 0;

  width: 2px;

  background: rgba(0, 86, 179, 0.12);
}

.timeline-dot {
  position: relative;
  z-index: 2;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 4px rgba(0, 86, 179, 0.12);
}

.timeline-late {
  background: #f59e0b;

  box-shadow:
    0 0 0 4px #fef3c7;
}

.recent-content {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
}

.recent-title {
  color: var(--dashboard-muted);
  font-size: 0.78rem;
}

.recent-time {
  margin-top: 0.15rem;

  color: var(--dashboard-text);

  font-size: 1.05rem;
}

.recent-location {
  margin-top: 0.2rem;

  display: flex;
  align-items: center;
  gap: 0.25rem;

  color: var(--dashboard-muted);

  font-size: 0.75rem;
}

.recent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;

  padding: 0.45rem 0.7rem;

  border-radius: 999px;

  color: #166534;
  background: rgba(0, 86, 179, 0.12);

  font-size: 0.75rem;
  font-weight: 700;
}

.recent-status-late {
  color: #b45309;
  background: #fef3c7;
}

.recent-empty {
  min-height: 180px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px dashed #cbd5e1;
  border-radius: 20px;

  background: white;

  color: #94a3b8;
}

.recent-empty p {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

/* =========================================================
   CAMERA
========================================================= */

.attendance-camera-overlay {
  position: fixed;

  inset: 0;

  z-index: 9999;

  background: black;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .employee-dashboard {
    padding-bottom: 1rem;
  }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .employee-dashboard {
    padding-bottom: 1.5rem;
  }

  .dashboard-hero {
    padding: 1.25rem 1rem 3.5rem;
    border-radius: 0 0 26px 26px;
  }

  .dashboard-greeting h1 {
    font-size: 1.55rem;
  }

  .dashboard-small-greeting {
    font-size: 0.85rem;
  }

  .dashboard-date {
    font-size: 0.78rem;
  }

  .profile-avatar-button {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .working-card {
    margin: 0 0.75rem;
    border-radius: 22px;
    padding: 0.7rem;
  }

  .working-card-inner {
    padding: 1rem;
    border-radius: 17px;
  }

  .working-status-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .working-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .working-status-content {
    padding-top: 0.15rem;
  }

  .working-status-content h2 {
    font-size: 1.45rem;
  }

  .working-status-content p {
    font-size: 0.78rem;
  }

  .attendance-status-pill {
    width: 100%;
    justify-content: center;
    margin-top: 0.3rem;
  }

  .attendance-actions {
    gap: 0.7rem;
  }

  .attendance-action-btn {
    min-height: 54px;
    border-radius: 14px;
    font-size: 0.85rem;
  }

  .location-card {
    margin: 0.75rem 0.75rem 0;
    padding: 0.85rem;
    border-radius: 17px;
  }

  .location-section,
  .accuracy-section {
    gap: 0.55rem;
  }

  .location-icon,
  .accuracy-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .location-label {
    font-size: 0.68rem;
  }

  .location-value {
    font-size: 0.75rem;
  }

  .location-divider {
    margin: 0 0.65rem;
    height: 36px;
  }

  .quick-actions {
    margin: 0.75rem 0.75rem 0;
    gap: 0.65rem;
  }

  .quick-action-card {
    min-height: 105px;
    border-radius: 16px;
  }

  .quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .quick-action-card span {
    font-size: 0.7rem;
  }

  .summary-section,
  .recent-section {
    margin: 1.5rem 0.75rem 0;
  }

  .section-heading-row {
    align-items: flex-start;
  }

  .section-heading-row h2,
  .recent-heading h2 {
    font-size: 1.1rem;
  }

  .section-heading-row p {
    display: none;
  }

  .summary-calendar {
    font-size: 0.68rem;
    padding: 0.45rem 0.6rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .summary-card {
    min-height: 120px;
    padding: 0.8rem;
    border-radius: 16px;
  }

  .summary-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .summary-card span {
    font-size: 0.72rem;
  }

  .summary-card strong {
    font-size: 1rem;
  }

  .recent-heading {
    margin-bottom: 0.7rem;
  }

  .recent-heading a {
    font-size: 0.72rem;
  }

  .recent-attendance-card {
    min-height: 82px;
    padding: 0.7rem;
    border-radius: 16px;
  }

  .recent-date-box {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 12px;
  }

  .recent-date-box strong {
    font-size: 1rem;
  }

  .recent-timeline {
    width: 22px;
    height: 48px;
  }

  .recent-title {
    font-size: 0.7rem;
  }

  .recent-time {
    font-size: 0.92rem;
  }

  .recent-location {
    font-size: 0.66rem;
  }

  .recent-status {
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 390px) {

  .dashboard-greeting h1 {
    font-size: 1.4rem;
  }

  .profile-avatar-button {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .working-status-top {
    gap: 0.7rem;
  }

  .working-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .working-status-content h2 {
    font-size: 1.25rem;
  }

  .attendance-action-btn {
    font-size: 0.78rem;
  }

  .summary-card {
    min-height: 112px;
  }

  .summary-card strong {
    font-size: 0.9rem;
  }

}
/* =====================================================
   ATTENDANCE POPUP
===================================================== */

.attendance-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}

.attendance-popup {
  width: min(380px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  animation: attendancePopupIn 0.2s ease-out;
}

.attendance-popup-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attendance-popup-success .attendance-popup-icon {
  background: #eaf8ef;
  color: #16803c;
}

.attendance-popup-error .attendance-popup-icon {
  background: #fff1f0;
  color: #d93025;
}

.attendance-popup-content {
  flex: 1;
}

.attendance-popup-content h3 {
  margin: 1px 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.attendance-popup-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.attendance-popup-content button {
  margin-top: 13px;
  min-width: 68px;
  padding: 7px 16px;
  border: 0;
  border-radius: 7px;
  background: #e56108;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.attendance-popup-content button:hover {
  opacity: 0.92;
}

@keyframes attendancePopupIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

@media (max-width: 600px) {
  .attendance-popup-overlay {
    padding-top: 70px;
  }

  .attendance-popup {
    width: calc(100vw - 24px);
    padding: 15px;
  }
}

/* =========================================================
   LIVE LOCATION SHARING CARD (FIELD & MARKETING)
========================================================= */

.live-tracking-card {
  margin: 1rem 1rem 0;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
}

.live-tracking-card:hover {
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.09);
  border-color: #60A5FA;
}

.live-tracking-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.live-tracking-icon-box {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #0056B3;
  background: #F8F9FC;
  border: 1px solid rgba(0, 86, 179, 0.12);
}

.live-tracking-icon-active {
  color: #0056B3;
  animation: pulse-tracking 2s infinite ease-in-out;
}

@keyframes pulse-tracking {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}

.live-tracking-content {
  flex: 1;
  min-width: 0;
}

.live-tracking-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-tracking-title-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dashboard-text, #1e293b);
  letter-spacing: -0.01em;
}

.live-tracking-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-tracking-badge.badge-active {
  background: rgba(0, 86, 179, 0.12);
  color: #014B9D;
  border: 1px solid #bbf7d0;
}

.live-tracking-badge.badge-off {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.live-tracking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.live-tracking-desc {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.live-tracking-error {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 500;
}

.live-tracking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.live-tracking-status-text {
  font-size: 0.82rem;
  color: #64748b;
}

.live-tracking-status-text strong {
  color: #1e293b;
  font-weight: 600;
}

.live-tracking-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-tracking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 130px;
  height: 38px;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.live-tracking-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.live-tracking-btn-enable {
  background: #0056B3;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.live-tracking-btn-enable:hover:not(:disabled) {
  background: #014B9D;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.live-tracking-btn-disable {
  background: #64748b;
  color: #ffffff;
}

.live-tracking-btn-disable:hover:not(:disabled) {
  background: #475569;
}

.btn-spinner {
  animation: spin 1s linear infinite;
}

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

@media (max-width: 640px) {
  .live-tracking-card {
    margin: 0.75rem 0.75rem 0;
    padding: 1rem;
  }

  .live-tracking-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .live-tracking-actions {
    width: 100%;
  }

  .live-tracking-btn {
    width: 100%;
  }
}
/* Daily Task Reminder Slide-Over Drawer / Pop-up */

.daily-task-sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  display: flex;
  justify-content: flex-end;
  animation: dailyTaskFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-family: 'Comfortaa', var(--font-primary, sans-serif);
}

.daily-task-sidebar-card,
.daily-task-sidebar-card * {
  font-family: 'Comfortaa', var(--font-primary, sans-serif);
}

@keyframes dailyTaskFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.daily-task-sidebar-card {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 35px -5px rgba(0, 0, 0, 0.15), -4px 0 10px -3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  animation: dailyTaskSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dailyTaskSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Header */
.daily-task-sidebar-header {
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.daily-task-header-title-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.daily-task-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.daily-task-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.daily-task-sidebar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.daily-task-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.daily-task-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Stats Banner */
.daily-task-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.daily-task-stat-item {
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.daily-task-stat-num {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.daily-task-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.daily-task-stat-item.stat-overdue {
  background: #fef2f2;
  border-color: #fecaca;
}
.daily-task-stat-item.stat-overdue .daily-task-stat-num {
  color: #dc2626;
}
.daily-task-stat-item.stat-overdue .daily-task-stat-label {
  color: #b91c1c;
}

.daily-task-stat-item.stat-progress {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.daily-task-stat-item.stat-progress .daily-task-stat-num {
  color: #2563eb;
}
.daily-task-stat-item.stat-progress .daily-task-stat-label {
  color: #1d4ed8;
}

/* List scroll */
.daily-task-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.daily-task-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.daily-task-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.daily-task-item.item-overdue {
  border-left: 4px solid #ef4444;
}

.daily-task-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.daily-task-priority-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.daily-task-category-pill {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
}

.daily-task-overdue-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.daily-task-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 10px;
}

.daily-task-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}

.daily-task-due {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
}

.daily-task-status-pill {
  font-size: 10px;
  font-weight: 600;
  color: #3b82f6;
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.daily-task-more-note {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  padding: 6px 0;
  font-weight: 500;
}

/* Footer */
.daily-task-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-task-view-all-btn {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.daily-task-view-all-btn:hover {
  background: #1d4ed8;
}

.daily-task-dismiss-btn {
  width: 100%;
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.daily-task-dismiss-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* WFH Employee Page */
.wfh-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
  color: #1f2937;
}

.wfh-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.wfh-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 13px;
  border-radius: 12px;
  background: #eff6ff;
  color: #014B9D;
}

.wfh-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.wfh-header p {
  margin: 6px 0 0;
  color: #6b7280;
  line-height: 1.5;
}

.wfh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.wfh-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.wfh-card h2 {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.4;
}

.wfh-field {
  margin-bottom: 18px;
  min-width: 0;
}

.wfh-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.wfh-field textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
}

.wfh-field textarea:focus {
  outline: none;
  border-color: #014B9D;
  box-shadow: 0 0 0 3px rgba(7, 87, 184, 0.12);
}

.wfh-message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wfh-error {
  color: #b91c1c;
  background: #fef2f2;
}

.wfh-success {
  color: #0757B8;
  background: #F8F9FC;
}

.wfh-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #014B9D;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.wfh-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.wfh-submit:not(:disabled):hover {
  background: #004494;
}

.wfh-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.wfh-card-head h2 {
  margin: 0;
}

.wfh-refresh {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.wfh-refresh:hover {
  background: #f9fafb;
}

.wfh-empty {
  padding: 32px 12px;
  color: #6b7280;
  text-align: center;
}

.wfh-request-list {
  display: grid;
  gap: 12px;
}

.wfh-request {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.wfh-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.wfh-request-date {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wfh-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.wfh-request-reason {
  margin: 0 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wfh-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 12px;
}

/* Tablet */
@media (max-width: 900px) {
  .wfh-page {
    padding: 20px;
  }

  .wfh-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .wfh-page {
    padding: 16px 12px 24px;
  }

  .wfh-header {
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
  }

  .wfh-header-icon {
    padding: 10px;
    border-radius: 10px;
  }

  .wfh-header h1 {
    font-size: 22px;
  }

  .wfh-header p {
    font-size: 13px;
  }

  .wfh-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .wfh-card {
    padding: 16px;
    border-radius: 12px;
  }

  .wfh-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .wfh-card-head {
    align-items: flex-start;
    gap: 8px;
  }

  .wfh-card-head h2 {
    max-width: 65%;
  }

  .wfh-request {
    padding: 12px;
  }

  .wfh-request-top {
    align-items: flex-start;
  }
}

/* ===== WFH PAGE VISUAL UPGRADE ===== */
.wfh-page {
  max-width: 1240px;
  padding: 30px 32px;
  color: #0f172a;
}

.wfh-header {
  gap: 16px;
  margin-bottom: 30px;
}

.wfh-header-icon {
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: linear-gradient(145deg, #eff6ff, #d9f7e9);
  box-shadow: 0 3px 10px rgba(7, 87, 184, 0.06);
}

.wfh-header h1 {
  color: #0f172a;
  font-size: 28px !important;
  font-weight: 750 !important;
  letter-spacing: -0.7px;
}

.wfh-header p {
  margin-top: 7px !important;
  color: #64748b !important;
  font-size: 14px;
}

.wfh-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
}

.wfh-card {
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(7, 87, 184, 0.045);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wfh-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 26px rgba(7, 87, 184, 0.065);
}

.wfh-card h2 {
  margin-bottom: 22px !important;
  color: #0f172a;
  font-size: 20px !important;
  font-weight: 700;
  letter-spacing: -0.35px;
}

.wfh-field {
  margin-bottom: 21px;
}

.wfh-field label {
  margin-bottom: 9px !important;
  color: #334155;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.wfh-field textarea {
  min-height: 132px;
  padding: 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 11px !important;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wfh-field textarea::placeholder {
  color: #94a3b8;
}

.wfh-field textarea:focus {
  border-color: #0757B8 !important;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(7, 87, 184, 0.1) !important;
}

.wfh-submit {
  min-height: 48px;
  border-radius: 10px;
  background: #0757B8;
  box-shadow: 0 4px 10px rgba(7, 87, 184, 0.13);
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wfh-submit:not(:disabled):hover {
  background: #004494;
  box-shadow: 0 6px 15px rgba(7, 87, 184, 0.2);
  transform: translateY(-1px);
}

.wfh-submit:focus-visible,
.wfh-refresh:focus-visible {
  outline: 3px solid rgba(7, 87, 184, 0.22);
  outline-offset: 3px;
}

.wfh-card-head {
  margin-bottom: 22px;
}

.wfh-card-head h2 {
  margin: 0 !important;
  font-size: 20px !important;
}

.wfh-refresh {
  padding: 9px 14px !important;
  border-color: #cbd5e1 !important;
  border-radius: 9px !important;
  color: #0757B8;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wfh-refresh:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.wfh-empty {
  padding: 42px 16px;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #64748b;
}

.wfh-request-list {
  gap: 13px;
}

.wfh-request {
  padding: 17px;
  border-color: #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wfh-request:hover {
  border-color: #bfdbfe;
  background: #ffffff;
}

.wfh-request-top {
  margin-bottom: 13px;
}

.wfh-request-date {
  color: #0f172a;
  font-size: 14px;
}

.wfh-request-date svg {
  flex-shrink: 0;
  color: #0757B8;
}

.wfh-status {
  font-size: 11px;
  letter-spacing: 0.3px;
}

.wfh-request-reason {
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.wfh-meta {
  color: #64748b;
}

.wfh-page form [role="alert"],
.wfh-page form [role="status"] {
  margin: 0 0 16px;
  padding: 12px 14px !important;
  border: 1px solid transparent;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wfh-page form [role="alert"] {
  border-color: #fecaca;
}

.wfh-page form [role="status"] {
  border-color: #bfdbfe;
}

.wfh-page .wfh-field input,
.wfh-page .wfh-field select {
  max-width: 100%;
}

@media (max-width: 900px) {
  .wfh-page {
    padding: 24px 20px;
  }

  .wfh-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .wfh-page {
    padding: 18px 12px 26px;
  }

  .wfh-header {
    gap: 12px;
    margin-bottom: 22px;
  }

  .wfh-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .wfh-header-icon svg {
    width: 23px;
    height: 23px;
  }

  .wfh-header h1 {
    font-size: 22px !important;
  }

  .wfh-header p {
    font-size: 13px;
  }

  .wfh-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .wfh-card h2,
  .wfh-card-head h2 {
    font-size: 18px !important;
  }

  .wfh-field textarea {
    min-height: 115px;
  }

  .wfh-card-head {
    align-items: center;
    gap: 10px;
  }

  .wfh-request {
    padding: 14px;
  }

  .wfh-request-top {
    gap: 9px;
  }

  .wfh-submit {
    min-height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfh-card,
  .wfh-request,
  .wfh-submit,
  .wfh-refresh,
  .wfh-field textarea {
    transition: none;
  }
}

/* Employee WFH calendar popup positioning fix */
.wfh-page .attendance-datepicker-popper {
  z-index: 999999 !important;
}

.wfh-page .attendance-datepicker-popper .attendance-custom-calendar {
  position: relative;
  z-index: 999999 !important;
  max-width: calc(100vw - 24px) !important;
}

.wfh-page .wfh-grid,
.wfh-page .wfh-card,
.wfh-page .wfh-field {
  overflow: visible !important;
}

.wfh-page .custom-date-field,
.wfh-page .custom-date-control,
.wfh-page .attendance-datepicker-wrapper {
  min-width: 0;
  width: 100%;
}

.wfh-page .wfh-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wfh-page .wfh-textarea:focus {
  outline: none;
  border-color: #0056B3;
  box-shadow: 0 0 0 3px rgba(7, 87, 184, 0.12);
}

.wfh-page .wfh-submit {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wfh-page .wfh-submit:not(:disabled):hover {
  background: #014B9D;
  box-shadow: 0 5px 14px rgba(7, 87, 184, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .wfh-page .attendance-datepicker-popper {
    max-width: calc(100vw - 24px) !important;
  }

  .wfh-page .wfh-header h1 {
    font-size: 22px !important;
  }
}
