/* --- Algemene Variabelen & Reset --- */
:root {
    --jvp-beige: #ab9b86;
    --jvp-beige-light: rgba(171, 155, 134, 0.24); /* #ab9b863d equivalent */
    --jvp-white-soft: rgba(255, 255, 255, 0.15);
    --jvp-text-dark: #333;
    --jvp-text-muted: #999;
}

/* --- Sidebar Layout --- */
.offerte-sidebar-container {
    background-color: var(--jvp-beige);
    padding: 25px 20px;
    border-radius: 20px;
    color: white;
    min-height: 450px;
}

.sidebar-header {
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-new-btn { 
    width: 100%; 
    background: var(--jvp-white-soft); 
    border: 1px solid rgba(255,255,255,0.3); 
    color: white; 
    padding: 12px; 
    border-radius: 12px; 
    margin-bottom: 25px; 
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.sidebar-new-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.offerte-list-item {
    background: var(--jvp-white-soft);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.offerte-list-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.offerte-list-item strong {
    display: block;
    font-size: 14px;
}

.offerte-list-item span {
    font-size: 12px;
    opacity: 0.8;
}

/* --- Formulier Layout & Grid --- */
.offerte-main-container {
    padding: 10px;
}

.offerte-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Input Velden --- */
.form-field {
    margin-bottom: 22px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--jvp-text-dark);
}

.form-field input, 
.form-field textarea,
.partners-labels-box {
    background-color: var(--jvp-beige-light);
    border: none;
    border-radius: 30px;
    padding: 14px 22px;
    width: 100%;
    color: var(--jvp-text-dark);
    font-family: inherit;
}

.large-textarea {
    height: 220px;
    border-radius: 25px !important;
    resize: none;
}

/* --- Partners & Tags --- */
.partners-labels-box {
    min-height: 54px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 25px;
}

.partner-tag {
    background-color: var(--jvp-beige);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-partner {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* --- Knoppen --- */
.offerte-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-beige-outline, 
.btn-beige-solid {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-beige-outline {
    background: none;
    border: 2px solid var(--jvp-beige);
    color: var(--jvp-beige);
}

.btn-beige-outline:hover {
    background: var(--jvp-beige);
    color: white;
}

.btn-beige-solid {
    background: var(--jvp-beige);
    border: none;
    color: white;
}

.btn-beige-solid:hover {
    filter: brightness(1.1);
}

/* --- Modal Styling --- */
/* --- Modal Basis --- */
.jvp-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Iets lichter voor zachte overlay */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jvp-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px; /* Iets strakker zoals in screenshot */
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header-row h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

/* --- Zoeken & Filters --- */
.modal-filters-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-filters-top input, 
.modal-filters-top select {
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 12px 25px;
    outline: none;
    font-size: 15px;
    color: #4a5568;
    background-color: #fff;
    transition: border-color 0.2s;
}

.modal-filters-top input:focus {
    border-color: var(--jvp-beige);
}

/* --- Tabs Design (Bijlage Stijl) --- */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 0; /* Content box sluit hierop aan */
    gap: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--jvp-beige);
    border: 1px solid #edf2f7;
    border-bottom: 2px solid white; /* Verbergt de onderste lijn */
    border-radius: 30px 30px 0 0; /* De karakteristieke ronde bovenkant */
    background: white;
    margin-bottom: -1px; /* Overlapt de border-bottom van de container */
}

/* --- Leveranciers Lijst Container --- */
.modal-body-scroll {
    overflow-y: auto;
    flex-grow: 1;
    border: 1px solid #edf2f7;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 10px 25px;
}

/* --- Partner Rijen (Annex Style) --- */
.partner-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f7fafc;
}

.partner-row-item:last-child {
    border-bottom: none;
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-name {
    font-weight: 700;
    font-size: 17px;
    color: #2d3748;
}

.partner-category {
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Selecteer Knop --- */
.btn-select-partner {
    background-color: #ab9b86; /* Je custom beige */
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 12px; /* Iets minder rond voor de knop in de rij */
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-select-partner:hover {
    filter: brightness(0.9);
}

/* Scrollbar styling voor een cleanere look */
.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
}
.modal-body-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.modal-body-scroll::-webkit-scrollbar-thumb {
    background: #ab9b86;
    border-radius: 10px;
}

.tab-content {
    display: none; /* Verberg alle tabs */
}

.tab-content.active {
    display: block; /* Toon alleen de actieve tab */
}

.btn-beige {
    background: rgb(184 170 152);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}
/* --- Responsive --- */
@media (max-width: 991px) {
    .offerte-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-filters-top {
        grid-template-columns: 1fr;
    }
}