/**
 * Estilos — stage.css (restaurado do template original)
 */
.chart {
            margin-bottom: 20px;
        }
        .max_score {
            font-size: 12px;
        }
        .table-responsive {
            overflow-x: auto;
        }
        .table th, .table td {
            text-align: center;
            padding: 0.5rem;
            font-size: 14px;
        }
        .table td.shooter_name {
            text-align: left;
        }
        .btn {
            margin-right: 10px;
            margin-bottom: 10px;
        }
        @media (max-width: 768px) {
            .table th, .table td {
                font-size: 11px;
                padding: 0.3rem;
                white-space: nowrap;
            }

            .table {
                margin-bottom: 0.5rem;
            }

            .table-responsive {
                margin-bottom: 1rem;
                -webkit-overflow-scrolling: touch;
                overflow-x: auto;
                scrollbar-width: thin;
                margin: 0 -10px;
                padding: 0 10px;
            }

            .max_score {
                font-size: 10px;
            }

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

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

            .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;
            }

            /* 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;
            }

            /* Fixar cabeçalho da primeira coluna */
            .table th:first-child,
            .table td:first-child {
                position: sticky;
                left: 0;
                background-color: inherit;
                z-index: 1;
            }

            /* Ajuste para o zoom inicial da página */
            meta[name="viewport"] {
                content: "width=device-width, initial-scale=0.9, maximum-scale=1.0, user-scalable=yes";
            }

            /* Melhorar visualização de botões e links */
            .btn {
                padding: 0.35rem 0.7rem;
                font-size: 0.9rem;
            }

            a {
                touch-action: manipulation;
            }
        }

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

            .max_score {
                font-size: 9px;
            }

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

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

            .quick-nav-item {
                padding: 0.25rem 0.5rem;
                font-size: 0.8rem;
            }
        }

        .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 Title Styles */
        .division-header {
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 0.5rem;
            margin: 1rem 0;
            border-left: 4px solid var(--match-accent);
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .division-header h4 {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .division-header a {
            color: #333;
            text-decoration: none;
        }

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

        .division-header .back-to-top {
            color: #6c757d;
            font-size: 0.9rem;
        }

        .division-header .back-to-top:hover {
            color: var(--match-accent);
        }

        .division-header .division-name {
            font-weight: bold;
            color: var(--match-accent);
        }

        /* 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;
        }

        /* 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: inline-block;
            white-space: normal;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.9rem;
            text-align: left;
            justify-content: flex-start;
        }

        .shooter-name .max_score {
            font-size: 0.8rem;
        }

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

        .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: absolute;
            top: -8px;
            right: -8px;
            background-color: var(--match-accent);
            color: white;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            border: 2px solid white;
        }

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

        .stage-header h3 {
            margin: 0 0 0.5rem 0;
            color: var(--match-accent);
        }

        .stage-header h4 {
            margin: 0 0 0.5rem 0;
            color: #343a40;
        }

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

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

        .stage-header .stage-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

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

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

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

        /* Responsive Table Styles */
        @media (max-width: 768px) and (orientation: portrait) {
            /* Hide non-essential columns in portrait mode */
            .table-responsive table.table {
                margin-bottom: 0;
            }

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

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

            /* Adjust cell spacing */
            .table-responsive table.table td {
                padding: 0.5rem;
            }

            /* Make shooter name wrap properly */
            .shooter-name {
                white-space: normal;
                display: flex;
                align-items: center;
                gap: 0.25rem;
                font-size: 12px;
            }

            /* Style for the scores in portrait mode */
            .score-info {
                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;
            }

            .score-item {
                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);
                font-size: 11px;
                white-space: nowrap;
                min-width: fit-content;
                border: 1px solid #b8daff;
                flex: 0 0 auto;
            }

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

        /* Landscape mode - show full table */
        @media (max-width: 768px) and (orientation: landscape) {
            .landscape-only {
                display: table-cell !important;
            }

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

            .table th, .table td {
                display: table-cell;
                font-size: 11px;
                padding: 0.3rem;
                white-space: nowrap;
            }

            /* Reduce font size for athlete name and position columns in landscape */
            .table th.essential, .table td.essential {
                font-size: 10px;
            }

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

            .shooter-name .max_score {
                font-size: 9px;
            }
        }

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

        /* Show all columns in desktop */
        @media (min-width: 769px) {
            .landscape-only {
                display: table-cell !important;
            }
        }

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

            /* Hide non-essential columns in portrait mode */
            .table-responsive table.table {
                margin-bottom: 0;
            }

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

            /* Rest of portrait styles... */
        }

        /* Landscape mode - show full table */
        @media (max-width: 768px) and (orientation: landscape) {
            .landscape-only {
                display: table-cell !important;
            }

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

            .table th, .table td {
                display: table-cell;
                font-size: 11px;
                padding: 0.3rem;
                white-space: nowrap;
            }
        }

        /* Portrait-only elements */
        .portrait-only {
            display: none !important;
        }

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

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

            /* Score info in portrait mode */
            .score-container {
                display: block;
                margin-top: 0.5rem;
                padding: 0.5rem;
                background-color: #f8f9fa;
                border-radius: 0.375rem;
                font-size: 11px;
            }

            .score-info {
                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;
            }

            .score-info span {
                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);
                white-space: nowrap;
                min-width: fit-content;
                font-size: 11px;
                gap: 0.25rem;
                border: 1px solid #b8daff;
            }

            .score-info span i {
                font-size: 0.9rem;
            }

            .score-info .hit-factor i {
                color: var(--match-accent);
            }

            .score-info .stage-points i {
                color: var(--match-info-blue);
            }

            .score-info .psbl i {
                color: #6c757d;
            }

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

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

            .landscape-only {
                display: table-cell !important;
            }
        }

        /* Score container styles */
        .score-container {
            display: none;
            margin-top: 0.5rem;
            padding: 0.5rem;
            background-color: #f8f9fa;
            border-radius: 0.375rem;
        }

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

        .score-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;
                align-items: center;
                gap: 0.25rem;
                font-size: 12px;
            }

            .score-container {
                display: block;
            }

            /* Hide all columns except essential ones in portrait mode */
            .table-responsive table.table th:not(.essential),
            .table-responsive table.table td:not(.essential) {
                display: none !important;
            }
        }

        /* Diminuir fonte da legenda no desktop */
        @media (min-width: 769px) {
            .info-box h5 {
                font-size: 1.1rem !important;
                margin-bottom: 0.6rem !important;
            }
            
            .info-box h6 {
                font-size: 0.95rem !important;
                margin-bottom: 0.4rem !important;
                margin-top: 0.6rem !important;
            }
            
            .info-box ul {
                font-size: 0.85rem !important;
                line-height: 1.3 !important;
            }
            
            .info-box li {
                margin-bottom: 0.25rem !important;
            }
            
            .info-box strong {
                font-size: 0.9rem !important;
            }
            
            .info-box ul ul {
                font-size: 0.8rem !important;
                margin-top: 0.15rem !important;
                margin-bottom: 0.25rem !important;
            }
            
            .info-box ul ul li {
                margin-bottom: 0.15rem !important;
            }
        }
        
        /* Diminuir fonte da legenda no mobile */
        @media (max-width: 768px) {
            .info-box h5 {
                font-size: 0.95rem !important;
                margin-bottom: 0.5rem !important;
            }
            
            .info-box h6 {
                font-size: 0.85rem !important;
                margin-bottom: 0.3rem !important;
                margin-top: 0.5rem !important;
            }
            
            .info-box ul {
                font-size: 0.75rem !important;
                line-height: 1.2 !important;
            }
            
            .info-box li {
                margin-bottom: 0.2rem !important;
            }
            
            .info-box strong {
                font-size: 0.8rem !important;
            }
            
            .info-box ul ul {
                font-size: 0.7rem !important;
                margin-top: 0.1rem !important;
                margin-bottom: 0.2rem !important;
            }
            
            .info-box ul ul li {
                margin-bottom: 0.1rem !important;
            }
        }
        
        /* Ajustes adicionais para telas muito pequenas */
        @media (max-width: 480px) {
            .info-box {
                padding: 0.6rem !important;
            }
            
            .info-box h5 {
                font-size: 0.9rem !important;
                margin-bottom: 0.4rem !important;
            }
            
            .info-box h6 {
                font-size: 0.8rem !important;
                margin-bottom: 0.25rem !important;
                margin-top: 0.4rem !important;
            }
            
            .info-box ul {
                font-size: 0.7rem !important;
                line-height: 1.15 !important;
            }
            
            .info-box strong {
                font-size: 0.75rem !important;
            }
            
            .info-box ul ul {
                font-size: 0.65rem !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.8rem;
            }
        }

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