html,
body {}

.th {
    font-family: 'Kanit', sans-serif;
    font-weight: 300 !important;
}

.th300 {
    font-family: 'Kanit', sans-serif;
    font-weight: 300 !important;
}

.th400 {
    font-family: 'Kanit', sans-serif;
    font-weight: 400 !important;
}

.fx08 {
    font-size: 0.8em;
}

.fx06 {
    font-size: 0.6em !important;
}

.dn {
    display: none;
}

.reqDiv {
    font-size: 0.8em;
    padding: 5px 10px;
}

.item {
    padding: 8px 10px;
    margin-bottom: 3px;
    cursor: pointer;
    border: none;
    border-width: 0px 0px 1px 0px;
    border-color: rgb(245, 245, 245);
}

.non-active {
    margin-bottom: 0px;
}

.non-active:hover {
    color: #3425aa;
    border: none;
    border-width: 0px 0px 1px 0px;
    border-color: rgb(205, 205, 205);
}

.active:hover {
    background: rgb(83, 85, 108);
    color: #fff;
    border: none;
}

.active {
    transition: 0.3s;
    background: rgb(255, 255, 255);
    border-radius: 5px;
    font-weight: 400 !important;
}

.thumbnail-icon {
    transition: .2s;
}

.thumbnail-icon:hover {
    cursor: pointer;
    transform: scale(1.1);
}

/* --- Mobile Responsive Patch (01/03/2026) --- */

/* 1. Global Utilities for Mobile */
@media (max-width: 767.98px) {
    .w-100-mobile {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mt-3-mobile {
        margin-top: 1rem !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .h1,
    h1 {
        font-size: 1.5rem !important;
    }

    .h2,
    h2 {
        font-size: 1.25rem !important;
    }

    .h3,
    h3 {
        font-size: 1.1rem !important;
    }
}

/* 2. Argon Dashboard Responsive Fixes */
@media (max-width: 767.98px) {
    .main-content .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .header-body .row>[class*="col-"] {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 1rem !important;
    }
}

/* 3. Table Responsive (Card View) - General Patch */
@media (max-width: 767.98px) {
    .table-responsive table.table {
        border: 0 !important;
    }

    .table-responsive table.table thead {
        display: none !important;
    }

    .table-responsive table.table tr {
        display: block !important;
        margin-bottom: 1.5rem !important;
        border: 1px solid #e9ecef !important;
        border-radius: 0.5rem !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
        background: #fff !important;
    }

    .table-responsive table.table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        border-bottom: 1px solid #f6f9fc !important;
        padding: 0.75rem 1rem !important;
        white-space: normal !important;
        min-height: 50px;
        width: 100% !important;
        font-size: 0.9rem !important;
        /* Normalize large fonts in tables */
    }

    .table-responsive table.table td * {
        font-size: inherit !important;
    }

    .table-responsive table.table td:not([data-label]) {
        justify-content: center !important;
        text-align: center !important;
    }

    .table-responsive table.table td:last-child {
        border-bottom: 0 !important;
    }

    .table-responsive table.table td::before {
        content: attr(data-label);
        font-weight: 600 !important;
        text-align: left !important;
        color: #8898aa !important;
        margin-right: 1rem !important;
        flex-shrink: 0;
    }

    /* Hide label if empty or not present */
    .table-responsive table.table td:not([data-label])::before,
    .table-responsive table.table td[data-label=""]::before {
        display: none !important;
    }

    /* Calendar responsiveness */
    .fc-overflow {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .fc-view-container {
        min-width: 600px !important;
        /* Force scrollable on small screens instead of breaking layout */
    }
}

/* 4. Sidebar & Navbar Fixes */
@media (max-width: 1199.98px) {
    .navbar-top .navbar-collapse {
        background: #5e72e4 !important;
        padding: 1rem !important;
        border-radius: 0.5rem !important;
        margin-top: 10px !important;
    }
}

/* 5. Form & Modal Adjustments */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem !important;
    }

    .custom-switch {
        padding-left: 3rem !important;
        display: block !important;
        margin-bottom: 10px !important;
    }
}