/* =============================================== */
/* === 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 */
    }
}


/* --- New Omzet Tab Navigation Styles --- */
.omzet-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;
}

.omzet-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;
}

.omzet-tab-button:hover {
    background-color: #34495e;
    color: #ffffff;
}

.omzet-tab-button.active {
    background-color: #ffffff;
    color: #e84393;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.omzet-tab-content { display: none; }
.omzet-tab-content.active { display: block; }
.omzet-tab-content .card:first-child { margin-top: 0; }


/* Styles for currency input */
.input-currency-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #bdc3c7;
    padding: 0 12px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-currency-wrapper:focus-within {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.input-currency-wrapper .currency-prefix {
    font-size: 14px;
    color: #555;
    margin-right: 8px;
    font-weight: 600;
}

.input-currency-wrapper input[type="text"] {
    border: none;
    padding: 12px 0;
    width: 100%;
    flex-grow: 1;
    background-color: transparent;
}

.input-currency-wrapper input[type="text"]:focus {
    outline: none;
    box-shadow: none;
}

/* Menghapus gaya lama agar tidak duplikat */
label[for="explanation"],
#denomination-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

#denomination-section h4 { margin-bottom: 15px; }
.denomination-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.denomination-table-container h5 { margin-top: 15px; margin-bottom: 10px; font-size: 14px; color: #555; text-align: center; }
.denomination-table { width: 100%; border-collapse: collapse; }
.denomination-table th, .denomination-table td { border: 1px solid #ddd; padding: 8px; text-align: center; font-size: 13px; vertical-align: middle; }
.denomination-table th { background-color: #f2f2f2; font-weight: 600; }
.denomination-table td:first-child { text-align: left; font-weight: 500;}
.denomination-table td:last-child { text-align: right; background-color: #f9f9f9; font-weight: 500; }
.denomination-table input { padding: 6px; font-size: 13px; width: 80%; text-align: center; box-sizing: border-box; border: 1px solid #eee; }


.section-result { margin-top: 25px; }
.result-row { display: flex; justify-content: space-between; padding: 14px 10px; border-bottom: 1px solid #f0f0f0; }
.result-row span:first-child {
    font-size: 15px;
    color: #2c3e50;
}
@media (max-width: 767px) {
    .result-row span:first-child {
        font-size: 13px;
    }
}


.bold-result { background-color: #f9f9f9; }
.result-row:last-child { border: none; }

/* === PERUBAHAN UTAMA DI SINI === */
.result-row span:last-child {
    font-weight: bold;
    /* 1. Membuat semua span kanan memiliki lebar minimum dan rata kanan */
    min-width: 100px; /* Sesuaikan jika perlu */
    text-align: right;
    display: inline-block; /* Diperlukan agar text-align dan width berfungsi */
}

/* 2. Menghapus padding horizontal dan memastikannya tetap rata kanan */
#selisih.kurang,
#selisih.lebih {
    padding: 5px 0; /* Hapus padding kiri-kanan */
    text-align: right; /* Pastikan teks tetap rata kanan */
    width: 100%; /* Memenuhi lebar dari min-width parent */
    box-sizing: border-box;
}

/* 3. Memberi warna pada teks, bukan background-nya, agar tidak terlihat aneh */
#selisih.kurang {
    color: #c62828;
    background-color: transparent;
}
#selisih.lebih {
    color: #2e7d32;
    background-color: transparent;
}


/* Tabel & Tombol Nota */
.note-tables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.note-table-container { display: flex; flex-direction: column; }
.note-table-container h3 { font-size: 16px; margin-top: 0; text-align: center; color: #34495e; }
.note-table { width: 100%; border-collapse: collapse; }
.note-table th, .note-table td { border: 1px solid #ddd; padding: 8px; text-align: left; font-size: 12px; }
.note-table th { background-color: #f2f2f2; font-weight: 600; }
.note-table input { padding: 6px; font-size: 12px; width: 100%; box-sizing: border-box; border: 1px solid #eee; }
.note-table th:last-child, .note-table td:last-child { width: 50px; text-align: center; }
.btn-delete-row {
    background-color: #e74c3c; color: white; border: none;
    cursor: pointer; padding: 4px 8px; font-size: 12px; font-weight: bold;
    transition: background-color 0.2s;
}
.btn-delete-row:hover { background-color: #c0392b; }
.btn-add-row {
    margin-top: 10px; padding: 8px 12px; font-size: 12px; font-weight: 600;
    background-color: #2ecc71; color: white; border: none;
    cursor: pointer; align-self: flex-end;
    transition: background-color 0.2s;
}
.btn-add-row:hover { background-color: #27ae60; }

/* Lampiran */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.upload-group { display: flex; flex-direction: column; }
.image-preview-container {
    margin-top: 10px; border: 2px dashed #bdc3c7;
    width: 100%; min-height: 120px; background-color: #f9f9f9;
    padding: 10px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 10px;
}
.image-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #ccc;
}
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.delete-image-button {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.delete-image-button:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .denomination-grid, .note-tables-grid, .upload-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .omzet-tab-button {
        font-size: 13px;
        padding: 8px 10px;
    }
}
