/* Bestandsdoel: aanvullende styles voor landing-gerelateerde pagina-elementen en modals. */
/* Algemene styling */
body {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #1f2937;
}

/* Status pill */
.status-pill {
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    z-index: 50;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: min(600px, calc(100vw - 2rem));
    max-height: min(90vh, 800px);
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal-header {
    background: #0f172a;
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.modal-body {
    padding: 20px;
}

.modal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .modal-row {
        flex-direction: column;
    }

    .modal-row>div {
        width: 100%;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

.modal-row-field {
    flex: 1;
    min-width: 8rem;
}

.modal-row-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.modal-readonly-field,
.modal-section-text {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    min-height: 2.25rem;
    box-sizing: border-box;
}

.modal-readonly-field {
    padding: 8px 10px;
    width: 100%;
}

.modal-readonly-field.is-empty {
    color: #9ca3af;
}

.modal-section-text {
    padding: 10px;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

#fieldlabModal.modal-overlay {
    display: none;
    z-index: 100;
}
