/* Minification failed. Returning unminified contents.
(25,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(26,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(27,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(28,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(29,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(30,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(31,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(32,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(59,28): run-time error CSS1039: Token not allowed after unary operator: '-rc-border'
(60,22): run-time error CSS1039: Token not allowed after unary operator: '-rc-shadow'
(64,22): run-time error CSS1039: Token not allowed after unary operator: '-rc-surface'
(72,28): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(73,24): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(74,17): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(82,21): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(102,28): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(118,39): run-time error CSS1039: Token not allowed after unary operator: '-rc-border'
(127,46): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(127,60): run-time error CSS1039: Token not allowed after unary operator: '-rc-primary'
(127,79): run-time error CSS1039: Token not allowed after unary operator: '-rc-secondary'
(164,17): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(390,17): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(480,22): run-time error CSS1039: Token not allowed after unary operator: '-rc-accent'
(482,17): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(492,21): run-time error CSS1039: Token not allowed after unary operator: '-rc-bg'
(755,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
 */
*, *::before, *::after {
    box-sizing: border-box;
}


/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* =====================================================
   RefereeClips Live Tagger – App Theme
   ===================================================== */

:root {
    --rc-bg: #061a3a;
    --rc-primary: #0d2d6c;
    --rc-secondary: #1b4fb3;
    --rc-accent: #FFD400;
    --rc-danger: #E10600;
    --rc-surface: rgba(255,255,255,0.96);
    --rc-border: rgba(13,45,108,0.12);
    --rc-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

/* ========================
   App Background
   ======================== */

body.rc-app {
    font-family: 'Noto Sans', sans-serif;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(900px 500px at 20% 0%, rgba(255,212,0,0.10), transparent 55%), radial-gradient(900px 500px at 80% 10%, rgba(225,6,0,0.08), transparent 60%), linear-gradient(135deg, #061a3a 0%, #0d2d6c 45%, #1b4fb3 100%);
}

/* App wrapper */
.rc-app-container {
    padding: 24px;
}

/* ========================
   Cards / Surfaces
   ======================== */

.card,
.modal-content,
.dropdown-menu {
    border-radius: 18px;
    border: 1px solid var(--rc-border);
    box-shadow: var(--rc-shadow);
}

.card {
    background: var(--rc-surface);
}

/* ========================
   Buttons
   ======================== */

.btn-primary {
    background-color: var(--rc-accent);
    border-color: var(--rc-accent);
    color: var(--rc-bg);
    font-weight: 700;
    border-radius: 999px;
}

    .btn-primary:hover {
        background-color: #ffdf40;
        border-color: #ffdf40;
        color: var(--rc-bg);
    }

/* Secondary buttons */
.btn-outline-primary {
    border-radius: 999px;
}

/* ========================
   Form controls
   ======================== */

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid rgba(13,45,108,0.15);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--rc-accent);
        box-shadow: 0 0 0 0.25rem rgba(255,212,0,0.25);
    }

/* ========================
   Tables
   ======================== */

.table {
    background: white;
    border-radius: 14px;
    overflow: hidden;
}

    .table thead th {
        background: rgba(13,45,108,0.05);
        border-bottom: 1px solid var(--rc-border);
        font-weight: 600;
    }

/* ========================
   Navbar (if you add one)
   ======================== */

.rc-navbar {
    background: linear-gradient(135deg, var(--rc-bg), var(--rc-primary), var(--rc-secondary));
    box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}

    .rc-navbar .nav-link {
        color: rgba(255,255,255,0.9);
    }

        .rc-navbar .nav-link:hover {
            color: white;
        }

/* ========================
   Modals (match splash)
   ======================== */

.modal-backdrop.show {
    opacity: 0.75;
}

.modal .modal-content {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
}

/* ========================
   Utility helpers
   ======================== */

.rc-title {
    font-weight: 800;
    letter-spacing: .3px;
}

.rc-accent {
    color: var(--rc-accent);
}
/* ============================
   Logout link (bottom)
   ============================ */

.rc-logout {
    position: fixed;
    bottom: 18px;
    right: 24px;
    font-size: 14px;
    z-index: 1000;
}

    .rc-logout a {
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.10);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transition: all 0.15s ease;
    }

        .rc-logout a:hover {
            background: rgba(255,255,255,0.20);
            color: #fff;
        }
/* =========================================
   Live Tagger - App-like login styling
   ========================================= */

.rc-splash-app {
    padding: 24px;
}

/* Lite “app-panel” känsla: bredare + mer padding */
.rc-login-card-app {
    width: min(640px, 100%);
    padding: 34px 34px 22px 34px;
    border-radius: 22px;
}

/* Brand header mer “app” */
.rc-brand-app {
    gap: 16px;
    margin-bottom: 22px;
}

/* Logo badge (glass) */
.rc-logo-badge {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.rc-logo-sm {
    width: 56px;
    height: 56px;
}

/* Inputs med ikon */
.rc-input-wrap {
    position: relative;
}

.rc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    pointer-events: none;
}

/* Större, app-känsla */
.rc-input-app {
    height: 58px;
    padding-left: 44px; /* plats för ikon */
    font-size: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: #fff;
}

    .rc-input-app::placeholder {
        color: rgba(255,255,255,0.65);
    }

    .rc-input-app:focus {
        background: rgba(255,255,255,0.18);
        border-color: rgba(255, 212, 0, 0.75);
        box-shadow: 0 0 0 0.30rem rgba(255, 212, 0, 0.18);
        color: #fff;
    }

/* Rad under inputs */
.rc-row-app {
    justify-content: space-between;
    opacity: 0.95;
}

.rc-microhint {
    font-size: 12px;
    opacity: 0.75;
}

/* Login-knapp matchar inputs i höjd */
.rc-btn-login-app {
    height: 58px;
    font-size: 17px;
}

/* Footer */
.rc-login-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    opacity: 0.75;
}

/* Mobil */
@media (max-width: 480px) {
    .rc-login-card-app {
        padding: 26px 22px 18px 22px;
        border-radius: 18px;
    }

    .rc-logo-badge {
        width: 66px;
        height: 66px;
        border-radius: 16px;
    }

    .rc-logo-sm {
        width: 46px;
        height: 46px;
    }
}
/* =====================================================
   RefereeClips Live Tagger – Splash/Auth theme (shared)
   (Additions to match the latest splash/login styling)
   ===================================================== */

/* Splash layout base */
.rc-splash-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Fullscreen splash container */
.rc-splash {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    background: #061a3a;
}

/* Brand background */
.rc-splash-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(255, 212, 0, 0.20), transparent 55%), radial-gradient(900px 500px at 80% 20%, rgba(225, 6, 0, 0.18), transparent 55%), radial-gradient(1000px 600px at 50% 100%, rgba(27, 79, 179, 0.45), transparent 60%), linear-gradient(135deg, #061a3a 0%, #0d2d6c 45%, #1b4fb3 100%);
    filter: saturate(1.05);
}

/* Glass card */
.rc-splash-card {
    position: relative;
    width: min(640px, 100%);
    border-radius: 22px;
    padding: 20px 30px 20px 30px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
}

/* Brand row */
.rc-brand {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

/* Optional glass logo badge (use in markup if you want) */
.rc-logo-badge {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.rc-logo-sm {
    width: 56px;
    height: 56px;
}

/* Titles */
.rc-title-main {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.2px;
    line-height: 1.05;
}

.rc-title-accent {
    color: var(--rc-accent);
}

.rc-title-sub {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.88;
}

/* Form fields */
.rc-field {
    margin-bottom: 18px;
}

.rc-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    opacity: 0.95;
}

.rc-input-wrap {
    position: relative;
}

.rc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    pointer-events: none;
}

.rc-input {
    width: 100%;
    height: 58px;
    padding: 0 16px 0 44px;
    font-size: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: #fff;
    transition: all 0.15s ease;
}

    .rc-input::placeholder {
        color: rgba(255,255,255,0.65);
    }

    .rc-input:focus {
        background: rgba(255,255,255,0.18);
        border-color: rgba(255, 212, 0, 0.75);
        box-shadow: 0 0 0 0.30rem rgba(255, 212, 0, 0.18);
        color: #fff;
    }

/* Row below inputs */
.rc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0.95;
}

.rc-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .rc-check input {
        width: 18px;
        height: 18px;
    }

.rc-validation {
    margin-bottom: 10px;
}

/* Button (matches RefereeClips) */
.rc-actions-login {
    margin-top: 18px;
}

.rc-btn-login {
    background: var(--rc-accent);
    border: 0;
    color: var(--rc-bg);
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    transition: transform 0.12s ease, filter 0.12s ease;
}

    .rc-btn-login:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
        color: var(--rc-bg);
    }

.rc-btn-login-wide {
    width: 100%;
    height: 58px;
    font-size: 17px;
}

/* =========================================
   Scope validation color to splash only
   ========================================= */
.rc-splash .text-danger,
.rc-splash-body .text-danger {
    color: #ffb3b3 !important;
}


/* Mobile tweaks */
@media (max-width: 480px) {
    .rc-splash-card {
        padding: 24px 20px 16px 20px;
    }

    .rc-logo-badge {
        width: 66px;
        height: 66px;
        border-radius: 16px;
    }

    .rc-logo-sm {
        width: 46px;
        height: 46px;
    }

    .rc-title-main {
        font-size: 28px;
    }
}
/* =========================================
   Live Tagger Login – layout tweaks
   ========================================= */

/* Gör själva formuläret smalare och centrerat i kortet */
.rc-login-form {
    max-width: 520px;
    margin: 0 auto;
}

/* Samma bredd för actions/validering så allt linjerar */
.rc-validation,
.rc-actions-login,
.rc-row {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}


.rc-page-header {
    background: linear-gradient(135deg, rgba(13, 28, 70, 1), rgba(10, 18, 44, 1));
    border-radius: 16px;
    padding: 18px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.rc-logo {
    height: 80px;
    width: auto;
    display: block;
}

.rc-session-header {
    background: linear-gradient(135deg, #0d1c46, #0a122c);
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    color: #fff;
}

.rc-session-meta .rc-line-1 {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.95);
}

.rc-session-meta .rc-line-2 {
    margin-top: 4px;
    font-size: .95rem;
    color: rgba(255,255,255,0.70);
}

.rc-session-meta .rc-line-3 {
    margin-top: 8px;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
}

.rc-session-meta i {
    color: rgba(255,255,255,0.75);
}

.rc-game-clock {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.rc-clock-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
}

/* ===== EVENT BUTTONS ===== */

.tageventbutton,
#buttonsBothTeams .btn,
#buttonsSplitTeams .btn {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.25);
    background: linear-gradient(135deg, #173a7a, #1f4ea3);
    transition: all .2s ease;
}

    .tageventbutton:hover {
        background: linear-gradient(135deg, #1f4ea3, #2d6cdf);
        border-color: #4ea1ff;
        box-shadow: 0 0 0 2px rgba(78,161,255,0.25);
    }

    .tageventbutton i {
        color: #7cc2ff;
    }


.toggle.btn-danger {
    background-color: #dc3545 !important;
}

.toggle.btn-success {
    background-color: #198754 !important;
}

.toggle .toggle-handle {
    background: #fff !important;
}
.rc-section-title {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    opacity: .95;
}
    .rc-section-title::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        margin: 8px auto 0;
        background: #4ea1ff;
        border-radius: 2px;
    }
#tagevents .card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
}

    #tagevents .card .text-muted {
        color: rgba(255,255,255,0.6) !important;
    }

    #tagevents .card .text-secondary {
        color: rgba(255,255,255,0.75) !important;
    }


/* ===== Index mobile tightening ===== */

/* 1) Låt sidan använda mer bredd på små skärmar */
@media (max-width: 576px) {
    main.container,
    main.container.py-4,
    main.container.py-4.py-lg-5 {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Om du har wrapper .row/.col som centrerar: ta ner side padding */
    .row.justify-content-center {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-12.col-lg-9.col-xl-8 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2) Mindre “död yta” mellan cards */
    .card {
        border-radius: 16px;
    }

        .card.shadow-sm.border-0.mb-4 {
            margin-bottom: 12px !important;
        }

    /* 3) Kompaktare card-padding (men fortfarande snyggt) */
    .card-body.p-3.p-md-4 {
        padding: 14px !important;
    }

    /* 4) Headern: mindre padding + mer horisontell layout */
    .rc-page-header {
        padding: 14px !important;
        border-radius: 16px;
    }

        .rc-page-header .d-flex {
            align-items: center;
        }

    .rc-logo {
        height: 34px !important;
    }

    /* 5) Minska rubriker och undvik onödiga radbrytningar */
    .rc-page-header h1 {
        font-size: 1.35rem;
        line-height: 1.15;
        margin-bottom: 6px !important;
    }

    .rc-page-header p {
        font-size: .95rem;
        line-height: 1.25;
        margin-bottom: 0 !important;
    }

    /* 6) “Mina observatörsuppdrag”: rubriker på en rad */
    .card-body .d-flex.align-items-center.justify-content-between {
        gap: 8px;
    }

        .card-body .d-flex.align-items-center.justify-content-between h2 {
            font-size: 1.05rem;
            margin-bottom: 0 !important;
        }

        .card-body .d-flex.align-items-center.justify-content-between span.small {
            white-space: nowrap;
            font-size: .8rem;
        }

    /* 7) Form: mindre vertikala glapp */
    .row.g-3 {
        --bs-gutter-y: 10px;
    }

    .form-text {
        margin-top: 4px;
    }

    /* 8) Primärknappar: behåll fullbredd men mindre höjd */
    .btn.btn-primary.btn-lg.w-100 {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 1.05rem;
        border-radius: 999px;
    }
}

/* 9) Mellanläge (små tablets): lite mer luft än mobil men inte lika mycket som desktop */
@media (min-width: 577px) and (max-width: 992px) {
    main.container.py-4.py-lg-5 {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card.shadow-sm.border-0.mb-4 {
        margin-bottom: 16px;
    }
}


@media (max-width: 576px) {
    .rc-page-header h1 {
        letter-spacing: -0.2px;
    }
}


/* ===== Index page: use more width on mobile ===== */
@media (max-width: 576px) {

    /* Ta bort bootstrap-container max-width och sidpadding */
    body main.container,
    body main.container.py-4,
    body main.container.py-4.py-lg-5 {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Kolumnen som centrerar innehållet: gör den fullbredd */
    body .row.justify-content-center > [class*="col-"] {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Om splash-layouten har en wrapper med padding */
    body .container,
    body .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
/* ===== Index: använd mer bredd på mobil ===== */
@media (max-width: 576px) {

    /* 1) Ta bort container-maxbredd och sidpadding på just denna sida */
    .rc-app .rc-app-container main.container.py-4.py-lg-5 {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 2) Gör kolumnen fullbredd (den som innehåller allt innehåll) */
    .rc-app .rc-app-container main.container .row.justify-content-center > .col-12.col-lg-9.col-xl-8 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 3) Om rc-app-container har egna sidmarginaler/padding i din theme */
    .rc-app .rc-app-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =====================================================
   Live Tagger – resilient sync/offline UX (2026-09-21)
   ===================================================== */
.rc-sync-status {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    padding: .65rem .85rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.90);
    font-size: .9rem;
    font-weight: 600;
}

.rc-sync-status .rc-sync-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    flex: 0 0 auto;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

.rc-sync-status a {
    color: inherit;
    font-weight: 700;
    white-space: nowrap;
}

.rc-sync-ok { color: #7ce3ad; }
.rc-sync-pending { color: #ffd166; }
.rc-sync-offline { color: #ffb45b; }
.rc-sync-auth { color: #ff7b86; }
.rc-sync-error { color: #ffb45b; }

.rc-pending-event {
    border-style: dashed !important;
    opacity: .88;
}

.rc-pending-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .28rem .48rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, .12);
    border: 1px solid rgba(255, 193, 7, .28);
    color: #ffd166;
    font-size: .72rem;
    font-weight: 700;
}

#livetagMessage {
    border-radius: 10px;
    font-size: .88rem;
}

#exampleModal .form-text {
    font-size: .78rem;
}

@media (max-width: 575.98px) {
    .rc-sync-status {
        font-size: .82rem;
        padding: .55rem .7rem;
    }

    .rc-sync-status a {
        font-size: .8rem;
    }

    .rc-pending-pill {
        padding: .25rem .4rem;
    }
}

/* LiveTagger phase 2 – local persistence + quick undo */
.rc-sync-storage { color: #ff7b86; }

#undoLastTagButton {
    white-space: nowrap;
}

#undoLastTagButton:disabled {
    opacity: .45;
}

@media (max-width: 575.98px) {
    #undoLastTagButton {
        padding: .32rem .55rem;
        font-size: .78rem;
    }
}

.rc-pending-pill-error {
    background: rgba(220, 53, 69, .14);
    border-color: rgba(220, 53, 69, .35);
    color: #ff8a96;
}


.rc-mode-toggle {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}


/* =====================================================
   LiveTagger revision C – matchläge / multi-tab / snabbtaggning
   ===================================================== */
.rc-live-toolbar {
    position: sticky;
    top: 8px;
    z-index: 1030;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .5rem;
    padding: .35rem;
    border-radius: 15px;
    background: rgba(7, 14, 34, .92);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rc-live-clock-panel {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #173a7a, #1f4ea3);
    color: #fff;
    line-height: 1;
}

.rc-live-clock-label {
    margin-bottom: .18rem;
    font-size: .60rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .72;
}

.rc-live-clock-value {
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

.rc-live-toolbar .rc-sync-status {
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: .55rem .7rem;
}

.rc-live-toolbar #livetagSyncText {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rc-other-tab-warning {
    border-radius: 12px;
    font-size: .86rem;
}

.rc-tag-button {
    position: relative;
    min-height: 52px;
    color: #fff !important;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

#buttonsBothTeams .tageventbutton {
    background: linear-gradient(135deg, #173a7a, #1f4ea3) !important;
    border-color: rgba(96,165,250,.48) !important;
}

#buttonsSplitTeams .tageventbutton[data-team="home"] {
    background: linear-gradient(135deg, #12633c, #198754) !important;
    border-color: rgba(92,224,147,.42) !important;
}

#buttonsSplitTeams .tageventbutton[data-team="away"] {
    background: linear-gradient(135deg, #a62634, #dc3545) !important;
    border-color: rgba(255,132,146,.44) !important;
}

.rc-shortcut-badge {
    position: absolute;
    top: 5px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.24);
    color: rgba(255,255,255,.92);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.rc-keyboard-hint {
    align-items: center;
    justify-content: flex-end;
    color: rgba(255,255,255,.58);
    font-size: .75rem;
}

@keyframes rcTagConfirmed {
    0% { transform: scale(1); filter: brightness(1); }
    38% { transform: scale(.975); filter: brightness(1.42); box-shadow: 0 0 0 4px rgba(124,227,173,.24); }
    100% { transform: scale(1); filter: brightness(1); }
}

.rc-tag-confirmed { animation: rcTagConfirmed .58s ease-out; }

.tageventbutton:disabled,
.edit-event-button:disabled,
.delete-event-button:disabled { cursor: not-allowed; }

@media (hover: none), (max-width: 767.98px) {
    .rc-shortcut-badge { display: none; }
}

@media (max-width: 575.98px) {
    .rc-live-toolbar {
        top: 4px;
        grid-template-columns: 80px minmax(0, 1fr);
        gap: .35rem;
        padding: .28rem;
        border-radius: 13px;
    }
    .rc-live-clock-value { font-size: 1.12rem; }
    .rc-live-toolbar .rc-sync-status { font-size: .76rem; padding: .48rem .55rem; }
    .rc-live-toolbar #livetagRetryButton,
    .rc-live-toolbar #livetagLoginLink { font-size: .72rem; }
    .rc-tag-button { min-height: 56px; }
}


.rc-event-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.35rem;
    margin-left: .25rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: rgba(78,161,255,.16);
    border: 1px solid rgba(78,161,255,.30);
    color: #9dccff;
    font-size: .70rem;
    vertical-align: middle;
}

.rc-event-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.rc-team-pill,
.rc-role-pill {
    display: inline-flex;
    align-items: center;
    max-width: min(100%, 210px);
    min-height: 20px;
    padding: .12rem .42rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rc-team-pill-home {
    background: rgba(25,135,84,.17);
    border: 1px solid rgba(92,224,147,.25);
    color: #86e7ae;
}

.rc-team-pill-away {
    background: rgba(220,53,69,.17);
    border: 1px solid rgba(255,132,146,.25);
    color: #ff9aa6;
}

.rc-role-pill {
    background: rgba(78,161,255,.14);
    border: 1px solid rgba(78,161,255,.25);
    color: #9dccff;
}

.min-width-0 { min-width: 0; }


/* =====================================================
   LiveTagger revision D - kompakt handelselista + halvleksklocka
   ===================================================== */
.rc-live-clock-main {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
}

.rc-live-half-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    height: 1.55rem;
    padding: 0 .45rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
    color: #dceaff;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .03em;
}

#tagevents .card {
    overflow: hidden;
}

.rc-event-card-body {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rc-event-main {
    flex: 1 1 auto;
    min-width: 0;
}

.rc-event-primary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 700;
    color: #ffffff;
}

.rc-event-primary-fallback {
    color: rgba(255,255,255,.92);
}

.rc-event-side {
    flex: 0 0 186px;
    min-width: 186px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: .8rem;
}

.rc-event-clock-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    color: rgba(255,255,255,.88);
}

.rc-event-half-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 1.45rem;
    padding: 0 .45rem;
    border-radius: 999px;
    background: rgba(78,161,255,.16);
    border: 1px solid rgba(78,161,255,.28);
    color: #9dccff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
}

.rc-event-clock {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
    white-space: nowrap;
}

.rc-event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 31px;
}

.rc-category-pill {
    display: inline-flex;
    align-items: center;
    max-width: min(100%, 240px);
    min-height: 20px;
    padding: .12rem .42rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255,212,0,.12);
    border: 1px solid rgba(255,212,0,.22);
    color: #ffe58a;
}

@media (max-width: 767.98px) {
    .rc-event-card-body {
        min-height: 84px;
        gap: .8rem;
    }

    .rc-event-side {
        flex-basis: 154px;
        min-width: 154px;
    }

    .rc-event-primary {
        font-size: .96rem;
    }

    .rc-event-clock {
        font-size: .92rem;
    }
}

@media (max-width: 575.98px) {
    .rc-live-clock-main {
        gap: .25rem;
    }

    .rc-live-half-badge {
        min-width: 2rem;
        height: 1.35rem;
        font-size: .74rem;
    }

    .rc-event-card-body {
        min-height: 84px;
        gap: .7rem;
    }

    .rc-event-side {
        flex-basis: 128px;
        min-width: 128px;
        gap: .55rem;
    }

    .rc-event-half-badge {
        min-width: 1.9rem;
        height: 1.3rem;
        padding: 0 .34rem;
        font-size: .66rem;
    }

    .rc-event-clock {
        font-size: .84rem;
    }

    .rc-event-primary {
        font-size: .9rem;
        line-height: 1.24;
    }

    .rc-event-pills {
        gap: .24rem;
    }

    .rc-category-pill,
    .rc-team-pill,
    .rc-role-pill {
        max-width: 100%;
        font-size: .64rem;
    }
}


/* =====================================================
   LiveTagger revision E - fast hojd + horisontellt matchflode
   ===================================================== */
.rc-live-toolbar {
    grid-template-columns: 138px minmax(0, 1fr);
}

.rc-live-clock-panel {
    min-height: 48px;
    padding: .35rem .55rem;
}

.rc-live-clock-label {
    margin-bottom: .22rem;
}

.rc-live-clock-main {
    width: 100%;
    justify-content: center;
}

.rc-live-half-badge {
    background: rgba(78,161,255,.18);
    border-color: rgba(126,188,255,.32);
    color: #b9dcff;
}

.rc-live-clock-value {
    min-width: 4.65rem;
    text-align: left;
    font-size: 1.2rem;
    letter-spacing: .02em;
}

#tagevents .card {
    height: 82px;
    min-height: 82px;
    max-height: 82px;
}

.rc-event-card-body {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.rc-event-main {
    align-self: center;
    overflow: hidden;
}

.rc-event-primary {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .98rem;
    line-height: 1.22;
    font-weight: 700;
}

.rc-event-primary-fallback {
    color: rgba(255,255,255,.52);
    font-style: italic;
    font-weight: 500;
}

.rc-event-pills {
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.rc-event-pills > span {
    flex: 0 1 auto;
    min-width: 0;
}

.rc-event-side {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

.rc-event-clock-chip {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-width: 100px;
    justify-content: flex-end;
    white-space: nowrap;
}

.rc-event-half-badge {
    min-width: 2.15rem;
    height: 1.55rem;
    padding: 0 .4rem;
}

.rc-event-clock {
    min-width: 3.55rem;
    text-align: right;
    font-size: .94rem;
}

.rc-event-actions {
    min-width: 76px;
    min-height: 34px;
}

.rc-event-action-buttons .btn,
.discard-local-event-button {
    width: 38px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rc-event-highlight {
    animation: rcEventHighlight .9s ease-out;
}

@keyframes rcEventHighlight {
    0% { box-shadow: 0 0 0 0 rgba(78,161,255,.0); border-color: rgba(78,161,255,.25); }
    35% { box-shadow: 0 0 0 4px rgba(78,161,255,.20); border-color: rgba(126,188,255,.75); }
    100% { box-shadow: 0 0 0 0 rgba(78,161,255,.0); border-color: rgba(255,255,255,.08); }
}

#scrollLatestTagButton:disabled {
    opacity: .42;
}

@media (max-width: 767.98px) {
    .rc-live-toolbar {
        grid-template-columns: 126px minmax(0, 1fr);
    }

    #tagevents .card {
        height: 78px;
        min-height: 78px;
        max-height: 78px;
    }

    .rc-event-card-body {
        gap: .65rem;
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .rc-event-side {
        gap: .45rem;
    }

    .rc-event-clock-chip {
        min-width: 90px;
        gap: .28rem;
    }

    .rc-event-half-badge {
        min-width: 1.95rem;
        height: 1.4rem;
        font-size: .66rem;
    }

    .rc-event-clock {
        min-width: 3.35rem;
        font-size: .84rem;
    }

    .rc-event-actions {
        min-width: 68px;
    }

    .rc-event-action-buttons .btn,
    .discard-local-event-button {
        width: 34px;
        height: 32px;
    }
}

@media (max-width: 575.98px) {
    .rc-live-toolbar {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .rc-live-clock-label {
        font-size: .54rem;
    }

    .rc-live-clock-value {
        min-width: 3.95rem;
        font-size: 1.02rem;
    }

    #tagevents .card {
        height: 76px;
        min-height: 76px;
        max-height: 76px;
    }

    .rc-event-primary {
        font-size: .86rem;
    }

    .rc-event-pills {
        margin-top: .38rem !important;
    }

    .rc-category-pill,
    .rc-team-pill,
    .rc-role-pill {
        min-height: 18px;
        padding: .08rem .34rem;
        font-size: .60rem;
    }

    .rc-event-side {
        gap: .32rem;
    }

    .rc-event-clock-chip {
        min-width: 81px;
        gap: .2rem;
    }

    .rc-event-half-badge {
        min-width: 1.75rem;
        height: 1.28rem;
        font-size: .61rem;
        padding: 0 .28rem;
    }

    .rc-event-clock {
        min-width: 3.05rem;
        font-size: .78rem;
    }

    .rc-event-actions {
        min-width: 62px;
    }

    .rc-event-action-buttons .btn,
    .discard-local-event-button {
        width: 31px;
        height: 30px;
        font-size: .75rem;
    }

    #scrollLatestTagButton,
    #undoLastTagButton {
        font-size: .72rem;
        padding: .28rem .46rem;
    }
}

