/* ============================================================
   batch.css — CSV batch-export paneel in de editor-zijbalk

   Eigen bestand in plaats van onderaan editor.css: dit paneel is
   optioneel (alleen zichtbaar als "Batch-export via CSV" aanstaat op
   een template), dus het hoort niet verweven te zitten met de CSS van
   de vaste editor-onderdelen.

   Kleuren gebruiken dezelfde variabelen als editor.css, met een
   letterlijke fallback erachter: dit bestand kan ook geladen worden op
   een pagina waar :root die variabelen niet zet.
   ============================================================ */

.batch-section {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.batch-intro {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

/* ── Knoppen ───────────────────────────────────────────────────────── */

.batch-btn {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: var(--navy, #0a1955);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}

.batch-btn:hover:not(:disabled) { opacity: 0.88; }

.batch-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.batch-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ── Bestandskeuze ─────────────────────────────────────────────────── */

.batch-upload {
    display: block;
    margin-top: 10px;
    padding: 18px 14px;
    border: 1.5px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.batch-upload:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.batch-upload input[type="file"] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

.batch-upload strong { color: #fff; font-weight: 600; }

/* ── Statusblok ────────────────────────────────────────────────────── */

.batch-status {
    display: none;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    /* Een rapport met veel meldingen mag de zijbalk niet oneindig laten
       groeien — dan verdwijnen de exportknoppen onder de paginarand. */
    max-height: 260px;
    overflow-y: auto;
}

.batch-status.visible { display: block; }

.batch-status--info {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.85);
}

.batch-status--error {
    background: rgba(220, 80, 145, 0.16);   /* SteppPink, gedempt */
    color: #fff;
}

.batch-status .batch-warn {
    font-weight: 600;
    color: #f0be8c;                          /* SteppSkin — opvallend, niet alarmerend */
}

.batch-status .batch-btn {
    margin-top: 10px;
}

/* ── Acties + voortgang ────────────────────────────────────────────── */

.batch-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.batch-progress { margin-top: 12px; }

.batch-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.batch-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--navy-light, #00a0d2);
    transition: width 0.2s;
}

.batch-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.batch-cancel {
    flex-shrink: 0;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

.batch-cancel:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
