.checked/* New.html.twig */
.close-icon{
    text-decoration: none;
}
.left{
    border-right: 2px solid #f5a623;
}
.main{
    padding-top: 50px;
    padding-bottom: 50px;
}
.container h4{
    color:#f5a623;
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
}
.container h2{
    font-weight: 500;
    font-size: 30px;
    line-height: 20px;
}

/* form.html.twig/ */

.form-group{
    color: #67768A;
}
.btn-new{
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 10px;
    border-width: 1px;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 16px;
    border-style: solid;
    padding: 0px 15px;
    height: 38px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.1s ease 0s;
    outline-style: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-save{
    color: rgb(255, 255, 255);
    background-color: rgb(103, 179, 115);
    border-color: rgb(103, 179, 115);
}
.btn-save:hover{
    color: #e8e8e8;
}
.btn-cancel{
    color: rgb(255, 255, 255);
    background-color: rgb(120, 120, 120);
}

.btn-cancel:hover{
    color: #e8e8e8;
}

/* index.html.twig */

html, body {
    height: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    color: #67768A;
    overflow-x: hidden;
}

.page-fixed {
    height: 100vh;
    overflow: hidden;
}

.app-navbar {
    position: fixed;
    top: 0;
    right: 0;
    height: 38px;
}

@media (min-width: 768px) {
    .app-navbar {
        margin-left: 16.6667%;
        width: 83.3333%;
        z-index: 1100;
        overflow: visible;
    }
}
.app-navbar .container {
    overflow: visible;
}
.app-navbar .nav-link {
    color: #f5a623;
}
.app-navbar .nav-link:hover {
    color: #fd7a10;
}
@media (min-width: 768px) {
    .navbar-refresh-button,
    .navbar-refresh-button.p-0 {
        border: 1px solid #d1d9e6;
        background: #ffffff;
        color: #1f2937;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 6px 12px !important;
        border-radius: 8px;
        line-height: 1.2;
        transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .navbar-refresh-button:hover,
    .navbar-refresh-button.p-0:hover {
        color: #0f172a;
        border-color: #94a3b8;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    }
}
@media (max-width: 1200px) {
    .menu.menu-narrow {
        padding-left: 24px !important;
        padding-right: 16px;
    }
}
@media (max-width: 992px) {
    .menu.menu-narrow {
        padding-left: 18px !important;
        padding-right: 12px;
    }
}
@media (max-width: 768px) {
    .menu.menu-narrow {
        padding-left: 12px !important;
        padding-right: 8px;
    }
}
.downloads-toggle {
    border: none;
    background: transparent;
}
.tables-toggle {
    border: none;
    background: transparent;
}
.login-modal-trigger {
    border: none;
    background: transparent;
}
.login-modal-trigger:focus {
    outline: none;
    box-shadow: none;
}
.user-profile-trigger {
    border: none;
    background: transparent;
    color: #67768A;
    padding: 0;
}
.user-profile-trigger:hover {
    color: #f5a623;
}
.downloads-menu {
    position: fixed;
    display: none;
    min-width: 260px;
    padding: 8px 0;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 1200;
}
.tables-menu {
    position: fixed;
    display: none;
    min-width: 220px;
    padding: 8px 0;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 1200;
}
.downloads-menu-item {
    display: block;
    padding: 6px 14px;
    color: #67768A;
    text-decoration: none;
}
.tables-menu-item {
    display: block;
    padding: 6px 14px;
    color: #67768A;
    text-decoration: none;
}
.downloads-menu-item:hover,
.downloads-menu-item:focus {
    color: #f5a623;
    background-color: transparent;
}
.tables-menu-item:hover,
.tables-menu-item:focus {
    color: #f5a623;
    background-color: transparent;
}
.remember-me-toggle {
    font-size: 13px;
    color: #67768A;
}
.navbar-user-email {
    color: #f5a623;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.navbar-user-label {
    color: #9faab5;
}
h1 {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    display: flex;
    align-items: center;
    color: #414D97;
}
p {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    display: flex;
    align-items: center;
    color: #67768A;
}
.menu{
    color: #67768A;
    background-color: #F6F7FB;
    min-height: 100vh;
    border-right: 1px solid #C7CBD4;
    padding: 35px;
    padding-left: 50px !important;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.menu.menu-narrow {
    padding-left: 30px !important;
    padding-right: 20px;
}
.menu h3{
    color: #585b62;
    font-weight: 400;
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 12px;
}
h5 {
    color: #67768A;
}

.nav {
    justify-content: right;
}

.menu .nav{
    display: block;
    color: #67768A;
    font-size: 13px;
    line-height: 20px;
    overflow-y: auto;
    flex: 1 1 auto;
    padding-bottom: 16px;
}
.menu .nav .category-select-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 20px;
    color: #67768A;
}

.menu .nav .category-select-label--interactive {
    padding-left: 8px;
}

.menu .nav .category-select-label--interactive {
    cursor: pointer;
    transition: color 0.2s ease;
}

.menu .nav .category-select-label--interactive:hover {
    color: #414D97;
}

.menu .nav .nav-group {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.menu .nav .nav-group-toggle {
    width: 100%;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
    margin-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9faab5;
    padding: 0;
    cursor: pointer;
}

.menu .nav .nav-group-toggle::after {
    content: "";
    border: 4px solid transparent;
    border-left-color: #9faab5;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

.menu .nav .nav-group-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 600px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    transition-delay: 0s;
}

.menu .nav .nav-group.is-collapsed .nav-group-items {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s;
}

.menu .nav .nav-group.is-collapsed .nav-group-toggle::after {
    transform: rotate(0deg);
}

.menu .nav .navigation-entry a {
    display: inline-block;
    padding-left: 8px;
}

.menu .nav .navigation-entry--root {
    margin: 6px 0 12px;
}

.menu .nav .nav-live-link {
    display: inline-block;
    padding-left: 8px;
    font-weight: 700;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b6368;
    background: transparent;
    border: 0;
    position: relative;
}

.menu .nav .nav-live-link.active {
    background: transparent;
    border: 0;
}

.menu .nav .nav-live-badge {
    position: absolute;
    top: -6px;
    right: -34px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.3);
}

@media (max-width: 1400px), (max-height: 800px) {
    .draw-page-content .draw-scroll {
        max-height: calc(100vh - 140px);
        max-height: calc(100svh - 140px);
    }

    .draw-page-content .draw-config-scroll {
        height: calc(100vh - 140px);
        height: calc(100svh - 140px);
    }

    .results-scroll {
        max-height: calc(100vh - 100px);
    }

    .draw-edit-grid {
        min-height: calc(100vh - 100px);
    }

    .draw-edit-bench {
        height: calc(100vh - 100px);
    }

    .draw-edit-groups {
        max-height: calc(100vh - 100px);
    }
    html {
        font-size: 75%;
    }

    body {
        font-size: 13px;
    }

    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }
    h6 { font-size: 0.85rem; }

    .nav a {
        font-size: 12px;
    }

    .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }

    .btn.btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .form-control,
    .form-select {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .card.p-3 {
        padding: 0.75rem !important;
    }

    .card.p-4 {
        padding: 1rem !important;
    }

    .main-table-content {
        padding-top: 38px;
    }

    .content-column {
        padding-top: 0px;
    }

    .mb-3 { margin-bottom: 0.75rem !important; }
    .mt-3 { margin-top: 0.75rem !important; }
    .mb-4 { margin-bottom: 1rem !important; }
    .mt-4 { margin-top: 1rem !important; }

    .g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .main-table-content .row.mt-3.mb-3.content {
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }
}

.menu .nav .category-select {
    width: 100%;
    font-size: 14px;
    color: #67768A;
    border-radius: 8px;
    border: 1px solid #C7CBD4;
    background-color: #fff;
    padding: 6px 10px;
    margin-left: 8px;
    width: calc(100% - 8px);
}

.seed-order-list {
    display: grid;
    gap: 4px;
}

.seed-order-row {
    display: grid;
    grid-template-columns: 1fr 64px;
    gap: 6px;
    align-items: center;
}

.seed-player-name {
    font-size: 13px;
    color: #67768A;
}

.draw-groups {
    display: grid;
    gap: 12px;
}

.draw-group-card {
    border: 1px solid #E0E4EC;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.draw-group-title {
    font-weight: 600;
    color: #585b62;
    margin-bottom: 8px;
}

.draw-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.draw-group-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: #67768A;
}

.draw-seed {
    font-size: 12px;
    background: #f2f5fb;
    border-radius: 999px;
    padding: 2px 8px;
}

.draw-player-location {
    color: #9faab5;
}

.results-matches {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.results-scroll {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 6px;
    max-height: calc(100svh - 260px);
    padding-bottom: 16px;
    border-top: 1px solid #E0E4EC;
    border-bottom: 1px solid #E0E4EC;
}

@media (max-width: 1400px), (max-height: 800px) {
    .results-scroll {
        max-height: calc(100vh - 110px);
        max-height: calc(100svh - 110px);
    }
}

.results-match {
    border: 1px solid #E0E4EC;
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

.results-header {
    display: grid;
    grid-template-columns: 1fr 120px 150px 170px;
    gap: 12px;
    align-items: center;
}


.results-players {
    font-weight: 600;
    color: #585b62;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.results-players-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.results-readonly {
    font-size: 12px;
    color: #9faab5;
    border: 1px solid #d4d9e2;
    border-radius: 12px;
    padding: 2px 10px;
    justify-self: end;
}

.results-flag {
    font-size: 12px;
    color: #6b7280;
    border: 1px solid #d4d9e2;
    border-radius: 12px;
    padding: 2px 10px;
}

.results-vs {
    color: #9faab5;
}

.results-order label,
.results-type label,
.results-status label {
    font-size: 12px;
    color: #9faab5;
    margin-bottom: 4px;
    display: block;
}

.results-audit {
    display: flex;
    justify-content: flex-end;
}

.results-body {
    display: grid;
    grid-template-columns: 1fr 2fr 120px;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
}

.results-sets label,
.results-games label {
    font-size: 12px;
    color: #9faab5;
    display: block;
    margin-bottom: 4px;
}

.results-type-select {
    min-width: 150px;
}

.results-sets-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.results-games-list {
    display: grid;
    gap: 4px;
}

.results-game {
    display: grid;
    grid-template-columns: 24px 1fr 16px 1fr;
    align-items: center;
    gap: 6px;
}

.results-match,
.results-header,
.results-body,
.results-players-wrap,
.results-games-list {
    min-width: 0;
}

@media (max-width: 1200px) {
    .results-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .results-body {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .results-type-select {
        min-width: 0;
    }

    .results-warning {
        grid-column: 1 / -1;
    }

    .results-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.results-warning {
    font-size: 12px;
    margin-top: 6px;
}

.results-warning.results-error {
    color: #c03a2b;
}

.results-warning.results-info {
    color: #2f7a44;
}

.results-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.results-saving {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}

.results-saving::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
    border: 3px solid #d6dde8;
    border-top-color: #4f8f65;
    border-radius: 50%;
    animation: results-spin 0.8s linear infinite;
    background: url('/images/mnmsoft-high-resolution-logo-transparent.png') center/82% no-repeat;
}

.results-saving::after {
    content: "\23F3";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 22px);
    color: #6b7280;
    font-size: 12px;
    line-height: 1;
}

.results-audit-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1060;
}

.results-audit-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 780px;
    max-width: 95vw;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #c7cbd4;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    padding: 16px 20px 20px;
    z-index: 1070;
}

.admin-audit-scroll {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

.admin-config-scroll {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

.admin-payment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-payment-item {
    border: 1px solid #e0e4ec;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    color: #67768A;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.admin-payment-item:hover {
    border-color: #bfc6d4;
    color: #414D97;
}

.admin-payment-modal {
    width: 520px;
    max-width: 95vw;
}

.admin-snackbar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #f5a623;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    z-index: 1400;
    opacity: 0.96;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-snackbar-close {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.admin-snackbar-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.admin-snackbar--success {
    background: #4f8f65;
}

.admin-snackbar--danger {
    background: #d9534f;
}

.admin-snackbar--hide {
    opacity: 0;
    transform: translateY(8px);
}

.overlap-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e5e9f1;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(24, 32, 67, 0.08);
}

.overlap-card__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.overlap-card__value {
    font-size: 30px;
    font-weight: 700;
    color: #4b2bbf;
}

.overlap-card--chart h5,
.overlap-card--matrix h5 {
    font-size: 18px;
    font-weight: 700;
    color: #4b2bbf;
}

.overlap-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overlap-bars--two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 56px;
    position: relative;
}

.overlap-bars--two-col::after {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: calc(50% - 0.5px);
    width: 1px;
    background: #e5e9f1;
    pointer-events: none;
}

.overlap-bars--two-col .overlap-bar {
    grid-template-columns: minmax(110px, 1.2fr) minmax(100px, 2.2fr) auto;
}

.overlap-bar--clickable {
    cursor: pointer;
}

.overlap-bar--clickable:hover .overlap-bar__track {
    box-shadow: inset 0 0 0 1px rgba(65, 77, 151, 0.25);
}

.overlap-modal {
    width: 720px;
    max-width: 95vw;
}

.overlap-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.overlap-modal-title {
    font-weight: 700;
    color: #2c3560;
}

.overlap-modal-table {
    max-height: 55vh;
}

.overlap-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.overlap-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf1fb;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.overlap-chip-sep {
    color: #94a3b8;
    font-weight: 700;
    font-size: 12px;
    margin: 0 2px;
}

.overlap-bar {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(120px, 2.4fr) auto;
    align-items: center;
    gap: 8px;
}

.overlap-bar__label {
    font-size: 12px;
    color: #1f2937;
}

.overlap-bar__track {
    height: 8px;
    background: #e4e8f2;
    border-radius: 999px;
    overflow: hidden;
}

.overlap-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #414d97 0%, #8394d2 100%);
}

.overlap-bar__value {
    font-weight: 600;
    color: #374151;
}

.overlap-table th,
.overlap-table td {
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
}

.overlap-table th {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.overlap-table td {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.overlap-table td.overlap-cell--light {
    color: #ffffff;
}

.overlap-table td.overlap-cell--dark {
    color: #1f2544;
}

.overlap-table td.overlap-cell--empty {
    background: #f1f3f8;
    color: #9aa3b2;
    font-weight: 500;
}

.overlap-table td.overlap-cell--shadow {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.overlap-scroll-section {
    max-height: 58vh;
    overflow: auto;
    padding-right: 6px;
}

@media (min-width: 1366px) and (min-height: 850px) {
    .overlap-scroll-section {
        max-height: calc(58vh + 300px);
    }
}

.overlap-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.overlap-table-scroll tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
}

.overlap-table-scroll thead th:first-child {
    left: 0;
    z-index: 3;
}

.overlap-page {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding-right: 6px;
}

.overlap-page__header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
    padding: 12px 12px 10px;
    margin-left: -12px;
    margin-right: -12px;
    border-bottom: 1px solid #e5e9f1;
    box-shadow: 0 6px 18px rgba(24, 32, 67, 0.08);
}

@media (max-width: 991px) {
    .overlap-page {
        max-height: calc(100vh - 120px);
    }
}

@media (max-width: 1100px) and (max-height: 820px) {
    .overlap-page {
        max-height: calc(100vh - 24px);
    }

    .overlap-card {
        padding: 10px 12px;
    }

    .overlap-card__value {
        font-size: 26px;
    }

    .overlap-bars {
        gap: 10px;
    }

    .overlap-bars--two-col {
        gap: 10px 32px;
    }

    .overlap-scroll-section {
        max-height: 44vh;
    }

    .overlap-page__header {
        padding: 10px 10px 8px;
    }
}

@media (max-width: 991px) {
    .overlap-bar {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .overlap-bar__track {
        width: 100%;
    }
}

.live-schedule-card--right-small {
    position: relative;
}

.live-schedule-snackbar-container {
    position: absolute;
    top: 42px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 30;
}

.live-schedule-snackbar {
    background: #f5a623;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    opacity: 0.96;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-schedule-snackbar--success {
    background: #4f8f65;
}

.live-schedule-snackbar--danger {
    background: #d9534f;
}

.live-schedule-snackbar--hide {
    opacity: 0;
    transform: translateY(6px);
}

.live-schedule-snackbar__text {
    white-space: nowrap;
}

.live-schedule-snackbar__close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.live-schedule-card--right-small #live-venue-grid {
    transition: filter 0.2s ease;
}

.live-schedule-card--right-small.is-snackbar-active #live-venue-grid {
    filter: blur(2px);
}

.admin-divider {
    height: 1px;
    background: #e6e9ef;
    margin: 16px 0;
}

.admin-payment-row + .admin-payment-row {
    margin-top: 16px;
    padding-top: 0px;
    border-top: 1px solid #edf0f5;
}

.results-audit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.main-draw-approve-modal .player-modal-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
}

.main-draw-approve-modal .player-modal-body {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-bottom: 4px;
}

.main-draw-approve-modal {
    width: 1080px !important;
    max-width: 98vw !important;
}

.main-draw-approve-modal .main-draw-bracket {
    padding: 8px 0;
}

.main-draw-approve-modal .bench-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.main-draw-approve-modal .main-draw-bracket-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.main-draw-approve-modal .main-draw-bracket-final .bench-column {
    min-width: 150px;
}

.main-draw-approve-modal .main-draw-bench-inline {
    display: flex;
    justify-content: center;
    padding: 6px 0 10px;
}

.main-draw-approve-modal .bench-title {
    font-size: 9px;
    font-weight: 600;
    color: #7b8796;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.main-draw-approve-modal .bench-slot {
    border: 1px dashed #c5ceda;
    background: #f6f8fb;
    cursor: grab;
}

.main-draw-approve-modal .bench-slot.is-empty {
    opacity: 0.85;
}

.main-draw-approve-modal .bracket-slot.is-empty[data-slot-index] .slot-name {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 12px;
}

.main-draw-approve-modal .bracket-slot.is-empty[data-slot-index] .bye-watermark {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9aa6b4;
    pointer-events: none;
}

.main-draw-approve-modal .bracket-slot.is-dragging {
    opacity: 0.6;
}

.main-draw-approve-modal .bracket-round {
    min-width: 120px;
}

.main-draw-approve-modal .bracket-round[data-round]:not([data-round="1"]) {
    min-width: 40px;
}

.main-draw-approve-modal .bracket-round[data-round]:not([data-round="1"]) .bracket-slot {
    padding-left: 6px;
}

.main-draw-approve-modal .bracket-slot {
    height: 28px;
    padding: 2px 5px 2px 8px;
    font-size: 9px;
}

.main-draw-approve-modal .bracket-slot::before {
    width: 5px;
}

.main-draw-approve-modal .bracket-slot .slot-meta {
    font-size: 7px;
}

.main-draw-approve-modal .bracket-slot .slot-score {
    right: 5px;
}

.main-draw-approve-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding-top: 4px;
    margin-top: 12px;
    border-top: 1px solid #edf0f5;
    z-index: 3;
}

.category-tabs .nav-link {
    color: #67768A;
}

.category-tabs .nav-link:hover {
    color: #4f8f65;
}

.results-audit-header h4 {
    margin: 0;
    color: #f5a623;
}

.results-audit-close {
    border: none;
    background: transparent;
    color: #67768A;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.results-audit-close:hover {
    color: #414D97;
}

@keyframes results-spin {
    to {
        transform: rotate(360deg);
    }
}

.draw-approved-link {
    color: #67768A;
    border-color: #C7CBD4;
}

.draw-approved-link:hover {
    color: #414D97;
    border-color: #A8B0C2;
}

.draw-scroll {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 6px;
}

.standings-scroll {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 6px;
    max-height: calc(100svh - 260px);
    padding-bottom: 16px;
    border-top: 1px solid #E0E4EC;
    border-bottom: 1px solid #E0E4EC;
}

@media (max-width: 1400px), (max-height: 800px) {
    .standings-scroll {
        max-height: calc(100vh - 110px);
        max-height: calc(100svh - 110px);
    }

    .standings-scroll--main-draw {
        max-height: calc(100vh - 140px);
        max-height: calc(100svh - 140px);
    }
}

.standings-scroll .table {
    width: 100%;
    table-layout: fixed;
}

.standings-scroll .table th:first-child,
.standings-scroll .table td:first-child {
    width: 36px;
}

.standings-scroll .table th:nth-child(2),
.standings-scroll .table td:nth-child(2) {
    width: 25%;
}

.standings-scroll .table th:not(:nth-child(2)),
.standings-scroll .table td:not(:nth-child(2)) {
    width: 8%;
}

@media (max-width: 1200px) {
    .standings-scroll .table {
        font-size: 11px;
    }

    .standings-scroll .table th,
    .standings-scroll .table td {
        padding: 4px 6px;
    }

    .standings-scroll .table th:not(:nth-child(2)),
    .standings-scroll .table td:not(:nth-child(2)) {
        white-space: nowrap;
    }

    .standings-scroll .table th:nth-child(2),
    .standings-scroll .table td:nth-child(2) {
        white-space: normal;
        word-break: break-word;
    }
}

.standings-scroll--main-draw {
    max-height: none;
    overflow: hidden;
    padding-right: 0;
}

.draw-config-scroll {
    height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
    padding-right: 6px;
}

.draw-config-sticky {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 12px;
    border: 1px solid #E0E4EC;
    border-radius: 10px;
    z-index: 2;
}

.seed-order-modal {
    width: 520px;
    max-width: 95vw;
}

.seed-drag-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seed-drag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    background: #ffffff;
    cursor: grab;
}

.seed-drag-item.seed-dragging {
    opacity: 0.6;
}

.seed-drag-handle {
    color: #9faab5;
    font-size: 14px;
}

.seed-drag-order {
    min-width: 24px;
    font-size: 12px;
    color: #6b7280;
    background: #eef2f7;
    border-radius: 10px;
    text-align: center;
    padding: 2px 6px;
}

.seed-drag-name {
    font-size: 14px;
    color: #67768A;
}

#seed-assign-modal .seed-assign-status {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 6px 0;
    z-index: 2;
    border-bottom: 1px solid #eef1f5;
}

#seed-assign-modal .seed-assign-scroll {
    max-height: 60vh;
    overflow-y: auto;
}

#seed-assign-modal .seed-assign-table thead th {
    position: sticky;
    top: 34px;
    background: #ffffff;
    z-index: 1;
    border-bottom: 1px solid #eef1f5;
}

#seed-assign-modal tr[data-seed-row] {
    cursor: pointer;
}

.draw-edit-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    min-width: 0;
    min-height: calc(100vh - 260px);
}

.draw-edit-bench {
    border: 1px dashed #d7dde7;
    border-radius: 10px;
    padding: 10px;
    background: #f8f9fc;
    position: sticky;
    top: 0;
    align-self: start;
    height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
}

.draw-edit-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 60px;
}

.draw-edit-bench-list {
    margin-top: 8px;
    flex: 1 1 auto;
}

.draw-edit-group {
    margin-bottom: 14px;
    min-width: 0;
}

.draw-edit-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #585b62;
    margin-bottom: 6px;
}

.draw-edit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    background: #ffffff;
    cursor: grab;
}

.draw-edit-item.is-locked {
    cursor: not-allowed;
    background: #f4f6f9;
    border-style: dashed;
}

.draw-edit-placeholder {
    padding: 6px 10px;
    border: 1px dashed #d7dde7;
    border-radius: 8px;
    font-size: 12px;
    color: #9faab5;
    text-align: center;
    background: #fafbfe;
}

.draw-edit-order {
    min-width: 24px;
    font-size: 12px;
    color: #6b7280;
    background: #eef2f7;
    border-radius: 10px;
    text-align: center;
    padding: 2px 6px;
}

.draw-edit-name {
    font-size: 13px;
    color: #67768A;
    line-height: 1.2;
}

.draw-edit-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.draw-edit-meta {
    font-size: 12px;
    color: #9faab5;
    line-height: 1.2;
}

.draw-edit-warning {
    color: #8d97a6;
}

.draw-edit-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding-top: 10px;
    padding-bottom: 12px;
    border-top: 1px solid #edf0f5;
}

.draw-config-body {
    margin-top: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.draw-config-subheader {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 4px 0 6px;
    z-index: 2;
    border-bottom: 1px solid #E0E4EC;
    box-shadow: 0 6px 8px -8px rgba(0, 0, 0, 0.25);
}

.draw-config-body .form-control {
    padding: 4px 8px;
    font-size: 13px;
}

.draw-sticky {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 12px 12px 8px;
    border: 1px solid #E0E4EC;
    border-radius: 10px;
    z-index: 2;
}

.draw-content {
    margin-top: 12px;
}

.menu .nav a{
    color: #67768A;
}

.menu .nav a:hover{
    color: #9faab5;
}
.active{
    color: #f5a623 !important;
    text-decoration: none;
}
.nav a{
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}
.nav li{
    padding-right: 12px;
}

.content .nav li{
    font-size: 18px;
}
.main-table-content {
    padding-top: 0px;
}

.content-column {
    padding-top: 44px;
}

.page-layout {
    height: 100vh;
    overflow: hidden;
    --bs-gutter-x: 0;
}

.page-layout .menu {
    min-height: 100%;
}

.config-setup-page {
    height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
}

.config-setup-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 8px 16px -12px rgba(15, 23, 42, 0.35);
}

.config-setup-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 96px;
}

.config-setup-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 12px 0 4px;
    margin-top: 24px;
    box-shadow: 0 -10px 18px -16px rgba(15, 23, 42, 0.35);
    z-index: 5;
}

.display-admin-page {
    height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
}

.display-admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 8px 16px -12px rgba(15, 23, 42, 0.35);
}

.display-admin-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 24px;
}

.marketing-image-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.players-page {
    height: calc(100vh - 96px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-subheader {
    background: #ffffff;
    padding-top: 0px;
    padding-bottom: 0px;
}

.main-table-content .row.mt-3.mb-3.content {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.draw-header h3,
.draw-header h6 {
    padding-top: 6px;
}

.draw-header {
    padding-left: 12px;
}

.draw-page-content {
    padding-left: 12px;
}
.btn{
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 10px;
    border-width: 1px;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 16px;
    border-style: solid;
    padding: 0px 15px;
    height: 32px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.1s ease 0s;
    outline-style: none;
    text-decoration: none;
    white-space: nowrap;
    color: rgb(255, 255, 255);
    border-color: rgb(36, 81, 36);
}
.btn-outline-secondary {
    color: #67768A;
    border-color: #67768A;
    background-color: transparent;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #ffffff;
    background-color: #67768A;
    border-color: #67768A;
}
.arrow {
    border: solid #f5a623;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 3.5px;
}
.content li a{
    color: #67768A;
}
.content li a:hover{
    color: #f5a623;
}
.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}
.table{
    font-size: 15px;
}
.players-page .table {
    font-size: 14px;
}

.table-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: auto;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    --table-filters-height: 44px;
}

.sticky-table {
    min-width: 980px;
    width: 100%;
}

.sticky-table {
    --table-header-height: 34px;
}

.sticky-table thead th {
    position: sticky;
    top: var(--table-filters-height);
    background: #ffffff;
    z-index: 2;
}
.sticky-table thead tr:first-child th {
    top: var(--table-filters-height);
    z-index: 3;
}
.table-filters {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #ffffff;
    padding: 6px 0;
    border-bottom: 1px solid #e5e5e5;
}
.table-filters-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 980px;
}
.table-filter-cell {
    min-height: 1px;
    overflow: hidden;
}
.player-search-input {
    width: 100%;
    max-width: 100%;
    min-width: 160px;
    font-size: 13px;
    padding: 4px 8px;
}
.filter-reset-btn {
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
    text-transform: none;
    color: #f5a623;
    border-color: #f5a623;
}
.filter-reset-btn:hover,
.filter-reset-btn:focus {
    color: #ffffff;
    background-color: #f5a623;
    border-color: #f5a623;
}

.btn-outline-danger {
    color: #c0392b;
    border-color: #c0392b;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #ffffff;
    background-color: #c0392b;
    border-color: #c0392b;
}
.modal-spinner {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 0;
    margin: 24px auto;
    position: relative;
    background: url('/images/mnmsoft-high-resolution-logo-transparent.png') center/82% no-repeat;
    --spinner-icon-gap: 6px;
    font-size: 14px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

thead, tbody {
    color: #67768A;
}
.table td, .table th{
    color: #67768A;
    padding-top: 4px;
    padding-bottom: 4px;
    white-space: nowrap;
}
.table tbody tr[data-player-edit-url] {
    cursor: pointer;
}
.table tbody tr[data-player-edit-url]:hover {
    background-color: #f8fafc;
}
.table tbody tr[data-player-edit-url] .player-no-row-click {
    cursor: default;
}
.table tbody tr[data-meal-edit-url] {
    cursor: pointer;
}
.table tbody tr[data-meal-edit-url]:hover {
    background-color: #f8fafc;
}
.table tbody tr[data-meal-edit-url] .meal-no-row-click {
    cursor: default;
}
.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.category-seed-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}
.category-direct-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffe1e1;
    color: #9d1515;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.category-chip-main {
    background-color: #e6eef7;
    color: #2f4c6b;
}
.category-chip-additional {
    background-color: #f1eaf8;
    color: #4b3a66;
}

.category-chip-main.chip-else {
    background-color: #e3edf7;
    color: #32506f;
}
.category-chip-additional.chip-else {
    background-color: #efe7f8;
    color: #4f3c6a;
}

.uppercase {
    text-transform: uppercase;
}

.akeneo-color {
    color: #f5a623;
}

.akeneo-text-color {
    color: #67768A
}

.error {
    color: #ec0932;
    font-size: 11px;
}

.catalog-link {
    color: #f5a623;
    text-decoration: none;
    margin-left: 6px;
    font-style: italic;
}

.catalog-link:hover {
    color: #fd7a10;
}

.disabled-input {
    pointer-events: none;
    background-color: #e8e8e8 !important;
}

.logo {
    margin: 0px 8px 24px 0;
}

.logo-image {
    width: 100%;
}

.custom-link {
    color: white
}

.custom-link:hover {
    color: #67768A
}

.top-menu-item {
    color: #67768A;
}

.top-menu-item:hover {
    color: #f5a623;
}

.user-name {
    color: #67768A;
    font-style: italic;
    text-decoration: none;
    margin-left: 24px;
}

.left-bordered-div {
    border-left: 1px solid #f5a623;
}

.right-alignment {
    float: right;
}

.right-alignment:after {
    float: none;
}

.welcome-message {
    margin-bottom: 50px;
}

.user-info {
    font-size: 14px;
    float: right;
}

.user-info:after {
    float: none;
}

.back-button-wrapper {
    margin-bottom: 3rem;
}

.display-none {
    display: none;
}

.centered-content {
    margin-left: 40%;
    margin-top: 25rem !important;
}

.table-link {
    color: #67768A;
    text-decoration: none;
}

.table-link:hover {
    color: #9faab5;
}

.checked-icon {
    height: 20px;
    width: 20px;
}

.food-icon-color-grey {
    fill: #dfe2ea;
}

.food-icon-color-green {
    fill: #18ae66;
}

.small-table {
    width: 50%;
}

.paid-toggle-btn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.paid-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1040;
}

.paid-popup {
    position: fixed;
    z-index: 1050;
    display: none;
    min-width: 240px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #c7cbd4;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.paid-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.paid-popup-title {
    font-weight: 700;
    font-size: 16px;
    color: #414D97;
}

.paid-popup-close {
    border: none;
    background: transparent;
    color: #67768A;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.paid-popup-close:hover {
    color: #414D97;
}

.paid-popup-checkbox {
    font-size: 16px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.player-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1060;
}

.player-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 720px;
    max-width: 95vw;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #c7cbd4;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    padding: 16px 20px 20px;
    z-index: 1070;
}
.player-audit-modal {
    width: 900px;
}
.login-modal {
    left: auto;
    top: 72px;
    right: 24px;
    transform: none;
    width: 360px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 120px);
}

.player-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.player-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-form-actions {
    display: flex;
    justify-content: flex-end;
}

.player-modal-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    gap: 12px;
}

.player-modal-actions-left {
    display: flex;
    align-items: flex-end;
}

.player-modal-actions-right {
    display: flex;
    align-items: flex-end;
}

.player-delete-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.player-restore-btn {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    line-height: 1;
}

.player-restore-btn:hover svg path {
    stroke: #414D97;
}

.player-restore-btn svg {
    display: block;
}

.player-restore-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.player-action-items {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.player-action-items form {
    margin: 0;
}

.player-modal-header h4 {
    margin: 0;
    color: #f5a623;
}

.player-modal-close {
    border: none;
    background: transparent;
    color: #67768A;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.player-modal-close:hover {
    color: #414D97;
}

.audit-log-table {
    font-size: 13px;
}

.audit-log-table th,
.audit-log-table td {
    vertical-align: top;
    white-space: nowrap;
}

.audit-log-table td {
    max-width: 220px;
    white-space: normal;
    word-break: break-word;
}

.payment-summary-card {
    padding: 12px !important;
    width: 26% !important;
    font-size: 13px;
}

.payment-summary-card .badge {
    font-size: 12px;
    padding: 4px 8px;
}

.payment-summary-card .progress {
    height: 6px;
}
.draw-edit-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 6px;
}

@media (max-width: 1400px), (max-height: 800px) {
    .draw-edit-grid {
        min-height: calc(100vh - 140px);
    }

    .draw-edit-bench {
        height: calc(100vh - 140px);
    }

    .draw-edit-groups {
        max-height: calc(100vh - 140px);
    }
}

@media (min-width: 1400px) {
    .draw-edit-groups {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.main-draw-card {
    min-height: 300px;
}

.main-draw-card-header {
    background: #ffffff;
    padding: 8px 0 6px;
    margin: 0 0 6px;
    border-bottom: 1px solid #edf0f5;
}

.main-draw-card-header--fixed {
    position: sticky;
    top: 0;
    z-index: 3;
}

.main-draw-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

.main-draw-actions form {
    margin: 0;
}

.main-draw-bracket-wrapper {
    position: relative;
}

.main-draw-bracket-scroll {
    max-height: calc(100vh - 420px);
    max-height: calc(100svh - 420px);
    overflow-y: auto;
    overflow-x: auto;
    padding-right: 6px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.main-draw-bracket-scrollbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable;
    background: #ffffff;
    border-top: 1px solid #eef1f6;
}

.main-draw-bracket-scrollbar__spacer {
    height: 1px;
}

.main-draw-bracket-scrollbar::-webkit-scrollbar {
    height: 10px;
}

.main-draw-bracket-scrollbar::-webkit-scrollbar-track {
    background: #d6d6d6;
}

.main-draw-bracket-scrollbar::-webkit-scrollbar-thumb {
    background: #8a8a8a;
    border-radius: 999px;
}

@media (max-width: 1400px), (max-height: 800px) {
    .main-draw-bracket-scroll {
        max-height: calc(100vh - 200px);
        max-height: calc(100svh - 200px);
    }
}

.main-draw-bracket {
    display: flex;
    gap: 20px;
    overflow: visible;
    padding: 16px 0;
    position: relative;
    width: max-content;
}

.main-draw-bracket--mirror {
    gap: 24px;
    align-items: center;
}

.main-draw-bracket-half {
    display: flex;
    gap: 16px;
}

.main-draw-bracket-half--mirror-left {
    flex-direction: row-reverse;
}

.main-draw-bracket-half--mirror-right {
    flex-direction: row;
}

.main-draw-bracket-final {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: var(--round-gap);
    padding-top: var(--round-offset);
    min-width: 180px;
    position: relative;
}

.bracket-round:first-child {
    padding-top: 0;
}

.bracket-match-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bracket-match {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    z-index: 2;
}

.main-draw-card .bracket-round:first-child .bracket-match {
    gap: 4px;
}

.main-draw-card .bracket-round:first-child {
    gap: 24px;
}

.main-draw-card .bracket-match::before,
.main-draw-card .bracket-match::after,
.main-draw-card .bracket-match-wrapper::before,
.main-draw-card .bracket-match-wrapper::after,
.main-draw-card .bracket-match .bracket-slot:last-child::after,
.main-draw-approve-modal .bracket-match::before,
.main-draw-approve-modal .bracket-match::after,
.main-draw-approve-modal .bracket-match-wrapper::before,
.main-draw-approve-modal .bracket-match-wrapper::after {
    content: none;
}

/* Horizontal line from top slot extending right */
.bracket-round:not(.is-final) .bracket-match::before {
    content: '';
    position: absolute;
    right: 0;
    top: calc(50% - 25px);
    width: 20px;
    height: 2px;
    background: #3a3a3a;
    z-index: 1;
}

/* Horizontal line from bottom slot extending right */
.bracket-round:not(.is-final) .bracket-match .bracket-slot:last-child::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #3a3a3a;
    z-index: 1;
}

/* Horizontal line coming from left connecting to match center (subsequent rounds) */
.bracket-round:not(:first-child) .bracket-match::after {
    content: '';
    position: absolute;
    left: -20px;
    right: 50%;
    top: 50%;
    height: 2px;
    background: #3a3a3a;
    z-index: 1;
}

/* Vertical line connecting pairs - odd matches extend down from match center */
.bracket-round:not(.is-final) .bracket-match-wrapper:nth-child(odd)::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 2px;
    height: calc((var(--round-gap) + 94px) / 2);
    background: #3a3a3a;
    z-index: 1;
}

/* Vertical line connecting pairs - even matches extend up from match center */
.bracket-round:not(.is-final) .bracket-match-wrapper:nth-child(even)::before {
    content: '';
    position: absolute;
    right: -20px;
    bottom: 50%;
    width: 2px;
    height: calc((var(--round-gap) + 94px) / 2);
    background: #3a3a3a;
    z-index: 1;
}

/* Horizontal connector from vertical midpoint to next round */
.bracket-round:not(.is-final) .bracket-match-wrapper::after {
    content: '';
    position: absolute;
    right: -20px;
    width: 20px;
    height: 2px;
    background: #3a3a3a;
    z-index: 1;
}

/* Position connector at bottom of vertical (odd matches) */
.bracket-round:not(.is-final) .bracket-match-wrapper:nth-child(odd)::after {
    top: calc(50% + (var(--round-gap) + 94px) / 2);
}

/* Position connector at top of vertical (even matches) */
.bracket-round:not(.is-final) .bracket-match-wrapper:nth-child(even)::after {
    top: calc(50% - (var(--round-gap) + 94px) / 2);
}

/* Horizontal line coming from left connecting to match center (subsequent rounds) */
.bracket-round:not(:first-child) .bracket-match::after {
    content: '';
    position: absolute;
    left: -20px;
    right: 50%;
    top: 50%;
    height: 2px;
    background: #3a3a3a;
    z-index: 1;
}

/* Final round: no outgoing lines */
.bracket-round.is-final .bracket-match-wrapper::before,
.bracket-round.is-final .bracket-match-wrapper::after {
    display: none;
}

.bracket-slot {
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 4px 6px 4px 14px;
    height: 44px;
    background: #EAEAEA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    color: #2f3b4a;
    line-height: 1.2;
    position: relative;
    box-shadow: none;
}

/* Fat left border on all brackets */
.bracket-slot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: #3a3a3a;
    border-radius: 6px 0 0 6px;
    z-index: 1;
}

.bracket-slot.is-bye {
    background: #f4f6fa;
    color: #7c8a9d;
}

.bracket-slot.is-loser {
    opacity: 0.45;
}

.bracket-match--interactive {
    cursor: pointer;
}

.main-results-modal {
    width: 860px;
    max-width: 96vw;
}

.bracket-slot .slot-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bracket-slot .slot-meta {
    font-size: 10px;
    color: #7c8a9d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bracket-slot .slot-score {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #2f3b4a;
}

.main-draw-card .bracket-match::before,
.main-draw-card .bracket-match::after,
.main-draw-card .bracket-match-wrapper::before,
.main-draw-card .bracket-match-wrapper::after,
.main-draw-card .bracket-match .bracket-slot:last-child::after,
.main-draw-approve-modal .bracket-match::before,
.main-draw-approve-modal .bracket-match::after,
.main-draw-approve-modal .bracket-match-wrapper::before,
.main-draw-approve-modal .bracket-match-wrapper::after,
.main-draw-approve-modal .bracket-match .bracket-slot:last-child::after {
    content: none !important;
    display: none !important;
}


/* Density tweaks */
.app-navbar .container {
    padding-top: 0px;
    padding-bottom: 0px;
    min-height: 38px;
    align-items: center;
}

.content-column {
    padding-top: 38px;
}

.main-table-content {
    padding-top: 0;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1401px) and (min-height: 801px) {
    .content-column {
        padding-top: 60px;
    }

    .main-table-content {
        padding-top: 16px;
    }

    .page-subheader {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main-table-content .row.mt-3.mb-3.content {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

.tables-left-panel .tables-left-scroll {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 6px;
}

.tables-left-panel .card {
    padding: 12px !important;
}

.tables-left-panel .card + .card {
    margin-top: 10px;
}

.tables-left-panel .mb-3 {
    margin-bottom: 10px !important;
}

.tables-left-panel .mb-2 {
    margin-bottom: 6px !important;
}

.tables-left-panel .form-label {
    font-size: 12px;
}

.tables-left-panel .form-select {
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 12px;
}

.tables-left-panel h5 {
    font-size: 12px;
    margin-bottom: 6px !important;
}

.tables-left-panel .form-control,
.tables-left-panel .form-select {
    min-height: 28px;
}

.tables-left-panel .btn {
    padding: 3px 10px;
    font-size: 12px;
}

.tables-right-panel .card {
    padding: 12px !important;
}

.tables-right-panel h5 {
    font-size: 13px;
    margin-bottom: 8px !important;
}

.tables-right-panel .table {
    font-size: 12px;
}

.tables-right-panel .btn {
    padding: 3px 8px;
    font-size: 12px;
}

.tables-right-panel .badge {
    font-size: 11px;
}

.live-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e3e8f1;
    border-radius: 10px;
    background: #f9fbff;
}

.live-schedule-handle {
    cursor: grab;
    color: #6f7c90;
    font-weight: 700;
    letter-spacing: 0.06em;
    user-select: none;
}

 

.live-schedule-priority {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e7eef8;
    color: #2f4c6b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    margin-right: 8px;
}

.live-schedule-item.is-dragging {
    opacity: 0.6;
}

.live-schedule-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-order-status {
    font-size: 11px;
    color: #7c8a9d;
    margin-left: 6px;
}

.live-schedule-form .form-select {
    width: 96px;
    padding: 2px 6px;
    font-size: 12px;
}

.live-schedule-card h5 {
    font-size: 11px;
    color: #1f2937;
    font-weight: 700;
}

.live-busy-title {
    font-weight: 700;
    font-size: 14px;
}

.live-busy-sort {
    font-weight: 400;
    color: #4b5563;
}

.live-schedule-card--right-small h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.live-schedule-item .fw-semibold {
    font-size: 13px;
}

.live-schedule-item .text-muted.small {
    font-size: 11px;
}

.live-table-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.live-table-badges .badge {
    font-size: 13px;
    padding: 5px 10px;
}

.venue-grid,
.venue-layout-grid {
    display: grid;
    grid-template-columns: repeat(var(--venue-cols, 1), minmax(0, 1fr));
    gap: 8px;
}

.venue-cell {
    min-height: 32px;
}

.venue-table {
    height: 100%;
    min-height: 32px;
    border-radius: 8px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e1ee;
    background: #eef4fb;
    color: #2f4c6b;
    overflow: hidden;
    cursor: pointer;
}

.venue-table.is-free {
    background: #d9f2e1;
    color: #1f6b3d;
    border-color: #bfe3cd;
    justify-content: flex-start;
    font-size: 13px;
    font-weight: 900;
}

.venue-table.is-occupied {
    background: #fff3cd;
    color: #7a5b15;
    border-color: #f1d79a;
    justify-content: flex-start;
    gap: 0;
}

.venue-table__left {
    flex: 0 0 auto;
    min-width: 48px;
}

.venue-table__number {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.05;
}

.venue-table__right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 0;
    align-items: flex-end;
    text-align: right;
}

.venue-table__title {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-table__players {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-table.placeholder {
    visibility: hidden;
}

.venue-table.draggable {
    cursor: grab;
}

.venue-table.draggable.is-dragging {
    opacity: 0.6;
}

.venue-cell.is-drop-target .venue-table.is-free {
    outline: 2px dashed #2f7d57;
    outline-offset: 2px;
}

.live-schedule-card {
    display: flex;
    flex-direction: column;
}

.live-schedule-card--left {
    max-height: calc((100vh - 200px) / 2 + 30px);
    max-height: calc((100svh - 200px) / 2 + 30px);
}

.live-schedule-card--right-small {
    max-height: 280px;
}

.live-schedule-card--right-large {
    max-height: calc(100vh - 200px - 280px + 30px);
}

.live-schedule-scroll {
    overflow-y: auto;
    padding-right: 6px;
    flex: 1;
}

.live-busy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-busy-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-ready-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.live-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.live-category-filters .btn {
    flex: 0 0 auto;
    padding: 0.18rem 0.56rem;
    font-size: 1rem;
    line-height: 1.15;
    border-radius: 10px;
    background: #ffffff;
    border-color: #c9d4e5;
    color: #1f3b5a;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    min-width: 33px;
    justify-content: center;
}

.live-category-filters .btn.is-active {
    background: #e1ecff;
    border-color: #b6cff7;
    color: #1f3b5a;
}

.live-panel-loading-container {
    position: relative;
}

.live-panel-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    z-index: 20;
}

.live-panel-loading.is-visible {
    display: flex;
}

.live-panel-loading__spinner {
    width: 96px;
    height: 96px;
    border-radius: 0;
    border: none;
    position: relative;
    background: url('/images/mnmsoft-high-resolution-logo-transparent.png') center/82% no-repeat;
    --spinner-icon-gap: 8px;
    font-size: 16px;
}

@keyframes live-spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-spinner::before,
.live-panel-loading__spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e5e5e5;
    border-top-color: #2e6d3a;
    animation: spin 0.9s linear infinite;
}

.live-panel-loading__spinner::before {
    border-width: 5px;
    border-top-color: #2b6cb0;
    animation: live-spin 0.9s linear infinite;
}

.modal-spinner::after,
.live-panel-loading__spinner::after {
    content: "\23F3";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: var(--spinner-icon-gap);
    color: #6b7280;
    line-height: 1;
    font-size: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .modal-spinner::before,
    .live-panel-loading__spinner::before,
    .results-saving::before {
        animation: none;
    }
}

.live-busy-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.live-busy-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e3e8f1;
    border-radius: 10px;
    background: #fffaf3;
    color: #1f2937;
}

.live-busy-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.live-busy-row--compact {
    align-items: center;
}

.live-busy-body--compact {
    flex: 0 0 40%;
    min-width: 0;
}

.live-busy-meta {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.live-busy-body {
    flex: 1;
    min-width: 0;
}

.live-busy-table-slot {
    align-self: center;
    flex: 0 0 26%;
    display: flex;
    justify-content: flex-start;
    padding-left: 12px;
}

.live-busy-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}

.live-busy-meta .live-busy-actions {
    flex-wrap: nowrap;
}

.live-busy-action-form {
    margin: 0;
}

.live-busy-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.live-phase-chip {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0f4fa;
    color: #465268;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.live-status-chip {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.live-status-chip.is-live {
    background: #d9f2e1;
    color: #1f6b3d;
}

.live-status-chip.is-rest {
    background: #fff3cd;
    color: #7a5b15;
}

.live-status-chip--busy {
    background: #fde2e1;
    color: #b42318;
}

.live-status-chip--rest {
    background: #fff3cd;
    color: #7a5b15;
}

.live-table-chip {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: #e7eef8;
    color: #2f4c6b;
}

.live-table-chip--large {
    padding: 10px 20px;
    font-size: 20px;
    letter-spacing: 0.06em;
    background: #d6e7ff;
    color: #1f3b5a;
}

.live-table-chip--button {
    padding: 0.25rem 0.6rem;
    margin-right: 6px;
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: #e7eef8;
    color: #1f2937;
    white-space: nowrap;
    min-height: 28px;
    min-width: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-schedule-title {
    font-size: 1.35rem;
    font-weight: 700;
}

@media (max-width: 1400px), (max-height: 800px) {
    .live-schedule-card--left {
        max-height: calc((100vh - 160px) / 2 + 30px);
        max-height: calc((100svh - 160px) / 2 + 30px);
        padding: 10px !important;
    }

    .live-schedule-card--right-small {
        max-height: 220px;
    }

    .live-schedule-card--right-large {
        max-height: calc(100vh - 320px);
        max-height: calc(100svh - 290px);
    }

    .venue-grid {
        gap: 4px;
    }

    .venue-cell {
        min-height: 26px;
    }

    .venue-table {
        min-height: 26px;
        padding: 2px 4px;
        font-size: 9px;
        font-weight: bolder;
    }

    .venue-table.is-free {
        font-size: 10px;
        font-weight: 900;
    }

    .venue-table__number {
        font-size: 10px;
        font-weight: 900;
    }

    .venue-table__title,
    .venue-table__players {
        font-size: 8px;
    }

    .live-busy-controls {
        /*flex-wrap: wrap;*/
    }

    .live-busy-item {
        padding: 4px 6px;
        gap: 3px;
    }

    .live-busy-row {
        gap: 4px;
        flex-direction: column;
        align-items: stretch;
    }

    .live-busy-body--compact {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .live-busy-body--compact .fw-semibold {
        font-size: 11px;
        white-space: nowrap;
    }

    .live-busy-body--compact .text-muted.small {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .live-busy-meta {
        width: 100%;
    }

    .live-busy-table-slot {
        flex: 0 0 22%;
        padding-left: 6px;
    }

    .live-busy-actions {
        gap: 3px;
        flex-wrap: nowrap;
    }

    .live-busy-chips {
        gap: 3px;
        flex-wrap: nowrap;
    }

    .live-busy-actions .btn {
        padding: 2px 6px;
        font-size: 10px;
        height: 24px;
    }

    .live-table-chip--button {
        padding: 0.15rem 0.4rem;
        min-height: 22px;
        min-width: 52px;
        font-size: 0.65rem;
    }

    .live-table-chip--large {
        padding: 6px 12px;
        font-size: 16px;
    }

    .live-phase-chip,
    .live-status-chip,
    .live-table-chip {
        font-size: 9px;
        padding: 2px 6px;
    }

.live-ready-header h5,
.live-busy-header-right h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

    .live-category-filters .btn {
        font-size: 0.8rem;
        padding: 0.12rem 0.25rem;
        border-radius: 7px;
    }

    .live-schedule-list {
        gap: 3px;
    }

    .live-schedule-item {
        gap: 5px;
        padding: 3px 6px;
        border-radius: 8px;
        color: #2f3b4a;
    }

    .live-schedule-priority {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        margin-right: 4px;
    }

    .live-schedule-item .fw-semibold {
        font-size: 11px;
        color: #1f2937;
    }

    .live-schedule-item .text-muted.small {
        font-size: 9px;
        color: #4b5563;
    }

    .live-schedule-form {
        gap: 3px;
    }

    .live-schedule-form .form-select {
        width: 76px;
        padding: 1px 4px;
        font-size: 10px;
    }
}

.live-results-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1080;
}

.live-results-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 660px;
    max-width: 96vw;
    max-height: calc(100vh - 140px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c7cbd4;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    padding: 16px 20px 20px;
    z-index: 1090;
}

.table-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-info__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.table-info__meta-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.table-info__table {
    font-weight: 700;
    color: #1f2937;
}

.table-info__context {
    font-weight: 600;
    color: #1f2937;
}

.table-info__category,
.table-info__assigned {
    font-size: 12px;
    color: #4b5563;
}

.table-info__details {
    display: grid;
    gap: 2px;
}

.table-info__players {
    display: grid;
    gap: 2px;
    font-size: 13px;
}

.table-info__player {
    font-weight: 600;
    color: #1f2937;
}

.table-info__footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.table-info__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-info__note {
    font-size: 12px;
    color: #6b7280;
}

.table-info--empty .table-info__table {
    margin-bottom: 4px;
}

.live-results-modal--compact {
    width: 520px;
}

.live-results-modal--wide {
    width: 860px;
    max-width: 96vw;
    min-width: 780px;
}

.live-results-overlay--top {
    z-index: 1120;
}

.live-results-modal--top {
    z-index: 1130;
}

.live-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.live-results-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.live-results-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 12px;
}

.live-results-close {
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
}

.live-confirm {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fff5f5;
    border: 1px solid #f3c7c7;
}

.live-confirm-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8d7da;
    color: #842029;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

@media (min-width: 1400px) {
    .main-table-content {
        max-width: 1600px;
    }
}

.main-table-content h3 {
    margin-bottom: 2px;
}

.main-table-content h6 {
    margin-bottom: 0;
}

.page-subheader {
    padding-top: 4px;
    padding-bottom: 4px;
}

.category-tabs .nav-link {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
}

.nav a {
    font-size: 12px;
    line-height: 18px;
}

.nav li {
    padding-right: 8px;
}

.content .nav li {
    font-size: 16px;
}

.draw-header h3,
.draw-header h6 {
    padding-top: 2px;
}

.btn {
    height: 28px;
    padding: 0 12px;
    gap: 8px;
    font-size: 12px;
    border-radius: 14px;
}

.meal-image {
    max-width: 320px;
    height: auto;
    border-radius: 6px;
}

.meal-image-field {
    position: relative;
}

.meal-image-preview {
    position: relative;
    display: inline-block;
}

.meal-image-remove-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.meal-image-remove-label {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #bf0d0d;
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}

.meal-image-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-image-field.has-image .meal-image-input {
    display: none;
}

.meal-image-field.show-input .meal-image-input {
    display: flex;
}

.meal-image-field.show-input .meal-image-preview {
    display: none;
}

.meal-image-remove-input:checked ~ .meal-image-preview {
    display: none;
}

.meal-image-remove-input:checked ~ .meal-image-input {
    display: flex;
}

.meal-image-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.meal-image-input-label {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    background: #198754;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.meal-image-input-name {
    font-size: 12px;
    color: #4a4a4a;
}

.meal-image-field .custom-error {
    color: #bf0d0d;
}

.meal-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.meal-overview-scroll {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 6px;
}

@media (max-width: 900px) {
    .meal-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px), (max-height: 800px) {
    .meal-overview-scroll {
        max-height: calc(100vh - 120px);
    }
}

.meal-overview-card {
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.meal-overview-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f4f6f9;
}

.meal-overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meal-overview-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.meal-overview-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4a4a4a;
}

.meal-overview-empty {
    font-size: 13px;
    color: #67768A;
}
