/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem; /* 14px base */
    color: #212529;
}
body {
    background-image: url('bg1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

/* Table Styles */
.table {
    width: 100%;
    margin: 0 auto;
    font-size: 0.8125rem !important; /* 13px */
}

.table th, .table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.375rem 0.5rem !important; /* 6px 8px */
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.table td[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.3125rem; /* 5px */
    border-radius: 0.1875rem; /* 3px */
    box-shadow: 0 0 0.3125rem rgba(0,0,0,0.2);
    white-space: normal;
    width: auto;
    max-width: 400px;
    font-size: 0.8125rem; /* 13px */
}

.table thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

/* Button Styles */
.btn {
    font-size: 0.8125rem; /* 13px */
    font-weight: bold;
    color: white;
    background-color: #0d6efd;
	background: linear-gradient(135deg, #182f7c, #4e73df);
    border-color: #0d6efd;
    padding: 0.25rem 0.5rem;
}

.btn:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem; /* 13px */
}

.btn-3d {
    background-color: #0d6efd;
    color: white;
    border: none;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-3d:hover, .btn-3d:active {
    background-color: #0b5ed7;
    color: white;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
}

/* Filter and Layout Styles */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem; /* 20px */
}

.button-group {
    display: flex;
    gap: 0.625rem; /* 10px */
}

.last-updated {
    margin-top: -10px;
}

.search-data {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
}

.form-label {
    font-size: 0.875rem; /* 14px */
    margin: 0;
}

/* Card Styles */
.card-header, .card-body {
    font-size: 0.875rem; /* 14px */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Pagination Styles */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3125rem; /* 5px */
    margin-top: 0.625rem; /* 10px */
}

.page-input {
    width: 3.75rem; /* 60px */
    text-align: center;
    margin: 0 0.3125rem; /* 0 5px */
}

.page-size-selector {
    display: flex;
    align-items: center;
}

.page-size-selector select {
    width: 5rem; /* 80px */
    margin-left: 0.3125rem; /* 5px */
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.25rem; /* 20px */
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sortable.active {
    background-color: #e9ecef;
}

.sortable.active::after {
    content: '';
    position: absolute;
    right: 0.5rem; /* 8px */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
}

.sortable.active.asc::after {
    border-bottom: 0.3125rem solid #212529;
}

.sortable.active.desc::after {
    border-top: 0.3125rem solid #212529;
}

/* Action Buttons */
.btn-action {
    display: flex;
    gap: 0.3125rem; /* 5px */
    flex-wrap: wrap;
}

.btn-action .btn {
    flex: 1;
    white-space: nowrap;
    padding: 0.1875rem 0.375rem !important; /* 3px 6px */
    font-size: 0.6875rem !important; /* 11px */
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 0.3125rem 0.9375rem; /* 5px 15px */
    border-radius: 1.25rem; /* 20px */
    font-size: 0.75rem; /* 12px */
    font-weight: bold;
    text-align: center;
    color: white;
}

.status-aktif {
    background-color: #28a745;
}

.status-tidak-aktif {
    background-color: #dc3545;
}

.badge {
    font-size: 0.6875rem; /* 11px */
    font-weight: 500;
    padding: 0.25rem 0.375rem; /* 4px 6px */
    margin: 0.125rem; /* 2px */
}

/* Data Status Colors */
.data-selisih, .selisih {
    background-color: #dc3545 !important;
    color: white !important;
}

.data-sesuai, .sesuai {
    background-color: #28a745 !important;
    color: white !important;
}

.keterangan-selisih .badge,
.keterangan-sesuai .badge,
.badge-danger,
.badge-warning,
.badge-info {
    background-color: #343a40 !important;
    color: white !important;
}

/* Loading Styles */
#loader, .loading-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 1.25rem; /* 20px */
    border-radius: 0.3125rem; /* 5px */
    text-align: center;
}

/* Dropdown Styles */
.dropdown-menu {
    max-height: 18.75rem; /* 300px */
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    font-size: 0.8125rem; /* 13px */
    padding: 0.3125rem 0; /* 5px 0 */
}

.dropdown-item {
    padding: 0.5rem 0.75rem; /* 8px 12px */
    white-space: normal;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: #f5f9fc;
}

.dropdown-item div {
    line-height: 1.3;
    margin: 0.125rem 0; /* 2px 0 */
}

.dropdown-item strong {
    color: #000;
}

/* Responsive Table Container */
.table-container, .card-body {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

/* Toast Notification */
.toast {
    z-index: 1100;
}

/* Column Width Adjustments */
.table td:nth-child(5), 
.table td:nth-child(2) { 
    max-width: 18.75rem; /* 300px */
    white-space: normal !important;
}

/* Total Row Style */
.total-row {
    background-color: #f8f9fa;
    font-weight: bold;
}

.total-row td {
    color: #000 !important;
}
#searchInput, #filterTanggalInputAwal, #filterTanggalInputAkhir, #filterStatus, #filterMonth, #filterYear, #filterYearOBH {
            font-size: 0.65rem;
        }