@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
    
:root {
  /* Modern Color Palette */
  --primary: #006341;         /* Pantone 348 - Verde Carabineros */
  --primary-dark: #004d33;    /* Darker shade of primary */
  --primary-light: #1a7a5a;   /* Lighter shade of primary */
  --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
  
  --secondary: #8b8f2e;       /* Verde oliva */
  --success: #2e8b57;         /* Sea Green */
  --warning: #ffc107;         /* Modern Gold */
  --danger: #dc3545;          /* Modern Red */
  --info: #17a2b8;            /* Info Blue */
  
  /* Grayscale */
  --black: #1a1a1a;           /* Slightly softer black */
  --gray-900: #212529;        /* Darkest gray */
  --gray-800: #343a40;        /* Very dark gray */
  --gray-700: #495057;        /* Dark gray */
  --gray-600: #6c757d;        /* Medium dark gray */
  --gray-500: #adb5bd;        /* Medium gray */
  --gray-400: #ced4da;        /* Light gray */
  --gray-300: #e9ecef;        /* Very light gray */
  --gray-200: #f8f9fa;        /* Off white gray */
  --gray-100: #f8f9fa;        /* Lightest gray */
  --white: #ffffff;           /* Pure white */
  
  /* Glassmorphism */
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Transition */
  --transition: all 0.2s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1rem;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.logo-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
}

.logo {
  display: flex;
  align-items: center;
  height: 60px;
}

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-text {
  text-align: center;
  flex-grow: 1;
}

.install-button {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.install-button:hover {
  background: #005a3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.install-button svg {
  width: 20px;
  height: 20px;
}

.header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.5px;
}

.header p {
  color: var(--gray-600);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* Main Content */
.main {
  padding: 2rem 0;
  min-height: calc(100vh - 400px);
}

.section-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--black);
  color: var(--black);
  letter-spacing: -0.5px;
}

/* Input Grid */
.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.main-grid {
  grid-template-columns: repeat(3, 1fr);
}

.extra-grid {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1rem;
  background: rgba(0, 0, 0, 0.02);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

/* Input Field */
.input-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.input-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.input-control {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  border-radius: 12px;
  color: var(--black);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.2);
  transform: scale(1.05);
  background: white;
}

.input-control:hover:not(:focus) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.input-control.readonly {
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.input-control.readonly:hover {
  transform: none;
}

/* Collapsible */
.collapsible {
  margin-top: 1rem;
}

.collapsible-header {
  cursor: pointer;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-weight: 600;
  color: var(--black);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.collapsible-header:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--black);
}

.collapsible-header::after {
  content: "▼";
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.collapsible[open] .collapsible-header::after {
  transform: rotate(180deg);
}

.collapsible-content {
  padding: 1rem 0 0 0;
}

/* Total Badge */
.total-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1rem 2rem;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 99, 65, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.footer {
  background: rgba(0, 50, 30, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  text-align: center;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.export-pdf-btn, .share-whatsapp-btn, .report-btn, .reset-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  text-align: center;
}

.export-pdf-btn::after, 
.share-whatsapp-btn::after,
.report-btn::after,
.reset-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.export-pdf-btn:hover::after, 
.share-whatsapp-btn:hover::after,
.report-btn:hover::after,
.reset-btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.export-pdf-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.share-whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.report-btn {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.reset-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.export-pdf-btn:hover, 
.share-whatsapp-btn:hover,
.report-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

.export-pdf-btn:active, 
.share-whatsapp-btn:active,
.report-btn:active,
.reset-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.button-group button {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 120px;
}

.informe-ausentismo {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.informe-ausentismo h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.informe-ausentismo ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.informe-ausentismo li {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loading Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

.section-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Modal Informe */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.modal-content {
  background-color: #f8f9fa;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  width: 90%;
  max-width: 1200px;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.modal-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-header .fecha-informe {
  font-size: 1rem;
  opacity: 0.9;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  color: #333;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px; /* Space for fixed footer */
}

@media (max-width: 768px) {
  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* Improve scroll behavior on iOS */
  @supports (-webkit-touch-callout: none) {
    .modal-body {
      padding-bottom: 100px; /* Extra space for iOS home indicator */
    }
  }
}

/* Modal Footer */
.modal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 10000; /* Increased z-index */
  padding: 15px;
  border-top: 1px solid #e1e1e1;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.modal-footer button {
  flex: 1;
  padding: 12px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.share-whatsapp-btn {
  background: #25D366;
  color: white;
}

.export-pdf-btn, .share-whatsapp-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 99, 65, 0.2);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.share-whatsapp-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.export-pdf-btn:hover, .share-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 99, 65, 0.4);
}

.informe-ausentismo {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.informe-ausentismo h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.informe-ausentismo ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.informe-ausentismo li {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hidden PDF container */
.pdf-container {
  position: absolute;
  top: -10000px;
  left: -10000px;
  width: 210mm;
  background: white;
  padding: 20mm;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.4;
}

.pdf-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 20px;
}

.pdf-header h1 {
  color: var(--primary);
  font-size: 24pt;
  font-weight: 800;
  margin-bottom: 10px;
}

.pdf-header p {
  color: #666;
  font-size: 12pt;
}

.pdf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.pdf-stat {
  text-align: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.pdf-stat-number {
  font-size: 20pt;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.pdf-stat-label {
  font-size: 10pt;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.pdf-table th {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px;
  text-align: left;
  font-weight: 600;
  font-size: 10pt;
  color: #374151;
}

.pdf-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  font-size: 10pt;
}

.pdf-table tr:nth-child(even) {
  background: #f9fafb;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .informe-resumen {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  .modal {
    padding-bottom: 100px; /* Space for fixed footer */
  }

  .modal-content {
    width: 95%;
    margin: 1rem auto;
    max-height: 90vh;
    padding-bottom: 100px; /* Space for fixed footer */
  }
  
  .modal-body {
    padding-bottom: 120px; /* Extra space for footer */
  }
  
  .informe-resumen {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .modal-footer {
    padding: 0.75rem;
  }
  
  .modal-footer button {
    font-size: 0.85rem;
    padding: 0.7rem 0.5rem;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  table th, table td {
    padding: 8px 10px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .informe-resumen {
    grid-template-columns: 1fr;
  }
  
  .informe-detalle {
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }
  
  .informe-ausentismo {
    padding: 1rem;
  }
  .informe-resumen {
    grid-template-columns: 1fr;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .modal-footer button {
    width: 100%;
    padding: 0.9rem 0.5rem;
    font-size: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .informe-resumen {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  .modal {
    padding-bottom: 120px; /* Increased space for fixed footer */
  }
  
  .modal-content {
    min-height: calc(100vh - 80px);
  }
  
  .modal-body {
    padding-bottom: 20px;
  }
  
  .modal-footer {
    padding: 12px 15px;
    gap: 8px;
    z-index: 10001; /* Ensure it stays above other content */
    transform: translateZ(0); /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .export-pdf-btn, .share-whatsapp-btn {
    padding: 12px 8px;
    font-size: 0.9rem;
    min-width: 0;
    font-size: 0.85rem;
  }
  
  /* Ensure buttons stay visible on mobile */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .modal-footer {
      padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
  }
  
  .input-control {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }
  
  .main-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .extra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .section-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .modal-content {
    width: 98%;
    margin: 1% auto;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-footer {
    flex-direction: column;
  }
}

/* Remove default details styling */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
      min-height: 100vh;
      color: var(--gray-900);
      overflow-x: hidden;
    }
    
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }
    
    /* Header */
    .header {
      background: var(--white);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      padding: 1rem 0;
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 3px solid var(--primary);
    }
    
    .header-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      position: relative;
    }
    
    .logo-container {
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .logo {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }
    
    .header-text {
      text-align: center;
      flex-grow: 1;
    }
    
    .install-button {
      background: var(--primary);
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: white;
      transition: all 0.3s ease;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .install-button:hover {
      background: #005a3c;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .install-button:active {
      transform: translateY(0);
    }
    
    .install-button svg {
      width: 20px;
      height: 20px;
    }
    
    .header h1 {
      font-size: 2rem;
      font-weight: 800;
      color: var(--primary);
      margin: 0 0 0.25rem 0;
      letter-spacing: 0.5px;
    }
    
    .header p {
      color: var(--gray-600);
      font-size: 1.1rem;
      font-weight: 500;
      margin: 0;
    }
    
    /* Main Content */
    .main {
      padding: 2rem 0;
      min-height: calc(100vh - 400px);
    }
    
    .section-card {
      background: var(--white);
      border: 1px solid var(--gray-300);
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .section-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
    
    .section-title {
      font-size: 1.5rem;
      font-weight: 800;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--black);
      color: var(--black);
      letter-spacing: -0.5px;
    }
    
    /* Input Grid */
    .input-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }
    
    .main-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .extra-grid {
      grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
      gap: 1rem;
      background: rgba(255, 255, 255, 0.05);
      padding: 1.5rem;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Input Field */
    .input-field {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    
    .input-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: #cbd5e1;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      text-align: center;
    }
    
    .input-control {
      width: 80px;
      height: 80px;
      border: 2px solid var(--gray-300);
      background: var(--white);
      border-radius: 12px;
      color: var(--black);
      font-size: 1.25rem;
      font-weight: 700;
      text-align: center;
      outline: none;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .input-control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.2);
      transform: scale(1.05);
      background: white;
    }
    
    .input-control:hover:not(:focus) {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    
    .input-control.readonly {
      background: #f8f9fa;
      border-color: #e9ecef;
      color: #6c757d;
      cursor: not-allowed;
    }
    
    .input-control.readonly:hover {
      transform: none;
    }
    
    /* Collapsible */
    .collapsible {
      margin-top: 1rem;
    }
    
    .collapsible-header {
      cursor: pointer;
      padding: 1rem 1.25rem;
      background: var(--white);
      border: 1px solid var(--gray-300);
      border-radius: 8px;
      font-weight: 600;
      color: var(--black);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .collapsible-header:hover {
      background: var(--gray-100);
      border-color: var(--gray-400);
      color: var(--black);
    }
    
    .collapsible-header::after {
      content: "▼";
      font-size: 0.9rem;
      transition: transform 0.3s ease;
    }
    
    .collapsible[open] .collapsible-header::after {
      transform: rotate(180deg);
    }
    
    .collapsible-content {
      padding: 1rem 0 0 0;
    }
    
    /* Total Badge */
    .total-badge {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      padding: 1rem 2rem;
      border-radius: 50px;
      color: white;
      font-weight: 700;
      font-size: 1.1rem;
      box-shadow: 0 8px 30px rgba(0, 99, 65, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    /* Footer */
    .footer {
      background: rgba(0, 50, 30, 0.95);
      backdrop-filter: blur(20px);
      border-top: 1px solid var(--glass-border);
      padding: 2rem 0;
      text-align: center;
    }
    
    .total-general {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      padding: 1.5rem 3rem;
      border-radius: 25px;
      color: white;
      font-weight: 800;
      font-size: 1.8rem;
      box-shadow: 0 0 50px rgba(0, 99, 65, 0.4);
      display: inline-block;
      margin-bottom: 1.5rem;
      animation: glow 2s ease-in-out infinite alternate;
    }
    
    @keyframes glow {
      from { box-shadow: 0 0 50px rgba(0, 99, 65, 0.4); }
      to { box-shadow: 0 0 80px rgba(0, 99, 65, 0.6); }
    }
    
    .button-group {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }
    
    .reset-btn {
      background: linear-gradient(135deg, var(--warning), #e6b800);
      color: white;
      border: none;
      padding: 1rem 2rem;
      border-radius: 15px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(0, 99, 65, 0.3);
    }
    
    .reset-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 30px rgba(0, 99, 65, 0.5);
    }
    
    .report-btn {
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: white;
      border: none;
      padding: 1rem 2rem;
      border-radius: 15px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(0, 99, 65, 0.3);
    }
    
    .report-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 30px rgba(0, 99, 65, 0.5);
    }
    
    /* Modal Informe */
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(5px);
    }
    
    .modal-content {
      position: relative;
      background: white;
      margin: 2% auto;
      padding: 0;
      width: 95%;
      max-width: 1000px;
      max-height: 90vh;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      overflow: hidden;
    }
    
    .modal-header {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: white;
      padding: 2rem;
      text-align: center;
      position: relative;
    }
    
    .modal-header h2 {
      font-size: 2rem;
      font-weight: 800;
      margin-bottom: 0.5rem;
    }
    
    .modal-header .fecha-informe {
      font-size: 1rem;
      opacity: 0.9;
    }
    
    .close {
      position: absolute;
      top: 1rem;
      right: 1.5rem;
      font-size: 2rem;
      font-weight: bold;
      color: white;
      cursor: pointer;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }
    
    .close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
    }
    
    .modal-body {
      padding: 2rem;
      max-height: calc(90vh - 200px);
      overflow-y: auto;
      color: #333;
    }
    
    /* Estilos del informe */
    .informe-resumen {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
    
    .stat-card {
      background: linear-gradient(135deg, #f8fafc, #e2e8f0);
      border: 1px solid #cbd5e1;
      border-radius: 16px;
      padding: 1.5rem;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .stat-number {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 0.5rem;
    }
    
    .stat-label {
      font-size: 0.9rem;
      color: #64748b;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .informe-tabla {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      border: 1px solid #e2e8f0;
      margin-bottom: 2rem;
    }
    
    .informe-tabla h3 {
      background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
      padding: 1rem 1.5rem;
      margin: 0;
      font-size: 1.2rem;
      color: var(--primary);
      border-bottom: 2px solid #cbd5e1;
    }
    
    .tabla-detalle {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
    }
    
    .tabla-detalle th {
      background: #f8fafc;
      color: #475569;
      padding: 12px;
      text-align: left;
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      border-bottom: 1px solid #e2e8f0;
    }
    
    .tabla-detalle td {
      padding: 10px 12px;
      border-bottom: 1px solid #f1f5f9;
    }
    
    .tabla-detalle tr:hover {
      background: #f8fafc;
    }
    
    .tabla-detalle tr:last-child td {
      border-bottom: none;
    }
    
    .num-cell {
      text-align: center;
      font-weight: 600;
    }
    
    .status-optimo { background: rgba(16, 185, 129, 0.1); color: #059669; }
    .status-aceptable { background: rgba(245, 158, 11, 0.1); color: #d97706; }
    .status-critico { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
    
    .print-section {
      text-align: center;
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 2px solid #e2e8f0;
    }
    
    .print-btn {
      background: linear-gradient(135deg, #0891b2, #0e7490);
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 25px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
    }
    
    .print-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);
    }
    
    /* Mobile Responsive */
    @media (max-width: 768px) {
  .informe-resumen {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem 0.5rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
      .input-control {
        width: 60px;
        height: 60px;
        font-size: 1rem;
      }
      
      .main-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
      }
      
      .extra-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .header h1 {
        font-size: 1.5rem;
      }
      
      .section-card {
        padding: 1rem;
        margin-bottom: 1rem;
      }
      
      .modal-content {
        width: 98%;
        margin: 1% auto;
      }
      
      .modal-body {
        padding: 1rem;
      }
      
      .button-group {
        flex-direction: column;
        align-items: center;
      }
    }
    
    /* Remove default details styling */
    summary {
      list-style: none;
    }
    
    summary::-webkit-details-marker {
      display: none;
    }
    
    /* Estilos para el contenedor del informe */
.informe-contenedor {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
}

/* Estilos para el resumen */
.informe-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
  padding: 1rem 0;
}

/* Estilos para las tarjetas de resumen */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Estilos para tablas en el informe */
.informe-detalle {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 8px;
  background: white;
  position: relative;
  touch-action: pan-x;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f1f1;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch !important;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for better mobile experience */
.informe-detalle::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.informe-detalle::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.informe-detalle::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.informe-detalle table {
  width: auto;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  table-layout: auto;
  margin: 0;
  padding: 0;
  border: none;
}

.informe-detalle th,
.informe-detalle td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  vertical-align: middle;
  transition: background 0.2s ease;
}

/* Sticky first column */
.informe-detalle th:first-child,
.informe-detalle td:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
  min-width: 160px;
  max-width: 160px;
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
  border-right: 1px solid #e2e8f0;
  max-width: 150px;
}

/* Sticky header row */
.informe-detalle thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 12px 8px;
  text-align: center;
  border-bottom: 2px solid var(--primary-dark);
  box-shadow: 0 2px 5px -2px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.informe-detalle tbody tr:nth-child(even) {
  background-color: var(--gray-50);
}

/* Hover and active states */
.informe-detalle tbody tr:hover {
  background-color: #f8fafc;
}

/* Better touch feedback on mobile */
@media (hover: none) {
  .informe-detalle tbody tr:active {
    background-color: #f1f5f9;
  }
}

/* Status cells styling */
.status-cell {
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-block;
  min-width: 70px;
}

/* Status colors */
.status-optimo {
  color: #10B981;
  font-weight: 600;
  background-color: #ECFDF5;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-aceptable {
  color: #F59E0B;
  font-weight: 600;
  background-color: #FFFBEB;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-critico {
  color: #EF4444;
  font-weight: 600;
  background-color: #FEF2F2;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-sin-datos {
  color: #6B7280;
  font-weight: 600;
  background-color: #F3F4F6;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ensure content is properly aligned */
.informe-detalle td {
  vertical-align: middle;
}

/* Add some breathing room between rows */
.informe-detalle tbody tr:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

/* Enhanced Modal Body for Better Scroll Isolation */
.modal-body {
  overflow-y: auto;
  max-height: 85vh; /* Slightly reduced to account for table heights */
  padding: 1rem;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overscroll-behavior: contain; /* Prevent pull-to-refresh interference */
}

/* Improved Table Container for Horizontal Scroll */
.informe-detalle {
  margin: 1rem 0;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible; /* Allow vertical if needed, but prioritize horizontal */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--primary) transparent;
  display: block; /* Ensures block-level for scroll */
  white-space: nowrap; /* Prevents text wrap in container */
  position: relative;
  border: 1px solid var(--gray-300);
  background: var(--white);
}

.informe-detalle table {
  min-width: fit-content; /* Adaptive min-width instead of fixed 800px */
  width: auto;
  table-layout: auto;
  margin: 0;
  border-collapse: collapse;
  border: none;
  white-space: normal; /* Allow normal wrapping inside cells */
}

/* Sticky First Column Improvements */
.informe-detalle th:first-child,
.informe-detalle td:first-child {
  min-width: 140px;
  max-width: 140px;
  position: sticky;
  left: 0; /* Changed from 16px to 0 for better alignment */
  z-index: 2;
  background: var(--white);
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
  -webkit-box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1); /* iOS support */
  position: -webkit-sticky;
}

/* Custom Scrollbar for Webkit Browsers */
.informe-detalle::-webkit-scrollbar {
  height: 6px;
}

.informe-detalle::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 3px;
}

.informe-detalle::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.informe-detalle::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-body {
    max-height: 80vh;
    padding: 0.5rem;
  }

  .informe-detalle {
    margin: 0.5rem 0;
    width: 100vw; /* Full viewport width for edge-to-edge scroll */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw; /* Centers and expands beyond container */
    overflow-y: hidden; /* Strictly hide vertical in tables */
    touch-action: pan-x pan-y; /* Allow both directions, but horizontal primary */
  }

  .informe-detalle table {
    min-width: 700px; /* Reduced for smaller screens, but still scrollable */
  }

  .informe-detalle th,
  .informe-detalle td {
    padding: 8px 4px; /* Smaller padding for mobile */
    font-size: 0.7rem;
    min-width: 70px; /* Ensure touch targets */
  }

  .informe-detalle th:first-child,
  .informe-detalle td:first-child {
    min-width: 120px; /* Slightly smaller on mobile */
    z-index: 3; /* Higher z-index for overlap */
  }

  /* Prevent modal from capturing horizontal scroll */
  .modal-content {
    overflow: hidden; /* Let inner containers handle scroll */
  }

  .informe-contenedor {
    margin: 0.5rem -16px;
    width: 100vw;
    max-width: 100vw;
    padding: 0 16px;
  }

  .informe-resumen {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .informe-detalle {
    margin: 0.5rem 0;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overflow-x: auto;
    display: block;
    overflow-y: hidden;
    white-space: nowrap;
    touch-action: pan-x;
    position: relative;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }
  
  .informe-detalle table {
    min-width: 800px; /* Ancho mínimo para permitir el desplazamiento */
    width: auto;
    table-layout: auto;
    margin: 0;
    border: none;
  }
  
  .informe-detalle th:first-child,
  .informe-detalle td:first-child {
    min-width: 140px;
    max-width: 140px;
    position: sticky;
    left: 16px;
    z-index: 2;
    background: white;
    box-shadow: 2px 0 5px -2px rgba(0,0,0,0.1);
    position: -webkit-sticky;
  }
  
  .informe-detalle th {
    padding: 10px 6px;
    font-size: 0.65rem;
    white-space: nowrap;
  }
  
  .informe-detalle td {
    padding: 10px 6px;
    font-size: 0.75rem;
  }
  
  /* Improve touch targets */
  .informe-detalle td,
  .informe-detalle th {
    min-width: 80px;
  }
  
  /* Better scrollbar visibility */
  .informe-detalle::-webkit-scrollbar {
    height: 6px;
  }
  
  .informe-detalle::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
  }
  
  /* Add visual feedback on touch */
  .informe-detalle td:active {
    background-color: #f8f9fa;
  }
}

/* Estilos para el estado */
.status-cell {
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Mejoras para móviles */
@media (max-width: 768px) {
  .informe-ausentismo {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
  }
  
  .informe-ausentismo h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1rem;
  }
  
  .ausentismo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .ausentismo-item {
    background: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  /* Mejorar la legibilidad en tablas */
  .informe-detalle th {
    font-size: 0.65rem;
    padding: 0.4rem 0.2rem;
  }
  
  .informe-detalle td {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }
  
  /* Asegurar que los botones del pie sean fáciles de tocar */
  .modal-footer {
    display: flex;
    gap: 10px;
    padding: 10px;
  }
  
  .modal-footer button {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
  }
}

.status-optimo {
  background-color: #dcfce7;
  color: #166534;
}

.status-aceptable {
  background-color: #fef9c3;
  color: #854d0e;
}

.status-critico {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Print Styles */
@media print {
  .informe-detalle {
    overflow: visible !important;
    width: auto !important;
    position: static !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .close, .print-btn {
    display: none !important;
  }
      
      .modal-body {
        max-height: none !important;
        overflow: visible !important;
        page-break-inside: avoid;
      }
    }
  