:root {
  --primary-color: #18b56a;
  --primary-color-light: #e6f7ee;
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 80px;
  --header-height: 70px;
  --blue-progress: #3772ff;
  --red-progress: #ff3737;
  --yellow-progress: #ffb800;
  --green-progress: #18b56a;
  --transition-speed: 0.3s;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* Month indicator */
.month-indicator {
  margin-bottom: 20px;
}

.month-indicator span {
  font-size: 14px;
  color: #777;
  font-weight: 500;
}

/* Date Selection - Updated for right alignment */
.date-selection {
  display: flex;
  align-items: center;
 
  margin-bottom: 25px;
  position: absolute;
  right: 20px;
  top: 180px;
}

.year-selector, .month-selector {
  display: flex;
 
 
}

.year-selector label, .month-selector label {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  padding: 10px;
}

/* Updated dropdown styles to match Figma */
.select-dropdown {
  position: relative;
  min-width: 100px;
}

.select-dropdown .form-select {
  padding: 8px 15px;
  border-radius: 50px;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 14px;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.select-dropdown::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  pointer-events: none;
}

/* Attendance Cards Section */
.attendance-cards-container {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}

.attendance-cards-wrapper {
  width: 100%;
  overflow-x: hidden;
  padding: 10px 0;
}

.attendance-cards {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
}

.attendance-cards::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.attendance-card {
  min-width: 254px;
  width: 254px;
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

/* Updated hover effect to match Figma design */
.attendance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color);
  color: white;
}

.attendance-card:hover .employee-position,
.attendance-card:hover .metric-label {
  color: rgba(255, 255, 255, 0.8);
}

.attendance-card:hover .metric-value.highlight {
  color: var(--primary-color);
  background-color: white;
}

.attendance-card:hover .attendance-details-btn {
  border-color: white;
  color: var(--primary-color);
  background-color:var(--primary-color) ;
}

.attendance-card:hover .attendance-details-btn:hover {
  background-color: white;
  color: var(--primary-color);
}

.attendance-card.active {
  background-color: var(--primary-color);
  color: white;
}


.employee-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-details {
  margin-bottom: 20px;
  width: 100%;
}

.employee-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}

.employee-position {
  font-size: 14px;
  color: #777;
  margin: 0;
}

.attendance-card.active .employee-position {
  color: rgba(255, 255, 255, 0.8);
}

.attendance-metrics {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48%;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.metric-value.highlight {
  color: var(--primary-color);
  background-color: #e6f7ee;
  border-radius: 50px;
  padding: 5px 15px;
  display: inline-block;
}

.attendance-card.active .metric-value.highlight {
  color: var(--primary-color);
  background-color: white;
}

.metric-label {
  font-size: 14px;
  color: #777;
}

.attendance-card.active .metric-label {
  color: rgba(255, 255, 255, 0.8);
}

.attendance-details-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.attendance-card.active .attendance-details-btn {
  border-color: white;
  color: white;
}

.attendance-card.active .attendance-details-btn:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.pagination-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-arrow:hover {
  background-color: #f5f5f5;
}

.pagination-page {
  font-size: 16px;
  font-weight: 500;
}

/* Attendance List Section */
.attendance-list-section {
  margin-top: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.attendance-table-container {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.attendance-table th,
.attendance-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.attendance-table th {
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.attendance-table td {
  font-size: 14px;
}

.employee-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.employee-table-details {
  display: flex;
  flex-direction: column;
}

.employee-table-name {
  font-weight: 500;
}

.employee-table-position {
  font-size: 12px;
  color: #777;
}

.department-cell {
  display: flex;
  flex-direction: column;
}

.department-team {
  font-size: 12px;
  color: #777;
}

.date-cell {
  display: flex;
  flex-direction: column;
}

.date-day {
  font-size: 12px;
  color: #777;
}

.on-duty-cell {
  color: var(--primary-color);
}

.on-duty-badge {
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

.view-btn {
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

/* Table Pagination */
.table-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  border-top: 1px solid #f0f0f0;
}

.entries-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
  position: relative;
}

.entries-selector span:first-child {
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 4px;
  margin-right: 5px;
}

.entries-selector i {
  font-size: 12px;
  color: #777;
  cursor: pointer;
}

.entries-text {
  font-size: 14px;
  color: #666;
}

.page-navigation {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-text {
  font-size: 14px;
  color: #666;
}

/* Dark Mode Styles for main content */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .attendance-card,
body.dark-mode .attendance-table-container,
body.dark-mode .table-pagination-container {
  background-color: #1e1e1e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .select-dropdown .form-select {
  background-color: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode .pagination-arrow {
  background-color: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .attendance-table th,
body.dark-mode .attendance-table td {
  border-bottom-color: #333;
  color: #e0e0e0;
}

body.dark-mode .attendance-table th {
  color: #aaa;
}

body.dark-mode .employee-table-position,
body.dark-mode .department-team,
body.dark-mode .date-day,
body.dark-mode .metric-label,
body.dark-mode .employee-position {
  color: #888;
}

body.dark-mode .view-btn {
  background-color: #2d2d2d;
}

/* Filter button in mobile view */
.filters-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.filters-button i {
  font-size: 14px;
}

.filters-button:hover {
  background-color: #f5f5f5;
}

/* Responsive Styles for main content */
@media (max-width: 768px) {
  /* Match the mobile layout from the Figma design */
  h1 {
    font-size: 32px !important;
    margin: 20px 0 !important;
  }
  
  /* Reposition date selection for mobile */
  .date-selection {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .month-selector, .year-selector {
    width: calc(50% - 10px);
   
  }
  
  /* Mobile card styles - smaller, stacked in 2x2 grid */
  .attendance-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
  }
  
  .attendance-card {
    min-width: auto;
    width: 100%;
    padding: 15px;
  }
  
  .employee-avatar {
    width: 55px;
    height: 55px;
    margin-bottom: 10px;
  }
  
  .employee-name {
    font-size: 14px;
  }
  
  .employee-position {
    font-size: 12px;
  }
  
  .metric-value {
    font-size: 20px;
  }
  
  .metric-label {
    font-size: 12px;
  }
  
  .attendance-details-btn {
    font-size: 12px;
    padding: 8px;
  }
  
  /* Table adjustments for mobile */
  .section-title {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .attendance-table-container {
    overflow-x: auto;
  }
  
  .attendance-table th, 
  .attendance-table td {
    padding: 10px;
    white-space: nowrap;
  }
  
  .employee-table-avatar {
    width: 30px;
    height: 30px;
  }
  
  .table-pagination-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .entries-selector, .page-navigation {
    width: 100%;
    justify-content: center;
  }
  
  /* Filter button in mobile view */
  .filters-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  /* For very small devices */
  .attendance-cards {
    grid-template-columns: 1fr;
  }
  
  .date-selection {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .month-selector, .year-selector {
    width: 100%;
  }
}

/* Desktop-specific adjustments to match Figma */
@media (min-width: 769px) {
  /* Main page title */
  h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  
  /* Card adjustments for the slider view */
  .attendance-cards-wrapper {
    overflow-x: hidden;
  }
  
  .attendance-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
  }
  
  .attendance-card {
    flex: 0 0 254px;
  }
  
  /* Table adjustments for desktop */
  .attendance-table th {
    font-weight: 600;
    padding: 15px 20px;
  }
  
  .attendance-table td {
    padding: 15px 20px;
  }
  
  /* View button styling */
  .view-btn {
    font-weight: 500;
    padding: 5px 20px;
  }
}

/* Mobile Responsiveness Fixes - Only for screens 768px and below */
/* Main content container */
body {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Content wrapper */
@media (max-width: 768px) {
  /* Ensure all content is properly contained and centered */
  body {
    padding: 0;
    margin: 0;
  }
  
  /* Main page title */
  h1 {
    padding-left: 15px;
    margin-left: 0 !important;
  }
  
  /* Month indicator and date selection */
  .month-indicator {
    padding-left: 15px;
  }
  
  .date-selection {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    width: 100%;
   
  }
  
  /* Cards container fixes */
  .attendance-cards-container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    width: auto;
    box-sizing: border-box;
  }
  
  /* Grid layout for attendance cards on mobile */
  .attendance-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
    overflow-x: visible;
    margin-left: 0;
  }
  
  /* Card sizing and styling for mobile */
  .attendance-card {
    min-width: auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Employee avatar resizing for mobile */
  .employee-avatar {
    width: 55px;
    height: 55px;
  }
  
  /* Font size adjustments for mobile */
  .employee-name {
    font-size: 14px;
  }
  
  .employee-position {
    font-size: 12px;
  }
  
  .metric-value {
    font-size: 20px;
  }
  
  .metric-label {
    font-size: 12px;
  }
  
  .attendance-details-btn {
    font-size: 12px;
    padding: 8px;
  }
  
  /* Attendance list section fixes */
  .attendance-list-section {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    width: auto;
    box-sizing: border-box;
  }
  
  /* Table container scrolling for mobile */
  .attendance-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    width: 100%;
  }
  
  /* Table pagination layout for mobile */
  .table-pagination-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .entries-selector, .page-navigation {
    width: 100%;
    justify-content: center;
    display: flex;
  }
  
  /* Show filters button on mobile */
  .filters-container {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
  }
}

/* Very small devices (phones under 480px) */
@media (max-width: 480px) {
  .attendance-cards {
    grid-template-columns: 1fr; /* Single column layout */
  }
  
  .date-selection {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .month-selector, .year-selector {
    width: 100%;
    margin-bottom: 10px;
  }
}



/* Mobile Responsive Styles - for screens 768px and below */
@media (max-width: 768px) {
  /* General container and layout adjustments */
  body {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* Ensure all content is properly centered and uses full width */
  .main-content {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Fix positioning issues with all main containers */
  h1, 
  .month-indicator, 
  .date-selection,
  .attendance-cards-container, 
  .attendance-list-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
  }
  
  /* Main header */
   /* Main header - Fix visibility */
   .heading-attendence {
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 84px 0 10px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    color: #000 !important; /* Ensure text is visible */
    z-index: 10 !important; /* Ensure it's not hidden behind other elements */
    position: relative !important;
  }
  
  /* Month indicator */
  .month-indicator {
    margin-bottom: 15px;
  }
  
  .month-indicator span {
    font-size: 14px;
    color: #777;
    font-weight: 500;
  }
  
  /* Hide desktop date selectors on mobile */
  .date-selection {
    display: none !important;
  }
  
  /* Filters button styling */
  .filters-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-right: 0;
    
  }
  
  .filters-button i {
    font-size: 14px;
  }
  
  /* Cards container fixes */
  .attendance-cards-container {
    margin: 0 0 20px 0;
    box-sizing: border-box;
    width: 100% !important;
  }
  
  .attendance-cards-wrapper {
    padding: 0;
    width: 100%;
  }
  
  /* Grid layout for attendance cards - always 2 columns */
  .attendance-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 0 !important;
    overflow-x: visible !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Card styling for mobile - match Figma */
  .attendance-card {
    width: 100% !important;
    min-width: unset !important;
    padding: 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  
  /* Employee avatar size */
  .employee-avatar {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 10px !important;
  }
  
  /* Employee name styling */
  .employee-name {
    font-size: 15px !important;
    margin-bottom: 3px !important;
  }
  
  /* Employee position styling */
  .employee-position {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }
  
  /* Metrics styling */
  .attendance-metrics {
    margin-bottom: 15px !important;
  }
  
  .metric-value {
    font-size: 18px !important;
    font-weight: 600 !important;
  }
  
  .metric-label {
    font-size: 12px !important;
  }
  
 
  

/* Hide the original text first */
.attendance-details-btn {
  font-size: 0 !important;
}

/* Then add the new text */
.attendance-details-btn::before {
  content: "Profile Details" !important;
  font-size: 13px !important;
  display: inline-block !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

 
  
  .attendance-details-btn span {
    opacity: 0;
  }
  
  /* Attendance List section */
  .attendance-list-section {
    margin: 30px 0 0 0 !important;
    width: 100% !important;
  }
  
  /* Section title with Date dropdown */
  .section-title {
    font-size: 22px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  /* Add date dropdown button to Attendance List title */
  .section-title::after {
    content: "";
    display: inline-block;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 13px;
    color: #333;
    margin-left: auto;
  }
  
  /* Table container */
  .attendance-table-container {
    border-radius: 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 15px !important;
    width: 100% !important;
  }
  
  /* Make the table scrollable horizontally */
  .attendance-table {
    min-width: 650px !important;
  }
  
  /* Table cells */
  .attendance-table th,
  .attendance-table td {
    padding: 12px 10px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }
  
  /* Employee cell in table */
  .employee-name-cell {
    min-width: 160px !important;
  }
  
  .employee-table-avatar {
    width: 35px !important;
    height: 35px !important;
  }
  
  .employee-table-name {
    font-size: 13px !important;
  }
  
  .employee-table-position {
    font-size: 12px !important;
  }
  
  /* On duty badge */
  .on-duty-badge {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
  
  /* Table pagination */
  .table-pagination-container {
    padding: 12px 15px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  
  /* Entries selector */
  .entries-selector {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
  }
  
  .entries-selector span:first-child {
    padding: 3px 8px !important;
  }
  
  /* Pagination */
  .pagination-container {
    margin-top: 15px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .pagination-arrow {
    width: 32px !important;
    height: 32px !important;
  }

  /* Fix for active card styling to match Figma */
  .attendance-card.active {
    background-color: var(--primary-color) !important;
    color: white !important;
  }

  .attendance-card.active .employee-position,
  .attendance-card.active .metric-label {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .attendance-card.active .metric-value.highlight {
    color: var(--primary-color) !important;
    background-color: white !important;
  }

  .attendance-card.active .attendance-details-btn {
    border-color: white !important;
    color: white !important;
  }
  
  
  /* Fix any sidebar related positioning issues */
  .sidebar {
    position: fixed !important;
    z-index: 1000 !important;
  }
  
  /* Ensure the main content doesn't have any remnant padding from sidebar */
  .main-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  
  /* Fix for scrolling issues */
  .attendance-cards-wrapper {
    overflow-x: hidden !important;
  }
}

/* For very small devices - keep two-column layout but adjust other elements */
@media (max-width: 480px) {
  /* Keep the grid as 2 columns */
  .attendance-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important; /* Slightly smaller gap for very small screens */
  }

  /* Make card content smaller for very small screens */
  .attendance-card {
    padding: 10px !important;
  }
  
  .employee-avatar {
    width: 50px !important;
    height: 50px !important;
  }
  
  .employee-name {
    font-size: 13px !important;
  }
  
  .employee-position {
    font-size: 11px !important;
  }
  
  .metric-value {
    font-size: 16px !important;
  }
  
  .metric-label {
    font-size: 10px !important;
  }
  
  .attendance-details-btn {
    font-size: 12px !important;
    padding: 6px 0 !important;
  }
  
  /* Adjust table pagination for very small screens */
  .table-pagination-container {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }
  
  .entries-selector, .page-navigation {
    width: 100% !important;
    justify-content: center !important;
  }
  /* Hide the original text first */
.attendance-details-btn {
  font-size: 0 !important;
}

/* Then add the new text */
.attendance-details-btn::before {
  content: "Profile Details" !important;
  font-size: 13px !important;
  display: inline-block !important;
  visibility: visible !important;
  white-space: nowrap !important;
}
}

/* Fix for Safari and iOS specific issues */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    body {
      width: 100% !important;
      position: relative !important;
      left: 0 !important;
      right: 0 !important;
    }
    
    .attendance-cards-container,
    .attendance-list-section {
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
    }
    
    /* Force 2-column layout on iOS devices */
    .attendance-cards {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }
}




/* Desktop card adjustments for showing 6 cards at a time */
@media (min-width: 769px) {
  /* Adjust card dimensions for 6-card layout */
  .attendance-card {
    min-width: calc((100% - 120px) / 6);
    width: calc((100% - 120px) / 6);
    flex: 0 0 auto;
    padding: 15px;  /* Reduced padding */
    height: auto;  /* Allow height to adjust based on content */
    min-height: 280px;  /* Set minimum height */
  }
  
  /* Adjust avatar size for smaller card */
  .employee-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  
  /* Adjust text sizes */
  .employee-name {
    font-size: 14px;
    margin-bottom: 3px;
  }
  
  .employee-position {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  /* Adjust metrics display */
  .attendance-metrics {
    margin-bottom: 15px;
  }
  
  .metric-value {
    font-size: 20px;
  }
  
  .metric-value.highlight {
    padding: 3px 10px;
  }
  
  .metric-label {
    font-size: 12px;
  }
  
  /* Adjust button size */
  .attendance-details-btn {
    padding: 8px;
    font-size: 12px;
  }
}

/* Fix for very wide screens to prevent cards from getting too large */
@media (min-width: 1400px) {
  .attendance-card {
    min-width: 180px;
    width: 180px;
    max-width: 200px;
  }
}

/* Ensure mobile view remains unchanged */
@media (max-width: 768px) {
  /* No changes to existing mobile styles */
}











