* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, #2c419b 0%, #1a7e4c 100%);
    color: white;
    text-align: center;
    padding: 20px 0;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header .logo1{
    float: left;
    margin-right: -35px;
    margin-left: 50px;
    width: 8.5%;
}
.header .logo2{
    float: left;
    margin-right: -50px;
    margin-left: 50px;
    width: 8.6%;
}

.header h1 {
    font-size: 2.5rem;
    text-align: left;
    margin-left: 320px;
    letter-spacing: 3.0px;
    word-spacing: 11px;
}

.header p {
    font-size: 1.1rem;
    text-align: left;
    margin-left: 320px;
    margin-top: -10px;
    font-weight: bold;
    margin-bottom: 18px;
}

.header .header-subunit {
    display: block;
    width: fit-content;
    margin-left: 320px;
    margin-top: -14px;
    margin-bottom: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    background-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.filter-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-section h3 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 1.3rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.btn-filter {
    background: linear-gradient(135deg, #1c8be6 0%, #139c95 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-card.income {
    border-left: 5px solid #10b981;
}

.summary-card.expense {
    border-left: 5px solid #f59e0b;
}

.summary-card.balance {
    border-left: 5px solid #687edf;
}

.summary-card h4 {
    color: #666;
    margin-bottom: 0px;
    font-size: 1rem;
}

.summary-card .amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #333;
    padding: 20px;
    text-align: center;
    /* background-color: #fbfdff; */
}

.table-header h3 {
    font-size: 1.4rem;
    min-width: 800px
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background-color: #3e54b3;
}

th, td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
th {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    background-color: #3e54b3;
}
tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f1f5f9;
}

.jenis-pemasukan {
    background-color: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.jenis-pengeluaran {
    background-color: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-bukti {
    background-color: #3595b3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.btn-bukti:hover {
    background-color: #5a67d8;
}

.btn-kok {
    background-color: #1dad76;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.btn-kok:hover {
    background-color: #49dda4;
}

.jumlah-pemasukan {
    color: #059669;
    font-weight: 600;
}

.jumlah-pengeluaran {
    color: #dc2626;
    font-weight: 600;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    table {
        font-size: 0.85rem;
    }

    .table-container {
        /* border-radius: 1; */
        overflow-x: auto;
    }

    th, td {
        padding: 10px 5px;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .table-header {
        text-align: left;
    }
    .header .logo1{
        float: none;
        margin-right: 0px;
        margin-left: 0px;
        width: 28%;
        margin-top: 10px;
    }
    .header .logo2{
        float: none;
        margin-right: 0px;
        margin-left: 0px;
        width: 28%;
    }
    /* .header .logo1{
        float: left;
        border: 1px solid red;
        margin-right: -35px;
        margin-left: 50px;
        width: 8.5%;
    }
    .header .logo2{
        float: left;
        border: 1px solid rgb(34, 170, 136);
        margin-right: -50px;
        margin-left: 50px;
        width: 10%;
    } */
    .header h1 {
        font-size: 1.7rem;
        margin-bottom: 10px;
        text-align: center;
        margin-left: 0px;
        letter-spacing: 0px;
        word-spacing: 0px;
        margin-top: 10px;
    }
    .header p {
        text-align: center;
        margin-left: 0px;
        font-size: 1.1em;
        padding-left: 10px;
        padding-right: 10px;
        line-height: 25px;
        margin-top: 0px;
    }
    .header .header-subunit {
        font-size: 0.78rem;
        line-height: 18px;
        margin: -4px auto 8px;
        padding: 5px 10px;
    }
    .modal-content {
        min-width: 300px;
    }
}

.data-row {
    display: table-row;
}

.data-row.hidden,
.data-row.filter-hidden,
.data-row.page-hidden {
    display: none;
}

.pagination-bar {
    align-items: center;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    min-width: 800px;
    padding: 16px 20px;
}

.pagination-info {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination-controls,
.pagination-pages {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-btn {
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn.active {
    background-color: #3e54b3;
    border-color: #3e54b3;
    color: white;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 768px) {
    .pagination-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-controls {
        justify-content: center;
    }

    .pagination-btn {
        padding: 9px 10px;
    }
}

footer {
    background: linear-gradient(135deg, #2c419b 0%, #1a7e4c 100%);
    color: white;
    padding: 28px;
    font-size: 0.9rem;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-footer {
    overflow: hidden;
}

.footer-content {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 0.75fr) minmax(170px, 0.7fr) minmax(190px, 0.75fr);
    text-align: left;
}

.footer-brand {
    align-items: center;
    display: flex;
    gap: 14px;
}

.footer-logo {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 76px;
}

.footer-brand h2 {
    color: white;
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 5px;
}

.footer-brand p,
.footer-info p,
.footer-contact span {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.footer-info {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    display: grid;
    gap: 6px;
    padding-left: 18px;
}

.footer-info p:first-child {
    color: white;
    font-weight: 700;
}

.footer-contact {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-contact a {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: inline-block;
    font-weight: 700;
    padding: 8px 12px;
}

.footer-counter {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding-left: 18px;
    text-align: center;
}

.footer-counter img {
    border-radius: 6px;
    max-width: 100%;
}

footer a{
    color: white;
    text-decoration: none;
}
footer a:hover{
    color: rgb(208, 245, 45);
}

@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.8fr);
    }

    .footer-info,
    .footer-counter {
        border-left: 0;
        padding-left: 0;
    }

    .footer-info {
        border-top: 0;
        padding-top: 0;
    }

    .footer-counter {
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        padding-top: 16px;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-info,
    .footer-counter {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        padding-left: 0;
        padding-top: 16px;
        text-align: left;
    }
}

@media (max-width: 520px) {
    footer {
        padding: 22px;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-counter {
        text-align: center;
    }
}



.tabelKok{
    line-height: 20px;
    min-width: 280px;
}
.tabelKok td{
    white-space: normal;   /* izinkan teks pindah ke baris baru */
    word-wrap: break-word !important; /* pecah kata panjang kalau perlu */
    word-break: break-word !important; /* untuk browser modern */
}
.modal-content-kok {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 70%;
    overflow: auto;
}
