/* ==========================================================================
   DIVISOR DE GRUPOS ESCOLAR - TEMA CLARO & PROFISSIONAL (LIGHT MODE)
   ========================================================================== */

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

:root {
    /* Base Colors */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    
    /* Borders */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-focus: #3b82f6;

    /* Typography */
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    /* Primary Accents */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;

    /* Semantic Status */
    --success: #059669;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    
    --warning: #d97706;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;

    /* Group Palette */
    --g1-color: #2563eb;
    --g1-bg: #eff6ff;
    --g1-border: #bfdbfe;

    --g2-color: #7c3aed;
    --g2-bg: #f5f3ff;
    --g2-border: #ddd6fe;

    --g3-color: #0d9488;
    --g3-bg: #f0fdfa;
    --g3-border: #99f6e4;

    --g4-color: #d97706;
    --g4-bg: #fffbeb;
    --g4-border: #fde68a;

    --g5-color: #e11d48;
    --g5-bg: #fff1f2;
    --g5-border: #fecdd3;

    --g6-color: #059669;
    --g6-bg: #ecfdf5;
    --g6-border: #a7f3d0;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px 80px;
}

/* Header */
.main-header {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-box {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-icon-box svg {
    width: 26px;
    height: 26px;
}

.header-titles h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.header-titles p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Header Controls & Countdown */
.header-right-side {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Countdown Widget */
.countdown-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.countdown-box.locked {
    background: var(--danger-light);
    border-color: var(--danger-border);
    color: var(--danger);
}

.countdown-box.warning-time {
    background: var(--warning-light);
    border-color: var(--warning-border);
    color: var(--warning);
}

.countdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.countdown-box.locked .countdown-icon {
    color: var(--danger);
}

.countdown-info {
    display: flex;
    flex-direction: column;
}

.countdown-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.countdown-value {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
}

.countdown-box.locked .countdown-value {
    color: var(--danger);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    user-select: none;
}

.btn svg {
    width: 16px;
    height: 16px;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-outline {
    background: var(--bg-surface);
    color: var(--text-muted);
    border-color: var(--border-medium);
}

.btn-outline:hover:not(:disabled) {
    background: var(--bg-surface-subtle);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.btn-danger-outline {
    background: var(--bg-surface);
    color: var(--danger);
    border-color: var(--danger-border);
}

.btn-danger-outline:hover:not(:disabled) {
    background: var(--danger-light);
    border-color: var(--danger);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* System Notifications / Sync Bar */
.status-sync-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.82rem;
    box-shadow: var(--shadow-sm);
}

.sync-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--success);
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    position: relative;
}

.sync-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: var(--success);
    opacity: 0.3;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.status-sync-bar.syncing .sync-status-indicator {
    color: var(--warning);
}
.status-sync-bar.syncing .sync-dot {
    background-color: var(--warning);
}
.status-sync-bar.syncing .sync-dot::after {
    background-color: var(--warning);
}

.status-sync-bar.locked-mode {
    background: var(--warning-light);
    border-color: var(--warning-border);
}

.status-sync-bar.locked-mode .sync-status-indicator {
    color: var(--warning);
}

.rules-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Lock Banner */
.locked-banner {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--warning-light);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: #92400e;
    font-size: 0.88rem;
    font-weight: 500;
}

.locked-banner.show {
    display: flex;
}

.locked-banner svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--warning);
}

/* Unassigned Pool Section */
.pool-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.pool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pool-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.pool-title svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--bg-surface-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.badge-count.empty {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success-border);
}

.student-pool-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
    padding: 12px;
    background: var(--bg-page);
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.student-pool-container.drag-over {
    background: var(--primary-light);
    border-color: var(--primary);
}

.pool-empty-message {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
}

.pool-empty-message svg {
    width: 18px;
    height: 18px;
}

/* Groups Board Section */
.groups-section {
    margin-bottom: 36px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-title svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

/* 6 Group Cards Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Group Card */
.group-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

.group-card:hover {
    box-shadow: var(--shadow-md);
}

.group-card.drag-over {
    border-color: var(--group-color, var(--primary));
    box-shadow: 0 0 0 2px var(--group-color, var(--primary)), var(--shadow-lg);
    transform: translateY(-2px);
}

.group-card.card-valid {
    border-color: var(--success-border);
}

.group-card.card-invalid {
    border-color: var(--danger-border);
    background-color: #fffaf9;
}

/* Group Header */
.group-card-header {
    padding: 14px 18px;
    background: var(--group-bg, var(--bg-surface-subtle));
    border-bottom: 1px solid var(--group-border, var(--border-light));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.group-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-tag {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--group-color, var(--primary));
}

.group-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.group-capacity-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.group-capacity-badge.badge-ok {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success-border);
}

.group-capacity-badge.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* Group Members Container */
.group-members-list {
    padding: 10px 12px 14px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.group-empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: italic;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
}

/* Student Card (Pill / Item) */
.student-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    color: var(--text-main);
    cursor: grab;
    user-select: none;
    transition: all var(--transition);
}

.student-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.student-card:active {
    cursor: grabbing;
}

.student-card.dragging {
    opacity: 0.4;
    background: var(--bg-surface-subtle);
    border-style: dashed;
}

.student-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-border);
}

.student-card.is-leader {
    background: #fefce8;
    border-color: #fef08a;
}

.student-card.is-leader .student-name {
    font-weight: 600;
    color: #854d0e;
}

/* Student Handle & Number */
.drag-handle-icon {
    color: var(--text-light);
    display: flex;
    align-items: center;
    cursor: grab;
}

.drag-handle-icon svg {
    width: 14px;
    height: 14px;
}

.student-index {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    min-width: 16px;
}

.student-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.leader-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    background: #fef08a;
    color: #854d0e;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.leader-tag-badge svg {
    width: 11px;
    height: 11px;
    color: #ca8a04;
}

/* Student Card Action Buttons */
.card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}

.student-card:hover .card-actions {
    opacity: 1;
}

.btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon svg {
    width: 13px;
    height: 13px;
}

.btn-icon:hover {
    background: var(--bg-surface-subtle);
    color: var(--text-main);
}

.btn-icon.crown-btn:hover {
    background: #fef9c3;
    color: #ca8a04;
    border-color: #fef08a;
}

.btn-icon.remove-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* Pool Student Items (Chips) */
.student-pool-container .student-card {
    padding: 6px 12px;
    border-radius: 9999px;
    background: #ffffff;
}

.student-pool-container .student-card .drag-handle-icon,
.student-pool-container .student-card .student-index,
.student-pool-container .student-card .card-actions {
    display: none;
}

/* Locked mode styles */
body.is-locked .student-card {
    cursor: default !important;
}
body.is-locked .drag-handle-icon,
body.is-locked .card-actions {
    display: none !important;
}
body.is-locked .student-pool-container {
    border-style: solid;
}

/* Validation Alert Banner */
.validation-alert {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    font-weight: 500;
    margin-top: 18px;
}

.validation-alert.show {
    display: flex;
}

.validation-alert.success {
    background: var(--success-light);
    border: 1px solid var(--success-border);
    color: #065f46;
}

.validation-alert.error {
    background: var(--danger-light);
    border: 1px solid var(--danger-border);
    color: #991b1b;
}

.validation-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================================================
   OFFICIAL WRITTEN REPORT SECTION (BOTTOM)
   ========================================================================== */
.report-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px dashed var(--border-light);
}

.report-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.report-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.report-title-area h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-title-area h2 svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.report-title-area p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.report-actions {
    display: flex;
    gap: 10px;
}

.report-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.meta-box {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.meta-box-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.meta-box-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

/* Report Groups Grid (2 Columns or Table) */
.report-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.report-group-item {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
}

.report-group-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.report-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.report-group-count {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid var(--border-light);
}

.report-leader-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #854d0e;
}

.report-leader-box svg {
    width: 15px;
    height: 15px;
    color: #ca8a04;
    flex-shrink: 0;
}

.report-members-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-member-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.report-member-idx {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    width: 16px;
}

.report-member-name {
    color: var(--text-main);
    font-weight: 500;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: 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 var(--transition);
}

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

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 440px;
    padding: 24px;
    transform: scale(0.95);
    transition: transform var(--transition);
}

.modal-backdrop.active .modal-dialog {
    transform: scale(1);
}

.modal-dialog h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-dialog p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toast Notification */
.toast-outlet {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    animation: toast-slide-in 0.25s var(--transition);
}

.toast-msg.toast-success {
    border-left: 4px solid var(--success);
}
.toast-msg.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-msg.toast-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

@keyframes toast-slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading Overlay */
.app-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.app-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .report-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 16px 16px 60px;
    }
    .main-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right-side {
        width: 100%;
        justify-content: space-between;
    }
    .groups-grid {
        grid-template-columns: 1fr;
    }
    .report-groups-grid {
        grid-template-columns: 1fr;
    }
    .report-meta-grid {
        grid-template-columns: 1fr;
    }
    .card-actions {
        opacity: 1;
    }
}

/* Print Media Styles (Clean Document Export) */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .main-header,
    .status-sync-bar,
    .locked-banner,
    .pool-section,
    .groups-section,
    .report-actions,
    .modal-backdrop,
    .toast-outlet,
    .app-loader {
        display: none !important;
    }
    .app-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    .report-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    .report-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .report-groups-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        page-break-inside: avoid;
    }
    .report-group-item {
        border: 1px solid #999999 !important;
        background: #ffffff !important;
    }
}
