﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Modern dashboard styles (education-focused). No box-shadows or hover transitions. */

/* Light neutral background for entire site */
html, body {
    background-color: #f4f6f8; /* light neutral */
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Brand / nav adjustments */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Buttons */
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Typography & spacing */
html {
    font-size: 14px;
}

@media (max-width: 767.98px) {
    html { font-size: 13px; }
}

.section-title {
    font-weight: 600;
    color: #1f3a63;
    margin-bottom: 0.75rem;
}

.attendance-risks-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.new-flair {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background-color: #198754;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* KPI cards */
.kpi-cards { margin-bottom: 1rem; }
.kpi-card {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(31,58,99,0.08);
    text-align: left;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

/* Color variants for education focus */
.kpi-primary { border-left: 4px solid #1b6ec2; }
.kpi-accent { border-left: 4px solid #5b9bd5; }
.kpi-green { border-left: 4px solid #70ad47; }
.kpi-muted { border-left: 4px solid #6c757d; }
.kpi-brand { border-left: 4px solid var(--brand); }

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.kpi-label {
    font-size: 0.85rem;
    color: #000000;
}

/* No box-shadows allowed — remove any existing utility class */
.box-shadow { box-shadow: none !important; }

/* Top header styles (modern, clean) */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(31,58,99,0.06);
    padding: 0.4rem 0;
}


.nav-link {
    color: #1f3a63;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Ensure links are readable on white */
.navbar .nav-link.text-dark { color: #1f3a63 !important; }

/* Panels / datagrid adjustments to fit modern clean look */
.dx-datagrid .dx-row > td, .dx-datagrid-headers th {
    border-color: rgba(31,58,99,0.06);
    background-color: transparent;
}

/* Side panel (slide from right, sits above the screen) */
.student-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 95%;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 280ms ease;
    border-left: 1px solid rgba(31,58,99,0.08);
    padding: 1rem;
    overflow-y: auto;
}

.student-side-panel.open {
    transform: translateX(0);
}

/* Overlay that sits under the panel but above page */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,43,74,0.28);
    z-index: 1990;
    display: none;
}

/* When open, show overlay */
.panel-overlay.visible {
    display: block;
}

/* Panel close button */
.student-side-panel .panel-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #333;
}

/* Panel content */
.student-side-panel h5 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    color: #0f2b4a;
}

.student-side-panel .list-group-item {
    border: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Avoid hover transitions globally */
* {
    transition: none !important;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .kpi-value { font-size: 1.2rem; }
    .kpi-card { padding: 0.75rem; }
}

/* Preserve existing color utility classes used by app */
.reportcolbg, .report-row-bg, .report-row-bg-break { background-color: rgba(222,226,230,0.5) !important; }

/* Keep remaining legacy rules intact but without shadows/transitions */
.dx-datagrid .dx-row-alt > td { background-color: rgba(222, 226, 230, 0.5); }

.student-photo {
    max-height: 180px;
    max-width: 250px;
}

/* Sticky header + freeze first column for wide report tables */
.reporttable thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f7fafc;
}

/* Freeze first column */
.reporttable tbody td.leftcol,
.reporttable thead th.leftcol {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #ffffff;
  box-shadow: 2px 0 0 rgba(31,58,99,0.06);
}

/* Heatmap utility for gap cells; use inline class like gap-heat-3 for scale */
.gap-heat-0 { background: transparent; }
.gap-heat-1 { background: rgba(255,235,238,0.6); }
.gap-heat-2 { background: rgba(255,205,210,0.6); }
.gap-heat-3 { background: rgba(244,67,54,0.15); font-weight:700; color:#a71d2a; }
.gap-heat-4 { background: rgba(244,67,54,0.28); font-weight:700; color:#8b1621; }



.att-colour-red {
    background-color: red !important;
}

.att-colour-lred {
    background-color: lightcoral !important;
}

.att-colour-yellow {
    background-color: yellow !important;
}

.att-colour-amber {
    background-color: #FFBF00 !important;
}

.att-colour-lime {
    background-color: lime !important;
}

.att-colour-blue {
    background-color: cornflowerblue !important;
}



.att-colour-present {
    background-color: #00FF00 !important;
}

.att-colour-aea {
    background-color: #80FF80 !important;
}

.att-colour-late {
    background-color: #80FFFF !important;
}

.att-colour-aa {
    background-color: #FF8000 !important;
}

.att-colour-ua {
    background-color: #FF0000 !important;
}

.att-colour-nr {
    background-color: #E0E0E0 !important;
}

.att-colour-missing {
    background-color: #FF80FF !important;
}


.beh-colour-behaviour {
    background-color: #ED7D31 !important;
}

.beh-colour-attendance {
    background-color: #FFFF00 !important;
}

.beh-colour-engagement {
    background-color: #5B9BD5 !important;
}

.beh-colour-serious {
    background-color: #70AD47 !important;
}


/* common helper */
.achievement {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    line-height: 1;
}

/* 10-step achievement scale (0 = lowest, 9 = highest).
   Text color switches to white for sufficiently dark mixes. */
.ach-p-0 {
    background: color-mix(in srgb, var(--achievement-base) 8%, white 92%) !important;
    color: #0f2b4a;
}

.ach-p-1 {
    background: color-mix(in srgb, var(--achievement-base) 18%, white 82%) !important;
    color: #0f2b4a;
}

.ach-p-2 {
    background: color-mix(in srgb, var(--achievement-base) 28%, white 72%) !important;
    color: #0f2b4a;
}

.ach-p-3 {
    background: color-mix(in srgb, var(--achievement-base) 38%, white 62%) !important;
    color: #0f2b4a;
}

.ach-p-4 {
    background: color-mix(in srgb, var(--achievement-base) 48%, white 52%) !important;
    color: #0f2b4a;
}

.ach-p-5 {
    background: color-mix(in srgb, var(--achievement-base) 58%, white 42%) !important;
    color: #ffffff;
}

.ach-p-6 {
    background: color-mix(in srgb, var(--achievement-base) 68%, white 32%) !important;
    color: #ffffff;
}

.ach-p-7 {
    background: color-mix(in srgb, var(--achievement-base) 78%, white 22%) !important;
    color: #ffffff;
}

.ach-p-8 {
    background: color-mix(in srgb, var(--achievement-base) 88%, white 12%) !important;
    color: #ffffff;
}

.ach-p-9 {
    background: color-mix(in srgb, var(--achievement-base) 98%, white 2%) !important;
    color: #ffffff;
}


.beh-p-0 {
    background: color-mix(in srgb, var(--behaviour-base) 8%, white 92%) !important;
    color: #0f2b4a;
}

.beh-p-1 {
    background: color-mix(in srgb, var(--behaviour-base) 18%, white 82%) !important;
    color: #0f2b4a;
}

.beh-p-2 {
    background: color-mix(in srgb, var(--behaviour-base) 28%, white 72%) !important;
    color: #0f2b4a;
}

.beh-p-3 {
    background: color-mix(in srgb, var(--behaviour-base) 38%, white 62%) !important;
    color: #0f2b4a;
}

.beh-p-4 {
    background: color-mix(in srgb, var(--behaviour-base) 48%, white 52%) !important;
    color: #0f2b4a;
}

.beh-p-5 {
    background: color-mix(in srgb, var(--behaviour-base) 58%, white 42%) !important;
    color: #ffffff;
}

.beh-p-6 {
    background: color-mix(in srgb, var(--behaviour-base) 68%, white 32%) !important;
    color: #ffffff;
}

.beh-p-7 {
    background: color-mix(in srgb, var(--behaviour-base) 78%, white 22%) !important;
    color: #ffffff;
}

.beh-p-8 {
    background: color-mix(in srgb, var(--behaviour-base) 88%, white 12%) !important;
    color: #ffffff;
}

.beh-p-9 {
    background: color-mix(in srgb, var(--behaviour-base) 98%, white 2%) !important;
    color: #ffffff;
}




.ks2_highlight {
    background-color: #D89097 !important;
}

.ks2_sc_blank {
    background-color: #D4D4D4 !important;
}

.ks2_sc_poor {
    background-color: #F8696B !important;
}

.ks2_sc_below {
    background-color: #FBAA77 !important;
}

.ks2_sc_exs {
    background-color: #63BE7B !important;
}

.ks2_sc_gds {
    background-color: #AFCEFF !important;
}


.ks2_progress_pos_10 {
    background-color: #63BE7B !important;
}

.ks2_progress_pos_9 {
    background-color: #73C37C !important;
}

.ks2_progress_pos_8 {
    background-color: #83C77D !important;
}

.ks2_progress_pos_7 {
    background-color: #92CC7E !important;
}

.ks2_progress_pos_6 {
    background-color: #A2D07F !important;
}

.ks2_progress_pos_5 {
    background-color: #B1D580 !important;
}

.ks2_progress_pos_4 {
    background-color: #C1DA81 !important;
}

.ks2_progress_pos_3 {
    background-color: #D1DE82 !important;
}

.ks2_progress_pos_2 {
    background-color: #E0E383 !important;
}

.ks2_progress_pos_1 {
    background-color: #F0E784 !important;
}

.ks2_progress_pos_0 {
    background-color: #FFEB84 !important;
}

.ks2_progress_neg_1 {
    background-color: #FEDE81 !important;
}

.ks2_progress_neg_2 {
    background-color: #FDD17F !important;
}

.ks2_progress_neg_3 {
    background-color: #FCC47C !important;
}

.ks2_progress_neg_4 {
    background-color: #FCB77A !important;
}

.ks2_progress_neg_5 {
    background-color: #FBAA77 !important;
}

.ks2_progress_neg_6 {
    background-color: #FA9D75 !important;
}

.ks2_progress_neg_7 {
    background-color: #FA9072 !important;
}

.ks2_progress_neg_8 {
    background-color: #F98370 !important;
}

.ks2_progress_neg_9 {
    background-color: #F8766D !important;
}

.ks2_progress_neg_10 {
    background-color: #F8696B !important;
}


.printonly {
    display: none;
}

@media print {
    .noprint {
        display: none;
    }
    html, body {
        background-color: white;
    }
    .printonly {
        display: initial;
    }

    .container {
        padding: 0;
        margin: 0;
    }
}