/* Repeaterpagina: de navigatiebalk, links, taalkeuze en page-shell komen volledig uit /style.css. */

.repeater-hero {
    min-height: auto;
}

.repeater-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 223, 255, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(4, 12, 22, 0.96), rgba(8, 18, 34, 0.84));
    pointer-events: none;
}

.repeater-hero-content {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
}

.repeater-stats {
    grid-template-columns: 1fr;
    align-content: end;
}

.repeater-panel {
    padding: 20px;
}

.repeater-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}



.repeater-contact-note {
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(99, 223, 255, 0.16);
    background: rgba(99, 223, 255, 0.055);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 0 0 100%;
    width: 100%;
}

@media (min-width: 900px) {
    .repeater-contact-note {
        white-space: nowrap;
    }
}

.repeater-contact-note a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.repeater-contact-note a:hover {
    text-decoration: underline;
}



.repeater-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.repeater-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 999px;
    border: 1px solid rgba(126, 211, 255, 0.16);
    background: rgba(95, 214, 255, 0.06);
    color: var(--muted);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.repeater-tab:hover,
.repeater-tab.is-active {
    transform: translateY(-1px);
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(95, 214, 255, 0.14);
}

.repeater-tab-icon {
    line-height: 1;
}

.repeater-tab small {
    min-width: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    text-align: center;
    color: #dff7ff;
    background: rgba(255,255,255,0.06);
}

.repeater-filter-form {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(4, 12, 22, 0.55);
}

.repeater-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(160px, 0.7fr));
    gap: 12px;
}

.repeater-filter-grid label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.repeater-filter-grid input,
.repeater-filter-grid select,
.repeater-admin-form input,
.repeater-admin-form textarea,
.repeater-admin-form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    background: rgba(4, 12, 22, 0.72);
    outline: none;
}

.repeater-filter-grid input:focus,
.repeater-filter-grid select:focus,
.repeater-admin-form input:focus,
.repeater-admin-form textarea:focus,
.repeater-admin-form select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(99, 223, 255, 0.08);
}

.repeater-table-wrap {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(4, 12, 22, 0.52);
}

.repeater-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

.repeater-table th,
.repeater-table td {
    padding: 12px 13px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}

.repeater-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #dff6ff;
    background: rgba(7, 16, 29, 0.96);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.repeater-table td {
    color: #d8eaff;
    line-height: 1.5;
}

.repeater-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
}

.repeater-table tr:hover td {
    background: rgba(95, 214, 255, 0.045);
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: #ecf8ff;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.mode-fm { border-color: rgba(99, 223, 255, 0.24); background: rgba(99, 223, 255, 0.09); }
.mode-dmr { border-color: rgba(123, 140, 255, 0.32); background: rgba(123, 140, 255, 0.11); }
.mode-dstar { border-color: rgba(122, 255, 186, 0.22); background: rgba(122, 255, 186, 0.08); }
.mode-c4fm { border-color: rgba(255, 213, 91, 0.24); background: rgba(255, 213, 91, 0.09); }
.mode-aprs { border-color: rgba(255, 145, 208, 0.22); background: rgba(255, 145, 208, 0.08); }
.mode-packet { border-color: rgba(194, 176, 255, 0.22); background: rgba(194, 176, 255, 0.08); }
.mode-baken { border-color: rgba(255, 174, 110, 0.22); background: rgba(255, 174, 110, 0.08); }
.mode-atv { border-color: rgba(120, 220, 255, 0.24); background: rgba(120, 220, 255, 0.08); }
.mode-atv { border-color: rgba(120, 220, 255, 0.24); background: rgba(120, 220, 255, 0.08); }
.mode-atv { border-color: rgba(120, 220, 255, 0.24); background: rgba(120, 220, 255, 0.08); }


.repeater-card-grid {
    display: none;
    gap: 12px;
}

.repeater-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(5, 13, 24, 0.74);
}

.repeater-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.repeater-card-head strong {
    display: block;
    font-size: 1.12rem;
}

.repeater-card-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.repeater-card-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.repeater-card-lines div {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
}

.repeater-card-lines span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.repeater-card-lines strong {
    font-size: 0.92rem;
}

.repeater-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.repeater-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.repeater-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.repeater-admin-form {
    display: grid;
    gap: 12px;
}

.repeater-admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

.repeater-admin-form textarea {
    min-height: 96px;
    resize: vertical;
}

.repeater-admin-wide {
    grid-column: 1 / -1;
}

.repeater-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.repeater-alert {
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid rgba(99, 223, 255, 0.22);
    background: rgba(99, 223, 255, 0.08);
    color: #dff7ff;
}

.repeater-alert.error {
    border-color: rgba(255, 110, 110, 0.30);
    background: rgba(255, 110, 110, 0.09);
}

.repeater-small-table {
    width: 100%;
    border-collapse: collapse;
}

.repeater-small-table th,
.repeater-small-table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: left;
}

.repeater-small-table th {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 980px) {
    .repeater-hero-content,
    .repeater-filter-grid,
    .repeater-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .repeater-section-head {
        flex-direction: column;
    }

    .repeater-table-wrap {
        display: none;
    }

    .repeater-card-grid {
        display: grid;
    }

    .repeater-tabs {
        flex-direction: column;
    }

    .repeater-tab {
        justify-content: space-between;
        border-radius: 18px;
    }

    .repeater-panel {
        padding: 16px;
    }
}

html[data-theme="light"] .repeater-filter-form,
body[data-theme="light"] .repeater-filter-form,
html[data-theme="light"] .repeater-table-wrap,
body[data-theme="light"] .repeater-table-wrap,
html[data-theme="light"] .repeater-card,
body[data-theme="light"] .repeater-card {
    background: rgba(255,255,255,0.68);
}

html[data-theme="light"] .repeater-table th,
body[data-theme="light"] .repeater-table th {
    color: #10243c;
    background: rgba(244, 249, 255, 0.96);
}

html[data-theme="light"] .repeater-table td,
body[data-theme="light"] .repeater-table td {
    color: #10243c;
}


.repeater-filter-grid-3 {
    grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(160px, 0.7fr));
}

.repeater-table-rdi {
    min-width: 1180px;
}

.repeater-table-rdi th:nth-child(10),
.repeater-table-rdi td:nth-child(10) {
    min-width: 220px;
}

@media (max-width: 980px) {
    .repeater-filter-grid-3 {
        grid-template-columns: 1fr;
    }
}


.repeater-filter-grid-3 {
    grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(160px, 0.7fr));
}

.repeater-table-rdi {
    min-width: 1180px;
}

.repeater-table-rdi th:nth-child(10),
.repeater-table-rdi td:nth-child(10) {
    min-width: 220px;
}

@media (max-width: 980px) {
    .repeater-filter-grid-3 {
        grid-template-columns: 1fr;
    }
}


.repeater-filter-grid-3 {
    grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(160px, 0.7fr));
}

.repeater-table-rdi {
    min-width: 1180px;
}

.repeater-table-rdi th:nth-child(10),
.repeater-table-rdi td:nth-child(10) {
    min-width: 220px;
}

@media (max-width: 980px) {
    .repeater-filter-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* CTCSS + frequentie in/uit update */
.repeater-filter-grid-4 {
    grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(145px, 0.7fr));
}

.repeater-table,
.repeater-table-rdi {
    min-width: 1400px;
}

.ctcss-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.ctcss-badge.has-tone {
    border-color: rgba(99, 223, 255, 0.26);
    background: rgba(99, 223, 255, 0.10);
    color: #e6f9ff;
}

@media (max-width: 980px) {
    .repeater-filter-grid-4 {
        grid-template-columns: 1fr;
    }
}


/* Fix: datumkolom niet laten afbreken + juiste RDI-kolombreedtes na Frequentie In/CTCSS */
.repeater-table-rdi th:nth-child(8),
.repeater-table-rdi td:nth-child(8),
.repeater-table-rdi th:nth-child(9),
.repeater-table-rdi td:nth-child(9),
.repeater-table-rdi th:nth-child(10),
.repeater-table-rdi td:nth-child(10),
.repeater-table-rdi th:nth-child(11),
.repeater-table-rdi td:nth-child(11) {
    white-space: nowrap;
}

.repeater-table-rdi th:nth-child(11),
.repeater-table-rdi td:nth-child(11) {
    min-width: 108px;
}

.repeater-table-rdi th:nth-child(12),
.repeater-table-rdi td:nth-child(12) {
    min-width: 220px;
}

.repeater-small-table th:nth-child(9),
.repeater-small-table td:nth-child(9) {
    white-space: nowrap;
}
/* Soort en CTCSS/toon als gewone tekst tonen */
.repeater-table .mode-badge,
.repeater-table .ctcss-badge,
.repeater-card .mode-badge,
.repeater-card .ctcss-badge {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    white-space: normal;
}


/* Correctie frequentiekolommen:
   - Uit en In allebei in dezelfde notatie met 4 decimalen.
   - Frequentie In krijgt iets meer ruimte, omdat daar soms meerdere ingangen staan.
   - De ingangskolom mag netjes afbreken bij meerdere frequenties. */
.repeater-table-rdi {
    width: 100%;
    min-width: 1420px;
    table-layout: fixed;
}

.repeater-table-rdi th,
.repeater-table-rdi td {
    overflow-wrap: anywhere;
}

.repeater-table-rdi th:nth-child(1),
.repeater-table-rdi td:nth-child(1) { width: 8%; }

.repeater-table-rdi th:nth-child(2),
.repeater-table-rdi td:nth-child(2) { width: 5%; }

.repeater-table-rdi th:nth-child(3),
.repeater-table-rdi td:nth-child(3) { width: 9%; }

.repeater-table-rdi th:nth-child(4),
.repeater-table-rdi td:nth-child(4) {
    width: 9%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.repeater-table-rdi th:nth-child(5),
.repeater-table-rdi td:nth-child(5) {
    width: 13%;
    white-space: normal;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.repeater-table-rdi th:nth-child(6),
.repeater-table-rdi td:nth-child(6) { width: 7%; }

.repeater-table-rdi th:nth-child(7),
.repeater-table-rdi td:nth-child(7) { width: 11%; }

.repeater-table-rdi th:nth-child(8),
.repeater-table-rdi td:nth-child(8) { width: 6%; }

.repeater-table-rdi th:nth-child(9),
.repeater-table-rdi td:nth-child(9) { width: 5.5%; }

.repeater-table-rdi th:nth-child(10),
.repeater-table-rdi td:nth-child(10) { width: 6%; }

.repeater-table-rdi th:nth-child(11),
.repeater-table-rdi td:nth-child(11) {
    width: 8%;
    white-space: nowrap;
}

.repeater-table-rdi th:nth-child(12),
.repeater-table-rdi td:nth-child(12) { width: 12.5%; }

/* =========================================================
   MOBIELE FIX 2026-04-25
   Alleen actief op tablet/telefoon. Desktop blijft ongemoeid.
   ========================================================= */
@media (max-width: 760px) {
    .repeater-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .repeater-section-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .repeater-contact-note {
        padding: 11px 12px;
        border-radius: 14px;
        font-size: 0.86rem;
        white-space: normal;
    }

    .repeater-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .repeater-tab {
        min-height: 44px;
        padding: 10px 11px;
        border-radius: 16px;
        justify-content: space-between;
    }

    .repeater-filter-form {
        padding: 12px;
        border-radius: 16px;
    }

    .repeater-filter-grid,
    .repeater-filter-grid-3,
    .repeater-filter-grid-4 {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .repeater-card-grid {
        gap: 10px;
    }

    .repeater-card {
        padding: 13px;
        border-radius: 16px;
    }

    .repeater-card-head {
        gap: 8px;
        margin-bottom: 10px;
    }

    .repeater-card-head strong {
        font-size: 1.04rem;
    }

    .repeater-card-lines {
        gap: 7px;
    }

    .repeater-card-lines div {
        padding: 9px;
        border-radius: 12px;
    }

    .repeater-card-lines strong {
        display: block;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .repeater-tabs,
    .repeater-card-lines {
        grid-template-columns: 1fr;
    }

    .repeater-card-head {
        flex-direction: column;
    }

    .repeater-card-head > span {
        margin-top: 0;
    }
}
