/* ==========================================================================
   Sitewatch – algemene stijl bovenop het Radzen Material-thema
   ========================================================================== */

/* Inter (variabel lettertype, gewicht 100-900), zelf gehost. Licentie: fonts/Inter-LICENSE.txt (SIL OFL 1.1). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --rz-text-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --sw-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #06b6d4 100%);
    --sw-radius: 16px;
    --sw-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --sw-up: #16a34a;
    --sw-down: #dc2626;
    --sw-muted: #94a3b8;
}

html, body {
    font-family: var(--rz-text-font-family);
    -webkit-font-smoothing: antialiased;
}

h1:focus {
    outline: none;
}

/* --- Layout ------------------------------------------------------------- */

.sw-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    /* Onderdelen passen zich aan de beschikbare ruimte aan (ook als het zijmenu open staat). */
    container-type: inline-size;
}

@media (max-width: 768px) {
    .sw-content {
        padding: 1rem;
    }
}

/* Onderdelen verbergen of tonen op smalle schermen */
.sw-show-sm { display: none !important; }

@media (max-width: 768px) {
    .sw-hide-sm { display: none !important; }
    .sw-show-sm { display: inline-flex !important; }
}

@media (max-width: 420px) {
    .sw-hide-xs { display: none !important; }
}

/* Rood bolletje met een aantal (bijv. wachtende aanmeldingen) */
.sw-count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--sw-down);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--rz-base-background-color);
}

/* Knop in de kopbalk met een bolletje rechtsboven */
.sw-header-action {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.sw-header-action:hover {
    background: rgba(255, 255, 255, .12);
}

/* Inloggen / Aanmelden in de kopbalk */
.sw-header-login.rz-button {
    color: #fff !important;
    padding-inline: .6rem;
}

.sw-header-signup.rz-button {
    background: #fff !important;
    color: #4f46e5 !important;
    font-weight: 700;
    padding-inline: .9rem;
}

@media (max-width: 480px) {
    .sw-header-login.rz-button,
    .sw-header-signup.rz-button {
        font-size: .72rem;
        letter-spacing: 0;
        padding-inline: .45rem;
    }
}

.sw-header-action .sw-count-badge {
    position: absolute;
    top: 2px;
    right: 0;
}

/* Menu-item met een bolletje erachter */
.sw-menu-text {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* Zijmenu: menu bovenaan, versienummer onderaan */
.sw-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sw-sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.25rem;
    font-size: .7rem;
    letter-spacing: .02em;
    color: var(--rz-text-secondary-color);
    opacity: .6;
    white-space: nowrap;
}

.sw-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    color: var(--rz-text-title-color);
    text-decoration: none;
}

.sw-brand-logo {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--sw-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}

.sw-brand-logo .rzi {
    font-size: 20px;
}

.sw-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sw-gradient);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}

/* --- Kaarten en statistieken -------------------------------------------- */

.sw-card {
    border-radius: var(--sw-radius) !important;
    box-shadow: var(--sw-shadow) !important;
    border: 1px solid var(--rz-base-200);
}

.sw-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sw-stat-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
}

.sw-stat-icon .rzi {
    font-size: 26px;
}

.sw-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--rz-text-title-color);
}

.sw-stat-label {
    color: var(--rz-text-secondary-color);
    font-size: .875rem;
}

@media (max-width: 480px) {
    .sw-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem;
    }

    .sw-stat-icon {
        width: 40px;
        height: 40px;
    }

    .sw-stat-value {
        font-size: 1.4rem;
    }
}

.sw-tone-up { background: rgba(22, 163, 74, .12); color: var(--sw-up); }
.sw-tone-down { background: rgba(220, 38, 38, .12); color: var(--sw-down); }
.sw-tone-muted { background: rgba(148, 163, 184, .18); color: #64748b; }
.sw-tone-primary { background: rgba(79, 70, 229, .12); color: #4f46e5; }
.sw-tone-warn { background: rgba(217, 119, 6, .14); color: #d97706; }

/* --- Beschikbaarheidsbalk (detailpagina) ---------------------------------- */

.sw-uptime-bar {
    display: flex;
    gap: 2px;
    height: 40px;
    align-items: stretch;
    overflow: hidden; /* nooit breder dan het scherm */
}

.sw-uptime-bar span {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 3px;
    background: var(--rz-base-300);
    transition: transform .1s;
}

.sw-uptime-bar span:hover {
    transform: scaleY(1.12);
}

.sw-uptime-bar .up { background: var(--sw-up); }
.sw-uptime-bar .partial { background: #f59e0b; }
.sw-uptime-bar .down { background: var(--sw-down); }

@media (max-width: 600px) {
    .sw-uptime-bar {
        gap: 1px;
    }

    .sw-uptime-bar span {
        border-radius: 2px;
    }
}

.sw-uptime-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    justify-content: space-between;
    margin-top: .5rem;
    font-size: .8rem;
    color: var(--rz-text-secondary-color);
}

.sw-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.sw-card-header .sw-section-title {
    margin: 0;
}

.sw-list {
    display: flex;
    flex-direction: column;
}

.sw-list-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .75rem 0;
    border-bottom: 1px solid var(--rz-base-200);
    font-size: .875rem;
}

.sw-list-item:last-child {
    border-bottom: none;
}

.sw-list-item .sw-dot {
    margin-top: .35rem;
}

/* Tabel met eigenschappen (label links, waarde rechts), bijv. certificaatdetails */
.sw-details {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    border-top: 1px solid var(--rz-base-200);
    font-size: .9rem;
}

.sw-details > div {
    padding: .6rem .25rem;
    border-bottom: 1px solid var(--rz-base-200);
    overflow-wrap: anywhere;
}

.sw-details > div:nth-child(odd) {
    color: var(--rz-text-secondary-color);
}

@container (max-width: 520px) {
    .sw-details {
        grid-template-columns: minmax(0, 1fr);
    }

    .sw-details > div:nth-child(odd) {
        border-bottom: none;
        padding-bottom: 0;
        font-size: .8rem;
    }
}

.sw-empty {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--rz-text-secondary-color);
}

/* Status-bolletje met "hartslag" bij online */
.sw-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sw-muted);
    flex-shrink: 0;
}

.sw-dot.up {
    background: var(--sw-up);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .5);
    animation: sw-pulse 2s infinite;
}

.sw-dot.down {
    background: var(--sw-down);
}

.sw-dot.warn {
    background: #f59e0b;
}

@keyframes sw-pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
    70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.sw-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sw-page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--rz-text-title-color);
}

.sw-page-subtitle {
    margin: .25rem 0 0;
    color: var(--rz-text-secondary-color);
}

.sw-monitor-link {
    font-weight: 600;
    color: var(--rz-text-title-color);
    text-decoration: none;
}

.sw-monitor-link:hover {
    color: var(--rz-primary);
    text-decoration: underline;
}

.sw-page-subtitle a {
    color: var(--rz-primary);
}

.sw-muted {
    color: var(--rz-text-secondary-color);
}

.sw-ms-fast { color: var(--sw-up); font-weight: 600; }
.sw-ms-ok { color: #d97706; font-weight: 600; }
.sw-ms-slow { color: var(--sw-down); font-weight: 600; }

/* --- Formulier: keuzetegels voor het type controle ---------------------- */

.sw-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.sw-type-tile {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-align: left;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--rz-base-200);
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    font: inherit;
}

.sw-type-tile:hover {
    border-color: var(--rz-primary-light);
    transform: translateY(-1px);
}

.sw-type-tile.selected {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.sw-type-tile .rzi {
    font-size: 28px;
    color: var(--rz-primary);
}

.sw-type-tile strong {
    color: var(--rz-text-title-color);
}

.sw-type-tile small {
    color: var(--rz-text-secondary-color);
    line-height: 1.35;
}

.sw-section-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 1rem;
    color: var(--rz-text-title-color);
}

/* Knoppen "Inloggen met Microsoft/Google" */
.sw-provider-list {
    display: grid;
    gap: .6rem;
    width: 100%;
}

.sw-provider-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--rz-base-300);
    border-radius: 10px;
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.sw-provider-button:hover {
    background: var(--rz-base-100);
    border-color: var(--rz-base-400);
}

/* Lopende tekst (privacyverklaring) */
.sw-prose h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.75rem 0 .5rem;
}

.sw-prose h2:first-child {
    margin-top: 0;
}

.sw-prose p,
.sw-prose li {
    line-height: 1.6;
}

/* Logo's van inlogmethoden naast een e-mailadres (Meldingen) */
.sw-provider-logos {
    display: inline-flex;
    gap: 4px;
    flex-shrink: 0;
}

.sw-provider-logo {
    flex-shrink: 0;
}

/* Keuzeblok (bijv. koppelen of apart account) */
.sw-choice {
    padding: 1rem 1.25rem;
    border: 1px solid var(--rz-base-300);
    border-radius: 12px;
}

/* Meldingskanalen */
.sw-channel-row {
    align-items: center;
    gap: .5rem .75rem;
}

.sw-channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sw-subsection-title {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 600;
}

.sw-channel-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .75rem;
}

.sw-channel-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1rem .75rem;
    border: 1px solid var(--rz-base-300);
    border-radius: 12px;
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.sw-channel-tile:hover:not(:disabled),
.sw-channel-tile:focus-visible {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rz-primary) 20%, transparent);
    outline: none;
}

.sw-channel-tile:disabled {
    cursor: default;
    opacity: .55;
}

.sw-channel-tile-name {
    font-weight: 600;
}

.sw-channel-tile-text {
    color: var(--rz-text-secondary-color);
    font-size: .8rem;
    line-height: 1.3;
}

/* Genummerde stappen (bijv. webhook aanmaken) */
.sw-steps {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.5;
}

.sw-steps li + li {
    margin-top: .35rem;
}

/* Telegram koppelen */
.sw-telegram-steps p {
    margin: 0 0 .5rem;
}

.sw-telegram-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: 10px;
    background: #229ed9;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
}

.sw-telegram-button:hover {
    background: #1c8cc2;
}

/* QR-code: handig op de computer; op een telefoon scan je je eigen scherm niet, dus daar verborgen */
.sw-telegram-qr {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sw-telegram-qr p {
    margin: 0;
}

.sw-qr {
    flex-shrink: 0;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
}

.sw-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .sw-telegram-qr {
        display: none;
    }
}

.sw-telegram-command {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    margin-bottom: .75rem;
    padding: .25rem .25rem .25rem .75rem;
    border-radius: 8px;
    background: var(--rz-base-200);
}

.sw-telegram-command code {
    overflow-wrap: anywhere;
    user-select: all;
}

/* Mijn account */
.sw-account-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .5rem 1.5rem;
    margin: 0;
}

.sw-account-list dt {
    color: var(--rz-text-secondary-color);
}

.sw-account-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.sw-danger-zone {
    border: 1px solid color-mix(in srgb, var(--rz-danger) 40%, transparent) !important;
}

.validation-message {
    color: var(--rz-danger);
    font-size: .8rem;
    margin-top: .25rem;
}

/* --- Startpagina ---------------------------------------------------------- */

.sw-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 4rem 3rem;
    background: var(--sw-gradient);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.sw-hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%);
    pointer-events: none;
}

.sw-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 1rem 0;
    color: #fff;
}

.sw-hero p {
    font-size: 1.15rem;
    opacity: .9;
    max-width: 34rem;
    margin-bottom: 2rem;
}

.sw-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    font-size: .85rem;
    font-weight: 600;
}

.sw-hero-cta .rz-button {
    background: #fff !important;
    color: #4f46e5 !important;
    font-weight: 700;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
}

.sw-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
}

.sw-hero-cta .rz-button.sw-hero-secondary {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sw-hero-visual {
    position: relative;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, .25);
}

.sw-hero-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    margin-bottom: .6rem;
    font-weight: 600;
}

.sw-hero-row:last-child {
    margin-bottom: 0;
}

.sw-hero-row .sw-hero-ms {
    margin-left: auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    font-weight: 500;
}

.sw-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

/* Zes kaarten: 2 of 3 per rij, zodat de rijen altijd vol zijn */
@container (min-width: 560px) {
    .sw-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 900px) {
    .sw-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sw-feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1rem 0 .4rem;
    color: var(--rz-text-title-color);
}

.sw-feature p {
    margin: 0;
    color: var(--rz-text-secondary-color);
    line-height: 1.5;
}

@container (max-width: 860px) {
    .sw-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.5rem 1.75rem;
        gap: 2rem;
    }
}

@container (max-width: 480px) {
    .sw-hero {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .sw-hero p {
        font-size: 1rem;
    }

    .sw-hero-row {
        font-size: .85rem;
        padding: .7rem .8rem;
    }
}

/* --- Cookiebanner en -pagina ------------------------------------------------ */

.sw-cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--sw-radius);
    border: 1px solid var(--rz-base-200);
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
}

.sw-cookie-text {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .9rem;
    line-height: 1.5;
}

.sw-cookie-text a {
    color: var(--rz-primary);
    white-space: nowrap;
}

.sw-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.table-scroll {
    overflow-x: auto;
}

.sw-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.sw-cookie-table th,
.sw-cookie-table td {
    text-align: left;
    vertical-align: top;
    padding: .6rem .5rem;
    border-bottom: 1px solid var(--rz-base-200);
}

.sw-cookie-table th {
    color: var(--rz-text-secondary-color);
    font-weight: 600;
}

.sw-sidebar-footer a {
    color: inherit;
}

/* --- Blazor-foutmeldingen ------------------------------------------------- */

#blazor-error-ui {
    background: #fef2f2;
    color: #991b1b;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Er is een fout opgetreden.";
}

/* Logboek en Gebruikers: tabel nooit samenpersen (Safari deed dat, met hele hoge regels tot gevolg); lijst op de telefoon */
.sw-audit-grid .rz-grid-table {
    min-width: 1100px;
}

.sw-users-grid .rz-grid-table {
    min-width: 900px;
}

.sw-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .6rem;
}

.sw-audit-item {
    padding: .75rem 0;
    border-bottom: 1px solid var(--rz-base-200);
    font-size: .875rem;
    line-height: 1.4;
}

.sw-audit-item:last-child {
    border-bottom: none;
}

.sw-audit-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.sw-audit-time {
    margin-left: auto;
    font-size: .8rem;
    white-space: nowrap;
}

.sw-audit-user {
    margin-top: .35rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sw-audit-details {
    overflow-wrap: anywhere;
}

.sw-audit-meta {
    margin-top: .2rem;
    font-size: .8rem;
    overflow-wrap: anywhere;
}

/* Filterknoppen (bijv. Gebruikers): op smalle schermen compacter, en desnoods over twee regels */
.sw-filter-bar {
    flex-wrap: wrap;
    max-width: 100%;
}

@media (max-width: 480px) {
    .sw-filter-bar .rz-button {
        padding-inline: .55rem;
        font-size: .72rem;
        letter-spacing: 0;
    }
}

/* Tools: DNS-records niet laten samenpersen (Safari), en de keuze tussen IP-adressen van een hostnaam */
.sw-dns-grid .rz-grid-table {
    min-width: 560px;
}

.sw-ip-choices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
}
