/* ===== Batch Access Check (BAC) - 3 Block Layout ===== */
.bac-wrapper {
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #111827;
    line-height: 1.5;
}

/* ===== BATCH ACCESS CHECK - POPUP OVERLAY ===== */

/* Tmavé pozadí přes celou obrazovku */
.bac-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* černé pozadí s průhledností 0.5 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    overflow-y: auto;
    animation: bac-fade-in 0.3s ease;
}

/* Bílý popup box */
.bac-popup {
    background: #ffffff; /* čistě bílý box */
    border-radius: 12px;
    max-width: 1400px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: bac-scale-in 0.3s ease;
}

/* Zavírací křížek */
.bac-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.bac-close:hover {
    opacity: 0.7;
}

/* Animace pro otevření */
@keyframes bac-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bac-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsivita */
@media (max-width: 768px) {
    .bac-popup {
        padding: 20px;
    }
}

/* Tlačítko pro otevření popupu */
.bac-open-popup {
    background: #111827;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease;
}
.bac-open-popup:hover {
    background: #1f2937;
}

/* TYPOGRAFIE -------------------------------------------------- */

.bac-wrapper h1,
.bac-wrapper h2,
.bac-wrapper h3,
.bac-wrapper h4,
.bac-wrapper h5,
.bac-wrapper h6 {
    font-weight: 700;
    color: #111;
    margin-top: 0;
    margin-bottom: 0.75em;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-color: var(--bac-primary, #111827);
    text-underline-offset: 8px;
}

.bac-wrapper h1 { font-size: 2rem; }
.bac-wrapper h2 { font-size: 1.6rem; }
.bac-wrapper h3 { font-size: 1.3rem; }
.bac-wrapper h4 { font-size: 1.15rem; }
.bac-wrapper h5 { font-size: 1.05rem; }
.bac-wrapper h6 { font-size: 1rem; color: #374151; }

.bac-wrapper p {
    margin-bottom: 1em;
}

.bac-wrapper b,
.bac-wrapper strong {
    font-weight: 700;
    color: #000;
}

/* SEZNAMY -------------------------------------------------- */

.bac-wrapper ul,
.bac-wrapper ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.bac-wrapper ul li,
.bac-wrapper ol li {
    margin-bottom: 0.4em;
}

.bac-wrapper ul li::marker {
    color: #2563eb; /* modrá pro odlišení */
}

.bac-wrapper ol li::marker {
    color: #111;
    font-weight: 600;
}

.bac-top {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    background: #fff;
}

.bac-top h2,
.bac-top h3 {
    margin-top: 0;
    color: #111;
}

/* DOLNÍ DVA BLOKY */
.bac-bottom {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.bac-left,
.bac-right {
    flex: 1;
    min-width: 320px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}

/* FORMULÁŘ UVNITŘ LEVÉHO BLOKU */
.bac-form {
    margin-top: 16px;
}

.bac-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.bac-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bac-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.bac-button {
    display: inline-block !important;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background-color: var(--bac-primary, #111827) !important;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
}

.bac-button:active {
    transform: scale(0.98);
}

/* ZPRÁVY */
.bac-notice {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.bac-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}
.bac-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* RESPONSIVNÍ ZOBRAZENÍ */
@media (max-width: 768px) {
    .bac-bottom {
        flex-direction: column;
    }
}

/* VOLITELNÉ DOPLŇKY PRO LEPŠÍ ČITELNOST */
.bac-left p,
.bac-right p {
    margin-bottom: 1em;
}

.bac-button,
.bac-open-popup {
    background: var(--bac-primary, #111827);
}
.bac-button:hover,
.bac-open-popup:hover {
    background: color-mix(in srgb, var(--bac-primary, #111827) 80%, black);
}

.batch-input {
    display: flex;
    flex-direction: row;
    gap: 10px;
}