html {
    font-size: clamp(14px, 1vw + 10px, 16px);
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.animate-in {
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DatePickerInput custom overlay — เฉพาะใน .date-picker-wrapper เท่านั้น */
.date-picker-wrapper input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 20;
}

.date-picker-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

/* Dashboard filter date input — ให้แสดงผลปกติ */
.filter-date-input {
    -webkit-appearance: auto;
    appearance: auto;
    position: static;
    opacity: 1;
    cursor: pointer;
    z-index: auto;
}

/* Dashboard table styling */
.dashboard-table {
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-table thead tr th:first-child {
    border-radius: 20px 0 0 0;
}

.dashboard-table thead tr th:last-child {
    border-radius: 0 20px 0 0;
}

.dashboard-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 20px;
}

.dashboard-table tbody tr:last-child td:last-child {
    border-radius: 0 0 20px 0;
}

.dashboard-table tbody tr {
    transition: background 0.15s;
}

.dashboard-table tbody tr:hover {
    background: #f8faff;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
}

.modal-overlay {
    z-index: 10000;
}

.modal-content {
    z-index: 10001;
}

.modern-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}