.sw-vnl-settings-box {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 18px;
    max-width: 900px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.sw-vnl-proxy-input {
    width: 100%;
    max-width: 620px;
}

.sw-vnl-admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1400px;
}

@media (min-width: 1200px) {
    .sw-vnl-admin-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.sw-vnl-admin-box {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 18px;
    box-sizing: border-box;
}

.sw-vnl-shortcode-input {
    width: 100%;
    max-width: 420px;
    font-family: monospace;
}

.sw-vnl-meta {
    color: #50575e;
}

.sw-vnl-status {
    padding: 8px 10px;
    border-left: 4px solid #72aee6;
    background: #f0f6fc;
    color: #1d2327;
}

.sw-vnl-status.is-ok {
    border-left-color: #00a32a;
    background: #edfaef;
    color: #006b1b;
}

.sw-vnl-status.is-error {
    border-left-color: #d63638;
    background: #fcf0f1;
    color: #b32d2e;
}

.sw-vnl-status.is-loading {
    border-left-color: #dba617;
    background: #fcf9e8;
    color: #6f5000;
}

.sw-vnl-json {
    width: 100%;
    min-height: 170px;
    margin-top: 8px;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.sw-vnl-preview-wrap {
    margin-top: 20px;
}

.sw-vnl-table-wrapper {
    background: #0a1233;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
    clear: both;
    color: #ffffff;
}

.sw-vnl-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
}

.sw-vnl-title-row h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}

.sw-vnl-title-row span {
    color: #bdc3c7;
    font-size: 12px;
}

.sw-vnl-table-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.sw-vnl-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    text-align: left;
    font-family: Arial, sans-serif;
    color: #ffffff;
    font-size: 13px;
    border: none;
    background: transparent;
}

.sw-vnl-table thead tr {
    border-bottom: 2px solid #f35a01;
    text-transform: uppercase;
    font-size: 11px;
    color: #bdc3c7;
    background: transparent;
}

.sw-vnl-table th,
.sw-vnl-table td {
    border: none;
    padding: 10px 8px;
}

.sw-vnl-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sw-vnl-row-even {
    background: rgba(255, 255, 255, 0.01);
}

.sw-vnl-row-odd {
    background: transparent;
}

.sw-vnl-row-poland {
    background: rgba(241, 196, 15, 0.08);
}

.sw-vnl-center {
    text-align: center;
}

.sw-vnl-team {
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
}

.sw-vnl-muted {
    color: #bdc3c7;
}

.sw-vnl-win,
.sw-vnl-win-head {
    color: #27ae60;
    font-weight: bold;
}

.sw-vnl-loss,
.sw-vnl-loss-head {
    color: #e74c3c;
    font-weight: bold;
}

.sw-vnl-points,
.sw-vnl-points-head {
    color: #f1c40f;
    font-weight: bold;
}

.sw-vnl-points {
    font-size: 14px;
}

.sw-vnl-badge {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-weight: bold;
    border-radius: 9px;
    font-size: 12px;
    text-align: center;
}

.sw-vnl-badge-green {
    background: #27ae60;
    color: #ffffff;
}

.sw-vnl-badge-neutral {
    background: rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

.sw-vnl-badge-red {
    background: #c0392b;
    color: #ffffff;
}

.sw-vnl-legend {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #bdc3c7;
    line-height: 1.5;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.sw-vnl-legend-item {
    display: inline-flex;
    align-items: center;
}

.sw-vnl-legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 6px;
    flex: 0 0 14px;
}

.sw-vnl-legend-green {
    background: #27ae60;
}

.sw-vnl-legend-neutral {
    background: rgba(255, 255, 255, 0.1);
}

.sw-vnl-legend-red {
    background: #c0392b;
}








/* ==========================================================================
   STERYLNY LAYOUT MOBILNY VNL — CAŁA TABELA WCHODZI NA EKRAN BEZ PRZEWIJANIA
   ========================================================================== */

@media (max-width: 767px) {
    /* 1. Maksymalnie odchudzamy boki głównego kontenera */
    .sw-vnl-table-wrapper {
        padding: 8px 4px !important;
        margin: 10px 0 !important;
    }

    /* 2. Układamy nagłówek tabeli w pionie, żeby zyskać miejsce */
    .sw-vnl-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        padding: 0 4px !important;
        margin-bottom: 8px !important;
    }

    .sw-vnl-title-row h3 {
        font-size: 14px !important;
    }

    .sw-vnl-title-row span {
        font-size: 10px !important;
    }

    /* 3. Wyłączamy jakikolwiek scroll i dopasowujemy szerokość do ekranu */
    .sw-vnl-table-scroll {
        overflow-x: visible !important;
        max-width: 100% !important;
    }

    .sw-vnl-table {
        min-width: 100% !important;
        width: 100% !important;
        font-size: 11px !important; /* Idealny, czytelny font pod ekrany telefonów */
    }

    /* 4. Ścinamy marginesy w komórkach do absolutnego minimum */
    .sw-vnl-table th,
    .sw-vnl-table td {
        padding: 6px 3px !important; /* Ekstremalnie ciasny rozstaw, żeby zmieścić kolumny */
    }

    /* Kolumna z numerkiem (Miejsce) */
    .sw-vnl-table th:first-child,
    .sw-vnl-table td:first-child {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /* 5. Zmniejszamy kwadraciki 9px pozycji pod mobilki */
    .sw-vnl-badge {
        width: 20px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }

    /* 6. Ścisłe dopasowanie szerokości kolumn liczbowych (blokuje ich znikanie) */
    .sw-vnl-center {
        text-align: center !important;
    }

    /* Wymuszamy mini-szerokości dla kolumn: Mecze, W, P, Punkty */
    .sw-vnl-table th.sw-vnl-center,
    .sw-vnl-table td.sw-vnl-center {
        font-size: 11px !important;
    }

    .sw-vnl-points {
        font-size: 12px !important; /* Punkty delikatnie większe, ale dopasowane */
    }

    /* 7. Agresywne ucinanie nazwy państwa, jeśli brakuje pikseli na małych telefonach */
    .sw-vnl-team {
        max-width: 110px !important;
        display: inline-block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Robi eleganckie kropki, np. "Dominican Rep..." */
        vertical-align: middle !important;
    }

    /* 8. Kompaktowy, pionowy układ legendy na dole */
    .sw-vnl-legend {
        margin-top: 10px !important;
        padding-top: 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .sw-vnl-legend-item {
        font-size: 10px !important;
    }
}
