.form-pengadaan {
    font-family: 'Poppins', sans-serif;
    color: #000;
}

.custom-input, .form-select {
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 8px;
}

.search-bar .search-input {
    border-radius: 12px 0 0 12px;
    padding: 10px;
    border: 1px solid #cfd8dc;
}

.btn-search {
    background-color: #fff;
    border: 1px solid #cfd8dc;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

/* ====== TABLE SECTION ====== */
.table-kategori-barang {
    overflow: visible !important;
}

.table-kategori-barang table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: visible !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.table-kategori-barang td {
    border-top: 1px solid #eee;
    padding: 12px;
    font-size: 14px;
    overflow: visible !important;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 0;
}

.btn-qty {
    background-color: #1c3f77 !important;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    padding: 2px 8px;
    border: none;
}

.btn-edit {
    background-color: #1c3f77;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 20px;
    font-weight: 500;
}

.btn-cancel {
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #a12020;
}

.btn-submit {
    background: #1a2a47;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: bold;
    cursor: pointer;
}

.btn-cancel:hover, .btn-submit:hover, .btn-edit:hover, .btn-qty:hover {
    background: #203864;
}

/* ====== MODAL OVERLAY ====== */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(4px);
}

/* ====== MODAL CONTENT KHUSUS DETAIL ====== */
.modal-detail {
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    margin: 0 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1c3f77;
    margin-bottom: 25px;
}

/* ====== ISI DETAIL ====== */
.modal-detail-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #000;
}

.detail-total {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* ====== TOMBOL ====== */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn-proses {
    background-color: #1c3f77;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 30px;
    font-weight: 600;
    cursor: pointer;
}

.btn-batal {
    background-color: #d62828  !important;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 30px;
    font-weight: 600;
    cursor: pointer;
}
/* ==== Dropdown Search Mirip Ajukan Peminjaman ==== */
.dropdown-search {
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* item */
.dropdown-search .list-group-item {
    cursor: pointer;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #f1f1f1;
}

/* hover seperti ajukan peminjaman */
.dropdown-search .list-group-item:hover {
    background-color: #f8f9fa;
}

/* biar tidak terlalu tebal */
.dropdown-search .list-group-item:last-child {
    border-bottom: none;
}

/* scroll bar lembut */
.dropdown-search::-webkit-scrollbar {
    width: 6px;
}
.dropdown-search::-webkit-scrollbar-thumb {
    background: #c3c3c3;
    border-radius: 4px;
}
.dropdown-search {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-input {
    width: 50px;
    text-align: center;
}
.btn-edit {
    background: #1a3365;
    border: none;
    color: white;
}

.btn-minus,
.btn-plus {
    width: 30px;
    height: 30px;
    font-weight: bold;
    border: 1px solid #17325e;
    background: #17325e;
    cursor: pointer;
    color: white;
}

.btn-proses:hover { background-color: #17325e; }
.btn-batal:hover { background-color: #b51f1f; }
