/* --- Gaya Dasar & Body --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 95%; /* Diperlebar untuk tabel */
    margin: auto;
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 0;
}

hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

/* --- Gaya Formulir --- */
form {
    width: 100%;
}

fieldset {
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

legend {
    font-weight: bold;
    color: #0056b3;
    padding: 0 10px;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5);
}

input[readonly] {
    background-color: #f7fafc;
    cursor: not-allowed;
}

/* --- Gaya Tombol --- */
button {
    background-color: #0056b3;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #004494;
}

button:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

/* --- PERUBAHAN: Tombol Sekunder (Cetak Massal) menjadi Biru --- */
.tombol-sekunder {
    background-color: #007bff; /* Warna biru */
}

.tombol-sekunder:hover {
    background-color: #0056b3; /* Warna biru lebih gelap */
}
/* ----------------------------------------------------------- */


/* --- Gaya Header Dashboard --- */
.header-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-dashboard h1 {
    border-bottom: none;
    margin: 0;
}

.header-dashboard button {
    margin-top: 0;
    background-color: #c53030;
}

.header-dashboard button:hover {
    background-color: #9b2c2c;
}

/* --- Gaya Filter Dashboard --- */
.filter-dashboard {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-dashboard label {
    margin-top: 0;
    margin-bottom: 0;
}

/* --- Gaya Tabel Spreadsheet --- */
.table-wrapper {
    overflow-x: auto; /* Penting untuk scroll horizontal */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    white-space: nowrap; /* Mencegah teks turun baris */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

thead th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    top: 0;
}

tbody tr:hover {
    background-color: #f7fafc;
}

.table-input {
    width: 100px; /* Lebar input di dalam tabel */
    padding: 8px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.table-input:disabled {
    background-color: #edf2f7;
    border-color: #e2e8f0;
    color: #718096;
}

/* --- PERUBAHAN: Penataan Tombol Aksi di dalam Tabel --- */
.action-buttons {
    display: flex;
    gap: 5px; /* Memberi sedikit jarak antar tombol */
}

.tombol-submit-keuangan,
.tombol-edit-keuangan,
.tombol-cetak-perorang {
    font-size: 14px;
    padding: 8px 12px;
    margin: 0;
    width: 80px; /* Menyamakan lebar tombol */
    text-align: center;
}

.tombol-submit-keuangan {
    background-color: #2f855a; /* Hijau */
}
.tombol-submit-keuangan:hover {
    background-color: #276749;
}

.tombol-edit-keuangan {
    background-color: #ffc107; /* Kuning */
    color: #212529;
}
.tombol-edit-keuangan:hover {
    background-color: #e0a800;
}

.tombol-cetak-perorang {
    background-color: #007bff; /* Biru */
}
.tombol-cetak-perorang:hover {
    background-color: #0056b3;
}
/* ---------------------------------------------------- */


/* --- Gaya Modal (Pop-up) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* --- Gaya Status --- */
.status {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.status.lunas {
    background-color: #c6f6d5;
    color: #2f855a;
}
.status.belum-lunas {
    background-color: #feebc8;
    color: #9c4221;
}

/* --- Gaya Modal Notifikasi --- */
.notification-modal .modal-content {
    text-align: center;
}
.notification-modal a {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 2px;
}
.notification-modal a:hover {
    color: #004494;
}
;