/* ============================================================
   ZAID_EduTrack / static/style.css
   EduTrackLite — complete stylesheet
   ============================================================ */

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1f2937;
    background: #f4f9ff;
    min-height: 100vh;
}

a { color: #007bff; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: #0b3d91; margin: 0 0 12px; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

hr { border: none; border-top: 1px solid #dbe6f0; margin: 24px 0; }

code {
    background: #eef4fb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
}

.muted { color: #6b7280; font-size: 0.9em; }
.req   { color: #dc3545; }
.alert { padding: 12px 16px; border-radius: 6px; margin: 12px 0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* ---------- NAVBAR ---------- */
.navbar {
    background: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-brand a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.nav-brand a:hover { text-decoration: none; opacity: 0.9; }

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.92rem;
    transition: background 0.15s;
}
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}
.nav-logout {
    background: rgba(0, 0, 0, 0.15);
}

/* ---------- LAYOUT ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 0.85rem;
    border-top: 1px solid #dbe6f0;
    background: #fff;
}

/* ---------- PAGE HEADER ---------- */
.page-header { margin-bottom: 24px; }
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.page-sub { color: #4b5563; margin: 4px 0 0; font-size: 0.95rem; }

/* ---------- HERO (home) ---------- */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 40px 28px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 28px;
}
.hero h1 { color: #fff; font-size: 2rem; margin: 0 0 10px; }
.hero-sub { font-size: 1.05rem; opacity: 0.95; margin: 0; }

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.home-card {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.home-card p { flex: 1; }

.home-info {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.home-info ul { padding-left: 20px; line-height: 1.9; }

/* ---------- FORMS ---------- */
.form-card {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 420px;
    margin: 0 auto 24px;
}
.form-card.form-wide { max-width: 820px; }

.form-card h3 { margin-top: 0; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }

.form-section {
    border: 1px solid #e5eef7;
    border-radius: 8px;
    padding: 16px 18px 20px;
    margin: 0;
}
.form-section legend {
    padding: 0 8px;
    color: #007bff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-row-3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

label { font-weight: 600; font-size: 0.9rem; color: #374151; }

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

textarea { min-height: 60px; resize: vertical; }

.form-hint  { color: #6b7280; font-size: 0.9rem; margin: 0 0 16px; }
.form-footer { margin-top: 16px; text-align: center; font-size: 0.9rem; }

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.form-inline label { font-size: 0.9rem; }
.form-inline input,
.form-inline select { width: auto; min-width: 140px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; opacity: 0.95; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary   { background: #007bff; color: #fff; }
.btn-primary:hover   { background: #0056b3; }

.btn-secondary { background: #e5eef7; color: #0b3d91; }
.btn-secondary:hover { background: #d2e2f3; }

.btn-success   { background: #28a745; color: #fff; }
.btn-success:hover   { background: #1e7e34; }

.btn-danger    { background: #dc3545; color: #fff; }
.btn-danger:hover    { background: #a71d2a; }

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.button-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- STAT CARDS ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
}
.stat-card.stat-alert { border-left-color: #f59e0b; }
.stat-value { font-size: 2rem; font-weight: 700; color: #0b3d91; }
.stat-label { color: #6b7280; font-size: 0.9rem; margin-bottom: 6px; }
.stat-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #007bff;
}

/* ---------- QUICK ACTIONS ---------- */
.quick-actions { margin-bottom: 32px; }
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.action-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b3d91;
    font-weight: 500;
    border: 1px solid #e5eef7;
    transition: transform 0.12s, box-shadow 0.12s;
}
.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.12);
    text-decoration: none;
}
.action-icon { font-size: 1.3rem; }

/* ---------- TABLES ---------- */
.table-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    margin-bottom: 20px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 600px;
}
.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef4fb;
    vertical-align: middle;
}
.data-table thead th {
    background: #eef4fb;
    color: #0b3d91;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.data-table tbody tr:hover { background: #f8fbff; }
.data-table .check-col { width: 36px; text-align: center; }
.data-table .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ---------- BADGES / GRADES ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e5eef7;
    color: #0b3d91;
    text-transform: capitalize;
}
.status-draft      { background: #e5e7eb; color: #374151; }
.status-submitted  { background: #fef3c7; color: #92400e; }
.status-approved   { background: #d1fae5; color: #065f46; }
.status-rejected   { background: #fee2e2; color: #991b1b; }
.status-published  { background: #dbeafe; color: #1e40af; }

.grade {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.82rem;
    background: #e5e7eb;
    color: #374151;
}
.grade-A { background: #10b981; color: #fff; }
.grade-B { background: #3b82f6; color: #fff; }
.grade-C { background: #f59e0b; color: #fff; }
.grade-D { background: #f97316; color: #fff; }
.grade-E { background: #ef4444; color: #fff; }
.grade-F { background: #991b1b; color: #fff; }

/* ---------- THUMBNAILS ---------- */
.thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dbe6f0;
    display: block;
}
.thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #9ca3af;
    font-size: 0.9rem;
}
.thumb-large {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #007bff;
}
.logo-preview {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #dbe6f0;
    border-radius: 6px;
    margin: 8px 0;
    display: block;
    background: #fff;
}

/* ---------- PROFILE / SUMMARY CARDS ---------- */
.profile-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}
.profile-row { margin-bottom: 6px; }
.profile-row-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.summary-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.summary-label { font-size: 0.85rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.4px; }
.summary-value { font-size: 1.15rem; color: #0b3d91; }

/* ---------- INFO SECTIONS ---------- */
.info-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}
.info-section h3 { margin-top: 0; }

.workflow-steps {
    padding-left: 24px;
    line-height: 1.9;
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-bar label { font-weight: 600; }
.filter-bar select,
.filter-bar .search-input {
    width: auto;
    min-width: 180px;
    flex: 1;
    max-width: 400px;
}

/* ---------- BULK ACTIONS ---------- */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* ---------- PHOTO SECTION (add/edit student) ---------- */
.photo-section {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.photo-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}
.camera-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ---------- SCORE PREVIEW ---------- */
.score-preview {
    background: #eef4fb;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #0b3d91;
}

/* ---------- ATTENDANCE PREVIEW ---------- */
.attendance-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    background: #eef4fb;
    padding: 16px;
    border-radius: 8px;
    margin-top: 8px;
}
.att-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.att-label {
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.att-stat strong {
    font-size: 1.3rem;
    color: #0b3d91;
}

/* ---------- FLASH MESSAGES ---------- */
.flash-container {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flash {
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    animation: flashIn 0.25s ease-out;
}
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.flash-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- LOADING OVERLAY ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 61, 145, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}
.loading-overlay.active { display: flex; }

.loading-box {
    background: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 380px;
    text-align: center;
}
.loading-title {
    font-weight: 700;
    color: #0b3d91;
    margin-bottom: 14px;
    font-size: 1.05rem;
}
.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5eef7;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0b3d91);
    color: #fff;
    font-size: 0.7rem;
    line-height: 12px;
    text-align: center;
    transition: width 0.25s ease-out;
    border-radius: 8px;
    min-width: 24px;
    font-weight: 700;
}
.loading-text {
    color: #4b5563;
    font-size: 0.9rem;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    background: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #6b7280;
}
.empty-state p { margin: 0 0 16px; }

/* ---------- ERROR PAGE ---------- */
.error-page {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 40px auto;
}
.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: #007bff;
    line-height: 1;
    margin-bottom: 10px;
}
.error-title { color: #0b3d91; margin-bottom: 8px; }
.error-message { color: #4b5563; margin-bottom: 24px; }
.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- CSV SAMPLES ---------- */
.csv-sample {
    background: #f4f9ff;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #dbe6f0;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.85rem;
    color: #0b3d91;
}
.csv-rules {
    padding-left: 20px;
    line-height: 1.9;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
    .nav-toggle { display: inline-block; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 10px;
    }
    .nav-links.active { display: flex; }

    .container { padding: 18px 14px 50px; }

    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-table { min-width: 540px; font-size: 0.85rem; }

    .hero { padding: 28px 18px; }
    .hero h1 { font-size: 1.5rem; }

    .form-card { padding: 20px; }
    .form-card.form-wide { padding: 20px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1.5rem; }

    .action-grid { grid-template-columns: 1fr; }

    .photo-section { flex-direction: column; }
}

/* ============================================================
   NEW ADDITIONS: Geofencing & Report Card Preview
   ============================================================ */

/* ---------- GEOFENCING UI ---------- */
.alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.geo-strip { font-size: 0.95rem; margin-bottom: 20px; }
.geo-block { background: #f8fafc; padding: 16px; border-radius: 8px; border: 1px solid #e2e8f0; margin-top: 10px; }
.geo-result { margin-top: 12px; background: #fff; padding: 12px; border-radius: 6px; border: 1px solid #cbd5e1; }
.geo-result-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.9rem; }
.geo-label { font-weight: 600; color: #475569; }
.override-panel { margin-top: 16px; padding: 16px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; }
.toggle-row { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.toggle-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.toggle-label { display: flex; align-items: center; gap: 8px; font-size: 1rem; cursor: pointer; }
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.info-strip { background: #f1f5f9; padding: 10px; border-radius: 6px; text-align: center; margin-bottom: 16px; }
.status-override { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* ---------- REPORT CARD PREVIEW LAYOUT ---------- */
.preview-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .preview-layout { grid-template-columns: 1fr; }
}

/* ---------- REPORT CARD STYLING (Matches Sample) ---------- */
.report-card-preview {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    font-size: 11px;
    border: 1px solid #ccc;
    overflow-x: auto;
}

.rc-school-name {
    text-align: center;
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.rc-bio {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    padding: 0 5px;
}

.rc-term-info {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.rc-term-info td {
    border: 1px solid #000;
    padding: 4px 8px;
    width: 33.33%;
}

.rc-body {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.rc-main-table {
    flex: 1;
}
.rc-main-table table {
    width: 100%;
    border-collapse: collapse;
}
.rc-main-table th, .rc-main-table td {
    border: 1px solid #000;
    padding: 4px;
    text-align: center;
    font-size: 10px;
}
.rc-main-table th {
    background: #f0f0f0;
    font-weight: bold;
    vertical-align: middle;
}
.rc-main-table th:nth-child(1) { width: 25%; }

.rc-side-panel {
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rc-skills-table {
    width: 100%;
    border-collapse: collapse;
}
.rc-skills-table th, .rc-skills-table td {
    border: 1px solid #000;
    padding: 3px 6px;
    font-size: 9px;
    text-align: left;
}
.rc-skills-table th {
    background: #f0f0f0;
    text-align: center;
}
.rc-skills-table td:nth-child(2) {
    text-align: center;
    width: 25px;
}

.rc-summary {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.rc-summary th, .rc-summary td {
    border: 1px solid #000;
    padding: 6px 8px;
    font-size: 10px;
}
.rc-summary th {
    background: #f0f0f0;
    text-align: left;
}
.rc-summary tr:first-child th {
    text-align: center;
    font-size: 11px;
}

/* ---------- PRINT SPECIFIC RULES ---------- */
@media print {
    /* Hide navigation, sidebars, buttons when printing */
    nav, .navbar, .footer, .preview-actions, .page-header .button-group, .flash-container {
        display: none !important;
    }
    .container { padding: 0 !important; max-width: 100% !important; }
    .preview-layout { display: block !important; }
    .report-card-preview {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        page-break-inside: avoid;
    }
    .rc-term-info td, .rc-main-table th, .rc-main-table td,
    .rc-skills-table th, .rc-skills-table td,
    .rc-summary th, .rc-summary td {
        border-color: #000 !important;
    }
}