/* Custom CSS for Phanthai Norasing EMS Dispatch System */

body {
  font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, .font-kanit {
  font-family: 'Kanit', 'Sarabun', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Main mode button styling */
.main-mode-btn.active {
  border-bottom-color: #f59e0b;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.disp-tab-btn.active {
  background-color: #0c4a6e;
  color: #ffffff;
}

.resp-sub-tab.active {
  background-color: #0c4a6e;
  color: #ffffff;
}

/* Kanban Cards */
.kanban-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.1);
}

/* Toast Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast {
  animation: slideInUp 0.25s ease-out forwards;
}

/* =========================================================================
   PRINT STYLES FOR OFFICIAL A4 EMS INCIDENT REPORT
   ========================================================================= */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header, footer, .no-print, #toastBox, .main-mode-btn, .modal-backdrop {
    display: none !important;
  }

  #modalPrintReport {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
  }

  #modalPrintReport > div {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .printable-document {
    width: 100% !important;
    padding: 10mm !important;
  }

  .printable-table, .printable-table th, .printable-table td {
    border: 1px solid #000000 !important;
    border-collapse: collapse !important;
  }

  .printable-table th {
    background-color: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
