/* -------------------------------------- */
/*            TYPOGRAPHY STYLES          */
/* -------------------------------------- */
h1,
h5,
.menu-link,
.h-5,
table tbody td,
.sidebar-link,
.btn {
    font-family: "Noto Sans Thai", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* -------------------------------------- */
/*           FORM & BUTTON STYLES         */
/* -------------------------------------- */
.form-label,
.col-form-label {
    font-size: 1em;
}

[type="file"] {
    height: 0;
    overflow: hidden;
    width: 0;
}

[type="file"] + label {
    background: #414244;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: inherit;
    font-weight: 500;
    margin-bottom: 1rem;
    outline: none;
    padding: 8px 16px;
    position: relative;
    transition: all 0.3s;
    vertical-align: middle;
}

[type="file"] + label:hover {
    background-color: #333;
}

[type="file"] + label.uploader {
    background-color: #68808a;
    box-shadow: 0 6px #000;
    transition: none;
}

[type="file"] + label.uploader:hover {
    box-shadow: 0 4px #506b75;
    top: 2px;
}

/* -------------------------------------- */
/*            TABLE STYLES                */
/* -------------------------------------- */
.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

tr.splitter td,
tr.splitter th {
    border-top: 2px solid #444;
    border-bottom: 2px solid #444;
}

/* -------------------------------------- */
/*         PROGRESS BAR STYLES            */
/* -------------------------------------- */
.progress-bar {
    height: 20px;
    width: 200px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background-color: #007bff;
    width: 0;
    transition: width 0.5s ease-in-out;
}

/* -------------------------------------- */
/*         IMAGE INLINE STYLES            */
/* -------------------------------------- */
.image-inline img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #000;
}

/* -------------------------------------- */
/*           LAYOUT STYLES                */
/* -------------------------------------- */
body {
    background-color: #f8f9fc;
}

.welcome {
    width: 100px;
}

header.app-header {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    /* border-radius: 0.75rem; */
    margin-bottom: 1rem;
}

header.app-header .navbar {
    padding-left: 0;
    padding-right: 0;
    align-items: center;
    min-height: 56px;
}

header.app-header .navbar span {
    font-size: 1.25rem;
    font-weight: 600;
}

header.app-header .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

:root {
    --app-header-height: 72px;
}

main.container-fluid {
    padding-top: 7rem !important;
}

/* 📌 ให้ Sidebar scroll เต็มหน้าจอ */
.left-sidebar {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scroll-sidebar {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 1rem; /* กัน bottom menu โดนตัด */
}
