/* ==================== Login Screen ==================== */
.login-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    font-size: 56px;
    margin-bottom: 8px;
}

.login-header h1 {
    font-size: 22px;
    color: var(--text);
    font-weight: 700;
}

.login-header p {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: block;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper .form-control {
    padding-right: 40px;
    flex: 1;
}
.toggle-password {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.toggle-password:hover { opacity: 1; }

.login-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 12px;
    font-weight: 700;
    border-radius: 12px;
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
    display: none;
    font-weight: 500;
}

.login-error.show {
    display: block;
}

/* ==================== User Badge ==================== */
.user-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.user-name {
    font-weight: 600;
    font-size: 12px;
}

.user-role {
    font-size: 10px;
    opacity: 0.75;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 8px;
    border-radius: 10px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
}

.btn-logout:active {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0.95);
}

/* ==================== Reset e Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #0078d7;
    --primary-dark: #005a9e;
    --primary-light: #e3f0ff;
    --success: #27ae60;
    --success-light: #d5f5e3;
    --danger: #e74c3c;
    --danger-light: #fde2e2;
    --warning: #f39c12;
    --warning-light: #fef9e7;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.25s ease;
    --nav-height: 64px;
    --header-height: 52px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    height: -webkit-fill-available;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== Header ==================== */
.app-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version {
    font-size: 11px;
    opacity: 0.8;
}

/* ==================== Bottom Navigation (mobile-first) ==================== */
.app-nav {
    display: flex;
    background: white;
    border-top: 1px solid #e0e0e0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: var(--nav-height);
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.nav-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 4px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 11px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-btn .icon {
    font-size: 22px;
    line-height: 1.2;
}

.nav-btn .label {
    font-size: 9px;
    line-height: 1.2;
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.nav-btn:active {
    background: var(--primary-light);
}

/* ==================== Content ==================== */
.app-content {
    padding: 10px;
    padding-bottom: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== Tab Header ==================== */
.tab-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.tab-header .search-box {
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
    background: white;
    transition: var(--transition);
    -webkit-appearance: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.12);
}

.tab-buttons {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

/* ==================== Buttons ==================== */
.btn-primary, .btn-secondary, .btn-danger, .btn-caixa {
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    background: var(--primary-dark);
    transform: scale(0.97);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--text);
}

.btn-secondary:active {
    background: #d5d8dc;
}

.btn-caixa {
    background: linear-gradient(135deg, #006bb6, #0096d6);
    color: white;
    border: 2px solid #005f9e;
    border-radius: var(--radius);
    box-shadow: 0 3px 8px rgba(0, 105, 180, 0.28);
    font-weight: 700;
    animation: caixaPulse 2.2s ease-in-out infinite;
}

.btn-caixa:hover {
    background: linear-gradient(135deg, #005f9e, #007fba);
}

.btn-caixa:active {
    transform: scale(0.97);
}

.caixa-button-icon {
    font-size: 16px;
}

.caixa-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -2px 0 14px;
    padding: 12px 14px;
    background: #e7f5ff;
    border: 1px solid #8dc9ec;
    border-left: 5px solid #0078d7;
    border-radius: var(--radius);
    color: #12496d;
}

.caixa-highlight-icon {
    font-size: 23px;
    line-height: 1.1;
}

.caixa-highlight strong {
    display: block;
    color: #005f9e;
    font-size: 14px;
}

.caixa-highlight p {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.35;
}

@keyframes caixaPulse {
    0%, 100% { box-shadow: 0 3px 8px rgba(0, 105, 180, 0.28); }
    50% { box-shadow: 0 3px 14px rgba(0, 150, 214, 0.58); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-caixa {
        animation: none;
    }
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:active {
    background: #c0392b;
    transform: scale(0.97);
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    min-height: 36px;
    min-width: 36px;
    justify-content: center;
}

/* ==================== Cards ==================== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px 14px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.card-item:active {
    transform: scale(0.995);
}

.card-item.selected {
    border: 2px solid var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.1);
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-info .nome {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
    word-break: break-word;
}

.card-info .detalhes {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.card-info .telefone {
    font-size: 12px;
    color: var(--gray);
}

.card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ==================== Badges ==================== */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-pago {
    background: var(--success-light);
    color: #1a7a3a;
}

.status-nao-pago {
    background: var(--danger-light);
    color: #a93226;
}

/* ==================== Dezenas ==================== */
.dezenas-mini {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dezenas-mini .dez {
    background: var(--gray-light);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.dezenas-mini .dez-sorteada {
    background: var(--danger);
    color: white;
}

.dezenas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.dezenas-grid select {
    width: 100%;
    padding: 10px 2px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition);
}

.dezenas-grid select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.12);
}

/* ==================== Forms ==================== */
.modal-form {
    padding: 0;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    -webkit-appearance: none;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    padding: 4px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
}

.form-actions button {
    flex: 1;
    padding: 14px;
    font-size: 15px;
}

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 92vh;
    max-height: calc(100vh - 40px);
    border-radius: 16px;
    padding: 16px 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeScale 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-large {
    max-width: 900px;
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-light);
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    padding: 4px 8px;
    transition: var(--transition);
}

.modal-close:active {
    color: var(--danger);
}

.btn-print {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.15s;
    vertical-align: middle;
    margin-right: 4px;
}
.btn-print:hover {
    opacity: 1;
    background: var(--gray-light);
}

/* ==================== Estatísticas ==================== */
.stats-container {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.stats-container h3, 
.stats-container h4 {
    margin: 14px 0 6px 0;
}

.stats-container h3 {
    font-size: 17px;
    color: var(--primary-dark);
}

.stats-container h4 {
    font-size: 14px;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 10px 0;
}

.stat-card {
    background: var(--bg);
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
}

.stat-card .value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 10px;
    color: var(--gray);
    margin-top: 2px;
    line-height: 1.3;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
}

.ranking-item .posicao {
    color: var(--gray);
    font-weight: 500;
}

.ranking-item .acertos {
    font-weight: 700;
}

.ranking-item .acertos.destaque {
    color: var(--success);
}

.dezenas-sorteadas-box {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.dezenas-sorteadas-box .dez {
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* ==================== Relatórios ==================== */
.reports-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.report-card {
    background: white;
    border-radius: var(--radius);
    padding: 18px 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.report-card:active {
    transform: scale(0.97);
}

.report-card-backup {
    border: 2px solid #0078d7;
    color: var(--text);
    font-family: inherit;
}

.report-card-backup .report-icon {
    color: #0078d7;
}

.report-card .report-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.report-card h3 {
    font-size: 13px;
    margin-bottom: 3px;
}

.report-card p {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.3;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    z-index: 3000;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background: var(--success);
    color: white;
}

.toast.error {
    background: var(--danger);
    color: white;
}

.toast.info {
    background: var(--primary);
    color: white;
}

.toast.warning {
    background: var(--warning);
    color: white;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
}

.empty-state .sub {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* ==================== Skeleton Loading ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 6px;
}

.skeleton-line:last-child {
    width: 60%;
}

.skeleton-badge {
    width: 50px;
    height: 20px;
    border-radius: 12px;
}

/* ==================== Pull-to-Refresh ==================== */
.pull-indicator {
    text-align: center;
    padding: 12px;
    color: var(--gray);
    font-size: 13px;
    display: none;
}

.pull-indicator.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.pull-indicator .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* ==================== Loading ==================== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 14px;
}

.loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 8px;
}

/* ==================== Table ==================== */
.resultados-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.resultados-table th {
    background: var(--primary);
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-size: 12px;
    position: sticky;
    top: 0;
}

.resultados-table td {
    padding: 8px;
    border-bottom: 1px solid var(--gray-light);
}

.resultados-table tr:active {
    background: var(--primary-light);
}

.resultados-table .acertou {
    color: var(--success);
    font-weight: 700;
}

.resultados-table .errou {
    color: var(--danger);
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* ==================== Tablet / Desktop ==================== */
@media (min-width: 768px) {
    .app-nav {
        position: sticky;
        top: var(--header-height);
        border-top: none;
        border-bottom: 1px solid #e0e0e0;
        height: auto;
        padding-bottom: 0;
        box-shadow: none;
    }

    .nav-btn {
        padding: 12px 16px;
        flex-direction: row;
        gap: 6px;
        border-bottom: 3px solid transparent;
    }

    .nav-btn .label {
        font-size: 12px;
    }

    .nav-btn .icon {
        font-size: 18px;
    }

    .nav-btn.active::after {
        display: none;
    }

    .nav-btn.active {
        border-bottom-color: var(--primary);
    }

    body {
        padding-bottom: 0;
    }

    .modal-content {
        border-radius: 16px;
        margin: 40px auto;
        max-height: 85vh;
    }

    .modal-header::before {
        display: none;
    }

    .app-content {
        padding: 20px;
    }

    .dezenas-grid {
        gap: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tab-header {
        flex-direction: row;
        align-items: center;
    }

    .tab-header .search-box {
        flex: 1;
        min-width: 200px;
    }

    .tab-buttons {
        overflow: visible;
    }

    .toast {
        bottom: 24px;
    }
}

/* ==================== Mobile refinements ==================== */
@media (max-width: 480px) {
    .header-left h1 {
        font-size: 16px;
    }

    .card-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .card-actions {
        margin-left: 0;
        justify-content: flex-end;
    }

    .dezenas-grid {
        gap: 4px;
    }

    .dezenas-grid select {
        font-size: 14px;
        padding: 8px 2px;
    }

    .modal-content {
        padding: 14px 16px 20px;
    }

    .form-actions button {
        padding: 12px;
    }

    .stats-grid {
        gap: 6px;
    }

    .stat-card {
        padding: 10px 6px;
    }
}

/* ==================== Resultados ==================== */
.badge-vencedor {
    display: inline-block;
    background: #28a745;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.badge-secundario {
    display: inline-block;
    background: #fd7e14;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.row-vencedor {
    background: #d4edda !important;
}
.row-secundario {
    background: #fff3cd !important;
}
.resultados-table tr.row-vencedor td:first-child {
    border-left: 4px solid #28a745;
}
.resultados-table tr.row-secundario td:first-child {
    border-left: 4px solid #fd7e14;
}

/* ==================== Print ==================== */
@media print {
    .app-header, .app-nav, .tab-header, .form-actions, .card-actions {
        display: none !important;
    }

    .card-item {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    body {
        padding-bottom: 0;
        background: white;
    }

    .tab-content {
        display: block !important;
    }

    .modal {
        position: static !important;
        background: none !important;
        display: block !important;
        z-index: auto !important;
    }
    .modal-content {
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        animation: none !important;
        max-height: none !important;
    }
    .modal-header {
        border-bottom: 2px solid #333 !important;
    }
    .btn-print, .modal-close {
        display: none !important;
    }
    .modal-overlay {
        display: none !important;
    }
}
