/* ============================================
   Stafferin Color System - Bootstrap Integration
   ============================================

   This color system consolidates all colors used across the application
   and maps them to Bootstrap's color variables where applicable.

   Usage:
   - Use CSS variables: var(--stafferin-primary)
   - Use utility classes: .text-stafferin-primary, .bg-stafferin-gray-100
   - Bootstrap colors are extended, not replaced
   ============================================ */

:root {
  /* ========================================
     PRIMARY BRAND COLORS
     ======================================== */
  --stafferin-primary: #667eea;
  --stafferin-primary-dark: #764ba2;
  --stafferin-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* ========================================
     GRAY SCALE (Tailwind-inspired)
     Consistent gray palette for UI elements
     ======================================== */
  --stafferin-gray-50: #fafafa;
  --stafferin-gray-100: #f5f5f5;
  --stafferin-gray-150: #f0f0f0;
  --stafferin-gray-200: #e0e0e0;
  --stafferin-gray-250: #dddddd;
  --stafferin-gray-300: #cccccc;
  --stafferin-gray-400: #999999;
  --stafferin-gray-500: #718096;
  --stafferin-gray-600: #666666;
  --stafferin-gray-700: #4a5568;
  --stafferin-gray-800: #333333;
  --stafferin-gray-900: #1a202c;

  /* Tailwind-compatible grays (used in sidebar) */
  --stafferin-slate-50: #f7fafc;
  --stafferin-slate-100: #edf2f7;
  --stafferin-slate-200: #e2e8f0;
  --stafferin-slate-300: #cbd5e0;
  --stafferin-slate-400: #a0aec0;
  --stafferin-slate-500: #718096;
  --stafferin-slate-600: #4a5568;
  --stafferin-slate-700: #2d3748;
  --stafferin-slate-800: #1a202c;

  /* ========================================
     STATUS COLORS
     ======================================== */
  /* Success - Greens */
  --stafferin-success: #2E7D32;
  --stafferin-success-light: #43A047;
  --stafferin-success-bg: rgba(46, 125, 50, 0.1);

  /* Warning - Oranges */
  --stafferin-warning: #ed8936;
  --stafferin-warning-light: #f6ad55;
  --stafferin-warning-bg: rgba(246, 173, 85, 0.1);
  --stafferin-warning-gradient: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);

  /* Danger - Reds */
  --stafferin-danger: #D32F2F;
  --stafferin-danger-light: #E53935;
  --stafferin-danger-accent: #ff6252;
  --stafferin-danger-bg: rgba(211, 47, 47, 0.1);

  /* Info - Blues */
  --stafferin-info: #1976D2;
  --stafferin-info-bootstrap: #007bff;
  --stafferin-info-bg: rgba(25, 118, 210, 0.1);

  /* ========================================
     SEMANTIC COLORS
     ======================================== */
  --stafferin-text-primary: #000000;
  --stafferin-text-secondary: #333333;
  --stafferin-text-muted: #666666;
  --stafferin-text-light: #999999;

  --stafferin-bg-white: #ffffff;
  --stafferin-bg-light: #f5f5f5;
  --stafferin-bg-lighter: #fafafa;
  --stafferin-bg-card: #ffffff;

  --stafferin-border-light: #e0e0e0;
  --stafferin-border-lighter: #f5f5f5;
  --stafferin-border-default: #dddddd;

  /* ========================================
     COMPONENT-SPECIFIC COLORS
     ======================================== */
  /* Sidebar */
  --stafferin-sidebar-bg: #ffffff;
  --stafferin-sidebar-border: #e2e8f0;
  --stafferin-sidebar-text: #2d3748;
  --stafferin-sidebar-hover-bg: #f7fafc;
  --stafferin-sidebar-active-bg: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  --stafferin-sidebar-icon: #718096;

  /* Header */
  --stafferin-header-text: #1a202c;
  --stafferin-header-icon: #4a5568;

  /* Forms */
  --stafferin-input-bg: #fafafa;
  --stafferin-input-border: #dddddd;
  --stafferin-input-focus-border: #667eea;
  --stafferin-input-focus-shadow: rgba(102, 126, 234, 0.25);

  /* Cards */
  --stafferin-card-bg: #ffffff;
  --stafferin-card-border: #f5f5f5;
  --stafferin-card-shadow: 0 0 30px rgba(1, 41, 112, 0.1);

  /* Modals */
  --stafferin-modal-header-bg: #f0f0f0;

  /* Tooltips */
  --stafferin-tooltip-bg: #f5f5f5;
  --stafferin-tooltip-text: #333333;

  /* Badges/Status */
  --stafferin-badge-checkin: #2E7D32;
  --stafferin-badge-late: #D32F2F;
  --stafferin-badge-break: #43A047;

  /* Back to top button */
  --stafferin-back-to-top-bg: #000000;
  --stafferin-back-to-top-hover: #222222;
}

/* ========================================
   COLOR UTILITY CLASSES
   ======================================== */

/* Text Colors - Primary */
.text-stafferin-primary { color: var(--stafferin-primary) !important; }
.text-stafferin-primary-dark { color: var(--stafferin-primary-dark) !important; }

/* Text Colors - Gray Scale */
.text-stafferin-gray-50 { color: var(--stafferin-gray-50) !important; }
.text-stafferin-gray-100 { color: var(--stafferin-gray-100) !important; }
.text-stafferin-gray-200 { color: var(--stafferin-gray-200) !important; }
.text-stafferin-gray-300 { color: var(--stafferin-gray-300) !important; }
.text-stafferin-gray-400 { color: var(--stafferin-gray-400) !important; }
.text-stafferin-gray-500 { color: var(--stafferin-gray-500) !important; }
.text-stafferin-gray-600 { color: var(--stafferin-gray-600) !important; }
.text-stafferin-gray-700 { color: var(--stafferin-gray-700) !important; }
.text-stafferin-gray-800 { color: var(--stafferin-gray-800) !important; }
.text-stafferin-gray-900 { color: var(--stafferin-gray-900) !important; }

/* Text Colors - Status */
.text-stafferin-success { color: var(--stafferin-success) !important; }
.text-stafferin-warning { color: var(--stafferin-warning) !important; }
.text-stafferin-danger { color: var(--stafferin-danger) !important; }
.text-stafferin-info { color: var(--stafferin-info) !important; }

/* Background Colors - Primary */
.bg-stafferin-primary { background-color: var(--stafferin-primary) !important; }
.bg-stafferin-primary-gradient { background: var(--stafferin-primary-gradient) !important; }

/* Background Colors - Gray Scale */
.bg-stafferin-gray-50 { background-color: var(--stafferin-gray-50) !important; }
.bg-stafferin-gray-100 { background-color: var(--stafferin-gray-100) !important; }
.bg-stafferin-gray-150 { background-color: var(--stafferin-gray-150) !important; }
.bg-stafferin-gray-200 { background-color: var(--stafferin-gray-200) !important; }

/* Background Colors - Status */
.bg-stafferin-success { background-color: var(--stafferin-success) !important; }
.bg-stafferin-success-light { background-color: var(--stafferin-success-bg) !important; }
.bg-stafferin-warning { background-color: var(--stafferin-warning) !important; }
.bg-stafferin-warning-light { background-color: var(--stafferin-warning-bg) !important; }
.bg-stafferin-danger { background-color: var(--stafferin-danger) !important; }
.bg-stafferin-danger-light { background-color: var(--stafferin-danger-bg) !important; }
.bg-stafferin-info { background-color: var(--stafferin-info) !important; }
.bg-stafferin-info-light { background-color: var(--stafferin-info-bg) !important; }

/* Border Colors */
.border-stafferin-light { border-color: var(--stafferin-border-light) !important; }
.border-stafferin-default { border-color: var(--stafferin-border-default) !important; }
.border-stafferin-primary { border-color: var(--stafferin-primary) !important; }

/* Gradient Backgrounds */
.bg-gradient-primary { background: var(--stafferin-primary-gradient) !important; }
.bg-gradient-warning { background: var(--stafferin-warning-gradient) !important; }

/* ============================================
   Bootstrap Migration - Utility Classes
   ============================================ */

/* Font utilities */
.font-roboto {
  font-family: 'Roboto', sans-serif;
}

/* Size utilities for buttons/icons */
.size-32 {
  width: 32px;
  height: 32px;
}

.size-40 {
  width: 40px;
  height: 40px;
}

.size-50 {
  width: 50px;
  height: 50px;
}

/* Modal utilities */
.modal-sitemap {
  margin-top: 60px;
  max-width: 90%;
}

.modal-content-bordered {
  border: 1px solid #dee2e6;
}

/* Input group utilities - REMOVED: .border-end-0 and .border-start-0
   These are Bootstrap 5 built-in utilities */

/* Language search */
.translate-search-wrap {
  max-width: 160px;
}

.lang-search-input {
  width: 100%;
  padding: 2px 6px;
  font-size: 12px;
}

/* Color utilities (custom grays not in Bootstrap) */
.text-gray-600 {
  color: #666666 !important;
}

.text-gray-900 {
  color: #333333 !important;
}

.text-gray-400 {
  color: #999999 !important;
}

.text-gray-300 {
  color: #cccccc !important;
}

.bg-gray-50 {
  background-color: #fafafa !important;
}

.border-gray-300 {
  border-color: #dddddd !important;
}

/* Form input styling */
.form-input-light {
  background-color: #fafafa;
  border-color: #dddddd;
}

/* Auth card */
.auth-card {
  max-width: 480px;
  width: 100%;
}

/* Button styles */
.btn-outline-dark-custom {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.btn-outline-dark-custom:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Typography utilities */
.fs-xs {
  font-size: 0.65rem;
}

.fs-xxs {
  font-size: 0.75rem;
}

.letter-spacing-wide {
  letter-spacing: 1.5px;
}

/* Password validation */
.password-requirements {
  background-color: #fafafa;
  border: 1px solid #dddddd;
}

.progress-thin {
  height: 4px;
  background-color: #f0f0f0;
}

/* Animation utilities */
.animate-fadein-delayed {
  animation: fadeIn 0.5s ease-out 0.8s both;
}

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

/* Font size utilities (extending Bootstrap) */
.fs-1-4 {
  font-size: 1.4rem;
}

/* Border utilities */
.border-gray-200 {
  border-color: #e0e0e0 !important;
}

.border-end-gray {
  border-right: 1px solid #e0e0e0;
}

/* Modal styling */
.modal-rounded {
  border-radius: 16px;
  overflow: hidden;
}

.modal-header-gradient-warning {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.alert-warning-light {
  border-radius: 12px;
  background: rgba(246, 173, 85, 0.1);
}

/* Table styling */
.font-times {
  font-family: 'Times New Roman', Times, serif;
}

.table-border-gray {
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
}

/* Form input styling */
.rounded-10 {
  border-radius: 10px;
}

.rounded-12 {
  border-radius: 12px;
}

.rounded-start-12 {
  border-radius: 12px 0 0 12px;
}

.rounded-end-12 {
  border-radius: 0 12px 12px 0;
}

/* Modal header gradients */
.modal-header-gradient-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Height utilities */
.h-80 {
  height: 80px;
}

.h-100px {
  height: 100px;
}

/* Width utilities */
.w-150 {
  width: 150px;
}

/* Padding utilities */
.pe-40 {
  padding-right: 40px;
}

/* More size utilities */
.size-56 {
  width: 56px;
  height: 56px;
}

.size-64 {
  width: 64px;
  height: 64px;
}

.w-200 {
  width: 200px;
}

/* Max-width utilities */
.mw-420 {
  max-width: 420px;
}

.mw-450 {
  max-width: 450px;
}

.mw-520 {
  max-width: 520px;
}

.mw-560 {
  max-width: 560px;
}

.mw-600 {
  max-width: 600px;
}

.mw-650 {
  max-width: 650px;
}

.mw-700 {
  max-width: 700px;
}

.mw-500 {
  max-width: 500px;
}

/* Height utilities */
.mh-200 {
  max-height: 200px;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Sticky utilities */
.top-10 {
  top: 10px;
}

/* Additional font sizes */
.fs-1-8 {
  font-size: 1.8rem;
}

/* Font size utilities */
.fs-1-25 {
  font-size: 1.25rem;
}

.fs-1-5 {
  font-size: 1.5rem;
}

.fs-2rem {
  font-size: 2rem;
}

/* ============================================ */

.cursor-pointer {
  cursor: pointer;
}

.responsive-header {
    white-space: nowrap;
    font-size: 1rem; /* Default font size */
}

@media (max-width: 768px) {
    .responsive-header {
        font-size: 0.875rem; /* Slightly smaller font size */
        white-space: normal; /* Allow wrapping */
    }
}

@media (max-width: 480px) {
    .responsive-header {
        font-size: 0.75rem; /* Further reduce font size for smaller screens */
        white-space: normal; /* Ensure text wraps */
    }
}


/* Styles for table rows */
.site-row {
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    background-color: #fff;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

/* Responsive adjustments for small screens */
@media (max-width: 767px) {
    .site-row {
        font-size: 14px;
    }
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    .btn-group .btn {
        margin-bottom: 0.5rem;
        width: 100%;
        padding: 0.5rem;
        font-size: 1rem;
    }
    .tooltip-custom .tooltip-text {
        display: none;
    }
}

/* Touch-friendly elements - removed to prevent button sizing issues */
 
 
 
 @media (max-width: 768px) {
    #documentation-header {
      font-size: 1.25rem; /* Adjust font size for smaller screens */
      line-height: 1.1;
    }
    .tooltip-custom:hover .tooltip-text {
      display: block; /* Optional: show tooltip text on hover for mobile */
    }
  }
/* Enhanced Sidebar Styles - Clean Professional Design */
.sidebar {
  position: fixed;
  top: 65px;
  left: -300px;
  bottom: 0;
  width: 260px;
  z-index: 996;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--stafferin-slate-300) var(--stafferin-slate-50);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
  background: var(--stafferin-sidebar-bg);
  border-right: 1px solid var(--stafferin-sidebar-border);
}

/* Toggle Sidebar */
.toggle-sidebar .sidebar {
  left: 0;
}

/* Enhanced Scrollbar Styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
  background-color: var(--stafferin-slate-50);
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--stafferin-slate-300) 0%, var(--stafferin-slate-400) 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--stafferin-slate-400) 0%, var(--stafferin-slate-500) 100%);
}

/* Enhanced Sidebar Navigation Styles */
.sidebar-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-nav .nav-item {
  margin-bottom: 0.125rem;
}

/* Clean Professional Sidebar Navigation Links */
.sidebar .nav-link {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stafferin-sidebar-text);
  background: transparent;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin: 0.1rem 0.5rem;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar .nav-link:hover {
  color: var(--stafferin-sidebar-icon);
  background: var(--stafferin-sidebar-hover-bg);
  border-left-color: var(--stafferin-sidebar-icon);
  transform: translateX(2px);
}

.sidebar .nav-link i {
  margin-right: 0.875rem;
  font-size: 1.15rem;
  transition: all 0.25s ease;
  color: var(--stafferin-sidebar-icon);
  width: 20px;
  text-align: center;
}

.sidebar .nav-link:hover i {
  color: var(--stafferin-sidebar-icon);
  transform: scale(1.05);
}

.sidebar .nav-link.collapsed i {
  color: var(--stafferin-sidebar-icon);
}

.sidebar .nav-link .bi-chevron-down {
  margin-left: auto;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  color: var(--stafferin-slate-400);
}

.sidebar .nav-link:not(.collapsed) {
  color: var(--stafferin-sidebar-icon);
  background: var(--stafferin-sidebar-active-bg);
  border-left-color: var(--stafferin-sidebar-icon);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(113, 128, 150, 0.08);
}

.sidebar .nav-link:not(.collapsed) i {
  color: var(--stafferin-sidebar-icon);
}

.sidebar .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
  color: var(--stafferin-sidebar-icon);
}

/* Clean Submenu Styles */
.sidebar-nav .nav-content,
.sidebar .collapse {
  padding: 0.15rem 0;
  margin: 0;
  list-style: none;
  background: var(--stafferin-gray-50);
  border-radius: 8px;
  margin: 0.1rem 0.5rem 0.2rem 0.5rem;
  border: 1px solid var(--stafferin-slate-100);
}

.sidebar-nav .nav-content a,
.sidebar .collapse .nav-link {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--stafferin-slate-600);
  padding: 0.45rem 0.75rem 0.45rem 2.25rem;
  margin: 0.1rem 0.35rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  position: relative;
}

.sidebar-nav .nav-content a::before,
.sidebar .collapse .nav-link::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  width: 4px;
  height: 4px;
  background: var(--stafferin-slate-300);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.sidebar-nav .nav-content a:hover,
.sidebar .collapse .nav-link:hover {
  color: var(--stafferin-sidebar-icon);
  background: var(--stafferin-bg-white);
  border-left-color: var(--stafferin-sidebar-icon);
  transform: translateX(2px);
}

.sidebar-nav .nav-content a:hover::before,
.sidebar .collapse .nav-link:hover::before {
  background: var(--stafferin-sidebar-icon);
  transform: scale(1.5);
}

.sidebar-nav .nav-content a i,
.sidebar .collapse .nav-link i {
  margin-right: 0.6rem;
  font-size: 0.9rem;
  color: var(--stafferin-slate-400);
}

.sidebar-nav .nav-content a:hover i,
.sidebar .collapse .nav-link:hover i {
  color: var(--stafferin-sidebar-icon);
}

/* Enhanced Toggle Sidebar Button */
.header .toggle-sidebar-btn {
  font-size: 1.5rem !important;
  color: var(--stafferin-header-icon) !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.header .toggle-sidebar-btn:hover {
  color: var(--stafferin-sidebar-icon) !important;
  background: var(--stafferin-sidebar-hover-bg) !important;
}

.header .toggle-sidebar-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(113, 128, 150, 0.1);
}

.header .toggle-sidebar-btn i {
  color: inherit;
}

/* Media Queries */
/* Screens wider than 1200px */
@media (min-width: 1200px) {
  .sidebar {
    left: 0; /* Sidebar is visible by default on large screens */
  }

  #main,
  #footer {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    width: calc(100% - 260px) !important;
  }

  .toggle-sidebar #main,
  .toggle-sidebar #footer,
  body.toggle-sidebar #main,
  body.toggle-sidebar #footer {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .toggle-sidebar .sidebar,
  body.toggle-sidebar .sidebar {
    left: -260px;
  }
}

/* Fix for smaller screens - ensure full width */
@media (max-width: 1199px) {
  #main,
  #footer {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .sidebar {
    left: -280px !important;
  }

  .toggle-sidebar .sidebar {
    left: 0 !important;
  }
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #000; /* Black background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  font-family: 'Roboto', sans-serif; /* Professional font */
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

.back-to-top:hover {
  background-color: #222; /* Slightly lighter black shade on hover */
  text-decoration: none; /* Remove underline on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Increase shadow on hover */
}

.back-to-top i {
  font-size: 1.5rem; /* Using rem for scalability */
  color: #fff; /* White icon color */
  line-height: 2.5rem; /* Aligned with button height for vertical centering */
  text-align: center; /* Horizontally center the icon */
  font-weight: bold; /* Bold icon */
}



/* Enhanced Nav Links - Professional Modern Design */
.nav-item .nav-link {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--stafferin-slate-600);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    margin: 0.25rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
}

.nav-item .nav-link:hover {
    color: var(--stafferin-sidebar-icon);
    background: linear-gradient(135deg, var(--stafferin-slate-50) 0%, var(--stafferin-slate-100) 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(113, 128, 150, 0.1);
}

.nav-item .nav-link.active,
.nav-item .nav-link[aria-expanded="true"] {
    color: var(--stafferin-sidebar-icon);
    background: linear-gradient(135deg, var(--stafferin-slate-100) 0%, var(--stafferin-slate-50) 100%);
    border-left: 3px solid var(--stafferin-sidebar-icon);
    font-weight: 700;
}

.nav-item .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-item .nav-link:hover i {
    transform: scale(1.1);
}

/* REMOVED: .text-primary override
   This was overriding Bootstrap's .text-primary with black, breaking the color system.
   Use .text-stafferin-text-primary or .text-dark instead for black text. */
.text-brand-primary {
  color: var(--stafferin-text-primary) !important;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}


.tooltip-custom {
  position: relative;
  display: inline-block;
}

.tooltip-custom .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 250px; /* Set width for consistent wrapping */
  background-color: var(--stafferin-tooltip-bg); /* Light background */
  color: var(--stafferin-tooltip-text); /* Dark text for readability */
  font-size: 14px; /* Adjust font size for readability */
  padding: 10px 15px; /* Increase padding for spacious look */
  border-radius: 8px; /* Rounded corners for modern look */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer shadow for depth */
  overflow-wrap: break-word;
  text-align: center;
}

.tooltip-custom:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-custom .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--stafferin-tooltip-bg) transparent transparent transparent; /* Arrow with light color */
}

    .left-align {
    text-align: right;
}
    .main-cell {
    height: 40px; /* Adjust the height of the td */
    background-color: rgb(255, 255, 255);
    position: relative;
    }
    .small-cell {
    height: 20px; /* Adjust the height of the td */
    background-color: rgb(255, 255, 255);
    position: relative;
    }

.center-strip {
    height: 30px; /* Adjust the height of the strip */
    background-color: #1976D2; /* Color of the strip */
    margin-left: 20%;
    color: rgb(255, 255, 255);
    padding-left: 15px;
}

.center-strip-small {
    width: 40%; /* Adjust the width of the strip */
    height: 15px; /* Adjust the height of the strip */
    color: rgb(255, 255, 255);
}

.late-checkin-strip {
    height: 15px; /* Adjust the height of the strip */
    background-color: #E53935; /* Color of the strip */
    margin-left: 5%;
    color: whitesmoke;
}

.break-strip {
    height: 15px; /* Adjust the height of the strip */
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
        45deg, /* Slanting angle */
        transparent,
        transparent 2px, /* Spacing between lines */
        #43A047 2px,
        #43A047 5px /* Width of the slanting lines */
    );
    margin-left: 22%;
}

.right-strip {
    width: 40%; /* Adjust the width of the strip */
    height: 20px; /* Adjust the height of the strip */
    background-color: #007bff; /* Color of the strip */
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.time-chart-table{ 
    width: 100%;
    background-color: #f5f5f5;
    border-right: 3px solid #e3e3e3;
}

.red-dot {
    width: 10px; /* Adjust the size of the dot */
    height: 10px; /* Adjust the size of the dot */
    background-color: red; /* Color of the dot */
    border-radius: 50%; /* Makes the dot circular */
    margin-left: -5px; /* Positions the dot slightly before the start of the strip */
}

.green-dot {
    width: 10px; /* Adjust the size of the dot */
    height: 10px; /* Adjust the size of the dot */
    background-color: #2E7D32; /* Color of the dot */
    border-radius: 50%; /* Makes the dot circular */
    margin-left: -5px; /* Positions the dot slightly before the start of the strip */
}

.name{
    width: 15%;
    text-align: center;
}

.center-strip-small {
    display: flex;
    height: 30px; /* Adjust the height of the strip */
    justify-content: space-between;
    align-items: center;
}

/* Late check-in section */
.late-checkin {
    height: 22px;
    background-color: #D32F2F; /* Late check-in color */
    color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Break section */
.break {
    height: 22px;
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
        45deg, /* Slanting angle */
        transparent,
        transparent 2px, /* Spacing between lines */
        #43A047 2px,
        #43A047 5px /* Width of the slanting lines */
    );
    color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Check-in section */
.checkin {
    height: 22px;
    background-color: #2E7D32; /* Check-in color */
    color: whitesmoke;
    display: flex;
    justify-content: center;
    align-items: center;
}


.invoice {
    background-color: #f9f9f9;
    border: 1px solid #f5f5f5;
    padding: 15px;
    margin-top: 10px;
}

/* Form control with icon padding - use .form-control-icon class instead */
.form-control-icon {
    padding-right: 40px;
}

.wrapper {
	max-width: 1200px;
	min-width: 700px;
	margin: 0 auto;
	padding: 40px;
}


/* Additional Styles for Check-In, Check-Out, and Break Time Modals */
#checkinModal, #checkoutModal, #breakTimeModal {
    font-weight: 300;
}

#btn-save-checkin, #btn-save-checkout, #btn-save-break-time {
    background-color: #ff6252; /* Red color from your Gantt chart */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
/* ============================================
   FORM OVERRIDES - Stafferin Theme
   Extends Bootstrap's form styles
   ============================================ */

/* Form Label - Custom styling */
.form-label {
    color: var(--stafferin-text-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

/* Form Group - Bootstrap compatible */
.form-group {
    margin-bottom: 15px;
}

/* Form Control - Stafferin theme */
.form-control {
    padding: 10px 15px;
    border: 1px solid var(--stafferin-border-light);
    border-radius: 7px;
    font-size: 16px;
    color: var(--stafferin-text-primary);
    font-family: 'Roboto', sans-serif;
    height: calc(1.5em + .75rem + 2px);
    margin-bottom: .5rem;
}

.form-control:focus {
    border-color: var(--stafferin-input-focus-border);
    box-shadow: 0 0 5px var(--stafferin-input-focus-shadow);
}

/* Form Check - Minor adjustments */
.form-check-input {
    margin-right: 5px;
}

.form-check-label {
    font-size: 14px;
    color: var(--stafferin-text-primary);
    font-family: 'Roboto', sans-serif;
}

/* Form Select - Stafferin theme */
.form-select {
    color: var(--stafferin-text-primary);
    font-family: 'Roboto', sans-serif;
    height: calc(1.5em + .75rem + 2px);
    margin-bottom: .5rem;
}

/* PHP Email Form Styles */
.php-email-form .error-message,
.php-email-form .sent-message,
.php-email-form .loading {
    display: none;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--stafferin-text-primary);
    font-family: 'Roboto', sans-serif;
}

/* Keyframes for Dropdown Animation */
@keyframes dropdown-animate {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* If you want to customize the close button */
.modal-header .btn-close {
    padding: 1rem; /* Ensures a larger clickable area */
    margin: -1rem -1rem 0 0; /* Positions the button correctly in the corner */
    /* Other styles are inherited from Bootstrap, and you shouldn't need to change them */
}

/* Additional styles if you want to ensure the button has more contrast on hover */
.modal-header {
    color: #000; /* Dark color for the icon */
    background-color: #f0f0f0; /* Light gray background */
}

/* Ensure that the focus state is also clear for accessibility */
.modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Bootstrap's default focus shadow */
}

/* Badge styles are defined in header-nav section below */


/* Header font family is now set in the main header styles below */

/* Enhanced Navbar Brand - Professional Logo Style */
.header .navbar-brand {
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    color: #1a202c !important;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.header .navbar-brand:hover {
    color: #718096 !important;
}

/* Ensure all nav links are bold */
.header-nav .nav-link {
    font-weight: 700; /* Bold */
}

/* Badge styles moved to header-nav section */

/* Notification bell icon sizing */
.nav-link.nav-icon .bi-bell,
.header-nav .nav-icon i {
    font-size: 1.4rem;
}


.nav-link {
    display: block;
    padding: 0.5rem 1rem; /* Standard padding for navigation links */
    font-size: 1rem; /* Standard font size for clear readability */
    font-weight: 600; /* Semi-bold font weight for emphasis */
    color: #000000; /* Text color for nav links */
    text-decoration: none; /* No underline for a clean look */
    background: none; /* Transparent background */
    border: 0; /* No border for a flat design style */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Professional, modern font */
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; /* Smooth transitions */
}



/* Generic styles for nav links */
.nav-tabs .nav-link {
    margin-bottom: -1px; /* Assuming the border width is 1px */
    border: 1px solid transparent; /* Border width set to 1px for all sides and transparent */
    border-top-left-radius: 0.25rem; /* Assuming a standard border radius of 0.25rem */
    border-top-right-radius: 0.25rem; /* Assuming a standard border radius of 0.25rem */
}



.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #000000; /* Text color for active nav pill */
    background-color: #ffffff; /* White background for active nav pill */
    border: 0.5px solid #000000; /* Border with a professional color */
    border-radius: 5px; /* Rounded corners for a polished look */
    font-weight: 600; /* Semi-bold font for emphasis */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Smooth transition for changes */
}





/* ============================================
   LEGACY VARIABLES - Mapped to Stafferin Color System
   These variables are kept for backward compatibility
   New code should use --stafferin-* variables directly
   ============================================ */
:root {
  /* Color Scheme - Now references Stafferin Color System */
  --primary-color: var(--stafferin-primary);
  --primary-bg: var(--stafferin-bg-white);
  --primary-light-bg: var(--stafferin-bg-light);
  --primary-light-border: var(--stafferin-border-lighter);
  --primary-border-color: var(--stafferin-border-lighter);
  --success-color: var(--stafferin-success);
  --success-light-color: var(--stafferin-success-light);
  --error-color: var(--stafferin-danger);
  --danger-light-color: var(--stafferin-danger-bg);
  --secondary-light-color: var(--stafferin-gray-200);
  --dark-light-color: var(--stafferin-gray-300);
  --info-light-color: var(--stafferin-info-bg);
  --link-color: var(--stafferin-primary);
  --text-color: var(--stafferin-text-secondary);
  --card-text-color: var(--stafferin-text-secondary);
  --breadcrumb-text-color: #899bbd;
  --breadcrumb-link-color: #899bbd;
  --breadcrumb-item-before-color: #899bbd;
  --breadcrumb-active-color: #51678f;

  /* Typography */
  --font-main: "Open Sans", sans-serif;
  --font-headers: "Nunito", sans-serif;
  --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.25rem;
  --header-font-weight: 600;
  --breadcrumb-font-size: var(--font-size-sm);
  --breadcrumb-font-weight: 600;
  --alert-heading-font-weight: 500;
  --alert-heading-font-family: var(--font-headers);

  /* Spacing and Layout */
  --spacing-base: 1rem;
  --spacing-md: 1.5rem;

  /* Borders and Shadows */
  --border-radius-sm: 0.2rem;
  --border-radius-md: 0.3125rem;
  --border-radius-lg: 0.5rem;
  --border-radius-base: 4px;
  --card-box-shadow: var(--stafferin-card-shadow);
  --card-edge-border-color: var(--stafferin-gray-150);
  --card-edge-bg-color: var(--stafferin-gray-50);
  --card-edge-text-color: var(--stafferin-text-secondary);
  --nav-tabs-border-color: var(--stafferin-border-lighter);
  --nav-tabs-border-width: 2px;

  /* Cards - Compact spacing */
  --card-bg-color: var(--stafferin-card-bg);
  --card-border-color: var(--stafferin-card-border);
  --card-border-radius: 6px;
  --card-padding: 0.625rem;
  --card-title-font-family: 'Poppins', 'Arial', sans-serif;
  --card-title-font-size: 16px;
  --card-title-font-weight: 500;
  --card-title-color: var(--stafferin-text-secondary);
  --card-title-padding: 0.75rem 0;
  --card-title-span-color: #899bbd;
  --card-title-span-font-size: 13px;
  --card-title-span-font-weight: 400;
  --card-body-padding: 0.75rem;
  --card-img-overlay-bg-color: rgba(255, 255, 255, 0.6);
  --card-img-overlay-transition-duration: 0.3s;

  /* Accordion */
  --accordion-btn-active-color: var(--stafferin-primary);
  --accordion-btn-active-bg: #f6f9ff;
  --accordion-btn-active-transition: 0.3s ease-in-out;
  --accordion-btn-flush-padding: 0.9375rem 0;
  --accordion-btn-flush-bg: none;
  --accordion-btn-flush-border: 0;
  --accordion-btn-flush-non-collapsed-color: var(--stafferin-primary);
  --accordion-btn-flush-non-collapsed-shadow: none;
  --accordion-transition: color 0.3s ease;
  --accordion-body-padding: 0 0 0.9375rem 0;
  --accordion-body-text-color: var(--stafferin-gray-700);
  --accordion-body-font-size: var(--font-size-base);
  --accordion-item-border-color: var(--stafferin-border-lighter);
  --accordion-item-border-width: 1px;
  --accordion-item-border-radius: var(--border-radius-md);
  --accordion-item-padding: 1rem;
  --accordion-item-transition-duration: 0.3s;
  --accordion-btn-focus-border-color: var(--stafferin-primary);
  --accordion-btn-focus-border-width: 2px;

  /* Scroll Behavior and Transitions */
  --scroll-behavior: smooth;
  --transition-fast: 0.2s;
  --transition-base: 0.3s;
  --transition-slow: 0.5s;

  /* Breakpoints for Responsive Design */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
  --table-responsive-breakpoint: 768px;
}

.elegant-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    color: #f5f5f5;
    font-weight: 600;
    letter-spacing: 0.02rem;
    text-transform: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease-in-out;
}

.enhanced-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    line-height: 1.2;
    padding: 5px 0;
    border-bottom: 1px solid #efefef;
    display: inline-block;
}

.download-chart-btn {
    background-color: #f5f5f5; /* Green background for visibility and action encouragement */
    color: white; /* White text for contrast */
    padding: 10px 20px; /* Adequate padding for better clickability */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners for a modern look */
    font-size: 1rem; /* Appropriate font size for readability */
    font-weight: 600; /* Slightly bold font for emphasis */
    cursor: pointer; /* Change cursor to indicate clickability */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition for hover effects */
}

.elegant-brand {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Elegant and readable font */
    font-size: 1.5rem; /* Increased font size for prominence */
    color: #f5f5f5; /* Dark gray for a sophisticated look */
    font-weight: 600; /* Medium font weight for a touch of emphasis */
    letter-spacing: 0.05rem; /* Slightly increased letter spacing for an airy feel */
    text-transform: capitalize; /* Capitalize styling for a more formal appearance */
    transition: color 0.3s ease-in-out; /* Smooth transition for hover effects */
}

/* General Heading Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers, "Nunito", sans-serif); 
  margin-top: 0; 
  color: #000000;; /* Updated to black for professional appearance */
}

/* Specific Styles for <h3> */
h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
  cursor: pointer;
  color: #000000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  font-size: var(--font-size-lg, 1.75em);
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-weight: var(--header-font-weight, 600);
}

h2 {
  font-size: 1.35rem;
  font-weight: var(--header-font-weight, 600);
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 0.35rem;
  margin-bottom: 0.625rem;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 8px;
}

h5 {
  font-size: 1rem; 
  font-weight: 400;
  margin-bottom: 0px;
}

h6 {
  font-size: 0.875rem; 
  font-weight: 400;
  margin-bottom: 8px;
}

.error-404 h1 {
  font-size: 10rem; 
  line-height: 9rem; 
}

h2 a {
  color: inherit; 
  text-decoration: none; 
}

@media (max-width: var(--breakpoint-sm, 576px)) {
  h1 {
      font-size: 1.25rem; 
      margin-bottom: 1rem;
  }

  h2 {
      font-size: 1.125rem;
  }
}

/* Alert Heading Styles */
.alert-heading {
  font-weight: var(--alert-heading-font-weight, 500); 
  font-family: var(--alert-heading-font-family, "Poppins", sans-serif); 
  font-size: var(--alert-heading-font-size, 20px); 
  transition: font-size var(--alert-heading-transition-duration, 0.3s) ease; 
}

@media (max-width: 768px) {
  .alert-heading {
      font-size: calc(var(--alert-heading-font-size) - 4px);
  }
}

/* Enhanced Header Styles - Professional Design */
#header.header {
  height: 65px;
  background: linear-gradient(135deg, var(--stafferin-bg-white) 0%, var(--stafferin-header-bg) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--stafferin-sidebar-border) !important;
  transition: all 0.3s ease;
  z-index: 997;
  font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
}

.header .search-form button i {
  color: var(--stafferin-header-icon);
  transition: color 0.3s ease;
}

.header .search-form button i:hover {
  color: var(--stafferin-sidebar-icon);
}

/* Enhanced Header Navigation Styles */
.header .header-nav ul {
  list-style: none;
  gap: 1rem;
}

.header .header-nav .nav-icon {
  font-size: 1.4rem;
  color: var(--stafferin-header-icon) !important;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none !important;
}

.header .header-nav .nav-icon:hover {
  color: var(--stafferin-sidebar-icon) !important;
  background: var(--stafferin-sidebar-hover-bg);
}

.header .header-nav .nav-icon i {
  color: inherit;
}

.header .header-nav .badge-number {
  position: absolute;
  top: -2px;
  right: -2px;
  font-weight: 600;
  font-size: 0.65rem;
  padding: 0.2rem 0.35rem;
  background: linear-gradient(135deg, var(--stafferin-sidebar-icon) 0%, var(--stafferin-header-icon) 100%) !important;
  color: white !important;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(113, 128, 150, 0.3);
  line-height: 1;
}

/* Header Notifications and Messages Styles */
.header-nav .notifications .notification-item,
.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

/* Specific Styles for Notifications */
.header-nav .notifications .notification-item i,
.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  font-size: 24px; /* For icons */
  max-height: 40px; /* For images */
}

.header-nav .notifications .notification-item h4,
.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #f5f5f5;
}

.header-nav .notifications .notification-item p,
.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}
/* Filter Dropdown Styles */
.filter .dropdown-header {
  padding: 8px 15px;
}

.filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #f5f5f5;
  margin-bottom: 0;
  padding: 0;
}

/* Profile Base Styles */
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin-top: 10px;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

/* Enhanced Profile Dropdown Styles */
.header-nav .profile {
  min-width: 280px;
  padding: 0.5rem 0;
  top: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--stafferin-sidebar-border);
}

.header-nav .profile .dropdown-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--stafferin-sidebar-border);
  background: linear-gradient(135deg, var(--stafferin-slate-50) 0%, var(--stafferin-slate-100) 100%);
}

.header-nav .profile .dropdown-header h6 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: #1a202c;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.header-nav .profile .dropdown-header span,
.header-nav .nav-profile span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stafferin-sidebar-icon);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.header-nav .profile .dropdown-item {
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--stafferin-header-icon);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 600;
  border-left: 3px solid transparent;
}

.header-nav .profile .dropdown-item:hover {
  background: linear-gradient(135deg, var(--stafferin-slate-50) 0%, var(--stafferin-slate-100) 100%);
  color: var(--stafferin-sidebar-icon);
  border-left-color: var(--stafferin-sidebar-icon);
  transform: translateX(2px);
}

.header-nav .profile .dropdown-item i {
  margin-right: 0.75rem;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.header-nav .profile .dropdown-item:hover i {
  transform: scale(1.1);
}

/* Profile Navigation Styling */
.header .header-nav .nav-profile {
  color: var(--stafferin-header-icon) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.header .header-nav .nav-profile:hover {
  color: var(--stafferin-sidebar-icon) !important;
}

.header .header-nav .nav-profile span {
  color: var(--stafferin-header-icon) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.header .header-nav .nav-profile:hover span {
  color: var(--stafferin-sidebar-icon) !important;
}

.header .header-nav .nav-profile img {
  border: 2px solid var(--stafferin-sidebar-border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .header-nav .nav-profile:hover img {
  border-color: var(--stafferin-sidebar-icon);
  box-shadow: 0 4px 8px rgba(113, 128, 150, 0.2);
}

/* Enhanced Responsive Media Queries */
@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
    height: 60px;
  }

  .sidebar {
    top: 60px;
    width: 260px;
  }

  #main {
    margin-top: 60px;
    padding: 0.75rem 0.75rem;
  }

  .header-nav ul {
    gap: 0.75rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .footer {
    padding: 0.5rem 0;
  }
}

/* Adjusted from SCSS to CSS */
.profile-overview .row,
.profile-overview .label, .profile-edit label {
  margin-bottom: 20px;
  font-size: 15px;
  color: #000; /* Changed text color to black */
  font-weight: 600;
  font-family: 'Roboto', sans-serif; /* Professional font */
}
/* Profile Images */
.profile-image, #profileImage-profile,
.profile-section, .profile-section-layout {
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

#profileImage-profile {
  width: 100px;
  height: 100px;
  border: 2px solid var(--stafferin-border-light);
  margin-right: 15px;
}

.profile-section {
  width: 85px;
  height: 85px;
  border: 2px solid gray;
}

.profile-section-layout {
  width: 40px;
  height: 40px;
  border: 1px solid gray;
}

.profile-section img, .profile-section-layout img {
  width: 100%;
  height: 100%;
}

.header-nav .nav-profile {
  color: #f5f5f5;
}

.header-nav .nav-profile img {
  max-height: 36px;
}


/* Dropdown Menu Styles */
.dropdown-menu .dropdown-header, 
.dropdown-menu .dropdown-footer {
    text-align: center;
    font-size: 0.9375rem; 
    padding: 0.625rem 1.5625rem; 
    font-weight: 600; 
    color: rgba(0, 0, 0, 0.7); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
}

.dropdown-menu .dropdown-footer {
    border-bottom: none; 
}

.dropdown-menu .dropdown-footer a {
    color: #444;
    text-decoration: underline;
}


.section {
    margin: 10px 0;
    margin-bottom: 10px;
    width: 100%;
}
 
.logo-section {
    margin-bottom: 20px;
}

.comments-section {
    border-top: 2px dashed #e3e3e3;
    padding-top: 15px;
}

/* Dashboard Sections */
.dashboard-body-left,
.dashboard-body-right {
  box-sizing: border-box;
  transition: flex 0.3s ease;
}

.dashboard-body-left {
  flex: 7;
  padding: 0 var(--spacing-md);
}

.dashboard-body-right {
  flex: 3;
  padding: 0 var(--spacing-md);
}

/* Rounded Button Style */
.button-rounded {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #f5f5f5;
}


/* Close Button Styles */
.btn-close {
    background-size: 25%;
    width: auto;
    height: auto;
    background-color: transparent;
}

.edit-btn {
    border-radius: 50%;
    padding: 0.1875rem; /* 3px converted to rem */
    float: right;
}

/* Utility Classes */
.btn-full {
    width: 100%;
}

/* Accessibility Focus States */
.accordion-button:focus,
.btn-close:focus {
    outline: 2px solid #5b9dd9;
    box-shadow: 0 0 0 1px #5b9dd9;
}

/* Accordion Specific Styles */
.accordion-button:not(.collapsed) {
    color: #f5f5f5;
    background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
    padding: 0.9375rem 0; /* 15px converted to rem */
    background: none;
    border: 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .btn,
    .button-base,
    button {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
    }

    .task-creation input[type="text"],
    .task-creation input[type="date"],
    .task-creation select,
    .task-creation button,
    .task-filter button {
        width: 100%; /* Full width on small screens */
        margin-bottom: 10px; /* Space between inputs */
    }

    /* Example: Stacking buttons vertically on small screens */
    .button-group {
        flex-direction: column;
    }
}
.btn-primary {
    color: #fff;
    background-color: #94a3b8; /* Light professional grey background */
    border-color: #94a3b8; /* Matching border color */
    font-weight: bold; /* Bold text */
    font-family: 'Roboto', sans-serif; /* Professional font */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #718096; /* Slightly darker on hover */
    border-color: #718096;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(113, 128, 150, 0.2);
}

.btn-primary:active,
.btn-primary:focus {
    background-color: #64748b;
    border-color: #64748b;
}

/* Footer Styles */
.footer {
    padding: 1rem 0;
    background-color: #f5f5f5;
    text-align: center;
    border-top: 1px solid #e4e4e4;
}

.footer p {
    margin-bottom: 0;
    color: #777;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Base Styles */


/* Main Dashboard Container */
.dashboard-body {
  display: flex;
  flex-wrap: nowrap; /* Prevents flex items from wrapping */
  gap: var(--spacing-md); /* Using spacing variable for consistent gaps */
  width: 100%;
  transition: all 0.3s ease; /* Smooth transition for layout changes */
}

/* Accordion Flush */
.accordion-flush .accordion-body {
  padding: var(--accordion-body-padding);
  color: var(--accordion-body-text-color);
  font-size: var(--accordion-body-font-size);
  transition: color 0.3s ease, font-size 0.3s ease, padding 0.3s ease;
}

/* Collapsed Dashboard Animations */
.dashboard-body.collapsed .dashboard-body-left {
  flex: 10; /* Expanding when collapsed for more space */
}

.dashboard-body.collapsed .dashboard-body-right {
  flex: 0; /* Collapsing the right section */
  overflow: hidden; /* Hiding overflowed content */
}

/* Task Creation Input Styles */
.task-creation input[type="text"],
.task-creation input[type="date"],
.task-creation select {
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Datepicker Navigation Buttons */
.ui-datepicker-next,
.ui-datepicker-prev {
  background-color: white;
  color: black;
  border: 1px solid #f5f5f5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Datepicker Arrows */
.ui-datepicker-next span,
.ui-datepicker-prev span {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px;
  border-color: transparent;
  vertical-align: middle;
  transition: border-color 0.3s ease-in-out;
}

.ui-datepicker-next span {
  border-left-color: black; /* Arrow pointing right */
}

.ui-datepicker-prev span {
  border-right-color: black; /* Arrow pointing left */
}

/* Input and Date Wrapper Styles */
.input-wrapper, .date-wrapper {
  margin-left: 1rem;
  flex: 1;
}

/* Grid Layout for Dates */
#dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  height: calc(100vh - 100px);
}

/* Individual Date Cell Styles */
.date {
  background-color: #fff;
  border: 1px solid #ddd; /* Light border */
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  padding: 10px;
}

.date-cell {
  background-color: #fff; /* White background */
  border: 1px solid #ddd; /* Light border */
  border-radius: 5px;
  padding: 5px;
}


.spinner-border {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
 /*  transform: translate(-50%, -50%);  */
  color: var(--spinner-color); /* Use the CSS variable for the color */
  z-index: 9999; /* Ensures it's above most other elements */
  /* Removed transition since it's not necessary without a hover or active state change */
}

/* Background Colors with Hover and Focus States */

/* Primary Light Styles */
.bg-primary-light {
  background-color: var(--primary-light-bg);
  border-color: var(--primary-light-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Secondary Light Styles */
.bg-secondary-light {
  background-color: var(--secondary-light-bg);
  border-color: var(--secondary-light-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Success Light Styles */
.bg-success-light {
  background-color: var(--success-light-bg);
  border-color: var(--success-light-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Danger Light Styles */
.bg-danger-light {
  background-color: var(--danger-light-bg);
  border-color: var(--danger-light-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Info Light Styles */
.bg-info-light {
  background-color: var(--info-light-bg);
  border-color: var(--info-light-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark Light Styles */
.bg-dark-light {
  background-color: var(--dark-light-bg);
  border-color: var(--dark-light-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Warning Light Styles */
.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Custom Background Colors */
.bg_green {
  background-color: #60c760;
}

.bg_yellow {
  background-color: #a1a11c;
}

.bg_gray {
  background-color: #808080;
}


/* Ensure that your CSS rules continue here, utilizing the defined variables for consistency and scalability */

/* Container Classes for Responsive Design */
@media (min-width: var(--breakpoint-sm)) {
  .container-lg, .container-md, .container-sm, .container {
    max-width: 100%;
  }
}

/* #backdrop {
  position: fixed; Ensures it covers the entire viewport even when scrolling
  top: 0;
  left: 0; Explicitly sets left position to 0
  width: 100%;
  height: 100%;
  z-index: 9999; Keeps it on top of other elements
  background-color: rgba(0, 0, 0, 0.2); Using correct function name 'rgba'
  display: flex; Allows for centering of content
  justify-content: center; Center content horizontally
  align-items: center; Center content vertically
  transition: opacity 0.3s ease-in-out; Adds a transition effect
  pointer-events: none; Disallows interaction with elements below the backdrop
} */

.alert {
  position: fixed; /* Fixed position ensures the alert stays at the top while scrolling */
  top: 0;
  left: 0; /* Explicitly define the left position */
  width: 100%; /* 100% width within the context of the parent element */
  z-index: 9999; /* Keeps the alert above other elements */
  transition: all 0.3s ease-in-out; /* Optional: Adds smooth transitions */
  box-sizing: border-box; /* Makes sure padding and border don't add up to the element size */
}

/* PDF Viewer */
#view_pdf {
  overflow-x: auto; /* Allows horizontal scrolling when needed */
}

/* Notification Item */
.notification-item {
  width: 400px;
  margin: 0.5rem; /* Uses rem for scalable margin */
  box-sizing: border-box; /* Padding and borders are included in width */
}

/* Notification Container */
.notifications {
  height: 400px;
  overflow: auto; /* Adds scrolling when content overflows */
  box-sizing: border-box; /* Padding and borders are included in height */
}


/* Media Query for Container Sizing */
@media (min-width: 400px) {
	.container-lg, .container-md, .container-sm, .container {
		max-width: 98%; /* Allows for a slight margin on larger screens */
		box-sizing: border-box; /* Ensures padding and borders are included in max-width */
	}
}



/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/



/* Root Variables and Global Styles */

/* Link Styling */
a {
  color: #000; /* Black text color */
  text-decoration: none;
  transition: color 0.3s ease-in-out; /* Smooth color transition on hover */
  font-family: 'Roboto', sans-serif; /* Professional font */
}

a:hover {
  color: #555; /* Slightly lighter shade of black on hover */
}
/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/


/* Enhanced Main Content Area */
#main {
  margin-top: 65px;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  background: #f8f9fa;
  min-height: calc(100vh - 65px);
}

/* Responsive Padding for Smaller Screens */
@media (max-width: 1199px) {
  #main {
    padding: 1.25rem; /* Converted to rem for better scalability */
  }
}

/* Icon inside the Back to Top Button */

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown Menus */
.dropdown-menu {
  border-radius: 0.25rem; /* Converted 4px to rem for better scalability */
  padding: 0.625rem 0; /* Converted 10px to rem for better scalability */
  animation: dropdown-animate 0.2s both; /* Combined animation shorthand */
  border: none; /* Removed border */
  box-shadow: 0 0.3125rem 1.875rem rgba(82, 63, 105, 0.2); /* Added shadow for depth, converted px to rem */
}

/* Optional: Define the animation if not defined elsewhere */
@keyframes dropdown-animate {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown Divider */
.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

/* Dropdown Items */
.dropdown-menu .dropdown-item {
  font-size: 0.875rem; /* 14px to rem */
  padding: 0.625rem 0.9375rem; /* 10px and 15px to rem */
  transition: background-color 0.3s ease; /* Specified what properties to transition */
}

/* Dropdown Item Icons */
.dropdown-menu .dropdown-item i {
  margin-right: 0.625rem; /* 10px to rem */
  font-size: 1.125rem; /* 18px to rem */
  line-height: 1; /* Reset to inherit line-height */
}

@media (min-width: 768px) {
  /* Dropdown Arrow (Desktop view) */
  .dropdown-menu-arrow::before {
    content: "";
    width: 0.8125rem;   /* Converted 13px to rem for better scalability */
    height: 0.8125rem;  /* Converted 13px to rem for better scalability */
    background: #fff;
    position: absolute;
    top: -0.4375rem;    /* Converted -7px to rem for better scalability */
    right: 1.25rem;     /* Converted 20px to rem for better scalability */
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Optional: added shadow for better visibility */
  }
}
.accordion-item {
  /* Use the variable for the border color */
  border: var(--accordion-item-border-width) solid var(--accordion-item-border-color);

  /* Add rounded corners */
  border-radius: var(--accordion-item-border-radius);

  /* Add some padding for content */
  padding: var(--accordion-item-padding);

  /* Add transition for smoothness */
  transition: all var(--accordion-item-transition-duration);
}

.breadcrumb {
  font-size: var(--breadcrumb-font-size);  /* Use variable for font size */
  font-family: var(--breadcrumb-font-family);  /* Use variable for font family */
  color: var(--breadcrumb-text-color);  /* Use variable for text color */
  font-weight: var(--breadcrumb-font-weight);  /* Use variable for font weight */
}

.breadcrumb a {
  color: var(--breadcrumb-link-color);  /* Use variable for link color */
  transition: color var(--breadcrumb-link-transition-duration);  /* Use variable for transition duration */
}

.breadcrumb .breadcrumb-item::before {
  color: var(--breadcrumb-item-before-color);  /* Use variable for color */
}



/* Define variables for active breadcrumb styles */

/* Styles for active breadcrumb item */
.breadcrumb .active {
  color: var(--breadcrumb-active-color);  /* Use variable for color */
  font-weight: var(--breadcrumb-active-font-weight);  /* Use variable for font-weight */
}

/* Bordered Tabs */

/* Define variables for nav-tabs bordered style for easy customization */

/* Styles for nav-tabs with a border bottom */
.nav-tabs-bordered {
  border-bottom: var(--nav-tabs-border-width) solid var(--nav-tabs-border-color); /* Use variables for border properties */
}


/* Base styles for tabs with borders */
.nav-tabs-bordered {
  margin-bottom: 10px; /* Add some space between the tabs and the content */
}

/* Enhanced Navigation Tabs Styling - Dark Black Text */
.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #000000 !important;
  padding: 10px 20px;
  transition: all 0.3s ease;
  font-weight: 700;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background: transparent;
  border-radius: 8px 8px 0 0;
}

.nav-tabs-bordered .nav-link:hover {
  color: var(--stafferin-sidebar-icon) !important;
  background: var(--stafferin-sidebar-hover-bg);
}

/* Styling for the active tab */
.nav-tabs-bordered .nav-link.active {
  background-color: var(--stafferin-bg-white) !important;
  color: var(--stafferin-sidebar-icon) !important;
  border-bottom: 3px solid var(--stafferin-sidebar-icon) !important;
  font-weight: 700;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
/* Base styles for the logo container */
.logo {
  line-height: 1;  /* Align text and images tightly */
}

/* Logo styling for larger screens */
@media (min-width: 1200px) {
  .logo {
    width: 280px;  /* Set a fixed width on large screens */
  }
}

/* Styling for the image inside the logo */
.logo img {
  max-height: 26px;  /* Restrict the maximum height */
  margin-right: 6px;  /* Add some space between the image and text */
}

/* Styling for the text inside the logo */
.logo span {
  font-size: 26px;           /* Set font size */
  font-weight: 700;          /* Make the font bold */
  color: #f5f5f5;            /* Set the text color */
  font-family: "Nunito", sans-serif;  /* Specify the font family */
}


/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.filter {
  position: absolute;
  right: 0px;
  top: 15px;
}
.filter .icon {
  color: #f5f5f5;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}
.filter .dropdown-item {
  padding: 8px 15px;
}
/* Activity */
.activity {
  font-size: 14px;
  color: #333; /* Dark neutral text color for readability */
  background-color: #ffffff; /* Light background for contrast */
  padding: 15px; /* Overall padding for the section */
  border-radius: 8px; /* Rounded corners for a softer look */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.activity .activity-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--stafferin-border-light); /* Subtle divider between items */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

.activity .activity-item:hover {
  background-color: #f0f4f8; /* Slightly darker background on hover */
}

.activity .activity-item .activity-label {
  flex-shrink: 0;
  width: 180px; /* Adjusted width for alignment */
  font-weight: bold;
  color: #007bff; /* Professional blue for the date */
  text-align: left;
}

.activity .activity-item .activity-content {
  flex-grow: 1;
  color: #555; /* Lighter text color for the description */
  text-align: left;
  margin-left: 20px; /* Space between label and content */
}

.activity .activity-item .activity-content span {
  font-weight: bold; /* Highlighting important parts */
  color: #007bff; /* Consistent blue for highlighted text */
}
/* Pay-Roll css */

.container-payroll {
    max-width: 600px;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
main {
    padding: 1rem 2rem;
}

.content-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
 
.navigation-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= CONTACT SECTION ================= */

.contact .info-box {
    padding: 28px 30px;
}

.contact .info-box i {
    font-size: 38px;
    line-height: 0;
    color: #f5f5f5;
}

.contact .info-box h3 {
    font-size: 20px;
    color: #f5f5f5;
    font-weight: 700;
    margin: 20px 0 10px;
}

.contact .info-box p {
    padding: 0;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

/* ================= FORM MESSAGES ================= */

.contact .error-message {
    color: #ffffff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    margin-top: 10px;
}

.contact .sent-message {
    color: #ffffff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    margin-top: 10px;
}

.contact .loading {
    background: #ffffff;
    text-align: center;
    padding: 15px;
    margin-top: 10px;
}

.contact .loading::before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eeeeee;
    animation: animate-loading 1s linear infinite;
}

/* ================= LOADING ANIMATION ================= */

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ================= FOOTER ================= */

.footer,
.modal-footer {
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid #cddfff;
    transition: all 0.3s ease;
}

.footer .copyright,
.footer .credits,
.modal-footer .copyright,
.modal-footer .credits {
    text-align: center;
    color: #f5f5f5;
}

.footer .credits,
.modal-footer .credits {
    padding-top: 5px;
    font-size: 13px;
}


.modal-footer {
    border-top-color: #e5e5e5;
}

.dropdown-menu .dropdown-footer {
    border-bottom: none;
}

.export-btn-wrapper {
    flex: 0 0 10%;
    display: flex;
    justify-content: flex-end;
}



#main {
  margin-top: 60px;
  padding: 1.25rem 1.875rem;
  transition: 
    padding 0.3s ease-in-out,
    margin-top 0.3s ease-in-out;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  /* Dropdown Arrow (Desktop view) */
  .dropdown-menu-arrow::before {
    content: "";
    width: 0.8125rem;   /* Converted 13px to rem for scalability */
    height: 0.8125rem;  /* Converted 13px to rem for scalability */
    background: #fff;
    position: absolute;
    top: -0.4375rem;    /* Converted -7px to rem for scalability */
    right: 1.25rem;     /* Converted 20px to rem for scalability */
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Added shadow for visual enhancement */
  }
}

@media (max-width: 1199px) {
  #main {
    padding: 1.25rem; /* Converted 20px to rem for better scalability */
  }
}

.dropdown-menu .dropdown-item i {
  margin-right: 0.625rem; /* Converted 10px to rem for scalability */
  font-size: 1.125rem; /* Converted 18px to rem for consistency */
  line-height: 1; /* Reset to inherit line-height or maintain natural line-height for the icon */
}

.dropdown-menu .dropdown-item {
  font-size: 0.875rem; /* Converted 14px to rem for better scalability */
  padding: 0.625rem 0.9375rem; /* Converted 10px and 15px to rem for consistency */
  transition: background-color 0.3s ease; /* Specifying properties to transition can be more performant */
}

.dropdown-menu .dropdown-footer a {
  color: #444; /* Shortened hex code for brevity */
  text-decoration: underline;
}

.dropdown-menu {
  border-radius: 0.25rem; /* Using rem for scalability */
  padding: 0.625rem 0;
  animation: dropdown-animate 0.2s both; 
  border: none; 
  box-shadow: 0 0.3125rem 1.875rem rgba(82, 63, 105, 0.2); 
}
.accordion-item {
  /* Use the variable for the border with fallback values */
  border: var(--accordion-item-border-width, 1px) solid var(--accordion-item-border-color, #f5f5f5); 

  /* Add rounded corners with a fallback value */
  border-radius: var(--accordion-item-border-radius, 0);

  /* Add some padding for content with a fallback value */
  padding: var(--accordion-item-padding, 0);

  /* Add transition for smoothness with a fallback value */
  transition: all var(--accordion-item-transition-duration, 0.3s);
}


.breadcrumb {
  /* Use variables with fallback values for better maintainability */
  font-size: var(--breadcrumb-font-size, 0.875rem); /* fallback to 14px */
  font-family: var(--breadcrumb-font-family, "Nunito", sans-serif);
  color: var(--breadcrumb-text-color, #899bbd);
  font-weight: var(--breadcrumb-font-weight, 600);

  /* Add transitions for smoother interactions if necessary */
  transition: font-size 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
}

.breadcrumb a {
  /* Use variable with fallback value for better maintainability */
  color: var(--breadcrumb-link-color, #899bbd);
  
  /* Use variable for transition with fallback value */
  transition: color var(--breadcrumb-link-transition-duration, 0.3s);
}

.breadcrumb .breadcrumb-item::before {
  /* Use variable with fallback value for better maintainability */
  color: var(--breadcrumb-item-before-color, #899bbd);
}

.breadcrumb .active {
  /* Use variables with fallback values for maintainability and consistency */
  color: var(--breadcrumb-active-color, #51678f);
  font-weight: var(--breadcrumb-active-font-weight, 600);
}

.content-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Nav tabs bordered styles are defined above - removing duplicates */

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #f5f5f5;
  font-family: "Nunito", sans-serif;
}

.logo {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 24px;
    font-weight: bold;
    width: 280px;
    line-height: 1;
}

.logo img {
    max-height: 26px;
    width: 50px;
    margin-right: 15px;
}


/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #f5f5f5;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}
@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}



.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #f5f5f5;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}
.edit-btn {
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;  /* Making it round */
    color: #ffffff;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
    margin-right: 180px;  /* Adds space to the right side of the button, effectively moving it a bit to the left */
    transition: background-color 0.3s;
    float: right;
}


/* Hidden input styles */
.hidden-input {
    display: none;
}


.credits {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

.credits a {
    color: #f5f5f5;
    transition: color 0.3s;
}

.employee-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
}




.info-row {
    margin-top: 10px;
}

.info-label {
    margin-right: 10px;
    font-weight: bold;
}

.entry-item {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    border: 1px solid #e3e3e3;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.entry-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 8px;
}

.entry-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}
.navigation-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.comments-list li {
    background-color: #fafafa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
    border-left: 3px solid #ddd;
}

.comment-input {
    border: 1px solid #f5f5f5;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}


.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

@-webkit-keyframes dropdown-animate {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Dashboard */
.filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.filter .icon {
  color: #f5f5f5;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.filter .dropdown-item {
  padding: 8px 15px;
}

.activity {
  font-size: 14px;
}

.activity .activity-item .activite-label {
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}




/* Assuming you'll toggle a class when the sidebar collapses */


@media (min-width: 400px) {
	.container-lg, .container-md, .container-sm, .container {
		max-width: 100%;
	}
}

.dropdown-menu .dropdown-divider {
    color: #a5c5fe;
    margin: 0;
}

@-webkit-keyframes dropdown-animate {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.filter {
    position: absolute;
    right: 0px;
    top: 15px;
}
.filter .icon {
    color: #f5f5f5;
    padding-right: 20px;
    padding-bottom: 5px;
    transition: 0.3s;
    font-size: 16px;
}
.filter .dropdown-item {
    padding: 8px 15px;
}

/* Activity */
.activity {
    font-size: 14px;
}
.activity .activity-item .activite-label {
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 64px;
}
.activity .activity-item .activite-label::before {
    content: "";
    position: absolute;
    right: -11px;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: #eceefe;
}
.activity .activity-item .activity-badge {
    margin-top: 3px;
    z-index: 1;
    font-size: 11px;
    line-height: 0;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #fff;
    flex-grow: 0;
}
.activity .activity-item .activity-content {
    padding-left: 10px;
    padding-bottom: 20px;
}
.activity .activity-item:first-child .activite-label::before {
    top: 5px;
}
.activity .activity-item:last-child .activity-content {
    padding-bottom: 0;
}

/* More Dashboard Styles... (same structure as above) */


/* Variable declarations (Assuming from previous code) */



/* Alert Component */
.alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.notification-item {
    width: 400px;
    margin: 0.5rem;
}

/* BASE STYLES AND LAYOUTS */

.container {
    max-width: 100%;
    padding: 0 20px; /* Optional: To give some spacing on the sides */
}

.d-flex {
    display: flex;
    align-items: right;
}

.clearfix {
    width: 100%;
}

.wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

.modal-message {
    margin-bottom: 15px;
}


.input-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    flex-grow: 1;
    transition: all 0.2s ease-in-out;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-item {
    flex: none;
}

/* STYLINGS */

#month {
    flex-grow: 1;
    text-align: center;
    color: #0f0f0f;
    font-size: 24px;
    margin: 0 20px;
}

.schedule {
    width: 100%;
    background-color: #4a6fa5; /* A more muted professional blue */
    color: #ffffff; /* Keep the text color white for good contrast */
    padding: 8px; /* Increased padding for better spacing */
    text-align: center;
    font-size: 14px; /* Slightly larger font for better readability */
    margin-top: 8px; /* Increased margin for better spacing between elements */
    border-radius: 6px; /* Smoother border radius for a more modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-weight: 500; /* Medium font weight for a more professional feel */
}



#view_pdf {
    overflow-x: auto;
}

main {
    padding: 1rem 2rem;
}



/* Input Fields */
.input-field {
    flex: 1;
    margin-right: 20px;
    padding: 10px;
    border: 1px solid #D9D9D9;
    border-radius: 5px;
}

/* ===========================================
   VIEWPORT-FIXED MODAL - Modal stays in viewport
   Scrollable when content is tall
   =========================================== */

/* Modal backdrop */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1040 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal-backdrop.show {
    opacity: 0 !important;
}

/* Modal container - fixed to viewport, scrollable */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1050 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
}

/* Modal dialog - centered with margin */
.modal-dialog {
    margin: 1.75rem auto !important;
    pointer-events: none;
}

/* Modal content styling */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

/* Modal body */
.modal-body {
    overflow-y: visible !important;
}

/* Modal header and footer */
.modal-header,
.modal-footer {
    flex-shrink: 0 !important;
}

/* Confirmation Modal */
#confirmation-modal-open {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}



/* Incident report setting */



 .container {
 
    background-color: #ffffff;
      
}
 
  
 

.d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Common styles for spacing */
.availability-icon,
.availability-info,
.assigned-shift-info {
  margin-bottom: 10px; /* Adds space between the items */
  display: block; /* Each item on its own line */
  padding: 5px 10px; /* Padding inside the items for space around the text */
  font-family: 'Arial', sans-serif; /* Ensuring a fallback font */
  font-size: 14px; /* Readable text size */
  text-align: center;
  border: 1px solid #CCCCCC; /* Border color for elements */
  border-radius: 4px; /* Rounded corners */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Smooth transitions for interactive elements */
}

/* Specific styles for availability-icon */
.availability-icon {
  color: #f5f5f5; /* Icon color */
  background-color: #F3F3F3; /* Icon background color */
  font-size: 16px; /* Slightly larger font size for icons */
}

/* Specific styles for availability-info */
.availability-info {
  background-color: #4CAF50; /* Visual cue for availability */
  color: #FFFFFF; /* White text for better contrast */
  cursor: pointer; /* Indicates interactivity */
}

/* Specific styles for assigned-shift-info */
.assigned-shift-info {
  background-color: #f5f5f5; /* Primary background color */
  
  cursor: pointer; /* Indicates interactivity */
}

/* Ensure proper alignment and spacing for the icons */
.availability-icon::before {
  margin-right: 5px; /* Space between icon and text */
  /* If you're using a content-based icon, like with pseudo-elements, define content here */
}

/* Adjustments for mobile responsiveness */
@media (max-width: 768px) {
  .availability-icon,
  .availability-info,
  .assigned-shift-info {
    font-size: 12px; /* Smaller font size for mobile devices */
    padding: 3px 7px; /* Smaller padding for mobile devices */
  }
}

/* Loading Spinner Backdrop - Covers full viewport with transparency */
#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1045;
    background-color: rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Ensure backdrop doesn't block clicks when hidden */
}

/* When backdrop is shown via JavaScript */
#backdrop[style*="display: block"],
#backdrop[style*="display: flex"] {
    display: flex !important;
    pointer-events: auto; /* Allow interaction when shown */
}

/* Ensure datepickers and date range pickers appear above ALL overlays and modals */
.daterangepicker,
.datepicker,
.datepicker-dropdown,
.ui-datepicker,
.picker,
.picker__holder,
.picker__frame {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Prevent datepicker containers from being blocked */
.daterangepicker * {
    pointer-events: auto !important;
}


.bottom-bar-item:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  width: 220px;
  background-color: #5f5f7d;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -110px;
  transition: opacity 0.3s, visibility 0.3s;
}

.custom-multi-select {
    height: auto;
}

.select-info-btn {
    height: auto;
    top: 17%;
}

.color-white {
	color: white;
}

.bg-color-green {
	background-color: green;
}

.td_checkbox {
	font-size: 25px;
	margin: 25px;
}

.display-flex {
	display: flex;
}


.day-column {
	width: 200px;
	padding: 10px;
	border: 1px solid #ccc;
	margin-right: 10px;
	text-align: center;
}

.day-column:last-child {
	margin-right: 0;
}

.shift-item {
	margin-bottom: 10px;
	padding: 5px;
	background-color: rgb(128, 128, 0);
	border-radius: 4px;
	color: white
}

.calender-day-body {
	height: 65px;
	overflow-x: hidden;
	overflow-y: auto;
}

.ts-dropdown {
	z-index: 994 !important;
}

.ts-control .item, .ts-control .items-placeholder {
	padding-top: 18px !important;
}

.delete-div-task {
	float: right;	
}
.checkin-btn {
    width: 120px; /* Slightly wider for better click area */
    padding: 8px 12px; /* Adjusted padding for a balanced look */
    border: 2px solid #007bff; /* Professional blue border */
    border-radius: 8px; /* Rounded edges for a modern appearance */
    background-color: #fff; /* Clean white background */
    color: #007bff; /* Text matches the border color */
    font-family: 'Arial', sans-serif; /* Professional font */
    font-size: 14px; /* Standard font size for readability */
    font-weight: 600; /* Slightly bold text for emphasis */
    text-transform: uppercase; /* Uppercase text for formality */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.checkin-btn:hover {
    background-color: #4ea4ff; /* Change background on hover */
    color: #fff; /* Contrast text on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    transform: translateY(-2px); /* Lift effect on hover */
}

.checkin-btn:active {
    transform: translateY(0); /* Remove lift effect on click */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Reduced shadow on click */
}
	
	/* invoice creation  */
.invoice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border: 1px solid #ddd;
}

.grid-row {
  display: contents; /* Each row flows naturally within the grid */
}

.grid-header {
  font-weight: bold;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.grid-row > span {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.text-end {
  text-align: right;
}

.fw-bold {
  font-weight: bold;
}

.grid-span-3 {
  grid-column: span 3;
}

 /* Team Chat */
.employee-name-box {
    height: 280px;
    overflow-y: auto;
}

.employee-selected {
    background-color: #f8f8f8;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.message-item {
    padding: 2px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    max-width: 75%;
}

.sent {
    background-color: #d1e7ff;
    text-align: right;
    margin-left: auto;
    width: max-content;
}

.received {
    background-color: #f8f9fa;
    text-align: left;
    margin-right: auto;
    width: max-content;
}


 /* Timeline custom CSS */
      .timeline {
        position: relative;
        margin: 2rem 0;
        list-style: none;
        padding: 0;
      }
      .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50px;
        width: 4px;
        background: linear-gradient(to bottom, #757575, #9e9e9e);
      }
      .timeline-item {
        position: relative;
        margin: 1.5rem 0;
        padding-left: 120px;
      }
      .timeline-item::after {
        content: "";
        display: table;
        clear: both;
      }
      .timeline-icon {
        position: absolute;
        left: 20px;
        top: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #fff;
        border: 4px solid #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        transition: transform 0.3s ease;
      }
      .timeline-item:hover .timeline-icon {
        transform: scale(1.1);
      }
      .timeline-content {
        background: #fff;
        border-radius: 8px;
        padding: 1rem 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }
      .timeline-item:hover .timeline-content {
        transform: translateY(-3px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
      }
      .timeline-content h4 {
        margin-bottom: 0.4rem;
        font-size: 1.3rem;
      }
      .timeline-content p {
        margin: 0.2rem 0;
        font-size: 1.1rem;
      }
      .timeline-item.scanned .timeline-content {
        background: #e8f5e9;
        border-left: 4px solid #2e7d32;
      }
      .timeline-item.scanned .timeline-icon {
        border-color: #2e7d32;
        color: #2e7d32;
      }
      .timeline-item.missed .timeline-content {
        background: #ffebee;
        border-left: 4px solid #c62828;
      }
      .timeline-item.missed .timeline-icon {
        border-color: #c62828;
        color: #c62828;
      }

.shift-bulk-block { 
	position: relative; display: inline-block; width: 100%; 
	}
  .bulk-checkbox {
    position: absolute;
    top: 4px;
    left: 4px;
    display: none;
  }
  .bulk-mode .bulk-checkbox {
    display: block;
  }
/* Clean Logout Button Styling */
.sidebar .nav-item .nav-link[href="/login"],
.sidebar .nav-item .nav-link.text-danger {
  color: #e53e3e;
  margin-top: 0.5rem;
  border: 1px solid #feb2b2;
  background: #fff5f5;
  font-weight: 600;
}

.sidebar .nav-item .nav-link[href="/login"]:hover,
.sidebar .nav-item .nav-link.text-danger:hover {
  color: white;
  background: #e53e3e;
  border-color: #e53e3e;
  box-shadow: 0 2px 8px rgba(229, 62, 62, 0.2);
  transform: translateX(2px);
}

.sidebar .nav-item .nav-link[href="/login"] i,
.sidebar .nav-item .nav-link.text-danger i {
  color: #e53e3e;
}

.sidebar .nav-item .nav-link[href="/login"]:hover i,
.sidebar .nav-item .nav-link.text-danger:hover i {
  color: white;
}

/* Enhanced Dropdown Menu General Styles */
.dropdown-menu {
  border-radius: 12px;
  padding: 0.5rem;
  animation: dropdown-animate 0.3s ease;
  border: 1px solid var(--stafferin-sidebar-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: white;
}

/* Enhanced Notification Dropdown */
.header-nav .notifications {
  min-width: 360px;
  max-height: 400px;
  overflow-y: auto;
}

.header-nav .notifications .notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--stafferin-sidebar-border);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.header-nav .notifications .notification-item:hover {
  background: linear-gradient(135deg, var(--stafferin-slate-50) 0%, var(--stafferin-slate-100) 100%);
  border-left-color: var(--stafferin-sidebar-icon);
  transform: translateX(2px);
}

.header-nav .notifications .notification-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.25rem;
}

.header-nav .notifications .notification-item p {
  font-size: 0.85rem;
  color: var(--stafferin-sidebar-icon);
  margin: 0;
}

/* Enhanced Language Search Styling */
.translate-search-wrap input {
  border: 2px solid var(--stafferin-sidebar-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.translate-search-wrap input:focus {
  border-color: var(--stafferin-sidebar-icon);
  box-shadow: 0 0 0 3px rgba(113, 128, 150, 0.1);
  outline: none;
}

/* Sidebar Section Divider */
.sidebar .nav-item + .nav-item.mt-3 {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--stafferin-sidebar-border);
}

/* Header Layout Fixes */
.header .d-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header .d-flex.align-items-center {
  height: 100%;
}

/* Language Search Container */
.header .translate-search-wrap {
  margin: 0;
}

/* Header Right Side Navigation */
.header .header-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
}

/* Ensure proper spacing for all header children */
.header > * {
  margin: 0;
  padding: 0;
}

/* Fix any text color issues in header */
.header,
.header * {
  text-decoration: none;
}

/* Fix for Bootstrap badge primary background */
.badge.bg-primary {
  background: linear-gradient(135deg, var(--stafferin-sidebar-icon) 0%, var(--stafferin-header-icon) 100%) !important;
  color: white;
  font-weight: 600;
}

/* Additional Header Alignment Fixes */
.header .navbar-brand {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.header .btn.btn-link {
  text-decoration: none;
  padding: 0.4rem 0.5rem;
}

/* Language Search Input Styling */
.header .translate-search-wrap input {
  border: 1px solid var(--stafferin-sidebar-border) !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.75rem !important;
  font-size: 0.85rem !important;
  transition: all 0.3s ease;
  background: white;
  color: var(--stafferin-header-icon);
}

.header .translate-search-wrap input:focus {
  border-color: var(--stafferin-sidebar-icon) !important;
  box-shadow: 0 0 0 3px rgba(113, 128, 150, 0.1) !important;
  outline: none !important;
}

.header .translate-search-wrap input::placeholder {
  color: #a0aec0;
}

/* Fix header spacing and alignment */
.header .d-flex {
  align-items: center;
}

.header .gap-2 {
  gap: 0.5rem !important;
}

/* Ensure proper text color throughout header */
.header .text-dark {
  color: #1a202c !important;
}

/* Fix dropdown toggle arrow color */
.header .dropdown-toggle {
  color: var(--stafferin-header-icon) !important;
}

.header .dropdown-toggle:hover {
  color: var(--stafferin-sidebar-icon) !important;
}

/* Additional Header Fixes for Bootstrap Compatibility */
.header.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 997;
}

/* Ensure header items don't wrap */
.header > .d-flex,
.header > .header-nav,
.header > div {
  flex-shrink: 0;
}

/* Fix notification dropdown positioning */
.header .dropdown-menu {
  margin-top: 0.5rem;
}

/* Ensure icon sizes are consistent */
.header i.bi {
  font-size: inherit;
  line-height: 1;
}

/* Profile dropdown menu arrow color fix */
.header .nav-item.dropdown .dropdown-toggle::after {
  color: var(--stafferin-header-icon);
}

/* Enhanced Card Visibility - Button styles removed to prevent global override */

/* Card text visibility */
.card,
.content-box {
  color: #1a202c !important;
}

.card-title,
.card-header {
  color: #1a202c !important;
  font-weight: 700;
}

/* Form labels - keeping for visibility but may need to be scoped if issues arise */
label,
.form-label {
  color: #1a202c;
  font-weight: 600;
}

/* Ensure icons in header and sidebar navigation inherit color */
.header .nav-link i,
.sidebar .nav-link i,
.header .btn i,
.sidebar .btn i {
  color: inherit;
}

/* Fix for light colored elements */
.text-muted {
  color: var(--stafferin-sidebar-icon) !important;
}

/* Specific nav styling for header and sidebar only - not global */
.header .nav-link,
.sidebar .nav-link,
.header .nav-item > a,
.sidebar .nav-item > a {
  color: var(--stafferin-header-icon) !important;
  font-weight: 600;
}

.header .nav-link:hover,
.sidebar .nav-link:hover,
.header .nav-item > a:hover,
.sidebar .nav-item > a:hover {
  color: var(--stafferin-sidebar-icon) !important;
}

.header .nav-link.active,
.sidebar .nav-link.active,
.header .nav-item > a.active,
.sidebar .nav-item > a.active {
  color: var(--stafferin-sidebar-icon) !important;
  font-weight: 700;
}

/* Fix main content area width and spacing */
#main {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure content cards are visible with proper contrast */
.card,
.admin-dash-card,
.content-box {
  background: white !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Text color inheritance - removed overly broad selector */

/* Removed overly broad button styles that were affecting all buttons globally */

/* Force full width for main content area */
#main {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Override Bootstrap container max-width */
#main .container,
#main .container-fluid,
#main .container-lg,
#main .container-md,
#main .container-sm {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Ensure all child elements can expand */
#main > *,
#main .row,
#main .col {
  max-width: 100%;
}

/* Remove centering margins that might limit width */
#main .wrapper {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1rem !important;
}

/* Fix for content boxes and cards */
#main .content-box,
#main .card,
#main .admin-dash-card {
  max-width: 100%;
  width: 100%;
}

/* Ensure proper width when sidebar is open */
@media (min-width: 1200px) {
  body:not(.toggle-sidebar) #main {
    margin-left: 300px !important;
    width: calc(100% - 300px) !important;
  }
  
  body.toggle-sidebar #main,
  .toggle-sidebar #main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* For smaller screens, always full width */
@media (max-width: 1199px) {
  #main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Additional full-width fixes for specific elements */
.pagetitle,
.section,
.dashboard-body,
.dashboard-body-left,
.dashboard-body-right {
  max-width: 100% !important;
  width: 100%;
}

/* Remove any centering that limits width */
body, html {
  width: 100%;
  overflow-x: hidden;
}

/* Ensure main content spans full available width */
#main > * {
  box-sizing: border-box;
}

/* Fix for specific flex containers - not all d-flex elements */
#main > .d-flex,
#main > .row {
  width: 100%;
  flex-wrap: wrap;
}

/* Removed overly broad max-width override that was affecting buttons */

/* Specific fix for patrol tour page and similar pages */
body #main .container-fluid {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* CRITICAL: Override all Bootstrap container max-widths */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  max-width: 100% !important;
}

/* Ensure main takes full available space */
#main.container,
#main .container {
  max-width: 100% !important;
  width: 100% !important;
}

/* Remove any padding that might cause width issues */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Body when modal is open - prevent background scrolling */
/* Note: Only overflow:hidden is needed. Removed height/position/padding-right
   as they caused scroll-to-top issue when opening modals */
body.modal-open,
html body.modal-open {
  overflow: hidden !important;
}

/* Ensure header stays full width */
.header {
  width: 100% !important;
  max-width: 100% !important;
}

/* Specific button styles for header and sidebar only - not global */
.header .btn,
.sidebar .btn {
  transition: all 0.3s ease;
}

.header .btn:hover,
.sidebar .btn:hover {
  transform: translateY(-1px);
}

/* Header toggle button specific styling */
.header .toggle-sidebar-btn.btn {
  background: transparent;
  border: none;
}

/* Sidebar button specific styling */
.sidebar .nav-link {
  text-decoration: none;
}

/* Fix button text visibility - ensure dark text for all buttons except primary */
.btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info) {
  color: #1a202c !important;
}

/* Ensure outline buttons have dark text */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-light {
  color: #1a202c !important;
}

/* Lighter, more pleasant hover states for outline buttons */
.btn-outline-primary:hover {
  background-color: var(--stafferin-slate-100) !important;
  border-color: var(--stafferin-sidebar-icon) !important;
  color: var(--stafferin-sidebar-icon) !important;
}

.btn-outline-secondary:hover {
  background-color: var(--stafferin-slate-50) !important;
  border-color: var(--stafferin-sidebar-icon) !important;
  color: var(--stafferin-header-icon) !important;
}

.btn-outline-dark:hover {
  background-color: var(--stafferin-slate-50) !important;
  border-color: var(--stafferin-header-icon) !important;
  color: #1a202c !important;
}

/* Fix for icon buttons and link buttons in main content */
#main .btn,
#main button,
#main a.btn {
  color: #1a202c !important;
}

#main .btn-primary,
#main button.btn-primary,
#main a.btn-primary {
  color: #ffffff !important;
}

/* Pleasant active/focus states for all buttons */
.btn:active,
.btn.active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Ensure focus states are visible but not too harsh */
.btn:focus,
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(113, 128, 150, 0.15) !important;
  outline: none !important;
}

/* Make all regular button hover states lighter and more pleasant */
.btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):hover {
  background-color: var(--stafferin-slate-50) !important;
  border-color: var(--stafferin-slate-300) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Professional Sidebar Section Dividers */
.sidebar .nav-item + .nav-item {
  position: relative;
}

.sidebar .nav-item.mt-3,
.sidebar .nav-item.mt-4 {
  margin-top: 1rem !important;
  padding-top: 1rem;
}

.sidebar .nav-item.mt-3::before,
.sidebar .nav-item.mt-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stafferin-sidebar-border), transparent);
}

/* Sidebar Active Link Indicator */
.sidebar .nav-link.active {
  color: var(--stafferin-sidebar-icon) !important;
  background: linear-gradient(135deg, var(--stafferin-slate-100) 0%, var(--stafferin-sidebar-border) 100%);
  border-left-color: var(--stafferin-sidebar-icon);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(113, 128, 150, 0.08);
}

.sidebar .nav-link.active i {
  color: var(--stafferin-sidebar-icon) !important;
}

/* Sidebar Nav Item Spacing */
.sidebar .sidebar-nav {
  padding: 0;
}

.sidebar .sidebar-nav > .nav-item:first-child {
  margin-top: 0.5rem;
}

/* Professional Sidebar Typography */
.sidebar .nav-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a0aec0;
  padding: 1rem 1.25rem 0.5rem;
  margin-top: 1rem;
}

/* Sidebar Hover Effects Enhancement */
.sidebar .nav-link {
  text-decoration: none;
  cursor: pointer;
}

.sidebar .nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(113, 128, 150, 0.1);
}

/* Clean Sidebar Bottom Spacing */
.sidebar .sidebar-nav {
  padding-bottom: 2rem;
}

/* Lighter Button Colors */
.btn-danger {
  background-color: #fc8181 !important;
  border-color: #fc8181 !important;
}

.btn-danger:hover {
  background-color: #f56565 !important;
  border-color: #f56565 !important;
}

.btn-success {
  background-color: #68d391 !important;
  border-color: #68d391 !important;
}

.btn-success:hover {
  background-color: #48bb78 !important;
  border-color: #48bb78 !important;
}

.swal2-shown {
	transform: none !important;
}

/* =============================================================================
   INCIDENT REPORT SETTING PAGE - Scoped styles (won't affect other pages)
   Matching admin-dashboard.html color scheme
   ============================================================================= */

/* Card styling */
.incident-report-setting .card {
  border: 1px solid var(--stafferin-sidebar-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.incident-report-setting .card-body {
  padding: 2rem;
}

/* Form header */
.incident-report-setting h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--stafferin-sidebar-text);
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Site dropdown - matching admin-dash-select */
.incident-report-setting .form-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--stafferin-sidebar-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--stafferin-sidebar-text);
  background: white;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
}

.incident-report-setting .form-select:focus {
  outline: none;
  border-color: #5a67d8;
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.15);
}

/* Form floating label */
.incident-report-setting .form-floating > label {
  color: var(--stafferin-sidebar-icon);
  font-weight: 500;
}

/* Section label */
.incident-report-setting .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stafferin-sidebar-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Field selection badges - soft professional style */
/* Unselected state (bg-secondary) */
.incident-report-setting .badge.bg-secondary {
  background: white !important;
  border: 2px solid var(--stafferin-sidebar-border) !important;
  color: var(--stafferin-header-icon) !important;
  font-weight: 500;
  padding: 0.6rem 1rem !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.incident-report-setting .badge.bg-secondary:hover {
  background: var(--stafferin-slate-50) !important;
  border-color: var(--stafferin-slate-300) !important;
  color: var(--stafferin-sidebar-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Selected state (bg-success) */
.incident-report-setting .badge.bg-success {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f4ff 100%) !important;
  border: 2px solid #5a67d8 !important;
  color: #5a67d8 !important;
  font-weight: 600;
  padding: 0.6rem 1rem !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.incident-report-setting .badge.bg-success:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #e8f0fe 100%) !important;
  border-color: #4c51bf !important;
  color: #4c51bf !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(90, 103, 216, 0.2);
}

/* Icons inside badges */
.incident-report-setting .badge i {
  font-size: 0.8rem;
}

.incident-report-setting .badge.bg-secondary i {
  color: #a0aec0 !important;
}

.incident-report-setting .badge.bg-success i {
  color: #5a67d8 !important;
}

/* Save button - soft blue gradient matching admin dashboard */
.incident-report-setting .btn-primary {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  border: none;
  color: var(--stafferin-sidebar-text);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(161, 196, 253, 0.3);
}

.incident-report-setting .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(161, 196, 253, 0.4);
  background: linear-gradient(135deg, #89b4fa 0%, #a8dcf8 100%);
  color: #1a202c;
}

.incident-report-setting .btn-primary:active,
.incident-report-setting .btn-primary:focus {
  background: linear-gradient(135deg, #7aa8f5 0%, #9ad0f0 100%);
  box-shadow: 0 2px 8px rgba(161, 196, 253, 0.5);
  color: #1a202c;
}

/* Icons inside buttons */
.incident-report-setting .btn i {
  font-size: 0.85rem;
}

/* Plus icon on field buttons */
.incident-report-setting .btn-outline-secondary .bi-plus-lg {
  color: #a0aec0;
  transition: color 0.2s ease;
}

.incident-report-setting .btn-outline-secondary:hover .bi-plus-lg {
  color: #5a67d8;
}

/*--------------------------------------------------------------
# Compact Navigation Tabs - Space Optimization
--------------------------------------------------------------*/

/* ===== MAIN CONTENT AREA - Reduce outer padding ===== */
.container-fluid.mt-4 {
  margin-top: 0.5rem !important;
  padding: 0 !important;
}

/* ===== NAV TABS CONTAINER - Compact wrapper ===== */
.bg-white.shadow-sm.rounded.p-2.mb-3 {
  padding: 0.25rem 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.d-flex.justify-content-between.align-items-center.flex-wrap {
  gap: 0 !important;
}

/* ===== NAV TABS - Single row horizontal layout ===== */
ul.nav.nav-fill,
ul.nav.nav-fill.flex-grow-1,
ul.nav.nav-fill.gap-2 {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-grow: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 0.25rem !important;
  padding: 0.25rem 0 !important;
  margin: 0 !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 transparent;
}

ul.nav.nav-fill::-webkit-scrollbar {
  height: 3px;
}

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

ul.nav.nav-fill::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

/* ===== NAV ITEMS - Prevent fill behavior ===== */
ul.nav.nav-fill > li.nav-item {
  flex: 0 0 auto !important;
  min-width: auto !important;
  white-space: nowrap !important;
}

/* ===== NAV LINKS - Compact padding (override px-4 py-3) ===== */
ul.nav.nav-fill .nav-item .nav-link,
ul.nav.nav-fill .nav-item a.nav-link,
.nav.nav-fill .nav-link.px-4.py-3,
.nav.nav-fill a.nav-link[class*="px-4"][class*="py-3"] {
  padding: 0.375rem 0.75rem !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
  border-radius: 4px !important;
}

/* ===== NAV LINK ICONS - Smaller size (override inline 1.2rem and fs-5) ===== */
ul.nav.nav-fill .nav-item .nav-link i,
ul.nav.nav-fill .nav-item .nav-link i[style*="font-size"],
ul.nav.nav-fill .nav-item .nav-link i.fs-5,
ul.nav.nav-fill .nav-item .nav-link i.fs-4,
.nav.nav-fill .nav-link i,
.nav.nav-fill .nav-link i.fs-5,
.nav.nav-fill .nav-link i.fs-4 {
  font-size: 0.9rem !important;
  margin-right: 0.25rem !important;
}

/* ===== ACTIVE NAV LINK ===== */
ul.nav.nav-fill .nav-link.active {
  background: var(--stafferin-slate-100) !important;
  color: var(--stafferin-sidebar-text) !important;
}

/* ===== PAGE HEADER SECTION ===== */
.row.mb-4 {
  margin-bottom: 0.5rem !important;
}

.d-flex.justify-content-between.align-items-center.bg-white.p-3.border-bottom {
  padding: 0.5rem 0.75rem !important;
}

h3.tooltip-custom,
h3#documentation-header,
h3.fw-bold.mb-0 {
  font-size: 1rem !important;
  margin: 0 !important;
}

/* ===== FILTER SECTION ===== */
.container.mt-3 {
  margin-top: 0.5rem !important;
  padding: 0 !important;
}

.container.mt-3 .row.g-3 {
  --bs-gutter-x: 0.5rem !important;
  --bs-gutter-y: 0.5rem !important;
}

/* ===== FORM CONTROLS - Compact ===== */
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(2.5rem + 2px) !important;
  padding: 0.75rem 0.5rem 0.25rem !important;
  font-size: 0.8rem !important;
}

.form-floating > label {
  padding: 0.625rem 0.5rem !important;
  font-size: 0.75rem !important;
}

/* ===== TABLES - Compact ===== */
.table-responsive {
  margin-top: 0.5rem !important;
}

.table th,
.table td {
  padding: 0.375rem 0.5rem !important;
  font-size: 0.8rem !important;
}

.table thead th {
  background: #fff !important;
  color: #495057 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  border-bottom: 1px solid #e9ecef !important;
  padding: 1rem !important;
}

/* ===== PAGINATION - Compact ===== */
.pagination_div {
  margin-top: 0.5rem !important;
}

.pagination.pagination-sm {
  padding: 0.25rem !important;
}

.pagination .page-link {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
}

/* ===== EXPORT BUTTONS ===== */
.d-flex.align-items-center.gap-2 {
  gap: 0.25rem !important;
  margin-top: 0.375rem !important;
}

/* ===== ROW MARGINS ===== */
.row.mb-3 {
  margin-bottom: 0.375rem !important;
}

/* ===== RESPONSIVE - Tablet ===== */
@media (max-width: 992px) {
  ul.nav.nav-fill .nav-item .nav-link,
  .nav.nav-fill .nav-link {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  ul.nav.nav-fill .nav-item .nav-link i,
  .nav.nav-fill .nav-link i {
    font-size: 0.85rem !important;
    margin-right: 0.2rem !important;
  }
}

/* ===== RESPONSIVE - Mobile ===== */
@media (max-width: 768px) {
  ul.nav.nav-fill .nav-item .nav-link span,
  .nav.nav-fill .nav-link span {
    display: none !important;
  }

  ul.nav.nav-fill .nav-item .nav-link,
  .nav.nav-fill .nav-link {
    padding: 0.375rem !important;
    min-width: 36px !important;
    justify-content: center !important;
  }

  ul.nav.nav-fill .nav-item .nav-link i,
  .nav.nav-fill .nav-link i {
    margin-right: 0 !important;
    font-size: 1rem !important;
  }

  h3.tooltip-custom,
  h3#documentation-header {
    font-size: 0.9rem !important;
  }
}

/* ===== MODALS - Compact ===== */
.modal-body {
  padding: 0.75rem !important;
}

.modal-header,
.modal-footer {
  padding: 0.5rem 0.75rem !important;
}

/* ===== VISITOR MANAGEMENT MODALS - Scrollable when content exceeds viewport ===== */
#visiting-violation-modal .modal-dialog,
#viewOrderModal .modal-dialog,
#editOrderModal .modal-dialog {
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

#visiting-violation-modal .modal-content,
#viewOrderModal .modal-content,
#editOrderModal .modal-content {
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#visiting-violation-modal .modal-body,
#viewOrderModal .modal-body,
#editOrderModal .modal-body {
  overflow-y: auto !important;
  flex: 1 1 auto;
}

/* Ensure visitor modals are scrollable on smaller screens */
@media (max-height: 600px) {
  #visiting-violation-modal .modal-dialog,
  #viewOrderModal .modal-dialog,
  #editOrderModal .modal-dialog {
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto !important;
  }

  #visiting-violation-modal .modal-content,
  #viewOrderModal .modal-content,
  #editOrderModal .modal-content {
    max-height: calc(100vh - 1rem);
  }
}

/* ===== ISSUE ADMIN MODALS - Scrollable when content exceeds viewport ===== */
#issueModal .modal-dialog,
#workOrderDetailsModal .modal-dialog {
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

#issueModal .modal-content,
#workOrderDetailsModal .modal-content {
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#issueModal .modal-body,
#workOrderDetailsModal .modal-body {
  overflow-y: auto !important;
  flex: 1 1 auto;
}

/* Ensure issue modals are scrollable on smaller screens */
@media (max-height: 600px) {
  #issueModal .modal-dialog,
  #workOrderDetailsModal .modal-dialog {
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto !important;
  }

  #issueModal .modal-content,
  #workOrderDetailsModal .modal-content {
    max-height: calc(100vh - 1rem);
  }
}

/* =============================================================================
   COMMON EMBEDDED STYLES - Consolidated from HTML files
   These classes were previously defined inline in 83+ HTML files
   ============================================================================= */

/* Nav Pills Custom - Modern navigation pills */
.nav-pills-custom .nav-link {
  color: var(--stafferin-text-muted, #6c757d);
  background-color: var(--stafferin-header-bg, #f8f9fa);
  border: 1px solid var(--stafferin-gray-200, #e9ecef);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.nav-pills-custom .nav-link:hover {
  background-color: var(--stafferin-gray-200, #e9ecef);
  color: var(--stafferin-gray-600, #495057);
  transform: translateY(-2px);
}

.nav-pills-custom .nav-link.active {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--stafferin-bg-white, #fff);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Nav Tabs Custom - Modern tab navigation */
.nav-tabs-custom .nav-link {
  color: var(--stafferin-text-muted, #6c757d);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 50px;
  margin-right: 0.5rem;
  background: none;
  cursor: pointer;
}

.nav-tabs-custom .nav-link:hover {
  background-color: var(--stafferin-header-bg, #f8f9fa);
  color: var(--stafferin-primary, #667eea);
}

.nav-tabs-custom .nav-link.active {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--stafferin-bg-white, #fff);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Stat Card Icon */
.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Filter - Modern filter card */
.card-filter {
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  background: var(--stafferin-bg-white, #fff);
}

/* Table Modern - Enhanced table styling */
.table-modern {
  border-radius: 12px;
  overflow: hidden;
}

.table-modern thead th {
  background: #fff;
  color: #495057;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border: none;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem;
}

.table-modern tbody tr {
  transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
  background-color: #f8f9ff;
  transform: scale(1.01);
}

/* Gradient Buttons */
.btn-gradient-primary {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  border: none;
  color: var(--stafferin-bg-white, #fff);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  color: var(--stafferin-bg-white, #fff);
}

.btn-gradient-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  color: var(--stafferin-bg-white, #fff);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-gradient-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
  color: var(--stafferin-bg-white, #fff);
}

.btn-gradient-danger {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  border: none;
  color: var(--stafferin-bg-white, #fff);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-gradient-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
  color: var(--stafferin-bg-white, #fff);
}

.btn-gradient-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: var(--stafferin-bg-white, #fff);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-gradient-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  color: var(--stafferin-bg-white, #fff);
}

/* Page Header Gradient Text */
.page-header {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Section Header */
.card-section-header {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--stafferin-bg-white, #fff);
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.card-section-header-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: var(--stafferin-bg-white, #fff);
  padding: 1rem;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

/* Status Badge Styles */
.status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.status-badge-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
}

.status-badge-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.status-badge-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

.status-badge-primary {
  background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
  color: #004085;
}

/* Filter Card Compact */
.filter-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background: var(--stafferin-bg-white, #fff);
  padding: 1rem;
}

/* Action Button Group */
.action-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Header Gradient Banner */
.header-gradient {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--stafferin-bg-white, #fff);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* Modern Form Focus States */
.form-control-modern:focus,
.form-select-modern:focus {
  border-color: var(--stafferin-primary, #667eea);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Icon Box */
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--stafferin-bg-white, #fff);
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--stafferin-text-muted, #6c757d);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Data Card */
.data-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: var(--stafferin-bg-white, #fff);
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Stat Card */
.stat-card {
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--stafferin-bg-white, #fff);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--stafferin-primary, #667eea);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--stafferin-text-muted, #6c757d);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pagination Modern */
.pagination-modern .page-link {
  border: none;
  color: var(--stafferin-primary, #667eea);
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-modern .page-link:hover {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--stafferin-bg-white, #fff);
}

/* Modal Header Gradient */
.modal-header-gradient {
  background: var(--stafferin-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: var(--stafferin-bg-white, #fff);
}

.modal-header-gradient .modal-title {
  color: var(--stafferin-bg-white, #fff);
}

.modal-header-gradient .btn-close {
  filter: brightness(0) invert(1);
}

/* Badge Status */
.badge-status {
  padding: 0.5em 1em;
  border-radius: 50px;
  font-weight: 500;
}

/* Filter Group Styles */
.filter-group {
  background: var(--stafferin-header-bg, #f8f9fa);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--stafferin-gray-200, #e9ecef);
}

.filter-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--stafferin-primary, #667eea);
  margin-bottom: 0.75rem;
}

.filter-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.filter-input-group .form-control {
  font-size: 0.875rem;
  border: none;
  background: var(--stafferin-bg-white, #fff);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  flex: 1;
}

.filter-input-group .input-label {
  font-size: 0.75rem;
  color: var(--stafferin-text-muted, #6c757d);
  font-weight: 600;
  white-space: nowrap;
}

.filter-input-group .separator {
  color: #adb5bd;
  font-weight: 600;
}

/* ============================================
   GLOBAL ACTION BUTTONS
   Unified button design for table actions
   ============================================ */

.td-actions {
  text-align: center;
  width: auto;
  min-width: 100px;
}

.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--stafferin-slate-200, #e2e8f0);
  border-radius: 8px;
  color: var(--stafferin-slate-500, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action i {
  font-size: 1rem;
  transition: all 0.15s ease;
}

.btn-action:hover {
  border-color: var(--stafferin-slate-300, #cbd5e1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-action:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  border-color: var(--stafferin-primary, #667eea);
}

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

/* Edit Button */
.btn-action-edit {
  color: var(--stafferin-primary, #667eea);
}

.btn-action-edit:hover:not(:disabled) {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #4f46e5;
}

.btn-action-edit:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Delete Button */
.btn-action-delete {
  color: #f59e0b;
}

.btn-action-delete i {
  color: #f59e0b;
}

.btn-action-delete:hover:not(:disabled) {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #d97706;
}

.btn-action-delete:hover:not(:disabled) i {
  color: #d97706;
  transform: scale(1.1);
}

/* View Button */
.btn-action-view {
  color: var(--stafferin-slate-500, #64748b);
}

.btn-action-view:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: var(--stafferin-slate-300, #cbd5e1);
  color: #334155;
}

.btn-action-view:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Activate Button */
.btn-action-activate {
  color: #10b981;
}

.btn-action-activate:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #059669;
}

.btn-action-activate:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Approve Button */
.btn-action-approve {
  color: #10b981;
}

.btn-action-approve:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #059669;
}

.btn-action-approve:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Reject Button */
.btn-action-reject {
  color: #ef4444;
}

.btn-action-reject:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.btn-action-reject:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Reset Button */
.btn-action-reset {
  color: #f59e0b;
}

.btn-action-reset:hover:not(:disabled) {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #d97706;
}

.btn-action-reset:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Download Button */
.btn-action-download {
  color: #10b981;
}

.btn-action-download:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #059669;
}

.btn-action-download:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* QR Code Button */
.btn-action-qr {
  color: var(--stafferin-slate-500, #64748b);
}

.btn-action-qr:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: var(--stafferin-slate-300, #cbd5e1);
  color: #334155;
}

.btn-action-qr:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Assign Button */
.btn-action-assign {
  color: #3b82f6;
}

.btn-action-assign:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.btn-action-assign:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Complete Button */
.btn-action-complete {
  color: #10b981;
}

.btn-action-complete:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #059669;
}

.btn-action-complete:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Work Order Button */
.btn-action-workorder {
  color: #6366f1;
}

.btn-action-workorder:hover:not(:disabled) {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #4f46e5;
}

.btn-action-workorder:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Fill Button */
.btn-action-fill {
  color: #3b82f6;
}

.btn-action-fill:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.btn-action-fill:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Cancel Button */
.btn-action-cancel {
  color: #f59e0b;
}

.btn-action-cancel:hover:not(:disabled) {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #d97706;
}

.btn-action-cancel:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Badge Button (for visitor management) */
.btn-action-badge {
  color: #06b6d4;
}

.btn-action-badge:hover:not(:disabled) {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0891b2;
}

.btn-action-badge:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Checkout Button (for visitor management) */
.btn-action-checkout {
  color: #10b981;
}

.btn-action-checkout:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #059669;
}

.btn-action-checkout:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Payment button (info/cyan) */
.btn-action-payment {
  color: #0891b2;
}

.btn-action-payment:hover:not(:disabled) {
  background: #ecfeff;
  border-color: #22d3ee;
  color: #0891b2;
}

.btn-action-payment:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Email button (warning/amber) */
.btn-action-email {
  color: #d97706;
}

.btn-action-email:hover:not(:disabled) {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #d97706;
}

.btn-action-email:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Open Shift button (warning/amber) */
.btn-action-openshift {
  color: #d97706;
}

.btn-action-openshift:hover:not(:disabled) {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #d97706;
}

.btn-action-openshift:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Start button (success/green) */
.btn-action-start {
  color: #10b981;
}

.btn-action-start:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #059669;
}

.btn-action-start:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Pause button (warning/amber) */
.btn-action-pause {
  color: #d97706;
}

.btn-action-pause:hover:not(:disabled) {
  background: #fffbeb;
  border-color: #fbbf24;
  color: #d97706;
}

.btn-action-pause:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* Resume button (primary/blue) */
.btn-action-resume {
  color: #3b82f6;
}

.btn-action-resume:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.btn-action-resume:hover:not(:disabled) i {
  transform: scale(1.1);
}

/* ===== Modern Navigation Tabs - Professional Underline Design ===== */
.nav-tabs-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.nav-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-tab-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  margin-bottom: -1px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
}

.nav-tab-item i {
  font-size: 1rem;
  color: #94a3b8;
  opacity: 1;
  transition: color 0.2s ease;
}

.nav-tab-item:hover {
  color: #334155;
  background: transparent;
}

.nav-tab-item:hover i {
  color: #64748b;
}

.nav-tab-item.active {
  color: #0f172a;
  background: transparent;
  border-bottom: 2px solid #6366f1;
  font-weight: 600;
  box-shadow: none;
}

.nav-tab-item.active i {
  color: #6366f1;
  opacity: 1;
}

/* Responsive adjustments for nav tabs */
@media (max-width: 992px) {
  .nav-tabs-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-tabs-wrapper {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .nav-tab-item {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  .nav-tab-item i {
    font-size: 0.875rem;
  }
}

