/* Overview page. All values and chart segments are populated from scoped database queries. */
.welcome-hero {
    background: #173c4e;
    border-radius: 13px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 36px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    min-height: 214px;
}
.welcome-hero:after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    right: 110px;
    top: -185px;
    border: 1px solid #ffffff0b;
    border-radius: 50%;
    pointer-events: none;
}
.hero-copy {
    max-width: 580px;
    position: relative;
    z-index: 1;
}
.hero-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #d5b565;
}
.hero-kicker > span {
    width: 5px;
    height: 5px;
    background: #e2b957;
    border-radius: 50%;
}
.welcome-hero h2 {
    font-size: 29px;
    font-weight: 550;
    letter-spacing: -0.85px;
    line-height: 1.2;
    color: white;
    margin: 13px 0 9px;
}
.welcome-hero p {
    max-width: 480px;
    font-size: 14px;
    line-height: 1.9;
    color: #c0d1db;
    margin: 0;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}
.btn-gold {
    background: #e5b953;
    border-color: #e5b953;
    color: #173344;
}
.btn-gold:hover {
    background: #f0c86e;
    border-color: #f0c86e;
    color: #173344;
}
.hero-link {
    color: #eff4f6;
    font-size: 14px;
}
.hero-link:hover {
    color: #eac36c;
}
.hero-actions > i {
    color: #dbc07a;
    font-size: 15px;
    margin-left: -11px;
}
.hero-date {
    flex: 0 0 178px;
    border-left: 1px solid #ffffff16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c8d9e2;
    position: relative;
    z-index: 1;
    padding-left: 28px;
}
.hero-date > span {
    font-size: 14px;
}
.hero-date > strong {
    font-size: 57px;
    font-weight: 450;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 5px 0;
    color: white;
}
.hero-date > small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aec2ce;
    margin-top: 16px;
}
.hero-date > small i {
    font-size: 14px;
}
.dashboard-metrics {
    margin-bottom: 22px;
}
.metric.gold .metric-icon {
    background: #fbf3df;
    color: #a68130;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(285px, 1fr);
    gap: 22px;
    align-items: stretch;
}
.dashboard-grid > .card {
    margin-bottom: 0;
}
.section-card > .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.period-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 12px;
    border: 1px solid #e4e9ed;
    border-radius: 6px;
    padding: 7px 9px;
    color: #586d7c;
}
.period-chip i {
    font-size: 14px;
}
.chart-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 1px 0 21px;
}
.chart-summary > strong {
    font-size: 31px;
    font-weight: 550;
    letter-spacing: -1px;
}
.chart-summary > div {
    display: grid;
    gap: 4px;
}
.chart-summary span {
    font-size: 14px;
    font-weight: 500;
}
.chart-summary small {
    font-size: 12px;
    color: var(--school-muted);
}
.attendance-chart {
    height: 172px;
    display: flex;
    gap: 12px;
}
.chart-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 26px;
    color: #8797a5;
    font-size: 12px;
    width: 18px;
    text-align: right;
}
.chart-plot {
    flex: 1;
    position: relative;
    min-width: 0;
}
.chart-gridlines {
    position: absolute;
    inset: 0 0 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}
.chart-gridlines span {
    border-top: 1px dashed #e5ebef;
    width: 100%;
}
.chart-gridlines span:last-child {
    border-top-style: solid;
}
.chart-bars {
    display: flex;
    gap: 8px;
    height: 100%;
    justify-content: space-around;
}
.chart-day {
    width: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    z-index: 1;
}
.chart-column {
    height: calc(100% - 26px);
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}
.chart-segment {
    display: block;
    flex-shrink: 0;
    min-height: 0;
}
.chart-segment.attending,
.legend-dot.attending {
    background: #3a9f91;
}
.chart-segment.absent,
.legend-dot.absent {
    background: #dc8a8f;
}
.chart-segment.excused,
.legend-dot.excused {
    background: #d8bb7d;
}
.chart-label {
    font-size: 12px;
    text-align: center;
    height: 26px;
    display: grid;
    place-items: end center;
    color: #8393a0;
}
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 12px;
    color: #6c7f8d;
}
.chart-legend > span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
}
.chart-empty {
    font-size: 14px;
    color: var(--school-muted);
    text-align: center;
    margin: 10px 0 0;
}
.finance-card {
    background: #fff;
}
.finance-card .card-header {
    background: #fafcfd;
}
.finance-symbol {
    font-size: 21px;
    color: #8596a2;
}
.finance-label {
    font-size: 14px;
    color: var(--school-muted);
}
.balance-value {
    display: block;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 7px 0 5px;
    overflow-wrap: anywhere;
    line-height: 1.2;
}
.finance-caption {
    font-size: 12px;
    color: #8394a2;
    margin: 0 0 23px;
}
.collection-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}
.collection-label > span {
    color: var(--school-muted);
}
.collection-track {
    height: 6px;
    background: #eaf0f3;
    border-radius: 8px;
    overflow: hidden;
}
.collection-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #3a9f91;
}
.finance-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 17px 0 20px;
}
.finance-breakdown > div {
    display: grid;
    gap: 5px;
}
.finance-breakdown span {
    color: var(--school-muted);
    font-size: 12px;
}
.finance-breakdown strong {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.overdue-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #925959;
    font-size: 14px;
    background: #fcf2f2;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 14px;
}
.overdue-note strong {
    margin-left: auto;
    font-size: 14px;
}
.finance-link {
    width: 100%;
    justify-content: center;
    height: 33px;
    font-size: 14px;
}
.teaching-card .card-header > i {
    font-size: 24px;
    color: #8a9daa;
}
.classroom-illustration {
    width: 62px;
    height: 62px;
    background: #f9f1df;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 33px;
    color: #af8733;
    margin: 0 0 17px;
}
.teaching-card h3 {
    font-size: 19px;
    letter-spacing: -0.5px;
}
.teaching-card p {
    color: var(--school-muted);
    font-size: 14px;
    line-height: 1.9;
}
.teaching-summary {
    display: flex;
    gap: 25px;
    margin: 20px 0;
}
.teaching-summary > div {
    display: grid;
    max-width: 150px;
    gap: 3px;
}
.teaching-summary strong {
    font-size: 25px;
    font-weight: 550;
}
.teaching-summary span {
    font-size: 12px;
    color: var(--school-muted);
}
.quick-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 12px;
    padding: 20px 23px;
    margin: 22px 0;
}
.quick-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 185px;
}
.quick-heading > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #fbf4e2;
    color: #aa8430;
    border-radius: 9px;
    font-size: 20px;
}
.quick-heading h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}
.quick-heading p {
    font-size: 12px;
    color: var(--school-muted);
    margin: 0;
}
.quick-action-links {
    display: flex;
    flex: 1;
    gap: 12px;
}
.quick-action-links > a {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e7edf1;
    border-radius: 7px;
    font-size: 14px;
    color: #405b6c;
    white-space: nowrap;
}
.quick-action-links > a:hover {
    background: #f7fafb;
    border-color: #bbced8;
}
.quick-action-links i {
    font-size: 17px;
}
.quick-action-links i:last-child {
    margin-left: auto;
    font-size: 14px;
    color: #8ca0ad;
}
.dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 22px;
}
.text-link {
    font-size: 14px;
    white-space: nowrap;
    color: #5c7587;
}
.text-link:hover {
    color: var(--school-navy);
}
.activity-card .card-body {
    padding-top: 4px;
    padding-bottom: 7px;
}
.activity-timeline {
    display: flex;
    flex-direction: column;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #f0f3f5;
    color: var(--school-text);
}
.activity-item:last-child {
    border: 0;
}
.activity-item:hover strong {
    color: #aa7b1d;
}
.activity-dot {
    background: #eef6f2;
    color: #4a9077;
    border: 4px solid white;
    box-shadow: 0 0 0 1px #edf2f4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 1px;
}
.activity-dot.read {
    color: #94a3af;
    background: #f2f5f7;
}
.activity-item > div {
    flex: 1;
}
.activity-item strong {
    font-weight: 500;
    font-size: 14px;
    display: block;
    margin: 3px 0 4px;
}
.activity-item p {
    font-size: 12px;
    color: #8797a4;
    margin: 0 0 5px;
}
.activity-item time {
    font-size: 12px;
    color: #8194a2;
}
.activity-item > i {
    align-self: center;
    color: #96a7b3;
    font-size: 14px;
}
.activity-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--school-muted);
    display: grid;
    gap: 10px;
}
.activity-empty i {
    font-size: 28px;
    color: #c1cdd5;
}
.activity-empty strong {
    font-size: 14px;
    font-weight: 500;
}
.activity-empty p {
    font-size: 14px;
}
.family-student {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f5;
}
.family-student:first-child {
    padding-top: 0;
}
.family-student:last-child {
    border: 0;
    padding-bottom: 0;
}
@media (min-width: 1600px) {
    .school-main {
        max-width: 1510px;
        margin: auto;
    }
    .welcome-hero {
        padding: 33px 40px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
    }
}
@media (max-width: 1250px) {
    .quick-actions {
        gap: 20px;
        padding: 17px;
    }
    .quick-heading {
        min-width: 155px;
    }
    .quick-action-links > a {
        padding: 10px;
        font-size: 12px;
        gap: 7px;
    }
    .quick-action-links i:last-child {
        display: none;
    }
    .dashboard-grid {
        gap: 18px;
        grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr);
    }
    .dashboard-bottom {
        gap: 18px;
    }
    .welcome-hero {
        padding: 28px;
    }
    .balance-value {
        font-size: 24px;
    }
}
@media (max-width: 800px) {
    .dashboard-grid,
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        gap: 18px;
    }
    .dashboard-grid > .card {
        margin: 0;
    }
    .welcome-hero {
        gap: 20px;
        padding: 26px;
    }
    .welcome-hero h2 {
        font-size: 25px;
    }
    .hero-date {
        flex-basis: 145px;
        padding-left: 20px;
    }
    .hero-date strong {
        font-size: 48px;
    }
    .quick-actions {
        display: block;
    }
    .quick-heading {
        margin-bottom: 16px;
    }
    .quick-action-links {
        gap: 10px;
    }
    .quick-action-links > a {
        font-size: 14px;
    }
    .finance-card .card-body {
        display: block;
    }
    .finance-breakdown {
        max-width: 460px;
    }
    .balance-value {
        font-size: 30px;
    }
    .finance-link {
        width: auto;
        min-width: 180px;
    }
    .attendance-chart {
        height: 190px;
    }
}
@media (max-width: 600px) {
    .welcome-hero {
        padding: 23px;
        margin-bottom: 16px;
    }
    .welcome-hero h2 {
        font-size: 25px;
        max-width: 270px;
    }
    .welcome-hero p {
        font-size: 14px;
    }
    .hero-date {
        display: none;
    }
    .hero-actions {
        gap: 14px;
    }
    .dashboard-metrics {
        margin-bottom: 16px;
    }
    .chart-summary {
        gap: 12px;
    }
    .chart-summary small {
        font-size: 12px;
    }
    .period-chip {
        font-size: 12px;
        padding: 6px;
    }
    .chart-day {
        width: 24px;
    }
    .chart-legend {
        font-size: 12px;
        gap: 13px;
    }
    .quick-actions {
        margin: 16px 0;
        padding: 17px;
    }
    .quick-action-links {
        display: grid;
        grid-template-columns: 1fr;
    }
    .quick-action-links > a {
        padding: 12px;
    }
    .quick-action-links i:last-child {
        display: inline;
        margin-left: auto;
    }
    .family-student {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-bottom .table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .dashboard-bottom .table td:first-child {
        grid-column: 1/-1;
    }
    .dashboard-bottom .table td:before {
        width: auto;
        min-width: 50px;
    }
    .dashboard-bottom .table .empty-state {
        grid-column: 1/-1;
    }
}

/* A short welcome line replaces the previous large hero banner. */
.dashboard-welcome {
    font-size: 15px;
    color: #516a7d;
    margin: 0 0 16px !important;
}
.dashboard-grid,
.dashboard-bottom {
    gap: 18px;
}
.dashboard-grid > .card {
    margin-bottom: 0;
}
.quick-actions {
    border-radius: 5px;
    margin: 18px 0;
}
.quick-heading h2 {
    font-size: 16px;
}
.quick-heading p {
    font-size: 13px;
}
.chart-summary > strong {
    font-size: 30px;
}
.balance-value {
    font-size: 27px;
}
.activity-item strong {
    font-size: 14px;
}
.activity-item p,
.activity-item time {
    font-size: 12px;
}
.period-chip {
    font-size: 13px;
}
@media (max-width: 800px) {
    .dashboard-grid,
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-bottom .table tr {
        display: table-row;
        padding: 0;
    }
    .dashboard-bottom .table td,
    .dashboard-bottom .table td:first-child {
        display: table-cell;
    }
    .dashboard-bottom .table td:before {
        display: none;
    }
    .dashboard-bottom .table {
        min-width: 530px;
    }
    .chart-legend {
        font-size: 12px;
        gap: 10px;
    }
    .chart-summary small {
        font-size: 12px;
    }
    .quick-action-links > a {
        font-size: 14px;
    }
}
