/* OfficeDisplay desktop layout — light mode */
:root {
    --od-font: "Segoe UI", "Nirmala UI", Tahoma, sans-serif;
    --digi-accent: #8a1530;
    --digi-accent-2: #5a0b1b;
    --od-border: #c5cdd8;
    --od-title-bg: #ffff80;
    --od-school-red: #cc0000;
    --od-head-haj: #90ee90;
    --od-head-mdm: #87ceeb;
    --od-head-photo: #ffb6c1;
    --od-head-grant: #ffa500;
    --od-head-jat: #ffa500;
    --od-head-std: #40e0d0;
    --od-head-info: #dda0dd;
    --od-head-gulab: #ff6347;
    --od-head-dipak: #4169e1;
    --od-row-tot: #ff6666;
    --od-row-std-tot: #ffe0b2;
    --od-cell-alt: #f8fafc;
    --od-panel-bg: #fff;
    --od-row-h: clamp(36px, 4vh, 46px);
    --od-row-h-mini: clamp(34px, 3.6vh, 42px);
    --od-head-bar-h: clamp(34px, 3.8vh, 44px);
    --od-title-h: clamp(44px, 5.5vh, 56px);
    --od-menu-h: clamp(52px, 6vh, 62px);
    --od-tab-data: #059669;
    --od-tab-data-light: #10b981;
    --od-tab-mirror: #7c3aed;
    --od-tab-mirror-light: #a78bfa;
    --od-tab-smc: #2563eb;
    --od-tab-smc-light: #60a5fa;
    --od-tab-samiti: #ea580c;
    --od-tab-samiti-light: #fb923c;
    --od-tab-settings: #475569;
    --od-tab-settings-light: #64748b;
}

*, *::before, *::after { box-sizing: border-box; }

.d-none { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: var(--od-font);
    font-size: clamp(15px, 1.2vw, 18px);
    background: #fff;
    color: #000;
    -webkit-font-smoothing: antialiased;
}

.display-body { background: #fff; }

/* ===== Shell ===== */
.od-display {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--od-border);
}

/* Menu bar — modern pill tabs */
.od-menu {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: var(--od-menu-h);
    padding: 0.45rem 0.85rem;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.od-menu-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.od-menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    padding: 0.42rem 1rem 0.48rem;
    font-size: clamp(0.8rem, 1.05vw, 0.92rem);
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
    overflow: hidden;
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.od-menu-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.85;
}

.od-menu-item__label {
    white-space: nowrap;
    line-height: 1.2;
}

.od-menu-item:hover:not(.od-menu-item--active) {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.od-menu-item--active {
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.od-menu-item--active[data-accent="data"] {
    background: linear-gradient(135deg, var(--od-tab-data) 0%, var(--od-tab-data-light) 100%);
}

.od-menu-item--active[data-accent="mirror"] {
    background: linear-gradient(135deg, var(--od-tab-mirror) 0%, var(--od-tab-mirror-light) 100%);
}

.od-menu-item--active[data-accent="smc"] {
    background: linear-gradient(135deg, var(--od-tab-smc) 0%, var(--od-tab-smc-light) 100%);
}

.od-menu-item--active[data-accent="samiti"] {
    background: linear-gradient(135deg, var(--od-tab-samiti) 0%, var(--od-tab-samiti-light) 100%);
}

.od-menu-item--active[data-accent="settings"] {
    background: linear-gradient(135deg, var(--od-tab-settings) 0%, var(--od-tab-settings-light) 100%);
}

.od-menu-item--settings {
    margin-left: auto;
}

.od-menu-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: rgba(255, 255, 255, 0.92);
    display: block;
    border-radius: 0 0 999px 999px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.od-menu-item--active .od-menu-progress {
    animation: odTabProgress var(--tab-duration, 60s) linear forwards;
}

@keyframes odTabProgress {
    from { width: 0; }
    to { width: 100%; }
}

#displayMenu[data-active-accent="data"] {
    border-bottom-color: rgba(5, 150, 105, 0.35);
}

#displayMenu[data-active-accent="mirror"] {
    border-bottom-color: rgba(124, 58, 237, 0.35);
}

#displayMenu[data-active-accent="smc"] {
    border-bottom-color: rgba(37, 99, 235, 0.35);
}

#displayMenu[data-active-accent="samiti"] {
    border-bottom-color: rgba(234, 88, 12, 0.35);
}

#displayMenu[data-active-accent="settings"] {
    border-bottom-color: rgba(71, 85, 105, 0.35);
}

/* Yellow title bar */
.od-titlebar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.35rem 1rem;
    background: var(--od-title-bg);
    border-bottom: 2px solid var(--od-border);
    min-height: var(--od-title-h);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.od-titlebar-date,
.od-titlebar-time {
    font-weight: 700;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: #000;
    letter-spacing: 0.02em;
}

.od-titlebar-time { text-align: right; }

.od-titlebar-school {
    margin: 0;
    text-align: center;
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    font-weight: 800;
    color: var(--od-school-red);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.75rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Stage / panels */
.od-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.od-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s;
    pointer-events: none;
}

.od-panel--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== Board — 3-column independent stacks ===== */
.od-board--cols {
    --od-side-top: clamp(248px, 28vh, 312px);
    --od-photo-h: clamp(380px, 44vh, 520px);
    --od-spotlight-h: clamp(240px, 28vh, 320px);
    --od-schinfo-h: clamp(280px, 32vh, 340px);
    display: grid;
    grid-template-columns: 32fr 36fr 32fr;
    grid-template-rows: 1fr;
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 2px;
    background: var(--od-panel-bg);
    overflow: hidden;
}

.od-board-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.od-board-col__side-top {
    flex: 0 0 var(--od-side-top);
    max-height: var(--od-side-top);
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.od-board-col__photo {
    flex: 0 0 var(--od-photo-h);
    max-height: var(--od-photo-h);
    min-height: 0;
}

.od-board-col__grow {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.od-board-col__spotlight {
    flex: 0 0 var(--od-spotlight-h);
    max-height: var(--od-spotlight-h);
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.od-board-col__schinfo {
    flex: 0 0 var(--od-schinfo-h);
    max-height: var(--od-schinfo-h);
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.od-board-col__spotlight-wrap {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.od-board-col__spotlight-wrap > .od-board-col__spotlight {
    flex: 1 1 0;
    max-height: none;
    min-height: var(--od-spotlight-h);
}

.od-board-col__grow.od-box,
.od-board-col__photo.od-box,
.od-board-col__side-top.od-box {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.od-board-col__grow.od-box { flex: 1 1 0; }
.od-board-col__photo.od-box { flex: 0 0 var(--od-photo-h); max-height: var(--od-photo-h); }
.od-board-col__side-top.od-box { flex: 0 0 var(--od-side-top); max-height: var(--od-side-top); }

/* Legacy grid (fallback) */
.od-board--grid {
    --od-slot-top: clamp(200px, 22vh, 260px);
    --od-slot-bottom: clamp(168px, 20vh, 228px);
    display: grid;
    grid-template-columns: 32fr 36fr 32fr;
    grid-template-rows: var(--od-slot-top) minmax(0, 1fr) var(--od-slot-bottom);
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 2px;
    background: var(--od-panel-bg);
    overflow: hidden;
}

.od-grid-cell {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.od-grid-r1c1 { grid-column: 1; grid-row: 1; }
.od-grid-r1c2 { grid-column: 2; grid-row: 1; }
.od-grid-r1c3 { grid-column: 3; grid-row: 1; }
.od-grid-r2c1 { grid-column: 1; grid-row: 2 / 4; }
.od-grid-r2c2 { grid-column: 2; grid-row: 2 / 4; }
.od-grid-r2c3 { grid-column: 3; grid-row: 2; }
.od-grid-r3c3 { grid-column: 3; grid-row: 3; }

.od-board-row--pair {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    height: 100%;
    min-height: 0;
}

.od-board-row--pair > .od-box { flex: 1 1 0; min-width: 0; min-height: 0; }

.od-box--haj,
.od-box--mdm {
    display: flex;
    flex-direction: column;
}

.od-box--haj .od-box__head,
.od-box--mdm .od-box__head {
    flex: 0 0 var(--od-head-bar-h);
    height: var(--od-head-bar-h);
    min-height: var(--od-head-bar-h);
    max-height: var(--od-head-bar-h);
}

.od-box--haj .od-box__body,
.od-box--mdm .od-box__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.od-board-row--pair .od-summary-table {
    flex: 1;
    height: 100%;
}

.od-board-row--pair .od-summary-table thead tr {
    height: clamp(26px, 2.8vh, 32px);
}

.od-board-row--pair .od-summary-table tbody tr {
    height: clamp(28px, 3.1vh, 34px);
}

.od-board-row--pair .od-summary-table col.od-col-label { width: 42%; }
.od-board-row--pair .od-summary-table col.od-col-val { width: 19%; }
.od-board-row--pair .od-summary-table col.od-col-tot { width: 20%; }

.od-board-row--pair .od-summary-table tbody th[scope="row"] {
    width: 42%;
    max-width: 42%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.od-board-row--spotlight {
    display: flex;
    flex-direction: row;
    gap: 2px;
    height: 100%;
    min-height: 0;
}

.od-board-row--spotlight > .od-box {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.od-grid-cell > .od-box,
.od-box.od-grid-cell {
    flex: 1;
    min-height: 0;
    height: 100%;
    min-width: 0;
}

.od-box {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid var(--od-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.2s ease;
}

.od-box__head {
    flex-shrink: 0;
    margin: 0;
    padding: 0.4rem 0.55rem;
    text-align: center;
    font-weight: 700;
    font-size: clamp(0.88rem, 1.25vw, 1.02rem);
    border-bottom: 1px solid var(--od-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: var(--od-head-bar-h);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
}

.od-box--haj,
.od-box--mdm {
    border: none;
    box-shadow: none;
}

.od-box--haj .od-box__head {
    background: linear-gradient(180deg, #c8f5c8 0%, #90ee90 45%, #6fd06f 100%);
    border-bottom: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.od-box--mdm .od-box__head {
    background: linear-gradient(180deg, #b5e3f5 0%, #87ceeb 45%, #5eb8d9 100%);
    border-bottom: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.od-box--photo .od-box__head {
    background: linear-gradient(135deg, #ffc0cb 0%, #ffb6c1 35%, #ff8fab 70%, #f472b6 100%);
    color: #7f1d1d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.od-box--grant .od-box__head {
    background: linear-gradient(180deg, #ffe8b3 0%, #ffa500 45%, #e89000 100%);
    color: #000;
}
.od-box--jat .od-box__head {
    background: linear-gradient(180deg, #ffe8b3 0%, #ffa500 45%, #e89000 100%);
    color: #000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border-bottom: none;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.od-box--jat .od-scroll-content,
.od-box--stdhaj .od-scroll-content {
    padding: 0;
    margin: 0;
}

.od-box--jat .od-jatvari-table,
.od-box--stdhaj .od-stdhaj-table {
    margin: 0;
}

.od-box--jat .od-jatvari-table thead tr:first-child th,
.od-box--stdhaj .od-stdhaj-table thead tr:first-child th {
    border-top: none;
}

.od-box--stdhaj .od-box__head {
    background: linear-gradient(180deg, #b2f5ea 0%, #40e0d0 45%, #2ec4b6 100%);
    color: #000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border-bottom: none;
}

.od-box--jat #scrollJatavari,
.od-box--stdhaj #scrollStdClass,
.od-box--schinfo #scrollSchInfo {
    padding: 0;
    margin: 0;
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    overflow: hidden auto;
}

.od-box--jat .od-jatvari-table {
    --od-jat-h1: clamp(24px, 2.7vh, 30px);
    --od-jat-h2: clamp(30px, 3.4vh, 38px);
}

.od-jatvari-table thead tr:first-child th:not([rowspan]) {
    position: sticky;
    top: 0;
    z-index: 2;
    height: var(--od-jat-h1);
    min-height: var(--od-jat-h1);
    max-height: var(--od-jat-h1);
    vertical-align: middle;
    box-sizing: border-box;
}

.od-jatvari-table thead tr:first-child th[rowspan] {
    position: sticky;
    top: 0;
    z-index: 4;
    vertical-align: middle;
    box-sizing: border-box;
}

.od-jatvari-table thead tr:nth-child(2) th {
    position: sticky;
    top: var(--od-jat-h1);
    z-index: 2;
    height: var(--od-jat-h2);
    min-height: var(--od-jat-h2);
    max-height: var(--od-jat-h2);
    vertical-align: middle;
    box-sizing: border-box;
    font-size: clamp(0.74rem, 0.95vw, 0.9rem);
    font-weight: 800;
    padding: 0.18rem 0.1rem;
    line-height: 1.2;
}

.od-jatvari-table thead th {
    white-space: normal;
    line-height: 1.15;
    padding: 0.12rem 0.06rem;
    font-size: clamp(0.56rem, 0.65vw, 0.66rem);
    word-break: break-word;
    background: linear-gradient(180deg, #fff4d6 0%, #ffe8b3 55%, #ffd699 100%);
    color: #422006;
    box-shadow: none;
}

.od-jatvari-table tbody th,
.od-jatvari-table tbody td {
    height: clamp(24px, 2.6vh, 30px);
    vertical-align: middle;
}
.od-box--schinfo .od-box__head {
    flex: 0 0 var(--od-head-bar-h);
    height: var(--od-head-bar-h);
    min-height: var(--od-head-bar-h);
    max-height: var(--od-head-bar-h);
    background: linear-gradient(180deg, #f0d4f5 0%, #dda0dd 45%, #c77dbd 100%);
    color: #4a1d4a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    border-bottom: none;
}
.od-box--gulab .od-box__head {
    background: linear-gradient(180deg, #ffb4a8 0%, #ff6347 45%, #e64a2e 100%);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border-bottom: none;
}
.od-box--dipak .od-box__head {
    background: linear-gradient(180deg, #7b9ef5 0%, #4169e1 45%, #2f4eb8 100%);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border-bottom: none;
}

.od-box__body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.od-box__body.od-scroll {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
}

#scrollJatavari {
    overflow-x: hidden;
    overflow-y: auto;
}

#scrollJatavari.od-scroll {
    overflow-x: hidden;
    overflow-y: auto;
}

.od-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.od-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

.od-scroll-content {
    width: 100%;
}

.od-scroll.is-scrolling {
    will-change: scroll-position;
}

.od-credits-marquee-lead,
.od-credits-marquee-trail {
    flex-shrink: 0;
    width: 100%;
    pointer-events: none;
}

/* Summary stat tables (હાજરી / MDM) */
.od-summary-table {
    flex: 1;
    min-height: 0;
}

.od-summary-table thead th {
    font-size: clamp(0.72rem, 0.95vw, 0.82rem);
    color: #64748b;
    background: #f8fafc;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.od-summary-table tbody th[scope="row"] {
    font-weight: 700;
    font-size: clamp(0.78rem, 1.05vw, 0.9rem);
    text-align: left;
    padding-left: 0.35rem;
    background: #fff;
    vertical-align: middle;
    width: 42%;
}

.od-summary-table tbody td {
    font-weight: 700;
    font-size: clamp(0.88rem, 1.2vw, 1rem);
    text-align: center;
    vertical-align: middle;
}

.od-summary-table thead th,
.od-summary-table tbody th,
.od-summary-table td {
    height: clamp(28px, 3.1vh, 34px);
    padding: 0.18rem 0.25rem;
}

.od-summary-table tr.od-row-total th[scope="row"] {
    font-weight: 700;
    text-align: left;
    padding-left: 0.35rem;
    vertical-align: middle;
}

.od-summary-table tr.od-row-total td {
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

.od-box--haj .od-summary-table tr.od-row-total th[scope="row"],
.od-box--haj .od-summary-table tr.od-row-total td {
    background: linear-gradient(180deg, #e8fbe8 0%, #d4f5d4 55%, #c8f0c8 100%) !important;
    color: #14532d !important;
}

.od-box--mdm .od-summary-table tr.od-row-total th[scope="row"],
.od-box--mdm .od-summary-table tr.od-row-total td {
    background: linear-gradient(180deg, #e8f6fc 0%, #d4eef8 55%, #c5e8f5 100%) !important;
    color: #0c4a6e !important;
}

.od-box--grant .od-box__head {
    background: linear-gradient(180deg, #ffe8b3 0%, #ffa500 45%, #e89000 100%);
    color: #000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.od-grant-body {
    display: flex;
    flex-direction: column;
    padding: 0.28rem 0.4rem 0.32rem;
    overflow: hidden;
}

.od-grant-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.od-grant-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.od-grant-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    z-index: 1;
    overflow: hidden;
    will-change: transform, opacity, clip-path;
}

.od-grant-slide.is-visible {
    opacity: 1;
    z-index: 2;
}

.od-grant-slide[hidden] {
    display: none !important;
}

.od-grant-empty {
    margin: 0;
    text-align: center;
    color: #64748b;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    font-weight: 600;
    padding: 0.5rem;
}

.od-grant-card {
    border-radius: 8px;
    padding: 0 0.45rem 0.38rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.od-grant-card__title {
    margin: 0 -0.45rem 0.28rem;
    padding: 0.32rem 0.45rem;
    text-align: center;
    font-size: clamp(0.8rem, 1.05vw, 0.95rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    border-radius: 7px 7px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.od-grant-card__dl {
    margin: 0;
    display: grid;
    gap: 0.1rem;
    flex: 1;
    min-height: 0;
}

.od-grant-card__row {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 0.3rem;
    align-items: center;
    padding: 0.06rem 0;
    border-bottom: 1px dashed rgba(100, 116, 139, 0.35);
}

.od-grant-card__row:last-child {
    border-bottom: none;
}

.od-grant-card__row dt {
    margin: 0;
    font-size: clamp(0.68rem, 0.9vw, 0.8rem);
    font-weight: 700;
    color: #475569;
    text-align: left;
}

.od-grant-card__row dd {
    margin: 0;
    font-size: clamp(0.78rem, 1.02vw, 0.9rem);
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.od-grant-card__row--highlight dd {
    color: #b45309;
}

.od-grant-card__row--tot {
    border-radius: 4px;
    padding: 0.14rem 0.24rem;
    border-bottom: none;
    margin-top: 0.06rem;
}

.od-grant-card__row--tot dt,
.od-grant-card__row--tot dd {
    color: #166534;
    font-weight: 800;
}

/* દરેક ગ્રાન્ટ કાર્ડ — light gradient theme */
.od-grant-card--theme-0 {
    background: linear-gradient(165deg, #fffbeb 0%, #fff 50%, #fef9c3 100%);
    border-color: #fcd34d;
}

.od-grant-card--theme-0 .od-grant-card__title {
    background: linear-gradient(90deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
    color: #422006;
}

.od-grant-card--theme-0 .od-grant-card__row--tot {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.05));
}

.od-grant-card--theme-1 {
    background: linear-gradient(165deg, #eff6ff 0%, #fff 50%, #dbeafe 100%);
    border-color: #93c5fd;
}

.od-grant-card--theme-1 .od-grant-card__title {
    background: linear-gradient(90deg, #bfdbfe 0%, #60a5fa 55%, #3b82f6 100%);
    color: #1e3a8a;
}

.od-grant-card--theme-1 .od-grant-card__row--tot {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0.04));
}

.od-grant-card--theme-1 .od-grant-card__row--tot dt,
.od-grant-card--theme-1 .od-grant-card__row--tot dd {
    color: #0369a1;
}

.od-grant-card--theme-2 {
    background: linear-gradient(165deg, #ecfdf5 0%, #fff 50%, #d1fae5 100%);
    border-color: #6ee7b7;
}

.od-grant-card--theme-2 .od-grant-card__title {
    background: linear-gradient(90deg, #a7f3d0 0%, #34d399 55%, #10b981 100%);
    color: #064e3b;
}

.od-grant-card--theme-2 .od-grant-card__row--tot {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05));
}

.od-grant-card--theme-3 {
    background: linear-gradient(165deg, #f5f3ff 0%, #fff 50%, #ede9fe 100%);
    border-color: #c4b5fd;
}

.od-grant-card--theme-3 .od-grant-card__title {
    background: linear-gradient(90deg, #ddd6fe 0%, #a78bfa 55%, #8b5cf6 100%);
    color: #4c1d95;
}

.od-grant-card--theme-3 .od-grant-card__row--tot {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.04));
}

.od-grant-card--theme-3 .od-grant-card__row--tot dt,
.od-grant-card--theme-3 .od-grant-card__row--tot dd {
    color: #6d28d9;
}

.od-grant-card--theme-4 {
    background: linear-gradient(165deg, #fff7ed 0%, #fff 50%, #ffedd5 100%);
    border-color: #fdba74;
}

.od-grant-card--theme-4 .od-grant-card__title {
    background: linear-gradient(90deg, #fed7aa 0%, #fb923c 55%, #f97316 100%);
    color: #7c2d12;
}

.od-grant-card--theme-4 .od-grant-card__row--tot {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0.04));
}

.od-grant-card--theme-4 .od-grant-card__row--tot dt,
.od-grant-card--theme-4 .od-grant-card__row--tot dd {
    color: #c2410c;
}

.od-grant-card--theme-5 {
    background: linear-gradient(165deg, #fdf2f8 0%, #fff 50%, #fce7f3 100%);
    border-color: #f9a8d4;
}

.od-grant-card--theme-5 .od-grant-card__title {
    background: linear-gradient(90deg, #fbcfe8 0%, #f472b6 55%, #ec4899 100%);
    color: #831843;
}

.od-grant-card--theme-5 .od-grant-card__row--tot {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.14), rgba(236, 72, 153, 0.04));
}

.od-grant-card--theme-5 .od-grant-card__row--tot dt,
.od-grant-card--theme-5 .od-grant-card__row--tot dd {
    color: #be185d;
}

/* PowerPoint-style ગ્રાન્ટ કાર્ડ transitions */
.fx-fade .od-grant-slide.is-enter {
    animation: odPhotoFadeIn 1s ease forwards;
    z-index: 3;
}

.fx-fade .od-grant-slide.is-exit {
    animation: odPhotoFadeOut 1s ease forwards;
    z-index: 2;
}

.fx-push-left .od-grant-slide.is-enter {
    animation: odPhotoPushInRight 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 3;
}

.fx-push-left .od-grant-slide.is-exit {
    animation: odPhotoPushOutLeft 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 2;
}

.fx-push-right .od-grant-slide.is-enter {
    animation: odPhotoPushInLeft 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 3;
}

.fx-push-right .od-grant-slide.is-exit {
    animation: odPhotoPushOutRight 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 2;
}

.fx-zoom-in .od-grant-slide.is-enter {
    animation: odPhotoZoomIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    z-index: 3;
}

.fx-zoom-in .od-grant-slide.is-exit {
    animation: odPhotoFadeOut 0.7s ease forwards;
    z-index: 2;
}

.fx-wipe .od-grant-slide.is-enter {
    animation: odPhotoWipeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 3;
}

.fx-wipe .od-grant-slide.is-exit {
    animation: odPhotoFadeOut 0.85s ease forwards;
    z-index: 2;
}

.od-grant-dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.28rem;
    flex: 0 0 auto;
}

.od-grant-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}

.od-grant-dot--on {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.65);
}

.od-box--grant .od-box__body {
    overflow: hidden;
}

.od-box--photo .od-photo-area {
    padding: 2px;
    flex: 1;
    min-height: 0;
}

.od-box--photo .od-photo-frame {
    height: 100%;
    min-height: 0;
}

.od-box--photo .od-photo-logo {
    width: clamp(44px, 6.5vw, 72px);
}

.od-box--photo .od-photo-placeholder {
    gap: 0.25rem;
    font-size: clamp(0.75rem, 0.95vw, 0.88rem);
}

/* Legacy stat cards (unused) */
.od-stat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.35rem;
    margin: 5px;
    padding: 6px 8px;
    min-height: 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.od-stat-row {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.od-stat-row__label {
    flex: 0 0 32%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: clamp(0.82rem, 1.15vw, 0.96rem);
    padding-left: 0.15rem;
    color: #334155;
}

.od-stat-row__vals {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.od-stat-cell {
    text-align: center;
    padding: 0.28rem 0.2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.od-stat-cell small {
    display: block;
    font-size: clamp(0.68rem, 0.95vw, 0.78rem);
    color: #64748b;
    font-weight: 600;
    line-height: 1.1;
}

.od-stat-cell strong {
    display: block;
    font-size: clamp(0.95rem, 1.35vw, 1.12rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    color: #0f172a;
}

.od-stat-row--total .od-stat-cell {
    background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.od-stat-row--total .od-stat-cell strong {
    color: #991b1b;
}

/* Mini summary tables (legacy fallback) */
.od-mini-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.od-mini-table th,
.od-mini-table td {
    border: 1px solid var(--od-border);
    padding: 0.32rem 0.4rem;
    text-align: center;
    font-size: clamp(0.84rem, 1.2vw, 0.98rem);
    font-variant-numeric: tabular-nums;
    height: var(--od-row-h-mini);
    line-height: 1.25;
    vertical-align: middle;
}

.od-mini-table th {
    background: #f1f5f9;
    font-weight: 700;
}

.od-mini-table td:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 0.35rem;
}

.od-row-total td {
    background: var(--od-row-tot) !important;
    font-weight: 700;
    color: #fff;
}

/* Photo area — top red-box slot */
.od-photo-area {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 2px;
    background: #fff;
}

.od-photo-frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    border: 2px inset #b0b0b0;
    background: linear-gradient(180deg, #fefefe 0%, #ececec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.od-photo-frame--slideshow {
    position: relative;
}

.od-photo-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0;
    z-index: 1;
    will-change: transform, opacity, clip-path;
}

.od-photo-slide.is-visible {
    opacity: 1;
    z-index: 2;
}

.od-photo-slide[hidden] {
    display: none !important;
}

/* PowerPoint-style ફોટો transitions */
.fx-fade .od-photo-slide.is-enter {
    animation: odPhotoFadeIn 1s ease forwards;
    z-index: 3;
}

.fx-fade .od-photo-slide.is-exit {
    animation: odPhotoFadeOut 1s ease forwards;
    z-index: 2;
}

.fx-push-left .od-photo-slide.is-enter {
    animation: odPhotoPushInRight 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 3;
}

.fx-push-left .od-photo-slide.is-exit {
    animation: odPhotoPushOutLeft 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 2;
}

.fx-push-right .od-photo-slide.is-enter {
    animation: odPhotoPushInLeft 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 3;
}

.fx-push-right .od-photo-slide.is-exit {
    animation: odPhotoPushOutRight 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 2;
}

.fx-zoom-in .od-photo-slide.is-enter {
    animation: odPhotoZoomIn 1s ease forwards;
    z-index: 3;
}

.fx-zoom-in .od-photo-slide.is-exit {
    animation: odPhotoFadeOut 0.75s ease forwards;
    z-index: 2;
}

.fx-wipe .od-photo-slide.is-enter {
    animation: odPhotoWipeIn 1s ease forwards;
    z-index: 3;
}

.fx-wipe .od-photo-slide.is-exit {
    animation: odPhotoFadeOut 0.6s ease forwards;
    z-index: 2;
}

@keyframes odPhotoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes odPhotoFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes odPhotoPushInRight {
    from { transform: translateX(100%); opacity: 1; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes odPhotoPushOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 1; }
}

@keyframes odPhotoPushInLeft {
    from { transform: translateX(-100%); opacity: 1; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes odPhotoPushOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 1; }
}

@keyframes odPhotoZoomIn {
    from { transform: scale(1.14); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes odPhotoWipeIn {
    from { clip-path: inset(0 100% 0 0); opacity: 1; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
}

.od-photo-placeholder {
    position: relative;
    z-index: 0;
}

.od-photo-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.od-photo-img[hidden] { display: none !important; }

.od-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: #666;
    font-size: clamp(0.75rem, 0.95vw, 0.88rem);
    font-weight: 600;
    text-align: center;
    padding: 0.35rem;
}

.od-photo-logo {
    width: clamp(44px, 6.5vw, 72px);
    height: auto;
    opacity: 0.45;
}

/* Data tables */
.od-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.86rem, 1.25vw, 1rem);
}

#tableJatavari {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

#tableJatavari th:first-child,
#tableJatavari td:first-child,
.od-jatvari-table .od-jat-std-label {
    width: 13%;
    min-width: 0;
    max-width: none;
    text-align: left;
    padding-left: 0.28rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.od-jatvari-table thead th {
    white-space: normal;
    line-height: 1.15;
    padding: 0.12rem 0.06rem;
    font-size: clamp(0.56rem, 0.65vw, 0.66rem);
    word-break: break-word;
    background: linear-gradient(180deg, #fff4d6 0%, #ffe8b3 55%, #ffd699 100%);
    color: #422006;
    box-shadow: none;
}

.od-jatvari-table thead tr:nth-child(2) th {
    top: var(--od-jat-h1);
    font-size: clamp(0.74rem, 0.95vw, 0.9rem);
    font-weight: 800;
    padding: 0.18rem 0.1rem;
    line-height: 1.2;
}

.od-jatvari-table tbody th:not(:first-child),
.od-jatvari-table tbody td:not(:first-child) {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0.1rem 0.04rem;
    font-size: clamp(0.56rem, 0.65vw, 0.66rem);
}

.od-jatvari-table .od-jat-hdr-grand {
    background: linear-gradient(180deg, #ffe8cc 0%, #ffd699 100%);
}

.od-jatvari-table .od-jat-hdr-subtot {
    font-weight: 900;
    font-size: clamp(0.76rem, 0.98vw, 0.92rem);
}

.od-jatvari-table .od-jat-cat-tot {
    background: #f1f5f9;
    font-weight: 700;
}

.od-jatvari-table .od-jat-grand {
    background: #fff8e6;
    font-weight: 700;
}

.od-jatvari-table .od-jat-grand-tot {
    background: #ffe8cc;
    font-weight: 800;
}

.od-jatvari-table tr.od-row-std-tot td {
    background: #d6eaf8 !important;
    color: #1a5276;
    font-weight: 700;
}

.od-jatvari-table tr.od-row-std-tot .od-jat-cat-tot {
    background: #aed6f1 !important;
    color: #1a5276;
}

.od-jatvari-table tr.od-row-std-tot .od-jat-grand {
    background: #85c1e9 !important;
    color: #1a5276;
}

.od-jatvari-table tr.od-row-std-tot .od-jat-grand-tot {
    background: #5dade2 !important;
    color: #fff;
}

.od-jatvari-table tr.od-row-tot td {
    background: var(--od-row-tot) !important;
    color: #fff;
    font-weight: 700;
}

.od-jatvari-table tr.od-row-tot .od-jat-cat-tot,
.od-jatvari-table tr.od-row-tot .od-jat-grand,
.od-jatvari-table tr.od-row-tot .od-jat-grand-tot {
    background: var(--od-row-tot) !important;
    color: #fff;
}

.od-jatvari-table th,
.od-jatvari-table td {
    height: clamp(26px, 2.9vh, 32px);
    line-height: 1.1;
}

#tableStdClass th:first-child,
#tableStdClass td:first-child {
    width: 30%;
    min-width: 90px;
}

#tableStdClass .od-col-light,
#tableStdClass th.od-col-light {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    padding: 0.2rem !important;
    text-align: center;
}

.od-stdhaj-table tbody td.od-col-light {
    text-align: center;
    vertical-align: middle;
}

.od-status-light {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4d4d4;
    border: 1px solid #a3a3a3;
    vertical-align: middle;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.od-status-light--on {
    background: #22c55e;
    border-color: #15803d;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.85), 0 0 3px #15803d, inset 0 -1px 2px rgba(0, 0, 0, 0.12);
    animation: odStatusLightPulse 2.4s ease-in-out infinite;
}

@keyframes odStatusLightPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.7), 0 0 2px #15803d; }
    50% { box-shadow: 0 0 14px rgba(34, 197, 94, 1), 0 0 4px #15803d; }
}

.od-data-table th,
.od-data-table td {
    border: 1px solid var(--od-border);
    padding: 0.35rem 0.4rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    height: var(--od-row-h);
    line-height: 1.25;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.od-data-table:not(.od-jatvari-table) thead th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    min-height: var(--od-row-h);
    box-shadow: 0 1px 0 var(--od-border);
}

.od-data-table:not(.od-jatvari-table) thead tr:nth-child(2) th {
    top: var(--od-row-h);
    z-index: 1;
}

.od-data-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 0.45rem;
    white-space: nowrap;
}

.od-data-table tbody tr:nth-child(even) { background: var(--od-cell-alt); }

.od-data-table .od-row-tot td {
    background: var(--od-row-tot) !important;
    color: #fff;
    font-weight: 700;
    height: calc(var(--od-row-h) + 2px);
}

.od-data-table .od-row-std-tot td {
    background: var(--od-row-std-tot);
    font-weight: 700;
    color: #5d3200;
}

.od-data-table--compact th,
.od-data-table--compact td {
    font-size: clamp(0.82rem, 1.1vw, 0.94rem);
    height: calc(var(--od-row-h) - 2px);
}

.od-empty {
    text-align: center;
    color: #888;
    padding: 1rem !important;
}

.od-status-ok,
.od-status-warn,
.od-status-bar {
    display: inline-block;
    width: 12px;
    height: calc(var(--od-row-h) - 8px);
    min-height: 16px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    vertical-align: middle;
    margin-right: 5px;
    flex-shrink: 0;
}

.od-status-ok,
.od-status-bar { background: #22c55e; border-color: #15803d; }

.od-status-warn { background: #eab308; border-color: #a16207; border-radius: 0; }

.od-status-empty { background: #d4d4d4; border-color: #a3a3a3; }

.od-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

/* School info */
.od-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.72rem, 0.95vw, 0.84rem);
}

.od-info-table th,
.od-info-table td {
    border: 1px solid var(--od-border);
    padding: 0.18rem 0.32rem;
    height: clamp(24px, 2.5vh, 30px);
    line-height: 1.2;
    vertical-align: middle;
}

.od-info-table th {
    background: #f5f5f5;
    text-align: left;
    font-weight: 600;
    width: 45%;
}

.od-info-empty {
    text-align: center;
    color: #64748b;
    font-weight: 600;
    padding: 0.5rem !important;
    font-size: clamp(0.68rem, 0.9vw, 0.8rem);
    line-height: 1.35;
    white-space: normal;
}

.od-info-empty--err {
    color: #b91c1c;
}

.od-box--schinfo .od-box__body.od-scroll {
    padding: 0;
}

/* Gulab / Dipak */
.od-spotlight-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.od-spotlight-view {
    height: 100%;
    min-height: 0;
    position: relative;
}

.od-spotlight-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.od-spotlight-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}

.od-spotlight-slide.is-visible {
    position: relative;
    inset: auto;
    height: 100%;
}

.od-spotlight-slide[hidden] {
    display: none !important;
}

.od-spotlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.od-spotlight-empty {
    width: 100%;
    height: 100%;
    min-height: 2rem;
}

.od-spotlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    text-align: center;
    min-height: 100%;
    height: 100%;
}

.od-spotlight-photo {
    width: clamp(96px, 13vw, 148px);
    height: clamp(96px, 13vw, 148px);
    border: 1px solid var(--od-border);
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 0.35rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    overflow: hidden;
    border-radius: 4px;
}

.od-spotlight-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.od-spotlight-photo-ph {
    font-size: 0.72rem;
    color: #999;
}

.od-spotlight-name {
    margin: 0;
    font-size: clamp(0.76rem, 1.05vw, 0.88rem);
    font-weight: 700;
    line-height: 1.25;
}

.od-spotlight-class {
    margin: 0.1rem 0 0;
    font-size: 0.65rem;
    color: #555;
}

.od-spotlight-kind {
    margin: 0.12rem 0 0;
    font-size: 0.62rem;
    font-weight: 700;
    color: #475569;
}

/* Spotlight transitions — ગુલાબ: curtains / random-bars; દીપક: slide */
@keyframes odFxSpotCurtainsIn {
    0% { clip-path: inset(0 50% 0 50%); opacity: 0.2; }
    100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes odFxSpotCurtainsOut {
    0% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 50% 0 50%); opacity: 0.2; }
}

@keyframes odFxSpotRandomBarsIn {
    0% {
        clip-path: polygon(
            0 0, 8% 0, 8% 100%, 0 100%,
            12% 0, 20% 0, 20% 100%, 12% 100%,
            24% 0, 100% 0, 100% 100%, 24% 100%
        );
        opacity: 0.35;
    }
    100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes odFxSpotRandomBarsOut {
    0% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% {
        clip-path: polygon(
            0 0, 76% 0, 76% 100%, 0 100%,
            80% 0, 88% 0, 88% 100%, 80% 100%,
            92% 0, 100% 0, 100% 100%, 92% 100%
        );
        opacity: 0.35;
    }
}

@keyframes odFxSpotFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes odFxSpotFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes odFxSpotPushLeftIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes odFxSpotPushLeftOut {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes odFxSpotPushRightIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes odFxSpotPushRightOut {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes odFxSpotZoomIn {
    from { transform: scale(0.82); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes odFxSpotZoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.08); opacity: 0; }
}

@keyframes odFxSpotWipeIn {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes odFxSpotWipeOut {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(0 0 0 100%); }
}

.fx-curtains .od-spotlight-slide.is-enter { animation: odFxSpotCurtainsIn 0.95s ease-out forwards; }
.fx-curtains .od-spotlight-slide.is-exit { animation: odFxSpotCurtainsOut 0.95s ease-in forwards; }
.fx-random-bars .od-spotlight-slide.is-enter { animation: odFxSpotRandomBarsIn 1s steps(6) forwards; }
.fx-random-bars .od-spotlight-slide.is-exit { animation: odFxSpotRandomBarsOut 1s steps(6) forwards; }
.fx-fade .od-spotlight-slide.is-enter { animation: odFxSpotFadeIn 0.75s ease forwards; }
.fx-fade .od-spotlight-slide.is-exit { animation: odFxSpotFadeOut 0.75s ease forwards; }
.fx-push-left .od-spotlight-slide.is-enter { animation: odFxSpotPushLeftIn 0.8s ease-out forwards; }
.fx-push-left .od-spotlight-slide.is-exit { animation: odFxSpotPushLeftOut 0.8s ease-in forwards; }
.fx-push-right .od-spotlight-slide.is-enter { animation: odFxSpotPushRightIn 0.8s ease-out forwards; }
.fx-push-right .od-spotlight-slide.is-exit { animation: odFxSpotPushRightOut 0.8s ease-in forwards; }
.fx-zoom-in .od-spotlight-slide.is-enter { animation: odFxSpotZoomIn 0.85s ease-out forwards; }
.fx-zoom-in .od-spotlight-slide.is-exit { animation: odFxSpotZoomOut 0.85s ease-in forwards; }
.fx-wipe .od-spotlight-slide.is-enter { animation: odFxSpotWipeIn 0.85s ease-out forwards; }
.fx-wipe .od-spotlight-slide.is-exit { animation: odFxSpotWipeOut 0.85s ease-in forwards; }

/* Staff Darpan — 3 staff per screen, passport portrait photo */
.od-darpan-panel {
    height: 100%;
    min-height: 0;
    padding: clamp(6px, 1vh, 12px);
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 42%, #312e81 100%);
    overflow: hidden;
    box-sizing: border-box;
}

.od-darpan-view {
    height: 100%;
    min-height: 0;
    position: relative;
}

.od-darpan-stage {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.od-darpan-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: clamp(4px, 0.6vh, 8px);
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.od-darpan-slide.is-visible {
    position: relative;
    inset: auto;
    height: 100%;
}

.od-darpan-slide.is-enter,
.od-darpan-slide.is-exit {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.od-darpan-slide.is-exit {
    z-index: 1;
}

.od-darpan-slide[hidden] {
    display: none !important;
}

.od-darpan-page {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 0.8vh, 0.55rem);
}

.od-darpan-page__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.3rem, 0.8vh, 0.5rem) clamp(0.65rem, 1.4vw, 1rem);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: clamp(0.68rem, 0.95vw, 0.82rem);
    flex: 0 0 auto;
}

.od-darpan-page__counter {
    font-variant-numeric: tabular-nums;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(0.72rem, 1vw, 0.88rem);
}

.od-darpan-page__pages {
    opacity: 0.75;
    font-size: 0.92em;
}

.od-darpan-row {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.45rem, 1vw, 0.75rem);
    align-items: stretch;
}

.od-darpan-card {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: clamp(10px, 1.2vw, 14px);
    overflow: hidden;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: clamp(0.45rem, 1vh, 0.65rem);
    color: #fff;
}

.od-darpan-card__hero {
    display: flex;
    flex-direction: column;
    gap: clamp(0.18rem, 0.35vh, 0.28rem);
    flex: 0 0 auto;
    position: relative;
    padding-right: clamp(2.1rem, 3vw, 2.5rem);
    margin-bottom: clamp(0.3rem, 0.55vh, 0.45rem);
}

.od-darpan-hero-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(0.4rem, 0.85vw, 0.65rem);
    min-width: 0;
}

.od-darpan-info-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.12rem, 0.28vh, 0.22rem);
    padding-top: 0.05rem;
}

.od-darpan-photo-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.od-darpan-serial {
    position: absolute;
    right: 0;
    top: 0;
    width: clamp(1.85rem, 2.6vw, 2.35rem);
    height: clamp(1.85rem, 2.6vw, 2.35rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.95rem, 1.35vw, 1.15rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, var(--od-darpan-accent, #fbbf24) 0%, color-mix(in srgb, var(--od-darpan-accent, #fbbf24) 65%, #000) 100%);
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.od-darpan-photo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

/* પાસપોર્ટ સાઇઝ — પોર્ટ્રેટ 35×45mm ≈ 7:9 */
.od-darpan-photo {
    position: relative;
    width: clamp(104px, 14.5vw, 152px);
    aspect-ratio: 35 / 45;
    flex: 0 0 auto;
    border-radius: 7px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
    border: 2px solid rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
}

.od-darpan-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.od-darpan-photo-ph {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    opacity: 0.45;
}

.od-darpan-jersey {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: clamp(0.14rem, 0.32vh, 0.22rem) 0.25rem;
    border-radius: 0;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #e89000 100%);
    color: #1c1917;
    font-weight: 800;
    font-size: clamp(0.68rem, 0.92vw, 0.8rem);
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.35);
    z-index: 2;
}

.od-darpan-name {
    margin: 0;
    font-size: clamp(0.95rem, 1.32vw, 1.14rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 0.25rem;
}

.od-darpan-role {
    margin: 0;
    font-size: clamp(0.74rem, 1vw, 0.88rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.od-darpan-stats {
    flex: 0 0 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: clamp(0.14rem, 0.32vw, 0.22rem);
    margin-top: clamp(0.12rem, 0.28vh, 0.2rem);
}

.od-darpan-stat {
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: clamp(0.12rem, 0.26vh, 0.18rem) clamp(0.22rem, 0.45vw, 0.32rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.02rem;
    min-width: 0;
}

.od-darpan-stat__val {
    font-weight: 800;
    font-size: clamp(0.72rem, 0.96vw, 0.84rem);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--od-darpan-accent, #38bdf8);
}

.od-darpan-stat__lbl {
    font-size: clamp(0.52rem, 0.68vw, 0.6rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.78;
    line-height: 1.1;
}

.od-darpan-details {
    flex: 1 1 0;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: clamp(0.18rem, 0.4vw, 0.28rem);
    overflow: hidden;
    align-content: stretch;
}

.od-darpan-detail {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    padding: clamp(0.2rem, 0.4vh, 0.3rem) clamp(0.32rem, 0.65vw, 0.48rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.08rem;
    min-width: 0;
    min-height: 0;
}

.od-darpan-detail__lbl {
    font-size: clamp(0.82rem, 1.12vw, 0.96rem);
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.od-darpan-detail__val {
    font-size: clamp(1.02rem, 1.38vw, 1.18rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.12;
}

.od-darpan-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 1.5rem;
}

.od-darpan-empty__title {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
}

.od-darpan-empty__hint {
    margin: 0;
    opacity: 0.75;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

.od-darpan-card--theme-0 { --od-darpan-accent: #38bdf8; }
.od-darpan-card--theme-1 { --od-darpan-accent: #a78bfa; }
.od-darpan-card--theme-2 { --od-darpan-accent: #34d399; }
.od-darpan-card--theme-3 { --od-darpan-accent: #fbbf24; }
.od-darpan-card--theme-4 { --od-darpan-accent: #fb7185; }
.od-darpan-card--theme-5 { --od-darpan-accent: #60a5fa; }

.od-darpan-card[class*="od-darpan-card--theme"] {
    border-top: 3px solid var(--od-darpan-accent);
}

.od-darpan-stage.fx-push-left {
    overflow: hidden;
}

.fx-push-left .od-darpan-slide.is-enter { animation: odFxSpotPushLeftIn 0.85s ease-out forwards; }
.fx-push-left .od-darpan-slide.is-exit { animation: odFxSpotPushLeftOut 0.85s ease-in forwards; }

@media (max-width: 900px) {
    .od-darpan-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.od-settings-gulab-wrap {
    margin-top: 0.5rem;
}

.od-settings-gulab-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.od-settings-gulab-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
}

.od-settings-gulab-item__name {
    font-weight: 700;
    flex: 1 1 auto;
    min-width: 0;
}

.od-settings-gulab-item__cls {
    font-size: 0.82rem;
    color: #64748b;
}

.od-settings-input {
    width: 100%;
    max-width: 100%;
    padding: 0.35rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
}

.od-student-combo {
    position: relative;
    width: 100%;
}

.od-student-combo__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 40;
    max-height: 280px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.od-student-combo__list.d-none {
    display: none !important;
}

.od-student-combo__item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
    padding: 0.42rem 0.55rem;
    font: inherit;
    cursor: pointer;
    color: #0f172a;
}

.od-student-combo__item:last-child {
    border-bottom: none;
}

.od-student-combo__item:hover,
.od-student-combo__item.od-student-combo__item--active {
    background: #f1f5f9;
}

.od-student-combo__item--hint {
    color: #64748b;
    cursor: default;
    font-weight: 600;
}

.od-student-combo__line1 {
    font-weight: 600;
    line-height: 1.3;
    font-size: 0.88rem;
}

/* Other panels placeholder */
.od-panel-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
}

.od-panel-placeholder h2 {
    margin: 0;
    color: var(--od-school-red);
}

/* Settings panel */
.od-settings-page {
    height: 100%;
    overflow-y: auto;
    padding: clamp(1rem, 2.5vw, 2rem);
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 45%, #f1f5f9 100%);
}

.od-settings-header {
    margin-bottom: 1.25rem;
}

.od-settings-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
    color: var(--digi-accent);
    letter-spacing: -0.02em;
}

.od-settings-sub {
    margin: 0;
    color: #64748b;
    font-size: clamp(0.85rem, 1.05vw, 0.95rem);
}

.od-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    max-width: 960px;
}

.od-settings-card--wide {
    grid-column: 1 / -1;
    max-width: 100%;
}

.od-settings-photo-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.35rem;
}

.od-settings-photo-side {
    flex: 0 1 260px;
    min-width: min(100%, 220px);
}

.od-settings-photo-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.od-settings-file {
    flex: 1 1 200px;
    font-size: 0.85rem;
}

.od-settings-photo-wrap {
    flex: 1 1 280px;
    min-width: min(100%, 200px);
    margin-top: 0;
}

.od-settings-photo-empty {
    margin: 0;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.od-settings-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.65rem;
}

.od-settings-photo-item {
    position: relative;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.od-settings-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.od-settings-photo-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 1.65rem;
    height: 1.65rem;
    border: none;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.od-settings-photo-del:hover {
    background: #b91c1c;
}

.od-settings-btn--primary {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.od-settings-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
}

.od-settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
}

.od-settings-card__head {
    margin: 0;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--digi-accent) 0%, var(--digi-accent-2) 100%);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.od-settings-card__head--grant {
    background: linear-gradient(135deg, #e89000 0%, #c76b00 100%);
}

.od-settings-card__body {
    padding: 1rem 1.15rem 1.1rem;
}

.od-settings-card__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--digi-accent);
}

.od-settings-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--digi-accent);
    font-size: 0.9rem;
}

.od-settings-field input[type="range"] {
    width: 100%;
    accent-color: var(--digi-accent);
}

.od-settings-status {
    min-height: 1.25rem;
    color: #64748b;
}

.od-settings-status:not(:empty) {
    color: var(--digi-accent);
    font-weight: 600;
}

/* Project button palette (Digi.Web સાથે સમાન) */
.od-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.od-btn--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.od-btn--sm {
    padding: 0.38rem 0.72rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

.od-btn svg {
    flex-shrink: 0;
    fill: currentColor;
}

.od-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

.btn-digi-save {
    background: linear-gradient(180deg, #2bb673 0%, #198754 100%);
    border-color: #157347;
    color: #fff;
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.35);
}

.btn-digi-save:hover:not(:disabled),
.btn-digi-save:focus:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(25, 135, 84, 0.42);
    color: #fff;
}

.btn-digi-update {
    background: linear-gradient(180deg, #157347 0%, #0f5132 100%);
    border-color: #0a3622;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 81, 50, 0.38);
}

.btn-digi-update:hover:not(:disabled),
.btn-digi-update:focus:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #fff;
}

.btn-digi-danger {
    background: linear-gradient(180deg, #e35d6a 0%, #b02a37 100%);
    border-color: #842029;
    color: #fff;
    box-shadow: 0 8px 20px rgba(176, 42, 55, 0.35);
}

.btn-digi-danger:hover:not(:disabled),
.btn-digi-danger:focus:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff;
}

.btn-digi-info {
    background: linear-gradient(180deg, #3d8bfd 0%, #0a58ca 100%);
    border-color: #084298;
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-digi-info:hover:not(:disabled),
.btn-digi-info:focus:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #fff;
}

.btn-digi-cancel {
    background: linear-gradient(180deg, #ff922b 0%, #e8590c 100%);
    border-color: #cc4e00;
    color: #fff;
    box-shadow: 0 6px 18px rgba(232, 89, 12, 0.32);
}

.btn-digi-cancel:hover:not(:disabled),
.btn-digi-cancel:focus:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #fff;
}

.od-settings-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
}

.od-settings-input:focus {
    outline: 2px solid rgba(138, 21, 48, 0.2);
    border-color: var(--digi-accent);
}

.od-settings-input--money {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.od-settings-grant-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.od-settings-grant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.od-settings-schinfo-wrap {
    margin: 0.5rem 0 0.75rem;
    max-height: min(42vh, 360px);
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
}

.od-settings-schinfo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.45rem 0.75rem;
}

.od-settings-check {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.od-settings-check input {
    margin-top: 0.15rem;
    accent-color: var(--digi-accent);
}

.od-settings-grant-wrap {
    margin-top: 0.85rem;
}

.od-settings-grant-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.od-settings-grant-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
}

.od-settings-grant-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.od-settings-grant-item__head strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.od-settings-grant-item__bal {
    font-size: 0.82rem;
    font-weight: 700;
    color: #166534;
    font-variant-numeric: tabular-nums;
}

.od-settings-grant-item__meta {
    font-size: 0.8rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.45rem;
}

.od-settings-grant-item__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.od-settings-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #64748b;
}

.od-settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

.od-settings-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.od-settings-toggle__ui {
    width: 2.6rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.od-settings-toggle__ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.od-settings-toggle input:checked + .od-settings-toggle__ui {
    background: linear-gradient(135deg, var(--digi-accent), #b42345);
}

.od-settings-toggle input:checked + .od-settings-toggle__ui::after {
    transform: translateX(1.15rem);
}

.od-settings-dl {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.35rem;
}

.od-settings-dl dt {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.od-settings-dl dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.od-settings-logout {
    margin: 0;
}

.od-settings-btn {
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.od-settings-btn--danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.od-settings-btn--danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.32);
}

/* Loading / error */
.board-loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
}

.board-loading[hidden] { display: none !important; }

.board-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top-color: var(--od-school-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.board-error {
    position: fixed;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    z-index: 90;
    font-size: 0.85rem;
}

/* ===== Login (light, unchanged structure) ===== */
.display-body:has(.display-login-page) { overflow: auto; }

.display-login-page { min-height: 100vh; }

.display-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.display-login-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(145deg, #fff9e6 0%, #ffff80 40%, #fff5f5 100%);
    border-right: 1px solid #ccc;
}

.display-login-visual-inner { max-width: 400px; text-align: center; }

.display-login-visual-icon { font-size: 3.5rem; display: block; margin-bottom: 0.75rem; }

.display-login-visual-title {
    margin: 0 0 0.5rem;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--od-school-red);
}

.display-login-visual-text { margin: 0; color: #555; line-height: 1.55; }

.display-login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}

.display-login-form-card { width: min(400px, 100%); }

.display-login-form-title {
    margin: 0 0 0.25rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--od-school-red);
}

.display-login-form-sub { margin: 0 0 1.5rem; color: #666; font-size: 0.92rem; }

.display-login-form { display: flex; flex-direction: column; gap: 1rem; }

.display-login-label { font-weight: 600; font-size: 0.9rem; color: var(--od-school-red); }

.display-login-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.display-login-input:focus {
    outline: 2px solid rgba(204, 0, 0, 0.2);
    border-color: var(--od-school-red);
}

.display-login-validation,
.display-login-field-error { color: #b91c1c; font-size: 0.85rem; }

.display-login-submit {
    padding: 0.85rem;
    border: none;
    border-radius: 6px;
    background: var(--od-school-red);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.display-login-footnote {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 1100px) {
    .od-board--cols,
    .od-board--grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        overflow-y: auto;
    }

    .od-board-col {
        min-height: 320px;
    }

    .od-grid-r1c1, .od-grid-r1c2, .od-grid-r1c3,
    .od-grid-r2c1, .od-grid-r2c2, .od-grid-r2c3,
    .od-grid-r3c3 {
        grid-column: 1;
        grid-row: auto;
        min-height: 320px;
    }
}

@media (max-width: 700px) {
    .display-login-shell { grid-template-columns: 1fr; }
    .od-menu { padding: 0.4rem 0.5rem; }
    .od-menu-item { padding: 0.38rem 0.75rem; }
    .od-menu-item--settings { margin-left: 0; }
}
