/* ============================================================================
   ระบบแจ้งการลา / ไปราชการ โรงเรียนบ้านดุงวิทยา
   พัฒนาโดย ทีม BDW ONE ร่วมกับกลุ่มบริหารงานบุคคล
   Main Styles & A4 Official Form Print Styles (css/styles.css)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --bdw-primary: #1e3a8a;
  --bdw-secondary: #0284c7;
  --bdw-gold: #d97706;
  --bdw-bg: #f8fafc;
}

body {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  background-color: var(--bdw-bg);
  color: #1e293b;
}

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

/* Official Paper Form Font (Sarabun) */
.official-paper {
  font-family: 'Sarabun', serif;
  width: 210mm;
  min-height: 297mm;
  padding: 12mm 16mm 12mm 18mm;
  background: #ffffff;
  color: #000000;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  position: relative;
  font-size: 14.5px;
  line-height: 1.55;
}

.dotted-line {
  display: inline-block;
  border-bottom: 1px dotted #111827;
  padding: 0 6px;
  min-height: 1.25em;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 500;
}

.official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.official-table th,
.official-table td {
  border: 1px solid #000000;
  padding: 3px 6px;
}

.checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1.2px solid #000000;
  margin-right: 4px;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}

.paren-check {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  font-weight: 600;
}

/* Print Media Rules */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .no-print {
    display: none !important;
  }

  #print-modal-backdrop {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
  }

  #print-modal-container {
    max-width: none !important;
    width: 100% !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .official-paper {
    box-shadow: none !important;
    margin: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    padding: 12mm 16mm 10mm 18mm !important;
    page-break-after: always;
  }
}
