/* --- Container utama --- */
.container-penerimaan {
    width: 90%;
    margin: 40px auto;
    font-family: 'Poppins', sans-serif;
}

/* --- Tab tombol (Pengadaan / Penerimaan) --- */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 25px;
    border-radius: 8px;
    border: 1.5px solid #d0d7e3;
    background-color: #f8f9fb;
    color: #001f3f;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(28, 63, 119, 0.1);
    transition: left 0.3s ease;
    border-radius: 8px;
}

.tab-button:hover::after {
    left: 0;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 63, 119, 0.2);
}

.tab-button:active {
    transform: scale(0.96);
}

.tab-button.active {
    background-color: #1c3f77;
    color: #fff;
    border-color: #1c3f77;
    box-shadow: 0 6px 12px rgba(28, 63, 119, 0.25);
    transform: scale(1.03);
}

/* --- Form tanggal --- */
.form-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.label {
    font-weight: 600;
    color: #1c3f77;
    letter-spacing: 0.5px;
}

.input-date {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d0d7e3;
    outline: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.input-date:focus {
    border-color: #1c3f77;
    box-shadow: 0 0 0 3px rgba(28, 63, 119, 0.15);
}

/* --- Table --- */
.table-penerimaan {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-penerimaan {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-penerimaan thead {
    background-color: #f5f6fa;
    color: #001f3f;
    font-weight: 600;
}

.table-penerimaan th,
.table-penerimaan td {
    padding: 12px 18px;
    border-bottom: 1px solid #e0e4eb;
    font-size: 14px;
}

.table-penerimaan tr:last-child td {
    border-bottom: none;
}

.table-penerimaan tbody tr:hover {
    background-color: #f2f6fc;
    transition: background-color 0.2s ease;
}
/* --- Counter (+/-) --- */
.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.counter-input {
    width: 55px;
    height: 34px;
    text-align: center;
    border: 1px solid #d0d7e3;
    border-radius: 8px;
    background-color: #f9fafb;
    font-weight: 600;
    color: #1c3f77;
    font-size: 14px;
}

.btn-counter {
    background-color: #1c3f77;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.btn-counter:hover {
    background-color: #2b5c99;
    transform: scale(1.05);
}

/* --- Select kondisi --- */
.select-kondisi {
    border: 1px solid #d0d7e3;
    border-radius: 8px;
    padding: 8px 10px;
    background-color: #f9fafb;
    color: #1c3f77;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-kondisi:focus {
    outline: none;
    border-color: #1c3f77;
    box-shadow: 0 0 0 3px rgba(28, 63, 119, 0.15);
}

/* --- Responsif --- */
@media (max-width: 992px) {
    .form-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .input-date {
        width: 100%;
    }

    .table {
        font-size: 13px;
    }

    .counter {
        gap: 4px;
    }

    .btn-counter {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .counter-input {
        width: 50px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }

    .table-container {
        border-radius: 8px;
        overflow-x: auto;
    }

    .table {
        min-width: 600px;
    }
}

@media (max-width: 576px) {
    .table {
        min-width: 550px;
    }

    .tab-button {
        width: 100%;
        text-align: center;
    }
}

.container-form-penerimaan {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.judul {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

/* ===== INFO PENGADAAN ===== */
.info-box {
    background: #f5f7fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #007bff;
}

.info-box p {
    margin: 5px 0;
    font-size: 15px;
}

/* ===== TABLE ====== */
.table-container {
    overflow-x: auto;
}

.table-form {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.table-form thead {
    background: #1a3365;
    color: #fff;
}

.table-form th,
.table-form td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.table-form tbody tr:hover {
    background: #f1f5ff;
}

/* ===== INPUT JUMLAH ===== */
.input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn-minus,
.btn-plus {
    background: #007bff;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    line-height: 0;
}

.btn-minus:hover,
.btn-plus:hover {
    background: #0056b3;
}

.input-jumlah {
    width: 70px;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #aaa;
}

/* ===== BUTTON GROUP ===== */
.btn-container {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}

.btn-kembali,
.btn-simpan {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: white;
}

.btn-kembali {
    background: #6c757d;
}

.btn-kembali:hover {
    background: #5a6268;
}

.btn-simpan {
    background: #17325e;
    border: none;
}

.btn-simpan:hover {
    background: #052760;
}
/* =========================
   MODAL KETERANGAN PENGADAAN
========================= */
.modal-keterangan-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-keterangan-box {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-keterangan-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.modal-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.modal-keterangan-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

}

.modal-keterangan-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.modal-keterangan-header p {
    margin: 6px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.modal-keterangan-body {
    padding: 24px;
    background: #f8fafc;
}

.keterangan-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #17325e;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.keterangan-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #17325e;
    margin-bottom: 12px;
}

#isiKeterangan {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    white-space: pre-line;
}

.modal-keterangan-footer {
    padding: 18px 24px 24px;
    display: flex;
    justify-content: flex-end;
    background: white;
}

.btn-tutup-modal {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-tutup-modal:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
}
}

.keterangan-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #17325e;
    margin-bottom: 12px;
}

#isiKeterangan {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    white-space: pre-line;
}

.modal-keterangan-footer {
    padding: 18px 24px 24px;
    display: flex;
    justify-content: flex-end;
    background: white;
}

.btn-tutup-modal {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-tutup-modal:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
}
