@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-thai-400-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-thai-500-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-thai-600-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-thai-700-normal.woff2') format('woff2');
    unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
    font-family: 'Noto Sans Thai';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('../fonts/noto-sans-thai/noto-sans-thai-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Theme overrides on top of the precompiled Bootstrap CSS (no build step).
 * Change brand colors here via Bootstrap's CSS custom properties.
 */
:root,
[data-bs-theme='light'] {
    --bs-font-sans-serif: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-primary: #1f6f5c;
    --bs-primary-rgb: 31, 111, 92;
    --bs-primary-text-emphasis: #0c2c25;
    --bs-primary-bg-subtle: #d2e2de;
    --bs-primary-border-subtle: #a5c5bd;
    --bs-link-color: #1f6f5c;
    --bs-link-color-rgb: 31, 111, 92;
    --bs-link-hover-color: #19594a;
    --bs-link-hover-color-rgb: 25, 89, 74;
    --bs-focus-ring-color: rgba(31, 111, 92, 0.25);
}

.btn-primary {
    --bs-btn-bg: #1f6f5c;
    --bs-btn-border-color: #1f6f5c;
    --bs-btn-hover-bg: #1a5e4e;
    --bs-btn-hover-border-color: #19594a;
    --bs-btn-focus-shadow-rgb: 65, 133, 116;
    --bs-btn-active-bg: #19594a;
    --bs-btn-active-border-color: #175345;
    --bs-btn-disabled-bg: #1f6f5c;
    --bs-btn-disabled-border-color: #1f6f5c;
}

.btn-outline-primary {
    --bs-btn-color: #1f6f5c;
    --bs-btn-border-color: #1f6f5c;
    --bs-btn-hover-bg: #1f6f5c;
    --bs-btn-hover-border-color: #1f6f5c;
    --bs-btn-focus-shadow-rgb: 31, 111, 92;
    --bs-btn-active-bg: #1f6f5c;
    --bs-btn-active-border-color: #1f6f5c;
    --bs-btn-disabled-color: #1f6f5c;
    --bs-btn-disabled-border-color: #1f6f5c;
}

.form-control:focus,
.form-select:focus {
    border-color: #8fb7ad;
    box-shadow: 0 0 0 0.25rem rgba(31, 111, 92, 0.25);
}

.form-check-input:checked {
    background-color: #1f6f5c;
    border-color: #1f6f5c;
}

.page-link {
    --bs-pagination-active-bg: #1f6f5c;
    --bs-pagination-active-border-color: #1f6f5c;
}

[x-cloak] {
    display: none !important;
}

/* ---------- Application shell ---------- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    width: 260px;
    flex-shrink: 0;
    height: 100vh;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
}

.app-topbar {
    min-height: 56px;
    z-index: 1020;
}

.app-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--bs-body-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.app-nav .nav-link:hover {
    background-color: var(--bs-tertiary-bg);
}

.app-nav .nav-link.active {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    font-weight: 600;
}

.app-nav-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
    padding: 1rem 0.75rem 0.375rem;
}

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}
