* {
    font-size: 13px;
}

#loader {
    z-index: 999999;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

/* Kontainer loading */
.load-content {
    text-align: center;
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top: 6px solid #15803d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

/* Animasi putar */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Teks */
#load-text {
    font-size: 18px;
    color: #15803d;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Sidebar menu style */
nav a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #374151;
    /* font-size: 0.9rem; */
    transition: background 0.2s;
}

nav a:hover {
    background-color: #e1fae5;
    color: #047857;
}

.menu-active {
    background-color: #d1fae5;
    color: #047857;
    font-weight: 600;
}

.sidebar-menu {
    text-wrap: nowrap;
}

/* menu grup */
.menu-group-title {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
}

.menu-group-title.menu-active,
.menu-group-title:hover {
    background-color: #e1fae5;
    color: #047857;
}

.menu-group-items {
    display: none;
    margin-left: 1rem;
}

/* Summary cards */
.summary-card {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

.summary-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

.summary-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

/* ==== RESET ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Poppins', sans-serif; */
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f9fafb;
    color: #333;
}

/* ==== MAIN ==== */
.main {
    flex: 1;
    padding: 20px 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header h1 {
    font-size: 1.6px;
    color: #065f46;
}

.header button {
    background: #10b981;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.header button:hover {
    background: #059669;
}

/* ==== FILTERS ==== */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    min-width: 180px;
}

.status-masuk {
    color: #16a34a;
    font-weight: 500;
}

.status-keluar {
    color: #dc2626;
    font-weight: 500;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main {
        padding: 15px;
    }

    .filters input,
    .filters select {
        flex: 1;
        min-width: 120px;
    }
}

table.dataTable thead th {
    background-color: #15803d !important;
    color: #fff;
    font-weight: 550;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
    background-color: #15803d !important;
    color: #fff;
    font-weight: 550;
}

.swal2-actions {
    display: flex;
    gap: 0.5rem;
}

div.row.mt-2.justify-content-between:has(div.dt-length) {
    display: none;
}

table.dataTable {
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}

.w-70 {
    width: 70% !important;
}
.w-30 {
    width: 30% !important;
}
.w-65 {
    width: 65% !important;
}
.w-35 {
    width: 35% !important;
}
.w-60 {
    width: 60% !important;
}
.w-40 {
    width: 40% !important;
}
