/* 20260707 - FEATURE: Print styling for the dynamic report print view */
.rpt-print {
    font-family: "Segoe UI", Tahoma, sans-serif;
    padding: 20px;
    color: #000;
}

.rpt-print-header h2 {
    text-align: center;
    margin-bottom: 4px;
}

.rpt-print-meta {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.rpt-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}

.rpt-print-table th,
.rpt-print-table td {
    border: 1px solid #999;
    padding: 6px 8px;
}

.rpt-print-table thead {
    background: #f0f0f0;
    display: table-header-group; /* repeats header row on every printed page */
}

.rpt-print-table tr {
    page-break-inside: avoid;
}

.rpt-print-empty {
    text-align: center;
    padding: 24px;
    color: #777;
}

/* Grid + toolbar (non-print pages) */
.rpt-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.rpt-filter-field {
    flex: 1 1 180px;
    min-width: 150px;
}
.rpt-grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.rpt-grid-scroll {
    overflow-x: auto;
}
.rpt-card {
    cursor: pointer;
    transition: box-shadow 0.15s ease-in-out;
}
.rpt-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Designer's Grades tab - Course x Term matrix grid */
.rpt-grade-matrix-wrapper {
    max-height: 480px;
    overflow-y: auto;
}
.rpt-grade-matrix th, .rpt-grade-matrix td {
    white-space: nowrap;
    vertical-align: middle;
}
.rpt-grade-matrix th:first-child, .rpt-grade-matrix td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    text-align: start;
    white-space: normal;
    min-width: 140px;
    z-index: 1;
}
[dir="rtl"] .rpt-grade-matrix th:first-child, [dir="rtl"] .rpt-grade-matrix td:first-child {
    left: auto;
    right: 0;
}
.rpt-grade-matrix thead th {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Designer's "Available Fields" list - groups (Parent/Registration/Student/etc.) flow into
   3 columns automatically, without needing to hardcode which group goes in which column. */
.rpt-field-list {
    column-count: 3;
    column-gap: 24px;
    max-height: 480px;
    overflow-y: auto;
}
.rpt-field-group {
    break-inside: avoid; /* keeps a whole group (heading + its checkboxes) from splitting across columns */
    margin-bottom: 16px;
}
.rpt-field-group strong {
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .rpt-field-list {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .rpt-field-list {
        column-count: 1;
    }
}

@media print {
    .no-print { display: none !important; }
    .rpt-print { padding: 0; }
    @page { size: A4; margin: 12mm; }
}
