/* CSS Principal - Quiniela Mundial 2026 */
/* Estilo limpio, realista, estilo portal deportivo (FIFA / Sofascore) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0c1c66;       /* Azul Marino Logo */
    --primary-hover: #081347;
    --secondary-color: #10b981;     /* Verde césped / Éxito */
    --secondary-hover: #0d9488;
    --logo-red: #8a0f0f;            /* Rojo Logo */
    --logo-red-hover: #6b0b0b;
    --logo-gold: #f1c40f;           /* Dorado / Estrellas Logo */
    --background-color: #f8fafc;    /* Gris muy claro de fondo */
    --card-background: #ffffff;
    --text-color: #0f172a;          /* Slate 900 */
    --text-muted: #64748b;          /* Slate 500 */
    --border-color: #e2e8f0;        /* Gris de bordes */
    --border-focus: #cbd5e1;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-border: #fef3c7;
    --success-bg: #ecfdf5;
    --success-border: #d1fae5;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Encabezado y Navegación */
header {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo span {
    color: var(--text-color);
}

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: #f1f5f9;
}

.nav-links a.btn-logout {
    color: var(--danger-color);
}
.nav-links a.btn-logout:hover {
    background-color: #fef2f2;
}

/* User Badge Info en Navbar */
.user-badge {
    background-color: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.user-badge .status-dot.authorized { background-color: var(--secondary-color); }
.user-badge .status-dot.pending { background-color: var(--warning-color); }

/* Contenedor Principal */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Hero / Header Informativo */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--logo-red) 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--logo-gold);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

/* Tarjetas Informativas / Alertas de Pago */
.alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid;
    gap: 1rem;
}

.alert-banner.warning {
    background-color: var(--warning-bg);
    border-color: var(--warning-border);
    color: #92400e;
}

.alert-banner.success {
    background-color: var(--success-bg);
    border-color: var(--success-border);
    color: #065f46;
}

.alert-content h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.alert-content p {
    font-size: 0.9rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}
.btn-success:hover {
    background-color: var(--secondary-hover);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #20ba5a;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.btn-outline:hover {
    background-color: #f1f5f9;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* Pantalla de Acceso (index.php) */
.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: #fcfcfd;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 68, 183, 0.15);
    background-color: white;
}

.form-control::placeholder {
    color: #94a3b8;
}

.login-card .btn-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem;
}

/* Mensajes de error o éxito */
.alert-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.alert-message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.alert-message.success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Vista del Dashboard: Grupos de Partidos */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.group-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-title span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.group-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

/* Lista de Partidos */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Tarjeta de Partido */
.match-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 140px;
}

.match-info .date {
    font-weight: 600;
    color: var(--text-color);
}

.match-info .status-badge {
    align-self: flex-start;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}
.match-info .status-badge.live {
    background-color: #fee2e2;
    color: var(--danger-color);
}
.match-info .status-badge.finished {
    background-color: #e2e8f0;
    color: var(--text-muted);
}
.match-info .status-badge.scheduled {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Enfrentamiento */
.match-versus {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 3;
    justify-content: center;
}

.team-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 200px;
}

.team-container.team1 {
    justify-content: flex-end;
    text-align: right;
}

.team-container.team2 {
    justify-content: flex-start;
    text-align: left;
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-flag {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #cbd5e1;
}

/* Inputs de Marcador */
.score-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-score {
    width: 48px;
    height: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
    color: var(--text-color);
    outline: none;
    -webkit-appearance: none;
    margin: 0;
}

.input-score:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(11, 68, 183, 0.1);
}

.input-score:disabled {
    background-color: #f1f5f9;
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.score-divider {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Estado de Guardado de Predicción */
.save-status {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 90px;
}

.btn-save-prediction {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.save-indicator {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.save-indicator.error {
    color: var(--danger-color);
}

/* Resultado del partido calculado (en la esquina derecha) */
.points-pill {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.points-pill.exact {
    background-color: var(--success-bg);
    color: var(--secondary-color);
    border: 1px solid var(--success-border);
}
.points-pill.outcome {
    background-color: #eff6ff;
    color: var(--primary-color);
    border: 1px solid #dbeafe;
}
.points-pill.zero {
    background-color: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Tabla General / Clasificación (leaderboard.php) */
.leaderboard-container {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

.table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-color);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc;
    cursor: pointer;
}

.table .rank-cell {
    font-weight: 700;
    width: 60px;
    text-align: center;
}

.table .rank-cell span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f1f5f9;
}

.table tr:nth-child(1) .rank-cell span { background-color: #fef08a; color: #854d0e; } /* Oro */
.table tr:nth-child(2) .rank-cell span { background-color: #e2e8f0; color: #475569; } /* Plata */
.table tr:nth-child(3) .rank-cell span { background-color: #ffedd5; color: #c2410c; } /* Bronce */

.table .name-cell {
    font-weight: 600;
}

.table .phone-cell {
    color: var(--text-muted);
}

.table .points-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-align: center;
    width: 120px;
}

/* Modal de Comparación de Pronósticos */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: modalSlide 0.3s ease;
}

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

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}
.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Tabla de pronósticos del modal */
.modal-predictions-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-predictions-table th,
.modal-predictions-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.modal-predictions-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    background-color: #f8fafc;
}

.modal-predictions-table td.vs-cell {
    text-align: center;
    font-weight: 700;
}

/* Panel Administrativo (admin.php) */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    gap: 1rem;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.admin-tab-btn:hover {
    color: var(--primary-color);
}

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

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .admin-grid {
        grid-template-columns: 3fr 1fr;
    }
}

.admin-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.admin-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Badge de Estado */
.status-pill {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pill.authorized {
    background-color: var(--success-bg);
    color: var(--secondary-color);
}
.status-pill.pending {
    background-color: var(--warning-bg);
    color: var(--warning-color);
}

/* Pie de página */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-background);
    margin-top: 4rem;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    main {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }

    .hero-section {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
    }

    .alert-banner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    .alert-content p {
        font-size: 0.85rem;
    }

    #groupSelector {
        justify-content: center !important;
    }
    
    div[style*="margin-bottom: 2rem;"] > p[style*="text-transform: uppercase;"] {
        text-align: center;
    }

    .group-card {
        padding: 1rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    .group-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .match-card {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .match-info {
        text-align: center;
        align-items: center;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }
    
    .match-versus {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem;
        align-items: center;
    }
    
    .team-container {
        width: 100% !important;
    }
    
    .team-container.team1 {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    
    .team-container.team2 {
        grid-column: 3;
        grid-row: 1;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .team-name {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-word;
        max-width: 100px;
    }
    
    .score-inputs {
        grid-column: 1 / span 3;
        grid-row: 2;
        justify-self: center;
        margin-top: 0.25rem;
    }

    .input-score {
        width: 44px;
        height: 36px;
        font-size: 1rem;
    }
    
    .save-status {
        width: 100%;
        justify-content: center;
        border-top: 1px dashed var(--border-color);
        padding-top: 0.5rem;
        min-height: 24px;
    }

    .admin-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .admin-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .admin-card {
        padding: 1rem;
    }

    .table th, 
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .table .points-cell {
        width: 80px;
        font-size: 0.95rem;
    }

    .table .rank-cell {
        width: 45px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-predictions-table th,
    .modal-predictions-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }

    .modal-predictions-table td .team-name {
        display: none;
    }
}

/* Estilo para resaltar la fila propia */
.table tbody tr.my-row {
    background-color: #f0f4ff;
    border-left: 4px solid var(--primary-color);
}
.table tbody tr.my-row:hover {
    background-color: #e2ebff;
}

/* Estilos de Impresión / PDF */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
        font-size: 11pt;
    }
    header, footer, .btn, .admin-tabs, #groupSelector, .alert-banner, .modal, .no-print {
        display: none !important;
    }
    main {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-only {
        display: block !important;
    }
    .print-container {
        padding: 0;
    }
    .print-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        border-bottom: 2px solid #0c1c66;
        padding-bottom: 10px;
    }
    .print-logo {
        height: 60px;
        width: auto;
    }
    .print-title {
        text-align: right;
    }
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 25px;
        page-break-inside: avoid;
    }
    .print-table th, .print-table td {
        border: 1px solid #cbd5e1;
        padding: 6px 8px;
        font-size: 9pt;
        text-align: center;
    }
    .print-table th {
        background-color: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color: #0f172a;
        font-weight: 700;
    }
    .print-table td.name-col {
        text-align: left;
        font-weight: bold;
        background-color: #f8fafc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .print-group-title {
        font-size: 12pt;
        font-weight: bold;
        color: #0c1c66;
        margin: 15px 0 5px 0;
        border-bottom: 1px solid #cbd5e1;
        padding-bottom: 3px;
        page-break-after: avoid;
    }
}
