/* Scenio gradient baggrund */
body.scenio-bg {
    background: linear-gradient(135deg, #6a1b9a, #1a237e) fixed;
}

/* Optional: giv lidt lys bag content, så tabeller stadig popper */
body.scenio-bg .page-wrapper,
body.scenio-bg .page-body,
body.scenio-bg .container-xl,
body.scenio-bg .container-fluid {
    /* en diskret “glass” effekt */
    background: rgba(255, 255, 255, 0.02);
}

/* Sørg for cards/tabler-bokse stadig er læsbare (Tabler har allerede card-bg) */
body.scenio-bg .card {
    /* lad Tabler styre, men en smule mere kontrast kan være rart */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* === TeaterHub Checkbox === */
.th-check input {
    display: none;
}

/* === Flash message wrap === */
.th-toast-wrap {
    position: fixed;
    top: 70px;
    /* under navbar */
    right: 16px;
    z-index: 2000;
    width: min(520px, calc(100vw - 32px));
    pointer-events: none;
}

.th-toast {
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    margin-bottom: 10px;
}

/* selve boksen */
.th-check span {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    /* neutral grå */
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

/* hover = tydelig tapbar */
.th-check:hover span {
    border-color: #3b82f6;
    /* blå hover */
}

/* checked */
.th-check input:checked+span {
    background: #3b82f6;
    /* blå */
    border-color: #3b82f6;
}

/* checkmark */
.th-check input:checked+span::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* disabled (hvis du vil senere) */
.th-check input:disabled+span {
    opacity: 0.0;
    cursor: not-allowed;
}

/* Sørg for at knappen ikke “hopper” i tabeller */
.th-check-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: .25rem !important;
    line-height: 1 !important;
}

/* Selve “checkboxen” */
.th-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid var(--tblr-border-color, #d9e1ec);
    border-radius: .35rem;
    background: var(--tblr-bg-surface, #fff);
}

/* Når den er checked: Tabler-ish blå */
.th-check.is-checked {
    background: var(--tblr-primary, #206bc4);
    border-color: var(--tblr-primary, #206bc4);
}

/* “fluebenet” */
.th-check.is-checked::after {
    content: "✓";
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
}

/* Centrer alt pænt i td */
.table td,
.table th {
    vertical-align: middle;
}

/* Klar-kolonnen: centrer ALT og fjern mærkelige offsets */
.th-col-check {
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
    vertical-align: middle !important;
}

.th-col-check form {
    margin: 0 !important;
    display: flex;
    /* centrer inde i td */
    justify-content: center;
    align-items: center;
}

/* hvis din checkbox (span) er Tabler-form-check-input, så neutralisér baseline-hop */
.th-col-check .form-check-input {
    margin: 0 !important;
    vertical-align: middle !important;
}