/* =========================================================
   PPSG AL-WAHDAH - FONT GLOBAL
   Font utama: Montserrat (Google Fonts, Sans Serif Geometris)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --font-global: 'Montserrat', Arial, Helvetica, sans-serif;
}

html,
body {
    font-family: var(--font-global) !important;
}

body {
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* Semua elemen teks umum */
p, span, li, dd, dt,
a, strong, b, small,
label, legend,
table, th, td,
h1, h2, h3, h4, h5, h6,
.content, .main-content, .dashboard,
.card, .panel, .form-group,
.sidebar, .sidebar a, .sidebar span, .sidebar li,
nav, nav a, .menu, .menu a, .menu-item, .menu-item a,
.topbar, .topbar *, .header, .header * {
    font-family: var(--font-global) !important;
}

/* Teks utama */
p, li, dd, dt,
.content, .main-content, .dashboard, .card, .panel, .form-group {
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* Menu, sidebar, dan navigasi */
.sidebar, .sidebar a, .sidebar span, .sidebar li,
nav, nav a, .menu, .menu a, .menu-item, .menu-item a {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

/* Judul */
h1, .page-title, .content-title {
    font-family: var(--font-global) !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

h2, .section-title {
    font-family: var(--font-global) !important;
    font-size: 21px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

h3, .card-title {
    font-family: var(--font-global) !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

h4, h5, h6 {
    font-family: var(--font-global) !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

/* Tabel */
table, table th, table td, .table th, .table td {
    font-family: var(--font-global) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

table td, .table td {
    font-weight: 400 !important;
}

table th, .table th {
    font-weight: 700 !important;
}

/* Formulir */
label, .form-label {
    font-family: var(--font-global) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

input, select, textarea,
.form-control, .form-select {
    font-family: var(--font-global) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

input::placeholder,
textarea::placeholder {
    font-family: var(--font-global) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Tombol */
button, .btn, .button,
input[type='button'], input[type='submit'], input[type='reset'] {
    font-family: var(--font-global) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

/* Teks penjelas */
small, .small, .text-small, .text-muted, .muted,
.help-text, .form-text, .caption {
    font-family: var(--font-global) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

/* Badge dan status */
.badge, .status, .tag, .pill {
    font-family: var(--font-global) !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

/* Angka statistik */
.stat-card .value, .card-value, .stat-value {
    font-family: var(--font-global) !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* Penekanan */
strong, b {
    font-weight: 700 !important;
}

/* Cetak memakai tipografi yang sama dengan tampilan layar. */
@media print {
    html, body {
        font-family: var(--font-global) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
