* {
    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: 10%;
}

.header h1 {
    font-size: 2.5rem;
    text-align: left;
    margin-left: 320px;
    letter-spacing: 5.2px;
    word-spacing: 12px;
}

.header p {
    font-size: 1.1rem;
    text-align: left;
    margin-left: 320px;
    margin-top: -10px;
    font-weight: bold;
    margin-bottom: 18px;
}

.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: 33%;
    }
    /* .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;
    }
    .modal-content {
        min-width: 300px;
    }
}

.data-row {
    display: table-row;
}

.data-row.hidden {
    display: none;
}

footer {
    background: linear-gradient(135deg, #2c419b 0%, #1a7e4c 100%);
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
footer a{
    color: white;
    text-decoration: none;
}
footer a:hover{
    color: rgb(208, 245, 45);
}



.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;
}