:root {
    --rd-bg: #050609;
    --rd-bg-elevated: #101219;
    --rd-bg-elevated-2: #181b24;
    --rd-border-subtle: #262a36;
    --rd-primary: #ff6a1a;
    --rd-primary-soft: rgba(255, 106, 26, 0.12);
    --rd-primary-hover: #ff7f3c;
    --rd-text-main: #f5f5f7;
    --rd-text-muted: #9a9eaa;
    --rd-text-soft: #6e7380;
    --rd-danger: #ff4b4b;
    --rd-success: #32c676;
    --rd-radius-lg: 18px;
    --rd-radius-md: 12px;
    --rd-radius-sm: 8px;
    --rd-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --rd-shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.4);
    --rd-sidebar-width: 250px;
    --rd-topbar-height: 64px;
    --rd-transition-fast: 0.15s ease-out;
    --rd-transition-normal: 0.2s ease-out;
    --rd-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: var(--rd-font-main);
    background: radial-gradient(circle at top, #131722 0, #050609 55%);
    color: var(--rd-text-main);
    -webkit-font-smoothing: antialiased;
}

/* APP LAYOUT */

.rd-app {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* SIDEBAR */

.rd-sidebar {
    width: var(--rd-sidebar-width);
    background: radial-gradient(circle at top left, #1c1f2a 0, #050609 65%);
    border-right: 1px solid var(--rd-border-subtle);
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: var(--rd-shadow-subtle);
    z-index: 20;
}

.rd-sidebar-header {
    padding: 4px 4px 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
}

.rd-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rd-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffb38a, #ff6a1a 60%, #7d2e00);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 12px rgba(255, 106, 26, 0.9);
}

.rd-logo-text {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--rd-text-main);
}

/* NAVIGATION */

.rd-nav {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
}

.rd-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 999px;
    color: var(--rd-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background var(--rd-transition-normal), color var(--rd-transition-normal), transform var(--rd-transition-fast);
    position: relative;
}

    .rd-nav-item::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(90deg, rgba(255, 106, 26, 0.08), transparent);
        opacity: 0;
        transition: opacity var(--rd-transition-fast);
    }

    .rd-nav-item:hover {
        color: var(--rd-text-main);
        background: rgba(255, 255, 255, 0.02);
        transform: translateX(2px);
    }

        .rd-nav-item:hover::before {
            opacity: 1;
        }

.rd-nav-item-muted {
    opacity: 0.8;
}

.rd-nav-icon {
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

.rd-nav-label {
    flex: 1;
}

/* Placeholder class pro aktivní položku */
.rd-nav-item.active {
    color: var(--rd-text-main);
    background: var(--rd-primary-soft);
}

    .rd-nav-item.active::before {
        opacity: 1;
    }

.rd-sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: var(--rd-text-soft);
}

.rd-sidebar-version {
    opacity: 0.8;
}

/* MAIN PANEL */

.rd-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* TOPBAR */

.rd-topbar {
    height: var(--rd-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: linear-gradient(90deg, #101219, #151827);
    border-bottom: 1px solid var(--rd-border-subtle);
    box-shadow: var(--rd-shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 10;
}

.rd-topbar-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--rd-text-main);
}

/* Burger pouze na mobilu */

.rd-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

    .rd-burger span {
        width: 18px;
        height: 2px;
        background: var(--rd-text-main);
        border-radius: 999px;
    }

.rd-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* USER */

.rd-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ff6a1a 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1b1e;
}

.rd-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.rd-user-name {
    font-size: 0.88rem;
    color: var(--rd-text-main);
}

.rd-user-role {
    font-size: 0.75rem;
    color: var(--rd-text-soft);
}

/* CONTENT & FOOTER */

.rd-content {
    padding: 20px 22px 18px 22px;
    flex: 1;
}

    /* Mírně zrnitý efekt pozadí contentu */

    .rd-content::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 0);
        background-size: 2px 2px;
        opacity: 0.22;
        mix-blend-mode: soft-light;
        z-index: -1;
    }

.rd-footer {
    padding: 8px 22px 18px 22px;
    font-size: 0.8rem;
    color: var(--rd-text-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* GENERICKÉ KARTY PRO OBSAH */

.rd-card {
    background: radial-gradient(circle at top left, #202331, #11131d 60%);
    border-radius: var(--rd-radius-lg);
    box-shadow: var(--rd-shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 18px 18px 16px 18px;
    position: relative;
    overflow: hidden;
}

    .rd-card::before {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        top: -160px;
        right: -120px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 106, 26, 0.16), transparent 70%);
        opacity: 0.9;
        pointer-events: none;
    }

.rd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.rd-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.rd-card-subtitle {
    font-size: 0.8rem;
    color: var(--rd-text-muted);
}

.rd-card-body {
    position: relative;
    z-index: 1;
}

/* TLAČÍTKA */

.rd-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rd-primary);
    color: #1b1010;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 30px rgba(255, 106, 26, 0.5);
    transition: transform var(--rd-transition-fast), box-shadow var(--rd-transition-fast), background var(--rd-transition-fast);
}

    .rd-btn:hover {
        transform: translateY(-1px);
        background: var(--rd-primary-hover);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 40px rgba(255, 106, 26, 0.65);
    }

.rd-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--rd-text-muted);
    box-shadow: none;
}

    .rd-btn-ghost:hover {
        background: rgba(255, 255, 255, 0.04);
        color: var(--rd-text-main);
    }

/* FORM ELEMENTS (pro budoucí CRUD) */

.rd-input,
.rd-select {
    width: 100%;
    background: #090b11;
    border-radius: var(--rd-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 7px 9px;
    color: var(--rd-text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border var(--rd-transition-fast), box-shadow var(--rd-transition-fast), background var(--rd-transition-fast);
}

    .rd-input:focus,
    .rd-select:focus {
        border-color: var(--rd-primary);
        box-shadow: 0 0 0 1px rgba(255, 106, 26, 0.6);
        background: #070a0f;
    }

.rd-label {
    font-size: 0.8rem;
    color: var(--rd-text-muted);
    margin-bottom: 4px;
    display: inline-block;
}

/* GRID */

.rd-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    .rd-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .rd-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform var(--rd-transition-normal);
        height: 100%;
    }

    .rd-app.rd-sidebar-open .rd-sidebar {
        transform: translateX(0);
    }

    .rd-burger {
        display: flex;
    }

    .rd-topbar-title {
        font-size: 0.9rem;
    }

    .rd-content {
        padding: 14px 12px 16px 12px;
    }

    .rd-footer {
        padding: 8px 12px 14px 12px;
    }
}

/* AUTH LAYOUT */

.rd-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #131722 0, #050609 55%);
    padding: 24px 12px;
}

.rd-auth-card {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top left, #202331, #11131d 60%);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 22px 22px 18px 22px;
    position: relative;
    overflow: hidden;
}

    .rd-auth-card::before {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        top: -160px;
        right: -120px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 106, 26, 0.2), transparent 70%);
        opacity: 0.9;
        pointer-events: none;
    }

.rd-auth-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.rd-auth-subtitle {
    font-size: 0.9rem;
    color: var(--rd-text-muted);
}

.rd-auth-body {
    position: relative;
    z-index: 1;
}

.rd-auth-footer {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 0.75rem;
    color: var(--rd-text-soft);
    text-align: center;
    opacity: 0.9;
}

.rd-auth-form-group {
    margin-bottom: 12px;
}

.rd-auth-label {
    font-size: 0.8rem;
    color: var(--rd-text-muted);
    display: inline-block;
    margin-bottom: 4px;
}

.rd-auth-input {
    width: 100%;
    background: #090b11;
    border-radius: var(--rd-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    color: var(--rd-text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

    .rd-auth-input:focus {
        border-color: var(--rd-primary);
        box-shadow: 0 0 0 1px rgba(255, 106, 26, 0.6);
        background: #070a0f;
    }

.rd-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.rd-auth-links {
    font-size: 0.8rem;
    color: var(--rd-text-muted);
}

.rd-auth-links a {
    color: var(--rd-primary-hover);
    text-decoration: none;
}

.rd-auth-links a:hover {
    text-decoration: underline;
}

.rd-validation-summary {
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--rd-danger);
}

.rd-topbar-user-btn {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rd-user-menu {
    position: relative;
}

.rd-user-caret {
    font-size: 0.7rem;
    color: var(--rd-text-soft);
    margin-left: 2px;
}

.rd-user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: var(--rd-bg-elevated-2);
    border-radius: var(--rd-radius-md);
    border: 1px solid var(--rd-border-subtle);
    box-shadow: var(--rd-shadow-soft);
    padding: 6px;
    display: none;
    z-index: 30;
}

    .rd-user-menu-dropdown.is-open {
        display: block;
    }

.rd-user-menu-item {
    width: 100%;
    text-align: left;
    font-size: 0.85rem;
    padding: 7px 10px;
    border-radius: var(--rd-radius-sm);
    border: none;
    background: none;
    color: var(--rd-text-main);
    display: block;
    text-decoration: none;
    cursor: pointer;
}

    .rd-user-menu-item:hover {
        background: rgba(255, 255, 255, 0.04);
    }

.rd-user-menu-item-danger {
    color: var(--rd-danger);
}

.rd-auth-success {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--rd-radius-md);
    background: radial-gradient(circle at top left, rgba(50, 198, 118, 0.2), rgba(8, 38, 24, 0.95));
    border: 1px solid rgba(50, 198, 118, 0.6);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.rd-auth-success-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--rd-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #03140a;
    flex-shrink: 0;
}

.rd-auth-success-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-auth-success-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rd-text-main);
}

.rd-auth-success-text {
    font-size: 0.85rem;
    color: var(--rd-text-muted);
}

.rd-auth-error {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--rd-radius-md);
    background: radial-gradient(circle at top left, rgba(255, 75, 75, 0.2), rgba(45, 10, 10, 0.95));
    border: 1px solid rgba(255, 75, 75, 0.6);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

    .rd-auth-error a {
        color: var(--rd-primary-hover);
        text-decoration: none;
    }

    .rd-auth-error-icon {
        width: 26px;
        height: 26px;
        border-radius: 999px;
        background: var(--rd-danger);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 700;
        color: #260000;
        flex-shrink: 0;
    }

.rd-auth-error-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rd-auth-error-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rd-text-main);
}

.rd-auth-error-text {
    font-size: 0.85rem;
    color: var(--rd-text-muted);
}

/* ===== Správa uživatelů – moderní clean styl ===== */

/* Kontejner stránky */
.page-container {
    padding: 2rem 2.5rem;
}

/* Nadpis + popisek */
.page-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.page-subtitle {
    font-size: .85rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* Karta s tabulkou */
.admin-card {
    background: #1b1d22;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    overflow: hidden;
}

/* Tabulka */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .admin-table thead {
        background: #23262d;
    }

        .admin-table thead th {
            color: #d1d5db;
            font-weight: 600;
            padding: .9rem 1.2rem;
            font-size: .85rem;
            text-transform: uppercase;
        }

    .admin-table tbody tr {
        transition: background .2s;
    }

        .admin-table tbody tr:hover {
            background: rgba(255,255,255,0.03);
        }

    .admin-table td {
        padding: 1rem 1.2rem;
        color: #e5e7eb;
        font-size: .93rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

/* Uživatel */
.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.user-email, .user-phone {
    font-size: .8rem;
    color: #9ca3af;
}

/* Checkboxy */
.admin-checkbox .form-check-input {
    background-color: #2e323a;
    border-color: #555;
}

    .admin-checkbox .form-check-input:checked {
        background-color: #3b82f6;
        border-color: #3b82f6;
    }

/* Tlačítko uložit */
.save-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: .45rem .9rem;
    border-radius: 5px;
    font-size: .8rem;
    margin-top: .5rem;
    transition: background .2s;
}

    .save-button:hover {
        background: #1d4ed8;
    }

/* Badge styl */
.badge-yes {
    background: rgba(16,185,129,0.2);
    color: #10b981;
    font-weight: 600;
    font-size: .8rem;
    padding: .25rem .6rem;
    border-radius: 5px;
}

.badge-no {
    background: rgba(148,163,184,0.2);
    color: #9ca3af;
    font-weight: 600;
    font-size: .8rem;
    padding: .25rem .6rem;
    border-radius: 5px;
}

/* Role ve střelnicích */
.range-role-list li {
    font-size: .85rem;
    color: #d1d5db;
}

.range-role-list small {
    color: #9ca3af;
}

/* ===== Admin – vyhledávací pole uživatelů ===== */

.admin-search-bar {
    margin-bottom: 1rem;
}

.admin-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--rd-bg-elevated);
    border-radius: var(--rd-radius-lg);
    border: 1px solid var(--rd-border-subtle);
    box-shadow: var(--rd-shadow-subtle);
}

.admin-search-icon {
    font-size: 0.95rem;
    color: var(--rd-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}

/* input používá základní .rd-input, jen lehké doladění */
.admin-search-input {
    flex: 1;
    border-radius: 999px; /* víc „pill“ vzhled */
    background: #090b11;
    font-size: 0.9rem;
}

    .admin-search-input::placeholder {
        color: var(--rd-text-soft);
        opacity: 0.85;
    }

/* tlačítko vedle inputu – ghost varianta */
.admin-search-button {
    white-space: nowrap;
    font-size: 0.8rem;
    padding-inline: 14px;
    border-radius: 999px;
}

.rd-range-layout {
    gap: 24px;
    align-items: flex-start;
}

.rd-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.rd-map {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--rd-shadow-subtle);
}

.rd-summary-card {
    background: var(--rd-bg-elevated);
    border-radius: var(--rd-radius-md);
    padding: 14px 16px;
    border: 1px solid var(--rd-border-subtle);
    box-shadow: var(--rd-shadow-subtle);
}

.rd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.rd-tab-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--rd-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none; /* odstraní podtržení */
    cursor: pointer;
    transition: background var(--rd-transition-normal), color var(--rd-transition-normal), box-shadow var(--rd-transition-fast), transform var(--rd-transition-fast);
}

    .rd-tab-item:hover {
        color: var(--rd-text-main);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
        transform: translateY(-1px);
    }

    .rd-tab-item.active {
        color: var(--rd-text-main);
        background: var(--rd-primary-soft);
        border-color: rgba(255, 106, 26, 0.6);
        box-shadow: 0 8px 22px rgba(255, 106, 26, 0.3);
    }

    .rd-range-layout > div:last-child {
        display: flex;
        flex-direction: column;
    }

    .rd-range-layout > div:last-child .rd-table-scroll {
        flex: 1 1 auto;
    }

.rd-table-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* kompaktnější tabulka */
.rd-table-compact td,
.rd-table-compact th {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* vizuální hierarchie ve sloupci "Zbraň" */
.rd-weapon-name {
    font-weight: 600;
}

.rd-weapon-meta {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* badges */
.rd-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.rd-badge-success {
    background-color: #14532d; /* tmavší zelená do tmavého UI */
    color: #bbf7d0;
}

.rd-badge-muted {
    background-color: #1f2933;
    color: #e5e7eb;
}

/* toolbar nahoře u tabulky */
.rd-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rd-input-sm {
    padding: 4px 8px;
    font-size: 0.85rem;
    height: 32px;
}

.rd-badge-clickable {
    border: none;
    cursor: pointer;
    padding: 2px 8px;
    font: inherit;
}

.rd-table-lanes {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* respektuje colgroup */
}

    .rd-table-lanes th,
    .rd-table-lanes td {
        padding: 8px 12px; /* víc místa kolem textu */
        vertical-align: middle;
        font-size: 0.9rem;
    }

    .rd-table-lanes th {
        text-align: left;
        font-weight: 600;
        white-space: nowrap; /* hlavička nebude lámat na dvě řádky */
    }

    .rd-table-lanes td:nth-child(2) { /* Délka */
        white-space: nowrap;
    }

    .rd-table-lanes td:nth-child(5),
    .rd-table-lanes td:nth-child(6) { /* Omezení + Zbraně */
        /* u dlouhých textů můžeš použít ellipsis: */
        overflow: hidden;
        text-overflow: ellipsis;
        /* a buď: */
        white-space: nowrap;
        /* nebo místo toho: word-wrap: break-word; když chceš zalamovat na víc řádků */
    }

    .rd-table-lanes tr + tr {
        border-top: 1px solid rgba(255,255,255,0.05); /* jemné oddělení řádků */
    }

    .rd-dropdown {
        position: relative;
        display: inline-block;
    }

    .rd-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        max-height: 260px;
        overflow-y: auto;
        background: #151515;
        border: 1px solid #333;
        border-radius: 0.5rem;
        padding: 0.5rem;
        display: none;
        z-index: 50;
    }

        .rd-dropdown-menu.rd-dropdown-open {
            display: block;
        }

    .rd-dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.3rem;
        cursor: pointer;
    }

.rd-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Layout filtrů pro návštěvy */
.rd-filter-bar--visits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.rd-filter-group--wide {
    grid-column: 1 / -1; /* přes celou šířku */
}

.rd-filter-actions--visits {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 0.25rem;
}

/* Shrnutí nad tabulkou */
.rd-visitlog-summary {
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

/* Tabulka návštěv */
.rd-table-wrapper {
    margin-top: 0.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.rd-table--visits {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .rd-table--visits th,
    .rd-table--visits td {
        padding: 0.55rem 0.75rem;
        white-space: nowrap;
    }

    .rd-table--visits th {
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* zebra řádky (lehce) */
    .rd-table--visits tbody tr:nth-child(odd) {
        background-color: rgba(255, 255, 255, 0.02);
    }

/* hover efekt na řádek */
.rd-table-row--hover {
    transition: background-color 120ms ease-out, transform 80ms ease-out;
}

.rd-table--visits tbody tr.rd-table-row--hover:hover {
    background-color: rgba(255, 255, 255, 0.06);
    transition: background-color 120ms ease-out, transform 80ms ease-out;
}

/* stránkování */
.rd-pagination--visits {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rd-table--visits td:nth-child(7) {
    white-space: normal;
}
