/**
 * Estilos — division.css (restaurado do template original)
 */
.chart {
            margin-bottom: 20px;
        }
        .btn-primary {
            font-size: 11px;
            padding: auto;

        }
        .max-points {
            font-size: 11px;
            color: #000;
            font-style: bold;
        }
        .max_score {
            font-size: 12px;
        }
        .divisiontop {
            background-color: #bababb;
            padding: 10px;
            font-weight: 600;
            font-size: large;
            margin-top: 20px;
        
        }
        .division_updated {
            font-size: 18px;
            margin: 10px 0;
        }
        .match_points_new {
            color: #888;
            font-size: 14px;
        }
        .table-responsive {
            overflow-x: auto;
        }
        .table th, .table td {
            text-align: center;
            padding: 0.5rem;
            font-size: 14px;
            vertical-align: middle;
        }
        .btn {
            margin-right: 10px;
            margin-bottom: 10px;
        }
        @media (max-width: 768px) {
            .table th, .table td {
                font-size: 12px;
                padding: 0.35rem;
                vertical-align: middle;
            }

            .table {
                margin-bottom: 0.5rem;
            }

            .table-responsive {
                margin-bottom: 1rem;
                -webkit-overflow-scrolling: touch;
            }

            .max-points {
                font-size: 9px;
                display: block;
                line-height: 1.2;
            }

            .max_score {
                font-size: 10px;
            }

            .shooter-name {
                font-size: 11px;
                gap: 0.25rem;
            }

            .shooter-name a {
                gap: 0.25rem;
                margin-right: 0.25rem;
            }

            .verify-indicator {
                width: 14px !important;
                height: 14px !important;
                font-size: 0.6rem !important;
                margin: 0 0.25rem !important;
            }

            .badge {
                font-size: 0.65em;
                padding: 0.25em 0.5em;
            }

            .division-header h4 {
                font-size: 1rem;
            }

            .division-header-main h3 {
                font-size: 1.1rem;
            }

            .info-box {
                font-size: 0.9rem;
                padding: 0.75rem;
            }

            .info-box h5 {
                font-size: 1rem;
            }

            .info-box ul {
                padding-left: 1rem;
            }

            .quick-nav-item {
                padding: 0.35rem 0.7rem;
                font-size: 0.9rem;
            }

            .alert-mobile {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }

            /* Ajuste para melhor visualização da tabela em mobile */
            .table-responsive {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
                margin: 0 -10px;  /* Compensar o padding do body */
                padding: 0 10px;
            }

            /* Estilizar a barra de rolagem para melhor visualização */
            .table-responsive::-webkit-scrollbar {
                height: 6px;
            }

            .table-responsive::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 3px;
            }

            .table-responsive::-webkit-scrollbar-thumb {
                background: #888;
                border-radius: 3px;
            }

            .table-responsive::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

            /* Mobile: sem coluna fixa — evita sobreposição e cortes */
            .table th:first-child,
            .table td:first-child {
                position: static;
                left: auto;
                z-index: auto;
            }

            /* viewport: controlado pelo meta do base_match */
        }

        /* Ajustes específicos para telas muito pequenas */
        @media (max-width: 375px) {
            .table th, .table td {
                font-size: 11px;
                padding: 0.3rem;
            }

            .max-points {
                font-size: 8px;
            }

            .shooter-name {
                font-size: 10px;
            }

            .shooter-header {
                flex-wrap: wrap;
                white-space: normal;
                gap: 0.2rem;
            }

            .verify-indicator {
                width: 12px !important;
                height: 12px !important;
                font-size: 0.5rem !important;
            }
        }

        /* Estilo base para o badge */
        .badge {
            display: inline-flex;
            align-items: center;
            padding: 0.35em 0.65em;
            font-size: 0.75em;
            font-weight: 700;
            line-height: 1;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: 0.25rem;
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: all 0.2s ease;
            min-width: 50px;
            justify-content: center;
            flex-shrink: 0;
            border: 1.5px solid #bdbdbd;
        }

        /* Formato arredondado (pill) */
        .badge-pill {
            padding-right: 0.6em;
            padding-left: 0.6em;
            border-radius: 10rem;
        }

        /* Category Badge Styles */
        .badge-category {
            background-color: #f3e8ff;
            color: #6f42c1;
            padding: 0.15rem 0.5rem;
            border-radius: 0.25rem;
            border: 1.5px solid #bdbdbd;
            min-width: 60px;
            justify-content: center;
            font-size: 0.75rem;
        }

        /* Team Badge Styles */
        .badge-team {
            background-color: #fff3cd;
            color: #000000;
            padding: 0.15rem 0.5rem;
            border-radius: 0.25rem;
            border: 1.5px solid #bdbdbd;
            min-width: 60px;
            justify-content: center;
            font-size: 0.75rem;
        }

        /* Division Colors */
        .badge-OPEN {
            background: linear-gradient(135deg, var(--match-accent), var(--match-accent-dark));
            color: white;
        }

        .badge-PROD {
            background: linear-gradient(135deg, var(--match-info-blue), var(--match-info-blue-dark));
            color: white;
        }

        .badge-STD {
            background: linear-gradient(135deg, #6f42c1, #563d7c);
            color: white;
        }

        .badge-CLASSIC {
            background: linear-gradient(135deg, #fd7e14, #d65d0e);
            color: white;
        }

        .badge-REVO {
            background: linear-gradient(135deg, #dc3545, #bd2130);
            color: white;
        }

        .badge-PCC {
            background: linear-gradient(135deg, #17a2b8, #138496);
            color: white;
        }

        .badge-CARRY {
            background: linear-gradient(135deg, var(--match-teal), var(--match-teal-dark));
            color: white;
        }

        .badge-L10 {
            background: linear-gradient(135deg, #e83e8c, #d91a72);
            color: white;
        }

        .badge-LIMITED {
            background: linear-gradient(135deg, #6c757d, #495057);
            color: white;
        }

        /* Ajustando dentro de tabelas */
        table .badge {
            display: inline-block;
            min-width: 50px;
            text-align: center;
        }

        /* Badge dentro de tabelas (alinhamento melhorado) */
        td .badge {
            padding: 0.3em 0.7em;
            font-size: 0.6rem;
            vertical-align: middle;
        }
        
        /* Garantir que a badge-team mantenha a cor preta */
        td .badge.badge-team {
            color: #000000 !important;
            background-color: #fff3cd !important;
        }

        /* Quick Navigation Styles */
        .quick-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }

        .quick-nav-item {
            text-decoration: none;
            color: #fff;
            background: var(--match-accent);
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: 1px solid var(--match-accent-dark);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .quick-nav-item:hover {
            background: var(--match-accent-dark);
            color: white;
            transform: translateY(-1px);
        }

        .quick-nav-item i {
            font-size: 0.9rem;
        }

        .alert-mobile {
            background-color: #fff3cd;
            color: #856404;
            padding: 0.75rem 1.25rem;
            border: 1px solid #ffeeba;
            border-radius: 0.5rem;
            margin: 1rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            text-align: center;
        }

        .alert-mobile i {
            font-size: 1.25rem;
        }

        .alert-mobile span {
            font-weight: bold;
        }

        /* division-header legado: usar match_page_header.html + layout.css */

        /* Info Box Styles */
        .info-box {
            background-color: #e7f5ff;
            border: 1px solid #b8daff;
            border-radius: 0.5rem;
            padding: 1rem;
            margin: 1rem 0;
            color: #004085;
        }

        .info-box h5 {
            margin: 0 0 0.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .info-box ul {
            margin: 0;
            padding-left: 1.5rem;
        }

        .info-box li {
            margin-bottom: 0.25rem;
        }

        .info-box i {
            color: var(--match-accent);
        }

        /* Shooter Name Styles */
        .shooter-name {
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            justify-content: flex-start;
            width: 100%;
            text-align: left;
        }

        .shooter-name a {
            color: var(--match-accent);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-right: 0.5rem;
            flex-shrink: 0;
        }

        .shooter-name a:hover {
            color: var(--match-accent-dark);
        }

        .shooter-name i {
            color: var(--match-accent);
            font-size: 0.9rem;
        }

        .shooter-name .verify-indicator {
            position: relative;
            background-color: var(--match-accent);
            color: white;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            border: 2px solid white;
            margin: 0 0.5rem;
            top: 0;
            right: 0;
            flex-shrink: 0;
        }

        /* Header Styles */
        .division-header-main {
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 0.5rem;
            margin: 0.5rem 0;
            border-left: 4px solid var(--match-accent);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .division-header-main h3 {
            margin: 0 0 0.25rem 0;
            color: var(--match-accent);
        }

        .division-header-main h4 {
            margin: 0 0 0.25rem 0;
            color: #343a40;
        }

        .division-header-main a {
            color: var(--match-accent);
            text-decoration: none;
        }

        .division-header-main a:hover {
            color: var(--match-accent-dark);
        }

        .division-header-main .text-muted {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .division-header-main .text-muted i {
            color: #6c757d;
        }

        /* Portrait mode specific styles */
        @media (max-width: 768px) and (orientation: portrait) {
            .landscape-only {
                display: none !important;
            }

            /* Hide position column in portrait mode */
            .table-responsive table.table th.essential.landscape-only,
            .table-responsive table.table td.essential.place {
                display: none !important;
            }

            /* Hide match points column in portrait mode */
            .table-responsive table.table th.match-points-header,
            .table-responsive table.table td.match-points-cell,
            .table-responsive table.table td.match_points {
                display: none !important;
            }

            .shooter-name {
                white-space: normal;
                display: flex;
                flex-direction: column;
                gap: 0.25rem;
                font-size: 11px;
                align-items: flex-start;
                text-align: left;
            }

            .shooter-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.25rem;
                justify-content: flex-start;
                width: 100%;
                flex-wrap: wrap;
                white-space: normal;
            }

            .shooter-info {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.5rem;
                justify-content: flex-start;
                flex-wrap: wrap;
            }

            .power-factor {
                color: var(--match-accent);
            }

            .shooter-class {
                color: #6c757d;
            }

            /* Stage links container */
            .stage-links {
                display: flex;
                flex-wrap: wrap;
                gap: 0.25rem;
                padding: 0.25rem;
                background-color: #e7f5ff;
                border-radius: 0.375rem;
                margin-top: 0.25rem;
                border: 1px solid #b8daff;
                justify-content: flex-start;
            }

            .stage-link {
                display: inline-flex;
                align-items: center;
                padding: 0.15rem 0.35rem;
                background-color: #fff;
                border-radius: 0.25rem;
                box-shadow: 0 1px 3px rgba(0,0,0,0.1);
                text-decoration: none;
                color: var(--match-accent);
                font-size: 11px;
                white-space: nowrap;
                min-width: fit-content;
                border: 1px solid #b8daff;
                flex: 0 0 auto;
            }

            /* Removendo a barra de rolagem horizontal */
            .stage-links::-webkit-scrollbar {
                display: none;
            }
            .stage-links {
                -ms-overflow-style: none;
                scrollbar-width: none;
                overflow-x: visible;
            }
        }

        /* Landscape mode styles */
        @media (max-width: 768px) and (orientation: landscape) {
            .shooter-info {
                display: flex;
                flex-wrap: wrap;
                gap: 0.25rem;
                margin-top: 0.25rem;
                font-size: 11px;
                color: #6c757d;
            }

            .shooter-info span {
                display: inline;
            }

            .shooter-info i {
                display: none;
            }
        }

        /* Hide score container in landscape and desktop */
        @media (min-width: 769px), (max-width: 768px) and (orientation: landscape) {
            .score-container {
                display: none !important;
            }
        }

        /* Portrait-only elements */
        .portrait-only {
            display: none !important;
        }
        
        @media (max-width: 768px) and (orientation: portrait) {
            .portrait-only {
                display: inline-flex !important;
                align-items: center;
            }
        }

        /* Landscape mode and desktop - hide portrait elements */
        @media (min-width: 769px), (max-width: 768px) and (orientation: landscape) {
            .landscape-only {
                display: table-cell !important;
            }

            /* Hide portrait-only elements in landscape */
            .portrait-only {
                display: none !important;
            }

            /* Shooter stages container */
            .shooter-stages {
                display: none !important;
            }

            .shooter-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.25rem;
                justify-content: flex-start;
                width: 100%;
                flex-wrap: wrap;
                white-space: normal;
            }
            
            .shooter-info {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.5rem;
                justify-content: flex-start;
                flex-wrap: wrap;
            }
        }

        /* Mobile landscape specific adjustments */
        @media (max-width: 768px) and (orientation: landscape) {
            .shooter-name {
                display: flex;
                flex-direction: column;
                gap: 0.25rem;
                width: 100%;
            }

            .shooter-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.25rem;
                justify-content: flex-start;
                width: 100%;
                flex-wrap: wrap;
                white-space: normal;
            }

            .shooter-badges {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.25rem;
                margin-top: 0.25rem;
                flex-wrap: wrap;
            }
        }

        /* Match points styles */
        .match-points-container {
            display: none;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
            padding: 0.5rem;
            background-color: #f8f9fa;
            border-radius: 0.375rem;
        }

        .match-points-label {
            font-weight: bold;
            color: var(--match-accent);
        }

        .match-points-value {
            font-weight: bold;
            color: #343a40;
        }

        @media (max-width: 768px) and (orientation: portrait) {
            .table-responsive table.table {
                margin-bottom: 0;
            }

            .table-responsive table.table thead th:not(.essential),
            .table-responsive table.table td:not(.essential) {
                display: none;
            }

            .table-responsive table.table th.essential,
            .table-responsive table.table td.essential {
                display: table-cell;
                padding: 0.5rem;
                font-size: 12px;
                white-space: normal;
            }

            .table-responsive table.table td {
                padding: 0.5rem;
            }

            .shooter-name {
                white-space: normal;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 0.25rem;
                font-size: 12px;
            }

            .shooter-badges {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                gap: 0.25rem;
                width: 100%;
            }

            .shooter-stages {
                display: block;
                margin-top: 0.25rem;
            }

            .match-points-container {
                display: flex;
                margin-top: 0.5rem;
                padding: 0.5rem;
                font-size: 0.9rem;
            }
        }

        /* Hide match points container in landscape and desktop */
        @media (min-width: 769px), (max-width: 768px) and (orientation: landscape) {
            .match-points-container {
                display: none !important;
            }
        }

        /* Estilos adicionais para melhorar a experiência do usuário */
        .search-container {
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 1rem;
            margin: 1rem 0;
            position: relative;
            z-index: 10;
        }

        .search-box {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .search-input-group {
            flex: 1;
            min-width: 250px;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            padding-left: 2.5rem;
            border: 2px solid #e9ecef;
            border-radius: 0.5rem;
            font-size: 1rem;
            transition: all 0.2s;
        }

        .search-input:focus {
            border-color: var(--match-accent);
            box-shadow: 0 0 0 0.2rem rgba(var(--match-brand-rgb), 0.25);
            outline: none;
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
        }

        /* Search Results */
        .search-results {
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: #6c757d;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .search-results a {
            color: var(--match-accent);
            text-decoration: none;
            font-weight: 500;
        }

        .search-results a:hover {
            text-decoration: underline;
        }

        .no-results {
            text-align: center;
            padding: 2rem;
            color: #6c757d;
            font-style: italic;
        }

        /* Responsive Improvements */
        @media (max-width: 768px) {
            .search-box {
                flex-direction: column;
            }

            .search-input-group {
                width: 100%;
            }
        }

        /* Animação suave para transições */
        .table-responsive {
            transition: all 0.3s ease;
        }

        .division-header {
            transition: all 0.3s ease;
        }

        /* Melhorias na acessibilidade */
        input:focus, button:focus {
            outline: none;
        }

        /* Melhorias na usabilidade em dispositivos touch */
        @media (hover: none) {
            .btn-primary:active {
                background-color: var(--match-accent-dark);
                border-color: var(--match-accent-dark);
            }
        }

        /* Accordion Styles */
        .accordion {
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            margin: 1rem 0;
        }

        .accordion-header {
            padding: 1rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #e7f5ff;
            border-radius: 0.5rem;
            transition: all 0.2s;
            border: 1px solid #b8daff;
        }

        .accordion-header:hover {
            background-color: #d0ebff;
        }

        .accordion-header h5 {
            margin: 0;
            color: var(--match-accent);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.1rem;
        }

        .accordion-hint {
            font-size: 0.9rem;
            color: var(--match-accent);
            margin-left: 0.5rem;
            opacity: 0.8;
        }

        .accordion-icon {
            transition: transform 0.2s;
            color: var(--match-accent);
        }

        .accordion-header.active .accordion-icon {
            transform: rotate(180deg);
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            background-color: white;
            border-radius: 0 0 0.5rem 0.5rem;
            border: 1px solid #b8daff;
            border-top: none;
        }

        .accordion-content.show {
            max-height: 500px;
            transition: max-height 0.5s ease-in;
        }

        .accordion-content ul {
            margin: 0;
            padding: 1rem;
            list-style-type: none;
        }

        .accordion-content li {
            margin-bottom: 0.5rem;
            padding-left: 1.5rem;
            position: relative;
            color: var(--match-accent);
        }

        .accordion-content li:before {
            content: "•";
            color: var(--match-accent);
            position: absolute;
            left: 0.5rem;
        }

        .accordion-content li:last-child {
            margin-bottom: 0;
        }

        /* Stage Button Styles */
        .stage-button {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 0.75rem;
            background: linear-gradient(135deg, var(--match-accent), var(--match-brand-light));
            color: white;
            text-decoration: none;
            border-radius: 0.4rem;
            border: 1px solid var(--match-accent-dark);
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(var(--match-brand-rgb), 0.2);
            min-width: 60px;
            text-align: center;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .stage-button:hover {
            background: linear-gradient(135deg, var(--match-accent-dark), var(--match-accent-dark));
            color: white;
            text-decoration: none;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(var(--match-brand-rgb), 0.3);
        }

        .stage-button:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(var(--match-brand-rgb), 0.2);
        }

        .stage-number {
            font-size: 0.75rem;
            font-weight: bold;
            margin-bottom: 0.15rem;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.2rem;
        }

        .stage-number i {
            opacity: 0.8;
            font-size: 0.6rem;
        }

        .stage-max-points {
            font-size: 0.7rem;
            opacity: 0.9;
            font-weight: 500;
            white-space: nowrap;
        }

        /* Match Points Badge Styles */
        .match-points-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            background: linear-gradient(135deg, var(--match-accent), var(--match-brand-light));
            color: white !important;
            padding: 0.15rem 0.5rem;
            border-radius: 0.25rem;
            font-size: 0.75rem;
            font-weight: 600;
            box-shadow: 0 1px 3px rgba(var(--match-brand-rgb), 0.3);
            border: 1px solid var(--match-accent-dark);
            text-decoration: none;
            transition: all 0.2s ease;
            min-width: 50px;
            justify-content: center;
            flex-shrink: 0;
            -webkit-text-fill-color: white !important;
            -webkit-tap-highlight-color: transparent;
        }

        .match-points-badge:hover {
            background: linear-gradient(135deg, var(--match-accent-dark), var(--match-accent-dark));
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(var(--match-brand-rgb), 0.4);
            color: white !important;
            text-decoration: none;
            -webkit-text-fill-color: white !important;
        }

        .match-points-badge:active {
            color: white !important;
            -webkit-text-fill-color: white !important;
        }

        .match-points-badge:visited {
            color: white !important;
            -webkit-text-fill-color: white !important;
        }

        .match-points-badge i {
            font-size: 0.7rem;
            opacity: 0.9;
            color: white !important;
            -webkit-text-fill-color: white !important;
        }

        /* Shooter Header Styles */
        .shooter-header {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.25rem;
            justify-content: flex-start;
            width: 100%;
            flex-wrap: wrap;
            white-space: normal;
        }

        /* Shooter Info Styles */
        .shooter-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.25rem;
            flex-wrap: wrap;
            flex-direction: row;
            justify-content: flex-start;
        }

        /* Badge Styles - Fixed Width */
        .badge {
            display: inline-flex;
            align-items: center;
            padding: 0.35em 0.65em;
            font-size: 0.75em;
            font-weight: 700;
            line-height: 1;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: 0.25rem;
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: all 0.2s ease;
            min-width: 50px;
            justify-content: center;
            flex-shrink: 0;
            border: 1.5px solid #bdbdbd;
        }

        .badge-category {
            background-color: #f3e8ff;
            color: #6f42c1;
            padding: 0.15rem 0.5rem;
            border-radius: 0.25rem;
            border: 1.5px solid #bdbdbd;
            min-width: 60px;
            justify-content: center;
            font-size: 0.75rem;
        }

        /* Badge Styles for Power Factor, Class and Category */
        .badge-powerfactor {
            background-color: #f8f9fa;
            color: #495057;
            padding: 0.15rem 0.5rem;
            border-radius: 0.25rem;
            font-weight: bold;
            border: 1.5px solid #bdbdbd;
            min-width: 50px;
            justify-content: center;
            font-size: 0.75rem;
        }

        .badge-class {
            background-color: #f8f9fa;
            padding: 0.08rem 0.25rem;
            border-radius: 0.2rem;
            font-weight: bold;
            border: 1.5px solid #bdbdbd;
            min-width: 25px;
            justify-content: center;
            font-size: 0.65rem;
        }

        .badge-class.M {
            background-color: var(--match-accent-soft);
            color: var(--match-accent);
            border-color: var(--match-accent-border);
            border-width: 1.5px;
        }

        .badge-class.A {
            background-color: #e3f2fd;
            color: var(--match-info-blue);
            border-color: #b8daff;
            border-width: 1.5px;
        }

        .badge-class.B {
            background-color: #fff3e6;
            color: #fd7e14;
            border-color: #ffe0b3;
            border-width: 1.5px;
        }

        .badge-class.C {
            background-color: #fce8e8;
            color: #dc3545;
            border-color: #f5c6cb;
            border-width: 1.5px;
        }

        .badge-class.D {
            background-color: #f8f9fa;
            color: #6c757d;
            border-color: #e9ecef;
            border-width: 1.5px;
        }

        /* Estilos específicos para classes G, GM e U */
        .badge-class.G {
            background-color: var(--match-accent-soft);
            color: var(--match-accent);
            border-color: var(--match-accent-border);
            border-width: 1.5px;
        }

        .badge-class.GM {
            background-color: var(--match-accent-soft);
            color: var(--match-accent-dark);
            border-color: var(--match-accent-border);
            border-width: 1.5px;
        }

        .badge-class.U {
            background-color: #f8f9fa;
            color: #6c757d;
            border-color: #e9ecef;
            border-width: 1.5px;
        }

        .shooter-badges {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 0.25rem;
            margin-top: 0.15rem;
        }

        /* Desktop: badges em linha separada */
        @media (min-width: 769px) {
            .shooter-name {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 0.1rem !important;
            }
            
            .shooter-badges {
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: flex-start !important;
                gap: 0.5rem !important;
                margin-top: 0.1rem !important;
                flex-wrap: wrap !important;
                padding: 0.1rem 0 !important;
                width: 100% !important;
            }
            
            .shooter-header {
                margin-bottom: 0 !important;
                padding-bottom: 0 !important;
            }
            
            .shooter-info {
                margin-top: 0 !important;
                padding: 0 !important;
            }
            
            .shooter-stages {
                margin-top: 0 !important;
                padding: 0 !important;
            }
            
            /* Garantir cor da badge-team no desktop */
            .badge.badge-team {
                color: #000000 !important;
                background-color: #fff3cd !important;
            }
        }

        /* Mobile responsive adjustments for match points badge */
        @media (max-width: 768px) {
            .match-points-badge {
                padding: 0.1rem 0.3rem;
                font-size: 0.7rem;
                min-width: 40px;
                color: white !important;
                margin-left: auto;
                -webkit-text-fill-color: white !important;
                -webkit-tap-highlight-color: transparent;
            }

            .match-points-badge i {
                font-size: 0.65rem;
                color: white !important;
                -webkit-text-fill-color: white !important;
            }

            .badge-powerfactor,
            .badge-category {
                padding: 0.1rem 0.3rem;
                font-size: 0.7rem;
                min-width: 40px;
            }

            .badge-class {
                padding: 0.06rem 0.2rem;
                font-size: 0.6rem;
                min-width: 20px;
            }

            .shooter-info {
                gap: 0.3rem;
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .match-points-badge {
                padding: 0.08rem 0.25rem;
                font-size: 0.65rem;
                min-width: 35px;
                color: white !important;
                margin-left: auto;
                -webkit-text-fill-color: white !important;
                -webkit-tap-highlight-color: transparent;
            }

            .match-points-badge i {
                font-size: 0.6rem;
                color: white !important;
                -webkit-text-fill-color: white !important;
            }

            .badge-powerfactor,
            .badge-category {
                padding: 0.08rem 0.25rem;
                font-size: 0.65rem;
                min-width: 35px;
            }

            .badge-class {
                padding: 0.06rem 0.2rem;
                font-size: 0.6rem;
                min-width: 18px;
            }

            .shooter-info {
                gap: 0.25rem;
            }
        }

        /* iOS/Safari specific fixes */
        @supports (-webkit-touch-callout: none) {
            .match-points-badge {
                color: white !important;
                -webkit-text-fill-color: white !important;
                -webkit-tap-highlight-color: transparent;
            }
            
            .match-points-badge i {
                color: white !important;
                -webkit-text-fill-color: white !important;
            }
        }

        /* Safari specific fixes */
        @media screen and (-webkit-min-device-pixel-ratio: 0) {
            .match-points-badge {
                color: white !important;
                -webkit-text-fill-color: white !important;
            }
            
            .match-points-badge i {
                color: white !important;
                -webkit-text-fill-color: white !important;
            }
        }

        /* Mobile responsive adjustments for stage buttons */
        @media (max-width: 768px) {
            .stage-button {
                padding: 0.4rem 0.6rem;
                min-width: 50px;
                font-size: 0.8rem;
            }

            .stage-number {
                font-size: 0.7rem;
                white-space: nowrap;
            }

            .stage-max-points {
                font-size: 0.6rem;
                white-space: nowrap;
            }
        }

        @media (max-width: 480px) {
            .stage-button {
                padding: 0.3rem 0.5rem;
                min-width: 45px;
                font-size: 0.7rem;
            }

            .stage-number {
                font-size: 0.65rem;
                white-space: nowrap;
            }

            .stage-max-points {
                font-size: 0.55rem;
                white-space: nowrap;
            }
        }

        /* Landscape mobile specific adjustments for stage buttons */
        @media (max-width: 768px) and (orientation: landscape) {
            .stage-button {
                padding: 0.25rem 0.4rem;
                min-width: 40px;
                font-size: 0.6rem;
            }

            .stage-number {
                font-size: 0.55rem;
                white-space: nowrap;
            }

            .stage-max-points {
                font-size: 0.5rem;
                white-space: nowrap;
            }
        }

        @media (max-width: 768px) {
            .shooter-badges {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                gap: 0.25rem;
                margin-top: 0;
                width: 100%;
                overflow-x: auto;
            }
            
            .shooter-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 0.25rem;
                justify-content: flex-start;
                width: 100%;
                flex-wrap: wrap;
                white-space: normal;
            }
            
            /* Garantir cor da badge-team no mobile */
            .badge.badge-team {
                color: #000000 !important;
                background-color: #fff3cd !important;
            }
        }

        .footer-container {
            margin-top: 3rem;
            padding: 2rem 0;
            text-align: center;
            border-top: 1px solid #e9ecef;
            background-color: #f8f9fa;
            border-radius: 0.5rem;
        }

        .footer-content {
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .footer-content a {
            color: var(--match-accent);
            text-decoration: none;
            font-weight: 500;
        }

        .footer-content a:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .footer-container {
                margin-top: 2rem;
                padding: 1.5rem 0;
            }
            
            .footer-content {
                font-size: 0.85rem;
            }
        }

/* --- Verify: layout atleta + badges (pós-migração) --- */
.match-page--verify .table td.shooter_name {
    text-align: left;
    vertical-align: top;
}

.match-page--verify .shooter-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    text-align: left;
}

.match-page--verify .shooter-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.match-page--verify .shooter-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.match-page--verify .shooter-badges .badge {
    display: inline-flex;
    flex-shrink: 0;
}

.match-page--verify .badge-powerfactor {
    background-color: #e3f2fd;
    color: var(--match-info-blue);
    border-color: #b8daff;
}

.match-page--verify .badge-category {
    background-color: #f3e8ff;
    color: #6f42c1;
}

.match-page--verify .badge-team {
    background-color: #fff3cd;
    color: #000;
}

.match-page--verify .badge-class {
    background-color: var(--match-bg);
    color: var(--match-text);
}

.match-page--verify .badge-class.M,
.match-page--verify .badge-class.G {
    background-color: var(--match-accent-soft);
    color: var(--match-accent-dark);
    border-color: var(--match-accent-border);
}

.match-page--verify .badge-class.A {
    background-color: #e3f2fd;
    color: var(--match-info-blue);
    border-color: #b8daff;
}

.match-page--verify .badge-class.B {
    background-color: #fff3e6;
    color: #fd7e14;
    border-color: #ffe0b3;
}

.match-page--verify .badge-class.C {
    background-color: #fce8e8;
    color: #dc3545;
    border-color: #f5c6cb;
}

.match-page--verify .badge-class.D,
.match-page--verify .badge-class.U {
    background-color: var(--match-bg);
    color: var(--match-text-muted);
}

.match-page--verify .badge-class.GM {
    background-color: #dbeafe;
    color: var(--match-accent-dark);
}

/* --- Verify mobile (retrato: coluna atleta + badges + stages) --- */
@media (max-width: 768px) {
    .match-page--verify #INDEX {
        padding: 0 8px 1rem;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .match-page--verify .division-header-main,
    .match-page--verify .alert-mobile,
    .match-page--verify .accordion,
    .match-page--verify .search-container {
        margin-left: 0;
        margin-right: 0;
    }

    .match-page--verify .search-input-group {
        min-width: 0;
    }

    .match-page--verify .table-responsive {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow-x: visible;
    }

    .match-page--verify .table th,
    .match-page--verify .table td {
        font-size: 12px;
        line-height: 1.35;
    }

    .match-page--verify .shooter-name a {
        flex-wrap: wrap;
        line-height: 1.35;
    }

    .match-page--verify .match-points-badge {
        margin-left: 0;
        flex-shrink: 0;
    }

    .match-page--verify .shooter-header {
        width: 100%;
        justify-content: flex-start;
    }

    .match-page--verify .shooter-stages {
        display: block !important;
        width: 100%;
    }

    .match-page--verify .stage-links {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .match-page--verify .landscape-only {
        display: none !important;
    }

    /* Fase A — UX mobile */
    .match-page--verify .alert-mobile {
        font-size: var(--match-text-xs, 0.8rem);
        line-height: 1.4;
        padding: 0.65rem 0.85rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .match-page--verify .alert-mobile i {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .match-page--verify .accordion--compact {
        margin: 0.5rem 0;
        box-shadow: none;
        border: 1px solid var(--match-border, #e9ecef);
    }

    .match-page--verify .accordion--compact .accordion-header {
        padding: 0.55rem 0.75rem;
        background: var(--match-bg, #f8f9fa);
        border: none;
        border-radius: 0.5rem;
    }

    .match-page--verify .accordion--compact .accordion-header h5 {
        font-size: var(--match-text-sm, 0.875rem);
        font-weight: 600;
        color: var(--match-text, #2c3e50);
        gap: 0.35rem;
    }

    .match-page--verify .accordion--compact .accordion-header h5 i {
        color: var(--match-accent);
        font-size: 0.9rem;
    }

    .match-page--verify .accordion--compact .accordion-icon {
        font-size: 0.75rem;
        color: var(--match-text-muted, #6c757d);
    }

    .match-page--verify .accordion--compact .accordion-content {
        border-color: var(--match-border, #e9ecef);
    }

    .match-page--verify .accordion--compact .accordion-content li {
        color: var(--match-text, #495057);
        font-size: var(--match-text-xs, 0.8rem);
        line-height: 1.45;
    }

    .match-page--verify .verify-search-sticky {
        position: sticky;
        top: 0;
        z-index: 50;
        margin: 0 -8px 0.5rem;
        padding: 0 8px;
        background: linear-gradient(to bottom, var(--match-bg, #fff) 85%, transparent);
    }

    .match-page--verify .verify-search-sticky .search-container {
        margin: 0;
        padding: 0.5rem 0.65rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--match-border, #e9ecef);
        border-radius: 0.5rem;
        background: var(--match-card, #fff);
    }

    .match-page--verify .verify-search-sticky .search-input {
        padding: 0.6rem 0.75rem 0.6rem 2.25rem;
        font-size: 16px; /* evita zoom no iOS */
        border-width: 1px;
    }

    .match-page--verify .verify-search-sticky .search-icon {
        left: 0.75rem;
    }

    .match-page--verify .search-results {
        margin-top: 0.35rem;
        font-size: var(--match-text-xs, 0.8rem);
        font-weight: 600;
        color: var(--match-accent-dark, #1e7e34);
        min-height: 0;
    }

    .match-page--verify .search-results[hidden] {
        display: none !important;
    }

    .match-page--verify .search-results.is-filtering {
        display: block;
    }

    /* Fase B — cards mobile (retrato) */
    .match-page--verify .verify-mobile-cards {
        display: none;
    }

    .match-page--verify .verify-division-table {
        display: block;
    }

    .match-page--verify .verify-mobile-card {
        margin-bottom: 0.65rem;
    }

    .match-page--verify .verify-mobile-card-header {
        align-items: flex-start;
        border-bottom: none;
        margin-bottom: 0.35rem;
        padding-bottom: 0;
    }

    .match-page--verify .verify-mobile-card-name-wrap {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .match-page--verify .verify-mobile-card-link {
        font-weight: 600;
        font-size: var(--match-text-sm, 0.875rem);
        color: var(--match-text, #2c3e50);
        text-decoration: none;
        line-height: 1.35;
    }

    .match-page--verify .verify-mobile-card-link .verify-indicator {
        color: var(--match-accent);
        font-size: 0.75rem;
        margin-left: 0.15rem;
    }

    .match-page--verify .verify-mobile-badges {
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .match-page--verify .verify-stages-collapsible {
        border-top: 1px solid var(--match-border, #e9ecef);
        padding-top: 0.4rem;
    }

    .match-page--verify .verify-stages-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.45rem 0.5rem;
        background: var(--match-bg, #f8f9fa);
        border: 1px solid var(--match-border, #e9ecef);
        border-radius: 0.375rem;
        font-size: var(--match-text-xs, 0.8rem);
        font-weight: 600;
        color: var(--match-text-muted, #6c757d);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .match-page--verify .verify-stages-toggle__icon {
        font-size: 0.65rem;
        transition: transform 0.2s ease;
    }

    .match-page--verify .verify-stages-toggle.is-open .verify-stages-toggle__icon {
        transform: rotate(180deg);
    }

    .match-page--verify .verify-stages-panel {
        padding-top: 0.45rem;
    }

    .match-page--verify .verify-stage-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .match-page--verify .verify-stage-chip {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 3.1rem;
        padding: 0.35rem 0.4rem;
        border-radius: 0.375rem;
        text-decoration: none;
        font-size: 0.65rem;
        line-height: 1.25;
        flex-shrink: 0;
        border: 1px solid var(--match-border, #dee2e6);
        background: var(--match-card, #fff);
        gap: 0.1rem;
    }

    .match-page--verify .verify-stage-chip__num {
        font-weight: 700;
        opacity: 0.85;
        font-size: 0.6rem;
    }

    .match-page--verify .verify-stage-chip__pts {
        font-weight: 700;
        font-size: 0.72rem;
    }

    .match-page--verify .verify-stage-chip__pct {
        font-size: 0.6rem;
        font-weight: 600;
        opacity: 0.95;
    }

    .match-page--verify .verify-stage-chip__pos {
        font-size: 0.58rem;
        font-weight: 700;
        opacity: 0.85;
    }

    .match-page--verify .verify-stage-chip--done {
        border-color: var(--match-accent-border, #c3e6cb);
        background: var(--match-accent-soft, #d4edda);
        color: var(--match-accent-dark, #1e7e34);
    }

    .match-page--verify .verify-stage-chip--pending {
        border-color: #ffeeba;
        background: #fff3cd;
        color: #856404;
    }

    .match-page--verify .verify-stage-chip--dnf {
        border-color: #d6d8db;
        background: #e9ecef;
        color: #6c757d;
    }

    @media (max-width: 768px) and (orientation: portrait) {
        .match-page--verify .verify-division-table {
            display: none !important;
        }

        .match-page--verify .verify-mobile-cards {
            display: block;
            padding: 0;
            margin-bottom: 1rem;
        }
    }

    @media (max-width: 768px) and (orientation: landscape) {
        .match-page--verify .verify-mobile-cards {
            display: none !important;
        }
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .match-page--verify .landscape-only {
        display: table-cell !important;
    }

    .match-page--verify .shooter-stages {
        display: none !important;
    }

    .match-page--verify .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Verify desktop (≥769px) --- */
@media (min-width: 769px) {
    .match-page--verify .container.match-page {
        max-width: 1400px;
        padding-bottom: 2rem;
    }

    .match-page--verify .alert-mobile {
        display: none;
    }

    .match-page--verify .accordion {
        background: var(--match-card);
        border: 1px solid var(--match-border);
        border-radius: 0.75rem;
        box-shadow: var(--match-shadow-sm);
    }

    .match-page--verify .accordion-header {
        background: var(--match-accent-soft);
        border: none;
        border-radius: 0.75rem 0.75rem 0 0;
        padding: 0.85rem 1rem;
    }

    .match-page--verify .accordion-header:hover {
        background: var(--match-brand-soft);
    }

    .match-page--verify .accordion-header h5 {
        font-size: var(--match-text-base);
        font-weight: 700;
    }

    .match-page--verify .accordion-hint {
        font-size: var(--match-text-sm);
    }

    .match-page--verify .search-container {
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 1rem 0 1.25rem;
    }

    .match-page--verify .search-box {
        background: var(--match-card);
        border: 1px solid var(--match-border);
        border-radius: 0.75rem;
        padding: 0.75rem;
        box-shadow: var(--match-shadow-sm);
    }

    .match-page--verify .search-input {
        font-size: var(--match-text-sm);
        border-color: var(--match-border);
    }

    .match-page--verify .match-page-header--division {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .match-page--verify .verify-division-table {
        background: var(--match-card);
        border: 1px solid var(--match-border);
        border-radius: 0 0 0.75rem 0.75rem;
        box-shadow: var(--match-shadow-sm);
        margin-bottom: 1.75rem;
        overflow: auto;
        max-height: none;
    }

    .match-page--verify .match-page-header--division + .verify-division-table {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-top: 0;
    }

    .match-page--verify .verify-table {
        margin-bottom: 0;
        font-size: var(--match-table-size);
    }

    .match-page--verify .verify-table thead th {
        position: sticky;
        top: 0;
        z-index: 4;
        background: var(--match-accent-soft);
        color: var(--match-accent-dark);
        border-bottom: 2px solid var(--match-accent-border);
        vertical-align: middle;
        padding: 0.55rem 0.45rem;
        white-space: nowrap;
    }

    .match-page--verify .verify-table th.essential,
    .match-page--verify .verify-table td.shooter_name {
        position: sticky;
        left: 0;
        z-index: 2;
        background: var(--match-card);
        min-width: 240px;
        max-width: 340px;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
    }

    .match-page--verify .verify-table thead th.essential {
        z-index: 5;
        background: var(--match-accent-soft);
    }

    .match-page--verify .verify-table tbody tr:nth-child(even) td.shooter_name {
        background: var(--match-bg);
    }

    .match-page--verify .verify-table tbody tr:hover td {
        background-color: rgba(var(--match-brand-rgb), 0.04);
    }

    .match-page--verify .verify-table tbody tr:hover td.shooter_name {
        background-color: var(--match-brand-soft);
    }

    .match-page--verify .verify-table td.match_points,
    .match-page--verify .verify-table td.match-points,
    .match-page--verify .verify-table th.match-points-header {
        text-align: center;
        white-space: nowrap;
        font-weight: 600;
        min-width: 4.5rem;
    }

    .match-page--verify .verify-table td.match_points {
        color: var(--match-accent-dark);
    }

    .match-page--verify .stage-button {
        min-width: 52px;
        padding: 0.4rem 0.5rem;
    }

    .match-page--verify .stage-max-points {
        font-size: var(--match-text-xs);
    }

    .match-page--verify .shooter-name a {
        font-size: var(--match-text-sm);
        font-weight: 600;
    }

    .match-page--verify .shooter-badges .badge {
        font-size: var(--match-badge-size);
    }

    .match-page--verify .division-nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
