.penempatan-container {
    width: 90%;
    margin: auto;
    font-family: 'Poppins', sans-serif;
}

.penempatan-title {
    font-weight: 700;
    color: #1a3365;
    letter-spacing: 1px;
    font-family: 'Bebas Neue', sans-serif;
}

/* ===== FILTER SECTION ===== */
.penempatan-filters {
    background: transparent;
    padding: 10px 0;
    border: none;
}

.penempatan-input {
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #f8f9fb;
    transition: 0.2s ease;
}

.penempatan-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 51, 101, 0.2);
}

/* ===== BUTTON ===== */
.penempatan-pindahBtn {
    background: #0B3D91 !important;
    color: #fff !important;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    transition: all 0.2s ease;
    padding: 10px 18px;
}

.penempatan-pindahBtn:hover {
    background-color: #142851;
}

/* ===== TABLE ===== */
.penempatan-tableWrapper {
    margin-top: 10px;
}

.penempatan-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.penempatan-table th {
    background: #f5f7fa;
    text-transform: uppercase;
    font-size: 13px;
    color: #333;
    padding: 12px;
    text-align: left;
}

.penempatan-table td {
    padding: 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

/* ===== HISTORY MODAL - UNIQUE STYLING ===== */
/* Modal dialog - extra wide */
.history-modal .modal-dialog {
    max-width: 1600px !important;
    width: 98% !important;
    margin: 1rem auto;
}

/* Modal content wrapper */
.history-modal .modal-content {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    border: none;
}

/* Modal header styling */
.history-modal .modal-header {
    background: linear-gradient(135deg, #0B3D91 0%, #1a5fc9 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.2);
}

.history-modal .modal-title {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.3px;
}

.history-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.history-modal .btn-close:hover {
    opacity: 1;
}

/* Modal body styling */
.history-modal .modal-body {
    padding: 30px 40px;
    background: linear-gradient(to bottom, #f9fafc 0%, #ffffff 100%);
    max-height: 75vh;
    overflow-y: auto;
}

/* Custom scrollbar untuk modal body */
.history-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.history-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.history-modal .modal-body::-webkit-scrollbar-thumb {
    background: #0B3D91;
    border-radius: 10px;
}

.history-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #142851;
}

/* Styling untuk info barang di atas */
.history-modal h6.fw-bold {
    color: #1a3365;
    font-size: 17px;
    padding: 14px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #0B3D91;
    margin-bottom: 25px;
}

/* Enhanced card untuk history items */
.history-modal .card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.history-modal .card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #0B3D91 0%, #1a5fc9 100%);
}

.history-modal .card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.history-modal .card-body {
    padding: 24px 24px 24px 28px;
}

.history-modal .card .text-muted {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #7a8699 !important;
    margin-bottom: 5px;
    display: block;
}

.history-modal .card .fw-semibold {
    font-size: 15px;
    color: #1a3365;
    font-weight: 600;
}

.history-modal .card .badge {
    padding: 6px 14px;
    font-weight: 500;
    font-size: 12px;
    border-radius: 20px;
}

/* Grid spacing dalam card */
.history-modal .card .row.g-3 {
    margin-bottom: 0;
}

.history-modal .card .col-md-6,
.history-modal .card .col-md-4,
.history-modal .card .col-12 {
    margin-bottom: 0;
}

/* Styling khusus untuk kolom keterangan */
.history-modal .card .col-12 > div:not(.text-muted) {
    background: #f8f9fb;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    margin-top: 4px;
}

/* Modal footer */
.history-modal .modal-footer {
    background: #f9fafc;
    border-top: 1px solid #e8ecf1;
    padding: 18px 30px;
}

.history-modal .modal-footer .btn-secondary {
    background-color: #e8ecf1 !important;
    color: #495057 !important;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 24px;
    border: none;
    transition: 0.2s ease;
}

.history-modal .modal-footer .btn-secondary:hover {
    background-color: #d4dae3 !important;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .history-modal .modal-dialog {
        max-width: 95% !important;
    }
}

@media (max-width: 768px) {
    .history-modal .modal-dialog {
        max-width: 95% !important;
        width: 95% !important;
        margin: 10px auto;
    }

    .history-modal .modal-body {
        padding: 20px 15px;
    }

    .history-modal .card-body {
        padding: 18px 15px 18px 20px;
    }

    .history-modal h6.fw-bold {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* ===== MODAL PENEMPATAN (untuk modal lain) ===== */
.modal-penempatan {
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.modal-penempatan .modal-header {
    background-color: #0B3D91;
    color: white;
    border-bottom: none;
    padding: 15px 25px;
}

.modal-penempatan .modal-title {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.modal-penempatan .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-penempatan .modal-body {
    padding: 25px;
    background-color: #f9fafc;
}

.modal-penempatan .form-label {
    color: #1a3365;
    font-weight: 500;
    font-size: 14px;
}

.modal-penempatan .penempatan-input {
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #fff;
    transition: 0.2s ease;
}

.modal-penempatan .penempatan-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 51, 101, 0.2);
}

/* Modal buttons untuk modal penempatan */
.modal-btn-cancel {
    background-color: #ccc !important;
    color: #333 !important;
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 18px;
    border: none;
    transition: 0.2s ease;
}

.modal-btn-cancel:hover {
    background-color: #b5b5b5 !important;
}

.modal-btn-save {
    background-color: #0B3D91 !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 22px;
    border: none;
    transition: 0.25s ease;
}

.modal-btn-save:hover {
    background-color: #142851 !important;
    transform: translateY(-2px);
}
