/* Custom styles & Print Layout */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 10pt;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .table-container {
    overflow: visible !important;
    box-shadow: none !important;
    border: 1px solid #999 !important;
  }
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  th, td {
    border: 1px solid #333 !important;
    padding: 6px 8px !important;
  }
  .page-break {
    page-break-before: always;
  }
  @page {
    size: landscape;
    margin: 1cm;
  }
}

.print-only {
  display: none;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile Touch & Scroll Improvements */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (max-width: 640px) {
  /* Prevents auto-zoom on iOS when tapping inputs */
  input, select, textarea {
    font-size: 16px !important;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth tap transitions */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Mobile floating action button */
.fab-shadow {
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4), 0 8px 10px -6px rgba(2, 132, 199, 0.3);
}

/* Shading baris agenda berdasarkan status jadwal (Sedang Berlangsung vs Mendatang) */
.row-ongoing-today {
  background-color: #eff6ff !important; /* bg-blue-50 */
  box-shadow: inset 4px 0 0 0 #2563eb; /* aksen garis tepi kiri biru */
}
.row-ongoing-today:hover {
  background-color: #dbeafe !important;
}

.row-upcoming {
  background-color: #ffffff;
}
.row-upcoming:hover {
  background-color: #f8fafc;
}

/* Multi-select peserta dropdown scrollbar & item hover */
#peserta-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.peserta-option-item:hover {
  background-color: #f1f5f9;
}
