/* assets/theme.css - ฟอนต์และสไตล์กลางของระบบงานสารบรรณ */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --font-thai: 'Sarabun', 'TH Sarabun New', 'Noto Sans Thai', 'Leelawadee UI', Tahoma, sans-serif;
}

/* ใช้ฟอนต์ Sarabun ทั้งหมด รวมหัวข้อ (h1-h6) ปุ่ม ตาราง และฟอร์ม */
html,
body,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, span, div, small, strong, b, label, li, td, th,
button, input, select, textarea, optgroup, option,
.btn, .nav-link, .badge, .alert, .card, .table, .modal, .dropdown-menu, .form-control, .form-select {
    font-family: var(--font-thai) !important;
}

body {
    font-size: 16px;
    line-height: 1.55;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.35rem; }
h4, .h4 { font-size: 1.15rem; }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: 1rem; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: 0;
}

.fw-semibold { font-weight: 600 !important; }

/* โลโก้ในหัวเว็บ */
.site-logo {
    max-height: 64px;
    max-width: 100%;
    object-fit: contain;
}

.site-logo-sm {
    max-height: 40px;
    max-width: 100%;
    object-fit: contain;
}
