/* =============================================== */
/* === GAYA FONT UNIVERSAL BARU === */
/* =============================================== */

/* Gaya dasar untuk semua label yang ingin disamakan */
.label-text {
    font-size: 15px; /* Ukuran font untuk Desktop */
    font-weight: normal;
    color: #2c3e50;
}

/* Gaya untuk label yang perlu di-bold */
.label-text-bold {
    font-weight: bold;
}

/* Penyesuaian ukuran font untuk Mobile */
@media (max-width: 767px) {
    .label-text {
        font-size: 13px; /* Ukuran font lebih kecil untuk Mobile */
    }
}


/* =============================================== */
/* === GAYA TABEL LAIN-LAIN === */
/* =============================================== */

.lain-lain-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.lain-lain-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
}

.lain-lain-table td:first-child { width: 40%; }
.lain-lain-table td:nth-child(2) { width: 30%; }
.lain-lain-table td:nth-child(3) { width: 30%; }

.lain-lain-table .input-currency-wrapper {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px 12px;
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lain-lain-table .input-currency-wrapper input {
    border: none;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    background-color: transparent;
}

.lain-lain-table .input-currency-wrapper:focus-within {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.lain-lain-table .currency-prefix {
    font-size: 13px;
    color: #555;
    margin-right: 4px;
    font-weight: 600;
}

/* Menghapus blok penyeragaman font yang lama */

.lain-lain-table .total-row td { background-color: #f9f9f9; }
.lain-lain-table .total-row .input-currency-wrapper { background-color: #f0f0f0; }

.lain-lain-table .total-tunai-row td { background-color: #f9f9f9; }
.lain-lain-table .total-tunai-row .input-currency-wrapper { background-color: #f0f0f0; }

.lain-lain-table .selisih-row .input-currency-wrapper {
    font-weight: bold;
    border-color: transparent;
    background-color: transparent;
}

.lain-lain-table tfoot .input-currency-wrapper span:last-child {
    flex-grow: 1;
    text-align: right;
}

#miscDifferenceWrapper.kurang { background-color: #ffebee; border: 1px solid #f5c6cb; }
#miscDifferenceWrapper.lebih { background-color: #e8f5e9; border: 1px solid #c3e6cb; }
#miscDifferenceWrapper.kurang span { color: #c62828; }
#miscDifferenceWrapper.lebih span { color: #2e7d32; }
#miscDifferenceValue { padding: 0; background-color: transparent; border-radius: 0; }
.align-top-left { vertical-align: top !important; }

/* --- Denomination & Tab Styles --- */
#petty-cash-denomination-section h4,
#modal-kasir-denomination-section h4 {
    font-size: 15px; font-weight: 600; color: #2c3e50; margin-bottom: 15px;
}

#petty-cash-denomination-section .denomination-grid,
#modal-kasir-denomination-section .denomination-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pettycashdanmodalkasir-tab-navigation {
    display: flex; justify-content: center; background-color: #2c3e50;
    padding: 10px 5px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 10;
}
.pettycashdanmodalkasir-tab-button {
    flex: 1; padding: 12px 15px; border: none; background-color: transparent;
    color: #bdc3c7; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; text-align: center; white-space: nowrap;
}
.pettycashdanmodalkasir-tab-button:hover { background-color: #34495e; color: #ffffff; }
.pettycashdanmodalkasir-tab-button.active {
    background-color: #ffffff; color: #e84393;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); transform: translateY(-1px);
}
.pettycashdanmodalkasir-tab-content { display: none; }
.pettycashdanmodalkasir-tab-content.active { display: block; }

/* Media Queries untuk tampilan mobile */
@media (max-width: 767px) {
    #petty-cash-denomination-section .denomination-grid,
    #modal-kasir-denomination-section .denomination-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lain-lain-table { display: block; border: none; }
    .lain-lain-table tbody, .lain-lain-table tfoot, .lain-lain-table tr { display: block; width: 100%; }
    .lain-lain-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding: 10px;
        box-sizing: border-box;
    }
    .lain-lain-table td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 5px 0;
        text-align: left;
    }
    .lain-lain-table .align-top-left {
        font-weight: bold;
        text-align: center;
        background-color: #f9f9f9;
        padding: 8px;
        border-radius: 4px;
        margin-bottom: 5px;
    }

    .lain-lain-table .total-row { display: flex; justify-content: space-between; align-items: center; }
    .lain-lain-table .total-row td { width: auto !important; }

    .lain-lain-table .total-tunai-row { display: block; }
    .lain-lain-table .total-tunai-row td { width: 100% !important; background-color: transparent; }
    .lain-lain-table .total-tunai-row td:first-child { margin-bottom: 8px; }

    .lain-lain-table .selisih-row { display: block; }
    .lain-lain-table .selisih-row td { width: 100% !important; }
    .lain-lain-table .selisih-row td:first-child { margin-bottom: 8px; }
}
