html {
  font-size: 14px;
}

:root {
  --digi-logo-bg: #fff3bf;
  --digi-accent: #8a1530;
  --digi-accent-2: #5a0b1b;
  --digi-focus-ring: rgba(138, 21, 48, 0.22);
}

@font-face {
  font-family: "Noto Sans Gujarati";
  src: url("/fonts/NotoSansGujarati-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Gujarati";
  src: url("/fonts/NotoSansGujarati-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Gujarati";
  src: url("/fonts/NotoSansGujarati-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ===== GR Entry modern form theme ===== */
.gr-entry-page .school-user-page-title {
  color: var(--digi-accent);
  letter-spacing: 0.2px;
}

.gr-entry-page .gr-entry-subtitle {
  color: rgba(90, 11, 27, 0.75);
}

.gr-entry-page .staff-doc-section-card.staff-doc-picker-card,
.gr-entry-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.gr-entry-page .staff-doc-section-card,
.gr-view-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.gr-entry-page .staff-doc-section-card .card-body,
.gr-view-page .staff-doc-section-card .card-body {
  background: #fff;
}

.gr-entry-page .staff-doc-section-card__head,
.gr-view-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.gr-entry-page .staff-doc-section-card__head--staff,
.gr-view-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.gr-entry-page .staff-doc-section-card__head--detail,
.gr-view-page .staff-doc-section-card__head--detail {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.gr-entry-page .staff-doc-section-card__head--codes,
.gr-view-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.gr-entry-page .staff-doc-section-card__head--list,
.gr-view-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.gr-entry-page .staff-doc-section-card__head--list .staff-doc-list-count,
.gr-view-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.35;
}

/* ???-????-??? ? sticky thead: rows ???? ??? ? ????? */
.avak-javak-hal-page .avak-javak-hal-scroll {
  padding: 0 !important;
  overflow: auto;
  isolation: isolate;
  -webkit-overflow-scrolling: touch;
}

.avak-javak-hal-page .avak-javak-hal-scroll .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}

.avak-javak-hal-page .avak-javak-hal-scroll .school-user-table thead th {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  background-clip: padding-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 2px 0 rgba(79, 10, 26, 0.22);
}

.avak-javak-hal-page .avak-javak-hal-scroll .school-user-table tbody td {
  position: static;
  z-index: auto;
}

/* વિદ્યાર્થી પ્રવેશ સમીક્ષા — sticky header grid + badges */
.student-adm-review-page .sar-scroll {
  padding: 0 !important;
  overflow: auto;
  isolation: isolate;
  -webkit-overflow-scrolling: touch;
  max-height: calc(3.35rem + 13 * 2.8125rem);
}

.student-adm-review-page .sar-scroll .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}

.student-adm-review-page .sar-scroll .school-user-table thead th {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  background-clip: padding-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  white-space: nowrap;
  vertical-align: middle;
}

.student-adm-review-page .sar-scroll .school-user-table tbody td {
  position: static;
  z-index: auto;
  vertical-align: top;
}

.student-adm-review-page .sar-row--mismatch td {
  background: #fff7f5;
}

.student-adm-review-page .sar-date-bad {
  color: #b02a37;
  font-weight: 700;
}

.sar-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0 0.2rem 0.2rem 0;
}

.sar-type-badge--opening { background: rgba(13, 110, 253, 0.1); color: #0a58ca; }
.sar-type-badge--new { background: rgba(25, 135, 84, 0.12); color: #146c43; }
.sar-type-badge--left { background: rgba(220, 53, 69, 0.12); color: #b02a37; }
.sar-type-badge--change { background: rgba(111, 66, 193, 0.12); color: #59359a; }
.sar-type-badge--pending { background: rgba(255, 193, 7, 0.2); color: #7a5b00; }

.student-adm-review-page .sar-issue-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: #b02a37;
  min-width: 16rem;
}

.student-adm-review-page .sar-chip {
  border: 1px solid #d9d2c7;
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3b2a1a;
  cursor: pointer;
}

.student-adm-review-page .sar-chip.is-active {
  border-color: var(--digi-accent);
  background: rgba(122, 31, 43, 0.08);
  color: var(--digi-accent);
}

.student-adm-review-page .sar-chip strong {
  margin-left: 0.25rem;
}

#sarFixModal .digi-info-modal__value .sar-type-badge {
  margin-bottom: 0;
}

#sarFixModal .sar-fix-issues {
  margin-bottom: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
  border: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.06);
  color: #7c2d12;
}

#sarFixModal .sar-fix-issues__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #b45309;
}

#sarFixModal .sar-issue-list {
  margin: 0;
  padding-left: 1.6rem;
  font-size: 0.86rem;
  font-weight: 600;
}

#sarFixModal .sar-fix-table {
  --bs-table-bg: transparent;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

#sarFixModal .sar-fix-table thead th {
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  padding: 0.55rem 0.6rem;
  vertical-align: middle;
}

#sarFixModal .sar-fix-table tbody td {
  vertical-align: middle;
  border-top: 1px solid rgba(138, 21, 48, 0.08);
  border-bottom: 0;
  padding: 0.5rem 0.6rem;
  background: #fff;
}

#sarFixModal .sar-fix-table tbody tr:nth-child(even) td {
  background: #fdf9fa;
}

#sarFixModal .sar-fix-table .gr-date-wrap {
  min-width: 10.5rem;
}

/* ??? ???? ? staff-doc section cards (gr-entry-page pattern) */
.leave-application-page .staff-doc-section-card.staff-doc-picker-card,
.leave-application-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
}

.leave-application-page .leave-app-field-locked {
  background-color: #e9ecef !important;
  cursor: not-allowed;
  color: #495057;
}

.leave-application-page .leave-refresh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}

.leave-application-page .leave-refresh-icon-btn:hover,
.leave-application-page .leave-refresh-icon-btn:focus {
  color: #fff;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1;
  transform: rotate(-90deg);
}

.leave-application-page .leave-refresh-icon-btn svg {
  fill: currentColor;
  display: block;
}

/* Do not add global @media print { body * { visibility:hidden } } ? it blanks all Print Preview pages. */

.gr-entry-page .gr-entry-form-card {
  box-shadow: 0 10px 28px rgba(35, 10, 16, 0.1);
  overflow: visible;
}

.gr-entry-page .gr-entry-form-card .card-body {
  overflow: visible;
}

/* GR એન્ટ્રી — જૂનો GR vs Digi ID lookup panels (અલગ રંગ) */
.gr-entry-page .gr-lookup-panel {
  position: relative;
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(35, 10, 16, 0.08);
  overflow: hidden;
}

.gr-entry-page .gr-lookup-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

.gr-entry-page .gr-lookup-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.gr-entry-page .gr-lookup-panel__badge svg {
  flex-shrink: 0;
}

.gr-entry-page .gr-lookup-panel__body {
  position: relative;
  z-index: 1;
}

.gr-entry-page .gr-lookup-panel__hint {
  color: inherit;
  opacity: 0.88;
  font-size: 0.86rem;
}

/* આ જ શાળા — જૂનો GR / પુનઃ પ્રવેશ (એમ્બર) */
.gr-entry-page .gr-lookup-panel--reentry {
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.92) 55%, rgba(253, 230, 138, 0.55) 100%);
  border-color: rgba(202, 138, 4, 0.35);
}

.gr-entry-page .gr-lookup-panel--reentry::before {
  background: linear-gradient(180deg, #ca8a04 0%, #eab308 55%, #facc15 100%);
}

.gr-entry-page .gr-lookup-panel--reentry .gr-lookup-panel__badge {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.25);
}

.gr-entry-page .gr-lookup-panel--reentry .form-label,
.gr-entry-page .gr-lookup-panel--reentry .form-check-label {
  color: #854d0e;
}

.gr-entry-page .gr-lookup-panel--reentry .gr-lookup-panel__hint {
  color: #92400e;
}

.gr-entry-page .gr-lookup-panel--reentry .form-control {
  border-color: rgba(202, 138, 4, 0.4);
  background-color: rgba(255, 255, 255, 0.92);
}

.gr-entry-page .gr-lookup-panel--reentry .form-control:focus {
  border-color: #ca8a04;
  box-shadow: 0 0 0 0.2rem rgba(234, 179, 8, 0.25);
}

/* બીજી Digi શાળા — Digi ID (ટીલ / સાયન) */
.gr-entry-page .gr-lookup-panel--digiid {
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.98) 0%, rgba(204, 251, 241, 0.9) 50%, rgba(153, 246, 228, 0.5) 100%);
  border-color: rgba(13, 148, 136, 0.35);
}

.gr-entry-page .gr-lookup-panel--digiid::before {
  background: linear-gradient(180deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
}

.gr-entry-page .gr-lookup-panel--digiid .gr-lookup-panel__badge {
  background: linear-gradient(125deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.28);
}

.gr-entry-page .gr-lookup-panel--digiid .form-label {
  color: #115e59;
}

.gr-entry-page .gr-lookup-panel--digiid .gr-lookup-panel__hint {
  color: #0f766e;
}

.gr-entry-page .gr-lookup-panel--digiid .form-control {
  border-color: rgba(13, 148, 136, 0.4);
  background-color: rgba(255, 255, 255, 0.92);
}

.gr-entry-page .gr-lookup-panel--digiid .form-control:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.25);
}

.gr-entry-page .gr-lookup-panel--digiid #btnDigiIdGetDetail {
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}

/* Digi ID transfer modals — backdrop + highlight so popup clearly visible */
body.gdi-modal-open .modal-backdrop {
  opacity: 0.72 !important;
  background-color: #0f172a !important;
}

.gdi-modal.gdi-modal--spotlight .modal-content,
.gdi-modal .gdi-modal__content {
  border: 2px solid rgba(13, 148, 136, 0.55);
  box-shadow:
    0 0 0 4px rgba(20, 184, 166, 0.18),
    0 18px 48px rgba(15, 23, 42, 0.35);
  outline: none;
}

.gdi-modal .gdi-school-row--active {
  background: rgba(254, 243, 199, 0.65);
}

.gdi-modal .gdi-school-active-note {
  color: #92400e;
  line-height: 1.35;
}

/* Gujarati name suggest ? custom dropdown (GrEntry, reusable) */
.digi-name-suggest-wrap {
  position: relative;
}

.digi-name-suggest-wrap--open {
  z-index: 1080;
}

.digi-name-suggest-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 1081;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 0;
  border-radius: 0.375rem;
  border: 1px solid rgba(35, 10, 16, 0.16);
  background-color: #fff;
  box-shadow: 0 10px 28px rgba(35, 10, 16, 0.2);
  list-style: none;
}

.digi-name-suggest-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  text-align: start;
  border: 0;
  border-bottom: 1px solid rgba(35, 10, 16, 0.06);
  background-color: #fff;
  color: rgba(35, 10, 16, 0.92);
  cursor: pointer;
}

.digi-name-suggest-item:last-child {
  border-bottom: 0;
}

.digi-name-suggest-item.active,
.digi-name-suggest-item:hover,
.digi-name-suggest-item:focus {
  background-color: rgba(128, 0, 32, 0.12);
  color: var(--digi-accent, #800020);
  outline: none;
}

.digi-name-suggest-wrap--combo .form-control {
  padding-right: 2.15rem;
}

.digi-name-suggest-chevron {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(35, 10, 16, 0.55);
  cursor: pointer;
  padding: 0;
}

.digi-name-suggest-chevron:hover {
  color: var(--digi-accent, #800020);
}

.gr-entry-page .gr-caption {
  font-size: 0.86rem;
  color: rgba(35, 10, 16, 0.62);
}

.gr-entry-page .form-control.input-validation-error,
.gr-entry-page .form-select.input-validation-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.2);
}

.gr-entry-page .field-validation-error {
    color: #dc3545;
    font-weight: 500;
}

.gr-entry-page .gr-req-mark {
    margin-left: 0.15rem;
}

.gr-entry-page .form-label {
  color: rgba(35, 10, 16, 0.82);
}

/* ===== Student Left Entry theme (maroon captions) ===== */
.student-left-entry-page .school-user-page-title,
.student-left-entry-page .form-label,
.student-left-entry-page .form-text,
.student-left-entry-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

.student-left-entry-page .staff-doc-section-card.staff-doc-picker-card,
.student-left-entry-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.student-left-entry-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.student-left-entry-page .staff-doc-section-card .card-body {
  background: #fff;
}

.student-left-entry-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.student-left-entry-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.student-left-entry-page .staff-doc-section-card__head--detail {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.student-left-entry-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

/* ===== Student roll number grid — drag reorder ===== */
.school-user-table--roll-grid .roll-drag-col {
  width: 2.5rem;
  min-width: 2.5rem;
  text-align: center;
  touch-action: none;
}

.school-user-table--roll-grid .roll-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: rgba(122, 31, 43, 0.72);
  cursor: grab;
  touch-action: none;
  line-height: 0;
}

.school-user-table--roll-grid .roll-drag-handle:hover,
.school-user-table--roll-grid .roll-drag-handle:focus-visible {
  background: rgba(122, 31, 43, 0.08);
  color: var(--digi-accent);
  outline: none;
}

.school-user-table--roll-grid.roll-grid-sorting,
.school-user-table--roll-grid.roll-grid-sorting * {
  user-select: none;
  cursor: grabbing !important;
}

.school-user-table--roll-grid tbody tr.is-roll-dragging,
.school-user-table--roll-grid tbody tr.is-roll-dragging td,
.school-user-table--roll-grid tbody tr.is-roll-dragging td * {
  pointer-events: none !important;
}

.school-user-table--roll-grid tbody tr.is-roll-dragging {
  opacity: 0.55;
  background: #fff6d8;
}

.school-user-table--roll-grid tbody tr.is-roll-drop-target td {
  box-shadow: inset 0 2px 0 0 var(--digi-accent);
}

/* ===== Student Class Upgrade ===== */
.student-class-upgrade-page .staff-doc-section-card__head,
.admission-form-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.student-class-upgrade-page .staff-doc-section-card__head--staff,
.admission-form-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.student-class-upgrade-page .staff-doc-section-card__head--list,
.admission-form-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.student-class-upgrade-page .staff-doc-section-card__head--list .staff-doc-list-count,
.admission-form-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.35;
}

.student-class-upgrade-page .scu-check-col {
  width: 2.75rem;
}

.student-class-upgrade-page .scu-auto-block-msg {
  color: #842029;
  font-weight: 600;
}

.student-class-upgrade-page #upgradeGrid .form-check-input {
  cursor: pointer;
}

/* ===== Student Import ===== */
.student-import-page .school-user-page-title,
.student-import-page .form-label,
.student-import-page .form-text {
  color: var(--digi-accent);
}

.student-import-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.student-import-page .staff-doc-section-card .card-body {
  background: #fff;
}

.student-import-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.student-import-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.student-import-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.student-import-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* ===== MDM ????? (section-card heading strips) ===== */
.mdm-patrak-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.mdm-patrak-page .staff-doc-section-card .card-body {
  background: #fff;
}

.mdm-patrak-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.mdm-patrak-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.mdm-patrak-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.mdm-patrak-page .school-user-page-title,
.mdm-patrak-page .form-label,
.mdm-patrak-page .form-text {
  color: var(--digi-accent) !important;
}

.mdm-patrak-page .mdm-sheet-checklist {
  max-height: 14rem;
  overflow-y: auto;
  background: #f8fafc !important;
}

.mdm-patrak-page .mdm-sheet-check {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mdm-patrak-page .mdm-sheet-check:last-child {
  border-bottom: 0;
}

/* ===== ??????? ?????? ??????? (section-card heading strips) ===== */
.sanitary-napkin-register-page .staff-doc-section-card.staff-doc-picker-card,
.sanitary-napkin-register-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
}

.sanitary-napkin-register-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.sanitary-napkin-register-page .staff-doc-section-card .card-body {
  background: #fff;
}

.sanitary-napkin-register-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.sanitary-napkin-register-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.sanitary-napkin-register-page .school-user-page-title,
.sanitary-napkin-register-page .form-label,
.sanitary-napkin-register-page .form-text {
  color: var(--digi-accent) !important;
}

.sanitary-napkin-register-page .san-napkin-sc-chk-list {
  max-height: min(42vh, 240px);
  overflow-y: auto;
  columns: 2;
  column-gap: 1.25rem;
}

@media (min-width: 992px) {
  .sanitary-napkin-register-page .san-napkin-sc-chk-list {
    columns: 3;
  }
}

.sanitary-napkin-register-page .san-napkin-period-fields .form-select {
  min-height: 2.625rem;
}

.sanitary-napkin-register-page .san-napkin-print-btn {
  min-height: 2.625rem;
}

/* ===== ???? ?????? ????? + ?????????? ???? ????? + ???? ????? (section-card + checked dropdown) ===== */
.parent-meeting-register-page .staff-doc-section-card.staff-doc-picker-card,
.parent-meeting-register-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.student-photo-list-page .staff-doc-section-card.staff-doc-picker-card,
.student-photo-list-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.guardian-consent-page .staff-doc-section-card.staff-doc-picker-card,
.guardian-consent-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.parent-meeting-register-page .staff-doc-section-card,
.student-photo-list-page .staff-doc-section-card,
.guardian-consent-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.parent-meeting-register-page .staff-doc-section-card.staff-doc-picker-card,
.student-photo-list-page .staff-doc-section-card.staff-doc-picker-card,
.guardian-consent-page .staff-doc-section-card.staff-doc-picker-card {
  overflow: visible;
}

.parent-meeting-register-page .staff-doc-section-card .card-body,
.student-photo-list-page .staff-doc-section-card .card-body,
.guardian-consent-page .staff-doc-section-card .card-body {
  background: #fff;
}

.parent-meeting-register-page .staff-doc-section-card__head,
.student-photo-list-page .staff-doc-section-card__head,
.guardian-consent-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  border-radius: 14px 14px 0 0;
}

.parent-meeting-register-page .staff-doc-section-card__head--staff,
.student-photo-list-page .staff-doc-section-card__head--staff,
.guardian-consent-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.guardian-consent-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.parent-meeting-register-page .school-user-page-title,
.parent-meeting-register-page .form-label,
.parent-meeting-register-page .form-text,
.student-photo-list-page .school-user-page-title,
.student-photo-list-page .form-label,
.student-photo-list-page .form-text,
.guardian-consent-page .school-user-page-title,
.guardian-consent-page .form-label,
.guardian-consent-page .form-text {
  color: var(--digi-accent) !important;
}

/* ===== ??.??. ??? / ??? / ??? ???? ??? / ?????? ??? ????? (section-card heading strips) ===== */
.lc-avak-register-page .staff-doc-section-card.staff-doc-picker-card,
.lc-avak-register-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.lc-javak-register-page .staff-doc-section-card.staff-doc-picker-card,
.lc-javak-register-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.leave-avak-register-page .staff-doc-section-card.staff-doc-picker-card,
.leave-avak-register-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.shikshak-raja-patrak-page .staff-doc-section-card.staff-doc-picker-card,
.shikshak-raja-patrak-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
}

.lc-avak-register-page .staff-doc-section-card,
.lc-javak-register-page .staff-doc-section-card,
.leave-avak-register-page .staff-doc-section-card,
.shikshak-raja-patrak-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.lc-avak-register-page .staff-doc-section-card.staff-doc-picker-card,
.lc-javak-register-page .staff-doc-section-card.staff-doc-picker-card,
.leave-avak-register-page .staff-doc-section-card.staff-doc-picker-card,
.shikshak-raja-patrak-page .staff-doc-section-card.staff-doc-picker-card {
  overflow: visible;
}

.lc-avak-register-page .staff-doc-section-card .card-body,
.lc-javak-register-page .staff-doc-section-card .card-body,
.leave-avak-register-page .staff-doc-section-card .card-body,
.shikshak-raja-patrak-page .staff-doc-section-card .card-body {
  background: #fff;
}

.lc-avak-register-page .staff-doc-section-card__head,
.lc-javak-register-page .staff-doc-section-card__head,
.leave-avak-register-page .staff-doc-section-card__head,
.shikshak-raja-patrak-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  border-radius: 14px 14px 0 0;
}

.lc-avak-register-page .staff-doc-section-card__head--staff,
.lc-javak-register-page .staff-doc-section-card__head--staff,
.leave-avak-register-page .staff-doc-section-card__head--staff,
.shikshak-raja-patrak-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.shikshak-raja-patrak-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.shikshak-raja-patrak-page .staff-doc-section-card__head--list .staff-doc-list-count {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.92;
}

.lc-avak-register-page .school-user-page-title,
.lc-avak-register-page .form-label,
.lc-avak-register-page .form-text,
.lc-javak-register-page .school-user-page-title,
.lc-javak-register-page .form-label,
.lc-javak-register-page .form-text,
.leave-avak-register-page .school-user-page-title,
.leave-avak-register-page .form-label,
.leave-avak-register-page .form-text,
.shikshak-raja-patrak-page .school-user-page-title,
.shikshak-raja-patrak-page .form-label,
.shikshak-raja-patrak-page .form-text {
  color: var(--digi-accent) !important;
}

.lc-avak-register-page .lc-register-setup-fields .form-control,
.lc-javak-register-page .lc-register-setup-fields .form-control,
.leave-avak-register-page .lc-register-setup-fields .form-control,
.leave-avak-register-page .lc-register-setup-fields .form-select,
.shikshak-raja-patrak-page .lc-register-setup-fields .form-control,
.shikshak-raja-patrak-page .lc-register-setup-fields .form-select {
  min-height: 2.625rem;
}

.shikshak-raja-patrak-page .leave-type--ml {
  color: #c62828 !important;
  font-weight: 700;
}

.shikshak-raja-patrak-page .leave-type--blo-vl {
  color: #1565c0 !important;
  font-weight: 700;
}

.leave-row--nocount > td {
  background-color: #f3e5f5;
}

.leave-type--nocount {
  color: #6a1b9a !important;
  font-weight: 700;
}

.leave-type-badge--nocount {
  background: #f3e5f5 !important;
  color: #6a1b9a !important;
  border: 1px solid #ce93d8 !important;
}

.dash-staff-leave-card-item--nocount .dash-staff-leave-card-item__type {
  color: #6a1b9a;
  font-weight: 700;
}

.shikshak-raja-patrak-page .leave-type--nocount {
  color: #6a1b9a !important;
  font-weight: 700;
}

.shikshak-raja-patrak-page .shikshak-raja-summary-table {
  max-width: 32rem;
}
.shikshak-raja-patrak-page .shikshak-raja-summary-table th:nth-child(2),
.shikshak-raja-patrak-page .shikshak-raja-summary-table th:nth-child(3),
.shikshak-raja-patrak-page .shikshak-raja-summary-table td:nth-child(2),
.shikshak-raja-patrak-page .shikshak-raja-summary-table td:nth-child(3) {
  width: 6.5rem;
}

/* ===== WhatsApp Send ? staff-doc section cards (Bonafide / digi-school-card-section-headings) ===== */
.whatsapp-send-page .staff-doc-section-card.staff-doc-picker-card,
.whatsapp-send-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.whatsapp-send-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.10);
}

.whatsapp-send-page .staff-doc-section-card.staff-doc-picker-card {
  overflow: visible;
}

.whatsapp-send-page .staff-doc-section-card .card-body {
  background: #fff;
}

.whatsapp-send-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.whatsapp-send-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.whatsapp-send-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.whatsapp-send-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.whatsapp-send-page .school-user-page-title,
.whatsapp-send-page .form-label,
.whatsapp-send-page .form-text,
.whatsapp-send-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

/* ===== WhatsApp Setting ? staff-doc cards + modern switches / status chips ===== */
.whatsapp-setting-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.10);
}

.whatsapp-setting-page .staff-doc-section-card .card-body {
  background: #fff;
}

.whatsapp-setting-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.whatsapp-setting-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.whatsapp-setting-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.whatsapp-setting-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.whatsapp-setting-page .school-user-page-title,
.whatsapp-setting-page .form-label,
.whatsapp-setting-page .form-text,
.whatsapp-setting-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

.whatsapp-setting-page .wa-setting-status {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.whatsapp-setting-page .wa-setting-status--on {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(25, 135, 84, 0.03) 100%);
  border-color: rgba(25, 135, 84, 0.28);
}

.whatsapp-setting-page .wa-setting-status--off {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.14) 0%, rgba(255, 193, 7, 0.04) 100%);
  border-color: rgba(180, 130, 0, 0.28);
}

.whatsapp-setting-page .wa-setting-status__dot {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.whatsapp-setting-page .wa-setting-status--on .wa-setting-status__dot {
  background: #198754;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18);
}

.whatsapp-setting-page .wa-setting-status--off .wa-setting-status__dot {
  background: #d39e00;
  box-shadow: 0 0 0 3px rgba(211, 158, 0, 0.2);
}

.whatsapp-setting-page .wa-setting-status__title {
  font-weight: 800;
  font-size: 1rem;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.whatsapp-setting-page .wa-setting-status__hint {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5563;
}

.whatsapp-setting-page .wa-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid rgba(18, 38, 63, 0.08);
}

.whatsapp-setting-page .wa-setting-row--last {
  border-bottom: 0;
}

.whatsapp-setting-page .wa-setting-row__text {
  min-width: 0;
  flex: 1 1 auto;
}

.whatsapp-setting-page .wa-setting-row__title {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--digi-accent);
  cursor: pointer;
}

.whatsapp-setting-page .wa-setting-row__hint {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #6b7280;
}

.school-setting-page .school-setting-option {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.school-setting-page .school-setting-option--on {
  border-color: rgba(122, 31, 43, 0.35);
  background: #fdf7f8;
}

.school-setting-page .school-setting-option__title {
  font-weight: 700;
  color: var(--digi-accent);
}

.school-setting-page .school-setting-option__hint {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: #6b7280;
}

.whatsapp-setting-page .wa-setting-switch.form-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  margin: 0;
  flex: 0 0 auto;
}

.whatsapp-setting-page .wa-setting-switch .form-check-input {
  float: none;
  margin: 0;
  width: 3.1rem;
  height: 1.65rem;
  cursor: pointer;
  background-color: rgba(108, 117, 125, 0.38);
  border-color: rgba(108, 117, 125, 0.45);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-position: left center;
  background-size: 1.25rem;
  transition: background-position 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-setting-page .wa-setting-switch .form-check-input:checked {
  background-color: #198754;
  border-color: #157347;
  background-position: right center;
}

.whatsapp-setting-page .wa-setting-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.22rem rgba(25, 135, 84, 0.18);
}

.whatsapp-setting-page .wa-setting-switch .form-check-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.whatsapp-setting-page .wa-setting-section-lead {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--digi-accent);
}

.whatsapp-setting-page .wa-setting-row--section-intro {
  background: rgba(128, 0, 32, 0.03);
  align-items: flex-start;
}

.whatsapp-setting-page .wa-setting-code {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #374151;
  background: rgba(18, 38, 63, 0.08);
  vertical-align: middle;
}

.whatsapp-setting-page .wa-setting-select {
  max-width: 28rem;
  border-radius: 10px;
}

@media (max-width: 575.98px) {
  .whatsapp-setting-page .wa-setting-row {
    align-items: flex-start;
  }
}

/* ===== WhatsApp Billing ? staff-doc section cards (WhatsApp Send / digi-school-card-section-headings) ===== */
.whatsapp-billing-page .staff-doc-section-card.staff-doc-picker-card,
.whatsapp-billing-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.whatsapp-billing-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.10);
}

.whatsapp-billing-page .staff-doc-section-card.staff-doc-picker-card {
  overflow: visible;
}

.whatsapp-billing-page .staff-doc-section-card .card-body {
  background: #fff;
}

.whatsapp-billing-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.whatsapp-billing-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.whatsapp-billing-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.whatsapp-billing-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.whatsapp-billing-page .staff-doc-section-card__head--list .staff-doc-list-count,
.whatsapp-billing-page .staff-doc-section-card__head--codes .staff-doc-list-count {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.95;
}

.whatsapp-billing-page .school-user-page-title,
.whatsapp-billing-page .form-label,
.whatsapp-billing-page .form-text,
.whatsapp-billing-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

/* ===== WhatsApp History ? section cards + KPI (UDISE+/Scholarship summary shell) ===== */
.whatsapp-history-page .staff-doc-section-card.staff-doc-picker-card,
.whatsapp-history-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.whatsapp-history-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.10);
}

.whatsapp-history-page .staff-doc-section-card.staff-doc-picker-card {
  overflow: visible;
}

.whatsapp-history-page .staff-doc-section-card .card-body {
  background: #fff;
}

.whatsapp-history-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.whatsapp-history-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.whatsapp-history-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.whatsapp-history-page .staff-doc-section-card__head--list .staff-doc-list-count {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.95;
}

.whatsapp-history-page .school-user-page-title,
.whatsapp-history-page .form-label,
.whatsapp-history-page .form-text,
.whatsapp-history-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

/* Compact single-line KPI strip */
.whatsapp-history-page .wa-history-kpi-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.whatsapp-history-page .wa-history-kpi {
  flex: 1 1 0;
  min-width: 6.25rem;
  max-width: 10.5rem;
  border: 0;
  border-radius: 10px;
  padding: 0.4rem 0.5rem 0.45rem;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 38, 63, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, outline 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.whatsapp-history-page .wa-history-kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.16);
}

.whatsapp-history-page .wa-history-kpi.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18), 0 6px 16px rgba(18, 38, 63, 0.18);
}

.whatsapp-history-page .wa-history-kpi__label {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whatsapp-history-page .wa-history-kpi__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.whatsapp-history-page .wa-history-kpi__sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.8;
  text-transform: uppercase;
}

.whatsapp-history-page .wa-history-kpi--total { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.whatsapp-history-page .wa-history-kpi--ok { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.whatsapp-history-page .wa-history-kpi--fail { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.whatsapp-history-page .wa-history-kpi--att { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.whatsapp-history-page .wa-history-kpi--continuous { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.whatsapp-history-page .wa-history-kpi--visit { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.whatsapp-history-page .wa-history-kpi--custom { background: linear-gradient(135deg, #0f766e 0%, #115e59 100%); }
.whatsapp-history-page .wa-history-kpi--birthday { background: linear-gradient(135deg, #db2777 0%, #9d174d 100%); }

.whatsapp-history-page .wa-hist-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.2;
  min-width: 6.5rem;
}
.whatsapp-history-page .wa-hist-status__label {
  font-weight: 700;
  font-size: 0.9rem;
}
.whatsapp-history-page .wa-hist-status__at {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}
.whatsapp-history-page .wa-hist-status--ok .wa-hist-status__label {
  color: #15803d;
}
.whatsapp-history-page .wa-hist-status--fail .wa-hist-status__label {
  color: #b91c1c;
}
.whatsapp-history-page .wa-hist-status--neutral .wa-hist-status__label {
  color: #334155;
}
.whatsapp-history-page #waHistoryTabulator .tabulator-col .tabulator-col-title {
  white-space: normal;
  line-height: 1.2;
  font-size: 0.82rem;
}

@media (max-width: 991.98px) {
  .whatsapp-history-page .wa-history-kpi-strip {
    flex-wrap: nowrap;
  }
  .whatsapp-history-page .wa-history-kpi {
    flex: 0 0 auto;
    min-width: 6.25rem;
  }
}

.parent-meeting-register-page .parent-meeting-setup-fields .form-control,
.parent-meeting-register-page .parent-meeting-setup-fields .form-select,
.parent-meeting-register-page .digi-check-dd__btn,
.student-photo-list-page .stu-photo-list-setup-fields .form-select,
.student-photo-list-page .digi-check-dd__btn,
.whatsapp-send-page .digi-check-dd__btn,
.guardian-consent-page .digi-check-dd__btn,
.health-check-report-page .health-check-setup-fields .form-control,
.health-check-report-page .health-check-setup-fields .form-select,
.health-check-report-page .digi-check-dd__btn,
.parakh-report-page .digi-check-dd__btn {
  min-height: 2.625rem;
}

.parent-meeting-register-page .digi-check-dd,
.student-photo-list-page .digi-check-dd,
.whatsapp-send-page .digi-check-dd,
.guardian-consent-page .digi-check-dd,
.health-check-report-page .digi-check-dd,
.parakh-report-page .digi-check-dd {
  position: relative;
  width: 100%;
}

.parent-meeting-register-page .digi-check-dd__btn,
.student-photo-list-page .digi-check-dd__btn,
.whatsapp-send-page .digi-check-dd__btn,
.guardian-consent-page .digi-check-dd__btn,
.health-check-report-page .digi-check-dd__btn,
.parakh-report-page .digi-check-dd__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  background-image: none !important;
}

.parent-meeting-register-page .digi-check-dd__btn::after,
.student-photo-list-page .digi-check-dd__btn::after,
.whatsapp-send-page .digi-check-dd__btn::after,
.guardian-consent-page .digi-check-dd__btn::after,
.health-check-report-page .digi-check-dd__btn::after,
.parakh-report-page .digi-check-dd__btn::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.25rem;
  opacity: 0.65;
}

.parent-meeting-register-page .digi-check-dd__menu,
.student-photo-list-page .digi-check-dd__menu,
.whatsapp-send-page .digi-check-dd__menu,
.guardian-consent-page .digi-check-dd__menu,
.health-check-report-page .digi-check-dd__menu,
.parakh-report-page .digi-check-dd__menu {
  width: 100%;
  max-height: min(22rem, 70vh);
  overflow: hidden;
  padding: 0.5rem !important;
}

.parent-meeting-register-page .digi-check-dd__menu.show,
.student-photo-list-page .digi-check-dd__menu.show,
.whatsapp-send-page .digi-check-dd__menu.show,
.guardian-consent-page .digi-check-dd__menu.show,
.health-check-report-page .digi-check-dd__menu.show,
.parakh-report-page .digi-check-dd__menu.show {
  display: flex;
  flex-direction: column;
}

.parent-meeting-register-page .digi-check-dd__list,
.student-photo-list-page .digi-check-dd__list,
.whatsapp-send-page .digi-check-dd__list,
.guardian-consent-page .digi-check-dd__list,
.health-check-report-page .digi-check-dd__list,
.parakh-report-page .digi-check-dd__list {
  overflow-y: auto;
  max-height: 16rem;
  padding: 0.15rem 0.35rem;
  flex: 1 1 auto;
}

.parent-meeting-register-page .digi-check-dd__label-text,
.student-photo-list-page .digi-check-dd__label-text,
.whatsapp-send-page .digi-check-dd__label-text,
.guardian-consent-page .digi-check-dd__label-text,
.health-check-report-page .digi-check-dd__label-text,
.parakh-report-page .digi-check-dd__label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.parent-meeting-register-page .digi-check-dd__label-text.is-placeholder,
.student-photo-list-page .digi-check-dd__label-text.is-placeholder,
.whatsapp-send-page .digi-check-dd__label-text.is-placeholder,
.guardian-consent-page .digi-check-dd__label-text.is-placeholder,
.health-check-report-page .digi-check-dd__label-text.is-placeholder,
.parakh-report-page .digi-check-dd__label-text.is-placeholder {
  color: #6c757d;
  font-weight: 400;
}

/* ===== ??? ??????? (section-card heading strips) ===== */
.cont-absent-page .staff-doc-section-card.staff-doc-picker-card,
.cont-absent-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.cont-absent-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.cont-absent-page .staff-doc-section-card .card-body {
  background: #fff;
}

.cont-absent-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.cont-absent-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.cont-absent-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.cont-absent-page .school-user-page-title,
.cont-absent-page .form-label,
.cont-absent-page .form-text,
.cont-absent-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

.cont-absent-page .cont-absent-mile-th {
  width: 5.5rem;
}

.cont-absent-page .cont-absent-cell {
  text-align: center;
  vertical-align: middle;
}

.cont-absent-page .cont-absent-cell--yes {
  background-color: #198754;
}

.cont-absent-page .cont-absent-ywrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cont-absent-page .cont-absent-y {
  font-weight: 700;
  color: #fff;
}

.cont-absent-page .cont-absent-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  line-height: 0;
}

.cont-absent-page .cont-absent-iconbtn:hover {
  background: #fff;
}

.cont-absent-page .cont-absent-iconbtn--print {
  color: #0d6efd;
}

.cont-absent-page .cont-absent-iconbtn--wa {
  color: #25d366;
}

.cont-absent-page .cont-absent-cell--reached {
  color: #6c757d;
}

.cont-absent-page .cont-absent-days {
  font-weight: 700;
}

/* ===== ????? ???? ?????? (section-card heading strips ? cont-absent pattern) ===== */
.ca-generated-page .staff-doc-section-card.staff-doc-picker-card,
.ca-generated-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.ca-generated-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.ca-generated-page .staff-doc-section-card .card-body {
  background: #fff;
}

.ca-generated-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.ca-generated-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.ca-generated-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.ca-generated-page .school-user-page-title,
.ca-generated-page .form-label,
.ca-generated-page .form-text,
.ca-generated-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

.ca-generated-page .school-user-toolbar {
  padding: 0.75rem 1.15rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* ===== Bonafide theme (maroon card headings + captions) ===== */
.bonafide-page .school-user-page-title,
.bonafide-page .form-label,
.bonafide-page .form-text,
.bonafide-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

.lc-app-page .school-user-page-title,
.lc-app-page .form-label,
.lc-app-page .form-text,
.lc-app-page .text-dark-brown {
  color: var(--digi-accent) !important;
}

.lc-app-page .staff-doc-section-card.staff-doc-picker-card,
.lc-app-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.lc-app-page .card,
.lc-app-page .staff-doc-section-card,
.lc-app-page #stuDetailCard,
.lc-app-page #lcGenerateCard,
.lc-app-page #lcGridCard {
  border-radius: 0 !important;
}

.lc-app-page .staff-doc-section-card {
  border: 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.10);
}

.lc-app-page #lcGenerateCard .card-body {
  overflow: visible;
  position: relative;
}

.lc-app-page #lcTakenByWrap {
  position: relative;
  z-index: 2;
}

.lc-app-page #lcTakenByList {
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.lc-app-page .staff-doc-section-card .card-body {
  background: #fff;
}

.lc-app-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.lc-app-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.lc-app-page .staff-doc-section-card__head--detail {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.lc-app-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.lc-app-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.bonafide-page .staff-doc-section-card.staff-doc-picker-card,
.bonafide-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.bonafide-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.bonafide-page .staff-doc-section-card .card-body {
  background: #fff;
}

.bonafide-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.bonafide-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.bonafide-page .staff-doc-section-card__head--detail {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.bonafide-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.bonafide-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.bonafide-page .stu-quick-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}
.bonafide-page .stu-quick-photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 5.5rem;
}
.bonafide-page .stu-quick-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(138, 21, 48, 0.18);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.bonafide-page .stu-quick-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #8a1530;
  background: #faf4f6;
  border-style: dashed;
}

/* ===== Spardha Master Entry ===== */
.spardha-master-page .school-user-page-title {
  color: var(--digi-accent);
}

.spardha-master-page .spardha-std-picker,
.pariksha-entry-page .spardha-std-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(145deg, #faf7f8 0%, #f5eef0 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 12px;
}

.spardha-master-page .spardha-std-chip,
.pariksha-entry-page .spardha-std-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.spardha-master-page .spardha-std-chip input,
.pariksha-entry-page .spardha-std-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.spardha-master-page .spardha-std-chip span,
.pariksha-entry-page .spardha-std-chip span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 21, 48, 0.18);
  background: #fff;
  color: rgba(90, 11, 27, 0.78);
  transition: all 0.14s ease;
  white-space: nowrap;
}

.spardha-master-page .spardha-std-chip:hover span,
.pariksha-entry-page .spardha-std-chip:hover span {
  border-color: rgba(138, 21, 48, 0.35);
  background: #fff8fa;
}

.spardha-master-page .spardha-std-chip input:checked + span,
.pariksha-entry-page .spardha-std-chip input:checked + span {
  background: linear-gradient(135deg, #8a1530 0%, #b01b34 100%);
  border-color: #8a1530;
  color: #fff;
  box-shadow: 0 2px 8px rgba(138, 21, 48, 0.22);
}

/* PA પરીક્ષા એન્ટ્રી / હાજરી કૅલેન્ડર — શાળા multi-select (visible checkboxes) */
.pariksha-entry-page .pa-pariksha-school-list,
.attn-calendar-page .pa-pariksha-school-list {
  background: #fff;
}

.pariksha-entry-page .pa-pariksha-school-row,
.attn-calendar-page .pa-pariksha-school-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.pariksha-entry-page .pa-pariksha-school-row:hover,
.attn-calendar-page .pa-pariksha-school-row:hover {
  background: #f8f1f3;
}

.pariksha-entry-page .pa-pariksha-school-row .js-school-check,
.pariksha-entry-page .pa-pariksha-school-row .js-bulk-school-check,
.attn-calendar-page .pa-pariksha-school-row .js-school-check {
  position: static;
  float: none;
  opacity: 1;
  pointer-events: auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: #8a1530;
  cursor: pointer;
}

.pariksha-entry-page .pa-pariksha-school-text,
.attn-calendar-page .pa-pariksha-school-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}

.spardha-master-page .spardha-max-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--digi-accent);
  background: #fdf2f4;
  border-color: rgba(138, 21, 48, 0.15);
}

.spardha-master-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.spardha-master-page .spardha-list-body {
  background: #fff;
}

.spardha-master-page .spardha-list-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

.spardha-master-page .spardha-list-grid-wrap {
  padding-top: 0.75rem !important;
}

/* ===== PA SCE ? Standard-Subject Allocation (school-user-page card rules) ===== */
.std-subject-alloc-page.school-user-page .staff-doc-section-card__head--list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.std-subject-alloc-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.std-subject-alloc-page .ssa-chip-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(145deg, #faf7f8 0%, #f5eef0 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 12px;
}

.std-subject-alloc-page .ssa-chip-picker--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.std-subject-alloc-page .ssa-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.std-subject-alloc-page .ssa-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.std-subject-alloc-page .ssa-chip span {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 21, 48, 0.18);
  background: #fff;
  color: rgba(90, 11, 27, 0.82);
  transition: all 0.14s ease;
  line-height: 1.2;
}

.std-subject-alloc-page .ssa-chip:not(.ssa-chip--medium):not(.ssa-chip--subject) span {
  flex-direction: row;
  align-items: center;
}

.std-subject-alloc-page .ssa-chip--medium span strong {
  font-size: 0.82rem;
}

.std-subject-alloc-page .ssa-chip--medium span small,
.std-subject-alloc-page .ssa-chip--subject span small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
}

.std-subject-alloc-page .ssa-chip:hover span {
  border-color: rgba(138, 21, 48, 0.35);
  background: #fff8fa;
}

.std-subject-alloc-page .ssa-chip.is-on span,
.std-subject-alloc-page .ssa-chip input:checked + span {
  background: linear-gradient(135deg, #8a1530 0%, #b01b34 100%);
  border-color: #8a1530;
  color: #fff;
  box-shadow: 0 2px 8px rgba(138, 21, 48, 0.22);
}

.std-subject-alloc-page .ssa-chip.is-on span small,
.std-subject-alloc-page .ssa-chip input:checked + span small {
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.92);
}

.std-subject-alloc-page .ssa-chip--subject span {
  border-radius: 12px;
  min-width: 8.5rem;
  padding: 0.45rem 0.85rem;
}

.std-subject-alloc-page .ssa-chip--subject.is-allocated {
  cursor: not-allowed;
  opacity: 0.55;
}

.std-subject-alloc-page .ssa-chip--subject.is-allocated span {
  background: #f0f0f0;
  border-color: #d0d0d0;
  color: #666;
  box-shadow: none;
}

.std-subject-alloc-page .ssa-chip-picker--subjects {
  max-height: 280px;
  overflow-y: auto;
}

.std-subject-alloc-page .ssa-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--digi-accent);
  background: #fdf2f4;
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
}

.std-subject-alloc-page .ssa-empty-hint {
  text-align: center;
  padding: 1.75rem 1rem;
  color: #6c757d;
  background: linear-gradient(145deg, #faf7f8 0%, #f5eef0 100%);
  border: 1px dashed rgba(138, 21, 48, 0.2);
  border-radius: 12px;
}

.std-subject-alloc-page .ssa-edit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.std-subject-alloc-page .ssa-pill {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(138, 21, 48, 0.15);
  color: rgba(90, 11, 27, 0.85);
}

.std-subject-alloc-page .ssa-pill--accent {
  background: linear-gradient(135deg, #8a1530 0%, #b01b34 100%);
  border-color: #8a1530;
  color: #fff;
}

.std-subject-alloc-page .ssa-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(145deg, #faf7f8 0%, #f5eef0 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 12px;
}

.std-subject-alloc-page .ssa-switch .form-check-input {
  width: 2.4em;
  height: 1.25em;
  cursor: pointer;
}

.std-subject-alloc-page .ssa-switch .form-check-input:checked {
  background-color: #8a1530;
  border-color: #8a1530;
}

.std-subject-alloc-page .ssa-list-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

.std-subject-alloc-page .ssa-std-badge {
  display: inline-block;
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8a1530 0%, #b01b34 100%);
  color: #fff;
}

/* ===== ??????????????? ? ???? / ??????? ??????? (Spardha list ????) ===== */
.vehicle-entry-page .staff-doc-section-card__head--list .staff-doc-list-count,
.driver-entry-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.vehicle-entry-page .transport-list-body,
.driver-entry-page .transport-list-body {
  background: #fff;
}

.vehicle-entry-page .transport-list-toolbar,
.driver-entry-page .transport-list-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

.vehicle-entry-page .transport-list-grid-wrap,
.driver-entry-page .transport-list-grid-wrap {
  padding-top: 0.75rem !important;
}

/* ===== ??????????? ?? ??????? ???? ? sticky name + header ===== */
.scholarship-not-recv-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.scholarship-not-recv-page .snr-list-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

.scholarship-not-recv-page .snr-list-grid-wrap {
  /* scroll ??? ?? ?????? padding ???? ? sticky header bleed ???? */
  padding: 0 !important;
  margin: 0 0 0.75rem;
  overflow: auto;
  isolation: isolate;
}

.scholarship-not-recv-page .snr-list-grid-wrap .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
  margin: 0 1rem;
}

.scholarship-not-recv-page #snrGrid.digi-grid-table--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 100;
  background-clip: padding-box;
  background-color: #7a1029;
  background-image: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transform: translateZ(0);
}

.scholarship-not-recv-page #snrGrid thead th.snr-th-chk .form-check-input {
  background-color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.scholarship-not-recv-page #snrGrid thead th.snr-th-chk.digi-grid-freeze-col {
  left: 0;
  z-index: 111;
  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  background-color: #7a1029 !important;
  background-image: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  color: #fff !important;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.12);
}

.scholarship-not-recv-page #snrGrid tbody td.snr-td-chk.digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  background: #fff;
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 rgba(138, 21, 48, 0.08);
}

.scholarship-not-recv-page #snrGrid tbody tr:nth-child(even) td.snr-td-chk.digi-grid-freeze-col {
  background: #faf5f3;
}

.scholarship-not-recv-page #snrGrid thead th.snr-th-name.digi-grid-freeze-col {
  left: 2.5rem;
  z-index: 110;
  width: 8rem;
  min-width: 8rem;
  max-width: 8rem;
  background-color: #7a1029 !important;
  background-image: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  color: #fff !important;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.12), 2px 0 6px rgba(90, 11, 27, 0.28);
}

.scholarship-not-recv-page #snrGrid tbody td.snr-td-name.digi-grid-freeze-col {
  position: sticky;
  left: 2.5rem;
  z-index: 2;
  width: 8rem;
  min-width: 8rem;
  max-width: 8rem;
  background: #fff;
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 rgba(138, 21, 48, 0.08), 2px 0 6px rgba(138, 21, 48, 0.1);
  white-space: normal;
  word-break: break-word;
  font-size: 0.88rem;
  line-height: 1.25;
}

.scholarship-not-recv-page #snrGrid tbody tr:nth-child(even) td.snr-td-name.digi-grid-freeze-col {
  background: #faf5f3;
}

/* ===== ધોરણ ૮ થી ૯ પ્રવેશ ===== */
.std89-admission-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.std89-admission-page .school-user-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

.std89-admission-page .std89-list-grid-wrap {
  padding: 0 !important;
  margin: 0 0 0.75rem;
  overflow: auto;
  isolation: isolate;
}

.std89-admission-page .std89-list-grid-wrap .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
  margin: 0 1rem;
}

.std89-admission-page #std89Grid.digi-grid-table--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 100;
  background-clip: padding-box;
  transform: translateZ(0);
}

.std89-admission-page #std89Grid thead th.digi-grid-freeze-col {
  left: 0;
  z-index: 110;
  background-color: #7a1029 !important;
  background-image: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  color: #fff !important;
}

.std89-admission-page #std89Grid tbody td.digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 rgba(138, 21, 48, 0.08), 2px 0 6px rgba(138, 21, 48, 0.1);
}

.std89-admission-page #std89Grid tbody tr:nth-child(even) td.digi-grid-freeze-col {
  background: #faf5f3;
}

.std89-admission-page #std89Grid .form-control-sm {
  min-width: 8rem;
}

.std89-admission-page .std89-combo {
  min-width: 12rem;
}

.std89-admission-page .std89-combo .digi-combo-input {
  padding-right: 1.85rem;
}

.std89-combo-panel {
  position: fixed;
  z-index: 3000;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(18, 38, 63, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
  margin-top: 0;
}

.std89-combo-panel .digi-combo-item {
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  background: #fff;
  color: #1a1a1a;
  text-align: left;
}

.std89-combo-panel .digi-combo-item.active,
.std89-combo-panel .digi-combo-item:hover {
  background: var(--digi-accent, #7a1f2b);
  color: #fff;
}

/* ===== વાહન / ડ્રાઇવર લિસ્ટ કાઉન્ટ ===== */
.student-transport-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.student-transport-page .transport-list-grid-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0.75rem !important;
  overflow: auto;
  isolation: isolate;
}

.student-transport-page .transport-list-grid-wrap .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
  margin: 0 1rem;
}

.student-transport-page #stGrid.digi-grid-table--sticky thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-clip: padding-box;
}

.student-transport-page #stGrid thead th.st-th-roll.digi-grid-freeze-col {
  left: 0;
  z-index: 25;
  width: 4.5rem;
  min-width: 4.5rem;
  max-width: 4.5rem;
  background-color: #7a1029;
  background-image: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  color: #fff;
  box-shadow: 2px 2px 8px rgba(90, 11, 27, 0.35);
}

.student-transport-page #stGrid tbody td.st-td-roll.digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 4.5rem;
  min-width: 4.5rem;
  max-width: 4.5rem;
  background: #fff;
  background-clip: padding-box;
  box-shadow: 2px 0 6px rgba(138, 21, 48, 0.1);
}

.student-transport-page #stGrid tbody tr:nth-child(even) td.st-td-roll.digi-grid-freeze-col {
  background: #faf5f3;
}

.student-transport-summary__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--digi-accent, #8a1530);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.student-transport-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.st-sum-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.85rem 0.9rem 0.75rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(35, 10, 16, 0.12);
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.st-sum-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(35, 10, 16, 0.16);
}

.st-sum-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
  letter-spacing: 0.04em;
}

.st-sum-card__value {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0.15rem 0 0.45rem;
}

.st-sum-card__bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.st-sum-card__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.95);
  transition: width 0.45s ease;
}

.st-sum-card__pct {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}

.st-sum--van { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.st-sum--auto { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.st-sum--bus { background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%); }
.st-sum--bike { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.st-sum--cycle { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.st-sum--parent { background: linear-gradient(135deg, #ec4899 0%, #9d174d 100%); }
.st-sum--self { background: linear-gradient(135deg, #6366f1 0%, #3730a3 100%); }
.st-sum--none { background: linear-gradient(135deg, #94a3b8 0%, #475569 100%); }

/* Transport Summary ? mode KPI gradients (UDISE-style cards) */
.transport-summary-page .sch-kpi--van { background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%); }
.transport-summary-page .sch-kpi--auto { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.transport-summary-page .sch-kpi--bus { background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%); }
.transport-summary-page .sch-kpi--bike { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.transport-summary-page .sch-kpi--cycle { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.transport-summary-page .sch-kpi--parent { background: linear-gradient(135deg, #ec4899 0%, #9d174d 100%); }
.transport-summary-page .sch-kpi--self { background: linear-gradient(135deg, #6366f1 0%, #3730a3 100%); }
.transport-summary-page .sch-kpi--none { background: linear-gradient(135deg, #64748b 0%, #334155 100%); }
.transport-summary-page .sch-count-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}
.transport-summary-page .sch-count-link:hover { opacity: 0.85; }
.transport-summary-page .ts-chart-wrap {
  position: relative;
  min-height: 280px;
}
.transport-summary-page .ts-chart-wrap canvas {
  max-height: 360px;
}

.library-summary-page .lib-sum-section > .h5 {
  letter-spacing: 0.01em;
}
.library-summary-page .lib-sum-section > .text-muted {
  max-width: 46rem;
}
.library-summary-page .sch-kpi--total {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}
.library-summary-page .sch-kpi--entered {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}
.library-summary-page .sch-kpi--remaining {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.library-summary-page .sch-kpi--proposal {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.library-summary-page .sch-kpi--nomatch {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}
.library-summary-page .sch-kpi--registered {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}
.library-summary-page .sch-kpi--mbu-other {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}
.library-summary-page .sch-kpi--apaar-status {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}
.library-summary-page .sch-kpi--clickable {
  cursor: pointer;
}
.library-summary-page .sch-kpi--clickable.is-active {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  box-shadow: 0 18px 36px rgba(35, 10, 16, 0.32);
}
.library-summary-page .sch-count-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
}
.library-summary-page .sch-count-link:hover { opacity: 0.85; }
.library-summary-page .lib-charts-main > .card-body {
  background: #e8e4e6;
}
.library-summary-page .lib-chart-card {
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.library-summary-page .lib-chart-card__head {
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.library-summary-page .lib-chart-card--gender .lib-chart-card__head {
  background: linear-gradient(125deg, #1d4ed8 0%, #3b82f6 50%, #ec4899 100%);
}
.library-summary-page .lib-chart-card--band .lib-chart-card__head {
  background: linear-gradient(125deg, #2563eb 0%, #6366f1 55%, #a855f7 100%);
}
.library-summary-page .lib-chart-card--staff .lib-chart-card__head {
  background: linear-gradient(125deg, #0f766e 0%, #14b8a6 50%, #f59e0b 100%);
}
.library-summary-page .lib-chart-card--subject .lib-chart-card__head {
  background: linear-gradient(125deg, #0d9488 0%, #14b8a6 55%, #2dd4bf 100%);
}
.library-summary-page .lib-chart-card--period .lib-chart-card__head {
  background: linear-gradient(125deg, #8a1530 0%, #c2410c 55%, #ea580c 100%);
}
.library-summary-page .lib-chart-wrap {
  position: relative;
  min-height: 260px;
  padding: 0.75rem 0.85rem 1rem;
}
.library-summary-page .lib-chart-wrap canvas {
  max-height: 320px;
}
.library-summary-page .staff-doc-section-card__head .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Compact summary tables (2?4 cols) ? ?????? ?? ??? ??????? ??? fit */
@media (max-width: 767.98px) {
  .library-summary-page .school-user-grid-scroll:has(> .sch-summary-table) {
    overflow-x: hidden;
  }

  .library-summary-page .school-user-table.sch-summary-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
    font-size: 0.82rem;
  }

  .library-summary-page .sch-summary-table thead th,
  .library-summary-page .sch-summary-table tbody td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
  }

  .library-summary-page .sch-summary-table .sch-std-col {
    position: static;
    left: auto;
    z-index: auto;
    min-width: 0;
    width: auto;
  }

  .library-summary-page .sch-summary-table thead th.sch-std-col {
    z-index: auto;
  }

  .library-summary-page .sch-summary-table th.text-end,
  .library-summary-page .sch-summary-table td.text-end,
  .library-summary-page .sch-summary-table .sch-c-tot {
    white-space: nowrap;
  }

  .library-summary-page .sch-summary-table td.text-end,
  .library-summary-page .sch-summary-table td.sch-c-tot {
    width: 3.5rem;
  }

  .library-summary-page .sch-summary-table th.text-end,
  .library-summary-page .sch-summary-table th.sch-c-tot {
    width: 4rem;
  }
}

/* ===== ?????? ???? ===== */
.library-book-search-page .lbs-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 0.85rem;
}
.library-book-search-page .lbs-filter-bar__search {
  flex: 1 1 16rem;
  min-width: min(100%, 14rem);
}
.library-book-search-page .lbs-filter-bar__field {
  flex: 0 1 8.75rem;
  min-width: 7.5rem;
}
.library-book-search-page .lbs-filter-bar__actions {
  flex: 0 0 auto;
}
.library-book-search-page .lbs-filter-bar .form-label {
  display: block;
  margin-bottom: 0.35rem;
}
.library-book-search-page .lbs-filter-bar__spacer {
  visibility: hidden;
  user-select: none;
}
.library-book-search-page .lbs-filter-bar .form-control,
.library-book-search-page .lbs-filter-bar .form-select,
.library-book-search-page .lbs-filter-bar .input-group .btn,
.library-book-search-page .lbs-filter-bar__actions .btn {
  min-height: 2.375rem;
}
.library-book-search-page .lbs-filter-bar .input-group {
  flex-wrap: nowrap;
}
.library-book-search-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  margin-bottom: 1.25rem;
}
.library-book-search-page .staff-doc-section-card .card-body {
  background: #fff;
}
.library-book-search-page .lbs-cards-main > .card-body {
  background: #e8e4e6;
}
.library-book-search-page .lbs-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 1rem 0.5rem 0.25rem;
  color: #6b5a60;
  font-size: 0.85rem;
  font-weight: 600;
}
.library-book-search-page .lbs-load-more.d-none {
  display: none !important;
}
.library-book-search-page .lbs-load-more:not(.is-loading) .lbs-load-more__spinner,
.library-book-search-page .lbs-load-more:not(.is-loading) .lbs-load-more__text {
  opacity: 0;
}
.library-book-search-page .lbs-load-more__spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(122, 16, 41, 0.2);
  border-top-color: var(--digi-accent);
  border-radius: 50%;
  animation: lbs-spin 0.7s linear infinite;
}
@keyframes lbs-spin {
  to { transform: rotate(360deg); }
}
.library-book-search-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}
.library-book-search-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}
.library-book-search-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}
.library-book-search-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}
.library-book-search-page .staff-doc-section-card__head--detail {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}
.library-book-search-page .staff-doc-section-card__head .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.library-book-search-page .lbs-status-filters .form-check-label {
  color: var(--digi-accent);
  font-weight: 600;
}
.library-book-search-page #lbsCardGrid {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}
.library-book-search-page .lbs-book-card.is-available {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf6 100%);
}
.library-book-search-page .lbs-book-card.is-issued {
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.14);
  background: linear-gradient(135deg, #ffffff 0%, #fff8ef 100%);
}
.library-book-search-page .lbs-book-card.is-available .lbs-book-card__title {
  color: #166534;
}
.library-book-search-page .lbs-book-card.is-issued .lbs-book-card__title {
  color: #b45309;
}
.library-book-search-page .lbs-circ-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  border: none;
  text-decoration: none;
  cursor: default;
  white-space: nowrap;
}
.library-book-search-page .lbs-circ-badge--available {
  background: #16a34a;
}
.library-book-search-page .lbs-circ-badge--issued {
  background: #d97706;
}
.library-book-search-page .lbs-circ-badge--blocked {
  background: #6b7280;
}
.library-book-search-page .lbs-circ-badge--detail {
  background: #0284c7;
  cursor: pointer;
}
.library-book-search-page .lbs-circ-badge--detail:hover {
  background: #0369a1;
  color: #fff;
}
.library-book-search-page a.lbs-circ-badge--link {
  cursor: pointer;
}
.library-book-search-page a.lbs-circ-badge--link:hover {
  color: #fff;
  filter: brightness(1.06);
  text-decoration: none;
}
.library-book-search-page .lbs-current-issue {
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.08));
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.08);
}
.library-book-search-page .lbs-current-issue.is-overdue {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, rgba(254, 202, 202, 0.45), rgba(254, 226, 226, 0.25));
}
.library-book-search-page .lbs-current-issue__title {
  font-weight: 800;
  font-size: 1rem;
  color: #9a3412;
  margin-bottom: 0.45rem;
}
.library-book-search-page .lbs-current-issue.is-overdue .lbs-current-issue__title {
  color: #b91c1c;
}
.library-book-search-page .lbs-current-issue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.55rem 1rem;
}
.library-book-search-page .lbs-current-issue__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #78716c;
}
.library-book-search-page .lbs-current-issue__value {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1f2937;
}
.library-book-search-page .lbs-current-issue--available {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(135deg, rgba(134, 239, 172, 0.22), rgba(220, 252, 231, 0.35));
}
.library-book-search-page .lbs-current-issue--available .lbs-current-issue__title {
  color: #166534;
}
.library-book-search-page .lbs-current-issue--blocked {
  border-color: rgba(107, 114, 128, 0.35);
  background: #f3f4f6;
}
.library-book-search-page .lbs-current-issue--blocked .lbs-current-issue__title {
  color: #374151;
}
.library-book-search-page .lbs-book-card {
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(122, 16, 41, 0.1);
  box-shadow: 0 8px 20px rgba(35, 10, 16, 0.06);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem 0.55rem 0.55rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.library-book-search-page .lbs-book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 16, 41, 0.22);
  box-shadow: 0 14px 28px rgba(35, 10, 16, 0.11);
}
.library-book-search-page .lbs-book-card__media {
  background: transparent;
  width: 42%;
  min-width: 9.5rem;
  max-width: 11.5rem;
  min-height: 12.5rem;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42%;
  border: none;
  border-radius: 10px;
}
.library-book-search-page .lbs-card-photo {
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 10px;
  background: #faf6f7;
}
.library-book-search-page .lbs-card-photo--ph {
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  border-radius: 10px;
  background: linear-gradient(160deg, #faf6f7 0%, #f3e8ec 100%);
  color: var(--digi-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.library-book-search-page .lbs-card-photo--ph svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.72;
}
.library-book-search-page .lbs-card-photo--ph span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.55;
}
.library-book-search-page .lbs-book-card__body {
  padding: 0.35rem 0.45rem 0.25rem 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 0;
  min-width: 0;
  max-width: 58%;
  justify-content: space-between;
}
.library-book-search-page .lbs-book-card__title {
  color: var(--digi-accent);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  min-height: auto;
  margin: 0 0 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-book-search-page .lbs-book-card__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
  flex: 1;
  align-content: start;
}
.library-book-search-page .lbs-book-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: #f7f2f4;
  border: 1px solid rgba(122, 16, 41, 0.06);
}
.library-book-search-page .lbs-book-card__meta--wide {
  grid-column: 1 / -1;
}
.library-book-search-page .lbs-book-card__meta span {
  color: #8a6b75;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  flex-shrink: 0;
}
.library-book-search-page .lbs-book-card__meta strong {
  color: #1f2937;
  text-align: left;
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-book-search-page .lbs-book-card__meta--wide strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.library-book-search-page .lbs-book-card__footer {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(122, 16, 41, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.library-book-search-page .lbs-detail-photo--ph {
  width: 100%;
  max-width: 100%;
  min-height: 18rem;
  height: min(70vh, 28rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #f8f1f3;
  border-radius: 12px;
  border: 1px solid rgba(122, 16, 41, 0.12);
}
.library-book-search-page .lbs-detail-photo__placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 575.98px) {
  .library-book-search-page .lbs-book-card {
    gap: 0.45rem;
    padding: 0.5rem;
  }
  .library-book-search-page .lbs-book-card__media {
    width: 38%;
    min-width: 7.25rem;
    max-width: 8.5rem;
    min-height: 10rem;
    flex-basis: 38%;
  }
  .library-book-search-page .lbs-card-photo,
  .library-book-search-page .lbs-card-photo--ph {
    min-height: 10rem;
  }
  .library-book-search-page .lbs-book-card__body {
    max-width: 62%;
  }
}
.library-book-search-page .lbs-book-card__due {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.12);
  font-size: 0.72rem;
}
.library-book-search-page .lbs-book-card__due span {
  color: #92400e;
  font-weight: 700;
}
.library-book-search-page .lbs-book-card__due strong {
  color: #9a3412;
  font-weight: 800;
}
.library-book-search-page .lbs-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
}
.library-book-search-page .lbs-status-badge--p { background: #16a34a; }
.library-book-search-page .lbs-status-badge--c { background: #d97706; }
.library-book-search-page .lbs-status-badge--l { background: #dc2626; }
.library-book-search-page .lbs-status-badge--b { background: #7c3aed; }
.library-book-search-page .lbs-detail-photo {
  width: 100%;
  max-width: 100%;
  max-height: min(70vh, 32rem);
  min-height: 18rem;
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
  border: 1px solid rgba(122, 16, 41, 0.12);
  background: #f8f1f3;
  display: block;
  margin: 0 auto;
}
.library-book-search-page #lbsDetailPanel .col-lg-4 > .staff-doc-section-card > .card-body {
  padding: 0.75rem;
}
.library-book-search-page #lbsDetailPanel .col-lg-4 > .staff-doc-section-card > .card-body #lbsDetailAccession {
  margin-top: 0.5rem;
}
.library-book-search-page .lbs-field__label {
  color: var(--digi-accent);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.library-book-search-page .lbs-field__value {
  font-weight: 650;
  color: #1f2937;
  word-break: break-word;
}
.library-book-search-page .lbs-year-block__head {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(122, 16, 41, 0.08), rgba(122, 16, 41, 0.02));
  color: var(--digi-accent);
}

/* ===== ????????? ?????? ???? ===== */
.prarthna-master-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.prarthna-master-page .prarthna-list-body {
  background: #fff;
}

/* overflow:hidden on card breaks thead sticky ? list card only */
.prarthna-master-page #prarthnaListShell > .staff-doc-section-card {
  overflow: visible;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.prarthna-master-page #prarthnaListShell .staff-doc-section-card__head--list {
  border-radius: 14px 14px 0 0;
}

.prarthna-master-page #prarthnaListShell .prarthna-list-body {
  overflow: visible;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.prarthna-master-page .prarthna-list-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

.prarthna-master-page .prarthna-list-grid-wrap {
  padding-top: 0.75rem !important;
  isolation: isolate;
  -webkit-overflow-scrolling: touch;
}

.prarthna-master-page .prarthna-list-grid-wrap .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}

.prarthna-master-page #prarthnaGridTable thead th {
  position: sticky;
  top: 0;
  z-index: 100;
  background-clip: padding-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 2px 0 rgba(79, 10, 26, 0.2);
}

.prarthna-entry-page .staff-doc-section-card.staff-doc-picker-card,
.prarthna-entry-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.prarthna-entry-page #prarthnaEntryFormCard,
.prarthna-entry-page #prarthnaEntryFormCard .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.prarthna-entry-page #stuComboWrap,
.prarthna-entry-page #staffComboWrap {
  position: relative;
  z-index: 2;
}

.prarthna-entry-page #stuComboList,
.prarthna-entry-page #staffComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.prarthna-entry-page #prarthnaEntryListShell {
  position: relative;
  z-index: 1;
}

.prarthna-entry-page #prarthnaEntryListShell > .staff-doc-section-card,
.prarthna-entry-page #prarthnaEntryListShell > .staff-doc-section-card.school-user-card {
  overflow: visible !important;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.prarthna-entry-page #prarthnaEntryListShell .staff-doc-section-card__head--list {
  border-radius: 14px 14px 0 0;
}

.prarthna-entry-page #prarthnaEntryListShell .prarthna-entry-list-body {
  overflow: visible;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.prarthna-entry-page .prarthna-entry-list-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

/* scroll ??? = digi-grid-table-viewport (sticky thead ????); isolation/overflow:hidden ???? */
.prarthna-entry-page .prarthna-entry-list-grid-wrap {
  padding-top: 0.75rem !important;
  overflow: visible;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}

.prarthna-entry-page .prarthna-entry-list-grid-wrap .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
  max-height: calc(3.35rem + 10 * 2.8125rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.prarthna-entry-page #entryGridTable thead th {
  position: sticky;
  top: 0;
  z-index: 110;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  background-clip: padding-box;
  box-shadow: 0 2px 0 rgba(79, 10, 26, 0.2);
}

.prarthna-entry-page #entryGridTable tbody tr {
  position: relative;
  z-index: 0;
}

.prarthna-entry-page #entryGridTable tbody td {
  position: relative;
  z-index: 0;
  background-color: inherit;
}

.prarthna-entry-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.prarthna-entry-page .prarthna-entry-list-body {
  background: #fff;
}

.prarthna-entry-page .prarthna-pending-table thead th {
  background: rgba(138, 21, 48, 0.06);
  font-size: 0.82rem;
}

.prarthna-entry-page .staff-doc-picker-card .list-group,
.prarthna-entry-page #prarthnaEntryFormCard .list-group {
  border-radius: 0 0 0.375rem 0.375rem;
}

.spardha-master-page .spardha-std-quick-btns .btn {
  min-width: 4.25rem;
  font-weight: 700;
}

.spardha-student-entry-page .staff-doc-section-card.staff-doc-picker-card,
.spardha-student-entry-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.spardha-student-entry-page #stuComboWrap {
  position: relative;
  z-index: 2;
}

.spardha-student-entry-page #stuComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.spardha-student-entry-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a !important;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.35;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.spardha-student-entry-page .spardha-student-list-body {
  background: #fff;
  overflow: visible;
}

.spardha-student-entry-page #gridCard.staff-doc-section-card {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.spardha-student-entry-page .spardha-list-toolbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

/* scroll ??? = digi-grid-table-viewport ? ????? padding ?? sticky gap ????? */
.spardha-student-entry-page .spardha-list-grid-wrap {
  padding-top: 0.75rem !important;
  overflow: visible;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}

.spardha-student-entry-page .spardha-list-grid-wrap .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
  max-height: calc(3.35rem + 10 * 2.8125rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.spardha-student-entry-page #spardhaStudentGrid thead th {
  position: sticky;
  top: 0;
  z-index: 110;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  background-clip: padding-box;
  box-shadow: 0 2px 0 rgba(79, 10, 26, 0.2);
}

.spardha-student-entry-page #spardhaStudentGrid tbody tr {
  position: relative;
  z-index: 0;
}

.spardha-student-entry-page .staff-doc-picker-card .list-group {
  border-radius: 0 0 0.375rem 0.375rem;
}

.spardha-student-entry-page #spardhaStudentGrid tbody tr.spardha-kram-1 > td {
  background-color: rgba(25, 135, 84, 0.16);
}

.spardha-student-entry-page #spardhaStudentGrid tbody tr.spardha-kram-2 > td {
  background-color: rgba(253, 126, 20, 0.20);
}

.spardha-student-entry-page #spardhaStudentGrid tbody tr.spardha-kram-3 > td {
  background-color: rgba(214, 51, 132, 0.16);
}

/* ===== ??????? ??????? (A4 print) ===== */
.spardha-report-print-body {
  font-family: "Noto Sans Gujarati", "Nirmala UI", Arial, sans-serif;
  font-size: 11pt;
  color: #111;
}

.spardha-rpt-print-page .spardha-rpt-root {
  position: relative;
  z-index: 1;
}

.spardha-rpt-print-page .spardha-rpt-sheet {
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.spardha-rpt-print-page .spardha-rpt-sheet + .spardha-rpt-sheet {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.spardha-rpt-header-box {
  border: 3px double #111;
  margin-bottom: 10px;
  overflow: hidden;
}

.spardha-rpt-header-box__table {
  width: 100%;
  border-collapse: collapse;
}

.spardha-rpt-header-box__logo {
  width: 18%;
  text-align: center;
  vertical-align: middle;
  font-size: 10pt;
  color: #555;
  border-right: 1px solid #111;
  padding: 12px 6px;
}

.spardha-rpt-header-box__logo--right {
  border-right: none;
  border-left: 1px solid #111;
}

.spardha-rpt-header-box__bar {
  height: 10px;
  background: #9e9e9e;
  border-top: 1px solid #111;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.spardha-rpt-header-box__center {
  text-align: center;
  vertical-align: middle;
  padding: 10px 8px;
}

.spardha-rpt-header-box__samiti {
  font-size: 11pt;
  margin-bottom: 4px;
}

.spardha-rpt-header-box__school {
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.25;
}

.spardha-rpt-title {
  text-align: center;
  font-size: 13pt;
  font-weight: 700;
  color: #6a1b9a;
  margin: 8px 0 4px;
  line-height: 1.35;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.spardha-rpt-date {
  text-align: center;
  font-size: 11pt;
  font-weight: 600;
  color: #c62828;
  margin-bottom: 10px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.spardha-rpt-judge-table,
.spardha-rpt-yaadi-table,
.spardha-rpt-samagra-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.spardha-rpt-judge-table th,
.spardha-rpt-judge-table td,
.spardha-rpt-yaadi-table th,
.spardha-rpt-yaadi-table td,
.spardha-rpt-samagra-table th,
.spardha-rpt-samagra-table td {
  border: 1px solid #111;
  padding: 3px 4px;
  vertical-align: middle;
  font-size: 10pt;
  line-height: 1.25;
}

.spardha-rpt-judge-table thead th,
.spardha-rpt-yaadi-table thead th,
.spardha-rpt-samagra-table thead th {
  background: #f3e5c8;
  font-weight: 700;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.spardha-rpt-th-judge {
  width: 9%;
  text-align: center;
}

.spardha-rpt-samagra-table .spardha-rpt-th-kram { width: 5%; }
.spardha-rpt-samagra-table .spardha-rpt-th-name { width: 34%; }
.spardha-rpt-samagra-table .spardha-rpt-th-std { width: 8%; }
.spardha-rpt-samagra-table .spardha-rpt-th-total { width: 8%; }

.spardha-rpt-th-kram { width: 5%; }
.spardha-rpt-yaadi-table .spardha-rpt-th-name { width: 26%; }
.spardha-rpt-yaadi-table .spardha-rpt-th-std { width: 8%; }
.spardha-rpt-yaadi-table .spardha-rpt-th-gr { width: 8%; }
.spardha-rpt-yaadi-table .spardha-rpt-th-dob { width: 11%; }
.spardha-rpt-yaadi-table .spardha-rpt-th-gender { width: 6%; }
.spardha-rpt-yaadi-table .spardha-rpt-th-category { width: 8%; }
.spardha-rpt-yaadi-table .spardha-rpt-th-melavel { width: 11%; }
.spardha-rpt-th-name { width: 28%; }
.spardha-rpt-th-std { width: 8%; }
.spardha-rpt-th-mark-group { width: auto; }
.spardha-rpt-th-mark { width: 6%; }
.spardha-rpt-th-total { width: 7%; }

.spardha-rpt-td-name {
  text-align: left;
  word-break: break-word;
}

.spardha-rpt-td-mark {
  height: 22px;
}

.spardha-rpt-yaadi-table tbody tr.spardha-kram-1 > td {
  background-color: rgba(25, 135, 84, 0.14);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.spardha-rpt-yaadi-table tbody tr.spardha-kram-2 > td {
  background-color: rgba(253, 126, 20, 0.18);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.spardha-rpt-yaadi-table tbody tr.spardha-kram-3 > td {
  background-color: rgba(214, 51, 132, 0.14);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media print {
  .spardha-rpt-print-page .spardha-rpt-sheet + .spardha-rpt-sheet {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    page-break-before: always;
  }

  .spardha-rpt-title,
  .spardha-rpt-date,
  .spardha-rpt-judge-table thead th,
  .spardha-rpt-yaadi-table thead th,
  .spardha-rpt-samagra-table thead th,
  .spardha-rpt-header-box__bar,
  .spardha-rpt-yaadi-table tbody tr.spardha-kram-1 > td,
  .spardha-rpt-yaadi-table tbody tr.spardha-kram-2 > td,
  .spardha-rpt-yaadi-table tbody tr.spardha-kram-3 > td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* School user menu ? ???? ????? / ???? ??????????? */
.school-user-page .staff-doc-section-card.staff-doc-picker-card,
.school-user-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.school-user-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.school-user-page .staff-doc-section-card .card-body {
  background: #fff;
}

.school-user-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.school-user-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.school-user-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.school-user-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.school-user-page .school-user-page-title {
  color: var(--digi-accent);
}

/* ???? ??????????? ? mode switch (???? ?????? / ????? ??????) */
.school-user-page .ua-page-head {
  justify-content: flex-start;
}

.school-user-page .ua-mode-switch {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
}

.school-user-page .ua-mode-switch__track {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.35rem;
  background: linear-gradient(145deg, #faf7f8 0%, #f0e8eb 100%);
  border: 1px solid rgba(138, 21, 48, 0.14);
  border-radius: 999px;
  box-shadow:
    0 6px 22px rgba(90, 11, 27, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.school-user-page .ua-mode-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.55rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(90, 11, 27, 0.62);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 140ms ease;
}

.school-user-page .ua-mode-switch__btn svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.88;
  transition: opacity 180ms ease, transform 180ms ease;
}

.school-user-page .ua-mode-switch__btn:hover:not(.active) {
  color: var(--digi-accent);
  background: rgba(255, 255, 255, 0.72);
}

.school-user-page .ua-mode-switch__btn:hover:not(.active) svg {
  opacity: 1;
}

.school-user-page .ua-mode-switch__btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.12rem #fff, 0 0 0 0.32rem var(--digi-focus-ring, rgba(138, 21, 48, 0.38));
}

.school-user-page .ua-mode-switch__btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--digi-accent) 0%, var(--digi-accent-2) 100%);
  box-shadow: 0 5px 16px rgba(138, 21, 48, 0.38);
}

.school-user-page .ua-mode-switch__btn.active svg {
  opacity: 1;
  transform: scale(1.05);
}

.school-user-page .ua-mode-switch__btn:active {
  transform: scale(0.98);
}

@media (max-width: 575.98px) {
  .school-user-page .ua-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .school-user-page .ua-mode-switch__track {
    width: 100%;
    border-radius: 16px;
  }

  .school-user-page .ua-mode-switch__btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.86rem;
  }
}

.gr-entry-page .form-control,
.gr-entry-page .form-select {
  border-radius: 12px;
  border-color: rgba(90, 11, 27, 0.18);
  transition: box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.gr-entry-page .form-control:focus,
.gr-entry-page .form-select:focus {
  border-color: rgba(138, 21, 48, 0.55);
  box-shadow: 0 0 0 0.12rem #fff, 0 0 0 0.34rem var(--digi-focus-ring);
}

/* dd/MM/yyyy ??????? + ???????? ? ??? ?? ??? (.gr-date-wrap) */
.gr-date-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.gr-date-wrap .form-control {
  padding-right: 44px;
}

/* type=date ????? ? ???? .gr-date-btn ??????? showPicker() */
.gr-date-wrap .gr-date-native {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
  color-scheme: light;
  pointer-events: none;
}

.gr-date-wrap .gr-date-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(90, 11, 27, 0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(90, 11, 27, 0.85);
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}

.gr-date-wrap .gr-date-btn:hover {
  border-color: rgba(138, 21, 48, 0.35);
  box-shadow: 0 10px 20px rgba(35, 10, 16, 0.10);
}

.gr-date-wrap .gr-date-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.gr-date-wrap .gr-date-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Staff Entry (reuses gr-entry-page shell) ===== */
.staff-entry-page .staff-section-bar {
  font-weight: 800;
  font-size: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
}
.staff-entry-page .staff-section-bar--general {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
}
.staff-entry-page .staff-section-bar--edu {
  background: linear-gradient(90deg, #7fd47f 0%, #4fbf6a 55%, #2da84f 100%);
  color: #0f2a14;
}
.staff-entry-page #inputEmployeeNo.staff-empno-highlight {
  background-color: #fff9c4;
}
.staff-entry-page #inputEmployeeNo.staff-empno-highlight:read-only {
  background-color: #f3f0d4;
  cursor: default;
}
.staff-entry-page #btnChangeEmployeeNo {
  white-space: nowrap;
}
/* Staff document entry ? ???? ???????? ??? ????? */
.staff-doc-entry-page .staff-doc-section-card.staff-doc-picker-card,
.staff-doc-entry-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.staff-doc-entry-page #staffComboWrap {
  position: relative;
  z-index: 2;
}

.staff-doc-entry-page #staffComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.staff-doc-entry-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  margin-bottom: 1.25rem;
}

.staff-doc-entry-page .staff-doc-section-card .card-body {
  background: #fff;
}

.staff-doc-entry-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.03em;
}

.staff-doc-entry-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.staff-doc-entry-page .staff-doc-section-card__head--aadhaar {
  background: linear-gradient(125deg, #312e81 0%, #7c3aed 55%, #a855f7 100%);
}

.staff-doc-entry-page .staff-doc-section-card__head--pan {
  background: linear-gradient(125deg, #b45309 0%, #ea580c 50%, #fb923c 100%);
}

.staff-doc-entry-page .staff-doc-section-card__head--election {
  background: linear-gradient(90deg, #7fd47f 0%, #4fbf6a 55%, #2da84f 100%);
  color: #0f2a14 !important;
}

.staff-doc-entry-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

/* ===== My Profile ? modern tabs + pane backgrounds ===== */
.my-profile-page .my-profile-tabs-shell {
  background: linear-gradient(135deg, rgba(138, 21, 48, 0.06) 0%, rgba(2, 132, 199, 0.08) 50%, rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: 0 6px 20px rgba(18, 38, 63, 0.06);
}

.my-profile-page .my-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.my-profile-page .my-profile-tabs .nav-item {
  flex: 1 1 auto;
  min-width: 9.5rem;
}

.my-profile-page .my-profile-tab {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5a0b1b;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(138, 21, 48, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.my-profile-page .my-profile-tab:hover {
  background: #fff;
  color: var(--digi-accent);
  box-shadow: 0 4px 14px rgba(138, 21, 48, 0.12);
  transform: translateY(-1px);
}

.my-profile-page .my-profile-tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(138, 21, 48, 0.08);
  color: inherit;
}

.my-profile-page .my-profile-tab.active {
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(18, 38, 63, 0.16);
}

.my-profile-page .my-profile-tab--staff.active {
  background: linear-gradient(125deg, #8a1530 0%, #b91c3c 55%, #e11d48 100%);
}

.my-profile-page .my-profile-tab--document.active {
  background: linear-gradient(125deg, #312e81 0%, #7c3aed 55%, #a855f7 100%);
}

.my-profile-page .my-profile-tab--files.active {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.my-profile-page .my-profile-tab--training.active {
  background: linear-gradient(125deg, #065f46 0%, #059669 55%, #34d399 100%);
}

.my-profile-page .my-profile-tab.active .my-profile-tab__icon {
  background: rgba(255, 255, 255, 0.22);
}

.my-profile-page .my-profile-tab-content {
  margin-top: 0.15rem;
}

.my-profile-page .my-profile-pane {
  border-radius: 16px;
  padding: 1rem 0.85rem 0.35rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.my-profile-page .my-profile-pane--staff {
  background: linear-gradient(180deg, rgba(138, 21, 48, 0.06) 0%, rgba(255, 248, 250, 0.95) 28%, #fff 100%);
  border-color: rgba(138, 21, 48, 0.1);
}

.my-profile-page .my-profile-pane--document {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.07) 0%, rgba(248, 245, 255, 0.95) 28%, #fff 100%);
  border-color: rgba(124, 58, 237, 0.12);
}

.my-profile-page .my-profile-pane--files {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, rgba(240, 249, 255, 0.95) 28%, #fff 100%);
  border-color: rgba(2, 132, 199, 0.14);
}

.my-profile-page .my-profile-pane--training {
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.08) 0%, rgba(236, 253, 245, 0.95) 28%, #fff 100%);
  border-color: rgba(5, 150, 105, 0.14);
}

/* Profile document tab ? bank head (codes ???? ??? ???) */
.my-profile-page .staff-doc-section-card__head--bank {
  background: linear-gradient(125deg, #065f46 0%, #059669 50%, #34d399 100%);
  color: #fff !important;
}

/* Profile cards ? header top corners match card radius */
.my-profile-page .staff-doc-section-card.school-user-form-card,
.my-profile-page .staff-doc-section-card.school-user-card {
  border-radius: 14px !important;
  overflow: hidden !important;
}

.my-profile-page .staff-doc-section-card > .staff-doc-section-card__head {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

@media (max-width: 575.98px) {
  .my-profile-page .my-profile-tabs .nav-item {
    flex: 1 1 100%;
  }

  .my-profile-page .my-profile-pane {
    padding: 0.75rem 0.4rem 0.2rem;
  }
}

/* ????? ??????????? ????? ? staff-doc section-card pattern */
.staff-file-doc-upload-page .staff-doc-section-card.staff-doc-picker-card,
.staff-file-doc-upload-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.staff-file-doc-upload-page #staffComboWrap {
  position: relative;
  z-index: 2;
}

.staff-file-doc-upload-page #staffComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.staff-file-doc-upload-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  margin-bottom: 1.25rem;
}

.staff-file-doc-upload-page .staff-doc-section-card .card-body {
  background: #fff;
}

.staff-file-doc-upload-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.staff-file-doc-upload-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.staff-file-doc-upload-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.staff-file-doc-upload-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* ?????? ???? ????? ? same staff-doc section-card pattern */
.library-book-photo-upload-page .staff-doc-section-card.staff-doc-picker-card,
.library-book-photo-upload-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.library-book-photo-upload-page #bookComboWrap {
  position: relative;
  z-index: 2;
}

.library-book-photo-upload-page #bookComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.library-book-photo-upload-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  margin-bottom: 1.25rem;
}

.library-book-photo-upload-page .staff-doc-section-card .card-body {
  background: #fff;
}

.library-book-photo-upload-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.library-book-photo-upload-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.library-book-photo-upload-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.library-book-photo-upload-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* ????????? ? ????? ????? */
.library-issued-books-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  margin-bottom: 1.25rem;
}

.library-issued-books-page .staff-doc-section-card .card-body {
  background: #fff;
}

.library-issued-books-page .lib-issue-accession {
  background: rgba(220, 53, 69, 0.12);
  color: #b02a37;
}

.library-issued-books-page .lib-issue-member-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.library-issued-books-page .lib-issue-member-badge--student {
  background: rgba(13, 110, 253, 0.12);
  color: #0a58ca;
}

.library-issued-books-page .lib-issue-member-badge--staff {
  background: rgba(25, 135, 84, 0.16);
  color: #146c43;
}

.library-issue-report-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  margin-bottom: 1.25rem;
}

.library-issue-report-page .staff-doc-section-card .card-body {
  background: #fff;
}

.library-issue-report-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.library-issue-report-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.library-issue-report-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.library-issue-report-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* Segmented radio (??????) */
.library-issue-report-page .lir-seg {
  display: flex;
  width: 100%;
  padding: 0.28rem;
  gap: 0.28rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #faf7f8 0%, #f0e8eb 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  box-shadow: inset 0 1px 2px rgba(79, 10, 26, 0.04);
}

.library-issue-report-page .lir-seg__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent;
  color: #6b4a52;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: none !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.library-issue-report-page .lir-seg__btn:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--digi-accent);
}

.library-issue-report-page .lir-seg .btn-check:checked + .lir-seg__btn {
  background: linear-gradient(180deg, #9a1f3d 0%, #7a152f 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(122, 21, 47, 0.28) !important;
  transform: translateY(-1px);
}

.library-issue-report-page .lir-seg--mode .btn-check:checked + .lir-seg__btn {
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
  box-shadow: 0 6px 16px rgba(3, 105, 161, 0.28) !important;
}

  .library-issue-report-page .lir-seg .btn-check:focus-visible + .lir-seg__btn {
  outline: 2px solid rgba(138, 21, 48, 0.45);
  outline-offset: 2px;
}

/* ???????? ????? ??????? ? modern segmented radios + color row */
.rachanatmak-patrak-page .rpp-seg {
  display: flex;
  width: 100%;
  padding: 0.28rem;
  gap: 0.28rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #faf7f8 0%, #f0e8eb 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  box-shadow: inset 0 1px 2px rgba(79, 10, 26, 0.04);
}

.rachanatmak-patrak-page .rpp-seg__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent;
  color: #6b4a52;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: none !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.rachanatmak-patrak-page .rpp-seg__btn:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--digi-accent);
}

.rachanatmak-patrak-page .rpp-seg .btn-check:checked + .rpp-seg__btn {
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(3, 105, 161, 0.28) !important;
  transform: translateY(-1px);
}

.rachanatmak-patrak-page .rpp-seg .btn-check:focus-visible + .rpp-seg__btn {
  outline: 2px solid rgba(138, 21, 48, 0.45);
  outline-offset: 2px;
}

.rachanatmak-patrak-page .rpp-color-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rachanatmak-patrak-page .rpp-color-input {
  width: 3.25rem;
  height: 2.5rem;
  padding: 0.2rem;
}

.rachanatmak-patrak-page .rpp-color-name {
  font-weight: 700;
  color: var(--digi-accent);
  font-size: 0.92rem;
}

@media (max-width: 575.98px) {
  .rachanatmak-patrak-page .rpp-seg__btn {
    padding: 0.7rem 0.4rem;
    font-size: 0.82rem;
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Group switches (Library Setting / WhatsApp pattern) */
.library-issue-report-page .lir-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fcfafb 100%);
}

.library-issue-report-page .lir-group-row--last {
  border-bottom: 0;
}

.library-issue-report-page .lir-group-row__title {
  display: block;
  margin: 0;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--digi-accent);
  cursor: pointer;
}

.library-issue-report-page .lir-group-row__hint {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #6c757d;
  line-height: 1.35;
}

.library-issue-report-page .lir-group-switch .form-check-input {
  width: 2.75rem;
  height: 1.45rem;
  margin: 0;
  cursor: pointer;
  background-color: #dee2e6;
  border: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.library-issue-report-page .lir-group-switch .form-check-input:checked {
  background-color: #198754;
  background-image: none;
}

.library-issue-report-page .lir-group-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
}

.library-issue-report-page .lir-report-actions {
  border-top: 1px solid rgba(138, 21, 48, 0.08);
}

@media (max-width: 575.98px) {
  .library-issue-report-page .lir-seg__btn {
    padding: 0.7rem 0.5rem;
    font-size: 0.88rem;
  }

  .library-issue-report-page .lir-group-row {
    align-items: flex-start;
  }
}

/* Staff training reuses staff document themed cards and searchable staff picker. */
.staff-training-page .staff-doc-section-card.staff-doc-picker-card,
.staff-training-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.principal-logbook-page .staff-doc-section-card.staff-doc-picker-card,
.principal-logbook-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.principal-logbook-page #logbookHeaderCard.staff-doc-picker-card {
  z-index: 41;
}

.principal-logbook-page #staffComboWrap,
.principal-logbook-page #topicComboWrap,
.principal-logbook-page #shareSuggestWrap {
  position: relative;
  z-index: 2;
}

.principal-logbook-page .plog-obs-row {
  position: relative;
  z-index: 1;
}

.principal-logbook-page .plog-obs-row:focus-within,
.principal-logbook-page .plog-obs-combo.is-open {
  z-index: 30;
}

.principal-logbook-page .plog-obs-combo {
  position: relative;
  z-index: 1;
}

.principal-logbook-page .plog-obs-combo:focus-within,
.principal-logbook-page .plog-obs-combo.is-open {
  z-index: 31;
}

.principal-logbook-page #staffComboList,
.principal-logbook-page #topicComboList,
.principal-logbook-page #shareSuggestList,
.principal-logbook-page .plog-obs-combo .digi-combo-list {
  z-index: 1080;
  background: #fff;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.principal-logbook-page .plog-prev-visit {
  background: #f4f8fc;
  border: 1px solid #d5e4f3;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.principal-logbook-page .plog-prev-visit__share {
  white-space: pre-wrap;
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e6eef6;
}

.principal-logbook-page .plog-share-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1.25rem;
}

@media (min-width: 768px) {
  .principal-logbook-page .plog-share-checks {
    grid-template-columns: 1fr 1fr;
  }
}

.principal-logbook-page .plog-share-checks .form-check {
  margin: 0;
  padding: 0.45rem 0.55rem 0.45rem 1.85rem;
  background: #f7fafc;
  border: 1px solid #e6eef6;
  border-radius: 8px;
}

.principal-logbook-page .plog-share-checks .form-check-label {
  cursor: pointer;
}

.principal-logbook-page .digi-check-dd {
  position: relative;
  width: 100%;
}

.principal-logbook-page .digi-check-dd__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.625rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  background-image: none !important;
}

.principal-logbook-page .digi-check-dd__btn::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.25rem;
  opacity: 0.65;
}

.principal-logbook-page .digi-check-dd__menu {
  width: 100%;
  max-height: min(22rem, 70vh);
  overflow: hidden;
  padding: 0.5rem !important;
}

.principal-logbook-page .digi-check-dd__menu.show {
  display: flex;
  flex-direction: column;
}

.principal-logbook-page .digi-check-dd__list {
  overflow-y: auto;
  max-height: 16rem;
  padding: 0.15rem 0.35rem;
  flex: 1 1 auto;
}

.principal-logbook-page .digi-check-dd__label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.principal-logbook-page .digi-check-dd__label-text.is-placeholder {
  color: #6c757d;
  font-weight: 400;
}

.samiti-master-page.school-user-page .staff-doc-section-card.school-user-form-card {
  overflow: visible;
  position: relative;
  z-index: 5;
}

.samiti-master-page .school-user-form-card,
.samiti-master-page .school-user-form-card .card-body {
  overflow: visible;
}

.samiti-master-page .digi-check-dd {
  position: relative;
  width: 100%;
}

.samiti-master-page .digi-check-dd__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.625rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  background-image: none !important;
}

.samiti-master-page .digi-check-dd__btn::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.25rem;
  opacity: 0.65;
}

.samiti-master-page .digi-check-dd__menu {
  width: 100%;
  max-height: min(22rem, 70vh);
  overflow: hidden;
  padding: 0.5rem !important;
}

.samiti-master-page .digi-check-dd__menu.show {
  display: flex;
  flex-direction: column;
}

.samiti-master-page .digi-check-dd__list {
  overflow-y: auto;
  max-height: 16rem;
  padding: 0.15rem 0.35rem;
  flex: 1 1 auto;
}

.samiti-master-page .digi-check-dd__label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.samiti-master-page .digi-check-dd__label-text.is-placeholder {
  color: #6c757d;
  font-weight: 400;
}

.principal-logbook-page .plog-obs-row:has(.digi-check-dd .dropdown-menu.show) {
  z-index: 40;
}

.principal-logbook-page .plog-obs-row--yn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.55rem;
  padding: 0.28rem 0.1rem;
  border-bottom: 1px solid #eef2f6;
}

.principal-logbook-page .plog-obs-row--yn .form-label {
  flex: 1 1 auto;
  min-width: 0;
}

.principal-logbook-page .plog-yn {
  display: inline-flex;
  flex: 0 0 auto;
  width: 9.75rem;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: #eef2f6;
  border: 1px solid #d5dee8;
  box-shadow: inset 0 1px 2px rgba(18, 38, 63, 0.05);
}

.principal-logbook-page .plog-yn__btn {
  flex: 1 1 0;
  margin: 0;
  padding: 0.38rem 0.35rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  color: #64748b;
  user-select: none;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.principal-logbook-page .plog-yn__btn--yes:hover {
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
}

.principal-logbook-page .plog-yn__btn--no:hover {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.principal-logbook-page .plog-yn .btn-check:checked + .plog-yn__btn--yes {
  background: linear-gradient(180deg, #34d399 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.38);
  transform: translateY(-1px);
}

.principal-logbook-page .plog-yn .btn-check:checked + .plog-yn__btn--no {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.38);
  transform: translateY(-1px);
}

.principal-logbook-page .plog-yn .btn-check:focus-visible + .plog-yn__btn {
  outline: 2px solid rgba(15, 23, 42, 0.35);
  outline-offset: 2px;
}

.staff-training-page #staffComboWrap {
  position: relative;
  z-index: 2;
}

.staff-training-page #staffComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

/* ????? combo (???? + dropdown) ? level/mode ????? */
.digi-combo {
  position: relative;
}

.digi-combo .digi-combo-input {
  padding-right: 2rem;
}

.digi-combo .digi-combo-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
}

.digi-combo .digi-combo-toggle:hover {
  color: var(--digi-accent, #7a1f2b);
  background: rgba(122, 31, 43, 0.08);
}

.digi-combo .digi-combo-list {
  z-index: 1080;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
  margin-top: 2px;
}

.digi-combo .digi-combo-item {
  cursor: pointer;
  font-size: 0.95rem;
}

.digi-combo .digi-combo-item.active,
.digi-combo .digi-combo-item:hover {
  background: var(--digi-accent, #7a1f2b);
  color: #fff;
}

/* Native select રહે (form post); દેખાય searchable combo. */
.digi-search-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.digi-search-select-list {
  position: fixed;
  z-index: 1080;
  max-height: 240px;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
  margin: 0;
}

.digi-search-select-list .digi-combo-item {
  cursor: pointer;
  font-size: 0.95rem;
}

.digi-search-select-list .digi-combo-item.is-current {
  font-weight: 700;
}

.digi-search-select-list .digi-combo-item.active,
.digi-search-select-list .digi-combo-item:hover {
  background: var(--digi-accent, #7a1f2b);
  color: #fff;
}

.staff-training-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.staff-training-page .staff-doc-section-card .card-body {
  background: #fff;
}

.staff-training-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.staff-training-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.staff-training-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

/* ???? ??????? ? staff-doc section card pattern */
.day-reg-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.day-reg-page .staff-doc-section-card .card-body {
  background: #fff;
}

.day-reg-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.day-reg-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.day-reg-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* ????? ????? ? staff-doc section card pattern */
.block-date-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.block-date-page .staff-doc-section-card .card-body {
  background: #fff;
}

.block-date-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.block-date-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.block-date-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* ????? ????? ??????? ? staff-doc section card pattern */
.dainik-hajari-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.dainik-hajari-page .staff-doc-section-card .card-body {
  background: #fff;
}

.dainik-hajari-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.dainik-hajari-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.dainik-hajari-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.dainik-hajari-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* ???? - ???? - ??? ? staff-doc section card pattern */
.school-report-branding-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.school-report-branding-page .staff-doc-section-card .card-body {
  background: #fff;
}

.school-report-branding-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.school-report-branding-page .staff-doc-section-card__head--header {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.school-report-branding-page .staff-doc-section-card__head--seal {
  background: linear-gradient(125deg, #7f1d1d 0%, #b91c1c 45%, #dc2626 100%);
}

.school-report-branding-page .staff-doc-section-card__head--sign {
  background: linear-gradient(125deg, #312e81 0%, #7c3aed 55%, #a855f7 100%);
}

/* ???? ?????? ? staff-doc section card pattern */
.school-general-info-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.school-general-info-page .staff-doc-section-card .card-body {
  background: #fff;
}

.school-general-info-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.school-general-info-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.school-general-info-page .staff-doc-section-card__head--contact {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.school-general-info-page .staff-doc-section-card__head--detail {
  background: linear-gradient(125deg, #065f46 0%, #059669 50%, #34d399 100%);
}

.school-general-info-page .staff-doc-section-card__head--other {
  background: linear-gradient(125deg, #6b21a8 0%, #9333ea 50%, #c084fc 100%);
}

.school-general-info-page .staff-doc-section-card.staff-doc-picker-card,
.school-general-info-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.school-general-info-page #districtComboWrap {
  position: relative;
  z-index: 2;
}

.school-general-info-page #districtComboList {
  z-index: 1080;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

/* ડેસ્કટૉપ: ગુજરાતી | English સમાન 2-કૉલમ જોડી */
.school-general-info-page .gi-field-pair > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.school-general-info-page .gi-field-pair .form-label {
  min-height: 1.35rem;
}

.school-general-info-page .gi-field-pair .form-control,
.school-general-info-page .gi-field-pair .form-select {
  min-height: 2.5rem;
}

.school-general-info-page .gi-eng,
.school-general-info-page .gi-eng:focus {
  background-color: #fff9db !important;
}

.school-general-info-page .gi-eng:disabled,
.school-general-info-page .gi-eng[readonly] {
  background-color: #f7efc4 !important;
}

.school-general-info-page .gi-shared-hint {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.school-general-info-page #talukaComboWrap {
  position: relative;
  z-index: 1;
}

.school-general-info-page #talukaComboList {
  z-index: 1070;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

@media (min-width: 768px) {
  .school-general-info-page .gi-lang-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.35rem;
  }

  .school-general-info-page .gi-lang-badge--gu {
    background: #fce7f3;
    color: #9d174d;
  }

  .school-general-info-page .gi-lang-badge--en {
    background: #fef3c7;
    color: #92400e;
  }
}

/* Health entry / blood-olakh / student bank ? staff-doc section card pattern */
.health-entry-page .staff-doc-section-card.staff-doc-picker-card,
.health-entry-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.health-other-entry-page .staff-doc-section-card.staff-doc-picker-card,
.health-other-entry-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.student-bank-info-page .staff-doc-section-card.staff-doc-picker-card,
.student-bank-info-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.health-entry-page #stuComboWrap,
.health-other-entry-page #stuComboWrap,
.student-bank-info-page #stuComboWrap {
  position: relative;
  z-index: 2;
}

.health-entry-page #stuComboList,
.health-other-entry-page #stuComboList,
.student-bank-info-page #stuComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.health-entry-page .staff-doc-section-card,
.health-other-entry-page .staff-doc-section-card,
.student-bank-info-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.health-entry-page .staff-doc-section-card .card-body,
.health-other-entry-page .staff-doc-section-card .card-body,
.student-bank-info-page .staff-doc-section-card .card-body {
  background: #fff;
}

.health-entry-page .staff-doc-section-card__head,
.health-other-entry-page .staff-doc-section-card__head,
.student-bank-info-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.health-entry-page .staff-doc-section-card__head--staff,
.health-other-entry-page .staff-doc-section-card__head--staff,
.student-bank-info-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.health-entry-page .staff-doc-section-card__head--codes,
.health-other-entry-page .staff-doc-section-card__head--codes,
.student-bank-info-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.health-entry-page .staff-doc-section-card__head--health-ref {
  background: linear-gradient(125deg, #7f1d1d 0%, #b91c1c 45%, #dc2626 100%);
}

.health-entry-page .he-mode-seg {
  display: flex;
  width: 100%;
  padding: 0.28rem;
  gap: 0.28rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #faf7f8 0%, #f0e8eb 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  box-shadow: inset 0 1px 2px rgba(79, 10, 26, 0.04);
}
.health-entry-page .he-mode-seg > .btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.health-entry-page .he-mode-seg__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent;
  color: #6b4a52;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: none !important;
}
.health-entry-page .he-mode-seg__btn:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--digi-accent);
}
.health-entry-page .he-mode-seg .btn-check:checked + .he-mode-seg__btn {
  background: linear-gradient(180deg, #9a1f3d 0%, #7a152f 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(122, 21, 47, 0.28) !important;
}
.health-entry-page #classGridCard {
  overflow: visible;
}
.health-entry-page .school-user-table--health-class {
  width: 100%;
  table-layout: fixed;
}
.health-entry-page .school-user-table--health-class .he-col-roll { width: 4.2rem; }
.health-entry-page .school-user-table--health-class .he-col-gr { width: 5.2rem; }
.health-entry-page .school-user-table--health-class .he-col-w,
.health-entry-page .school-user-table--health-class .he-col-h { width: 7.2rem; }
.health-entry-page .school-user-table--health-class .he-col-bmi { width: 6.2rem; }
.health-entry-page .school-user-table--health-class .js-class-weight,
.health-entry-page .school-user-table--health-class .js-class-height {
  min-width: 0;
  width: 100%;
}

/* ===== ????? ??????? (CET / NMMS / ?) ? staff-doc section card pattern ===== */
.student-cet-exam-page .school-user-page-title,
.student-nmms-exam-page .school-user-page-title,
.student-gyan-sadhana-exam-page .school-user-page-title,
.student-jawahar-navodaya-exam-page .school-user-page-title,
.student-pse-exam-page .school-user-page-title,
.student-chitrakam-exam-page .school-user-page-title,
.student-cet-exam-page .form-label,
.student-nmms-exam-page .form-label,
.student-gyan-sadhana-exam-page .form-label,
.student-jawahar-navodaya-exam-page .form-label,
.student-pse-exam-page .form-label,
.student-chitrakam-exam-page .form-label,
.student-cet-exam-page .form-text,
.student-nmms-exam-page .form-text,
.student-gyan-sadhana-exam-page .form-text,
.student-jawahar-navodaya-exam-page .form-text,
.student-pse-exam-page .form-text,
.student-chitrakam-exam-page .form-text {
  color: var(--digi-accent) !important;
}

.student-cet-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-nmms-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-gyan-sadhana-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-jawahar-navodaya-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-pse-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-chitrakam-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-cet-exam-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.student-nmms-exam-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.student-gyan-sadhana-exam-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.student-jawahar-navodaya-exam-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.student-pse-exam-page .staff-doc-section-card.staff-doc-picker-card .card-body,
.student-chitrakam-exam-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.student-cet-exam-page #stuComboWrap,
.student-nmms-exam-page #stuComboWrap,
.student-gyan-sadhana-exam-page #stuComboWrap,
.student-jawahar-navodaya-exam-page #stuComboWrap,
.student-pse-exam-page #stuComboWrap,
.student-chitrakam-exam-page #stuComboWrap {
  position: relative;
  z-index: 2;
}

.student-cet-exam-page #stuComboList,
.student-nmms-exam-page #stuComboList,
.student-gyan-sadhana-exam-page #stuComboList,
.student-jawahar-navodaya-exam-page #stuComboList,
.student-pse-exam-page #stuComboList,
.student-chitrakam-exam-page #stuComboList {
  z-index: 1080;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.18);
}

.student-cet-exam-page .staff-doc-section-card,
.student-nmms-exam-page .staff-doc-section-card,
.student-gyan-sadhana-exam-page .staff-doc-section-card,
.student-jawahar-navodaya-exam-page .staff-doc-section-card,
.student-pse-exam-page .staff-doc-section-card,
.student-chitrakam-exam-page .staff-doc-section-card {
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.student-cet-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-nmms-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-gyan-sadhana-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-jawahar-navodaya-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-pse-exam-page .staff-doc-section-card.staff-doc-picker-card,
.student-chitrakam-exam-page .staff-doc-section-card.staff-doc-picker-card {
  overflow: visible;
}

.student-cet-exam-page .staff-doc-section-card.staff-doc-picker-card > .staff-doc-section-card__head:first-child,
.student-nmms-exam-page .staff-doc-section-card.staff-doc-picker-card > .staff-doc-section-card__head:first-child,
.student-gyan-sadhana-exam-page .staff-doc-section-card.staff-doc-picker-card > .staff-doc-section-card__head:first-child,
.student-jawahar-navodaya-exam-page .staff-doc-section-card.staff-doc-picker-card > .staff-doc-section-card__head:first-child,
.student-pse-exam-page .staff-doc-section-card.staff-doc-picker-card > .staff-doc-section-card__head:first-child,
.student-chitrakam-exam-page .staff-doc-section-card.staff-doc-picker-card > .staff-doc-section-card__head:first-child {
  border-radius: 14px 14px 0 0;
}

.student-cet-exam-page .staff-doc-section-card.staff-doc-picker-card > .card-body,
.student-nmms-exam-page .staff-doc-section-card.staff-doc-picker-card > .card-body,
.student-gyan-sadhana-exam-page .staff-doc-section-card.staff-doc-picker-card > .card-body,
.student-jawahar-navodaya-exam-page .staff-doc-section-card.staff-doc-picker-card > .card-body,
.student-pse-exam-page .staff-doc-section-card.staff-doc-picker-card > .card-body,
.student-chitrakam-exam-page .staff-doc-section-card.staff-doc-picker-card > .card-body {
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.student-cet-exam-page .staff-doc-section-card .card-body,
.student-nmms-exam-page .staff-doc-section-card .card-body,
.student-gyan-sadhana-exam-page .staff-doc-section-card .card-body,
.student-jawahar-navodaya-exam-page .staff-doc-section-card .card-body,
.student-pse-exam-page .staff-doc-section-card .card-body,
.student-chitrakam-exam-page .staff-doc-section-card .card-body {
  background: #fff;
}

.student-cet-exam-page .staff-doc-section-card__head,
.student-nmms-exam-page .staff-doc-section-card__head,
.student-gyan-sadhana-exam-page .staff-doc-section-card__head,
.student-jawahar-navodaya-exam-page .staff-doc-section-card__head,
.student-pse-exam-page .staff-doc-section-card__head,
.student-chitrakam-exam-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.student-cet-exam-page .staff-doc-section-card__head--staff,
.student-nmms-exam-page .staff-doc-section-card__head--staff,
.student-gyan-sadhana-exam-page .staff-doc-section-card__head--staff,
.student-jawahar-navodaya-exam-page .staff-doc-section-card__head--staff,
.student-pse-exam-page .staff-doc-section-card__head--staff,
.student-chitrakam-exam-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.student-cet-exam-page .staff-doc-section-card__head--list,
.student-nmms-exam-page .staff-doc-section-card__head--list,
.student-gyan-sadhana-exam-page .staff-doc-section-card__head--list,
.student-jawahar-navodaya-exam-page .staff-doc-section-card__head--list,
.student-pse-exam-page .staff-doc-section-card__head--list,
.student-chitrakam-exam-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.student-cet-exam-page .staff-doc-section-card__head--list .staff-doc-list-count,
.student-nmms-exam-page .staff-doc-section-card__head--list .staff-doc-list-count,
.student-gyan-sadhana-exam-page .staff-doc-section-card__head--list .staff-doc-list-count,
.student-jawahar-navodaya-exam-page .staff-doc-section-card__head--list .staff-doc-list-count,
.student-pse-exam-page .staff-doc-section-card__head--list .staff-doc-list-count,
.student-chitrakam-exam-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.35;
}

.student-cet-exam-page #gridCard.staff-doc-section-card,
.student-nmms-exam-page #gridCard.staff-doc-section-card,
.student-gyan-sadhana-exam-page #gridCard.staff-doc-section-card,
.student-jawahar-navodaya-exam-page #gridCard.staff-doc-section-card,
.student-pse-exam-page #gridCard.staff-doc-section-card,
.student-chitrakam-exam-page #gridCard.staff-doc-section-card {
  overflow: hidden;
}

.student-cet-exam-page #gridCard > .staff-doc-section-card__head:first-child,
.student-nmms-exam-page #gridCard > .staff-doc-section-card__head:first-child,
.student-gyan-sadhana-exam-page #gridCard > .staff-doc-section-card__head:first-child,
.student-jawahar-navodaya-exam-page #gridCard > .staff-doc-section-card__head:first-child,
.student-pse-exam-page #gridCard > .staff-doc-section-card__head:first-child,
.student-chitrakam-exam-page #gridCard > .staff-doc-section-card__head:first-child {
  border-radius: 14px 14px 0 0;
}

.student-cet-exam-page .student-cet-exam-card-body,
.student-nmms-exam-page .student-nmms-exam-card-body,
.student-gyan-sadhana-exam-page .student-gyan-sadhana-exam-card-body,
.student-jawahar-navodaya-exam-page .student-jawahar-navodaya-exam-card-body,
.student-pse-exam-page .student-pse-exam-card-body,
.student-chitrakam-exam-page .student-chitrakam-exam-card-body {
  overflow: hidden;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf2 100%);
  border-radius: 0 0 14px 14px;
}

.student-cet-exam-page .student-cet-exam-scroll,
.student-nmms-exam-page .student-nmms-exam-scroll,
.student-gyan-sadhana-exam-page .student-gyan-sadhana-exam-scroll,
.student-jawahar-navodaya-exam-page .student-jawahar-navodaya-exam-scroll,
.student-pse-exam-page .student-pse-exam-scroll,
.student-chitrakam-exam-page .student-chitrakam-exam-scroll {
  margin: 0.75rem 1rem 1rem;
  padding: 0 !important;
  overflow: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.student-cet-exam-page .school-user-grid-scroll.school-user-grid-scroll--data-grid.student-cet-exam-scroll,
.student-nmms-exam-page .school-user-grid-scroll.school-user-grid-scroll--data-grid.student-nmms-exam-scroll,
.student-gyan-sadhana-exam-page .school-user-grid-scroll.school-user-grid-scroll--data-grid.student-gyan-sadhana-exam-scroll,
.student-jawahar-navodaya-exam-page .school-user-grid-scroll.school-user-grid-scroll--data-grid.student-jawahar-navodaya-exam-scroll,
.student-pse-exam-page .school-user-grid-scroll.school-user-grid-scroll--data-grid.student-pse-exam-scroll,
.student-chitrakam-exam-page .school-user-grid-scroll.school-user-grid-scroll--data-grid.student-chitrakam-exam-scroll {
  max-height: min(70vh, 520px);
}

.student-cet-exam-page #cetGrid .form-check-input,
.student-nmms-exam-page #nmmsGrid .form-check-input,
.student-gyan-sadhana-exam-page #gyan-sadhanaGrid .form-check-input,
.student-jawahar-navodaya-exam-page #jawahar-navodayaGrid .form-check-input,
.student-pse-exam-page #pseGrid .form-check-input,
.student-chitrakam-exam-page #chitrakamGrid .form-check-input {
  cursor: pointer;
}

.student-cet-exam-page #cetGrid .js-obtained-input,
.student-nmms-exam-page #nmmsGrid .js-obtained-input,
.student-gyan-sadhana-exam-page #gyan-sadhanaGrid .js-obtained-input,
.student-jawahar-navodaya-exam-page #jawahar-navodayaGrid .js-obtained-input,
.student-pse-exam-page #pseGrid .js-obtained-input,
.student-chitrakam-exam-page #chitrakamGrid .js-obtained-input {
  min-width: 4.5rem;
}

.student-cet-exam-page .school-user-table--cet-grid,
.student-nmms-exam-page .school-user-table--nmms-grid,
.student-gyan-sadhana-exam-page .school-user-table--gyan-sadhana-grid,
.student-jawahar-navodaya-exam-page .school-user-table--jawahar-navodaya-grid,
.student-pse-exam-page .school-user-table--pse-grid,
.student-chitrakam-exam-page .school-user-table--chitrakam-grid {
  min-width: 1180px;
}

/* ===== ????? ??????? ? Summary Report (tabular) ===== */
.student-cet-exam-page .cet-summary-head-icon,
.student-nmms-exam-page .nmms-summary-head-icon,
.student-gyan-sadhana-exam-page .gyan-sadhana-summary-head-icon,
.student-jawahar-navodaya-exam-page .jawahar-navodaya-summary-head-icon,
.student-pse-exam-page .pse-summary-head-icon,
.student-chitrakam-exam-page .chitrakam-summary-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  box-shadow: 0 0.15rem 0.45rem rgba(21, 101, 192, 0.35);
}

.student-cet-exam-page #cetSummaryCard,
.student-nmms-exam-page #nmmsSummaryCard,
.student-gyan-sadhana-exam-page #gyan-sadhanaSummaryCard,
.student-jawahar-navodaya-exam-page #jawahar-navodayaSummaryCard,
.student-pse-exam-page #pseSummaryCard,
.student-chitrakam-exam-page #chitrakamSummaryCard {
  overflow: hidden;
}

.cet-summary-report,
.nmms-summary-report,
.gyan-sadhana-summary-report,
.jawahar-navodaya-summary-report,
.pse-summary-report,
.chitrakam-summary-report {
  font-family: "Noto Sans Gujarati", "Nirmala UI", Arial, sans-serif;
  color: #1a1a1a;
}

.cet-summary-report--screen,
.nmms-summary-report--screen,
.gyan-sadhana-summary-report--screen,
.jawahar-navodaya-summary-report--screen,
.pse-summary-report--screen,
.chitrakam-summary-report--screen {
  padding: 1.25rem 1.35rem 1.4rem;
  background: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cet-summary-report--screen.cet-summary-report--in,
.nmms-summary-report--screen.nmms-summary-report--in,
.gyan-sadhana-summary-report--screen.gyan-sadhana-summary-report--in,
.jawahar-navodaya-summary-report--screen.jawahar-navodaya-summary-report--in,
.pse-summary-report--screen.pse-summary-report--in,
.chitrakam-summary-report--screen.chitrakam-summary-report--in {
  opacity: 1;
  transform: translateY(0);
}

.cet-summary-report__head,
.nmms-summary-report__head,
.gyan-sadhana-summary-report__head,
.jawahar-navodaya-summary-report__head,
.pse-summary-report__head,
.chitrakam-summary-report__head {
  text-align: center;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #1565c0;
}

.cet-summary-report__title,
.nmms-summary-report__title,
.gyan-sadhana-summary-report__title,
.jawahar-navodaya-summary-report__title,
.pse-summary-report__title,
.chitrakam-summary-report__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0d47a1;
  text-transform: none;
}

.cet-summary-report__meta,
.nmms-summary-report__meta,
.gyan-sadhana-summary-report__meta,
.jawahar-navodaya-summary-report__meta,
.pse-summary-report__meta,
.chitrakam-summary-report__meta {
  font-size: 0.88rem;
  color: #455a64;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

.cet-summary-report__meta-label,
.nmms-summary-report__meta-label,
.gyan-sadhana-summary-report__meta-label,
.jawahar-navodaya-summary-report__meta-label,
.pse-summary-report__meta-label,
.chitrakam-summary-report__meta-label {
  font-weight: 600;
  color: #546e7a;
}

.cet-summary-report__meta-sep,
.nmms-summary-report__meta-sep,
.gyan-sadhana-summary-report__meta-sep,
.jawahar-navodaya-summary-report__meta-sep,
.pse-summary-report__meta-sep,
.chitrakam-summary-report__meta-sep {
  color: #b0bec5;
  font-weight: 300;
}

.cet-summary-report__section,
.nmms-summary-report__section,
.gyan-sadhana-summary-report__section,
.jawahar-navodaya-summary-report__section,
.pse-summary-report__section,
.chitrakam-summary-report__section {
  margin-bottom: 1rem;
}

.cet-summary-report__section:last-child,
.nmms-summary-report__section:last-child,
.gyan-sadhana-summary-report__section:last-child,
.jawahar-navodaya-summary-report__section:last-child,
.pse-summary-report__section:last-child,
.chitrakam-summary-report__section:last-child {
  margin-bottom: 0;
}

.cet-summary-report__section-title,
.nmms-summary-report__section-title,
.gyan-sadhana-summary-report__section-title,
.jawahar-navodaya-summary-report__section-title,
.pse-summary-report__section-title,
.chitrakam-summary-report__section-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #37474f;
  padding-left: 0.5rem;
  border-left: 3px solid #1565c0;
}

.cet-summary-report__table-wrap,
.nmms-summary-report__table-wrap,
.gyan-sadhana-summary-report__table-wrap,
.jawahar-navodaya-summary-report__table-wrap,
.pse-summary-report__table-wrap,
.chitrakam-summary-report__table-wrap {
  border-radius: 0.35rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cet-summary-report__table,
.nmms-summary-report__table,
.gyan-sadhana-summary-report__table,
.jawahar-navodaya-summary-report__table,
.pse-summary-report__table,
.chitrakam-summary-report__table {
  margin-bottom: 0;
  font-size: 0.875rem;
  --bs-table-bg: #fff;
}

.cet-summary-report__table thead th,
.nmms-summary-report__table thead th,
.gyan-sadhana-summary-report__table thead th,
.jawahar-navodaya-summary-report__table thead th,
.pse-summary-report__table thead th,
.chitrakam-summary-report__table thead th {
  background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
  border-color: #90caf9 !important;
  vertical-align: middle;
  white-space: nowrap;
}

.cet-summary-report__table tbody td,
.nmms-summary-report__table tbody td,
.gyan-sadhana-summary-report__table tbody td,
.jawahar-navodaya-summary-report__table tbody td,
.pse-summary-report__table tbody td,
.chitrakam-summary-report__table tbody td {
  padding: 0.45rem 0.65rem;
  border-color: #e0e0e0 !important;
  vertical-align: middle;
}

.cet-summary-report__table--overview tbody td,
.nmms-summary-report__table--overview tbody td,
.gyan-sadhana-summary-report__table--overview tbody td,
.jawahar-navodaya-summary-report__table--overview tbody td,
.pse-summary-report__table--overview tbody td,
.chitrakam-summary-report__table--overview tbody td {
  font-size: 1.05rem;
  color: #1565c0;
  background: #fafcff;
}

.cet-summary-report__total-row td,
.nmms-summary-report__total-row td,
.gyan-sadhana-summary-report__total-row td,
.jawahar-navodaya-summary-report__total-row td,
.pse-summary-report__total-row td,
.chitrakam-summary-report__total-row td {
  background: #f5f5f5 !important;
  border-top: 2px solid #bdbdbd !important;
}

.cet-summary-print-body .cet-summary-report,
.nmms-summary-print-body .nmms-summary-report,
.gyan-sadhana-summary-print-body .gyan-sadhana-summary-report,
.jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report,
.pse-summary-print-body .pse-summary-report,
.chitrakam-summary-print-body .chitrakam-summary-report {
  padding: 0;
}

.cet-summary-print-body .cet-summary-report__head,
.nmms-summary-print-body .nmms-summary-report__head,
.gyan-sadhana-summary-print-body .gyan-sadhana-summary-report__head,
.jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report__head,
.pse-summary-print-body .pse-summary-report__head,
.chitrakam-summary-print-body .chitrakam-summary-report__head {
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.cet-summary-print-body .cet-summary-report__title,
.nmms-summary-print-body .nmms-summary-report__title,
.gyan-sadhana-summary-print-body .gyan-sadhana-summary-report__title,
.jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report__title,
.pse-summary-print-body .pse-summary-report__title,
.chitrakam-summary-print-body .chitrakam-summary-report__title {
  font-size: 1.1rem;
}

.cet-summary-print-body .cet-summary-report__table,
.nmms-summary-print-body .nmms-summary-report__table,
.gyan-sadhana-summary-print-body .gyan-sadhana-summary-report__table,
.jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report__table,
.pse-summary-print-body .pse-summary-report__table,
.chitrakam-summary-print-body .chitrakam-summary-report__table {
  font-size: 0.82rem;
}

.cet-summary-print-body .cet-summary-report__table thead th,
.nmms-summary-print-body .nmms-summary-report__table thead th,
.gyan-sadhana-summary-print-body .gyan-sadhana-summary-report__table thead th,
.jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report__table thead th,
.pse-summary-print-body .pse-summary-report__table thead th,
.chitrakam-summary-print-body .chitrakam-summary-report__table thead th {
  font-size: 0.76rem;
  padding: 0.35rem 0.5rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.cet-summary-print-body .cet-summary-report__table--overview tbody td,
.nmms-summary-print-body .nmms-summary-report__table--overview tbody td,
.gyan-sadhana-summary-print-body .gyan-sadhana-summary-report__table--overview tbody td,
.jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report__table--overview tbody td,
.pse-summary-print-body .pse-summary-report__table--overview tbody td,
.chitrakam-summary-print-body .chitrakam-summary-report__table--overview tbody td,
.cet-summary-print-body .cet-summary-report__total-row td,
.nmms-summary-print-body .nmms-summary-report__total-row td,
.gyan-sadhana-summary-print-body .gyan-sadhana-summary-report__total-row td,
.jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report__total-row td,
.pse-summary-print-body .pse-summary-report__total-row td,
.chitrakam-summary-print-body .chitrakam-summary-report__total-row td {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media print {
  .cet-summary-print-body .cet-summary-report__table thead th,
  .nmms-summary-print-body .nmms-summary-report__table thead th,
  .gyan-sadhana-summary-print-body .gyan-sadhana-summary-report__table thead th,
  .jawahar-navodaya-summary-print-body .jawahar-navodaya-summary-report__table thead th,
  .pse-summary-print-body .pse-summary-report__table thead th,
  .chitrakam-summary-print-body .chitrakam-summary-report__table thead th {
    background: #e3f2fd !important;
  }
}

/* બાહ્ય પરીક્ષા — વિદ્યાર્થી યાદી ટૂલબાર + column filter (bahya-pariksha-grid.js) */
.bp-list-toolbar {
  margin: 0.75rem 1rem 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* ફિલ્ટર થીવ પર `position: relative` ન લગાવતાં — નહીં તો `sticky` હેડર તૂટે */
.bp-grid-table thead th[data-filter-key] {
  padding-right: 2rem;
  white-space: nowrap;
}

.bp-grid-table .grv-th-label {
  display: inline-block;
  vertical-align: middle;
}

.bp-grid-table .grv-filter-btn {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  line-height: 1.15rem;
  font-size: 0.95rem;
  padding: 0;
}

.bp-grid-table .grv-filter-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.bp-grid-table .grv-filter-btn.grv-filter-btn--active {
  background: #fff;
  color: #5a0b1b;
  font-weight: 700;
}

.staff-entry-page .staff-grid-table {
  min-width: 2200px;
}
.staff-entry-page .staff-grid-table th,
.staff-entry-page .staff-grid-table td {
  white-space: nowrap;
  font-size: 0.82rem;
}
.staff-entry-page #gridTable thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  color: #fff;
}
.staff-entry-page #gridTable thead th.staff-sticky-actions {
  z-index: 7;
}

/* ????? ?????: ???????? ??. left-sticky; ?????? ???? sticky ???? */
.staff-training-page #gridTable thead th.staff-sticky-actions,
.staff-training-page #gridTable tbody td.staff-sticky-actions {
  position: static;
  right: auto;
  z-index: auto;
  box-shadow: none;
  border-left: none;
  background: inherit;
}
.staff-training-page #gridTable thead th.staff-sticky-empno,
.staff-training-page #gridTable tbody td.staff-sticky-empno {
  position: sticky;
  left: 0;
  z-index: 5;
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 rgba(90, 11, 27, 0.12), 2px 0 10px rgba(35, 10, 16, 0.06);
}
.staff-training-page #gridTable thead th.staff-sticky-empno {
  z-index: 7;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  color: #fff;
}
.staff-training-page #gridTable tbody td.staff-sticky-empno {
  background: #fff;
}
.staff-training-page #gridTable tbody tr:nth-child(even) td.staff-sticky-empno {
  background: #faf7f8;
}

.gr-entry-page .school-user-card {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.86) 100%);
  box-shadow: 0 14px 40px rgba(35, 10, 16, 0.10);
}

.gr-entry-page .school-user-toolbar {
  padding: 10px 16px 12px 16px;
}

.gr-entry-page .school-user-grid-scroll {
  border-top: 1px solid rgba(90, 11, 27, 0.08);
}

.gr-entry-page .school-user-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* Header background/color should match MstStandard grid (global styles). */
}

.gr-entry-page .school-user-table tbody tr[data-row] {
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.gr-entry-page .school-user-table tbody tr[data-row]:hover {
  background: rgba(138, 21, 48, 0.04);
  box-shadow: inset 0 0 0 1px rgba(138, 21, 48, 0.10);
}

.gr-entry-page .school-user-actions .school-user-btn {
  border-radius: 12px;
}

.gr-entry-page .gr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(90, 11, 27, 0.14);
  background: rgba(255,255,255,0.7);
}

.gr-entry-page .gr-pill--grno {
  border-color: rgba(138, 21, 48, 0.20);
  color: rgba(90, 11, 27, 0.92);
}

.gr-entry-page .gr-offcanvas {
  --bs-offcanvas-width: min(520px, 92vw);
}

/* ગ્રિડ ઉપરનો આડો scrollbar — digi-grid-dual-scroll.js (નીચેનો = ગ્રિડનો પોતાનો) */
.digi-grid-top-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  max-width: 100%;
  flex: 0 0 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 31, 43, 0.45) rgba(122, 31, 43, 0.08);
}

.digi-grid-top-scroll__inner {
  height: 1px;
}

@media print {
  .digi-grid-top-scroll {
    display: none !important;
  }
}

/* School Tabulator grid (GrEntry, GrView) */
.digi-school-tabulator-grid .digi-tabulator-scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.digi-school-tabulator-grid .digi-tabulator-host {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 760px;
}

.digi-school-tabulator-grid .tabulator {
  border: none;
  background: transparent;
  font-size: inherit;
}

.digi-school-tabulator-grid .tabulator .tabulator-header {
  border: none;
  background: transparent;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col {
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  border: none;
  color: #fff;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 10px 10px;
  position: relative;
  box-sizing: border-box;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col .tabulator-col-title {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
  background: linear-gradient(135deg, #a81e38 0%, #86122e 48%, #650d20 100%);
  color: #fff;
}

/* Sorting on ? icon hidden (text overlap); click header title to sort */
.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-sorter {
  display: none !important;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
  cursor: pointer;
}

.digi-school-tabulator-grid .tabulator .tabulator-tableholder {
  overflow-x: auto;
  overflow-y: auto;
}

.digi-school-tabulator-grid .tabulator .tabulator-row {
  background: #fffefd;
  border-bottom: 1px solid rgba(122, 41, 41, 0.08);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.digi-school-tabulator-grid .tabulator .tabulator-row.tabulator-row-even {
  background: #faf8f6;
}

.digi-school-tabulator-grid .tabulator .tabulator-row:hover {
  background: rgba(138, 21, 48, 0.04);
}

.digi-school-tabulator-grid .tabulator .tabulator-row .tabulator-cell {
  padding: 11px 14px;
  border: none;
  vertical-align: middle;
}

.digi-school-tabulator-grid .tabulator .tabulator-row.gr-row--deactive .tabulator-cell {
  background: #ffe6e8 !important;
}

.digi-school-tabulator-grid .tabulator .tabulator-row.gr-row--deactive:hover .tabulator-cell {
  background: #ffd9dd !important;
}

/* Tabulator — freeze right action column (desktop/tablet; opaque fill; not mobile) */
@media (min-width: 768px) {
  .digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.tabulator-frozen.tabulator-frozen-right {
    left: auto !important;
    right: 0;
    z-index: 12;
    background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
    box-shadow: -8px 0 14px rgba(35, 10, 16, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .digi-school-tabulator-grid .tabulator .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
    left: auto !important;
    right: 0;
    z-index: 3;
    background-color: #fffefd !important;
    background-clip: padding-box;
    box-shadow: -8px 0 14px rgba(35, 10, 16, 0.1);
    border-left: 1px solid rgba(90, 11, 27, 0.12);
  }

  .digi-school-tabulator-grid .tabulator .tabulator-row.tabulator-row-even .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
    background-color: #faf8f6 !important;
  }

  .digi-school-tabulator-grid .tabulator .tabulator-row:hover .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
    background-color: #f6ecee !important;
  }

  .digi-school-tabulator-grid .tabulator .tabulator-row.tabulator-row-even:hover .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
    background-color: #f3e8eb !important;
  }

  .digi-school-tabulator-grid .tabulator .tabulator-row.gr-row--deactive .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
    background-color: #ffe6e8 !important;
  }

  .digi-school-tabulator-grid .tabulator .tabulator-row.gr-row--deactive:hover .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
    background-color: #ffd9dd !important;
  }
}

@media (max-width: 767.98px) {
  .digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.tabulator-frozen.tabulator-frozen-right,
  .digi-school-tabulator-grid .tabulator .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right {
    position: static !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    box-shadow: none;
    border-left: none;
  }
}

.digi-school-tabulator-grid .tabulator .tabulator-placeholder {
  padding: 2.5rem 1rem;
  color: rgba(35, 10, 16, 0.55);
  text-align: center;
}

/* Header: [title ??] [sort ?] [filter ?] ? title ellipsis, icons fixed right */
.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.digi-tab-col--has-filter .tabulator-col-content {
  padding-right: 2.15rem !important;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.digi-tab-col--has-filter .tabulator-col-title {
  padding-right: 0.15rem;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.digi-tab-col--has-filter .grv-filter-btn,
.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.digi-tab-col--has-filter .digi-tab-filter-btn {
  position: absolute;
  right: 0.28rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.22rem;
  padding: 0;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  pointer-events: auto;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .grv-filter-btn svg,
.digi-school-tabulator-grid .tabulator .tabulator-header .digi-tab-filter-btn svg {
  display: block;
  width: 8px;
  height: 8px;
  pointer-events: none;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .grv-filter-btn:hover,
.digi-school-tabulator-grid .tabulator .tabulator-header .digi-tab-filter-btn:hover {
  background: rgba(255, 255, 255, 0.38);
}

.digi-school-tabulator-grid .tabulator .tabulator-header .grv-filter-btn.grv-filter-btn--active,
.digi-school-tabulator-grid .tabulator .tabulator-header .digi-tab-filter-btn.grv-filter-btn--active {
  background: #fff;
  color: #5a0b1b;
  font-weight: 700;
  box-shadow: 0 0 0 2px #ffc107;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.digi-tab-col--filtered {
  background: linear-gradient(135deg, #c42240 0%, #9a1530 48%, #6e0d22 100%) !important;
  box-shadow: inset 0 -3px 0 #ffc107;
}

.digi-school-tabulator-grid .digi-tabulator-scroll {
  position: relative;
}

.digi-school-tabulator-grid .digi-tabulator-scroll--loading .digi-tabulator-host {
  visibility: hidden;
  pointer-events: none;
}

.digi-school-tabulator-grid .digi-tabulator-loading {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  min-height: calc(3.35rem + 10 * 2.8125rem);
}

.digi-school-tabulator-grid .digi-tabulator-loading.d-none {
  display: none !important;
}

.digi-school-tabulator-grid .digi-tabulator-loading__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(90, 11, 27, 0.12);
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 10, 16, 0.08);
}

.digi-school-tabulator-grid .digi-tabulator-loading__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--digi-accent, #5a0b1b);
}

.digi-grid-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a0b1b;
  background: rgba(255, 193, 7, 0.22);
  border: 1px solid rgba(255, 193, 7, 0.65);
}

.digi-filter-control--active,
.digi-school-tabulator-grid .school-user-toolbar .digi-filter-control--active {
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.28) !important;
  background-color: #fffdf5 !important;
}

.digi-filter-panel--active.gr-view-shortcut-card {
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.45);
}

.digi-filter-panel--active.gr-view-shortcut-card .staff-doc-section-card__head--codes::after {
  content: " ? ?????? ????";
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
}

.grv-filter-popover {
  position: fixed;
  z-index: 1060;
  width: 320px;
  max-width: calc(100vw - 1.5rem);
  max-height: min(520px, calc(100vh - 1.5rem));
  background: #fff;
  border: 1px solid rgba(90, 11, 27, 0.14);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(35, 10, 16, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.grv-filter-popover.d-none {
  display: none !important;
}

.grv-filter-popover .grv-filter-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(90, 11, 27, 0.1);
  background: linear-gradient(180deg, #faf8f6 0%, #fff 100%);
}

.grv-filter-popover .grv-filter-popover__tools {
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(90, 11, 27, 0.08);
}

.grv-filter-popover .grv-filter-popover__list {
  overflow: auto;
  padding: 0.5rem 0.75rem 0.75rem;
  max-height: min(280px, 40vh);
  flex: 1 1 auto;
  min-height: 0;
}

.grv-filter-popover .grv-filter-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.2rem 0;
}

.grv-filter-popover .grv-filter-item label {
  cursor: pointer;
  user-select: none;
}

.grv-filter-popover .grv-filter-item input {
  margin-top: 0.2rem;
}

.grv-filter-popover .grv-filter-adv {
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(90, 11, 27, 0.12);
}

.gr-view-page .gr-view-ctx-menu {
  position: fixed;
  z-index: 1080;
  min-width: 12rem;
  background: #fff;
  border: 1px solid rgba(90, 11, 27, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 10, 16, 0.15);
  padding: 0.25rem;
}

.gr-view-page .gr-view-ctx-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #5a0b1b;
}

.gr-view-page .gr-view-ctx-menu__item:hover {
  background: rgba(154, 26, 50, 0.08);
}

.gr-view-page .staff-doc-section-card.school-user-card {
  box-shadow: 0 10px 28px rgba(35, 10, 16, 0.08);
  margin-bottom: 0;
}

.gr-view-page .gr-view-shortcut-card {
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(7, 89, 133, 0.1);
}

.gr-view-page .gr-view-shortcut-card .form-label-sm {
  font-size: 0.78rem;
  color: rgba(35, 10, 16, 0.72);
  margin-bottom: 0.2rem;
}

.gr-view-page .gr-view-summary-card {
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(138, 21, 48, 0.08);
}

.gr-view-page .gr-view-summary-table {
  font-size: 0.86rem;
  background: #fff;
}

.gr-view-page .gr-view-summary-table th {
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}

/* GrView / GrEntry Tabulator ? title wrap + uniform header row height (JS syncWrapHeaderRowHeight) */
.gr-view-page.digi-school-tabulator-grid .tabulator .tabulator-header,
.gr-entry-page.digi-school-tabulator-grid .tabulator .tabulator-header {
  white-space: nowrap !important;
}

.gr-view-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-header-contents,
.gr-entry-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-header-contents {
  overflow: hidden;
}

.gr-view-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-headers,
.gr-entry-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-headers {
  white-space: nowrap !important;
}

.gr-view-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col,
.gr-entry-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col {
  white-space: normal;
  vertical-align: top !important;
  box-sizing: border-box;
}

.gr-view-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col .tabulator-col-content,
.gr-entry-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  box-sizing: border-box;
  min-height: 2.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.gr-view-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col .tabulator-col-title,
.gr-entry-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col .tabulator-col-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gr-view-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.digi-tab-col--has-filter .grv-filter-btn,
.gr-entry-page.digi-school-tabulator-grid .tabulator .tabulator-header .tabulator-col.digi-tab-col--has-filter .grv-filter-btn {
  top: 0.4rem;
  transform: none;
}

/* GRNo exists modal (modern, attention-grabbing) */
.grno-exists-modal {
  border-radius: 18px;
  border: 1px solid rgba(176, 42, 55, 0.18);
  box-shadow: 0 24px 60px rgba(79, 10, 26, 0.22);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,248,248,0.92) 100%);
}

.grno-exists-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(180deg, #e35d6a 0%, #b02a37 100%);
  box-shadow: 0 10px 24px rgba(176, 42, 55, 0.28);
}

.grno-exists-alert {
  background: linear-gradient(180deg, rgba(227,93,106,0.16) 0%, rgba(176,42,55,0.12) 100%);
  color: #842029;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(176, 42, 55, 0.12);
}

/* Form instruction modal (?????) */
.digi-form-suchana-modal {
  border-radius: 18px;
  overflow: hidden;
}

.digi-form-suchana-modal__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--digi-accent, #8a1530);
  background: rgba(138, 21, 48, 0.08);
}

.digi-form-suchana__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(45, 24, 16, 0.92);
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(138, 21, 48, 0.06) 0%, rgba(138, 21, 48, 0.03) 100%);
  border: 1px solid rgba(138, 21, 48, 0.1);
}

.digi-form-suchana__section {
  margin-bottom: 1.25rem;
}

.digi-form-suchana__section--warn {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.digi-form-suchana__heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--digi-accent, #8a1530);
  margin-bottom: 0.55rem;
}

.digi-form-suchana__steps,
.digi-form-suchana__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(45, 24, 16, 0.88);
}

.digi-form-suchana__steps li + li,
.digi-form-suchana__list li + li {
  margin-top: 0.4rem;
}

.digi-form-suchana__figure {
  margin: 1rem 0 0;
  text-align: center;
}

.digi-form-suchana__img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(138, 21, 48, 0.15);
  box-shadow: 0 8px 24px rgba(45, 24, 16, 0.1);
}

.digi-form-suchana__caption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: rgba(45, 24, 16, 0.65);
}

html {
  position: relative;
  min-height: 100%;
  height: 100%;
}

body {
  margin-bottom: 60px;
}

/* App shell: viewport-locked so form scroll never paints over drawer / topbar */
body:not(.auth-page) {
  margin-bottom: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.auth-page {
  margin-bottom: 0;
}

.app-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: #f6f6f7;
}

.app-drawer {
  width: 260px;
  background: linear-gradient(180deg, #8a1530 0%, #5a0b1b 100%);
  color: #fff;
  padding: 16px;
  position: relative;
  flex-shrink: 0;
  height: 100%;
  z-index: 1100;
  overflow-x: hidden;
}

.drawer-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(0, 0, 0, 0.18);
}

.drawer-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.drawer-nav-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  margin: 4px 0;
}

.drawer-nav-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.22) 100%);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.drawer-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.35) 100%);
  background-clip: padding-box;
}

/* Subscription status: Demo = yellow, Licensed = green, expired/blocked = red */
.sub-ton-demo {
  color: #ffe566 !important;
}

.sub-ton-licensed,
.sub-ton-ok {
  color: #9ef5c3 !important;
}

.sub-ton-bad {
  color: #ffb3be !important;
}

.sub-ton-demo-drawer {
  color: #ffe566;
}

.sub-ton-licensed-drawer,
.sub-ton-ok-drawer {
  color: #9ef5c3;
}

.sub-ton-bad-drawer {
  color: #ffb3be;
}

.subscription-drawer-footer {
  padding-bottom: 4px;
}

.drawer-offcanvas {
  background: linear-gradient(180deg, #8a1530 0%, #5a0b1b 100%);
  color: #fff;
  overflow-x: hidden;
}

.drawer-offcanvas .offcanvas-body {
  min-width: 0;
  overflow-x: hidden;
}

/* Mobile: drawer = 50% of viewport width */
@media (max-width: 767.98px) {
  #drawerOffcanvas.drawer-offcanvas {
    width: 50vw !important;
    max-width: 50vw;
  }
}

.drawer-offcanvas .drawer-link {
  background: rgba(255, 255, 255, 0.10);
}

/* School nav: main row + collapsible submenus */
.school-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

/* Main menu: round numbers (sub-menu uses square .sub-num) */
.main-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(145deg, #fff 0%, #f7e9ed 100%);
  color: var(--digi-accent, #8a1530);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.drawer-link:hover .main-num,
.drawer-toggle:hover .main-num {
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 3px 10px rgba(0, 0, 0, 0.28);
}

.drawer-toggle[aria-expanded="true"] .main-num {
  background: linear-gradient(145deg, #fff 0%, #f0d4dc 55%, #e8c4cf 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 2px rgba(255, 255, 255, 0.22),
    0 3px 10px rgba(0, 0, 0, 0.26);
}

/* Legacy class kept for any leftover markup */
.drawer-menu-icon {
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.school-nav-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  text-align: left;
}

.drawer-link .flex-grow-1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.drawer-link-dashboard:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.drawer-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.drawer-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.drawer-toggle[aria-expanded="true"] .drawer-chevron {
  transform: rotate(180deg);
}

.drawer-chevron {
  display: inline-block;
  transition: transform 160ms ease;
  opacity: 0.85;
  font-size: 0.85rem;
}

.drawer-submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 8px 8px;
  margin-left: 28px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.drawer-sublink {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.92rem;
  line-height: 1.35;
  border: 1px solid transparent;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow-wrap: anywhere;
}

.drawer-sublink:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.2) 100%);
  transform: translateX(2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.16);
}

.drawer-sublink:active {
  transform: translateX(1px) scale(0.99);
}

.sub-num {
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.drawer-sublink:hover .sub-num {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

/* School nav: General Master ? flyout to the right (dropend), escapes drawer overflow */
.school-nav-flyout-wrap {
  position: relative;
}

.drawer-sublink-flyout.dropdown-toggle::after {
  display: none !important;
}

.drawer-sublink-flyout {
  cursor: pointer;
}

.drawer-flyout-chevron {
  flex-shrink: 0;
  margin-left: 4px;
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1;
}

/* Flyout matches app-drawer maroon theme (not a separate white card) */
.drawer-master-flyout.dropdown-menu {
  --bs-dropdown-bg: transparent;
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-link-hover-color: inherit;
  --bs-dropdown-link-active-color: inherit;
  min-width: 11.5rem;
  padding: 6px;
  margin-top: 0 !important;
  /* .app-drawer (z-index:1100) ?? ??? ? fixed flyout drawer/content ???? ? ?????. */
  z-index: 1200;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(165deg, rgba(138, 21, 48, 0.98) 0%, rgba(90, 11, 27, 0.98) 45%, #4a0816 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 12px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.drawer-master-flyout.dropdown-menu.show {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

.drawer-master-flyout .drawer-master-flyout-item.dropdown-item {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.92rem;
  line-height: 1.35;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.14);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.drawer-master-flyout .drawer-master-flyout-item.dropdown-item:hover,
.drawer-master-flyout .drawer-master-flyout-item.dropdown-item:focus {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.22) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateX(2px);
}

.drawer-master-flyout .drawer-master-flyout-item.dropdown-item:active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.28) 100%);
  transform: translateX(1px) scale(0.99);
}

.drawer-master-flyout .drawer-master-flyout-item.dropdown-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 1px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 18px 8px;
}

.drawer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--digi-logo-bg);
  padding: 6px;
}

.drawer-title {
  line-height: 1.1;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  border: 1px solid transparent;
}

.drawer-link:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.10) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.22);
}

.drawer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.app-topbar {
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(90deg, #b01b34 0%, #8a1530 45%, #6f0f25 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(79, 10, 26, 0.18);
  position: relative;
  z-index: 1040;
  overflow: visible;
}

.topbar-left {
  flex: 1 1 auto;
}

.topbar-right {
  flex: 0 0 auto;
}

.digi-menu-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 28rem;
  width: 100%;
}

.digi-menu-search__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 38px;
  padding: 0 0.45rem 0 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: text;
}

.digi-menu-search--open .digi-menu-search__bar,
.digi-menu-search__bar:focus-within {
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.digi-menu-search__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.78);
}

.digi-menu-search__field {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent !important;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  padding: 0;
  appearance: none;
  color-scheme: light;
}

.digi-menu-search__field::placeholder {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.digi-menu-search__kbd {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  line-height: 1;
}

.digi-menu-search__toggle {
  display: none;
}

.digi-menu-search__close {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  line-height: 1;
}

.digi-menu-search__close:hover,
.digi-menu-search__close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
}

.digi-menu-search__field::-webkit-search-decoration,
.digi-menu-search__field::-webkit-search-cancel-button {
  appearance: none;
}

.digi-menu-search__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1080;
  min-width: 18rem;
  background: #fff;
  color: #212529;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(34, 5, 13, 0.28);
  border: 1px solid rgba(34, 5, 13, 0.12);
  padding: 0.4rem 0.4rem 0.35rem;
}

#digiMenuSearch .digi-menu-search__panel {
  right: auto;
  min-width: 24rem;
  width: max(100%, 34rem);
  max-width: min(40rem, calc(100vw - 1.25rem));
}

.digi-menu-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(32rem, 72vh);
  overflow: auto;
}

.digi-menu-search__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.25;
}

.digi-menu-search__item:hover,
.digi-menu-search__item.is-active {
  background: rgba(34, 5, 13, 0.07);
}

.digi-menu-search__title {
  font-weight: 600;
  color: #3a151b;
  font-size: 0.92rem;
}

.digi-menu-search__group {
  font-size: 0.75rem;
  color: #8a5a62;
}

.digi-menu-search__desc {
  font-size: 0.76rem;
  font-weight: 400;
  color: #5c4a4e;
  line-height: 1.45;
  margin-top: 0.18rem;
  white-space: normal;
}

.digi-menu-search__empty {
  padding: 0.75rem 0.5rem 0.35rem;
  font-size: 0.85rem;
  color: #8a5a62;
  text-align: center;
}

.digi-menu-search__hint {
  font-size: 0.7rem;
  color: #9a7a80;
  padding: 0.35rem 0.55rem 0.2rem;
}

@media (max-width: 767.98px) {
  .app-topbar .topbar-left > .btn,
  .digi-menu-search {
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .digi-menu-search {
    position: relative;
    width: 2.375rem;
    min-width: 2.375rem;
    max-width: 2.375rem;
    height: 2.375rem;
  }

  .digi-menu-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.10);
    color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .digi-menu-search__toggle:hover,
  .digi-menu-search__toggle:focus-visible {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
  }

  .digi-menu-search__bar {
    display: none;
  }

  .digi-menu-search__kbd,
  .digi-menu-search__hint {
    display: none;
  }

  .digi-menu-search.digi-menu-search--open {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 2.375rem !important;
    min-width: 2.375rem !important;
    max-width: 2.375rem !important;
  }

  .digi-menu-search--open .digi-menu-search__bar {
    display: flex;
    position: fixed !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    top: 0.4rem !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 2.5rem;
    z-index: 2050;
    padding: 0 0.3rem 0 0.85rem;
    justify-content: flex-start;
    gap: 0.55rem;
    background: #6f0f25;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 28px rgba(34, 5, 13, 0.35);
  }

  .digi-menu-search--open .digi-menu-search__field {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    font-size: 1rem;
  }

  .digi-menu-search--open .digi-menu-search__close {
    display: inline-flex;
  }

  .digi-menu-search__panel,
  .digi-menu-search--open .digi-menu-search__panel {
    position: fixed !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    top: 3.2rem !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    z-index: 2050;
  }
}

.topbar-searches {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-searches .digi-menu-search {
  max-width: 14.5rem;
  flex: 1 1 8rem;
}

#digiStudentSearch .digi-menu-search__panel {
  right: auto;
  min-width: 24rem;
  width: max(100%, 32rem);
  max-width: min(40rem, calc(100vw - 1.25rem));
}

.digi-student-search__item--inactive .digi-menu-search__title,
.digi-student-search__item--inactive .digi-menu-search__desc {
  color: #dc3545 !important;
}

.digi-student-search__wait,
.digi-student-search__hint-row {
  cursor: default;
  color: #8a5a62;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.digi-student-search__wait:hover,
.digi-student-search__hint-row:hover {
  background: transparent;
}

.digi-tutorial-search__item {
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem;
}

.digi-tutorial-search__thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.digi-tutorial-search__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.digi-tutorial-search__play,
.digi-tutorial-thumb-btn__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  pointer-events: none;
}

.digi-tutorial-search__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.digi-tutorial-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(34, 5, 13, 0.18);
}

.digi-tutorial-thumb-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.digi-tutorial-thumb-btn--grid {
  width: 96px;
  box-shadow: none;
}

.digi-tutorial-thumb-btn--grid img {
  width: 96px;
  height: 54px;
  aspect-ratio: auto;
}

.digi-tutorial-thumb-btn:hover .digi-tutorial-thumb-btn__play,
.digi-tutorial-search__item:hover .digi-tutorial-search__play,
.digi-tutorial-search__item.is-active .digi-tutorial-search__play {
  background: rgba(176, 27, 52, 0.92);
}

.digi-tutorial-form-preview {
  max-width: 280px;
}

.digi-tutorial-player-modal .modal-content {
  background: #fff;
}

#digiTutorialPlayerModal,
#digiTutorialPickModal {
  z-index: 2100;
}

body:has(#digiTutorialPlayerModal.show) .modal-backdrop,
body:has(#digiTutorialPickModal.show) .modal-backdrop {
  z-index: 2050;
}

.modal-dialog.digi-tutorial-player-dialog {
  width: min(96vw, 1400px);
  max-width: 96vw;
  margin: 0.45rem auto;
}

@media (min-width: 768px) {
  /* Drawer 260px / z-index 1100 — ફ્રેમ નેવ પાછળ ન જાય, મુખ્ય વિસ્તારમાં રહે. */
  #digiTutorialPlayerModal.modal {
    padding-left: 260px;
  }

  .modal-dialog.digi-tutorial-player-dialog {
    width: min(calc(100% - 1.25rem), 1280px);
    max-width: min(calc(100% - 1.25rem), 1280px);
    margin: 0.5rem auto;
  }
}

.digi-tutorial-player-ratio {
  position: relative;
  width: 100%;
  padding-top: 0;
  aspect-ratio: 16 / 9;
  height: min(calc(100vh - 4.75rem), calc((min(96vw, 1400px) - 1.5rem) * 9 / 16));
  max-height: calc(100vh - 4.75rem);
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .digi-tutorial-player-ratio {
    height: min(calc(100vh - 4.75rem), calc((100vw - 260px - 2.5rem) * 9 / 16));
  }
}

@media (max-width: 575.98px) {
  .digi-tutorial-player-dialog .modal-header {
    padding: 0.65rem 0.85rem;
  }

  .digi-tutorial-player-ratio {
    border-radius: 0;
    height: min(56.25vw, calc(100vh - 3.5rem));
    max-height: calc(100vh - 3.5rem);
  }
}

.digi-tutorial-player-ratio > div,
.digi-tutorial-player-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#digiTutorialPlayerMount {
  position: absolute;
  inset: 0;
}

.digi-tutorial-pick-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(34, 5, 13, 0.12);
  border-radius: 12px;
  background: #fff;
  text-align: start;
  cursor: pointer;
}

.digi-tutorial-pick-item:last-child {
  margin-bottom: 0;
}

.digi-tutorial-pick-item:hover,
.digi-tutorial-pick-item:focus-visible {
  background: rgba(34, 5, 13, 0.07);
  outline: none;
}

.js-form-tutorial svg {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .topbar-searches {
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .topbar-searches .digi-menu-search {
    flex: 0 0 auto;
    max-width: 2.375rem;
  }
}

.btn-user {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-user:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}

.digi-push-bell {
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.digi-push-bell__on { display: none; }
.digi-push-bell[data-state="on"] .digi-push-bell__on { display: inline; }
.digi-push-bell[data-state="on"] .digi-push-bell__off { display: none; }
.digi-push-bell[data-state="on"] {
  background: rgba(255, 255, 255, 0.92);
  color: #0d6efd;
  border-color: #fff;
}
.digi-push-bell[data-state="denied"],
.digi-push-bell[data-state="unsupported"] {
  opacity: 0.6;
}

@media print {
  .digi-push-bell { display: none !important; }
}

.user-icon {
  font-size: 16px;
  line-height: 1;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px;
}

/* School ? User list grid (theme: maroon / cream) */
.school-user-page-title {
  /* Project rule: form heading should be maroon */
  color: var(--digi-accent);
  letter-spacing: -0.02em;
}

.school-user-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(122, 41, 41, 0.12);
  box-shadow: 0 8px 32px rgba(79, 10, 26, 0.08);
}

.school-user-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #faf7f6 0%, #f3ece9 100%);
  border-bottom: 1px solid rgba(122, 41, 41, 0.1);
}

/* Toolbar ???? Bootstrap row ? flex shrink ?? filter dropdown ???? ? ??? */
.school-user-toolbar > .row {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.school-user-toolbar .form-control,
.school-user-toolbar .form-select {
  border-radius: 10px;
  border-color: rgba(122, 41, 41, 0.2);
  min-width: 0;
  width: 100%;
}

.school-user-toolbar .form-control:focus,
.school-user-toolbar .form-select:focus {
  border-color: #7a1029;
  box-shadow: 0 0 0 0.2rem rgba(122, 16, 41, 0.15);
}

.school-user-grid-scroll {
  max-height: min(70vh, 560px);
  overflow: auto;
}

/* GR ??????? / GR ???? ? ???? 10 ???? ??????? + sticky header ???? ??????? ??? */
.school-user-grid-scroll.school-user-grid-scroll--data-grid {
  max-height: calc(3.35rem + 10 * 2.8125rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.vagale-summary-page .school-user-grid-scroll.school-user-grid-scroll--data-grid {
  max-height: calc(var(--vagale-sum-head-block-height, 4.35rem) + 10 * 2.8125rem);
}

/* GR ???? ? 10 + 3 = 13 ???? ??????? */
.school-user-grid-scroll.school-user-grid-scroll--data-grid.school-user-grid-scroll--data-grid-rows-13 {
  max-height: calc(3.35rem + 13 * 2.8125rem);
}

/* ????????? / ??????? ?????????? ??????? ? ????? ??? ??????? ???; ???? digi-grid-table-viewport ?? sticky thead */
.prarthna-entry-page .school-user-grid-scroll.prarthna-entry-list-grid-wrap.school-user-grid-scroll--data-grid,
.spardha-student-entry-page .school-user-grid-scroll.spardha-list-grid-wrap.school-user-grid-scroll--data-grid {
  max-height: none;
  overflow: visible;
}

.school-user-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}

.school-user-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(79, 10, 26, 0.25);
  white-space: nowrap;
}

.school-user-table thead th:first-child {
  border-radius: 0;
}

.school-user-table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(122, 41, 41, 0.08);
}

.school-user-table tbody tr {
  background: #fffefd;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.school-user-table tbody tr:nth-child(even) {
  background: #faf5f3;
}

.school-user-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(176, 27, 52, 0.07) 0%, rgba(255, 255, 255, 0.6) 100%);
  box-shadow: inset 3px 0 0 #b01b34;
}

.school-user-table tbody tr:focus-within {
  background: rgba(176, 27, 52, 0.12);
  outline: none;
}

/* HTML grids — freeze last "ક્રિયા" column (class set by digiStickyActions; desktop only) */
@media (min-width: 768px) {
  .school-user-table thead th.digi-sticky-actions,
  .school-user-table thead th.staff-sticky-actions,
  .school-user-table thead th.grv-sticky-actions {
    position: sticky;
    right: 0;
    left: auto;
    z-index: 6;
    background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
    box-shadow: -8px 0 14px rgba(35, 10, 16, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .school-user-table tbody td.digi-sticky-actions,
  .school-user-table tbody td.staff-sticky-actions,
  .school-user-table tbody td.grv-sticky-actions {
    position: sticky;
    right: 0;
    left: auto;
    z-index: 1;
    background-color: #fffefd !important;
    background-clip: padding-box;
    box-shadow: -8px 0 14px rgba(35, 10, 16, 0.1);
    border-left: 1px solid rgba(90, 11, 27, 0.12);
  }

  .school-user-table tbody tr:nth-child(even) td.digi-sticky-actions,
  .school-user-table tbody tr:nth-child(even) td.staff-sticky-actions,
  .school-user-table tbody tr:nth-child(even) td.grv-sticky-actions {
    background-color: #faf5f3 !important;
  }

  .school-user-table tbody tr:hover td.digi-sticky-actions,
  .school-user-table tbody tr:hover td.staff-sticky-actions,
  .school-user-table tbody tr:hover td.grv-sticky-actions {
    background-color: #f6ecee !important;
  }
}

@media (max-width: 767.98px) {
  .school-user-table thead th.digi-sticky-actions,
  .school-user-table thead th.staff-sticky-actions,
  .school-user-table thead th.grv-sticky-actions,
  .school-user-table tbody td.digi-sticky-actions,
  .school-user-table tbody td.staff-sticky-actions,
  .school-user-table tbody td.grv-sticky-actions {
    position: static !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    box-shadow: none;
    border-left: none;
  }
}

.school-user-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.school-user-badge--ok {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
}

.school-user-badge--off {
  background: rgba(220, 53, 69, 0.12);
  color: #b02a37;
}

/* માતા જુથ — NIPUN સ્તર રંગ કોડ */
.mata-juth-page .mj-level-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.mata-juth-page .mj-level-badge--udayman {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}
.mata-juth-page .mj-level-badge--pragatishil {
  background: #cfe2ff;
  color: #084298;
  border: 1px solid #6ea8fe;
}
.mata-juth-page .mj-level-badge--nipun {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #75b798;
}
.mata-juth-page .mj-level-badge--none {
  background: #f1f3f5;
  color: #6c757d;
  border: 1px solid #ced4da;
  font-weight: 600;
}
.mata-juth-page .mj-survey-label {
  font-size: 0.8rem;
  color: #495057;
  word-break: break-word;
}

/* માતા જુથ — ગ્રિડ સારાંશ compact cards */
.mata-juth-page .mj-summary-wrap {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.mata-juth-page .mj-sum-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.05rem 0.05rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.mata-juth-page .mj-sum-chip {
  flex: 1 1 0;
  min-width: 7.5rem;
  max-width: 14rem;
  border: 0;
  border-radius: 12px;
  padding: 0.5rem 0.65rem 0.55rem;
  color: #fff !important;
  text-align: left;
  box-shadow: 0 4px 12px rgba(18, 38, 63, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  line-height: 1.15;
  position: relative;
  overflow: hidden;
}
.mata-juth-page .mj-sum-chip::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  top: -0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.mata-juth-page .mj-sum-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.mata-juth-page .mj-sum-ico {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: #fff !important;
}
.mata-juth-page .mj-sum-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff !important;
}
.mata-juth-page .mj-sum-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff !important;
}
.mata-juth-page .mj-sum-sub {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.88;
  color: #fff !important;
}
.mata-juth-page .mj-sum-chip--juth {
  background: linear-gradient(135deg, #800020 0%, #5c0018 100%);
}
.mata-juth-page .mj-sum-chip--stu {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.mata-juth-page .mj-sum-chip--mata {
  background: linear-gradient(135deg, #db2777 0%, #9d174d 100%);
}
@media (max-width: 575.98px) {
  .mata-juth-page .mj-sum-chip {
    min-width: 6.75rem;
    max-width: none;
  }
}

.school-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.school-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  cursor: pointer;
  white-space: nowrap;
}

.school-user-btn svg {
  flex-shrink: 0;
  opacity: 0.95;
  fill: currentColor;
  color: inherit;
}

.school-user-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  color: inherit;
}

.school-user-btn--edit {
  background: linear-gradient(180deg, #ff922b 0%, #e8590c 100%);
  color: #fff;
}

.school-user-btn--auth {
  background: linear-gradient(180deg, #3d8bfd 0%, #0a58ca 100%);
  color: #fff;
}

.school-user-btn--deactivate {
  background: linear-gradient(180deg, #e35d6a 0%, #b02a37 100%);
  color: #fff;
}

.school-user-btn--activate {
  background: linear-gradient(180deg, #2bb673 0%, #198754 100%);
  color: #fff;
}

.school-user-btn--info {
  background: linear-gradient(180deg, #f1f3f5 0%, #dee2e6 100%);
  color: #495057;
  border: 1px solid rgba(73, 80, 87, 0.2);
}

.school-user-btn--print {
  background: linear-gradient(180deg, #20c997 0%, #0f8a6c 100%);
  color: #fff;
}

.school-user-btn--print:hover {
  color: #fff;
}

.school-user-form-card {
  border-radius: 16px;
  border: 1px solid rgba(122, 41, 41, 0.1);
  box-shadow: 0 6px 24px rgba(79, 10, 26, 0.06);
}

.school-user-form-card .form-control,
.school-user-form-card .form-select {
  border-radius: 10px;
}

/* Project rule: control captions should be maroon */
.school-user-form-card .form-label,
.school-user-form-card .form-text {
  color: var(--digi-accent);
}

/* ?????? (IsActive) ? Bootstrap form-switch slider (global) */
.digi-active-switch.form-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
  min-height: 1.65rem;
}

.digi-active-switch.form-switch .form-check-input {
  float: none;
  margin: 0;
  width: 3rem;
  height: 1.55rem;
  cursor: pointer;
  background-color: rgba(108, 117, 125, 0.38);
  border-color: rgba(108, 117, 125, 0.45);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-position: left center;
  background-size: 1.2rem;
  transition: background-position .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.digi-active-switch.form-switch .form-check-input:checked {
  background-color: #198754;
  border-color: #157347;
  background-position: right center;
}

.digi-active-switch.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(122, 16, 41, 0.16);
}

.digi-active-switch.form-switch .form-check-label {
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.digi-active-hint.is-off {
  color: #6c757d;
}

.digi-active-hint.is-on {
  color: #157347;
}

/* Change password ? live criteria (matches server StrongPassword rules) */
.pwd-criteria-panel .pwd-criteria-hint {
  font-size: 0.88rem;
}

.pwd-criteria__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.pwd-criteria__item:last-child {
  margin-bottom: 0;
}

.pwd-criteria__mark {
  min-width: 1.35rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: #adb5bd;
}

.pwd-criteria__item--ok .pwd-criteria__mark {
  color: #198754;
}

.pwd-criteria__done {
  font-weight: 700;
}

/* ??????: ??????? = ???? + sticky header + ???/??? ???????; ????? = user-cards, roll-grid */
@media (max-width: 767.98px) {
  .school-user-grid-scroll {
    max-height: calc(3.35rem + 10 * 2.8125rem);
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prarthna-entry-page .school-user-grid-scroll.prarthna-entry-list-grid-wrap.school-user-grid-scroll--data-grid,
  .spardha-student-entry-page .school-user-grid-scroll.spardha-list-grid-wrap.school-user-grid-scroll--data-grid {
    max-height: none;
    overflow: visible;
  }

  .prarthna-entry-page .prarthna-entry-list-grid-wrap .digi-grid-table-viewport,
  .spardha-student-entry-page .spardha-list-grid-wrap .digi-grid-table-viewport {
    max-height: min(70vh, calc(3.35rem + 10 * 2.8125rem));
  }

  .school-user-grid-scroll.school-user-grid-scroll--data-grid-rows-13 {
    max-height: calc(3.35rem + 13 * 2.8125rem);
  }

  /* ???? ?????: ????? ????? (???? ?????, ??????? ??? ????) */
  .school-user-grid-scroll.school-user-grid-scroll--user-cards {
    max-height: none;
    overflow-x: visible;
    overflow-y: visible;
    -webkit-overflow-scrolling: auto;
  }

  /* ????? ???? ????? */
  .school-user-grid-scroll.school-user-grid-scroll--roll-grid {
    max-height: min(70vh, 560px);
  }

  .school-user-table {
    display: table;
    width: 100%;
    min-width: 760px;
    font-size: 0.88rem;
  }

  .school-user-table thead {
    display: table-header-group;
  }

  .school-user-table tbody {
    display: table-row-group;
  }

  .school-user-table tbody tr {
    display: table-row;
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .school-user-table tbody td {
    display: table-cell;
    width: auto !important;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(122, 41, 41, 0.08);
    vertical-align: middle;
  }

  .school-user-table.school-user-table--roll-grid {
    min-width: 320px;
  }

  .health-entry-page .school-user-grid-scroll.school-user-grid-scroll--health-class {
    overflow-x: visible;
    overflow-y: visible;
    max-height: none;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .health-entry-page .school-user-table.school-user-table--health-class {
    display: block;
    width: 100%;
    min-width: 0 !important;
    table-layout: auto;
  }
  .health-entry-page .school-user-table.school-user-table--health-class thead {
    display: none;
  }
  .health-entry-page .school-user-table.school-user-table--health-class tbody {
    display: block;
  }
  .health-entry-page .school-user-table.school-user-table--health-class tbody tr {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    grid-template-areas:
      "roll name"
      "gr name"
      "w h"
      "bmi bmi";
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid rgba(122, 41, 41, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(18, 38, 63, 0.06);
  }
  .health-entry-page .school-user-table.school-user-table--health-class tbody tr td[colspan] {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem 0;
  }
  .health-entry-page .school-user-table.school-user-table--health-class tbody td {
    display: block;
    width: auto !important;
    padding: 0;
    border: 0;
  }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-roll { grid-area: roll; font-weight: 800; }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-gr { grid-area: gr; font-size: 0.82rem; color: #6b4a52; }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-name { grid-area: name; }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-w { grid-area: w; }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-h { grid-area: h; }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-bmi {
    grid-area: bmi;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    padding-top: 0.2rem;
  }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-bmi::before {
    flex: 1 0 100%;
    margin-bottom: 0;
  }
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-w::before,
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-h::before,
  .health-entry-page .school-user-table.school-user-table--health-class .he-col-bmi::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--digi-accent);
    margin-bottom: 0.2rem;
  }
  .health-entry-page .he-mode-seg__btn { padding: 0.7rem 0.4rem; font-size: 0.86rem; }

  /* ????? action ???? ? Staff / Leave / LC */
  .school-user-table.school-user-table--wide-grid,
  .school-user-table.school-user-table--lc-grid {
    min-width: 920px;
  }

  /* ???? ????? ????? ????? */
  .school-user-table.school-user-table--user-cards {
    display: block;
    min-width: 0;
    font-size: 0.92rem;
  }

  .school-user-table.school-user-table--user-cards thead {
    display: none;
  }

  .school-user-table.school-user-table--user-cards tbody {
    display: block;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] {
    display: block;
    position: relative;
    margin-bottom: 14px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(122, 41, 41, 0.12);
    background: #fffefd;
    box-shadow: 0 4px 16px rgba(79, 10, 26, 0.07);
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row]:nth-child(even) {
    background: #fffefd;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row]:hover {
    background: #fffefd;
    box-shadow: inset 0 0 0 1px rgba(176, 27, 52, 0.12), 0 6px 20px rgba(79, 10, 26, 0.08);
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row]:focus-within {
    background: #fff8f6;
  }

  .school-user-table.school-user-table--user-cards tbody tr.no-filter {
    display: block;
    margin-bottom: 0;
    padding: 2rem 1rem;
    text-align: center;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .school-user-table.school-user-table--user-cards tbody tr.no-filter td {
    display: block;
    border: none;
    padding: 0;
    width: 100% !important;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] td {
    display: block;
    width: 100% !important;
    padding: 3px 0;
    border: none;
    vertical-align: top;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] td:nth-child(1) {
    position: absolute;
    top: 12px;
    right: 14px;
    width: auto !important;
    padding: 0;
    font-size: 0.72rem;
    color: #8b7355;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] td:nth-child(2) {
    padding-right: 2.25rem;
    padding-top: 2px;
    font-weight: 600;
    font-size: 1rem;
    color: #3b2418;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] td:nth-child(3) {
    color: #5c5348;
    font-size: 0.88rem;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] td:nth-child(4) .badge {
    font-size: 0.75rem;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] td:nth-child(5) {
    padding-top: 4px;
  }

  .school-user-table.school-user-table--user-cards tbody tr[data-user-row] td:nth-child(6) {
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid rgba(122, 41, 41, 0.1);
  }

  .school-user-actions {
    justify-content: flex-start;
    gap: 5px;
  }

  .school-user-actions .school-user-btn {
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    padding: 4px 6px;
    justify-content: center;
    border-radius: 8px;
    line-height: 0;
  }

  .school-user-actions .school-user-btn svg {
    width: 14px;
    height: 14px;
    display: block;
  }

  /* GrEntry: keep icon + caption on mobile (global rule above is icon-only) */
  .gr-entry-page .school-user-actions .school-user-btn {
    padding: 4px 8px;
    line-height: 1.2;
    gap: 4px;
    justify-content: center;
  }

  .gr-entry-page .school-user-actions .school-user-btn svg {
    display: inline-block;
  }
}

@media print {
  .school-user-grid-scroll {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 768px) {
  .app-drawer {
    width: 220px;
  }
}

.login-bg {
  padding: 16px;
  background:
    radial-gradient(900px 520px at 15% 15%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(1200px 650px at 20% 10%, #b01b34 0%, #8a1530 36%, #5a0b1b 100%),
    linear-gradient(135deg, #b01b34 0%, #5a0b1b 65%, #3a0610 100%);
}

.login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.license-pay-card {
  max-width: 520px;
}

.license-qr-box {
  background: #fff;
  border: 1px solid rgba(59, 36, 24, 0.12);
  border-radius: 14px;
  padding: 1rem;
}

.license-qr-img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
}

.license-qr-steps {
  padding-left: 1.25rem;
  color: #3b2418;
  font-size: 0.95rem;
  line-height: 1.55;
}

.license-school-copy {
  background: #f8f4ef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #3b2418;
}

.license-qr-fallback > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.license-qr-fallback > summary::-webkit-details-marker {
  display: none;
}

.license-qr-fallback > summary::before {
  content: "▸ ";
  color: #7a1f2b;
}

.license-qr-fallback[open] > summary::before {
  content: "▾ ";
}

.login-logo {
  width: 118px;
  height: 118px;
  border-radius: 18px;
  background: var(--digi-logo-bg);
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.login-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.login-brand-stack .login-logo {
  margin-bottom: 0;
}

.login-name-logo {
  display: block;
  width: min(100%, 320px);
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

.text-dark-brown {
  color: #3b2418;
}

/* Project button palette: Save=green, Update=dark green, Delete/Deactive=red, Active=green, Edit=orange, More info=blue */
.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);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-digi-save:hover,
.btn-digi-save:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(25, 135, 84, 0.42);
  background: linear-gradient(180deg, #34c583 0%, #1aa15e 100%);
  border-color: #146c43;
  color: #fff;
}

.btn.btn-sm.btn-digi-save svg {
  width: 0.95rem;
  height: 0.95rem;
}

.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);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-digi-update:hover,
.btn-digi-update:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 81, 50, 0.45);
  background: linear-gradient(180deg, #198754 0%, #146c43 100%);
  border-color: #0f5132;
  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);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-digi-danger:hover,
.btn-digi-danger:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(176, 42, 55, 0.42);
  background: linear-gradient(180deg, #ea868f 0%, #c82333 100%);
  border-color: #b02a37;
  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);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-digi-info:hover,
.btn-digi-info:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(13, 110, 253, 0.38);
  background: linear-gradient(180deg, #6ea8fe 0%, #0d6efd 100%);
  border-color: #0a58ca;
  color: #fff;
}

/* ?????? ????? ? print ??? (????-???? / ?????) */
.btn-adm-print-bw {
  background: linear-gradient(180deg, #4a4a4a 0%, #111 100%);
  border-color: #000;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-adm-print-bw:hover,
.btn-adm-print-bw:focus {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #5c5c5c 0%, #1a1a1a 100%);
  border-color: #000;
  color: #fff;
}

.btn-adm-print-color {
  background: linear-gradient(180deg, #3d8bfd 0%, #0a58ca 100%);
  border-color: #084298;
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-adm-print-color:hover,
.btn-adm-print-color:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.38);
  background: linear-gradient(180deg, #6ea8fe 0%, #0d6efd 100%);
  border-color: #0a58ca;
  color: #fff;
}

.btn-adm-print-bw:disabled,
.btn-adm-print-color:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  filter: none;
}

.btn-adm-print-bw svg,
.btn-adm-print-color svg {
  fill: currentColor;
}

/* Sky-blue (Preview) */
.btn-digi-sky {
  background: linear-gradient(180deg, #33d7ff 0%, #0dcaf0 100%);
  border-color: #0aa2c0;
  color: #083344;
  box-shadow: 0 8px 20px rgba(13, 202, 240, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-digi-sky:hover,
.btn-digi-sky:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(13, 202, 240, 0.34);
  background: linear-gradient(180deg, #66e3ff 0%, #0dcaf0 100%);
  border-color: #0891b2;
  color: #083344;
}

/* Purple (Verify) */
.btn-digi-purple {
  background: linear-gradient(180deg, #8b5cf6 0%, #6f42c1 100%);
  border-color: #5a34a0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(111, 66, 193, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-digi-purple:hover,
.btn-digi-purple:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(111, 66, 193, 0.34);
  background: linear-gradient(180deg, #a78bfa 0%, #6f42c1 100%);
  border-color: #4c2d8c;
  color: #fff;
}

/* GR Excel import preview legend / row colors (shared) */
.digi-gr-excel-import .aadhaar-imp-legend,
.aadhaar-entry-page .aadhaar-imp-legend {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 0.35rem;
  margin-right: 0.35rem;
  font-weight: 600;
}
.digi-gr-excel-preview tr.aadhaar-imp-row--matched > td,
.aadhaar-entry-page tr.aadhaar-imp-row--matched > td { background: #ecfdf5; }
.digi-gr-excel-import .aadhaar-imp-legend.aadhaar-imp-row--matched,
.aadhaar-entry-page .aadhaar-imp-legend.aadhaar-imp-row--matched { background: #ecfdf5; color: #047857; }
.digi-gr-excel-preview tr.aadhaar-imp-row--unmatched > td,
.aadhaar-entry-page tr.aadhaar-imp-row--unmatched > td { background: #fef2f2; }
.digi-gr-excel-import .aadhaar-imp-legend.aadhaar-imp-row--unmatched,
.aadhaar-entry-page .aadhaar-imp-legend.aadhaar-imp-row--unmatched { background: #fef2f2; color: #b91c1c; }
.digi-gr-excel-preview tr.aadhaar-imp-row--invalid > td,
.aadhaar-entry-page tr.aadhaar-imp-row--invalid > td { background: #fff7ed; }
.digi-gr-excel-import .aadhaar-imp-legend.aadhaar-imp-row--invalid,
.aadhaar-entry-page .aadhaar-imp-legend.aadhaar-imp-row--invalid { background: #fff7ed; color: #c2410c; }

/* ?????? (Clear) / cancel ? orange, project-wide */
.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);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.btn-digi-cancel:hover,
.btn-digi-cancel:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232, 89, 12, 0.4);
  background: linear-gradient(180deg, #ffa94d 0%, #f06500 100%);
  border-color: #e8590c;
  color: #fff;
}

.btn-digi-cancel svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* Action buttons: SVG ???? ???? ???? ? ??? (currentColor) */
.btn[class*="btn-digi-"] svg {
  flex-shrink: 0;
  fill: currentColor;
  color: inherit;
}

.link-brown {
  color: #7a1029;
  text-decoration: none;
}

.link-brown:hover {
  color: #981a36;
  text-decoration: underline;
}

.login-card .form-control:focus,
.login-card .form-select:focus {
  border-color: #7a1029;
  box-shadow: 0 0 0 0.25rem rgba(152, 26, 54, 0.22);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Global flash toast: viewport-fixed (not document-absolute). html { position:relative }
   would pin Bootstrap's default .toast-container { position:absolute } to page top,
   so the toast scrolled away with the document. */
.toast-container.app-flash-toast-wrap,
.toast-container.app-flash-toast-wrap:popover-open {
  position: fixed !important;
  inset: 0.75rem 0 auto 0 !important;
  top: 0.75rem !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0.5rem 0.75rem !important;
  background: transparent !important;
  overflow: visible !important;
  color: inherit;
  z-index: 21000 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none !important;
  box-sizing: border-box;
  transform: none !important;
}

/* Global flash toast: top center, large text, progress bar = remaining time until auto-hide */
.app-flash-toast-wrap .toast.app-flash-toast {
  min-width: min(96vw, 580px);
  max-width: min(96vw, 720px);
  font-size: 1.125rem;
  line-height: 1.45;
  border-radius: 14px;
}

.app-flash-toast__body {
  font-weight: 500;
}

.app-flash-toast__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.22);
}

.text-bg-warning .app-flash-toast__icon {
  background: rgba(0, 0, 0, 0.08);
  color: #664d03;
}

.text-bg-warning .app-flash-toast__body {
  color: #523e02;
}

.app-flash-toast-progress {
  height: 6px;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  background: rgba(0, 0, 0, 0.14);
}

.app-flash-toast-progress-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.92);
}

.text-bg-warning .app-flash-toast-progress-bar {
  background: rgba(0, 0, 0, 0.38);
}

.app-flash-toast-progress-bar--animate {
  animation: appFlashProgressShrink linear forwards;
  animation-duration: var(--app-flash-ms, 6500ms);
}

@keyframes appFlashProgressShrink {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* User create page: grid disabled while inline edit */
.user-list-shell--disabled {
  pointer-events: none;
  user-select: none;
  opacity: 0.58;
  filter: grayscale(0.12);
  transition: opacity 0.2s ease;
  position: relative;
}

.user-list-shell--disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  pointer-events: none;
}

/* User authentication (permissions) ? modern switches + group headers */
.ua-switch.form-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  margin: 0;
  padding: 0;
}

.ua-switch.form-switch .form-check-input {
  margin: 0;
  width: 2.55rem;
  height: 1.35rem;
  cursor: pointer;
  background-color: rgba(122, 41, 41, 0.18);
  border-color: rgba(122, 41, 41, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.ua-switch.form-switch .form-check-input:checked {
  background-color: #198754;
  border-color: #157347;
}

.ua-switch.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(122, 16, 41, 0.16);
}

/* WhatsApp picker switch (green checked like Save) */
.wa-switch.form-switch .form-check-input {
  cursor: pointer;
}

.wa-switch.form-switch .form-check-input:checked {
  background-color: #198754;
  border-color: #157347;
}

.ua-group-row > td {
  background: linear-gradient(180deg, #faf7f6 0%, #f3ece9 100%);
  border-top: 1px solid rgba(122, 41, 41, 0.12);
  border-bottom: 1px solid rgba(122, 41, 41, 0.10);
}

.ua-group-title {
  color: #3b2418;
  letter-spacing: -0.01em;
}

.ua-validity-cell {
  min-width: 9.5rem;
  vertical-align: middle;
}

.ua-validity {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
}

.ua-validity-kind {
  min-width: 8.5rem;
  font-size: 0.8rem;
}

.ua-validity-date-wrap {
  display: none;
}

.ua-validity.is-until .ua-validity-date-wrap {
  display: block;
}

.ua-validity-expired {
  font-size: 0.72rem;
  font-weight: 600;
  color: #b42318;
}

.ua-row-expired > td {
  background-color: #fff6f6;
}

/* Full profile entry ? ????? ?????? (??????? ???) */
.full-profile-entry-page .digi-fp-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  margin-bottom: 1.35rem;
}

.full-profile-entry-page .digi-fp-card .card-body {
  background: #fff;
}

.full-profile-entry-page .digi-fp-card__head {
  margin: 0;
  padding: 0.95rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.full-profile-entry-page .digi-fp-card__head--aadhar {
  background: linear-gradient(125deg, #312e81 0%, #7c3aed 55%, #a855f7 100%);
}

.full-profile-entry-page .digi-fp-card__head--bank {
  background: linear-gradient(125deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
}

.full-profile-entry-page .digi-fp-card__head--health {
  background: linear-gradient(125deg, #9f1239 0%, #e11d48 55%, #fb7185 100%);
}

.full-profile-entry-page .digi-fp-card__head--ration {
  background: linear-gradient(125deg, #b45309 0%, #ea580c 50%, #fb923c 100%);
}

.full-profile-entry-page .digi-fp-card__head--contact {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.full-profile-entry-page .digi-fp-card__head--english {
  background: linear-gradient(125deg, #334155 0%, #475569 45%, #64748b 100%);
}

.full-profile-entry-page .digi-fp-card__head--guardian {
  background: linear-gradient(125deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%);
}

.full-profile-entry-page .digi-fp-card__head--oguard {
  background: linear-gradient(125deg, #14532d 0%, #16a34a 50%, #4ade80 100%);
}

/* Profile entry checklist ? card + sticky grid (student-left-entry + vagale-summary pattern) */
.profile-entry-checklist-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.profile-entry-checklist-page .staff-doc-section-card .card-body {
  background: #fff;
}

.profile-entry-checklist-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.profile-entry-checklist-page .school-user-page-title,
.profile-entry-checklist-page .form-label,
.profile-entry-checklist-page .form-text {
  color: var(--digi-accent) !important;
}

.profile-entry-checklist-page {
  --profile-cl-freeze-roll: 4.75rem;
  --profile-cl-freeze-name: 11.5rem;
  --profile-cl-freeze-sc: 9.25rem;
  --digi-grid-head-top-1: 0;
}

.profile-entry-checklist-page .profile-checklist-card-body {
  overflow: visible;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf2 100%);
}

.profile-entry-checklist-page .profile-checklist-scroll {
  margin: 0.75rem 1rem 1rem;
  padding: 0 !important;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(122, 41, 41, 0.16);
  border-radius: 10px;
  box-shadow:
    0 2px 8px rgba(18, 38, 63, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
}

.profile-entry-checklist-page .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}

.profile-entry-checklist-page .profile-checklist-table {
  min-width: 72rem;
  margin-bottom: 0;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(122, 31, 58, 0.04);
}

.profile-entry-checklist-page .profile-checklist-table thead th {
  position: sticky;
  top: var(--digi-grid-head-top-1);
  z-index: 100;
  background-clip: padding-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background: linear-gradient(180deg, #7a1f3a 0%, #6b1a32 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.profile-entry-checklist-page .profile-checklist-field-col {
  min-width: 5.25rem;
  max-width: 7.5rem;
  font-size: 0.74rem;
  line-height: 1.25;
  white-space: normal;
}

.profile-entry-checklist-page .profile-checklist-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.profile-entry-checklist-page .profile-checklist-mark--ok {
  background: #198754;
  color: #fff;
}

.profile-entry-checklist-page .profile-checklist-mark--pending {
  background: #dc3545;
  color: #fff;
}

.profile-entry-checklist-page .profile-checklist-foot-cell {
  background: #f3f4f6;
  border-top: 2px solid rgba(122, 31, 58, 0.2);
}

/* Freeze columns ? roll / name / std-class (override global digi-grid left:0) */
.profile-entry-checklist-page .profile-checklist-table thead .profile-checklist-freeze-col--roll,
.profile-entry-checklist-page .profile-checklist-table tbody .profile-checklist-freeze-col--roll {
  left: 0;
  min-width: var(--profile-cl-freeze-roll);
  width: var(--profile-cl-freeze-roll);
  max-width: var(--profile-cl-freeze-roll);
}

.profile-entry-checklist-page .profile-checklist-table thead .profile-checklist-freeze-col--name,
.profile-entry-checklist-page .profile-checklist-table tbody .profile-checklist-freeze-col--name {
  left: var(--profile-cl-freeze-roll);
  min-width: var(--profile-cl-freeze-name);
  width: var(--profile-cl-freeze-name);
  max-width: var(--profile-cl-freeze-name);
}

.profile-entry-checklist-page .profile-checklist-table thead .profile-checklist-freeze-col--sc,
.profile-entry-checklist-page .profile-checklist-table tbody .profile-checklist-freeze-col--sc {
  left: calc(var(--profile-cl-freeze-roll) + var(--profile-cl-freeze-name));
  min-width: var(--profile-cl-freeze-sc);
  width: var(--profile-cl-freeze-sc);
  max-width: var(--profile-cl-freeze-sc);
}

.profile-entry-checklist-page .profile-checklist-table thead .profile-checklist-freeze-col--roll {
  z-index: 113;
  background: linear-gradient(180deg, #7a1f3a 0%, #6b1a32 100%) !important;
}

.profile-entry-checklist-page .profile-checklist-table thead .profile-checklist-freeze-col--name {
  z-index: 112;
  background: linear-gradient(180deg, #7a1f3a 0%, #6b1a32 100%) !important;
}

.profile-entry-checklist-page .profile-checklist-table thead .profile-checklist-freeze-col--sc {
  z-index: 111;
  background: linear-gradient(180deg, #7a1f3a 0%, #6b1a32 100%) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.18), 2px 0 6px rgba(0, 0, 0, 0.12);
}

.profile-entry-checklist-page .profile-checklist-table tbody .digi-grid-freeze-col {
  position: sticky;
  background: #fff !important;
  background-clip: padding-box;
}

.profile-entry-checklist-page .profile-checklist-table tbody .profile-checklist-freeze-col--roll {
  z-index: 4;
}

.profile-entry-checklist-page .profile-checklist-table tbody .profile-checklist-freeze-col--name {
  z-index: 3;
}

.profile-entry-checklist-page .profile-checklist-table tbody .profile-checklist-freeze-col--sc {
  z-index: 2;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.08), 2px 0 6px rgba(0, 0, 0, 0.08);
}

.profile-entry-checklist-page .profile-checklist-table tbody tr:nth-child(even) .digi-grid-freeze-col {
  background: #fff !important;
}

#pecPrintColumnsModal .modal-title,
#pecPrintColumnsModal .form-text,
#pecGridColumnsModal .modal-title,
#pecGridColumnsModal .form-text {
  color: var(--digi-accent) !important;
}

#pecPrintColumnsModal .modal-body,
#pecGridColumnsModal .modal-body {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

#pecPrintColumnsModal #pecColCheckList,
#pecGridColumnsModal #pecGridColCheckList {
  margin-left: 0;
  padding-left: 0.15rem;
}

#pecPrintColumnsModal .pec-print-col-check,
#pecGridColumnsModal .pec-print-col-check {
  padding: 0.4rem 0.55rem 0.4rem 0.65rem;
  margin-left: 0;
  border: 1px solid rgba(122, 41, 41, 0.12);
  border-radius: 8px;
  background: #fafbfc;
  min-height: 2.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

#pecPrintColumnsModal .pec-print-col-check .form-check-input,
#pecGridColumnsModal .pec-print-col-check .form-check-input {
  margin-left: 0;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

#pecPrintColumnsModal .pec-print-col-check .form-check-label,
#pecGridColumnsModal .pec-print-col-check .form-check-label {
  color: var(--digi-accent);
  font-size: 0.875rem;
  line-height: 1.3;
  padding-left: 0.15rem;
}

.profile-entry-checklist-page .school-user-toolbar {
  background: #fff;
}

/* Excel-style column filter (?) on checklist field headers */
.profile-entry-checklist-page .profile-checklist-table thead th[data-filter-key] {
  padding-right: 1.45rem;
}

.profile-entry-checklist-page .profile-checklist-table thead th.profile-checklist-field-col {
  padding-right: 1.35rem;
}

.profile-entry-checklist-page .grv-th-label {
  display: inline-block;
  vertical-align: middle;
  max-width: calc(100% - 0.15rem);
}

.profile-entry-checklist-page .grv-filter-btn {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  line-height: 1;
  font-size: 0.8rem;
  padding: 0;
  z-index: 2;
}

.profile-entry-checklist-page .grv-filter-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.profile-entry-checklist-page .grv-filter-btn.grv-filter-btn--active {
  background: #fff;
  color: #5a0b1b;
  font-weight: 700;
}

.profile-entry-checklist-page .grv-filter-popover,
#pecGridFilterPopover.grv-filter-popover {
  position: fixed;
  z-index: 1060;
  width: 300px;
  max-width: calc(100vw - 1.5rem);
  max-height: min(480px, calc(100vh - 1.5rem));
  background: #fff;
  border: 1px solid rgba(90, 11, 27, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(35, 10, 16, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-entry-checklist-page .grv-filter-popover__head,
#pecGridFilterPopover .grv-filter-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(90, 11, 27, 0.1);
}

.profile-entry-checklist-page .grv-filter-popover__tools,
#pecGridFilterPopover .grv-filter-popover__tools {
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(90, 11, 27, 0.1);
}

.profile-entry-checklist-page .grv-filter-popover__list,
#pecGridFilterPopover .grv-filter-popover__list {
  padding: 0.5rem 0.75rem 0.75rem;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.profile-entry-checklist-page .grv-filter-item,
#pecGridFilterPopover .grv-filter-item {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.profile-entry-checklist-page .grv-filter-item label,
#pecGridFilterPopover .grv-filter-item label {
  cursor: pointer;
  user-select: none;
}

.profile-entry-checklist-page .grv-filter-adv,
#pecGridFilterPopover .grv-filter-adv {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(90, 11, 27, 0.18);
  display: grid;
  gap: 0.35rem;
}

/* Global Please wait overlay ? _DigiPleaseWaitOverlay + window.digiPleaseWait */
#digiPleaseWaitOverlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

#digiPleaseWaitOverlay .digi-please-wait-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

#digiPleaseWaitOverlay .digi-please-wait-card {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#digiPleaseWaitOverlay .digi-please-wait-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.13);
  overflow: hidden;
}

#digiPleaseWaitOverlay .digi-please-wait-bar-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.55), rgba(13, 110, 253, 0.95), rgba(13, 110, 253, 0.55));
  background-size: 200% 100%;
  animation: digiPleaseWaitShimmer 1.1s ease-in-out infinite;
  transition: width 0.2s ease;
}

@keyframes digiPleaseWaitShimmer {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 200% 0%;
  }
}

/* Session superseded ? _DigiSessionSupersededOverlay + window.digiSessionGuard */
.digi-session-superseded-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(120, 20, 20, 0.55);
  backdrop-filter: blur(2px);
}

.digi-session-superseded-overlay__panel {
  max-width: 26rem;
  width: 100%;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #dc3545;
  box-shadow: 0 12px 40px rgba(120, 20, 20, 0.35);
  text-align: center;
}

.digi-session-superseded-overlay__icon {
  margin-bottom: 0.75rem;
}

body.digi-session-superseded-active {
  overflow: hidden;
}

/* ===== School report branding ? certificate print header / principal sign ===== */
.digi-report-branding-header {
  width: 100%;
  margin: 0 0 1rem;
  text-align: center;
}

.digi-report-branding-header__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 28mm;
  margin: 0 auto;
  object-fit: contain;
}

/* Portrait vs landscape header — Digi Report Viewer data-orientation (mix નહીં) */
.digi-report-branding-header[data-digi-orient-headers="1"] .digi-report-branding-header-fallback--orient {
  display: none;
}
.digi-report-branding-header__img[data-header-orient="landscape"] {
  display: none;
}
.lc-app-print-page[data-orientation="landscape"] .digi-report-branding-header__img[data-header-orient="portrait"],
.lc-app-print-zoom-shell[data-orientation="landscape"] .digi-report-branding-header__img[data-header-orient="portrait"] {
  display: none !important;
}
.lc-app-print-page[data-orientation="landscape"] .digi-report-branding-header__img[data-header-orient="landscape"],
.lc-app-print-zoom-shell[data-orientation="landscape"] .digi-report-branding-header__img[data-header-orient="landscape"] {
  display: block;
  max-height: 36mm;
}
.lc-app-print-page[data-orientation="portrait"] .digi-report-branding-header__img[data-header-orient="landscape"],
.lc-app-print-zoom-shell[data-orientation="portrait"] .digi-report-branding-header__img[data-header-orient="landscape"] {
  display: none !important;
}
.lc-app-print-page[data-orientation="landscape"] .digi-report-branding-header[data-has-landscape="0"] .digi-report-branding-header-fallback--orient,
.lc-app-print-zoom-shell[data-orientation="landscape"] .digi-report-branding-header[data-has-landscape="0"] .digi-report-branding-header-fallback--orient,
.lc-app-print-page[data-orientation="portrait"] .digi-report-branding-header[data-has-portrait="0"] .digi-report-branding-header-fallback--orient,
.lc-app-print-zoom-shell[data-orientation="portrait"] .digi-report-branding-header[data-has-portrait="0"] .digi-report-branding-header-fallback--orient {
  display: block;
}

/* Mixed portrait+landscape docs: page slot wins over shell orientation (do not mix headers). */
.lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page[data-orientation="landscape"] .digi-report-branding-header__img[data-header-orient="portrait"] {
  display: none !important;
}
.lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page[data-orientation="landscape"] .digi-report-branding-header__img[data-header-orient="landscape"] {
  display: block !important;
}
.lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page[data-orientation="portrait"] .digi-report-branding-header__img[data-header-orient="landscape"] {
  display: none !important;
}

.digi-report-branding-header-fallback h1 {
  color: var(--digi-accent, #7a2f1b);
}

.digi-report-principal-sign {
  min-width: 9rem;
}

.digi-report-principal-sign__label {
  margin-bottom: 0.15rem;
}

.digi-report-branding-principal-sign {
  display: inline-block;
  max-width: 70mm;
  max-height: 18mm;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media print {
  .digi-report-branding-header__img {
    max-height: 26mm;
  }
  .lc-app-print-page[data-orientation="landscape"] .digi-report-branding-header__img[data-header-orient="landscape"] {
    max-height: 36mm;
  }
}

/* ===== LC Application print preview (StudentLeavingApplication/LcApplicationPrint) ===== */
@media screen {
  html:has(body.lc-app-print-body) {
    height: 100%;
    overflow: hidden;
  }

  .lc-app-print-body {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(160deg, #e8eaef 0%, #dfe3ea 45%, #eceef3 100%);
    color: #222;
  }
}

/* Ribbon ~75% visual height without CSS zoom (zoom breaks some <select> / hit targets) */
@media screen {
  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-titlebar {
    padding: 0.34rem 0.55rem 0.34rem 0.75rem;
    gap: 0.5rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-title {
    font-size: 0.84rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-docname {
    font-size: 0.65rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-close {
    width: 1.58rem;
    height: 1.58rem;
    font-size: 1.05rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-toolbar {
    padding: 0.26rem 0.4rem 0.32rem 0.55rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-group {
    min-height: 3.45rem;
    padding: 0.08rem 0.28rem 0.12rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-group-wide {
    min-width: min(100%, 18rem);
    max-width: 30rem;
    padding-bottom: 0.2rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-cap {
    font-size: 0.62rem;
    margin-top: 0.12rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-sep {
    min-height: 2.45rem;
    margin: 0.15rem 0.12rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-cmd {
    font-size: 0.62rem;
    min-width: 2.85rem;
    max-width: 4.75rem;
    padding: 0.22rem 0.28rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-cmd-ic svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-select {
    font-size: 0.78rem;
    padding: 0.22rem 1.85rem 0.22rem 0.5rem;
    min-height: calc(1.35em + 0.45rem + 2px);
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-stack {
    gap: 0.22rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-stack-wide {
    gap: 0.26rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-field-compact label {
    font-size: 0.62rem;
    margin-bottom: 0.12rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-field-compact .form-control {
    font-size: 0.78rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-appearance-checks .form-check-label {
    font-size: 0.72rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-range {
    width: 7rem;
  }

  .lc-app-print-toolbar.lc-ribbon-compact .lc-ribbon-appearance-row {
    gap: 0.4rem 0.55rem;
  }
}

/* ===== Single-row print toolbar (replaces ribbon for space) ===== */
@media screen {
  .lc-app-print-toolbar.lc-toolbar-single {
    background: #f7f7f8;
    border-bottom: 1px solid #c8c8c8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  .lc-toolbar-single .lc-tb-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    padding: 0.28rem 0.45rem 0.28rem 0.55rem;
    min-height: 2.35rem;
  }

  .lc-toolbar-single .lc-tb-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 13rem;
    flex: 0 1 auto;
    line-height: 1.15;
    padding-right: 0.25rem;
  }

  .lc-toolbar-single .lc-ribbon-title {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .lc-toolbar-single .lc-ribbon-docname {
    font-size: 0.62rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .lc-toolbar-single .lc-tb-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding: 0.05rem 0;
  }

  .lc-toolbar-single .lc-tb-sep {
    width: 1px;
    height: 1.35rem;
    background: #c8c8c8;
    flex-shrink: 0;
    margin: 0 0.2rem;
  }

  .lc-toolbar-single .lc-tb-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex-shrink: 0;
    min-height: 1.85rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #222;
    font-size: 0.72rem;
    line-height: 1.1;
    cursor: pointer;
    white-space: nowrap;
  }

  .lc-toolbar-single .lc-tb-btn:hover:not(:disabled) {
    background: #e8e8e8;
    border-color: #ccc;
  }

  .lc-toolbar-single .lc-tb-btn:active:not(:disabled) {
    background: #ddd;
  }

  .lc-toolbar-single .lc-tb-btn--icon {
    min-width: 1.85rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .lc-toolbar-single .lc-tb-btn .lc-ribbon-cmd-ic {
    color: #333;
  }

  .lc-toolbar-single .lc-tb-btn .lc-ribbon-cmd-ic svg {
    display: block;
    width: 1rem;
    height: 1rem;
  }

  .lc-toolbar-single .lc-tb-select {
    flex-shrink: 0;
    width: auto;
    min-width: 4.25rem;
    max-width: 11rem;
    font-size: 0.72rem;
    line-height: 1.25;
    min-height: 1.85rem;
    padding: 0.15rem 1.6rem 0.15rem 0.4rem;
    border-radius: 4px;
  }

  .lc-toolbar-single .lc-tb-select--margin {
    min-width: 7.5rem;
    max-width: 14rem;
  }

  .lc-toolbar-single .lc-tb-select--zoom {
    min-width: 3.75rem;
    max-width: 4.5rem;
    padding-right: 1.4rem;
  }

  .lc-toolbar-single .lc-tb-margins-btn {
    flex-shrink: 0;
    font-size: 0.72rem;
    min-height: 1.85rem;
    padding: 0.15rem 0.5rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .lc-toolbar-single .lc-ribbon-close {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 1.05rem;
    margin-left: 0.15rem;
    flex-shrink: 0;
  }

  .lc-toolbar-single .lc-ribbon-brand-icon {
    flex-shrink: 0;
    color: var(--digi-accent);
  }
}

/* Digi Report Viewer ? PDF/Excel export busy overlay */
.lc-app-export-busy {
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
  /* Default OFF — only .lc-app-export-busy--on may show (never block toolbar). */
  display: none !important;
  pointer-events: none !important;
}
.lc-app-export-busy.lc-app-export-busy--on {
  display: flex !important;
  pointer-events: auto !important;
}
.lc-app-export-busy__card {
  min-width: 220px;
  max-width: 90vw;
  padding: 1.1rem 1.35rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
  text-align: center;
}
.lc-app-export-busy__spin {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.65rem;
  border: 2.5px solid #e5e7eb;
  border-top-color: var(--digi-accent, #7a1f2b);
  border-radius: 50%;
  animation: lc-app-export-spin 0.7s linear infinite;
}
@keyframes lc-app-export-spin {
  to { transform: rotate(360deg); }
}
.lc-app-export-busy__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2937;
}
.lc-app-export-busy__msg {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #4b5563;
}
body.lc-app-exporting .lc-app-print-watermark-wrap {
  display: none !important;
}
body.lc-app-exporting .lc-app-print-page {
  box-shadow: none !important;
  border-color: transparent !important;
}

.lc-app-print-toolbar {
  flex: 0 0 auto;
  position: relative;
  top: 0;
  z-index: 1200;
  isolation: isolate;
  pointer-events: auto !important;
  background: #fff;
  border-bottom: 1px solid #c5c5c5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Toolbar controls must stay clickable even if a closed dialog/overlay leaks hit-testing. */
.lc-app-print-toolbar .lc-tb-row,
.lc-app-print-toolbar .lc-tb-controls,
.lc-app-print-toolbar .lc-tb-btn,
.lc-app-print-toolbar .lc-tb-select,
.lc-app-print-toolbar .lc-tb-margins-btn,
.lc-app-print-toolbar .lc-ribbon-close {
  pointer-events: auto !important;
}
.lc-app-print-toolbar .lc-tb-select:disabled,
.lc-app-print-toolbar .lc-tb-btn:disabled,
.lc-app-print-toolbar .lc-tb-margins-btn:disabled {
  pointer-events: none !important;
}

.lc-ribbon-titlebar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  border-bottom: 1px solid #d0d0d0;
}

.lc-ribbon-brand-icon {
  flex: 0 0 auto;
  display: flex;
  color: var(--digi-accent);
}

.lc-ribbon-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1a1a1a;
  line-height: 1.25;
}

.lc-ribbon-docname {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.3;
}

.lc-ribbon-close {
  margin-left: auto;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.lc-ribbon-close:hover {
  background: #b71c1c;
  color: #fff;
}

.lc-ribbon-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  padding: 0.35rem 0.5rem 0.45rem 0.75rem;
  background: #f3f3f3;
  border-bottom: 1px solid #d4d4d4;
}

.lc-ribbon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0.15rem 0.35rem 0.2rem;
  min-height: 4.75rem;
}

.lc-ribbon-group-wide {
  align-items: stretch;
  min-height: auto;
  min-width: min(100%, 22rem);
  max-width: 36rem;
  padding-bottom: 0.3rem;
}

.lc-ribbon-group-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  flex: 1 1 auto;
}

.lc-ribbon-cap {
  font-size: 0.8125rem;
  color: #444;
  text-align: center;
  line-height: 1.2;
  margin-top: 0.2rem;
  user-select: none;
}

.lc-ribbon-sep {
  width: 1px;
  align-self: stretch;
  min-height: 3.25rem;
  margin: 0.2rem 0.15rem;
  background: #c8c8c8;
  flex-shrink: 0;
}

.lc-ribbon-cmd {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 3.25rem;
  max-width: 5.25rem;
  padding: 0.32rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #222;
  font-size: 0.8125rem;
  line-height: 1.15;
  cursor: pointer;
  text-align: center;
}

.lc-ribbon-cmd:hover:not(:disabled) {
  background: #e8e8e8;
  border-color: #ccc;
}

.lc-ribbon-cmd:active:not(:disabled) {
  background: #ddd;
}

.lc-ribbon-cmd:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lc-ribbon-cmd-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.lc-ribbon-cmd-ic svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.lc-ribbon-cmd-txt {
  display: block;
  max-width: 5.5rem;
  word-break: break-word;
}

.lc-ribbon-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 5.75rem;
}

.lc-ribbon-stack-wide {
  min-width: 12rem;
  width: 100%;
  gap: 0.4rem;
}

.lc-ribbon-select {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  min-height: calc(1.5em + 0.75rem + 2px);
}

.lc-ribbon-zoom-select {
  width: 4.75rem;
  min-width: 4.5rem;
  max-width: 5.5rem;
  padding-right: 2rem;
}

.lc-ribbon-appearance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
}

.lc-ribbon-field-compact {
  flex: 0 1 auto;
  min-width: 7.5rem;
}

.lc-ribbon-field-compact--grow {
  flex: 1 1 10rem;
  min-width: 8rem;
}

.lc-ribbon-field-compact label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.lc-ribbon-field-compact .form-control {
  font-size: 1rem;
}

.lc-ribbon-range {
  width: 8.5rem;
  min-height: 1.5rem;
}

.lc-ribbon-appearance-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding-top: 0.1rem;
}

.lc-ribbon-appearance-checks .form-check-label {
  font-size: 0.875rem;
}

/* Page Setup dialog (custom margins) ? native <dialog> */
.lc-page-setup-dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: min(720px, 96vw);
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

/* Closed <dialog> must stay non-interactive (author display rules can otherwise block toolbar clicks). */
dialog.lc-page-setup-dialog:not([open]) {
  display: none !important;
  pointer-events: none !important;
}

.lc-page-setup-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.lc-appearance-dialog {
  max-width: min(480px, 96vw);
}

.lc-appearance-body {
  padding-bottom: 0.5rem;
}

.lc-ps-shell {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.lc-ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
}

.lc-ps-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.lc-ps-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
  color: #555;
}

.lc-ps-close:hover {
  color: #000;
}

.lc-ps-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  overflow: auto;
}

.lc-ps-preview-col {
  flex: 0 0 auto;
  min-width: 160px;
}

.lc-ps-preview-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.35rem;
}

.lc-ps-preview-outer {
  background: #c8c8c8;
  padding: 12px;
  border-radius: 4px;
  display: inline-block;
}

.lc-ps-preview-sheet {
  position: relative;
  background: #fff;
  border: 1px solid #666;
  box-sizing: content-box;
}

.lc-ps-preview-area {
  position: absolute;
  border: 1px dashed #444;
  background: rgba(230, 240, 255, 0.35);
  box-sizing: border-box;
  pointer-events: none;
}

.lc-ps-form-col {
  flex: 1 1 280px;
  min-width: 0;
}

.lc-ps-fieldset {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.65rem 0.85rem 0.85rem;
  margin-bottom: 0.85rem;
}

.lc-ps-fieldset legend {
  float: unset;
  width: auto;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 0.35rem;
  margin-bottom: 0;
}

.lc-ps-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

.lc-app-print-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1.25rem 1rem 2rem;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.lc-app-print-zoom-shell {
  max-width: 100%;
  margin: 0 auto;
  transition: height 0.15s ease-out;
}

@media screen {
  .lc-app-print-zoom-shell > .lc-app-print-page + .lc-app-print-page {
    margin-top: 1.25rem;
  }
}

/* Preview width: portrait = short edge, landscape = long edge */
.lc-app-print-zoom-shell[data-paper="a4"]:not([data-orientation="landscape"]),
.lc-app-print-page[data-paper="a4"]:not([data-orientation="landscape"]) {
  width: min(210mm, 100%);
}

.lc-app-print-zoom-shell[data-paper="a4"][data-orientation="landscape"],
.lc-app-print-page[data-paper="a4"][data-orientation="landscape"] {
  width: min(297mm, 100%);
}

.lc-app-print-zoom-shell[data-paper="a5"]:not([data-orientation="landscape"]),
.lc-app-print-page[data-paper="a5"]:not([data-orientation="landscape"]) {
  width: min(148mm, 100%);
}

.lc-app-print-zoom-shell[data-paper="a5"][data-orientation="landscape"],
.lc-app-print-page[data-paper="a5"][data-orientation="landscape"] {
  width: min(210mm, 100%);
}

.lc-app-print-zoom-shell[data-paper="letter"]:not([data-orientation="landscape"]),
.lc-app-print-page[data-paper="letter"]:not([data-orientation="landscape"]) {
  width: min(215.9mm, 100%);
}

.lc-app-print-zoom-shell[data-paper="letter"][data-orientation="landscape"],
.lc-app-print-page[data-paper="letter"][data-orientation="landscape"] {
  width: min(279.4mm, 100%);
}

.lc-app-print-zoom-shell[data-paper="legal"]:not([data-orientation="landscape"]),
.lc-app-print-page[data-paper="legal"]:not([data-orientation="landscape"]) {
  width: min(215.9mm, 100%);
}

.lc-app-print-zoom-shell[data-paper="legal"][data-orientation="landscape"],
.lc-app-print-page[data-paper="legal"][data-orientation="landscape"] {
  width: min(355.6mm, 100%);
}

/* Mixed portrait + landscape pages (e.g. પત્રક-C) — shell must not force one width */
.lc-app-print-zoom-shell.lc-mixed-orient {
  width: max-content;
  max-width: none;
}
.lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page[data-paper="a4"][data-orientation="portrait"] {
  width: 210mm;
}
.lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page[data-paper="a4"][data-orientation="landscape"] {
  width: 297mm;
}

.lc-app-print-page {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: #fff;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.12);
  min-height: 200px;
}

/* Table pagination: fixed paper height so overflow → new .lc-app-print-page (thead repeats). */
.lc-app-print-page.lc-table-paginate[data-orientation="portrait"] {
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.lc-app-print-page.lc-table-paginate[data-orientation="landscape"] {
  height: 210mm;
  min-height: 210mm;
  max-height: 210mm;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.lc-app-print-page.lc-table-paginate > .lc-app-print-root {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.lc-app-print-page.lc-table-paginate > .lc-table-paginate-sheet,
.lc-app-print-page.lc-table-paginate .lc-table-paginate-sheet {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media screen {
  .lc-app-print-page.lc-paper-cream {
    background: #faf8f2;
  }

  .lc-app-print-page.lc-paper-mist {
    background: #f0f5fa;
  }

  .lc-app-print-body.lc-stage-flat {
    background: #d8dce3 !important;
  }

  .lc-app-print-body.lc-stage-slate {
    background: #b8c0cc !important;
  }
}

.lc-app-print-watermark-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

@media screen {
  .lc-app-print-body.lc-wm-screen .lc-app-print-watermark-wrap {
    display: flex;
  }
}

@media print {
  .lc-app-print-body.lc-wm-print .lc-app-print-watermark-wrap {
    display: flex !important;
  }
}

.lc-app-print-watermark-text {
  font-size: clamp(1.75rem, 7vw, 3.25rem);
  font-weight: 700;
  color: rgba(0, 0, 0, var(--lc-wm-op, 0.12));
  transform: rotate(-28deg);
  transform-origin: center;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.04em;
}

.lc-app-print-root {
  position: relative;
  z-index: 1;
  max-width: none;
  font-family: "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: #222;
  --lc-subject-inner-start: calc(2.25rem + 1rem);
  --digi-report-row-height: 25px;
}

/* SCE પરિણામ રિપોર્ટ — યુઝર-પસંદ content table row height (px).
   max-height + overflow: content wrap/font થી row ઊંચાઈ ન વધે;
   બધા પાનાં પર સમાન row height (scale નહીં). */
.lc-app-print-root .digi-sce-content-rows tbody tr {
  height: var(--digi-report-row-height, 25px);
}
.lc-app-print-root .digi-sce-content-rows tbody tr > td {
  height: var(--digi-report-row-height, 25px);
  min-height: var(--digi-report-row-height, 25px);
  max-height: var(--digi-report-row-height, 25px);
  box-sizing: border-box;
  overflow: hidden;
  vertical-align: middle;
}

/* SCE પરિણામ પ્રિન્ટ — વિદ્યાર્થી નામ હંમેશા એક જ લીટીમાં.
   બે લીટી થાય તો row height વધી પાનાં વધે. નામનો ફોન્ટ 10pt;
   English નામ (ALL-CAPS વધુ પહોળું) માટે 9pt + narrow ફોન્ટ જેથી પહોળાઈ ઓછી રોકે.
   લાંબું નામ … થી કપાય (full નામ title tooltip માં). */
.lc-app-print-root td.pvgp-col-name,
.lc-app-print-root td.sagp-col-name,
.lc-app-print-root td.vvgp-col-name,
.lc-app-print-root td.rpp-col-name,
.lc-app-print-root td.ckp-col-name,
.lc-app-print-root td.pc-col-name,
.lc-app-print-root td.sp-name,
.lc-app-print-root td.km-name {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  font-size: 10pt !important;
  line-height: 1.2 !important;
}

/* વ્યક્તિત્વ વિકાસ ગુણપત્રક — 40 વિધાન કોલમ હોવાથી નામ અપવાદ:
   નાનો ફોન્ટ, normal weight, જરૂર પડે તો બે લીટીમાં આખું નામ દેખાય (કપાય નહીં). */
.lc-app-print-root td.vvgp-col-name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  font-size: 8pt !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
}

/* English નામ — narrow/condensed ફોન્ટ, 9pt (ઓછી પહોળાઈમાં એક લીટીમાં સમાય). */
.lc-app-print-root[data-student-name-lang="EN"] td.pvgp-col-name,
.lc-app-print-root[data-student-name-lang="EN"] td.sagp-col-name,
.lc-app-print-root[data-student-name-lang="EN"] td.vvgp-col-name,
.lc-app-print-root[data-student-name-lang="EN"] td.rpp-col-name,
.lc-app-print-root[data-student-name-lang="EN"] td.ckp-col-name,
.lc-app-print-root[data-student-name-lang="EN"] td.pc-col-name,
.lc-app-print-root[data-student-name-lang="EN"] td.sp-name,
.lc-app-print-root[data-student-name-lang="EN"] td.km-name {
  font-family: "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed", Arial, sans-serif !important;
  font-size: 9pt !important;
  font-stretch: condensed;
  letter-spacing: 0;
}

/* વ્યક્તિત્વ પત્રક English નામ — 40 કોલમમાં સમાય એ માટે વધુ નાનું (ઉપરના સામાન્ય EN નિયમ પછી). */
.lc-app-print-root[data-student-name-lang="EN"] td.vvgp-col-name {
  font-size: 7pt !important;
}

.lc-app-print-title {
  color: var(--digi-accent);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
}

.lc-app-print-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
}

.lc-app-print-meta-left {
  flex: 0 1 auto;
}

/* ???? ???? ?????; ???? ???? ????? ??????? (???? ????) */
.lc-app-print-meta-right {
  flex: 0 1 min(100%, 24rem);
  text-align: start;
  direction: ltr;
  margin-left: auto;
}

.lc-app-print-blue-indent {
  padding-left: 1rem;
  margin-left: 2.25rem;
}

@media (max-width: 576px) {
  .lc-app-print-root {
    --lc-subject-inner-start: calc(0.75rem + 1rem);
  }

  .lc-app-print-blue-indent {
    margin-left: 0.75rem;
  }
}

/* ????? ???? ?????? ????? ????; ?????? ????? ??????? ???? ??????? */
.lc-app-print-para-tab-first {
  text-indent: var(--lc-subject-inner-start);
}

.lc-app-print-detail-wrap {
  width: 100%;
}

/* ??????? ???: ???? ???? ???? / ??????? ?????? */
.lc-app-print-field-row-full {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.35rem 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.lc-app-print-field-full-line {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 1px solid #222 !important;
  padding-bottom: 0.15rem;
  min-height: 1.45em;
}

.lc-app-print-detail-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.lc-app-print-detail-fields {
  flex: 1 1 auto;
  min-width: 0;
}

.lc-app-print-detail-photo {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lc-app-print-fields {
  display: block;
  width: 100%;
  table-layout: fixed;
  --bs-table-border-color: transparent;
  --bs-border-width: 0;
}

.lc-app-print-fields > tbody {
  display: block;
}

/* ???? ??? ???????? ?????? ?????? ?? ???? (?????????? ??????? ??? / ???? ???? ? ?????) */
.lc-app-print-fields > tbody > tr {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: 100%;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.lc-app-print-fields > tbody > tr:last-child {
  margin-bottom: 0;
}

.lc-app-print-fields > tbody > tr > td {
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  vertical-align: bottom;
}

.lc-app-print-fields td.lc-app-print-td-label {
  flex: 0 0 11.5rem;
  max-width: 40%;
  padding-right: 0.25rem !important;
}

.lc-app-print-fields td.lc-app-print-field-value {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.lc-app-print-underline-track {
  display: block;
  width: 100%;
  min-height: 1.05em;
  line-height: 1.35;
  border-bottom: 1px solid #222;
  box-sizing: border-box;
}

/* ???? ???? / PEN ? ???????? ????? ???????? */
.lc-app-print-inline-line {
  display: inline-block;
  min-width: 8rem;
  border-bottom: 1px solid #222 !important;
  padding: 0 0.15rem;
  line-height: 1.35;
  vertical-align: bottom;
}

.lc-app-print-inline-line--short {
  max-width: 14rem;
}

.lc-app-print-sign-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
}

.lc-app-print-sign-principal {
  text-align: right;
  margin-left: auto;
}

.lc-app-print-para {
  text-align: justify;
  text-justify: inter-word;
}

.lc-app-print-em {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lc-app-print-photo-box {
  width: 150px;
  min-width: 150px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #fafafa;
  overflow: hidden;
}

.lc-app-print-photo-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.lc-app-print-signatures {
  font-size: 0.95rem;
}

.lc-app-print-office-use {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
}

.lc-app-print-office-use-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #444;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.lc-app-print-office-use-heading::before,
.lc-app-print-office-use-heading::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #666;
}

.lc-app-print-office-use-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
}

.lc-app-print-office-field {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 0;
}

.lc-app-print-office-dots {
  display: inline-block;
  min-width: 7.5rem;
  border-bottom: 1px dotted #333;
  line-height: 1.2;
  padding-bottom: 1px;
}

.lc-app-print-page[data-paper="a5"] .lc-app-print-office-use {
  margin-top: 1.5rem;
  font-size: 0.78rem;
}

.lc-app-print-page[data-paper="a5"] .lc-app-print-office-use-fields {
  gap: 0.5rem 0.75rem;
}

.lc-app-print-page[data-paper="a5"] .lc-app-print-office-dots {
  min-width: 5rem;
}

@media print {
  .no-print {
    display: none !important;
  }

  /* Guard: never inherit a global visibility:hidden print hack */
  .lc-app-print-body,
  .lc-app-print-body * {
    visibility: visible !important;
  }

  .lc-app-print-body {
    background: #fff !important;
    display: block !important;
    min-height: 0 !important;
  }

  .lc-app-print-stage {
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    flex: none !important;
  }

  .lc-app-print-zoom-shell {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }

  .lc-app-print-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    min-height: 0 !important;
    background: #fff !important;
  }

  /*
   * Browser print dialog ઘણી વાર printer-default A4 રાખે — width:100% કાર્ડને A4 પહોળું કરે.
   * max-width = કાગળની ભૌતિક પહોળાઈ; @page margin હોય ત્યારે 100% નાનું રહે, A4 fallback પર કેપ થાય.
   */
  .lc-app-print-page[data-paper="a5"]:not([data-orientation="landscape"]) {
    max-width: 148mm !important;
  }
  .lc-app-print-page[data-paper="a5"][data-orientation="landscape"] {
    max-width: 210mm !important;
  }
  .lc-app-print-page[data-paper="a4"]:not([data-orientation="landscape"]) {
    max-width: 210mm !important;
  }
  .lc-app-print-page[data-paper="a4"][data-orientation="landscape"] {
    max-width: 297mm !important;
  }
  .lc-app-print-page[data-paper="letter"]:not([data-orientation="landscape"]) {
    max-width: 215.9mm !important;
  }
  .lc-app-print-page[data-paper="letter"][data-orientation="landscape"] {
    max-width: 279.4mm !important;
  }
  .lc-app-print-page[data-paper="legal"]:not([data-orientation="landscape"]) {
    max-width: 215.9mm !important;
  }
  .lc-app-print-page[data-paper="legal"][data-orientation="landscape"] {
    max-width: 355.6mm !important;
  }

  .lc-app-print-zoom-shell:has(> .lc-app-print-page.lc-table-paginate) > .lc-app-print-page {
    break-after: page;
    page-break-after: always;
  }
  .lc-app-print-zoom-shell:has(> .lc-app-print-page.lc-table-paginate) > .lc-app-print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  /* vmargin = top+bottom (@page); set by lc-app-print-viewer applyScreenMarginsPreview.
     Extra 1mm keeps last tbody border inside the printable box (Chrome clips flush edges). */
  .lc-app-print-page.lc-table-paginate[data-orientation="portrait"] {
    height: calc(297mm - var(--lc-table-paginate-vmargin, 16mm) - 1mm) !important;
    max-height: none !important;
  }
  .lc-app-print-page.lc-table-paginate[data-orientation="landscape"] {
    height: calc(210mm - var(--lc-table-paginate-vmargin, 16mm) - 1mm) !important;
    max-height: none !important;
  }
  .lc-app-print-page.lc-table-paginate thead {
    display: table-header-group;
  }

  .lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page {
    break-after: page;
    page-break-after: always;
  }
  .lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page[data-orientation="portrait"] {
    width: 210mm !important;
  }
  .lc-app-print-zoom-shell.lc-mixed-orient > .lc-app-print-page[data-orientation="landscape"] {
    width: 297mm !important;
  }

  .lc-app-print-page.lc-paper-cream,
  .lc-app-print-page.lc-paper-mist {
    background: #fff !important;
  }

  .lc-app-print-root {
    max-width: none;
    padding-top: 0 !important;
  }

  .lc-app-print-meta-row {
    break-inside: avoid;
  }

  .lc-app-print-meta-right {
    text-align: start;
  }

  .lc-app-print-para-tab-first {
    text-indent: var(--lc-subject-inner-start);
  }

  .lc-app-print-detail-wrap {
    break-inside: avoid;
  }

  .lc-app-print-detail-row {
    break-inside: avoid;
  }

  .lc-app-print-photo-box {
    break-inside: avoid;
  }

  .lc-app-print-sign-row {
    break-inside: avoid;
  }
}

@media screen and (max-width: 767px) {
  .lc-app-print-detail-row {
    flex-wrap: wrap;
  }

  .lc-app-print-detail-photo {
    margin-left: auto;
  }
}

/* ===== ???? ????? ? card shell (staff-doc-section pattern) ===== */
.today-attn-page .staff-doc-section-card.staff-doc-picker-card,
.today-attn-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.today-attn-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.10);
}

.today-attn-page .staff-doc-section-card .card-body {
  background: #fff;
}

.today-attn-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.today-attn-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.today-attn-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.today-attn-page .today-attn-grid-card-body {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 14rem);
}

.today-attn-page .today-attn-status-strip {
  margin: 0;
  padding: 0.7rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.45;
  background: linear-gradient(90deg, rgba(138, 21, 48, 0.09) 0%, rgba(176, 27, 52, 0.05) 100%);
  border-bottom: 1px solid rgba(138, 21, 48, 0.14);
  color: #4a2c35;
}

.today-attn-page .today-attn-inline-head {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--digi-accent);
  margin-bottom: 0.65rem;
}

.today-attn-page .today-attn-bulk-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(18, 38, 63, 0.05);
}

.today-attn-page .today-attn-bulk-panel .form-switch {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0.85rem !important;
  padding-left: 0.85rem !important;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.today-attn-page .today-attn-bulk-panel .form-switch .form-check-input {
  float: none;
  position: static;
  flex: 0 0 auto;
  width: 2.85rem;
  height: 1.5rem;
  margin: 0 !important;
  margin-left: 0 !important;
  cursor: pointer;
  background-color: rgba(108, 117, 125, 0.35);
  border-color: rgba(108, 117, 125, 0.45);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-position: left center;
  background-size: 1.15rem;
}

.today-attn-page .today-attn-bulk-panel .form-switch .form-check-input:checked {
  background-position: right center;
}

.today-attn-page .today-attn-bulk-panel .form-switch .form-check-label {
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  line-height: 1.25;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.today-attn-page .today-attn-bulk-panel .form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(138, 21, 48, 0.12);
}

/* ON = ????? ??? ???? ??? (P/A/S/L/Z/?????) */
.today-attn-page .today-attn-bulk-item--P:has(.form-check-input:checked) {
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

.today-attn-page .today-attn-bulk-item--P:has(.form-check-input:checked) .form-check-label {
  color: #212529;
  font-weight: 700;
}

.today-attn-page .today-attn-bulk-item--P .form-check-input:checked {
  background-color: #495057;
  border-color: #343a40;
}

.today-attn-page .today-attn-bulk-item--A:has(.form-check-input:checked) {
  background-color: rgba(220, 53, 69, 0.28);
  border-color: rgba(220, 53, 69, 0.42);
}

.today-attn-page .today-attn-bulk-item--A:has(.form-check-input:checked) .form-check-label {
  color: #58151c;
  font-weight: 700;
}

.today-attn-page .today-attn-bulk-item--A .form-check-input:checked {
  background-color: #dc3545;
  border-color: #b02a37;
}

.today-attn-page .today-attn-bulk-item--S:has(.form-check-input:checked) {
  background-color: rgba(194, 24, 91, 0.18);
  border-color: rgba(194, 24, 91, 0.38);
}

.today-attn-page .today-attn-bulk-item--S:has(.form-check-input:checked) .form-check-label {
  color: #801035;
  font-weight: 700;
}

.today-attn-page .today-attn-bulk-item--S .form-check-input:checked {
  background-color: #c2185b;
  border-color: #9d1449;
}

.today-attn-page .today-attn-bulk-item--L:has(.form-check-input:checked) {
  background-color: rgba(253, 126, 20, 0.22);
  border-color: rgba(253, 126, 20, 0.45);
}

.today-attn-page .today-attn-bulk-item--L:has(.form-check-input:checked) .form-check-label {
  color: #984c0c;
  font-weight: 700;
}

.today-attn-page .today-attn-bulk-item--L .form-check-input:checked {
  background-color: #fd7e14;
  border-color: #ca6510;
}

.today-attn-page .today-attn-bulk-item--Z:has(.form-check-input:checked) {
  background-color: rgba(123, 79, 40, 0.22);
  border-color: rgba(123, 79, 40, 0.42);
}

.today-attn-page .today-attn-bulk-item--Z:has(.form-check-input:checked) .form-check-label {
  color: #4a3018;
  font-weight: 700;
}

.today-attn-page .today-attn-bulk-item--Z .form-check-input:checked {
  background-color: #7b4f28;
  border-color: #5c3b1e;
}

.today-attn-page .today-attn-bulk-item--RESET:has(.form-check-input:checked) {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.today-attn-page .today-attn-bulk-item--RESET:has(.form-check-input:checked) .form-check-label {
  color: #495057;
  font-weight: 700;
}

.today-attn-page .today-attn-bulk-item--RESET .form-check-input:checked {
  background-color: #adb5bd;
  border-color: #868e96;
}

.today-attn-page .today-attn-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.today-attn-page .today-attn-legend__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.today-attn-page .today-attn-legend__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  font-weight: 800;
  color: var(--digi-accent);
}

.today-attn-page .today-attn-grid-shell {
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(18, 38, 63, 0.04);
}

.today-attn-page .today-attn-grid-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), #f8fafc);
}

/* ===== ???? ????? ? ????? ??? ????????? (???) + ?????? ????????? ===== */
.today-attn-page .today-attn-cell {
  vertical-align: middle;
}

.today-attn-page .today-attn-cell .form-select {
  font-weight: 700;
  background-color: transparent !important;
  box-shadow: none;
}

.today-attn-page .today-attn-cell:not(.today-attn-code-none):not(.today-attn-code-B) .form-select {
  border-color: transparent;
}

.today-attn-page .today-attn-code-none {
  background-color: transparent;
}

.today-attn-page .today-attn-code-B {
  background-color: transparent;
}

.today-attn-page .today-attn-cell--missing {
  background-color: rgba(220, 53, 69, 0.16);
  box-shadow: inset 0 0 0 2px #dc3545;
  border-radius: 0.25rem;
}

.today-attn-page .today-attn-cell--missing .form-select {
  border-color: #dc3545 !important;
  color: #842029;
}

.today-attn-page .today-attn-code-P {
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.today-attn-page .today-attn-code-P .form-select {
  color: #212529;
}

.today-attn-page .today-attn-code-A {
  background-color: rgba(220, 53, 69, 0.28);
}

.today-attn-page .today-attn-code-A .form-select {
  color: #58151c;
}

.today-attn-page .today-attn-code-S {
  background-color: rgba(194, 24, 91, 0.18);
}

.today-attn-page .today-attn-code-S .form-select {
  color: #801035;
}

.today-attn-page .today-attn-code-L {
  background-color: rgba(253, 126, 20, 0.22);
}

.today-attn-page .today-attn-code-L .form-select {
  color: #984c0c;
}

.today-attn-page .today-attn-code-C {
  background-color: rgba(111, 66, 193, 0.2);
}

.today-attn-page .today-attn-code-C .form-select {
  color: #432874;
}

.today-attn-page .today-attn-code-G {
  background-color: rgba(10, 162, 192, 0.2);
}

.today-attn-page .today-attn-code-G .form-select {
  color: #0a6679;
}

.today-attn-page .today-attn-code-R {
  background-color: rgba(13, 110, 253, 0.18);
}

.today-attn-page .today-attn-code-R .form-select {
  color: #052c65;
}

.today-attn-page .today-attn-code-Z {
  background-color: rgba(123, 79, 40, 0.22);
}

.today-attn-page .today-attn-code-Z .form-select {
  color: #4a3018;
}

.today-attn-page .today-attn-code-none .form-select,
.today-attn-page .today-attn-code-B .form-select {
  color: inherit;
  font-weight: 600;
  border-color: rgba(0, 0, 0, 0.12);
}

.today-attn-page .today-attn-table {
  table-layout: fixed;
}

.today-attn-page .today-attn-table th:nth-child(1),
.today-attn-page .today-attn-table td:nth-child(1) {
  width: 5.5rem;
}

.today-attn-page .today-attn-table th:nth-child(3),
.today-attn-page .today-attn-table td:nth-child(3) {
  width: 11rem;
}

@media (max-width: 767.98px) {
  .today-attn-page .today-attn-grid-scroll {
    overflow-x: hidden;
  }

  .today-attn-page .today-attn-table {
    min-width: 0;
    font-size: 0.76rem;
  }

  .today-attn-page .today-attn-table thead th {
    padding: 0.45rem 0.28rem;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.2;
  }

  .today-attn-page .today-attn-table tbody td {
    padding: 0.4rem 0.28rem;
    overflow-wrap: anywhere;
  }

  .today-attn-page .today-attn-table th:nth-child(1),
  .today-attn-page .today-attn-table td:nth-child(1) {
    width: 3.35rem !important;
  }

  .today-attn-page .today-attn-table th:nth-child(3),
  .today-attn-page .today-attn-table td:nth-child(3) {
    width: 6.65rem !important;
  }

  .today-attn-page .today-attn-cell .form-select {
    min-width: 0;
    width: 100%;
    padding-left: 0.35rem;
    padding-right: 1.55rem;
    font-size: 0.74rem;
  }
}

/* ===== ???? ????? ? ?????? ?????? (????? + ????) ===== */
.today-attn-page .today-attn-summary-modern {
  border-radius: 1rem;
  background: linear-gradient(145deg, #fffefb 0%, #f6f1ea 45%, #efe8de 100%);
  box-shadow: 0 0.35rem 1.25rem rgba(62, 44, 29, 0.12), 0 0.08rem 0 rgba(255, 255, 255, 0.85) inset;
  border: 1px solid rgba(123, 79, 40, 0.12);
  overflow: hidden;
}

.today-attn-page .today-attn-summary-modern__head {
  padding: 1.25rem 1.35rem 1rem;
  background: linear-gradient(120deg, rgba(123, 79, 40, 0.08) 0%, transparent 55%);
  border-bottom: 1px solid rgba(123, 79, 40, 0.1);
}

.today-attn-page .today-attn-summary-modern__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #3e2c1d;
  margin: 0 0 0.35rem;
}

.today-attn-page .today-attn-summary-modern__sub {
  margin: 0;
  font-size: 0.9rem;
  color: #5c4a3a;
  line-height: 1.45;
}

.today-attn-page .today-attn-summary-modern__meta {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #7a6554;
  font-weight: 600;
}

.today-attn-page .today-attn-summary-modern__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  padding: 1rem 1.25rem 1.1rem;
}

@media (min-width: 768px) {
  .today-attn-page .today-attn-summary-modern__metrics {
    grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr));
  }
}

.today-attn-page .today-attn-sum-metric {
  position: relative;
  border-radius: 0.75rem;
  padding: 0.65rem 0.55rem 0.55rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0.12rem 0.45rem rgba(62, 44, 29, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 5.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.today-attn-page .today-attn-sum-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.35rem 0.85rem rgba(62, 44, 29, 0.1);
}

.today-attn-page .today-attn-sum-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 3px;
  border-radius: 2px;
  background: rgba(123, 79, 40, 0.35);
}

.today-attn-page .today-attn-sum-metric--P::before {
  background: rgba(123, 79, 40, 0.28);
}

.today-attn-page .today-attn-sum-metric--A::before {
  background: #dc3545;
}

.today-attn-page .today-attn-sum-metric--S::before {
  background: #c2185b;
}

.today-attn-page .today-attn-sum-metric--L::before {
  background: #fd7e14;
}

.today-attn-page .today-attn-sum-metric--C::before {
  background: #6f42c1;
}

.today-attn-page .today-attn-sum-metric--G::before {
  background: #0aa2c0;
}

.today-attn-page .today-attn-sum-metric--Z::before {
  background: #7b4f28;
}

.today-attn-page .today-attn-sum-metric--R::before {
  background: #0d6efd;
}

.today-attn-page .today-attn-sum-metric--total::before {
  background: linear-gradient(180deg, #3e2c1d, #7b4f28);
}

.today-attn-page .today-attn-sum-metric__code {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8a7765;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.today-attn-page .today-attn-sum-metric__num {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: #2b1f14;
  font-variant-numeric: tabular-nums;
}

.today-attn-page .today-attn-sum-metric__en {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b5a4a;
  margin-top: 0.2rem;
}

.today-attn-page .today-attn-sum-metric__gu {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a3d32;
  margin-top: 0.05rem;
}

.today-attn-page .today-attn-summary-modern__tablewrap {
  padding: 0 1.1rem 1.2rem;
}

.today-attn-page .today-attn-summary-modern__tablehead {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7765;
  margin-bottom: 0.45rem;
}

.today-attn-page .today-attn-sum-table-responsive {
  border-radius: 0.65rem;
  border: 1px solid rgba(123, 79, 40, 0.12);
  background: #fff;
  box-shadow: 0 0.15rem 0.5rem rgba(62, 44, 29, 0.05);
}

.today-attn-page .today-attn-sum-table {
  font-size: 0.88rem;
}

.today-attn-page .today-attn-sum-table thead th {
  background: linear-gradient(180deg, #faf7f3, #f0ebe4);
  color: #3e2c1d;
  font-weight: 700;
  border-bottom: 2px solid rgba(123, 79, 40, 0.15);
  padding: 0.55rem 0.45rem;
  vertical-align: middle;
}

.today-attn-page .today-attn-sum-table thead tr:first-child th.today-attn-sum-catgrp {
  border-bottom: 1px solid rgba(123, 79, 40, 0.14);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.today-attn-page .today-attn-sum-table thead tr:nth-child(2) th.today-attn-sum-subth {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.28rem;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(123, 79, 40, 0.15);
  color: #5c4a3a;
}

.today-attn-page .today-attn-sum-table thead tr:nth-child(2) th.today-attn-sum-subth:nth-child(even) {
  border-right: 1px solid rgba(123, 79, 40, 0.1);
}

.today-attn-page .today-attn-sum-cell-pair-end {
  border-right: 1px solid rgba(123, 79, 40, 0.12);
}

.today-attn-page .today-attn-sum-table thead tr:first-child th.today-attn-sum-totgrp {
  font-size: 0.78rem;
  line-height: 1.2;
  max-width: 4.2rem;
}

.today-attn-page .today-attn-sum-totgrp-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.12rem;
  letter-spacing: 0.03em;
  color: #6b5a4a;
}

.today-attn-page .today-attn-sum-th-status {
  min-width: 10.5rem;
  text-align: left;
}

.today-attn-page .today-attn-sum-th-row {
  font-weight: 600;
  color: #3e2c1d;
  vertical-align: middle;
  background: rgba(255, 254, 252, 0.9);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.today-attn-page .today-attn-sum-tr td {
  vertical-align: middle;
  padding: 0.45rem 0.35rem;
}

.today-attn-page .today-attn-sum-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  font-weight: 800;
  font-size: 0.78rem;
  margin-right: 0.45rem;
  background: #ede8e1;
  color: #3e2c1d;
}

.today-attn-page .today-attn-sum-tr--P .today-attn-sum-badge {
  background: #fff;
  color: #3e2c1d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.today-attn-page .today-attn-sum-tr--A .today-attn-sum-badge {
  background: rgba(220, 53, 69, 0.2);
  color: #58151c;
}

.today-attn-page .today-attn-sum-tr--S .today-attn-sum-badge {
  background: rgba(194, 24, 91, 0.15);
  color: #801035;
}

.today-attn-page .today-attn-sum-tr--L .today-attn-sum-badge {
  background: rgba(253, 126, 20, 0.18);
  color: #984c0c;
}

.today-attn-page .today-attn-sum-tr--C .today-attn-sum-badge {
  background: rgba(111, 66, 193, 0.18);
  color: #432874;
}

.today-attn-page .today-attn-sum-tr--G .today-attn-sum-badge {
  background: rgba(10, 162, 192, 0.18);
  color: #0a6679;
}

.today-attn-page .today-attn-sum-tr--Z .today-attn-sum-badge {
  background: rgba(123, 79, 40, 0.2);
  color: #4a3018;
}

.today-attn-page .today-attn-sum-tr--R .today-attn-sum-badge {
  background: rgba(13, 110, 253, 0.15);
  color: #052c65;
}

.today-attn-page .today-attn-sum-tr--B .today-attn-sum-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #555;
}

.today-attn-page .today-attn-sum-rowtitles {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: middle;
}

.today-attn-page .today-attn-sum-rowen {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a6554;
}

.today-attn-page .today-attn-sum-rowgu {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3e2c1d;
}

.today-attn-page .today-attn-sum-tr--footer .today-attn-sum-th-row {
  background: rgba(123, 79, 40, 0.1);
  font-weight: 800;
}

.today-attn-page .today-attn-sum-tr--footer td {
  background: rgba(123, 79, 40, 0.06);
}

/* ===== Month attendance (????? ???????) ===== */
.month-atn-page .school-user-page-title {
  color: var(--digi-accent);
}

.month-atn-grid-scroll-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ????? ??? ??????? (????? ????? ???? scrollLeft ????) */
.month-atn-grid-scroll--mirror {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 0 auto;
  min-height: 14px;
  max-height: 22px;
  scrollbar-gutter: stable;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.month-atn-grid-scroll--mirror .js-month-atn-scroll-spacer {
  height: 1px;
  pointer-events: none;
}

.month-atn-grid-scroll--main {
  overflow: auto;
  max-height: min(82vh, 920px);
  min-width: 0;
}

.month-atn-table {
  font-size: 0.84rem;
  white-space: nowrap;
  /* ???? ????? ?? + ??? ??????: `left` ???? */
  --ma-roll: 5rem;
  --ma-name: 11rem;
  --ma-left-name: var(--ma-roll);
  /* ?????? ????: ??? ??? ??? (?????? ??????? ??? ????? ????) */
  --ma-sticky-head-bg: var(--digi-accent);
  --ma-sticky-head-fg: #fff;
  --ma-sticky-head-border: var(--digi-accent-2);
}

/*
 * ????/?????? ????? ?? `z-index` ?????? ???? (???????/GR/????) ???? ???? ???? ??? ??.
 * ???? ????? ??????? ??? (?????? ????) ?? ???????? ???????? ???? ???? ??? ????? ? ?????? ???? z-index.
 */
.month-atn-table thead .month-atn-th--meta,
.month-atn-table tbody td.month-atn-td--meta {
  position: relative;
  z-index: 3;
}

.month-atn-table thead .month-atn-th--day,
.month-atn-table thead .month-atn-th--sum,
.month-atn-table tbody td.month-atn-cell,
.month-atn-table tbody td.month-atn-td--sum {
  position: relative;
  z-index: 1;
}

/* ??????? ???? ??????: ?????? ???? ???? ??? ??? (?????? ???) */
.month-atn-table thead .month-atn-th {
  background-color: var(--ma-sticky-head-bg);
  color: var(--ma-sticky-head-fg);
  font-weight: 800;
  border-color: var(--ma-sticky-head-border);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.month-atn-table thead .month-atn-th--meta-cat {
  min-width: 6rem;
}

.month-atn-table thead .month-atn-th--meta-gr {
  min-width: 7rem;
}

.month-atn-table thead .month-atn-th--meta-gen {
  min-width: 3.5rem;
}

/* ????? ?? + ??? ? ????? ? ?? ?????? (??? ???????) */
.month-atn-table .month-atn-th--sticky-roll,
.month-atn-table .month-atn-td--sticky-roll {
  position: sticky;
  left: 0;
  z-index: 12;
  box-sizing: border-box;
  width: var(--ma-roll);
  min-width: var(--ma-roll);
  max-width: var(--ma-roll);
  background: #fff8f9;
  box-shadow: 3px 0 8px rgba(138, 21, 48, 0.12);
}

.month-atn-table .month-atn-th--sticky-name,
.month-atn-table .month-atn-td--sticky-name {
  position: sticky;
  left: var(--ma-left-name);
  z-index: 11;
  box-sizing: border-box;
  width: var(--ma-name);
  min-width: var(--ma-name);
  max-width: var(--ma-name);
  white-space: normal;
  word-break: break-word;
  background: #fff8f9;
  box-shadow: 3px 0 8px rgba(138, 21, 48, 0.12);
}

/* ?????? ???? ??? ???? ???? ??????? ? ??? ??? z-index */
.month-atn-table thead .month-atn-th--sticky-roll,
.month-atn-table thead .month-atn-th--sticky-name {
  z-index: 22;
}

.month-atn-table thead .month-atn-th--sticky-name {
  z-index: 21;
}

.month-atn-td--meta {
  min-width: 5rem;
  background: #fff;
}

.month-atn-td--cat {
  min-width: 6rem;
}

.month-atn-td--gr {
  min-width: 7rem;
}

.month-atn-td--gen {
  min-width: 3.5rem;
}

.month-atn-td--sum {
  min-width: 3rem;
  background: rgba(138, 21, 48, 0.04);
  font-weight: 600;
}

.month-atn-table thead .month-atn-th--sum-subnum {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

.month-atn-td {
  vertical-align: middle;
  padding: 0.35rem 0.4rem;
}

.month-atn-table thead .month-atn-th {
  vertical-align: middle;
  padding: 0.4rem 0.35rem;
}

/* ???? ????? ????: ???? ? ??? / ???�?????�?????? / ????? ????? ? ???? ???? (??? ???? ??? ???????) */
.month-atn-table thead .month-atn-th.month-atn-th--off,
.month-atn-table thead .month-atn-th.month-atn-th--noreg,
.month-atn-table thead .month-atn-th.month-atn-th--blocked {
  background-color: #b6bcc3;
  color: #1a1d21;
  border-color: #9aa3ad;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ???????? ???? ????: ???? ???? + ???? ????????? */
.month-atn-table thead .month-atn-th-daystack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 3.1rem;
}

.month-atn-table thead .month-atn-th-dom {
  font-weight: 800;
  line-height: 1.15;
}

.month-atn-table thead select.month-atn-col-bulk {
  min-width: 3.1rem;
  max-width: 5.25rem;
  padding: 0.1rem 1.2rem 0.1rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 0.25rem;
  cursor: pointer;
}

.month-atn-table thead .month-atn-th--day select.month-atn-col-bulk {
  color: #1a1d21;
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* ???? ????? ???? ?? ? ? ??? ???; ????? ????? ????? ????? ????? ???? */
.month-atn-table thead .month-atn-th--noreg,
.month-atn-table thead .month-atn-th--blocked,
.month-atn-table thead .month-atn-th--off {
  cursor: pointer;
}

.month-atn-cell--day {
  background: #fff;
}

/* ??? / ????? / ?????? (???????? ???? ????) */
.month-atn-cell--off {
  background: #ced4da;
}

/* ???? ?????????? ????? ??? */
.month-atn-cell--noreg {
  background: #adb5bd;
  color: #212529;
}

/* ????? ?????? ????? */
.month-atn-cell--blocked {
  background: #98a1ad;
  color: #111827;
}

/* Bootstrap `.table > tbody > tr > td` ?? ??????? ????????? muted ??? ????? ????? ?? ? tbody ???? ??? ???? ????? ??? */
.month-atn-table.table > :not(caption) > * > td.month-atn-cell.month-atn-cell--off {
  background-color: #ced4da !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.month-atn-table.table > :not(caption) > * > td.month-atn-cell.month-atn-cell--noreg {
  background-color: #adb5bd !important;
  color: #212529 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.month-atn-table.table > :not(caption) > * > td.month-atn-cell.month-atn-cell--blocked {
  background-color: #98a1ad !important;
  color: #111827 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.month-atn-table.table > :not(caption) > * > td.month-atn-cell.month-atn-cell--locked {
  background-color: #fff3cd !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.month-atn-cell--locked {
  background: #fff3cd;
}

/* ?????? ?????? / ???? ?????? ??? ? ?????????? ??????? ? ???; grey disabled, ??? edit ???? */
.month-atn-cell--enroll-off {
  background: repeating-linear-gradient(
    135deg,
    #c2c8d0,
    #c2c8d0 6px,
    #b3bac3 6px,
    #b3bac3 12px
  );
  cursor: not-allowed;
}

.month-atn-table.table > :not(caption) > * > td.month-atn-cell.month-atn-cell--enroll-off {
  background-color: #c2c8d0 !important;
  background-image: repeating-linear-gradient(
    135deg,
    #c2c8d0,
    #c2c8d0 6px,
    #b3bac3 6px,
    #b3bac3 12px
  ) !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ?????? ?????? ??????? ???? ??? ????????? (dropdown ????) */
.month-atn-cell--day.month-atn-cell-bg--B {
  background: #fff;
}

.month-atn-cell--day.month-atn-cell-bg--P {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.month-atn-cell--day.month-atn-cell-bg--A {
  background: rgba(220, 53, 69, 0.3);
}

.month-atn-cell--day.month-atn-cell-bg--R {
  background: rgba(13, 110, 253, 0.22);
}

.month-atn-cell--day.month-atn-cell-bg--S {
  background: rgba(214, 51, 132, 0.26);
}

.month-atn-cell--day.month-atn-cell-bg--L {
  background: rgba(253, 126, 20, 0.28);
}

.month-atn-cell--day.month-atn-cell-bg--C {
  background: rgba(32, 201, 151, 0.22);
}

.month-atn-cell--day.month-atn-cell-bg--G {
  background: rgba(111, 66, 193, 0.22);
}

.month-atn-cell--day.month-atn-cell-bg--Z {
  background: rgba(108, 117, 125, 0.28);
}

.month-atn-cell--day[class*="month-atn-cell-bg--"] .month-atn-sel {
  background-color: rgba(255, 255, 255, 0.35);
  border-color: rgba(0, 0, 0, 0.12);
}

.month-atn-sel {
  min-width: 2.75rem;
  padding: 0.15rem 0.25rem;
  font-size: 0.8rem;
}

.month-atn-readonly {
  display: inline-block;
  min-width: 1.2rem;
  text-align: center;
  font-weight: 700;
}

.month-atn-cell .month-atn-sel option {
  font-size: 0.75rem;
}

/* Cell letter colors (desktop-style) */
.month-atn-cell .month-atn-readonly {
  color: #212529;
}

.month-atn-cell--blocked .month-atn-readonly,
.month-atn-cell--off .month-atn-readonly,
.month-atn-cell--noreg .month-atn-readonly {
  color: inherit;
}

@media print {
  .no-print {
    display: none !important;
  }

  .month-atn-grid-scroll--mirror {
    display: none !important;
  }

  .month-atn-grid-scroll--main {
    max-height: none;
    overflow: visible;
  }

  .month-atn-grid-scroll {
    max-height: none;
    overflow: visible;
  }

  .month-atn-table {
    font-size: 9pt;
  }
}

.month-atn-code--P {
  background: #fff;
  color: #212529;
  padding: 0.08rem 0.28rem;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.month-atn-code--A {
  background: #dc3545;
  color: #fff;
  padding: 0.08rem 0.28rem;
  border-radius: 2px;
}

.month-atn-code--S {
  background: #d63384;
  color: #fff;
  padding: 0.08rem 0.28rem;
  border-radius: 2px;
}

.month-atn-code--L {
  background: #fd7e14;
  color: #fff;
  padding: 0.08rem 0.28rem;
  border-radius: 2px;
}

/* ---------------------------------------------
   MonthAttendance footer summary
   (desktop-style category/gender counts)
   --------------------------------------------- */
.month-atn-table tfoot td {
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.month-atn-table tfoot tr.month-atn-foot-section td {
  background-color: #d9d9d9;
  color: #333;
  font-weight: 600;
  text-align: center;
  padding: 0.3rem 0.4rem;
  letter-spacing: 0.02em;
}

.month-atn-table tfoot td.month-atn-foot-label {
  text-align: center;
  font-weight: 500;
  background-color: #f6f6f6;
  color: #495057;
}

.month-atn-table tfoot td.month-atn-foot-day {
  text-align: end;
  padding: 0.2rem 0.35rem;
}

.month-atn-table tfoot td.month-atn-foot-day--muted {
  background-color: #dee2e6;
  color: #868e96;
}

.month-atn-table tfoot td.month-atn-foot-total {
  text-align: end;
  font-weight: 700;
  background-color: #fde9c8;
  color: #6b3a00;
}

.month-atn-table tfoot tr.month-atn-foot-yellow td {
  background-color: #fff3a4 !important;
  color: #4a3b00 !important;
  font-weight: 700;
}

.month-atn-table tfoot tr.month-atn-foot-yellow td.month-atn-foot-label {
  text-align: center;
}

/* ??? ????? + ??? ????? ?????? (?????? ??????) */
.month-atn-table tfoot tr.month-atn-foot-grand-total td {
  background-color: #dc3545 !important;
  color: #fff !important;
  font-weight: 700;
}

.month-atn-table tfoot tr.month-atn-foot-grand-total td.month-atn-foot-label {
  text-align: center;
}

/* ---------------------------------------------
   MonthAttendance ? grid ???? ???????-wise summary
   (?????? ????? + ??????/???????)
   --------------------------------------------- */
.month-atn-page .month-atn-sum-table {
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.month-atn-page .month-atn-sum-table thead th {
  background: linear-gradient(180deg, #2f6fae 0%, #265d93 100%);
  color: #fff;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  border-color: #1f4d7a;
  padding: 0.3rem 0.5rem;
}

.month-atn-page .month-atn-sum-table td {
  text-align: center;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.month-atn-page .month-atn-sum-table td.month-atn-sum-cat {
  text-align: start;
  font-weight: 600;
}

/* ????? / ????? ?????? ? ????? */
.month-atn-page .month-atn-sum-row--bg td {
  background-color: #f7edd3;
  color: #5a4a1e;
}

/* ??????? ????-?????? + ???-B / ???-G */
.month-atn-page .month-atn-sum-table--strength .month-atn-sum-row--sub td {
  background-color: #bfe3ef;
  color: #0f4a5a;
  font-weight: 700;
}

.month-atn-page .month-atn-sum-table--avg .month-atn-sum-row--sub td {
  background-color: #f6c9d6;
  color: #6a1230;
  font-weight: 700;
}

/* ??? (Tot) ? ?????? ??????? ?????? */
.month-atn-page .month-atn-sum-table--strength .month-atn-sum-row--grand td {
  background-color: #8fcfe0;
  color: #06303b;
  font-weight: 700;
}

.month-atn-page .month-atn-sum-table--avg .month-atn-sum-row--grand td {
  background-color: #f0a9bd;
  color: #5a0f28;
  font-weight: 700;
}

/* ===== School Dashboard ? ????? / IST / ?????? ===== */
.school-dashboard-page .dash-datetime-panel {
  min-width: min(100%, 20rem);
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #fff7ed 0%, #ffffff 55%, #fff1f2 100%);
  border: 1px solid rgba(136, 19, 55, 0.12);
  box-shadow: 0 1px 4px rgba(136, 19, 55, 0.06);
}

.school-dashboard-page .dash-datetime-panel__sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.school-dashboard-page .dash-datetime-panel__gu {
  color: var(--digi-accent, #881337);
  font-weight: 600;
  line-height: 1.45;
}

.school-dashboard-page .dash-datetime-panel__sun {
  line-height: 1.35;
}

@media (max-width: 767.98px) {
  .school-dashboard-page .dash-datetime-panel {
    width: 100%;
    text-align: start !important;
  }
}

/* ===== School Dashboard ? ??????? ?????? (?? ??? ???) ===== */
.school-dashboard-page .dash-jatavari-card {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* --- ?????: ?????? / ??????? (???? ???) --- */
.school-dashboard-page .dash-jatavari-card--reg {
  background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 48%, #f0fdf4 100%);
  box-shadow: 0 4px 20px rgba(22, 101, 52, 0.12);
}

.school-dashboard-page .dash-jatavari-card--reg .school-dashboard-jatavari-scroll {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 101, 52, 0.12);
}

.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-title {
  background: linear-gradient(90deg, #bbf7d0, #a7f3d0);
  color: #14532d;
}

/* ???? ? ???? ?????, ????? ???? */
.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-th-std-col {
  background: linear-gradient(180deg, #bbf7d0, #86efac) !important;
  color: #14532d;
}

.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-hdr-sub th {
  background: #ecfdf5;
  color: #166534;
}

/* ???? ???? ? ???? ???? ??????? ???? */
.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-table tbody tr:not([class*="dash-jatavari-row--"]) .dash-jatavari-std-label {
  background: #fff !important;
  color: #14532d !important;
  font-weight: 700;
}

/* ???? ??????? ? ??? ???? (alternative row ??) */
.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-table tbody tr:not([class*="dash-jatavari-row--"]) td {
  color: #1e293b !important;
  background-color: #fff !important;
}

.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-cat-tot {
  background: #dcfce7;
  color: #14532d;
  font-weight: 600;
}

.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-grand-cell {
  background: #bbf7d0;
  color: #14532d;
  font-weight: 700;
}

/* ???? TOT ? ???? ????? ???? ????, ??? ???? ?? ??? */
.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-row--std-tot td {
  background: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 700;
}

.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-row--std-tot .dash-jatavari-std-label {
  background: #bbf7d0 !important;
  color: #14532d !important;
}

.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-cell--click:focus {
  background: rgba(34, 197, 94, 0.28) !important;
  box-shadow: inset 0 0 0 2px rgba(22, 101, 52, 0.45);
  color: #14532d;
}

/* --- ?????: ????? ?????? ? dropdown ??????? ??? ??? --- */
.school-dashboard-page .dash-jatavari-card--metric {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* ???? ? ???? */
.school-dashboard-page .dash-jatavari-card--metric-haj {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 48%, #fef9c3 100%);
  box-shadow: 0 4px 20px rgba(202, 138, 4, 0.12);
}
.school-dashboard-page .dash-jatavari-card--metric-haj .school-dashboard-jatavari-scroll { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(202, 138, 4, 0.2); }
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-title { background: linear-gradient(90deg, #fde68a, #fcd34d); color: #78350f; }
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-th-std-col { background: linear-gradient(180deg, #fef08a, #fde047) !important; color: #713f12; }
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-hdr-sub th { background: #fffbeb; color: #854d0e; }
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-cat-tot { background: #fef3c7; color: #78350f; }
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-grand-cell { background: #fde68a; color: #78350f; }
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-row--std-tot td,
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-row--std-tot .dash-jatavari-std-label { background: #fef08a !important; color: #713f12 !important; }
.school-dashboard-page .dash-jatavari-card--metric-haj .dash-jatavari-metric-select { border-color: #ca8a04; color: #713f12; }

/* ??????? ? ?????? */
.school-dashboard-page .dash-jatavari-card--metric-ger {
  background: linear-gradient(145deg, #fff7ed 0%, #ffffff 48%, #ffedd5 100%);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.12);
}
.school-dashboard-page .dash-jatavari-card--metric-ger .school-dashboard-jatavari-scroll { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(234, 88, 12, 0.2); }
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-title { background: linear-gradient(90deg, #fed7aa, #fdba74); color: #7c2d12; }
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-th-std-col { background: linear-gradient(180deg, #fdba74, #fb923c) !important; color: #7c2d12; }
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-hdr-sub th { background: #fff7ed; color: #9a3412; }
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-cat-tot { background: #ffedd5; color: #9a3412; }
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-grand-cell { background: #fed7aa; color: #7c2d12; }
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-row--std-tot td,
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-row--std-tot .dash-jatavari-std-label { background: #fdba74 !important; color: #7c2d12 !important; }
.school-dashboard-page .dash-jatavari-card--metric-ger .dash-jatavari-metric-select { border-color: #ea580c; color: #9a3412; }

/* ????? ? ?????? */
.school-dashboard-page .dash-jatavari-card--metric-sick {
  background: linear-gradient(145deg, #fff1f2 0%, #ffffff 48%, #ffe4e6 100%);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.1);
}
.school-dashboard-page .dash-jatavari-card--metric-sick .school-dashboard-jatavari-scroll { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(225, 29, 72, 0.18); }
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-title { background: linear-gradient(90deg, #fecdd3, #fda4af); color: #881337; }
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-th-std-col { background: linear-gradient(180deg, #fda4af, #fb7185) !important; color: #881337; }
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-hdr-sub th { background: #fff1f2; color: #9f1239; }
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-cat-tot { background: #ffe4e6; color: #9f1239; }
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-grand-cell { background: #fecdd3; color: #881337; }
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-row--std-tot td,
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-row--std-tot .dash-jatavari-std-label { background: #fda4af !important; color: #881337 !important; }
.school-dashboard-page .dash-jatavari-card--metric-sick .dash-jatavari-metric-select { border-color: #e11d48; color: #9f1239; }

/* ??? ? ????? */
.school-dashboard-page .dash-jatavari-card--metric-leave {
  background: linear-gradient(145deg, #faf5ff 0%, #ffffff 48%, #f3e8ff 100%);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.1);
}
.school-dashboard-page .dash-jatavari-card--metric-leave .school-dashboard-jatavari-scroll { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(147, 51, 234, 0.18); }
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-title { background: linear-gradient(90deg, #e9d5ff, #d8b4fe); color: #581c87; }
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-th-std-col { background: linear-gradient(180deg, #d8b4fe, #c084fc) !important; color: #581c87; }
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-hdr-sub th { background: #faf5ff; color: #6b21a8; }
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-cat-tot { background: #f3e8ff; color: #6b21a8; }
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-grand-cell { background: #e9d5ff; color: #581c87; }
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-row--std-tot td,
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-row--std-tot .dash-jatavari-std-label { background: #d8b4fe !important; color: #581c87 !important; }
.school-dashboard-page .dash-jatavari-card--metric-leave .dash-jatavari-metric-select { border-color: #9333ea; color: #6b21a8; }

/* ????? ? ????? */
.school-dashboard-page .dash-jatavari-card--metric-came {
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 48%, #e0f2fe 100%);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}
.school-dashboard-page .dash-jatavari-card--metric-came .school-dashboard-jatavari-scroll { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(14, 165, 233, 0.18); }
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-title { background: linear-gradient(90deg, #bae6fd, #7dd3fc); color: #0c4a6e; }
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-th-std-col { background: linear-gradient(180deg, #7dd3fc, #38bdf8) !important; color: #0c4a6e; }
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-hdr-sub th { background: #f0f9ff; color: #075985; }
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-cat-tot { background: #e0f2fe; color: #075985; }
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-grand-cell { background: #bae6fd; color: #0c4a6e; }
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-row--std-tot td,
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-row--std-tot .dash-jatavari-std-label { background: #7dd3fc !important; color: #0c4a6e !important; }
.school-dashboard-page .dash-jatavari-card--metric-came .dash-jatavari-metric-select { border-color: #0284c7; color: #075985; }

/* ??? ? ????? */
.school-dashboard-page .dash-jatavari-card--metric-gone {
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 48%, #f1f5f9 100%);
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.12);
}
.school-dashboard-page .dash-jatavari-card--metric-gone .school-dashboard-jatavari-scroll { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(100, 116, 139, 0.22); }
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-title { background: linear-gradient(90deg, #cbd5e1, #94a3b8); color: #1e293b; }
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-th-std-col { background: linear-gradient(180deg, #94a3b8, #64748b) !important; color: #fff; }
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-hdr-sub th { background: #f1f5f9; color: #334155; }
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-cat-tot { background: #e2e8f0; color: #334155; }
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-grand-cell { background: #cbd5e1; color: #1e293b; }
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-row--std-tot td,
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-row--std-tot .dash-jatavari-std-label { background: #94a3b8 !important; color: #fff !important; }
.school-dashboard-page .dash-jatavari-card--metric-gone .dash-jatavari-metric-select { border-color: #64748b; color: #334155; }

/* MDM ? ????? */
.school-dashboard-page .dash-jatavari-card--metric-mdm {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 48%, #fef3c7 100%);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.12);
}
.school-dashboard-page .dash-jatavari-card--metric-mdm .school-dashboard-jatavari-scroll { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(217, 119, 6, 0.2); }
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-title { background: linear-gradient(90deg, #fcd34d, #fbbf24); color: #78350f; }
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-hdr-grp th,
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-th-std-col { background: linear-gradient(180deg, #fbbf24, #f59e0b) !important; color: #78350f; }
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-hdr-sub th { background: #fffbeb; color: #92400e; }
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-cat-tot { background: #fef3c7; color: #92400e; }
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-grand-cell { background: #fde68a; color: #78350f; }
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-row--std-tot td,
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-row--std-tot .dash-jatavari-std-label { background: #fbbf24 !important; color: #78350f !important; }
.school-dashboard-page .dash-jatavari-card--metric-mdm .dash-jatavari-metric-select { border-color: #d97706; color: #92400e; }

/* ??????? ?????? ? ??????? (???? ?????? ????) */
.school-dashboard-page [class*="dash-jatavari-card--metric-"] .dash-jatavari-table tbody tr:not([class*="dash-jatavari-row--"]) .dash-jatavari-std-label {
  background: #fff !important;
  font-weight: 700;
}
.school-dashboard-page [class*="dash-jatavari-card--metric-"] .dash-jatavari-table tbody tr:not([class*="dash-jatavari-row--"]) td {
  color: #1e293b !important;
  background-color: #fff !important;
}

.school-dashboard-page [class*="dash-jatavari-card--metric-"] .dash-jatavari-cell--click:hover,
.school-dashboard-page [class*="dash-jatavari-card--metric-"] .dash-jatavari-cell--click:focus {
  filter: brightness(0.94);
  box-shadow: inset 0 0 0 2px rgba(120, 53, 15, 0.35);
}

/* --- ????? ?????? ??????? ? ???? ???? ???? ???? ??? (???? ??????) --- */
.school-dashboard-page .dash-jatavari-row--g0-5 td,
.school-dashboard-page .dash-jatavari-row--g0-5 .dash-jatavari-std-label,
.school-dashboard-page .dash-jatavari-row--g6-8 td,
.school-dashboard-page .dash-jatavari-row--g6-8 .dash-jatavari-std-label {
  background: #f87171 !important;
  color: #fff !important;
  font-weight: 700;
}

.school-dashboard-page .dash-jatavari-row--g1-5 td,
.school-dashboard-page .dash-jatavari-row--g1-5 .dash-jatavari-std-label,
.school-dashboard-page .dash-jatavari-row--g1-8 td,
.school-dashboard-page .dash-jatavari-row--g1-8 .dash-jatavari-std-label {
  background: #c084fc !important;
  color: #fff !important;
  font-weight: 700;
}

.school-dashboard-page .dash-jatavari-row--g0-8 td,
.school-dashboard-page .dash-jatavari-row--g0-8 .dash-jatavari-std-label {
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 700;
}

/* --- ??????? ?????? --- */
.school-dashboard-page .school-dashboard-jatavari-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(70vh, 520px);
  border-radius: 0.5rem;
  --jv-top-grp: 2rem;
  --jv-top-sub: 4.1rem;
}

.school-dashboard-page .dash-jatavari-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  min-width: 680px;
  --bs-table-color: #1e293b;
  --bs-table-bg: transparent;
}

.school-dashboard-page .dash-jatavari-table th,
.school-dashboard-page .dash-jatavari-table td {
  border: 1px solid rgba(30, 41, 59, 0.12);
  padding: 4px 6px;
  white-space: nowrap;
}

.school-dashboard-page .dash-jatavari-title {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 11;
  background-clip: padding-box;
}

.school-dashboard-page .dash-jatavari-hdr-grp th {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  padding: 6px 4px;
  position: sticky;
  top: var(--jv-top-grp);
  z-index: 10;
  background-clip: padding-box;
}

.school-dashboard-page .dash-jatavari-th-std-col {
  vertical-align: middle;
  text-align: center;
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 16;
  min-width: 3.25rem;
  background-clip: padding-box;
  box-shadow: 2px 0 4px rgba(15, 23, 42, 0.08);
}

.school-dashboard-page .dash-jatavari-hdr-sub th {
  text-align: center;
  font-weight: 600;
  font-size: 10px;
  position: sticky;
  top: var(--jv-top-sub);
  z-index: 10;
  background-clip: padding-box;
}

.school-dashboard-page .dash-jatavari-std-label {
  font-weight: 700;
  text-align: left !important;
  position: sticky;
  left: 0;
  z-index: 4;
  background-clip: padding-box;
  box-shadow: 2px 0 4px rgba(15, 23, 42, 0.06);
}

.school-dashboard-page .dash-jatavari-std-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.school-dashboard-page .dash-jatavari-sc-chk {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
  width: 1rem;
  height: 1rem;
}

.school-dashboard-page .dash-jatavari-std-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-dashboard-page .dash-jatavari-row--excluded td {
  opacity: 0.48;
}

.school-dashboard-page .dash-jatavari-row--excluded .dash-jatavari-sc-chk {
  opacity: 1;
}

.school-dashboard-page .dash-jatavari-cell--click {
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  font-weight: 600;
}

.school-dashboard-page .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-cell--click:focus {
  filter: brightness(0.92);
  box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.35);
  outline: none;
}

.school-dashboard-page .dash-jatavari-row--g0-5 .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-row--g0-5 .dash-jatavari-cell--click:focus,
.school-dashboard-page .dash-jatavari-row--g6-8 .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-row--g6-8 .dash-jatavari-cell--click:focus,
.school-dashboard-page .dash-jatavari-row--g1-5 .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-row--g1-5 .dash-jatavari-cell--click:focus,
.school-dashboard-page .dash-jatavari-row--g1-8 .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-row--g1-8 .dash-jatavari-cell--click:focus,
.school-dashboard-page .dash-jatavari-row--g0-8 .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-row--g0-8 .dash-jatavari-cell--click:focus,
.school-dashboard-page .dash-jatavari-row--std-tot .dash-jatavari-cell--click:hover,
.school-dashboard-page .dash-jatavari-row--std-tot .dash-jatavari-cell--click:focus {
  filter: brightness(1.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.school-dashboard-page .dash-jatavari-metric-select {
  max-width: 8.6rem;
  min-width: 0;
  flex: 0 1 8.6rem;
  font-weight: 600;
  font-size: 0.78rem;
  padding-left: 0.4rem;
  padding-right: 1.55rem;
  background-color: rgba(255, 255, 255, 0.92);
}

.school-dashboard-page .dash-jatavari-view-select {
  max-width: 7.25rem;
  min-width: 0;
  flex: 0 1 7.25rem;
  font-weight: 600;
  font-size: 0.78rem;
  padding-left: 0.4rem;
  padding-right: 1.55rem;
  background-color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
  color: #1f2937;
}

.school-dashboard-page .dash-jatavari-gender-select {
  max-width: 8.15rem;
  flex-basis: 8.15rem;
}

.school-dashboard-page .staff-doc-section-card__head--dash-metric > span {
  flex-shrink: 0;
  white-space: nowrap;
}

.school-dashboard-page .dash-jatavari-card--reg .dash-jatavari-view-select {
  border-color: rgba(21, 128, 61, 0.35);
  color: #14532d;
}

.school-dashboard-page [class*="dash-jatavari-card--metric-"] .dash-jatavari-view-select {
  border-color: rgba(15, 23, 42, 0.18);
}

.school-dashboard-page .dash-chart-card {
  border-radius: 14px;
  overflow: hidden;
}

/* --- Dashboard / birthday section heading strips --- */
:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .staff-doc-section-card {
  border-radius: 14px;
  overflow: hidden;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.school-dashboard-page .staff-doc-section-card__head--dash-reg {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.school-dashboard-page .staff-doc-section-card__head--dash-metric {
  background: linear-gradient(125deg, #a16207 0%, #ca8a04 55%, #fde047 100%);
  color: #422006 !important;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  gap: 0.35rem;
}

.school-dashboard-page .dash-jatavari-card--metric-ger .staff-doc-section-card__head--dash-metric {
  background: linear-gradient(125deg, #9a3412 0%, #ea580c 55%, #fdba74 100%);
  color: #fff !important;
}

.school-dashboard-page .dash-jatavari-card--metric-sick .staff-doc-section-card__head--dash-metric {
  background: linear-gradient(125deg, #9f1239 0%, #e11d48 55%, #fda4af 100%);
}

.school-dashboard-page .dash-jatavari-card--metric-leave .staff-doc-section-card__head--dash-metric {
  background: linear-gradient(125deg, #6b21a8 0%, #9333ea 55%, #d8b4fe 100%);
}

.school-dashboard-page .dash-jatavari-card--metric-came .staff-doc-section-card__head--dash-metric {
  background: linear-gradient(125deg, #075985 0%, #0284c7 55%, #7dd3fc 100%);
}

.school-dashboard-page .dash-jatavari-card--metric-gone .staff-doc-section-card__head--dash-metric {
  background: linear-gradient(125deg, #334155 0%, #64748b 55%, #cbd5e1 100%);
}

.school-dashboard-page .dash-jatavari-card--metric-mdm .staff-doc-section-card__head--dash-metric {
  background: linear-gradient(125deg, #92400e 0%, #d97706 55%, #fcd34d 100%);
  color: #422006 !important;
}

.school-dashboard-page .staff-doc-section-card__head--dash-chart-std {
  background: linear-gradient(125deg, #14532d 0%, #22c55e 45%, #ef4444 100%);
}

.school-dashboard-page .staff-doc-section-card__head--dash-chart-cat {
  background: linear-gradient(125deg, #1d4ed8 0%, #3b82f6 45%, #f97316 100%);
}

.school-dashboard-page .dash-chart-card--std {
  background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 48%, #fef2f2 100%);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.12);
}

.school-dashboard-page .dash-chart-card--std .card-body {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(34, 197, 94, 0.12);
}

.school-dashboard-page .dash-chart-card--cat {
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 48%, #fff7ed 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

.school-dashboard-page .dash-chart-card--cat .card-body {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}

.school-dashboard-page .dash-jatavari-card--reg .staff-doc-section-card__head--dash-reg + .card-body,
.school-dashboard-page [class*="dash-jatavari-card--metric-"] .card-body {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* --- ????-???? ????? ?????? ????? --- */
.school-dashboard-page .dash-stdhaj-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(145deg, #f0fdfa 0%, #ffffff 48%, #ecfdf5 100%);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12);
}

.school-dashboard-page .staff-doc-section-card__head--dash-stdhaj {
  background: linear-gradient(125deg, #0f766e 0%, #14b8a6 30%, #22c55e 60%, #f59e0b 100%);
}

.school-dashboard-page .school-dashboard-stdhaj-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(55vh, 380px);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 148, 136, 0.16);
}

.school-dashboard-page .dash-stdhaj-table {
  width: 100%;
  margin-bottom: 0;
  font-size: 0.85rem;
  border-collapse: separate;
  border-spacing: 0;
}

.school-dashboard-page .dash-stdhaj-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #99f6e4, #5eead4);
  color: #134e4a;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(13, 148, 136, 0.3);
}

.school-dashboard-page .dash-stdhaj-table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 0.35rem 0.6rem;
  color: #1e293b;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.school-dashboard-page .dash-stdhaj-table tbody tr:hover td {
  background: rgba(20, 184, 166, 0.08);
}

.school-dashboard-page .dash-stdhaj-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  text-align: center;
  vertical-align: middle;
  padding: 0.45rem 0.6rem;
  background: linear-gradient(180deg, #5eead4, #99f6e4);
  color: #134e4a;
  font-weight: 700;
  border-top: 1px solid rgba(13, 148, 136, 0.3);
}

.school-dashboard-page .dash-stdhaj-table tfoot .dash-stdhaj-label {
  text-align: start;
  white-space: nowrap;
}

.school-dashboard-page .dash-stdhaj-table .dash-stdhaj-label {
  text-align: start;
  font-weight: 600;
  color: #134e4a;
  white-space: nowrap;
}

.school-dashboard-page .dash-stdhaj-class {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 100%;
  vertical-align: middle;
}

.school-dashboard-page .dash-stdhaj-class__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.school-dashboard-page .dash-stdhaj-full-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.12em 0.48em 0.14em;
  border-radius: 0.28rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #ff4d4d 0%, #dc2626 48%, #991b1b 100%);
  border: 1px solid #7f1d1d;
  border-top-color: #fecaca;
  border-left-color: #fca5a5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 3px rgba(80, 0, 0, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 3px rgba(127, 29, 29, 0.45);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 180, 180, 0.25);
  animation: dashFullAttPulse 1.7s ease-in-out infinite;
}

.school-dashboard-page .dash-stdhaj-table tbody tr.dash-row-full-att td {
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.85) 0%, rgba(255, 255, 255, 0.42) 55%);
}

.school-dashboard-page .dash-stdhaj-table tbody tr.dash-row-full-att:hover td {
  background: linear-gradient(90deg, rgba(254, 202, 202, 0.95) 0%, rgba(254, 226, 226, 0.55) 55%);
}

@keyframes dashFullAttPulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -2px 3px rgba(80, 0, 0, 0.38),
      0 1px 0 rgba(255, 255, 255, 0.4),
      0 2px 3px rgba(127, 29, 29, 0.45),
      0 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    filter: brightness(1.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      inset 0 -2px 3px rgba(80, 0, 0, 0.32),
      0 1px 0 rgba(255, 255, 255, 0.5),
      0 2px 4px rgba(185, 28, 28, 0.55),
      0 0 10px 2px rgba(220, 38, 38, 0.55);
  }
}

.school-dashboard-page .dash-stdhaj-col-light,
.school-dashboard-page .dash-stdhaj-table th.dash-stdhaj-col-light {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.school-dashboard-page .dash-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);
}

.school-dashboard-page .dash-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: dashStatusLightPulse 2.4s ease-in-out infinite;
}

@keyframes dashStatusLightPulse {
  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, 0.95), 0 0 5px #15803d; }
}

/* --- જન્મદિવસ / સ્ટાફ દાખલ તારીખ કાર્ડ --- */
:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .staff-doc-section-card__head--dash-birthday {
  background: linear-gradient(125deg, #9d174d 0%, #db2777 50%, #f9a8d4 100%);
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .staff-doc-section-card__head--dash-birthday .btn-light {
  color: #9d174d;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .staff-doc-section-card__head--dash-birthday .btn-light:disabled {
  opacity: 0.55;
}

.staff-dashboard-page .staff-doc-section-card__head--dash-dept-join {
  background: linear-gradient(125deg, #0f766e 0%, #14b8a6 50%, #99f6e4 100%);
}

.staff-dashboard-page .staff-doc-section-card__head--dash-school-join {
  background: linear-gradient(125deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-card {
  --dash-bday-photo-h: 7.5rem;
  background: linear-gradient(145deg, #fdf2f8 0%, #ffffff 48%, #fce7f3 100%);
  box-shadow: 0 4px 20px rgba(219, 39, 119, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
}

.staff-dashboard-page .dash-birthday-card.dash-occasion-card--dept {
  background: linear-gradient(145deg, #f0fdfa 0%, #ffffff 48%, #ccfbf1 100%);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.12);
}

.staff-dashboard-page .dash-birthday-card.dash-occasion-card--school {
  background: linear-gradient(145deg, #eff6ff 0%, #ffffff 48%, #dbeafe 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-card .card-body {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(219, 39, 119, 0.12);
}

.staff-dashboard-page .dash-occasion-card--dept .card-body {
  border-top-color: rgba(20, 184, 166, 0.18);
}

.staff-dashboard-page .dash-occasion-card--school .card-body {
  border-top-color: rgba(59, 130, 246, 0.18);
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-count {
  background: rgba(255, 255, 255, 0.92);
  color: #9d174d;
  font-weight: 700;
}

.staff-dashboard-page .dash-occasion-card--dept .dash-birthday-count {
  color: #0f766e;
}

.staff-dashboard-page .dash-occasion-card--school .dash-birthday-count {
  color: #1e40af;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.15rem;
}

.school-dashboard-page .dash-birthday-scroll {
  max-height: calc(var(--dash-bday-photo-h) * 2.35 + 1.25rem);
}

.staff-dashboard-page .dash-birthday-card--staff-dash {
  --dash-bday-photo-h: 5.5rem;
}

.staff-dashboard-page .dash-birthday-card--staff-dash .dash-birthday-scroll {
  max-height: min(38vh, 280px);
}

.birthday-card-page .dash-birthday-scroll {
  max-height: none;
}

.school-dashboard-page .dash-birthday-card--chart-side {
  --dash-bday-photo-h: 5.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.school-dashboard-page .dash-birthday-card--chart-side .dash-birthday-scroll {
  max-height: min(42vh, 320px);
}

.school-dashboard-page .dash-birthday-card--chart-side .dash-birthday-actions {
  min-width: 0;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .school-dashboard-page .dash-birthday-card--chart-side .dash-birthday-item {
    grid-template-columns: auto 1fr;
  }

  .school-dashboard-page .dash-birthday-card--chart-side .dash-birthday-actions {
    grid-column: 1 / -1;
  }
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
  min-height: var(--dash-bday-photo-h);
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(219, 39, 119, 0.14);
  box-shadow: 0 2px 10px rgba(157, 23, 77, 0.06);
}

.staff-dashboard-page .dash-birthday-card--staff-dash .dash-birthday-item {
  grid-template-columns: auto 1fr;
}

.staff-dashboard-page .dash-occasion-card--dept .dash-birthday-item {
  border-color: rgba(20, 184, 166, 0.2);
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.06);
}

.staff-dashboard-page .dash-occasion-card--school .dash-birthday-item {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.06);
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-photo {
  width: calc(var(--dash-bday-photo-h) * 0.8);
  height: var(--dash-bday-photo-h);
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #fce7f3, #fdf2f8);
  border: 1px solid rgba(219, 39, 119, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-dashboard-page .dash-occasion-card--dept .dash-birthday-photo {
  background: linear-gradient(180deg, #ccfbf1, #f0fdfa);
  border-color: rgba(20, 184, 166, 0.22);
}

.staff-dashboard-page .dash-occasion-card--school .dash-birthday-photo {
  background: linear-gradient(180deg, #dbeafe, #eff6ff);
  border-color: rgba(59, 130, 246, 0.22);
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-photo-placeholder {
  color: #db2777;
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-dashboard-page .dash-occasion-card--dept .dash-birthday-photo-placeholder {
  color: #0d9488;
}

.staff-dashboard-page .dash-occasion-card--school .dash-birthday-photo-placeholder {
  color: #2563eb;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-name {
  font-size: 1rem;
  font-weight: 800;
  color: #831843;
}

.staff-dashboard-page .dash-occasion-card--dept .dash-birthday-name {
  color: #115e59;
}

.staff-dashboard-page .dash-occasion-card--school .dash-birthday-name {
  color: #1e3a8a;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-kind {
  font-weight: 700;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-kind--student {
  background: #dcfce7;
  color: #166534;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-kind--staff {
  background: #dbeafe;
  color: #1d4ed8;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-meta {
  display: grid;
  gap: 0.2rem;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.875rem;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-meta-row dt {
  margin: 0;
  font-weight: 700;
  color: #9d174d;
}

.staff-dashboard-page .dash-occasion-card--dept .dash-birthday-meta-row dt {
  color: #0f766e;
}

.staff-dashboard-page .dash-occasion-card--school .dash-birthday-meta-row dt {
  color: #1d4ed8;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-meta-row dd {
  margin: 0;
  color: #334155;
}

:is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-actions {
  min-width: 10.5rem;
}

@media (max-width: 767.98px) {
  :is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-item {
    grid-template-columns: auto 1fr;
  }

  :is(.school-dashboard-page, .birthday-card-page, .staff-dashboard-page) .dash-birthday-actions {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

/* --- ???? ???? ????? ??? + ??????? --- */
.bday-settings-design-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  cursor: pointer;
  height: 100%;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bday-settings-design-card.is-selected {
  border-color: #be185d;
  box-shadow: 0 0 0 2px rgba(190, 24, 93, 0.2);
}

.bday-settings-design-card input {
  align-self: flex-start;
}

.bday-settings-design-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bday-settings-design-preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9d174d;
  background: linear-gradient(180deg, #fff5f7, #fce7f3);
}

.bday-settings-design-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #831843;
}

body.bday-card-print-body {
  margin: 0;
  background: #e9ecef;
  font-family: "Noto Sans Gujarati", "Nirmala UI", Arial, sans-serif;
}

.bday-card-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.bday-card-stage {
  min-height: calc(100vh - 52px);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.bday-card-doc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.bday-card-sheet {
  position: relative;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 !important;
  min-height: 0 !important;
}

.bday-card-page--a4-portrait { width: 210mm; height: 297mm; }
.bday-card-page--a4-landscape { width: 297mm; height: 210mm; }
.bday-card-page--a5-portrait { width: 148mm; height: 210mm; }
.bday-card-page--a5-landscape { width: 210mm; height: 148mm; }

.bday-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  z-index: 1;
  max-width: none !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.bday-card-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.bday-card-field {
  position: absolute;
  z-index: 6;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  font-family: "Noto Sans Gujarati", "Nirmala UI", Arial, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  display: block;
  padding: 0;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

/* y pixel = underline ? Print view `bottom` + flex-end ?? ??????? ???? ??; translateY ???? (?? ???? ??? ???) */
.bday-card-field--baseline {
  transform: none;
}

.bday-card-field--wrap {
  white-space: normal;
  word-break: break-word;
  line-height: 1.15;
  overflow: visible;
  text-overflow: clip;
}

@media print {
  body.bday-card-print-body {
    background: #fff !important;
  }

  .bday-card-stage { padding: 0; background: #fff; min-height: 0; }
  .bday-card-doc { gap: 0; }
  .bday-card-sheet {
    box-shadow: none !important;
    border: none !important;
    page-break-after: always;
    break-after: page;
  }
  .bday-card-sheet.bday-card-page--a4-portrait { width: 210mm !important; height: 297mm !important; }
  .bday-card-sheet.bday-card-page--a4-landscape { width: 297mm !important; height: 210mm !important; }
  .bday-card-sheet.bday-card-page--a5-portrait { width: 148mm !important; height: 210mm !important; }
  .bday-card-sheet.bday-card-page--a5-landscape { width: 210mm !important; height: 148mm !important; }
  .bday-card-sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .bday-card-field {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .bday-card-field--baseline {
    transform: none !important;
  }
}

/* --- ???? ?????? ????? --- */
.school-dashboard-page .staff-doc-section-card__head--dash-adm-filter {
  background: linear-gradient(135deg, #334155 0%, #475569 42%, #94a3b8 100%);
  padding: 0.85rem 1rem;
}

.school-dashboard-page .staff-doc-section-card__head--dash-bv {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 42%, #fb923c 100%);
  padding: 0.85rem 1rem;
}

.school-dashboard-page .staff-doc-section-card__head--dash-std1 {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 42%, #86efac 100%);
  padding: 0.85rem 1rem;
}

.school-dashboard-page .staff-doc-section-card__head--dash-std28 {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 42%, #93c5fd 100%);
  padding: 0.85rem 1rem;
}

.school-dashboard-page .dash-bv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
}

.school-dashboard-page .dash-bv-head__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 10rem;
}

.school-dashboard-page .dash-bv-head__title {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #fff;
}

.school-dashboard-page .dash-bv-range-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.school-dashboard-page .dash-bv-head__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
  flex: 1 1 18rem;
  justify-content: center;
}

.school-dashboard-page .dash-bv-date-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.school-dashboard-page .dash-bv-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 8.5rem;
}

.school-dashboard-page .dash-bv-date-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a3412;
}

.school-dashboard-page .dash-bv-date-input {
  border-color: rgba(234, 88, 12, 0.28);
  font-size: 0.82rem;
  min-height: 2rem;
}

.school-dashboard-page .dash-bv-date-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.18);
}

.school-dashboard-page .dash-bv-date-sep {
  color: rgba(124, 45, 18, 0.55);
  font-weight: 700;
  padding-bottom: 0.35rem;
}

.school-dashboard-page .dash-bv-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.school-dashboard-page .dash-bv-head__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.school-dashboard-page .dash-bv-summary-card {
  background: linear-gradient(160deg, #fff7ed 0%, #ffffff 38%, #fffbeb 100%);
  box-shadow: 0 10px 32px rgba(234, 88, 12, 0.14);
  overflow: hidden;
}

.school-dashboard-page .dash-bv-summary-card .card-body {
  background: transparent;
}

/* ???? ?????? ? ???? ??? */
.school-dashboard-page .dash-adm-tabs-wrap {
  margin-top: 0.35rem;
}

.school-dashboard-page .dash-adm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.school-dashboard-page .dash-adm-tab {
  flex: 1 1 7.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.school-dashboard-page .dash-adm-tab:hover {
  color: #1e293b;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.school-dashboard-page .dash-adm-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.school-dashboard-page .dash-adm-tab.active .dash-adm-tab__count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.school-dashboard-page .dash-adm-tab--bv:not(.active) .dash-adm-tab__count {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.28);
}

.school-dashboard-page .dash-adm-tab--std1:not(.active) .dash-adm-tab__count {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.28);
}

.school-dashboard-page .dash-adm-tab--std28:not(.active) .dash-adm-tab__count {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.school-dashboard-page .dash-adm-tab.active {
  color: #fff;
  transform: translateY(-1px);
}

.school-dashboard-page .dash-adm-tab--bv.active {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 55%, #fb923c 100%);
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.32);
}

.school-dashboard-page .dash-adm-tab--std1.active {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 55%, #4ade80 100%);
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}

.school-dashboard-page .dash-adm-tab--std28.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.school-dashboard-page .dash-adm-tab-panel {
  animation: dashAdmTabFade 0.22s ease;
}

@keyframes dashAdmTabFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.school-dashboard-page .dash-adm-panel-meta {
  min-height: 1.75rem;
}

.school-dashboard-page .dash-adm-range-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.school-dashboard-page .dash-bv-summary-total {
  background: rgba(255, 255, 255, 0.95);
  color: #c2410c;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.school-dashboard-page .dash-bv-empty {
  padding: 2rem 1rem;
}

.school-dashboard-page .dash-bv-empty__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.school-dashboard-page .dash-bv-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.school-dashboard-page .dash-bv-kpi {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  border-left: 4px solid #fdba74;
}

.school-dashboard-page .dash-bv-kpi--total { border-left-color: #ea580c; }
.school-dashboard-page .dash-bv-kpi--boy { border-left-color: #3b82f6; }
.school-dashboard-page .dash-bv-kpi--girl { border-left-color: #ec4899; }
.school-dashboard-page .dash-bv-kpi--mode { border-left-color: #22c55e; }

.school-dashboard-page .dash-bv-kpi__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.school-dashboard-page .dash-bv-kpi__value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.school-dashboard-page .dash-bv-kpi__sub {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.school-dashboard-page .dash-bv-kpi--clickable {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.school-dashboard-page .dash-bv-kpi--clickable:hover,
.school-dashboard-page .dash-bv-kpi--clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  outline: none;
}

.school-dashboard-page .dash-adm-students-panel {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.school-dashboard-page .dash-adm-students-panel__head {
  padding: 0.65rem 1rem;
  background: linear-gradient(125deg, #7c2d12 0%, #ea580c 60%, #fdba74 100%);
  color: #fff;
}

.school-dashboard-page .dash-adm-students-panel__title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.school-dashboard-page .dash-adm-students-panel__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
}

.school-dashboard-page .dash-adm-students-scroll {
  max-height: calc(2.6rem + 10 * 2.5rem);
  overflow: auto;
}

.school-dashboard-page .dash-adm-students-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.school-dashboard-page .dash-adm-students-table td {
  vertical-align: middle;
  font-size: 0.85rem;
}

.school-dashboard-page .dash-bv-chart-card {
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.school-dashboard-page .dash-bv-chart-card__head {
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.school-dashboard-page .dash-bv-chart-card--cat .dash-bv-chart-card__head {
  background: linear-gradient(125deg, #c2410c 0%, #ea580c 55%, #fdba74 100%);
}

.school-dashboard-page .dash-bv-chart-card--gender .dash-bv-chart-card__head {
  background: linear-gradient(125deg, #1d4ed8 0%, #3b82f6 50%, #ec4899 100%);
}

.school-dashboard-page .dash-bv-chart-card--mode .dash-bv-chart-card__head {
  background: linear-gradient(125deg, #166534 0%, #22c55e 45%, #f59e0b 100%);
}

.school-dashboard-page .dash-bv-chart-card--share .dash-bv-chart-card__head {
  background: linear-gradient(125deg, #6b21a8 0%, #9333ea 55%, #0ea5e9 100%);
}

.school-dashboard-page .dash-bv-chart-wrap {
  position: relative;
  min-height: 240px;
  height: min(38vh, 300px);
  padding: 0.75rem 0.85rem 1rem;
}

.school-dashboard-page .dash-bv-chart-wrap--donut {
  min-height: 220px;
  height: min(34vh, 280px);
}

.school-dashboard-page .dash-bv-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1199.98px) {
  .school-dashboard-page .dash-bv-head__meta {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .school-dashboard-page .dash-bv-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .school-dashboard-page .dash-bv-head__toolbar {
    justify-content: stretch;
  }

  .school-dashboard-page .dash-bv-date-range {
    width: 100%;
  }

  .school-dashboard-page .dash-bv-date-field {
    flex: 1 1 7rem;
  }

  .school-dashboard-page .dash-bv-kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}

.school-dashboard-page .dash-chart-wrap {
  position: relative;
  min-height: 260px;
  height: min(42vh, 320px);
}

.school-dashboard-page .dash-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.school-dashboard-page .adv-search-coming-card {
  max-width: 560px;
}

/* AdvSearch ? Tabulator grid (GrView pattern) */
.adv-search-page .adv-col-card {
  max-width: 280px;
}

.adv-search-page .adv-col-toolbar {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(7, 89, 133, 0.14);
  background: #f5fbff;
}

.adv-search-page .adv-search-col-scroll {
  max-height: 70vh;
  overflow: auto;
}

.adv-search-page .adv-col-card .form-check-input {
  opacity: 1;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid rgba(90, 11, 27, 0.35);
}

.adv-search-page .adv-col-card .form-check-input:checked {
  background-color: #198754;
  border-color: #157347;
}

.adv-search-page .adv-col-card .form-check-label {
  cursor: pointer;
  user-select: none;
}

.adv-search-page .adv-search-grid--pending .school-user-toolbar,
.adv-search-page .adv-search-grid--pending .school-user-grid-scroll,
.adv-search-page .adv-search-grid--pending .px-3.px-md-4.pb-3 {
  opacity: 0.55;
  pointer-events: none;
}

.adv-search-page .adv-search-col--pending {
  opacity: 0.55;
  pointer-events: none;
}

.adv-search-page .tabulator-row.adv-row--focus .tabulator-cell {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
}

/* ??.?.??.-? ??????? */
.vagale-entry-page .school-user-page-title,
.vagale-entry-page .form-label,
.vagale-entry-page .form-text {
  color: var(--digi-accent) !important;
}

.vagale-entry-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.vagale-entry-page .staff-doc-section-card .card-body {
  background: #fff;
}

.vagale-entry-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.vagale-entry-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.vagale-entry-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.vagale-entry-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.vagale-entry-page {
  --vagale-sr-width: 3.25rem;
}

.vagale-entry-page .vagale-hint-text {
  color: #c62828;
  font-weight: 600;
}

.vagale-entry-page .vagale-filter-row .form-label {
  margin-bottom: 0.35rem;
}

.vagale-entry-page .vagale-filter-actions {
  min-height: 2.375rem;
}

.vagale-entry-page #gridShell .vagale-grid-card-body {
  overflow: visible;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf2 100%);
}

.vagale-entry-page #gridShell .vagale-grid-scroll {
  margin: 0.75rem 1rem 0.5rem;
  /* sticky freeze ???? scroll ??? ?? padding ???? ? inset ???? margin */
  padding: 0 !important;
  background: #fff;
  border: 1px solid rgba(122, 41, 41, 0.16);
  border-radius: 10px;
  box-shadow:
    0 2px 8px rgba(18, 38, 63, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
  overflow: auto;
}

.vagale-entry-page #gridShell #vagaleSummaryWrap {
  background: #fff;
  margin: 0 1rem 0.5rem;
  border: 1px solid rgba(122, 41, 41, 0.12);
  border-radius: 10px;
}

.vagale-entry-page #gridShell .vagale-grid-actions {
  margin: 0 1rem 1rem;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  background: #fff;
  border: 1px solid rgba(122, 41, 41, 0.12);
  border-radius: 10px;
}

.vagale-entry-page .vagale-grade-table {
  border-collapse: separate !important;
  border-spacing: 0;
  min-width: 42rem;
}

/* sticky header ? th ??; ????. ???? z-index ???? (???? ??? ?? ???) */
.vagale-entry-page .vagale-grade-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-clip: padding-box;
}

/* ????? ????? ???? (????./???) ? ??? ??????? (????) */
.vagale-entry-page .vagale-grade-table tbody td.vagale-td--sticky-sr {
  position: sticky;
  left: 0;
  z-index: 4;
  box-sizing: border-box;
  width: var(--vagale-sr-width);
  min-width: var(--vagale-sr-width);
  max-width: var(--vagale-sr-width);
  background: #fff;
  box-shadow: 2px 0 6px rgba(138, 21, 48, 0.1);
}

/* ????? ???? ???? ? ??? + ??? ???? ?????? (???? z-index ???? ????) */
.vagale-entry-page .vagale-grade-table thead th.vagale-th--sticky-sr {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 25;
  box-sizing: border-box;
  width: var(--vagale-sr-width);
  min-width: var(--vagale-sr-width);
  max-width: var(--vagale-sr-width);
  background-color: #7a1029;
  background-image: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  background-clip: padding-box;
  color: #fff;
  box-shadow: 2px 2px 8px rgba(90, 11, 27, 0.35);
}

.vagale-entry-page .vagale-td-name {
  min-width: 9.5rem;
  white-space: normal;
  word-break: break-word;
  background: #fff;
}

.vagale-entry-page .vagale-grade-select {
  min-width: 4.25rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  text-align: center;
  font-weight: 700;
  border-width: 2px;
}

.vagale-entry-page .vagale-grade-select.vagale-grade--a {
  background-color: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}

.vagale-entry-page .vagale-grade-select.vagale-grade--b {
  background-color: #e3f2fd;
  border-color: #1565c0;
  color: #0d47a1;
}

.vagale-entry-page .vagale-grade-select.vagale-grade--c {
  background-color: #fff8e1;
  border-color: #f9a825;
  color: #f57f17;
}

.vagale-entry-page .vagale-grade-select.vagale-grade--d {
  background-color: #ffebee;
  border-color: #c62828;
  color: #b71c1c;
}

/* FLN ??????? ? 10 ???? header (wrap) + solid sticky header (rows ??? ? ?????) */
.fln-entry-page #gridShell .vagale-grid-scroll {
  padding: 0 !important;
}

.fln-entry-page .fln-grade-table thead th {
  vertical-align: bottom;
  background-clip: border-box;
  z-index: 12;
}

.fln-entry-page .fln-grade-table thead th.vagale-th--sticky-sr {
  z-index: 26;
}

.fln-entry-page .fln-hetu-th {
  white-space: normal;
  width: 6.75rem;
  min-width: 6.75rem;
  max-width: 6.75rem;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  padding-top: 8px;
  padding-bottom: 8px;
}

.fln-entry-page .fln-hetu-no {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.fln-entry-page .fln-hetu-txt {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 500;
}

.fln-entry-page .fln-mark-select {
  min-width: 3.75rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  text-align: center;
  font-weight: 700;
}

.fln-entry-page .fln-grade-table tbody td.fln-mark-cell--0 {
  background-color: #ffebee !important;
}

.fln-entry-page .fln-mark-select.fln-mark--0 {
  background-color: #ffcdd2;
  border-color: #ef9a9a;
  color: #b71c1c;
}

.fln-entry-page tr.vagale-row-frozen td.fln-mark-cell--0 {
  background-color: #fce4ec !important;
}

.fln-entry-page .fln-bulk-select {
  display: block;
  margin: 6px auto 0;
  width: auto;
  min-width: 4.25rem;
  padding: 0.05rem 1.25rem 0.05rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5a0b1b;
  background-color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

/* FLN summary ? modern dashboard panels + charts */
.fln-summary-card {
  overflow: hidden;
}

.fln-summary-card .fln-sum--modern {
  animation: flnSumFadeIn 0.45s ease-out;
}

@keyframes flnSumFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fln-summary-card .fln-sum-panel {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(122, 41, 41, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(18, 38, 63, 0.06);
  overflow: hidden;
}

.fln-summary-card .fln-sum-panel__head {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.fln-summary-card .fln-sum-panel__head--dist {
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 100%);
}

.fln-summary-card .fln-sum-panel__head--distchart {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
}

.fln-summary-card .fln-sum-panel__head--band {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
}

.fln-summary-card .fln-sum-panel__head--bandchart {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.fln-summary-card .fln-sum-panel__head--gender {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.fln-summary-card .fln-sum-panel__head--category {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.fln-summary-card .fln-sum-panel__head--categorytable {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.fln-summary-card .fln-cat-mark-pick .form-select {
  min-width: 6.5rem;
  max-width: 8rem;
  border-color: rgba(255, 255, 255, 0.65);
  background-color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.fln-summary-card .fln-cat-mark-pick label {
  color: rgba(255, 255, 255, 0.95);
}

.fln-summary-card .fln-cat-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem 0.85rem;
}

.fln-summary-card .fln-cat-mini {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  overflow: hidden;
}

.fln-summary-card .fln-cat-mini__title {
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 0.35rem 0.5rem;
}

.fln-summary-card .fln-cat-mini--sc .fln-cat-mini__title { background: linear-gradient(135deg, #0284c7, #0369a1); }
.fln-summary-card .fln-cat-mini--st .fln-cat-mini__title { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.fln-summary-card .fln-cat-mini--obc .fln-cat-mini__title { background: linear-gradient(135deg, #059669, #047857); }
.fln-summary-card .fln-cat-mini--open .fln-cat-mini__title { background: linear-gradient(135deg, #ea580c, #c2410c); }

.fln-summary-card .fln-cat-mini__chart {
  position: relative;
  height: 11.5rem;
  padding: 0.25rem 0.35rem 0.15rem;
}

.fln-summary-card .fln-cat-matrix-wrap {
  max-height: 22rem;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

.fln-summary-card .fln-cat-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
  font-size: 0.78rem;
  vertical-align: middle;
}

.fln-summary-card .fln-cat-th-mini {
  font-size: 0.72rem !important;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.25rem !important;
}

.fln-summary-card .fln-cat-th-b {
  color: #b45309;
}

.fln-summary-card .fln-cat-th-g {
  color: #2563eb;
}

.fln-summary-card .fln-cat-b {
  color: #92400e;
  font-weight: 600;
}

.fln-summary-card .fln-cat-g {
  color: #1d4ed8;
  font-weight: 600;
}

.fln-summary-card .fln-cat-th-total {
  background: #e2e8f0 !important;
  color: #0f172a;
  font-weight: 700;
}

.fln-summary-card .fln-cat-th-kul {
  color: #7c3aed;
}

.fln-summary-card .fln-cat-kul {
  color: #6d28d9;
  font-weight: 700;
}

.fln-summary-card .fln-cat-total-col {
  background: rgba(241, 245, 249, 0.65);
}

.fln-summary-card .fln-cat-matrix-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #e2e8f0;
  border-top: 2px solid #94a3b8;
  font-size: 0.82rem;
}

.fln-summary-card .fln-cat-matrix-total-row td:first-child {
  background: #cbd5e1;
}

/* ===== FLN ??????? ????? print preview ===== */
.fln-entry-form-print-body .fln-entry-print-page {
  font-family: "Noto Sans Gujarati", "Nirmala UI", Arial, sans-serif;
  color: #111;
}

.fln-entry-form-print-body .fln-entry-print-sheet {
  width: 100%;
  min-height: 277mm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.fln-entry-form-print-body .fln-entry-print-sheet + .fln-entry-print-sheet {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.fln-entry-form-print-body .fln-entry-print-header-band {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  margin: 0 0 4px;
  box-sizing: border-box;
}

.fln-entry-form-print-body .fln-entry-print-header-band .digi-report-branding-header {
  width: 100%;
  max-width: 100%;
  margin: 0 0 4px;
  text-align: center;
  box-sizing: border-box;
}

.fln-entry-form-print-body .fln-entry-print-header-band .digi-report-branding-header__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 30mm;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.fln-entry-form-print-body .fln-entry-print-header-band .digi-report-branding-header-fallback {
  margin-bottom: 0.25rem !important;
}

.fln-entry-form-print-body .fln-entry-print-content {
  flex: 1 1 auto;
  min-height: 0;
}

.fln-entry-form-print-body .fln-entry-print-title {
  text-align: center;
  font-size: 11pt;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 4px;
  line-height: 1.25;
}

.fln-entry-form-print-body .fln-entry-print-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 12px;
  font-size: 8.5pt;
  margin-bottom: 4px;
  line-height: 1.3;
}

.fln-entry-form-print-body .fln-entry-print-meta .fln-lbl { color: #c62828; font-weight: 600; }
.fln-entry-form-print-body .fln-entry-print-meta .fln-val { color: #111; font-weight: 700; }

.fln-entry-form-print-body .fln-entry-print-caption {
  text-align: center;
  font-size: 7.5pt;
  color: #334155;
  margin: 0 0 4px;
  line-height: 1.25;
}

.fln-entry-form-print-body .fln-entry-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  --fln-entry-row-h: 5.35mm;
}

.fln-entry-form-print-body .fln-entry-print-table thead th {
  background: #b3e5fc;
  border: 1px solid #333;
  font-size: 6.5pt;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  padding: 4px 2px;
  line-height: 1.25;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.fln-entry-form-print-body .fln-entry-print-table tbody td {
  border: 1px solid #333;
  font-size: 7pt;
  padding: 0 2px;
  vertical-align: middle;
  line-height: 1.1;
  height: var(--fln-entry-row-h);
}

.fln-entry-form-print-body .fln-entry-print-th-sr { width: 5.5%; }
.fln-entry-form-print-body .fln-entry-print-th-name { width: 17%; text-align: left !important; }
.fln-entry-form-print-body .fln-entry-print-th-hetu { width: 6.8%; }
.fln-entry-form-print-body .fln-entry-print-th-total { width: 5%; }

.fln-entry-form-print-body .fln-entry-print-hetu-no {
  display: block;
  font-size: 6.5pt;
  color: #0d47a1;
  font-weight: 800;
  padding: 2px 0;
  line-height: 1.3;
}

.fln-entry-form-print-body .fln-entry-print-hetu-txt {
  display: block;
  font-size: 5.8pt;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-height: 3.8em;
  overflow: hidden;
  padding: 2px 1px 3px;
  line-height: 1.3;
}

.fln-entry-form-print-body .fln-entry-print-td-name {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 6.8pt;
}

.fln-entry-form-print-body .fln-entry-print-td-mark {
  text-align: center;
  font-weight: 600;
  font-size: 7pt;
}

.fln-entry-form-print-body .fln-entry-print-row--blank td {
  min-height: var(--fln-entry-row-h);
}

.fln-entry-form-print-body .fln-entry-print-page-no {
  text-align: right;
  font-size: 7pt;
  color: #64748b;
  margin-top: 2px;
}

@media print {
  .fln-entry-form-print-body .fln-entry-print-sheet + .fln-entry-print-sheet {
    page-break-before: always;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .fln-entry-form-print-body .fln-entry-print-table thead {
    display: table-header-group;
  }

  .fln-entry-form-print-body .fln-entry-print-header-band .digi-report-branding-header__img,
  .fln-entry-form-print-body .fln-entry-print-table thead th,
  .fln-entry-form-print-body .fln-entry-print-title {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ===== FLN ???? print preview ===== */
.fln-summary-print-body .fln-summary-print-page {
  font-family: "Noto Sans Gujarati", "Nirmala UI", Arial, sans-serif;
  color: #111;
}

.fln-summary-print-body .fln-summary-print-sheet {
  width: 100%;
  box-sizing: border-box;
}

.fln-summary-print-body .fln-summary-print-header-band {
  width: 100%;
  max-width: 100%;
  margin: 0 0 4px;
  box-sizing: border-box;
}

.fln-summary-print-body .fln-summary-print-header-band .digi-report-branding-header__img {
  width: 100%;
  max-width: 100%;
  max-height: 28mm;
  object-fit: contain;
}

.fln-summary-print-body .fln-summary-print-title {
  text-align: center;
  font-size: 11pt;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 4px;
}

.fln-summary-print-body .fln-summary-print-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  font-size: 8.5pt;
  margin-bottom: 6px;
}

.fln-summary-print-body .fln-summary-print-meta .fln-lbl { color: #c62828; font-weight: 600; }
.fln-summary-print-body .fln-summary-print-meta .fln-val { font-weight: 700; }

.fln-summary-print-body .fln-summary-print-grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 5.6pt;
  line-height: 1.1;
}

.fln-summary-print-body .fln-summary-print-grid-table th,
.fln-summary-print-body .fln-summary-print-grid-table td {
  border: 1px solid #333;
  padding: 0 1px;
  text-align: center;
  vertical-align: middle;
}

.fln-summary-print-body .fln-summary-print-grid-table thead th {
  background: #e3f2fd;
  font-weight: 700;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.fln-summary-print-body .fln-summary-print-grid-table .vagale-sum-row-tot td,
.fln-summary-print-body .fln-summary-print-grid-table .vagale-sum-row-tot th {
  background: #fff3e0;
  font-weight: 700;
}

.fln-summary-print-body .fln-summary-print-grid-table .vagale-sum-row-grand td,
.fln-summary-print-body .fln-summary-print-grid-table .vagale-sum-row-grand th {
  background: #e8f5e9;
  font-weight: 800;
}

/* શાળા ગ્રિડ — વાચન / લેખન / ગણન દરેક ભાગ અલગ પાનાથી */
.fln-summary-print-body .fln-summary-print-grid-part + .fln-summary-print-grid-part {
  page-break-before: always;
  break-before: page;
  margin-top: 10mm;
}

@media print {
  .fln-summary-print-body .fln-summary-print-grid-part + .fln-summary-print-grid-part {
    margin-top: 0;
  }
}

.fln-summary-print-body .fln-summary-print-grid-table--part {
  font-size: 7.5pt;
  line-height: 1.2;
}

.fln-summary-print-body .fln-summary-print-grid-table--part th,
.fln-summary-print-body .fln-summary-print-grid-table--part td {
  padding: 1px 1px;
}

.fln-summary-print-body .fln-summary-print-grid-table--part .fln-grid-col-std {
  width: 7%;
}

.fln-summary-print-body .fln-summary-print-grid-table--part .fln-grid-col-strength {
  width: 4.5%;
}

.fln-summary-print-body .fln-summary-print-grid-table--part .fln-grid-std-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fln-summary-print-body .fln-summary-print-grid-table--part .vagale-sum-head-row--mode th {
  font-size: 8.5pt;
}

.fln-summary-print-body .fln-summary-print-part-block {
  margin-bottom: 8px;
  page-break-inside: avoid;
}

.fln-summary-print-body .fln-summary-print-part-title {
  font-size: 9.5pt;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 2px;
}

.fln-summary-print-body .fln-summary-print-part-meta {
  font-size: 7.5pt;
  margin: 0 0 4px;
}

.fln-summary-print-body .fln-summary-print-mini-table,
.fln-summary-print-body .fln-summary-print-cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 6.5pt;
}

.fln-summary-print-body .fln-summary-print-mini-table th,
.fln-summary-print-body .fln-summary-print-mini-table td,
.fln-summary-print-body .fln-summary-print-cat-table th,
.fln-summary-print-body .fln-summary-print-cat-table td {
  border: 1px solid #333;
  padding: 1px 2px;
}

.fln-summary-print-body .fln-summary-print-cat-table thead th {
  background: #e3f2fd;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ===== FLN ???? visual print (????? + ?????) ? ???? ??? A4 ?? ??? ===== */
.fln-summary-visual-print-body .fln-visual-print-part__brand {
  width: 100%;
  margin: 0 0 3px;
  box-sizing: border-box;
}

.fln-summary-visual-print-body .fln-visual-print-part__brand .digi-report-branding-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.fln-summary-visual-print-body .fln-visual-print-part__brand .digi-report-branding-header__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 26mm;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.fln-summary-visual-print-body .fln-visual-print-part__brand .digi-report-branding-header-fallback {
  margin-bottom: 0.2rem !important;
}

.fln-summary-visual-print-body .fln-visual-print-part__brand .digi-report-branding-header-fallback .h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem !important;
}

.fln-summary-visual-print-body .fln-summary-visual-print-host {
  margin-top: 0;
}

.fln-summary-visual-print-body .fln-visual-print-part {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.fln-summary-visual-print-body .fln-visual-print-part--a4 {
  page-break-after: always;
  break-after: page;
  page-break-inside: avoid;
  break-inside: avoid;
}

.fln-summary-visual-print-body .fln-visual-print-part--a4:last-child {
  page-break-after: auto;
  break-after: auto;
}

.fln-summary-visual-print-body .fln-visual-print-part__pagehead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  margin-bottom: 3px;
  padding-bottom: 2px;
  border-bottom: 1px solid #cbd5e1;
}

.fln-summary-visual-print-body .fln-visual-print-part__pagehead-title {
  font-size: 9pt;
  font-weight: 800;
  color: #1565c0;
}

.fln-summary-visual-print-body .fln-visual-print-part__pagehead-meta {
  font-size: 7.5pt;
  color: #334155;
}

.fln-summary-visual-print-body .fln-visual-print-part__title {
  font-size: 9.5pt;
  font-weight: 800;
  color: #1565c0;
  margin: 0 0 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e3f2fd;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.fln-summary-visual-print-body .fln-visual-print-part--vachan .fln-visual-print-part__title {
  background: linear-gradient(90deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
}

.fln-summary-visual-print-body .fln-visual-print-part--lekhan .fln-visual-print-part__title {
  background: linear-gradient(90deg, #fce7f3, #fdf2f8);
  color: #be185d;
}

.fln-summary-visual-print-body .fln-visual-print-part--ganan .fln-visual-print-part__title {
  background: linear-gradient(90deg, #dcfce7, #f0fdf4);
  color: #15803d;
}

.fln-summary-visual-print-body .fln-summary-card .fln-stat-card:hover,
.fln-summary-visual-print-body .fln-summary-card .fln-band-card:hover {
  transform: none;
  box-shadow: none;
}

.fln-summary-visual-print-body .fln-summary-card .fln-stat-card {
  min-height: 0;
  padding: 0.35rem 0.5rem 0.3rem;
  border-radius: 8px;
  box-shadow: none;
}

.fln-summary-visual-print-body .fln-summary-card .fln-stat-card__icon {
  top: 0.3rem;
  right: 0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.fln-summary-visual-print-body .fln-summary-card .fln-stat-card::after {
  width: 3rem;
  height: 3rem;
  right: -1rem;
  top: -1rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-stat-value {
  font-size: 0.95rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-stat-label {
  font-size: 0.58rem;
  margin-top: 0.05rem;
  max-width: 100%;
}

.fln-summary-visual-print-body .fln-summary-card .fln-sum-panel {
  border-radius: 8px;
  box-shadow: none;
  margin-bottom: 0;
}

.fln-summary-visual-print-body .fln-summary-card .fln-sum-panel__head {
  font-size: 0.68rem;
  padding: 0.25rem 0.45rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-sum-panel__body {
  padding: 0.25rem 0.35rem 0.35rem;
}

/* ચાર્ટ પેનલ બાજુના ટેબલ/કાર્ડ જેટલી ઊંચાઈ ભરે — નીચે ખાલી જગ્યા નહીં */
.fln-summary-visual-print-body .fln-summary-card .fln-sum-panel--chart {
  display: flex;
  flex-direction: column;
}

.fln-summary-visual-print-body .fln-summary-card .fln-chart-box {
  flex: 1 1 auto;
  height: 100px;
  min-height: 100px;
  margin: 0.2rem 0.25rem 0.25rem;
  padding: 0.15rem 0.2rem 0.1rem;
  border-radius: 6px;
}

.fln-summary-visual-print-body .fln-summary-card .fln-chart-box--tall {
  height: 150px;
  min-height: 150px;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-mini-grid {
  gap: 0.25rem;
  padding: 0.2rem 0.25rem 0.3rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-mini {
  border-radius: 6px;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-mini__title {
  font-size: 0.58rem;
  padding: 0.12rem 0.25rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-mini__chart {
  height: 58px;
  padding: 0.1rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-band-card {
  padding: 0.3rem 0.4rem 0.3rem 0.55rem;
  border-radius: 6px;
  box-shadow: none;
}

.fln-summary-visual-print-body .fln-summary-card .fln-band-card__count {
  font-size: 0.9rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-band-card__top {
  margin-bottom: 0.1rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-band-card__range,
.fln-summary-visual-print-body .fln-summary-card .fln-band-card__pct {
  font-size: 0.58rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-band-card__grade {
  font-size: 0.58rem;
  padding: 0.05rem 0.3rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-band-card__track {
  margin-top: 0.25rem;
  height: 3px;
}

.fln-summary-visual-print-body .fln-summary-card .fln-sum-dist-table {
  font-size: 0.62rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-sum-dist-table th,
.fln-summary-visual-print-body .fln-summary-card .fln-sum-dist-table td {
  padding: 0.08rem 0.2rem !important;
  line-height: 1.15;
}

.fln-summary-visual-print-body .fln-summary-card .fln-sum-dist-table thead th {
  font-size: 0.6rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-sum-dist-table .fln-dist-mark,
.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-table .fln-dist-mark {
  font-size: inherit;
}

.fln-summary-visual-print-body .fln-summary-card .fln-mini-bar {
  height: 5px;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-wrap {
  overflow: visible;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-table {
  font-size: 0.55rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-table th,
.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-table td {
  padding: 0.05rem 0.12rem !important;
  line-height: 1.1;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-table thead th {
  position: static;
  font-size: 0.58rem;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-table thead th.fln-cat-th-mini {
  font-size: 0.5rem !important;
  padding: 0.05rem 0.12rem !important;
}

.fln-summary-visual-print-body .fln-summary-card .fln-cat-matrix-table tfoot td {
  position: static;
  font-size: 0.58rem;
  border-top-width: 1px;
}

.fln-summary-visual-print-body .fln-summary-card .row.g-1,
.fln-summary-visual-print-body .fln-summary-card .row.g-3,
.fln-summary-visual-print-body .fln-summary-card .row.g-4 {
  --bs-gutter-x: 0.3rem;
  --bs-gutter-y: 0.3rem;
}

.fln-summary-visual-print-body .fln-summary-card .mb-1 {
  margin-bottom: 0.3rem !important;
}

@media print {
  .fln-summary-visual-print-body .fln-visual-print-part--a4 {
    page-break-after: always;
    break-after: page;
  }

  .fln-summary-visual-print-body .fln-visual-print-part--a4:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .fln-summary-visual-print-body .fln-summary-card .fln-stat-card,
  .fln-summary-visual-print-body .fln-summary-card .fln-band-card,
  .fln-summary-visual-print-body .fln-summary-card .fln-sum-panel,
  .fln-summary-visual-print-body .fln-summary-card .fln-mini-bar span,
  .fln-summary-visual-print-body .fln-visual-print-part__title {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.fln-summary-card .fln-sum-panel__body {
  padding: 0.75rem 1rem 1rem;
}

.fln-summary-card .fln-sum-panel--chart .fln-sum-panel__head {
  border-bottom: none;
}

.fln-summary-card .fln-chart-box {
  position: relative;
  height: 300px;
  margin: 0 0.75rem 0.85rem;
  padding: 0.65rem 0.5rem 0.25rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
}

.fln-summary-card .fln-chart-box--tall {
  height: 380px;
}

.fln-summary-card .fln-sum-dist-table {
  font-size: 0.84rem;
}

.fln-summary-card .fln-sum-dist-table thead th {
  position: static;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 100%);
  color: #fff;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.5rem 0.65rem;
  border: none;
}

.fln-summary-card .fln-sum-dist-table tbody tr:hover {
  background: rgba(138, 21, 48, 0.04);
}

.fln-summary-card .fln-dist-mark {
  color: #7a1029;
  font-size: 0.95rem;
}

.fln-summary-card .fln-dist-bar-cell {
  width: 38%;
  min-width: 5rem;
}

.fln-summary-card .fln-mini-bar {
  height: 8px;
  background: #e8ecf2;
  border-radius: 999px;
  overflow: hidden;
}

.fln-summary-card .fln-mini-bar span {
  display: block;
  height: 100%;
  width: var(--fln-bar, 0%);
  background: linear-gradient(90deg, #b01b34, #8a1530);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.fln-summary-card .fln-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.75rem;
}

.fln-summary-card .fln-band-card {
  position: relative;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 2px 10px rgba(18, 38, 63, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fln-summary-card .fln-band-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.1);
}

.fln-summary-card .fln-band-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.fln-summary-card .fln-band-card--0::before { background: #dc2626; }
.fln-summary-card .fln-band-card--1::before { background: #f59e0b; }
.fln-summary-card .fln-band-card--2::before { background: #2563eb; }
.fln-summary-card .fln-band-card--3::before { background: #16a34a; }

.fln-summary-card .fln-band-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.fln-summary-card .fln-band-card__range {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.fln-summary-card .fln-band-card__grade {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.fln-summary-card .fln-band-card__count {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.fln-summary-card .fln-band-card__pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.15rem;
}

.fln-summary-card .fln-band-card__desc {
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 0.35rem;
  line-height: 1.3;
}

.fln-summary-card .fln-band-card--0 .fln-band-card__desc { color: #dc2626; }
.fln-summary-card .fln-band-card--1 .fln-band-card__desc { color: #d97706; }
.fln-summary-card .fln-band-card--2 .fln-band-card__desc { color: #2563eb; }
.fln-summary-card .fln-band-card--3 .fln-band-card__desc { color: #16a34a; }

.fln-summary-card .fln-band-card__track {
  margin-top: 0.55rem;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.fln-summary-card .fln-band-card__track span {
  display: block;
  height: 100%;
  background: currentColor;
  border-radius: 999px;
  transition: width 0.7s ease;
}

.fln-summary-card .fln-band-card--0 .fln-band-card__track span { background: #dc2626; }
.fln-summary-card .fln-band-card--1 .fln-band-card__track span { background: #f59e0b; }
.fln-summary-card .fln-band-card--2 .fln-band-card__track span { background: #2563eb; }
.fln-summary-card .fln-band-card--3 .fln-band-card__track span { background: #16a34a; }

.fln-summary-card .fln-stat-card {
  position: relative;
  height: 100%;
  min-height: 7.5rem;
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1rem;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fln-summary-card .fln-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(18, 38, 63, 0.18);
}

.fln-summary-card .fln-stat-card::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.fln-summary-card .fln-stat-card__icon {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
  font-weight: 800;
}

.fln-summary-card .fln-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.fln-summary-card .fln-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.92;
  margin-top: 0.4rem;
  line-height: 1.35;
  max-width: 92%;
}

.fln-summary-card .fln-stat-card--marks {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 55%, #4c1d95 100%);
}

.fln-summary-card .fln-stat-card--grade {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 55%, #0369a1 100%);
}

.fln-summary-card .fln-stat-card--pct {
  background: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%);
}

.fln-summary-card .fln-sum-empty {
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

/* FLN ???? ??? ? scope ??? + ??? ????? */
.fln-summary-page .fln-scope-tabs-wrap {
  display: flex;
  justify-content: center;
}

.fln-summary-page .fln-scope-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid rgba(122, 41, 41, 0.12);
  border-radius: 999px;
  box-shadow:
    0 4px 18px rgba(18, 38, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fln-summary-page .fln-scope-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.fln-summary-page .fln-scope-tab:hover {
  color: #7a1029;
  background: rgba(138, 21, 48, 0.06);
}

.fln-summary-page .fln-scope-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #b01b34 0%, #8a1530 48%, #7a1029 100%);
  box-shadow: 0 4px 14px rgba(138, 21, 48, 0.35);
  transform: translateY(-1px);
}

.fln-summary-page .fln-scope-tab__icon {
  display: inline-flex;
  opacity: 0.9;
}

.fln-summary-page .fln-part-summary-block {
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(122, 41, 41, 0.1);
  box-shadow: 0 4px 20px rgba(18, 38, 63, 0.06);
  background: #fff;
}

.fln-summary-page .fln-part-summary-block:last-child {
  margin-bottom: 0;
}

.fln-summary-page .fln-part-summary-block__head {
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.fln-summary-page .fln-part-summary-block--vachan .fln-part-summary-block__head {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.fln-summary-page .fln-part-summary-block--lekhan .fln-part-summary-block__head {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.fln-summary-page .fln-part-summary-block--ganan .fln-part-summary-block__head {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.fln-summary-page .fln-part-summary-block .fln-sum--modern {
  padding: 1rem 1rem 1.25rem;
}

/* FLN ???? ? chart card shiny head + ??? ??? */
.fln-summary-page .fln-chart-summary-head {
  background: linear-gradient(125deg, #1e40af 0%, #2563eb 28%, #0ea5e9 55%, #38bdf8 78%, #60a5fa 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.85rem 1.15rem 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 18px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.fln-summary-page .fln-chart-summary-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
  pointer-events: none;
}

.fln-summary-page .fln-chart-summary-head__row,
.fln-summary-page .fln-part-tabs {
  position: relative;
  z-index: 1;
}

.fln-summary-page .fln-chart-summary-head__meta {
  opacity: 0.92;
  font-weight: 600;
}

.fln-summary-page .fln-part-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.fln-summary-page .fln-part-tab {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.fln-summary-page .fln-part-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.fln-summary-page .fln-part-tab.is-active {
  color: #1e3a5f;
  background: linear-gradient(180deg, #fff 0%, #e0f2fe 100%);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.fln-summary-page .fln-part-tab--vachan.is-active { color: #9a3412; }
.fln-summary-page .fln-part-tab--lekhan.is-active { color: #0369a1; }
.fln-summary-page .fln-part-tab--ganan.is-active { color: #047857; }

.fln-summary-page .fln-part-summary-block--tabbed {
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

/* —— NIPUN સમરી: રંગીન સેક્શન કાર્ડ + મોર્ડન KPI —— */
.nipun-summary-page .nipun-sum-card {
  overflow: hidden;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}
.nipun-summary-page .nipun-sum-card .staff-doc-section-card__head {
  border: none;
  color: #fff !important;
  font-weight: 700;
}
.nipun-summary-page .nipun-sum-card--kpi .staff-doc-section-card__head {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%) !important;
}
.nipun-summary-page .nipun-sum-card--level .staff-doc-section-card__head {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 55%, #172554 100%) !important;
}
.nipun-summary-page .nipun-sum-card--list .staff-doc-section-card__head {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 55%, #4c1d95 100%) !important;
}
.nipun-summary-page .nipun-sum-card--chart .staff-doc-section-card__head {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0e7490 100%) !important;
}
.nipun-summary-page .nipun-sum-card--domain .staff-doc-section-card__head {
  background: linear-gradient(135deg, #b45309 0%, #c2410c 55%, #9a3412 100%) !important;
}
.nipun-summary-page .nipun-sum-card--vidhan .staff-doc-section-card__head {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 55%, #831843 100%) !important;
}
.nipun-summary-page .nipun-sum-card--school .staff-doc-section-card__head {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 55%, #312e81 100%) !important;
}
.nipun-summary-page .nipun-sum-card--weak .staff-doc-section-card__head {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 55%, #7f1d1d 100%) !important;
}

.nipun-summary-page .nipun-kpi {
  position: relative;
  height: 100%;
  border-radius: 14px;
  padding: 0.85rem 1rem 0.95rem;
  overflow: hidden;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nipun-summary-page .nipun-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}
.nipun-summary-page .nipun-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
}
.nipun-summary-page .nipun-kpi__label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.nipun-summary-page .nipun-kpi__value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.nipun-summary-page .nipun-kpi--students::before { background: #0f766e; }
.nipun-summary-page .nipun-kpi--students { background: linear-gradient(160deg, #f0fdfa 0%, #fff 55%); }
.nipun-summary-page .nipun-kpi--students .nipun-kpi__value { color: #0f766e; }
.nipun-summary-page .nipun-kpi--vidhan::before { background: #2563eb; }
.nipun-summary-page .nipun-kpi--vidhan { background: linear-gradient(160deg, #eff6ff 0%, #fff 55%); }
.nipun-summary-page .nipun-kpi--vidhan .nipun-kpi__value { color: #1d4ed8; }
.nipun-summary-page .nipun-kpi--mastery::before { background: #16a34a; }
.nipun-summary-page .nipun-kpi--mastery { background: linear-gradient(160deg, #ecfdf5 0%, #fff 55%); }
.nipun-summary-page .nipun-kpi--mastery .nipun-kpi__value { color: #15803d; }
.nipun-summary-page .nipun-kpi--yes::before { background: #059669; }
.nipun-summary-page .nipun-kpi--yes { background: linear-gradient(160deg, #d1fae5 0%, #fff 60%); }
.nipun-summary-page .nipun-kpi--yes .nipun-kpi__value { color: #047857; }
.nipun-summary-page .nipun-kpi--blank::before { background: #d97706; }
.nipun-summary-page .nipun-kpi--blank { background: linear-gradient(160deg, #fffbeb 0%, #fff 60%); }
.nipun-summary-page .nipun-kpi--blank .nipun-kpi__value { color: #b45309; }

.nipun-summary-page .nipun-level-tile {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.nipun-summary-page .nipun-level-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}
.nipun-summary-page .nipun-level-tile.is-active {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), 0 14px 28px rgba(15, 23, 42, 0.12);
}
.nipun-summary-page .nipun-level-tile__label {
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.nipun-summary-page .nipun-level-tile__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.nipun-summary-page .nipun-level-tile__range {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}
.nipun-summary-page .nipun-level-tile--udayman {
  background: linear-gradient(165deg, #fff7ed 0%, #fff 70%);
  border-color: #fdba74;
}
.nipun-summary-page .nipun-level-tile--udayman .nipun-level-tile__value { color: #c2410c; }
.nipun-summary-page .nipun-level-tile--pragatishil {
  background: linear-gradient(165deg, #eff6ff 0%, #fff 70%);
  border-color: #93c5fd;
}
.nipun-summary-page .nipun-level-tile--pragatishil .nipun-level-tile__value { color: #1d4ed8; }
.nipun-summary-page .nipun-level-tile--nipun {
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 70%);
  border-color: #6ee7b7;
}
.nipun-summary-page .nipun-level-tile--nipun .nipun-level-tile__value { color: #047857; }
.nipun-summary-page .nipun-level-tile--uneval {
  background: linear-gradient(165deg, #f8fafc 0%, #fff 70%);
  border-color: #cbd5e1;
}
.nipun-summary-page .nipun-level-tile--uneval .nipun-level-tile__value { color: #475569; }

/* FLN / VaGaLe / પ્રશ્નવાર ગુણ block sticky header grids */
.fln-block-page .fln-block-grid-card-body,
.vagale-block-page .fln-block-grid-card-body,
.pvge-block-page .fln-block-grid-card-body {
  overflow: visible;
}

.fln-block-page .fln-block-grid-scroll,
.vagale-block-page .fln-block-grid-scroll,
.pvge-block-page .fln-block-grid-scroll {
  margin: 0.75rem 1rem 1rem;
  padding: 0 !important;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(3.35rem + 12 * 2.8125rem);
  background: #fff;
  border: 1px solid rgba(122, 41, 41, 0.16);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(18, 38, 63, 0.07);
  isolation: isolate;
}

.fln-block-page .digi-grid-table--sticky thead th,
.vagale-block-page .digi-grid-table--sticky thead th,
.pvge-block-page .digi-grid-table--sticky thead th {
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transform: translateZ(0);
}

.vagale-entry-page .vagale-summary-title {
  color: var(--digi-accent);
}

.vagale-entry-page #vagaleSummaryWrap .vagale-summary-table thead th {
  position: static;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  color: #fff;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
}

.vagale-entry-page .vagale-summary-grade--a { color: #1b5e20; }
.vagale-entry-page .vagale-summary-grade--b { color: #0d47a1; }
.vagale-entry-page .vagale-summary-grade--c { color: #f57f17; }
.vagale-entry-page .vagale-summary-grade--d { color: #b71c1c; }

.vagale-entry-page tr.vagale-row-frozen {
  background: #f8f9fa;
}

.vagale-entry-page tr.vagale-row-frozen .vagale-td--sticky-sr {
  background: #f3f4f6;
}

.vagale-entry-page .vagale-grade-table tbody tr:nth-child(even) td {
  background-color: #fafbfc;
}

.vagale-entry-page .vagale-grade-table tbody tr:nth-child(even) td.vagale-td--sticky-sr,
.vagale-entry-page .vagale-grade-table tbody tr:nth-child(even) td.vagale-td-name {
  background-color: #f5f7fa;
}

.vagale-entry-page tr.vagale-row-frozen .vagale-grade-select {
  opacity: 0.75;
}

@media (max-width: 767.98px) {
  .vagale-entry-page .vagale-grade-table {
    min-width: 36rem;
  }

  .vagale-entry-page .vagale-td-name {
    min-width: 7.5rem;
    font-size: 0.84rem;
  }
}

/* Frozen column + multi-row sticky header (digi-school-grid-sticky-columns.mdc) */
.digi-grid-table--sticky {
  border-collapse: separate !important;
  border-spacing: 0;
}

.digi-grid-table--sticky thead th {
  position: sticky;
  background-clip: padding-box;
}

/* tbody td ?? position:relative ???? ? sticky thead ??? body ????? ?? ????? */

.digi-grid-table--sticky thead .digi-grid-freeze-col {
  position: sticky;
  left: 0;
  background-clip: padding-box;
}

.digi-grid-table--sticky tbody .digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background-clip: padding-box;
}

/* ??.?.??.-? ???? (card + grid ? entry page ?????) */
.vagale-summary-page .school-user-page-title,
.vagale-summary-page .form-label,
.vagale-summary-page .form-text {
  color: var(--digi-accent) !important;
}

.vagale-summary-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.vagale-summary-page .staff-doc-section-card .card-body {
  background: #fff;
}

.vagale-summary-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.vagale-summary-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.vagale-summary-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.vagale-summary-page {
  --vagale-sum-freeze-width: 8.5rem;
  --vagale-sum-strength-width: 4.75rem;
  --digi-grid-head-top-1: 0;
  --digi-grid-head-top-2: 1.85rem;
  --digi-grid-head-top-3: 3.55rem;
  --vagale-sum-head-block-height: 4.35rem;
  --vagale-sum-mode1: #fff59d;
  --vagale-sum-mode1-dark: #fff176;
  --vagale-sum-mode1-band: #ffee58;
  --vagale-sum-mode2: #ffccbc;
  --vagale-sum-mode2-dark: #ffab91;
  --vagale-sum-mode2-band: #ff8a65;
  --vagale-sum-mode3: #c8e6c9;
  --vagale-sum-mode3-dark: #a5d6a7;
  --vagale-sum-mode3-band: #81c784;
  --vagale-sum-mode4: #bbdefb;
  --vagale-sum-mode4-dark: #90caf9;
  --vagale-sum-mode4-band: #64b5f6;
}

.vagale-summary-page .vagale-summary-card-body {
  overflow: visible;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf2 100%);
}

.vagale-summary-page .vagale-summary-scroll {
  margin: 0.75rem 1rem 1rem;
  padding: 0 !important;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(122, 41, 41, 0.16);
  border-radius: 10px;
  box-shadow:
    0 2px 8px rgba(18, 38, 63, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  isolation: isolate;
}

.vagale-summary-page .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}

.vagale-summary-page .vagale-summary-table {
  border-collapse: separate !important;
  border-spacing: 0;
  min-width: 68rem;
  --bs-table-striped-bg: transparent;
  --bs-table-striped-color: inherit;
  --bs-table-hover-bg: transparent;
  --bs-table-hover-color: inherit;
}

/* global maroon thead override ? light banded headers */
.vagale-summary-page .vagale-summary-table thead th {
  position: sticky;
  z-index: 100;
  background-clip: padding-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  border-color: rgba(0, 0, 0, 0.12) !important;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
  color: #1a1a1a;
  background-image: none;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  padding: 0.45rem 0.35rem;
}

.vagale-summary-page .digi-grid-head-row--1 th:not(.vagale-sum-sticky-col) {
  top: var(--digi-grid-head-top-1);
}

.vagale-summary-page .digi-grid-head-row--1 th.vagale-sum-head-strength {
  top: var(--digi-grid-head-top-1);
  z-index: 101;
}

.vagale-summary-page .digi-grid-head-row--2 th:not(.vagale-sum-sticky-col) {
  top: var(--digi-grid-head-top-2);
}

.vagale-summary-page .digi-grid-head-row--2 th.vagale-sum-head-strength {
  top: var(--digi-grid-head-top-2);
  z-index: 101;
}

.vagale-summary-page .digi-grid-head-row--3 th:not(.vagale-sum-sticky-col):not(.vagale-sum-head-strength) {
  top: var(--digi-grid-head-top-3);
}

.vagale-summary-page .digi-grid-head-row--3 th.vagale-sum-head-strength {
  top: var(--digi-grid-head-top-3);
}

/* frozen STD column ? each header row its own sticky cell (no rowspan) */
.vagale-summary-page .vagale-summary-table tbody .vagale-sum-sticky-col,
.vagale-summary-page .vagale-summary-table tbody .digi-grid-freeze-col {
  min-width: var(--vagale-sum-freeze-width);
  width: var(--vagale-sum-freeze-width);
  max-width: var(--vagale-sum-freeze-width);
  background: #fff;
  box-shadow: inset -1px 0 0 rgba(122, 41, 41, 0.12), 2px 0 6px rgba(138, 21, 48, 0.1);
}

.vagale-summary-page thead .vagale-sum-sticky-col,
.vagale-summary-page thead .digi-grid-freeze-col {
  min-width: var(--vagale-sum-freeze-width);
  width: var(--vagale-sum-freeze-width);
  max-width: var(--vagale-sum-freeze-width);
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  color: #fff !important;
  box-shadow: inset -1px 0 0 rgba(90, 11, 27, 0.35), 2px 0 6px rgba(90, 11, 27, 0.22);
}

.vagale-summary-page .digi-grid-head-row--1 .vagale-sum-sticky-col {
  top: var(--digi-grid-head-top-1);
  z-index: 110;
}

.vagale-summary-page .digi-grid-head-row--2 .vagale-sum-sticky-col {
  top: var(--digi-grid-head-top-2);
  z-index: 109;
}

.vagale-summary-page .digi-grid-head-row--3 .vagale-sum-sticky-col {
  top: var(--digi-grid-head-top-3);
  z-index: 108;
}

/* tier-3 header ???? ??????? ???? ? ????? */
.vagale-summary-page .digi-grid-head-row--3 th {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.vagale-summary-page .vagale-sum-head-strength {
  min-width: var(--vagale-sum-strength-width);
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%) !important;
  color: #fff !important;
}

.vagale-summary-page .vagale-sum-mode--1 { background: var(--vagale-sum-mode1) !important; color: #1a1a1a !important; }
.vagale-summary-page .vagale-sum-mode--2 { background: var(--vagale-sum-mode2) !important; color: #1a1a1a !important; }
.vagale-summary-page .vagale-sum-mode--3 { background: var(--vagale-sum-mode3) !important; color: #1a1a1a !important; }
.vagale-summary-page .vagale-sum-mode--4 { background: var(--vagale-sum-mode4) !important; color: #1a1a1a !important; }

.vagale-summary-page .vagale-sum-head-row--grade .vagale-sum-mode--1 { background: var(--vagale-sum-mode1-dark) !important; }
.vagale-summary-page .vagale-sum-head-row--grade .vagale-sum-mode--2 { background: var(--vagale-sum-mode2-dark) !important; }
.vagale-summary-page .vagale-sum-head-row--grade .vagale-sum-mode--3 { background: var(--vagale-sum-mode3-dark) !important; }
.vagale-summary-page .vagale-sum-head-row--grade .vagale-sum-mode--4 { background: var(--vagale-sum-mode4-dark) !important; }

.vagale-summary-page .vagale-sum-head-row--gender .vagale-sum-mode--1 { background: var(--vagale-sum-mode1-band) !important; }
.vagale-summary-page .vagale-sum-head-row--gender .vagale-sum-mode--2 { background: var(--vagale-sum-mode2-band) !important; }
.vagale-summary-page .vagale-sum-head-row--gender .vagale-sum-mode--3 { background: var(--vagale-sum-mode3-band) !important; }
.vagale-summary-page .vagale-sum-head-row--gender .vagale-sum-mode--4 { background: var(--vagale-sum-mode4-band) !important; }

.vagale-summary-page .vagale-sum-head-row--grade .vagale-sum-grade--total {
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.07);
}

.vagale-summary-page .vagale-summary-table tbody tr {
  background: transparent;
  transition: none;
  box-shadow: none;
}

.vagale-summary-page .vagale-summary-table tbody tr:nth-child(even),
.vagale-summary-page .vagale-summary-table tbody tr:hover,
.vagale-summary-page .vagale-summary-table tbody tr:focus-within {
  background: transparent;
  box-shadow: none;
}

.vagale-summary-page .vagale-summary-table tbody td {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12) !important;
  font-size: 0.82rem;
  padding: 0.28rem 0.35rem;
}

.vagale-summary-page .vagale-summary-table tbody .vagale-sum-sticky-col,
.vagale-summary-page .vagale-summary-table tbody .digi-grid-freeze-col {
  z-index: 2;
}

.vagale-summary-page .vagale-summary-table tbody tr.vagale-sum-row-class td.vagale-sum-cell-bg {
  background: #fff;
}

.vagale-summary-page .vagale-summary-table tbody tr.vagale-sum-row-tot td {
  background: #e0ffff !important;
  font-weight: 700;
}

.vagale-summary-page .vagale-summary-table tbody tr.vagale-sum-row-grand td {
  background: #ff7f7f !important;
  font-weight: 700;
}

.vagale-summary-page .vagale-summary-table tbody tr.vagale-sum-row-tot .vagale-sum-sticky-col,
.vagale-summary-page .vagale-summary-table tbody tr.vagale-sum-row-grand .vagale-sum-sticky-col {
  background: inherit !important;
}

/* ??? column ? gender header row (???) ???? band color ? 3-column group */
.vagale-summary-page tbody td.vagale-sum-cell-kul-col.vagale-sum-mode--1 { background: var(--vagale-sum-mode1-band) !important; color: #1a1a1a; }
.vagale-summary-page tbody td.vagale-sum-cell-kul-col.vagale-sum-mode--2 { background: var(--vagale-sum-mode2-band) !important; color: #1a1a1a; }
.vagale-summary-page tbody td.vagale-sum-cell-kul-col.vagale-sum-mode--3 { background: var(--vagale-sum-mode3-band) !important; color: #1a1a1a; }
.vagale-summary-page tbody td.vagale-sum-cell-kul-col.vagale-sum-mode--4 { background: var(--vagale-sum-mode4-band) !important; color: #1a1a1a; }
.vagale-summary-page tbody td.vagale-sum-cell-kul-col.vagale-sum-band--total { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.08); }

.vagale-summary-page .vagale-sum-cell-total {
  font-weight: 700;
  color: #8b0000 !important;
}

.vagale-summary-page .vagale-sum-cell-kul {
  color: #8b0000 !important;
}

@media (max-width: 767.98px) {
  .vagale-summary-page .vagale-summary-table {
    min-width: 64rem;
  }
}

.fln-summary-page .vagale-summary-table {
  min-width: 108rem;
}

@media (max-width: 767.98px) {
  .fln-summary-page .vagale-summary-table {
    min-width: 100rem;
  }
}

/* ===== ???? - ??????? ????? (card + form + ??????? ?????) ===== */
.sahitya-vitaran-page .school-user-page-title,
.sahitya-vitaran-page .form-label,
.sahitya-vitaran-page .form-text {
  color: var(--digi-accent) !important;
}

.sahitya-vitaran-page .staff-doc-section-card.staff-doc-picker-card,
.sahitya-vitaran-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.sahitya-vitaran-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.sahitya-vitaran-page .staff-doc-section-card .card-body {
  background: #fff;
}

.sahitya-vitaran-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.sahitya-vitaran-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.sahitya-vitaran-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.sahitya-vitaran-page .sahitya-vitaran-card-body {
  overflow: visible;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf2 100%);
}

.sahitya-vitaran-page #gridCard.staff-doc-section-card {
  overflow: visible;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .sahitya-vitaran-scroll {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 101, 52, 0.14);
}

.sahitya-vitaran-page .sahitya-vitaran-scroll {
  margin: 0.75rem 1rem 1rem;
  padding: 0 !important;
  overflow: auto;
  min-height: 12rem;
  --jv-top-title: 0;
  --jv-top-sub: 2.05rem;
}

.sahitya-vitaran-page .school-user-grid-scroll.school-user-grid-scroll--data-grid.sahitya-vitaran-scroll {
  max-height: min(70vh, 520px);
}

.sahitya-vitaran-page .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}

.sahitya-vitaran-page .dash-jatavari-table {
  width: 100%;
  font-size: 12px;
  min-width: 680px;
}

.sahitya-vitaran-page .dash-jatavari-table th,
.sahitya-vitaran-page .dash-jatavari-table td {
  border: 1px solid rgba(30, 41, 59, 0.12);
  padding: 4px 6px;
  white-space: nowrap;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .dash-jatavari-title {
  background: linear-gradient(90deg, #bbf7d0, #a7f3d0);
  color: #14532d;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .dash-jatavari-th-std-col {
  vertical-align: middle;
  text-align: center;
  min-width: 3.25rem;
  background: linear-gradient(180deg, #bbf7d0, #86efac) !important;
  color: #14532d;
  font-weight: 700;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .dash-jatavari-hdr-sub th:not(.digi-grid-freeze-col) {
  background: #ecfdf5 !important;
  color: #166534;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .dash-jatavari-hdr-sub .digi-grid-freeze-col {
  background: #ecfdf5 !important;
  color: #166534;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .dash-jatavari-table tbody tr[data-row-kind="class"] .dash-jatavari-std-label {
  background: #fff !important;
  color: #14532d !important;
  font-weight: 700;
  text-align: left !important;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .dash-jatavari-table tbody tr[data-row-kind="class"] td {
  color: #1e293b !important;
  background-color: #fff !important;
}

.sahitya-vitaran-page .dash-jatavari-card--reg .dash-jatavari-cat-tot {
  background: #dcfce7;
  color: #14532d;
  font-weight: 600;
}

.sahitya-vitaran-page .dash-jatavari-table.digi-grid-table--sticky {
  border-collapse: separate !important;
  border-spacing: 0;
}

.sahitya-vitaran-page .dash-jatavari-table thead th {
  position: sticky;
  background-clip: padding-box;
  z-index: 100;
}

.sahitya-vitaran-page .dash-jatavari-hdr-title .dash-jatavari-title,
.sahitya-vitaran-page .dash-jatavari-hdr-title .dash-jatavari-th-std-col {
  top: var(--jv-top-title);
  z-index: 110;
}

.sahitya-vitaran-page .dash-jatavari-hdr-sub th {
  top: var(--jv-top-sub);
  z-index: 105;
}

.sahitya-vitaran-page .dash-jatavari-hdr-title .dash-jatavari-th-std-col.digi-grid-freeze-col {
  z-index: 115;
}

.sahitya-vitaran-page .dash-jatavari-hdr-sub .dash-jatavari-th-std-col.digi-grid-freeze-col {
  z-index: 115;
}

.sahitya-vitaran-page .dash-jatavari-std-label.digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background-clip: padding-box;
  box-shadow: 2px 0 4px rgba(15, 23, 42, 0.06);
}

.sahitya-vitaran-page .dash-jatavari-row--g0-5 td,
.sahitya-vitaran-page .dash-jatavari-row--g0-5 .dash-jatavari-std-label,
.sahitya-vitaran-page .dash-jatavari-row--g6-8 td,
.sahitya-vitaran-page .dash-jatavari-row--g6-8 .dash-jatavari-std-label {
  background: #f87171 !important;
  color: #fff !important;
  font-weight: 700;
}

.sahitya-vitaran-page .dash-jatavari-row--g1-5 td,
.sahitya-vitaran-page .dash-jatavari-row--g1-5 .dash-jatavari-std-label,
.sahitya-vitaran-page .dash-jatavari-row--g1-8 td,
.sahitya-vitaran-page .dash-jatavari-row--g1-8 .dash-jatavari-std-label {
  background: #c084fc !important;
  color: #fff !important;
  font-weight: 700;
}

.sahitya-vitaran-page .dash-jatavari-row--g0-8 td,
.sahitya-vitaran-page .dash-jatavari-row--g0-8 .dash-jatavari-std-label {
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 700;
}

.sahitya-vitaran-page .js-sv-sahitya-select {
  min-height: 2.375rem;
  height: 2.375rem;
}

.sahitya-vitaran-page .js-sv-sahitya-select:focus {
  height: auto;
  max-height: 16rem;
}

.sahitya-vitaran-page .dash-jatavari-row--std-tot td,
.sahitya-vitaran-page .dash-jatavari-row--std-tot .dash-jatavari-std-label {
  background: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 700;
}

.sahitya-vitaran-page tfoot tr {
  position: sticky;
  bottom: 0;
  z-index: 6;
}

.sahitya-vitaran-page tfoot th,
.sahitya-vitaran-page tfoot td {
  background: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 700;
  box-shadow: 0 -2px 0 rgba(22, 101, 52, 0.15);
}

.sahitya-vitaran-page tfoot .digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 7;
}

.sahitya-vitaran-page .js-sv-qty {
  min-width: 3.25rem;
  max-width: 5.5rem;
  margin: 0 auto;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* ===== ?????????? - ??????? ????? ===== */
.stu-sahitya-vitaran-page .school-user-page-title,
.stu-sahitya-vitaran-page .form-label,
.stu-sahitya-vitaran-page .form-text {
  color: var(--digi-accent) !important;
}

.stu-sahitya-vitaran-page .staff-doc-section-card.staff-doc-picker-card,
.stu-sahitya-vitaran-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.stu-sahitya-vitaran-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.stu-sahitya-vitaran-page .staff-doc-section-card .card-body {
  background: #fff;
}

.stu-sahitya-vitaran-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.stu-sahitya-vitaran-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.stu-sahitya-vitaran-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.stu-sahitya-vitaran-page #gridCard.staff-doc-section-card {
  overflow: visible;
}

.stu-sahitya-vitaran-page .stu-sv-grid-card-body {
  overflow: visible;
  background: linear-gradient(180deg, #eef2f7 0%, #e8ecf2 100%);
}

.stu-sahitya-vitaran-page #allottedQtyBanner {
  color: #7a1029;
  background: rgba(122, 16, 41, 0.06);
  border: 1px solid rgba(122, 16, 41, 0.18);
  border-radius: 8px;
  margin: 0.75rem 1rem 0;
  padding: 0.65rem 0.85rem;
}

.stu-sahitya-vitaran-page #allottedQtyBanner .stu-sv-allotted-qty {
  font-weight: 700;
  color: #5a0b1b;
}

.stu-sahitya-vitaran-page .stu-sv-grid-scroll {
  margin: 0.75rem 1rem 1rem;
  padding: 0 !important;
  overflow: auto;
  isolation: isolate;
  min-height: 12rem;
  max-height: min(70vh, 520px);
  background: #fff;
  border: 1px solid rgba(122, 41, 41, 0.16);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(18, 38, 63, 0.07);
}

.stu-sahitya-vitaran-page .stu-sv-grid-scroll .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}

.stu-sahitya-vitaran-page .stu-sv-picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.stu-sahitya-vitaran-page .stu-sv-picker-toolbar__class {
  flex: 0 1 14rem;
  min-width: 11rem;
  max-width: 100%;
}

.stu-sahitya-vitaran-page .stu-sv-picker-toolbar__scope {
  flex: 0 1 9.5rem;
  min-width: 8rem;
  max-width: 100%;
}

.stu-sahitya-vitaran-page .stu-sv-picker-toolbar__sahitya {
  flex: 1 1 16rem;
  min-width: 12rem;
  max-width: 100%;
}

.stu-sahitya-vitaran-page .stu-sv-picker-toolbar__load {
  flex: 0 0 auto;
}

.stu-sahitya-vitaran-page .stu-sv-picker-toolbar .form-label {
  margin-bottom: 0.35rem;
  display: block;
}

.stu-sahitya-vitaran-page .stu-sv-picker-control,
.stu-sahitya-vitaran-page .stu-sv-picker-toolbar .form-select.stu-sv-picker-control {
  width: 100%;
  min-height: 2.375rem;
  height: 2.375rem;
}

.stu-sahitya-vitaran-page .stu-sv-picker-toolbar__load .stu-sv-picker-control {
  width: auto;
  min-width: 7.5rem;
  white-space: nowrap;
}

.stu-sahitya-vitaran-page .js-stu-sv-sahitya-select:focus {
  height: auto;
  max-height: 16rem;
}

@media (max-width: 575.98px) {
  .stu-sahitya-vitaran-page .stu-sv-picker-toolbar__class,
  .stu-sahitya-vitaran-page .stu-sv-picker-toolbar__scope,
  .stu-sahitya-vitaran-page .stu-sv-picker-toolbar__sahitya,
  .stu-sahitya-vitaran-page .stu-sv-picker-toolbar__load {
    flex: 1 1 100%;
  }

  .stu-sahitya-vitaran-page .stu-sv-picker-toolbar__load .stu-sv-picker-control {
    width: 100%;
  }
}

.stu-sahitya-vitaran-page .stu-sv-th-roll,
.stu-sahitya-vitaran-page .stu-sv-td-roll {
  min-width: 4.25rem;
  width: 4.25rem;
}

.stu-sahitya-vitaran-page .stu-sv-td-name {
  min-width: 10rem;
  max-width: 18rem;
  white-space: normal;
}

.stu-sahitya-vitaran-page .stu-sv-row--deactive td {
  background-color: rgba(220, 53, 69, 0.08);
}

.stu-sahitya-vitaran-page .stu-sv-class-totals #footActive,
.stu-sahitya-vitaran-page .stu-sv-class-totals #footDeactive {
  font-weight: 700;
}

/* ????? ???? ? project theme (.school-user-table maroon); ???? override ???? */
.stu-sahitya-vitaran-page #tblStuSahitya thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-clip: padding-box;
}

.stu-sahitya-vitaran-page #tblStuSahitya thead th.stu-sv-th-roll.digi-grid-freeze-col {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 25;
  background-color: #7a1029;
  background-image: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
  color: #fff;
  box-shadow: 2px 2px 8px rgba(90, 11, 27, 0.35);
}

.stu-sahitya-vitaran-page #tblStuSahitya tbody .stu-sv-td-roll.digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff !important;
  background-clip: padding-box;
  box-shadow: 2px 0 6px rgba(138, 21, 48, 0.1);
}

.stu-sahitya-vitaran-page #tblStuSahitya tbody tr:nth-child(even) .stu-sv-td-roll.digi-grid-freeze-col {
  background: #faf5f3 !important;
}

.stu-sahitya-vitaran-page #tblStuSahitya tfoot .stu-sv-td-roll.digi-grid-freeze-col {
  position: sticky;
  left: 0;
  z-index: 6;
  background-clip: padding-box;
  box-shadow: 2px 0 4px rgba(15, 23, 42, 0.08);
}

.stu-sahitya-vitaran-page #tblStuSahitya thead th .stu-sv-head-sahitya {
  color: #fff;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.82rem;
  font-weight: 600;
}

.stu-sahitya-vitaran-page #tblStuSahitya thead th .stu-sv-head-allotted {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stu-sahitya-vitaran-page #tblStuSahitya thead th .stu-sv-col-fill {
  color: #1e293b;
  background-color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.stu-sahitya-vitaran-page .stu-sv-col-fill {
  min-width: 3.5rem;
  max-width: 5rem;
  margin: 0 auto;
  font-size: 0.75rem;
}

.stu-sahitya-vitaran-page .stu-sv-qty {
  min-width: 3.5rem;
  max-width: 5rem;
  margin: 0 auto;
  font-size: 0.8rem;
}

.stu-sahitya-vitaran-page .stu-sv-foot-row td,
.stu-sahitya-vitaran-page .stu-sv-foot-row th {
  background: #f3e8eb !important;
  color: #7a1029 !important;
  font-weight: 700;
  border-top: 2px solid rgba(122, 16, 41, 0.2);
}

.stu-sahitya-vitaran-page .stu-sv-foot-row--class .stu-sv-class-totals {
  font-size: 0.9rem;
  text-align: left !important;
}

.stu-sahitya-vitaran-page .stu-sv-col-count-cell {
  vertical-align: middle;
  min-width: 5.5rem;
}

.stu-sahitya-vitaran-page .stu-sv-col-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.25;
  font-weight: 700;
  color: #7a1029;
}

.stu-sahitya-vitaran-page .stu-sv-col-count__b,
.stu-sahitya-vitaran-page .stu-sv-col-count__g,
.stu-sahitya-vitaran-page .stu-sv-col-count__t {
  white-space: nowrap;
  font-size: 0.78rem;
}

.stu-sahitya-vitaran-page .stu-sv-col-count-spacer {
  background: #f3e8eb !important;
  border-top: 2px solid rgba(122, 16, 41, 0.2);
}

/* ===== ????? ???? ===== */
.sahitya-summary-page .school-user-page-title,
.sahitya-summary-page .form-label,
.sahitya-summary-page .form-text {
  color: var(--digi-accent) !important;
}

.sahitya-summary-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
}

.sahitya-summary-page .staff-doc-section-card .card-body {
  background: #fff;
}

.sahitya-summary-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.sahitya-summary-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.sahitya-summary-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.sahitya-summary-page .sv-summary-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sahitya-summary-page .sv-summary-mode-btn.active {
  pointer-events: none;
}

.sahitya-summary-page .sv-summary-picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.sahitya-summary-page .sv-summary-picker-toolbar__sahitya {
  flex: 1 1 18rem;
  min-width: 12rem;
}

.sahitya-summary-page .sv-summary-sahitya-chk-list {
  max-height: min(45vh, 280px);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.sahitya-summary-page .sv-summary-sahitya-chk-list .form-check {
  margin: 0;
  min-height: 1.5rem;
  break-inside: avoid;
}

.sahitya-summary-page .sv-summary-picker-control {
  min-height: 2.375rem;
}

.sahitya-summary-page .sv-summary-table-scroll {
  margin: 0.75rem 1rem 1rem;
  padding: 0 !important;
  max-height: min(55vh, 480px);
  overflow: auto;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table thead th {
  font-size: 0.75rem;
  white-space: normal;
  vertical-align: middle;
  line-height: 1.25;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--std-tot td {
  background: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 700;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g0-5 td,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g6-8 td {
  background: #f87171 !important;
  color: #fff !important;
  font-weight: 700;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g1-5 td,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g1-8 td {
  background: #c084fc !important;
  color: #fff !important;
  font-weight: 700;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g0-8 td {
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 700;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody td.sv-sum-cell-vadh {
  color: #166534;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody td.sv-sum-cell-ghat {
  color: #9f1239;
}

.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g0-5 td.sv-sum-cell-vadh,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g0-5 td.sv-sum-cell-ghat,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g6-8 td.sv-sum-cell-vadh,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g6-8 td.sv-sum-cell-ghat,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g1-5 td.sv-sum-cell-vadh,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g1-5 td.sv-sum-cell-ghat,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g1-8 td.sv-sum-cell-vadh,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g1-8 td.sv-sum-cell-ghat,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g0-8 td.sv-sum-cell-vadh,
.sahitya-summary-page .sv-summary-sahitya-card .school-user-table tbody tr.sv-sum-row--g0-8 td.sv-sum-cell-ghat {
  color: inherit;
}

/* ===== ????? ???? ? Digi Report Viewer print ===== */
.sv-summary-print-body .sv-summary-print-page {
  font-family: "Noto Sans Gujarati", "Shruti", Arial, sans-serif;
  color: #1a1a1a;
}

.sv-summary-print-body .sv-summary-print-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #7f1d1d;
  text-align: center;
}

.sv-summary-print-body .sv-summary-print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  justify-content: center;
}

.sv-summary-print-body .sv-summary-print-lbl {
  font-weight: 700;
  color: #7f1d1d;
}

.sv-summary-print-body .sv-summary-print-card {
  margin-bottom: 0.9rem;
  break-inside: avoid;
}

.sv-summary-print-body .sv-summary-print-sahitya-plain {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #14532d;
}

.sv-summary-print-body .sv-summary-print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
}

.sv-summary-print-body .sv-summary-print-table th,
.sv-summary-print-body .sv-summary-print-table td {
  border: 1px solid #444;
  padding: 0.18rem 0.28rem;
  vertical-align: top;
}

.sv-summary-print-body .sv-summary-print-table thead th {
  background: #7f1d1d;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.sv-summary-print-body .sv-summary-print-alloc {
  white-space: normal;
  max-width: 9rem;
}

.sv-summary-print-body .sv-summary-print-table tbody tr.sv-sum-row--std-tot td {
  background: #bbf7d0 !important;
  color: #14532d !important;
  font-weight: 700;
}

.sv-summary-print-body .sv-summary-print-table tbody tr.sv-sum-row--g0-5 td,
.sv-summary-print-body .sv-summary-print-table tbody tr.sv-sum-row--g6-8 td {
  background: #f87171 !important;
  color: #fff !important;
  font-weight: 700;
}

.sv-summary-print-body .sv-summary-print-table tbody tr.sv-sum-row--g1-5 td,
.sv-summary-print-body .sv-summary-print-table tbody tr.sv-sum-row--g1-8 td {
  background: #c084fc !important;
  color: #fff !important;
  font-weight: 700;
}

.sv-summary-print-body .sv-summary-print-table tbody tr.sv-sum-row--g0-8 td {
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 700;
}

@media print {
  .sv-summary-print-body .lc-app-print-toolbar { display: none !important; }
}

/* ????? ??????? ? ????? + ??????? */
.sv-register-page .school-user-page-title,
.sv-register-page .form-label,
.sv-register-page .form-text {
  color: var(--digi-accent) !important;
}

.sv-register-page .staff-doc-section-card.staff-doc-picker-card,
.sv-register-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.sv-register-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.sv-register-page .staff-doc-section-card .card-body {
  background: #fff;
}

.sv-register-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.sv-register-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.sv-register-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.sv-register-page .sv-register-setup-fields > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.sv-register-page .sv-register-setup-fields .form-label {
  min-height: 1.5rem;
  margin-bottom: 0.25rem;
}

.sv-register-page .sv-register-setup-fields .form-select,
.sv-register-page .sv-register-setup-fields .form-control {
  width: 100%;
}

.sv-register-page .sv-register-main-heading {
  background-color: #fff9c4;
}

.sv-register-page .sv-register-combo-list {
  z-index: 1050;
  max-height: 220px;
  overflow-y: auto;
}

.sv-register-page .sv-register-mode-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.22rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sv-register-page .sv-register-mode-pill {
  position: relative;
  margin: 0;
  cursor: pointer;
  flex: 0 1 auto;
}

.sv-register-page .sv-register-mode-pill__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.sv-register-page .sv-register-mode-pill__text {
  display: block;
  padding: 0.38rem 0.72rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #4b5563;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.sv-register-page .sv-register-mode-pill:hover .sv-register-mode-pill__text {
  color: var(--digi-accent, #7a1f2b);
}

.sv-register-page .sv-register-mode-pill__input:checked + .sv-register-mode-pill__text {
  background: var(--digi-accent, #7a1f2b);
  color: #fff;
  box-shadow: 0 2px 8px rgba(122, 31, 43, 0.28);
}

.sv-register-page .sv-register-mode-pill__input:focus-visible + .sv-register-mode-pill__text {
  outline: 2px solid var(--digi-accent, #7a1f2b);
  outline-offset: 1px;
}

.sv-register-page .sv-register-mode-pill__input:disabled + .sv-register-mode-pill__text {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .sv-register-page .sv-register-mode-bar {
    display: flex;
    width: 100%;
  }

  .sv-register-page .sv-register-mode-pill {
    flex: 1 1 0;
    min-width: 0;
  }

  .sv-register-page .sv-register-mode-pill__text {
    white-space: normal;
    text-align: center;
    font-size: 0.72rem;
    padding: 0.35rem 0.45rem;
  }
}

.sv-register-page .sv-register-rowheight-row {
  min-height: 2.375rem;
}

.sv-register-page .sv-register-rowheight-input {
  width: 5.5rem;
  min-width: 4.5rem;
  flex: 0 0 auto;
}

.sv-register-print-table--pathaypustak {
  table-layout: fixed;
  width: 100%;
}

.sv-register-print-table--pathaypustak col.sv-register-col-sr {
  width: 5%;
}

.sv-register-print-table--pathaypustak col.sv-register-col-name {
  width: 18%;
}

.sv-register-print-table--pathaypustak col.sv-register-col-blank {
  width: 6.5%;
}

.sv-register-print-table--pathaypustak col.sv-register-col-sign {
  width: 11%;
}

.sv-register-print-table--pathaypustak .sv-register-th-sr,
.sv-register-print-table--pathaypustak .sv-register-td-sr {
  width: 5%;
  padding: 0.1rem 0.15rem;
  font-size: 0.76rem;
}

.sv-register-print-table--pathaypustak .sv-register-th-name,
.sv-register-print-table--pathaypustak .sv-register-td-name {
  width: 18%;
  max-width: 18%;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.1rem 0.2rem;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.sv-register-print-table--pathaypustak .sv-register-th-blank,
.sv-register-print-table--pathaypustak .sv-register-td-blank {
  width: 6.5%;
  padding: 0.05rem;
}

.sv-register-print-table--pathaypustak .sv-register-th-sign,
.sv-register-print-table--pathaypustak .sv-register-td-sign {
  width: 11%;
  font-size: 0.7rem;
  line-height: 1.15;
  padding: 0.1rem 0.15rem;
  vertical-align: middle;
}

.sv-register-print-doc--pathaypustak {
  box-sizing: border-box;
}

.sv-register-print-body .sv-register-print-header-band {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.35rem;
  box-sizing: border-box;
}

.sv-register-print-body .sv-register-print-header-band .digi-report-branding-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: center;
  box-sizing: border-box;
}

.sv-register-print-body .sv-register-print-header-band .digi-report-branding-header__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: fill;
  object-position: center top;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.sv-register-print-body .sv-register-print-header-band .digi-report-branding-header-fallback {
  width: 100%;
  margin-bottom: 0.25rem !important;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.sv-register-print-doc--pathaypustak .sv-register-print-header-band .digi-report-branding-header__img {
  max-height: 32mm;
}

.sv-register-print-doc:not(.sv-register-print-doc--pathaypustak) .sv-register-print-header-band .digi-report-branding-header__img {
  max-height: 28mm;
}

.sv-register-print-doc--pathaypustak .sv-register-print-content--pathaypustak {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sv-register-print-table--pathaypustak tbody tr {
  height: var(--sv-row-height, 25px);
  min-height: var(--sv-row-height, 25px);
}

.sv-register-print-table--pathaypustak tbody td {
  height: var(--sv-row-height, 25px);
  min-height: var(--sv-row-height, 25px);
  box-sizing: border-box;
}

.sv-register-print-body .sv-register-print-stage {
  background: #e8e8e8;
}

.sv-register-print-doc {
  font-family: "Noto Sans Gujarati", "Nirmala UI", sans-serif;
  font-size: 0.9rem;
}

.sv-register-print-title {
  color: #1565c0;
  font-size: 1.15rem;
}

.sv-register-print-class {
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.95rem;
}

.sv-register-print-table {
  width: 100%;
  border-collapse: collapse;
}

.sv-register-print-table thead th {
  background-color: #b3e5fc;
  color: #1a1a1a;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  font-size: 0.82rem;
  padding: 0.35rem 0.25rem;
  border: 1px solid #333;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.sv-register-print-table tbody tr {
  height: var(--sv-row-height, 25px);
}

.sv-register-print-table tbody td {
  border: 1px solid #333;
  padding: 0.15rem 0.35rem;
  vertical-align: middle;
  height: var(--sv-row-height, 25px);
  line-height: 1.2;
}

.sv-register-th-sr {
  width: 3.2rem;
}

.sv-register-th-name {
  min-width: 11rem;
}

@media print {
  .sv-register-print-body .lc-app-print-stage {
    background: #fff !important;
    padding: 0 !important;
  }

  .sv-register-print-table thead th {
    background-color: #b3e5fc !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sv-register-print-title {
    color: #1565c0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sv-register-print-class {
    color: #2e7d32 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sv-register-print-body .sv-register-print-header-band .digi-report-branding-header__img {
    width: 100% !important;
    max-width: 100% !important;
    object-fit: fill !important;
  }

  .sv-register-print-doc--pathaypustak .sv-register-print-header-band .digi-report-branding-header__img {
    max-height: 30mm !important;
  }

  .sv-register-print-table--pathaypustak {
    table-layout: fixed !important;
  }
}

/* ?? Help Hub: Contact / Support / Suggestion ?? */
.digi-help-hub-page {
  --digi-help-radius: 16px;
  --digi-help-shadow: 0 12px 40px rgba(90, 11, 27, 0.1);
  max-width: 1140px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.digi-help-hub-hero {
  position: relative;
  border-radius: var(--digi-help-radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--digi-help-shadow);
}

.digi-help-hub-hero__glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -80px;
  right: -40px;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.digi-help-hub-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.digi-help-hub-hero__icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.digi-help-hub-hero__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.digi-help-hub-hero__subtitle {
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.45;
  max-width: 42rem;
}

.digi-help-hub-hero--contact {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 55%, #0277bd 100%);
}

.digi-help-hub-hero--support {
  background: linear-gradient(135deg, var(--digi-accent) 0%, var(--digi-accent-2) 60%, #4a0818 100%);
}

.digi-help-hub-hero--suggestion {
  background: linear-gradient(135deg, #e65100 0%, #bf360c 55%, #ff8f00 100%);
}

.digi-help-hub-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.digi-help-hub-nav__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #3d3d3d;
  background: #fff;
  border: 1px solid rgba(138, 21, 48, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.digi-help-hub-nav__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(138, 21, 48, 0.12);
  border-color: rgba(138, 21, 48, 0.22);
  color: var(--digi-accent);
}

.digi-help-hub-nav__link--active {
  background: linear-gradient(135deg, var(--digi-accent) 0%, var(--digi-accent-2) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(138, 21, 48, 0.28);
}

.digi-help-hub-nav__link--active:hover {
  color: #fff;
  transform: translateY(-2px);
}

.digi-help-hub-nav__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.digi-help-hub-nav__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.digi-help-hub-nav__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.digi-help-hub-nav__hint {
  font-size: 0.78rem;
  opacity: 0.78;
}

.digi-help-hub-panel {
  background: #fff;
  border-radius: var(--digi-help-radius);
  box-shadow: var(--digi-help-shadow);
  border: 1px solid rgba(138, 21, 48, 0.08);
  overflow: hidden;
}

.digi-help-hub-panel__head {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8f4f5 0%, #fff 100%);
  border-bottom: 1px solid rgba(138, 21, 48, 0.08);
}

.digi-help-hub-panel__head--support {
  background: linear-gradient(135deg, #fdf2f4 0%, #fff 100%);
}

.digi-help-hub-panel__head--suggestion {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.digi-help-hub-panel__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--digi-accent);
}

.digi-help-hub-panel__lead {
  font-size: 0.88rem;
  color: #666;
  margin-top: 0.35rem;
}

.digi-help-hub-panel__body {
  padding: 1.5rem;
}

.digi-help-hub-panel__foot {
  padding: 1rem 1.5rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  border-top: 1px solid rgba(138, 21, 48, 0.08);
  background: #fafafa;
}

.digi-help-hub-submit {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  box-shadow: 0 4px 14px rgba(138, 21, 48, 0.22);
}

.digi-help-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.digi-help-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.digi-help-contact-card:hover {
  transform: translateY(-4px);
  color: inherit;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.digi-help-contact-card:hover::before {
  opacity: 1;
}

.digi-help-contact-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.35rem;
}

.digi-help-contact-card--call {
  background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: #90caf9;
  color: #0d47a1;
}

.digi-help-contact-card--call .digi-help-contact-card__icon {
  background: rgba(21, 101, 192, 0.15);
  color: #1565c0;
}

.digi-help-contact-card--wa {
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: #81c784;
  color: #1b5e20;
}

.digi-help-contact-card--wa .digi-help-contact-card__icon {
  background: rgba(37, 211, 102, 0.18);
  color: #128c7e;
}

.digi-help-contact-card--mail {
  background: linear-gradient(145deg, #fce4ec 0%, #f8bbd9 100%);
  border-color: #f48fb1;
  color: #880e4f;
}

.digi-help-contact-card--mail .digi-help-contact-card__icon {
  background: rgba(194, 24, 91, 0.12);
  color: #c2185b;
}

.digi-help-contact-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.digi-help-contact-card__value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.digi-help-contact-card__value--email {
  font-size: 0.95rem;
  font-weight: 700;
}

.digi-help-contact-card__action {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.5rem;
  opacity: 0.75;
}

.digi-help-hub-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
  border: 1px solid #ffe082;
  font-size: 0.9rem;
  color: #5d4037;
}

.digi-help-hub-note a {
  color: var(--digi-accent);
  font-weight: 700;
}

.digi-help-field-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--digi-accent);
  margin-bottom: 0.4rem;
}

.digi-help-field-optional {
  font-weight: 500;
  color: #888;
  font-size: 0.82rem;
}

.digi-help-field-input {
  border-radius: 10px;
  border: 1.5px solid rgba(138, 21, 48, 0.15);
  padding: 0.65rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.digi-help-field-input:focus {
  border-color: var(--digi-accent);
  box-shadow: 0 0 0 0.2rem var(--digi-focus-ring);
}

.digi-help-field-input--area {
  min-height: 8rem;
  resize: vertical;
}

.digi-help-field-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.3rem;
}

.digi-help-field-error {
  display: block;
  font-size: 0.8rem;
  color: #c62828;
  margin-top: 0.25rem;
}

.digi-help-file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 2px dashed rgba(138, 21, 48, 0.28);
  background: linear-gradient(180deg, #fdfbfb 0%, #f9f5f6 100%);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  margin-bottom: 0;
}

.digi-help-file-drop:hover,
.digi-help-file-drop--has-file {
  border-color: var(--digi-accent);
  background: #fdf2f4;
  transform: translateY(-1px);
}

.digi-help-file-drop--optional {
  border-color: rgba(230, 81, 0, 0.25);
  background: linear-gradient(180deg, #fffaf5 0%, #fff8f0 100%);
}

.digi-help-file-drop--optional:hover,
.digi-help-file-drop--optional.digi-help-file-drop--has-file {
  border-color: #e65100;
  background: #fff3e0;
}

.digi-help-file-drop__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.digi-help-file-drop__icon {
  color: var(--digi-accent);
  opacity: 0.75;
}

.digi-help-file-drop--optional .digi-help-file-drop__icon {
  color: #e65100;
}

.digi-help-file-drop__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--digi-accent);
}

.digi-help-file-drop--optional .digi-help-file-drop__title {
  color: #bf360c;
}

.digi-help-file-drop__hint {
  font-size: 0.78rem;
  color: #888;
  word-break: break-all;
}

.digi-help-hub-alert--danger {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .digi-help-hub-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .digi-help-hub-nav__link {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 140px;
  }

  .digi-help-hub-nav__hint {
    display: none;
  }

  .digi-help-hub-hero__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .digi-help-hub-nav__link {
    flex: 1 1 100%;
  }

  .digi-help-hub-hero {
    padding: 1.25rem 1rem;
  }

  .digi-help-hub-panel__body,
  .digi-help-hub-panel__foot {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== Dashboard ??????? print preview (DashboardJatavariPrint) ===== */
.school-dashboard-page .dash-jatavari-head-actions {
  flex-shrink: 0;
}

.school-dashboard-page .dash-jatavari-head-btn {
  --bs-btn-padding-x: 0.42rem;
  --bs-btn-padding-y: 0.38rem;
  border: none;
  background: #fff;
  color: inherit;
  line-height: 0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.school-dashboard-page .dash-jatavari-head-btn:hover,
.school-dashboard-page .dash-jatavari-head-btn:focus {
  background: #fff;
  color: inherit;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.school-dashboard-page .dash-jatavari-head-btn svg {
  display: block;
  flex-shrink: 0;
}

.school-dashboard-page .dash-jatavari-head-btn--print:hover,
.school-dashboard-page .dash-jatavari-head-btn--print:focus {
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.school-dashboard-page .dash-jatavari-head-btn--excel:hover,
.school-dashboard-page .dash-jatavari-head-btn--excel:focus {
  box-shadow: 0 3px 10px rgba(33, 163, 102, 0.24);
}

.dash-jv-print-body .dash-jv-print-page {
  font-family: "Noto Sans Gujarati", "Nirmala UI", Arial, sans-serif;
  color: #111;
}

.dash-jv-print-doc {
  width: 100%;
}

.dash-jv-print-doc .digi-report-branding-header {
  margin-bottom: 0.35rem;
}

.dash-jv-print-doc .digi-report-branding-header-fallback {
  margin-bottom: 0.35rem !important;
}

.dash-jv-print-title {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #c00000;
  line-height: 1.35;
}

.dash-jv-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.62rem;
  line-height: 1.15;
}

.dash-jv-print-table th,
.dash-jv-print-table td {
  border: 1px solid #111;
  padding: 0.12rem 0.06rem;
  text-align: center;
  vertical-align: middle;
}

.dash-jv-print-th-std {
  width: 3.2rem;
  background: #f2f2f2;
  font-weight: 800;
}

.dash-jv-print-th-cat {
  background: #ececec;
  font-weight: 800;
}

.dash-jv-print-head-sub th {
  background: #f7f7f7;
  font-weight: 700;
}

.dash-jv-print-th-tot,
.dash-jv-print-tot {
  font-weight: 800;
}

.dash-jv-print-std {
  text-align: center;
  background: #fff;
}

.dash-jv-print-row--std-tot th,
.dash-jv-print-row--std-tot td {
  background: #c6efce !important;
  font-weight: 700;
}

.dash-jv-print-row--g0-5 th,
.dash-jv-print-row--g0-5 td,
.dash-jv-print-row--g6-8 th,
.dash-jv-print-row--g6-8 td {
  background: #ffc7ce !important;
  font-weight: 700;
}

.dash-jv-print-row--g1-5 th,
.dash-jv-print-row--g1-5 td,
.dash-jv-print-row--g1-8 th,
.dash-jv-print-row--g1-8 td {
  background: #e1d5e7 !important;
  font-weight: 700;
}

.dash-jv-print-row--g0-8 th,
.dash-jv-print-row--g0-8 td {
  background: #99ccff !important;
  font-weight: 800;
}

@media print {
  .dash-jv-print-title {
    color: #c00000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .dash-jv-print-table th,
  .dash-jv-print-table td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* GR ???? ?????? ? ?????????? search dropdown (overlay + capped height) */
.gr-correction-results {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 1085;
  max-height: 15rem;
  overflow-y: auto;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18);
  border-radius: 0.375rem;
}

.gr-correction-results .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.gr-correction-results .list-group-item:first-child {
  border-top: 0;
}

/* ===================== ????? ??????? (Monthly Jatavari) grid ===================== */
.mjat-page {
  /* default tops ???????? row-height ????? ???? ??? ? ???? scroll ? ??? ??????
     rows "?????" ?? gap ? ?????; ?????? ????? JS (syncStickyTops) ??? ??? ??. */
  --mjat-head-top-1: 0px;
  --mjat-head-top-2: 1.5rem;
  --mjat-head-top-3: 3rem;
}
.mjat-page .mjat-card {
  border-radius: 12px;
  overflow: hidden;
}
/* date input ?? ?????? ? buttons ???? bottom-align */
.mjat-page .mjat-date-field {
  flex: 0 0 auto;
  width: 12rem;
}

/* card design ? staff-doc section-card pattern (digi-school-card-section-headings) */
.mjat-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.mjat-page .staff-doc-section-card .card-body {
  background: #fff;
}
.mjat-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}
.mjat-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}
.mjat-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}
.mjat-page .mjat-scroll {
  max-height: 72vh;
  overflow: auto;
  isolation: isolate;
  padding: 0 !important;
  /* ????? top + left edge ? sticky header/column ???? ?????? ??? */
  border-top: 1px solid #c7ccd1;
  border-left: 1px solid #c7ccd1;
}
.mjat-page .digi-grid-table-viewport {
  display: block;
  min-width: min-content;
}
.mjat-page .mjat-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 0.78rem;
}
.mjat-page .mjat-table th,
.mjat-page .mjat-table td {
  /* border ?? ???? inset box-shadow ? sticky ???? gap-line ??? ???? */
  border: 0;
  box-shadow: inset -1px -1px 0 0 #c7ccd1;
  padding: 2px 6px;
  text-align: center;
  white-space: nowrap;
}
.mjat-page .mjat-table thead th {
  position: sticky;
  z-index: 100;
  /* translateZ(0) sticky multi-row header ?? rows ????? gap artifact ?????? ???? ? ??? */
  background-clip: padding-box;
  font-weight: 700;
  color: #14202b;
  line-height: 1.25;
  letter-spacing: 0.01em;
  vertical-align: middle;
  padding: 6px 8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
/* leaf (tier-3) ? ???? compact */
.mjat-page .mjat-table thead tr.mj-h3 th {
  padding: 3px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
}
.mjat-page .mjat-table thead tr.mj-h1 th { top: var(--mjat-head-top-1); z-index: 102; }
.mjat-page .mjat-table thead tr.mj-h2 th { top: var(--mjat-head-top-2); z-index: 101; }
.mjat-page .mjat-table thead tr.mj-h3 th { top: var(--mjat-head-top-3); z-index: 100; }

/* frozen STD column ? ?? tier ??? th (rowspan ????) */
.mjat-page .mjat-table .mj-freeze {
  position: sticky;
  left: 0;
  text-align: start;
  font-weight: 600;
  min-width: 9rem;
  max-width: 13rem;
  white-space: normal;
}
.mjat-page .mjat-table thead .mj-freeze {
  background: linear-gradient(160deg, #7c2433 0%, #5e1a24 100%) !important;
  color: #fff;
  text-shadow: none;
  box-shadow: inset -1px -1px 0 0 rgba(255, 255, 255, 0.12);
}
.mjat-page .mjat-table thead tr.mj-h1 .mj-freeze { z-index: 112; }
.mjat-page .mjat-table thead tr.mj-h2 .mj-freeze { z-index: 111; }
.mjat-page .mjat-table thead tr.mj-h3 .mj-freeze { z-index: 110; }
.mjat-page .mjat-table tbody .mj-freeze {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #ffffff;
  box-shadow: inset -1px -1px 0 0 #c7ccd1, 2px 0 6px rgba(0, 0, 0, 0.08);
}

/* section body colours */
.mjat-page .mjat-table .mj-open { background: #fff7cc; }
.mjat-page .mjat-table .mj-avya { background: #ffe2c2; }
.mjat-page .mjat-table .mj-gaya { background: #d6f0cf; }
.mjat-page .mjat-table .mj-close { background: #cfe2f3; }
.mjat-page .mjat-table .mj-avg { background: #f6cfd6; }
.mjat-page .mjat-table .mj-pct { background: #ead6e8; }
.mjat-page .mjat-table .mj-mdm { background: #fbe0c4; }
.mjat-page .mjat-table .mj-min { background: #c7efe7; }
.mjat-page .mjat-table .mj-aadhaar { background: #e9e9e9; }

/* section header (modern vertical gradient) */
.mjat-page .mjat-table thead th.mj-open { background: linear-gradient(180deg, #ffe88a 0%, #ffd84d 100%); }
.mjat-page .mjat-table thead th.mj-avya { background: linear-gradient(180deg, #ffd2a4 0%, #ffb368 100%); }
.mjat-page .mjat-table thead th.mj-gaya { background: linear-gradient(180deg, #bdf0b6 0%, #93dd8c 100%); }
.mjat-page .mjat-table thead th.mj-close { background: linear-gradient(180deg, #c2dcf7 0%, #8fbfe8 100%); }
.mjat-page .mjat-table thead th.mj-avg { background: linear-gradient(180deg, #f6b6c6 0%, #ea8aa3 100%); }
.mjat-page .mjat-table thead th.mj-pct { background: linear-gradient(180deg, #e5c2e1 0%, #cf9fcb 100%); }
.mjat-page .mjat-table thead th.mj-mdm { background: linear-gradient(180deg, #fbd2a7 0%, #f4b46f 100%); }
.mjat-page .mjat-table thead th.mj-min { background: linear-gradient(180deg, #a9ece1 0%, #7fd9c9 100%); }
.mjat-page .mjat-table thead th.mj-aadhaar { background: linear-gradient(180deg, #dcdcdc 0%, #c4c4c4 100%); }

.mjat-page .mjat-table .mj-strong { font-weight: 700; }

/* data row ?? ??????? cell ? ???? (???? ??? columns ? ?????) */
.mjat-page .mjat-table tbody td.mj-cell { background: #ffffff; }

/* row highlights (override section colours) ? ???? subtotal ??? ??? */
.mjat-page .mjat-table tbody tr.mj-row-tot td { background: #fdf39b !important; font-weight: 600; }  /* ???? ??? ? ???? */
.mjat-page .mjat-table tbody tr.mj-row-bv5 td { background: #cde7c0 !important; font-weight: 700; }  /* ??? ?? ? ? ???? */
.mjat-page .mjat-table tbody tr.mj-row-15 td  { background: #f6d6a8 !important; font-weight: 700; }  /* ? ?? ? ? ??? */
.mjat-page .mjat-table tbody tr.mj-row-68 td  { background: #bcdcf5 !important; font-weight: 700; }  /* ? ?? ? ? ????? */
.mjat-page .mjat-table tbody tr.mj-row-18 td  { background: #e0c8ee !important; font-weight: 700; }  /* ? ?? ? ? ?????? */
.mjat-page .mjat-table tbody tr.mj-row-bv8 td { background: #74c365 !important; font-weight: 700; }  /* ??? ?? ? ? ???? ???? */

.mjat-page .mjat-table .mjat-empty {
  text-align: center;
  padding: 1.5rem;
  color: #6b6b6b;
  background: #fff;
}

/* ===== ??????????? + ?????????? ???? ? section cards + modern tabs ===== */
.student-scholarship-page .school-user-page-title,
.student-scholarship-page .form-label,
.student-scholarship-page .form-text,
.student-list-page .school-user-page-title,
.student-list-page .form-label,
.student-list-page .form-text {
  color: var(--digi-accent) !important;
}

.student-scholarship-page .staff-doc-section-card,
.student-list-page .staff-doc-section-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(35, 10, 16, 0.09);
}

.student-scholarship-page .staff-doc-section-card .card-body,
.student-list-page .staff-doc-section-card .card-body {
  background: #fff;
}

.student-scholarship-page .staff-doc-section-card__head,
.student-list-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.9rem 1.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.student-scholarship-page .staff-doc-section-card__head--staff,
.student-list-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.student-scholarship-page .staff-doc-section-card__head--codes,
.student-list-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.student-scholarship-page .staff-doc-section-card__head--list,
.student-list-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

/* ===== ?????????? ??? ?????? ??????? ===== */
.student-name-match-page .school-user-page-title,
.student-name-match-page .form-label,
.student-name-match-page .form-text {
  color: var(--digi-accent) !important;
}

.student-name-match-page .staff-doc-section-card.staff-doc-picker-card,
.student-name-match-page .staff-doc-section-card.staff-doc-picker-card .card-body {
  overflow: visible;
  position: relative;
  z-index: 40;
}

.student-name-match-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.student-name-match-page .staff-doc-section-card .card-body {
  background: #fff;
}

.student-name-match-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.student-name-match-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.student-name-match-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.student-name-match-page .staff-doc-section-card__head--list .staff-doc-list-count {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.95;
}

.student-name-match-page .school-user-toolbar {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.student-name-match-page .nm-cell-match {
  background: #d4edda !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.student-name-match-page .nm-status-match {
  color: #198754;
  font-weight: 700;
}

.student-name-match-page .nm-status-not {
  color: #dc3545;
  font-weight: 700;
}

/* ??? ?????? modal ? modern + soft glow */
.nm-edit-modal .modal-dialog {
  max-width: 760px;
}

.nm-edit-modal__content {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(138, 21, 48, 0.10), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(22, 163, 74, 0.08), transparent 50%),
    #fff;
  box-shadow:
    0 0 0 1px rgba(138, 21, 48, 0.10),
    0 0 28px rgba(138, 21, 48, 0.18),
    0 0 60px rgba(138, 21, 48, 0.10),
    0 22px 48px rgba(15, 23, 42, 0.18);
}

.nm-edit-modal__content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nm-edit-modal__header {
  padding: 1rem 1.25rem;
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
  color: #fff;
}

.nm-edit-modal__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(90, 11, 27, 0.28);
}

.nm-edit-modal__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.nm-edit-modal__gr {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

.nm-edit-modal__body {
  padding: 1.15rem 1.25rem 0.5rem;
  background: linear-gradient(180deg, #fbf8f9 0%, #fff 40%);
}

.nm-edit-section {
  margin-bottom: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(138, 21, 48, 0.08);
  box-shadow: 0 8px 22px rgba(90, 11, 27, 0.05);
}

.nm-edit-section--docs {
  border-color: rgba(7, 89, 133, 0.12);
  box-shadow: 0 8px 22px rgba(7, 89, 133, 0.05);
}

.nm-edit-section__head {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--digi-accent);
}

.nm-edit-section--docs .nm-edit-section__head {
  color: #075985;
}

.nm-edit-modal .form-label {
  color: var(--digi-accent) !important;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.nm-edit-input {
  border-radius: 10px;
  border-color: rgba(138, 21, 48, 0.16);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.nm-edit-input:hover {
  border-color: rgba(138, 21, 48, 0.28);
}

.nm-edit-input:focus {
  border-color: rgba(138, 21, 48, 0.55);
  background: #fff;
  box-shadow:
    0 0 0 0.2rem rgba(138, 21, 48, 0.14),
    0 0 18px rgba(138, 21, 48, 0.18);
}

.nm-edit-modal__footer {
  padding: 0.85rem 1.25rem 1.15rem;
  background: linear-gradient(180deg, #fff 0%, #faf7f8 100%);
  gap: 0.55rem;
}

.nm-edit-modal__save {
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}

.nm-edit-modal.show .nm-edit-modal__content {
  animation: nmEditModalGlowIn 0.28s ease-out;
}

@keyframes nmEditModalGlowIn {
  from {
    opacity: 0.65;
    transform: translateY(10px) scale(0.985);
    box-shadow:
      0 0 0 1px rgba(138, 21, 48, 0.08),
      0 0 0 rgba(138, 21, 48, 0),
      0 10px 24px rgba(15, 23, 42, 0.12);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(138, 21, 48, 0.10),
      0 0 28px rgba(138, 21, 48, 0.18),
      0 0 60px rgba(138, 21, 48, 0.10),
      0 22px 48px rgba(15, 23, 42, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nm-edit-modal.show .nm-edit-modal__content {
    animation: none;
  }
}

.student-list-page .stu-list-setup-fields > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.student-list-page .stu-list-setup-fields .form-label {
  margin-bottom: 0.35rem;
}

.student-list-page .stu-list-setup-fields .form-select {
  min-height: 2.625rem;
}

/* Modern step-pill tabs (scholarship + student list) */
.student-scholarship-page .sch-tabs,
.student-list-page .sch-tabs,
.guardian-consent-page .sch-tabs,
.library-issue-return-page .sch-tabs,
.custom-report-page .sch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border: 0;
  margin-bottom: 1.4rem;
}

.student-scholarship-page .sch-tab,
.student-list-page .sch-tab,
.guardian-consent-page .sch-tab,
.library-issue-return-page .sch-tab,
.custom-report-page .sch-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(138, 21, 48, 0.18);
  color: var(--digi-accent);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(35, 10, 16, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.student-scholarship-page .sch-tab:hover:not(.disabled):not(:disabled),
.student-list-page .sch-tab:hover:not(.disabled):not(:disabled),
.guardian-consent-page .sch-tab:hover:not(.disabled):not(:disabled),
.library-issue-return-page .sch-tab:hover:not(.disabled):not(:disabled),
.custom-report-page .sch-tab:hover:not(.disabled):not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(138, 21, 48, 0.16);
}

.student-scholarship-page .sch-tab .sch-tab-num,
.student-list-page .sch-tab .sch-tab-num,
.guardian-consent-page .sch-tab .sch-tab-num,
.library-issue-return-page .sch-tab .sch-tab-num,
.custom-report-page .sch-tab .sch-tab-num {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(138, 21, 48, 0.1);
  color: var(--digi-accent);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.student-scholarship-page .sch-tab.active,
.student-list-page .sch-tab.active,
.guardian-consent-page .sch-tab.active,
.library-issue-return-page .sch-tab.active,
.custom-report-page .sch-tab.active {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(138, 21, 48, 0.28);
}

.student-scholarship-page .sch-tab.active .sch-tab-num,
.student-list-page .sch-tab.active .sch-tab-num,
.guardian-consent-page .sch-tab.active .sch-tab-num,
.library-issue-return-page .sch-tab.active .sch-tab-num,
.custom-report-page .sch-tab.active .sch-tab-num {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.student-scholarship-page .sch-tab.disabled,
.student-scholarship-page .sch-tab:disabled,
.student-list-page .sch-tab.disabled,
.student-list-page .sch-tab:disabled,
.guardian-consent-page .sch-tab.disabled,
.guardian-consent-page .sch-tab:disabled,
.library-issue-return-page .sch-tab.disabled,
.library-issue-return-page .sch-tab:disabled,
.custom-report-page .sch-tab.disabled,
.custom-report-page .sch-tab:disabled {
  background: #f4f4f6;
  color: #9aa0a6;
  border-color: #e4e6ea;
  box-shadow: none;
  cursor: not-allowed;
}

.student-scholarship-page .sch-tab.disabled .sch-tab-num,
.student-scholarship-page .sch-tab:disabled .sch-tab-num,
.student-list-page .sch-tab.disabled .sch-tab-num,
.student-list-page .sch-tab:disabled .sch-tab-num,
.guardian-consent-page .sch-tab.disabled .sch-tab-num,
.guardian-consent-page .sch-tab:disabled .sch-tab-num,
.library-issue-return-page .sch-tab.disabled .sch-tab-num,
.library-issue-return-page .sch-tab:disabled .sch-tab-num,
.custom-report-page .sch-tab.disabled .sch-tab-num,
.custom-report-page .sch-tab:disabled .sch-tab-num {
  background: #e4e6ea;
  color: #9aa0a6;
}

.student-scholarship-page .sch-tab-soon {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: #e4e6ea;
  color: #71767b;
  letter-spacing: 0.02em;
}

.custom-report-page .cdc-designer {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 230px);
  gap: 1rem;
  align-items: start;
}
.custom-report-page .cdc-param-group {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--digi-accent);
  margin: 0.55rem 0 0.3rem;
}
.custom-report-page .cdc-param-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 28rem;
  overflow: auto;
}
.custom-report-page .cdc-param-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(138, 21, 48, 0.18);
  background: #fff;
  color: var(--digi-accent);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.custom-report-page .cdc-param-chip:hover:not(:disabled) {
  background: #fff5f6;
  box-shadow: 0 4px 12px rgba(138, 21, 48, 0.12);
}
.custom-report-page .cdc-param-chip--photo {
  background: linear-gradient(90deg, #fff8e8, #fff);
  border-color: rgba(180, 120, 20, 0.35);
}
.custom-report-page .cdc-page-frame {
  background: linear-gradient(180deg, #f3f1ef, #e7e3df);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  justify-content: center;
  min-height: 18rem;
}
.custom-report-page .cdc-card-canvas {
  position: relative;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M0 0h8v8H0zM8 8h8v8H8z' fill='%23f0ece8'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 28px rgba(35, 10, 16, 0.18);
  border-radius: 4px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.custom-report-page .cdc-el {
  position: absolute;
  box-sizing: border-box;
  cursor: move;
  overflow: hidden;
  border: 1px dashed transparent;
}
.custom-report-page .cdc-el--text {
  display: flex;
  align-items: center;
  padding: 0 4px;
  line-height: 1.15;
}
.custom-report-page .cdc-el--photo {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}
.custom-report-page .cdc-el--photo.is-square {
  border-radius: 2px;
}
.custom-report-page .cdc-el-photo-ph {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a1530;
  background: rgba(255, 245, 246, 0.7);
  border-radius: inherit;
}
.custom-report-page .cdc-el.is-selected {
  border-color: #8a1530;
  box-shadow: 0 0 0 1px #8a1530;
  z-index: 3;
}
.custom-report-page .cdc-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #8a1530;
  border: 1px solid #fff;
  border-radius: 1px;
  z-index: 4;
}
.custom-report-page .cdc-handle--nw { left: -5px; top: -5px; cursor: nwse-resize; }
.custom-report-page .cdc-handle--ne { right: -5px; top: -5px; cursor: nesw-resize; }
.custom-report-page .cdc-handle--sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.custom-report-page .cdc-handle--se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.custom-report-page .cdc-fmt-btns .btn.active {
  background: #8a1530;
  color: #fff;
  border-color: #8a1530;
}
.custom-report-page .cdc-tools-dim {
  opacity: 0.45;
}
.custom-report-page .form-control-color {
  min-height: 2.1rem;
  padding: 0.15rem;
}
@media (max-width: 991.98px) {
  .custom-report-page .cdc-designer {
    grid-template-columns: 1fr;
  }
}

/* paste textarea ? modern */
.student-scholarship-page #pasteBox {
  border-radius: 12px;
  border: 1.5px dashed rgba(138, 21, 48, 0.35);
  background: #fffdfb;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.student-scholarship-page #pasteBox:focus {
  border-style: solid;
  border-color: var(--digi-accent);
  box-shadow: 0 0 0 0.2rem var(--digi-focus-ring);
  background: #fff;
}

.student-scholarship-page details > summary {
  color: var(--digi-accent);
}

/* software ??? deactive ?????????? ? preview / saved list */
.student-scholarship-page tr.sch-row-inactive > td {
  background-color: #ffe6e8 !important;
}

.student-scholarship-page tr.sch-row-inactive:hover > td {
  background-color: #ffd9dd !important;
}

/* UDISE+ ? MBU / match row colors */
.student-udise-plus-page tr.udise-mbu--ok > td {
  background-color: #e6f6ea !important;
}
.student-udise-plus-page tr.udise-mbu--ok:hover > td {
  background-color: #d5efdc !important;
}
.student-udise-plus-page tr.udise-mbu--pending > td {
  background-color: #fff6da !important;
}
.student-udise-plus-page tr.udise-mbu--pending:hover > td {
  background-color: #ffefb8 !important;
}
.student-udise-plus-page tr.udise-mbu--other > td {
  background-color: #e8f0fe !important;
}
.student-udise-plus-page tr.udise-row--matched > td {
  background-color: #eef8f0 !important;
}
.student-udise-plus-page tr.udise-row--unmatched > td {
  background-color: #ffe6e8 !important;
}
.student-udise-plus-page tr.udise-row--unmatched:hover > td {
  background-color: #ffd9dd !important;
}
.student-udise-plus-page .udise-legend {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  margin: 0 0.35rem 0.35rem 0;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.student-udise-plus-page .sch-tab .sch-tab-num {
  display: none;
}

.student-udise-plus-page .udise-save-options {
  background: #fffaf3;
  border-color: rgba(122, 31, 43, 0.18) !important;
}

.udise-grno-missing-modal .modal-header {
  background: #b42318;
}

.udise-grno-missing-modal .modal-content {
  border: 2px solid #b42318 !important;
}

.udise-grno-missing-modal ol {
  color: #3b0d0c;
}

/* ===== CTS (Child Tracking System) ? section cards (??????????? ?????) ===== */
.student-cts-page .school-user-page-title,
.student-cts-page .form-label,
.student-cts-page .form-text {
  color: var(--digi-accent) !important;
}

.student-cts-page .staff-doc-section-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(35, 10, 16, 0.09);
}

.student-cts-page .staff-doc-section-card .card-body {
  background: #fff;
}

.student-cts-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.9rem 1.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.student-cts-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.student-cts-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.student-cts-page #pasteBox {
  border-radius: 12px;
  border: 1.5px dashed rgba(138, 21, 48, 0.35);
  background: #fffdfb;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.student-cts-page #pasteBox:focus {
  border-style: solid;
  border-color: var(--digi-accent);
  box-shadow: 0 0 0 0.2rem var(--digi-focus-ring);
  background: #fff;
}

.student-cts-page tr.sch-row-inactive > td {
  background-color: #ffe6e8 !important;
}

.student-cts-page tr.sch-row-inactive:hover > td {
  background-color: #ffd9dd !important;
}

/* CTS name-match KPI cards (??????????? ?????? ?????) */
.student-cts-page .sch-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.05rem 1.15rem 1rem;
  color: #fff;
  height: 100%;
  box-shadow: 0 12px 26px rgba(35, 10, 16, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.student-cts-page .sch-kpi::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 75%;
  height: 130%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.student-cts-page .sch-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(35, 10, 16, 0.26);
}

.student-cts-page .sch-kpi-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.student-cts-page .sch-kpi-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.student-cts-page .sch-kpi-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.student-cts-page .sch-kpi-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.student-cts-page .sch-kpi-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.student-cts-page .sch-kpi-value {
  position: relative;
  z-index: 1;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 0.55rem 0 0.6rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.student-cts-page .sch-kpi-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.student-cts-page .sch-kpi--entered {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.student-cts-page .sch-kpi--remaining {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.student-cts-page .sch-kpi--nomatch {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.student-cts-page .sch-kpi--total {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.student-cts-page .sch-kpi--registered {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.student-cts-page .sch-kpi--pending {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.student-cts-page .sch-kpi--clickable {
  cursor: pointer;
}

.student-cts-page .sch-kpi--clickable.is-active {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  box-shadow: 0 18px 36px rgba(35, 10, 16, 0.32);
}

/* Student bank info — CTS/scholarship-style KPI cards */
.student-bank-info-page .sch-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.05rem 1.15rem 1rem;
  color: #fff;
  height: 100%;
  box-shadow: 0 12px 26px rgba(35, 10, 16, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.student-bank-info-page .sch-kpi::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 75%;
  height: 130%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.student-bank-info-page .sch-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(35, 10, 16, 0.26);
}

.student-bank-info-page .sch-kpi-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.student-bank-info-page .sch-kpi-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.student-bank-info-page .sch-kpi-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.student-bank-info-page .sch-kpi-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.student-bank-info-page .sch-kpi-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.student-bank-info-page .sch-kpi-value {
  position: relative;
  z-index: 1;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 0.55rem 0 0.6rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.student-bank-info-page .sch-kpi-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.student-bank-info-page .sch-kpi--total {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.student-bank-info-page .sch-kpi--entered {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.student-bank-info-page .sch-kpi--remaining {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.student-bank-info-page .sch-kpi--nomatch {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.student-bank-info-page .sch-kpi-row--compact .sch-kpi {
  padding: 0.7rem 0.8rem 0.65rem;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(35, 10, 16, 0.14);
}

.student-bank-info-page .sch-kpi-row--compact .sch-kpi-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
}

.student-bank-info-page .sch-kpi-row--compact .sch-kpi-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.student-bank-info-page .sch-kpi-row--compact .sch-kpi-title {
  font-size: 0.78rem;
}

.student-bank-info-page .sch-kpi-row--compact .sch-kpi-value {
  font-size: 1.45rem;
  margin: 0.28rem 0 0;
}

.student-bank-info-page .sch-kpi-row--compact .sch-kpi-pill,
.student-bank-info-page .sch-kpi-row--compact .sch-kpi-sub {
  display: none;
}

/* MDM ડિફોલ્ટ હાજર વિદ્યાર્થી — સારાંશ કાર્ડ */
.mdm-default-present-page .sch-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.05rem 1.15rem 1rem;
  color: #fff;
  height: 100%;
  box-shadow: 0 12px 26px rgba(35, 10, 16, 0.18);
}

.mdm-default-present-page .sch-kpi-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.mdm-default-present-page .sch-kpi-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
}

.mdm-default-present-page .sch-kpi-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.mdm-default-present-page .sch-kpi-title {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.mdm-default-present-page .sch-kpi-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.mdm-default-present-page .sch-kpi-value {
  position: relative;
  z-index: 1;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 0.55rem 0 0.6rem;
}

.mdm-default-present-page .sch-kpi-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.mdm-default-present-page .sch-kpi--total { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.mdm-default-present-page .sch-kpi--entered { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.mdm-default-present-page .sch-kpi--boy { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.mdm-default-present-page .sch-kpi--girl { background: linear-gradient(135deg, #db2777 0%, #9d174d 100%); }

.mdm-default-present-page .mdm-cat-card {
  border-radius: 16px;
  padding: 0.95rem 1rem 0.9rem;
  color: #fff;
  height: 100%;
  box-shadow: 0 10px 22px rgba(35, 10, 16, 0.14);
}

.mdm-default-present-page .mdm-cat-card__title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.mdm-default-present-page .mdm-cat-card__sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.82;
  margin-top: 0.1rem;
}

.mdm-default-present-page .mdm-cat-card__value {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0.45rem 0 0.35rem;
}

.mdm-default-present-page .mdm-cat-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.92;
}

.mdm-default-present-page .mdm-cat-card--sc { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.mdm-default-present-page .mdm-cat-card--st { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.mdm-default-present-page .mdm-cat-card--ob { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.mdm-default-present-page .mdm-cat-card--op { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }

.mdm-default-present-page .mdm-grid-filter {
  min-width: 9.5rem;
}
.mdm-default-present-page .mdm-grid-filter--search {
  min-width: 14rem;
  flex: 1 1 14rem;
}

/* ===== ??????????? ?????? (summary) ===== */
.scholarship-summary-page .staff-doc-section-card__head--verify {
  background: linear-gradient(125deg, #6d28d9 0%, #8b5cf6 55%, #c4b5fd 100%);
}

.scholarship-summary-page .staff-doc-section-card__head--remaining {
  background: linear-gradient(125deg, #0f766e 0%, #14b8a6 55%, #5eead4 100%);
}

.scholarship-summary-page .staff-doc-section-card__head--muted {
  background: linear-gradient(125deg, #475569 0%, #64748b 55%, #cbd5e1 100%);
}

/* KPI cards */
/* modern dashboard-style KPI cards */
.scholarship-summary-page .sch-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.05rem 1.15rem 1rem;
  color: #fff;
  height: 100%;
  box-shadow: 0 12px 26px rgba(35, 10, 16, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* soft radial glow top-right */
.scholarship-summary-page .sch-kpi::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 75%;
  height: 130%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.scholarship-summary-page .sch-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(35, 10, 16, 0.26);
}

.scholarship-summary-page .sch-kpi-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.scholarship-summary-page .sch-kpi-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.scholarship-summary-page .sch-kpi-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.scholarship-summary-page .sch-kpi-title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.scholarship-summary-page .sch-kpi-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.scholarship-summary-page .sch-kpi-value {
  position: relative;
  z-index: 1;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  margin: 0.55rem 0 0.6rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.scholarship-summary-page .sch-kpi-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.scholarship-summary-page .sch-kpi--total {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.scholarship-summary-page .sch-kpi--entered {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.scholarship-summary-page .sch-kpi--remaining {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.scholarship-summary-page .sch-kpi--proposal {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.scholarship-summary-page .sch-kpi-split {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  margin: -0.15rem 0 0.55rem;
}

.scholarship-summary-page .sch-kpi-split span {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.scholarship-summary-page .sch-kpi-docs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin: 0.15rem 0 0.1rem;
}

.scholarship-summary-page .sch-kpi-docs span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.scholarship-summary-page .sch-kpi-docs strong {
  font-variant-numeric: tabular-nums;
}

.scholarship-summary-page button.sch-kpi {
  color: #fff;
  font: inherit;
}

.scholarship-summary-page .sch-kpi--reason-state {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.scholarship-summary-page .sch-kpi--reason-docs {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
}

.scholarship-summary-page .sch-kpi--reason-school {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}

.scholarship-summary-page .sch-kpi--reason-undertaking {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.scholarship-summary-page .sch-kpi--reason-other {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%);
}

.scholarship-summary-page .sch-kpi--reason-none {
  background: linear-gradient(135deg, #78716c 0%, #44403c 100%);
}

.scholarship-summary-page tr.sch-row-inactive > td {
  background-color: #ffe6e8 !important;
}

.scholarship-summary-page tr.sch-row-inactive:hover > td {
  background-color: #ffd9dd !important;
}

.scholarship-summary-page .sch-kpi--mbu-ok,
.udise-plus-summary-page .sch-kpi--mbu-ok {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.scholarship-summary-page .sch-kpi--mbu-pending,
.udise-plus-summary-page .sch-kpi--mbu-pending {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

.scholarship-summary-page .sch-kpi--mbu-other,
.udise-plus-summary-page .sch-kpi--mbu-other {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.scholarship-summary-page .sch-kpi--apaar-status,
.udise-plus-summary-page .sch-kpi--apaar-status {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.scholarship-summary-page .sch-kpi--apaar-status-pending,
.udise-plus-summary-page .sch-kpi--apaar-status-pending {
  background: linear-gradient(135deg, #db2777 0%, #9d174d 100%);
}

.scholarship-summary-page .sch-kpi--clickable,
.udise-plus-summary-page .sch-kpi--clickable {
  cursor: pointer;
}

.scholarship-summary-page .sch-kpi--clickable.is-active,
.udise-plus-summary-page .sch-kpi--clickable.is-active {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  box-shadow: 0 18px 36px rgba(35, 10, 16, 0.32);
}

/* summary grid */
/* header ? theme based */
.scholarship-summary-page .sch-summary-table thead th {
  background: linear-gradient(180deg, var(--digi-accent) 0%, #6f1026 100%);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  border-color: rgba(255, 255, 255, 0.15);
}

/* body base cell bg ? sticky/total columns ?? ?? base ??? */
.scholarship-summary-page .sch-summary-table tbody td {
  background-color: #fff;
}

.scholarship-summary-page .sch-summary-table .sch-std-col {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 4.5rem;
  width: 4.5rem;
  white-space: nowrap;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

/* corner (sticky top + left) header cell ? ?????? header cells ?? ???? z-index */
.scholarship-summary-page .sch-summary-table thead th.sch-std-col {
  z-index: 3;
}

.scholarship-summary-page .sch-summary-table tbody td.sch-c-tot {
  background-color: rgba(138, 21, 48, 0.05);
}

/* full-row hover ? sticky + total columns ???? ??? row */
.scholarship-summary-page .sch-summary-table tbody tr:hover > td {
  background-color: #f7e6ea;
}

/* grand total row */
.scholarship-summary-page .sch-summary-table .sch-grand-row > td {
  background-color: #f6d9df;
  font-weight: 800;
}

/* expandable ???? ? ???? */
.scholarship-summary-page .sch-summary-table .sch-std-row.sch-has-children {
  cursor: pointer;
}

.scholarship-summary-page .sch-summary-table .sch-std-row.sch-has-children:hover .sch-std-col {
  background: #f3e3e7;
}

.scholarship-summary-page .sch-summary-table .sch-caret {
  display: inline-block;
  width: 1.1em;
  margin-right: 0.15rem;
  color: var(--digi-accent);
  transition: transform 0.15s ease;
}

.scholarship-summary-page .sch-summary-table .sch-std-row.open .sch-caret {
  transform: rotate(90deg);
}

.scholarship-summary-page .sch-summary-table .sch-caret--empty {
  visibility: hidden;
}

/* expand ???? parent ???? row ? ?????? ??? ??? */
.scholarship-summary-page .sch-summary-table .sch-std-row.open > td {
  background-color: #eadcf3;
  box-shadow: inset 0 -1px 0 rgba(109, 40, 217, 0.25);
}

.scholarship-summary-page .sch-summary-table .sch-std-row.open .sch-caret {
  color: #6d28d9;
}

/* ???? (child) rows ? expand group ?? ??? ????? ??? tint + left accent */
.scholarship-summary-page .sch-summary-table .sch-cls-row > td {
  background-color: #f6f0fb;
  font-size: 0.9rem;
}

.scholarship-summary-page .sch-summary-table .sch-cls-row .sch-cls-name {
  padding-left: 2.1rem;
  color: #4b3f57;
  position: relative;
  border-left: 3px solid rgba(109, 40, 217, 0.45);
}

.scholarship-summary-page .sch-summary-table .sch-cls-row .sch-cls-name::before {
  content: "?";
  position: absolute;
  left: 1.15rem;
  color: #9f86c4;
}

/* cell count ? drill-down link (?????????? ????) */
.scholarship-summary-page .sch-summary-table .sch-count-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--digi-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.scholarship-summary-page .sch-summary-table .sch-count-link:hover,
.scholarship-summary-page .sch-summary-table .sch-count-link:focus-visible {
  color: #6d28d9;
}

/* drill-down student panel */
.scholarship-summary-page .sch-detail-card .school-user-toolbar {
  border-bottom: 1px solid rgba(138, 21, 48, 0.12);
}

/* mobile ? std column ?? ?????? ??? ?????, ?????? ????? data columns ?? */
@media (max-width: 768px) {
  .scholarship-summary-page .sch-summary-table .sch-std-col {
    min-width: 3.6rem;
    width: 3.6rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 0.85rem;
  }

  .scholarship-summary-page .sch-summary-table .sch-caret {
    width: 0.9em;
    margin-right: 0.05rem;
  }

  .scholarship-summary-page .sch-summary-table .sch-cls-row .sch-cls-name {
    padding-left: 1.5rem;
  }

  .scholarship-summary-page .sch-summary-table .sch-cls-row .sch-cls-name::before {
    left: 0.6rem;
  }
}

/* ???????????????????????????????????????????????????????????????
   Taskboard ? modern Kanban / Planner-style (Google Tasks inspired)
   ??????????????????????????????????????????????????????????????? */
.taskboard-page .school-user-page-title,
.taskboard-page .form-label,
.taskboard-page .form-text {
  color: var(--digi-accent, #7a1f2b);
}

.taskboard-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.08);
}

.taskboard-page .staff-doc-section-card .card-body {
  background: #fff;
}

.taskboard-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.taskboard-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #6b1f2b 0%, #9a2f3f 45%, #c45a6a 100%);
}

.taskboard-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.taskboard-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

/* Hero header ? multi-color gradient + shine */
.tb-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  box-shadow:
    0 20px 50px rgba(59, 7, 28, 0.22),
    0 4px 16px rgba(30, 64, 175, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tb-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    #4a0e2e 0%,
    #7a1f2b 18%,
    #9333ea 38%,
    #2563eb 58%,
    #0891b2 78%,
    #059669 100%
  );
  background-size: 200% 200%;
  animation: tb-hero-gradient 12s ease infinite;
}

.tb-hero__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: tb-hero-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.tb-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
}

.tb-hero__glow--1 {
  width: 220px;
  height: 220px;
  top: -80px;
  right: 10%;
  background: #fbbf24;
  animation: tb-hero-float 8s ease-in-out infinite;
}

.tb-hero__glow--2 {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: 8%;
  background: #38bdf8;
  animation: tb-hero-float 10s ease-in-out infinite reverse;
}

.tb-hero__inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem 1.65rem;
}

@media (min-width: 768px) {
  .tb-hero__inner {
    padding: 1.75rem 2rem 2rem;
  }
}

.tb-hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.tb-hero__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}

.tb-hero__sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  max-width: 36rem;
}

.tb-hero__actions {
  flex-shrink: 0;
}

/* Stat cards ? glass, larger, modern */
.tb-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .tb-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.tb-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  min-height: 5.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tb-stat-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.tb-stat-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tb-stat-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tb-stat-card__val {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tb-stat-card__lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.tb-stat-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.tb-stat-card--today .tb-stat-card__bar {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.tb-stat-card--pending .tb-stat-card__bar {
  background: linear-gradient(90deg, #fb923c, #ea580c);
}

.tb-stat-card--progress .tb-stat-card__bar {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.tb-stat-card--done .tb-stat-card__bar {
  background: linear-gradient(90deg, #4ade80, #16a34a);
}

.tb-stat-card--today .tb-stat-card__icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 0.35));
}

.tb-stat-card--pending .tb-stat-card__icon {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.5), rgba(234, 88, 12, 0.35));
}

.tb-stat-card--progress .tb-stat-card__icon {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.5), rgba(37, 99, 235, 0.35));
}

.tb-stat-card--done .tb-stat-card__icon {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.5), rgba(22, 163, 74, 0.35));
}

@keyframes tb-hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes tb-hero-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes tb-hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -8px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .tb-hero__bg,
  .tb-hero__shine,
  .tb-hero__glow--1,
  .tb-hero__glow--2 {
    animation: none;
  }
}

/* Toolbar */
.tb-search-wrap {
  position: relative;
}

.tb-search-wrap__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.tb-search-input {
  padding-left: 2.25rem;
  border-radius: 10px;
  border-color: #e5e7eb;
}

.tb-search-input:focus {
  border-color: var(--digi-accent, #7a1f2b);
  box-shadow: 0 0 0 0.2rem rgba(122, 31, 43, 0.12);
}

.tb-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tb-filter-pill {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tb-filter-pill:hover {
  border-color: var(--digi-accent, #7a1f2b);
  color: var(--digi-accent, #7a1f2b);
}

.tb-filter-pill.active {
  background: var(--digi-accent, #7a1f2b);
  border-color: var(--digi-accent, #7a1f2b);
  color: #fff;
}

.tb-view-toggle .tb-view-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  min-width: 2.2rem;
}

.tb-view-toggle .tb-view-btn.active {
  background: var(--digi-accent, #7a1f2b);
  border-color: var(--digi-accent, #7a1f2b);
  color: #fff;
}

/* Kanban board */
.tb-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  min-height: 320px;
}

@media (max-width: 1199.98px) {
  .tb-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .tb-board {
    grid-template-columns: 1fr;
  }
}

.tb-col {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e8edf3;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 12rem);
  min-height: 280px;
}

.tb-col__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid transparent;
  border-radius: 14px 14px 0 0;
  background: #fff;
}

.tb-col--pending .tb-col__head { border-bottom-color: #f59e0b; }
.tb-col--progress .tb-col__head { border-bottom-color: #3b82f6; }
.tb-col--done .tb-col__head { border-bottom-color: #22c55e; }
.tb-col--cancel .tb-col__head { border-bottom-color: #9ca3af; }

.tb-col__title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #1f2937;
}

.tb-col__count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2f7;
  color: #4b5563;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.tb-col__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.tb-col__body .tb-task-card {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.tb-col__empty {
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 1.5rem 0.5rem;
}

/* Task cards */
.tb-task-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8edf3;
  box-shadow: 0 2px 10px rgba(18, 38, 63, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

.tb-task-card--status-pending {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 42%, #fff 100%);
  border-color: rgba(245, 158, 11, 0.28);
}

.tb-task-card--status-progress {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 42%, #fff 100%);
  border-color: rgba(59, 130, 246, 0.28);
}

.tb-task-card--status-done {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 42%, #fff 100%);
  border-color: rgba(34, 197, 94, 0.28);
}

.tb-task-card--status-cancel {
  background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 42%, #fff 100%);
  border-color: rgba(156, 163, 175, 0.35);
}

.tb-task-card--status-pending .tb-task-card__foot { border-top-color: rgba(245, 158, 11, 0.15); }
.tb-task-card--status-progress .tb-task-card__foot { border-top-color: rgba(59, 130, 246, 0.15); }
.tb-task-card--status-done .tb-task-card__foot { border-top-color: rgba(34, 197, 94, 0.15); }
.tb-task-card--status-cancel .tb-task-card__foot { border-top-color: rgba(156, 163, 175, 0.2); }

.tb-task-card:hover {
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.12);
  transform: translateY(-1px);
}

.tb-task-card--hidden {
  display: none !important;
}

.tb-task-card--inactive {
  opacity: 0.65;
}

.tb-task-card--list {
  margin-bottom: 0.75rem;
}

.tb-task-card__due-strip {
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.tb-task-card__body {
  padding: 0.85rem 0.9rem 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
}

.tb-task-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.tb-task-card__desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.35rem 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f3f4f6;
  color: #4b5563;
}

.tb-chip--date {
  background: #eff6ff;
  color: #1e40af;
}

.tb-chip--rec {
  background: #fdf4ff;
  color: #7e22ce;
}

.tb-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tb-badge--today {
  background: #fef3c7;
  color: #92400e;
}

.tb-badge--muted {
  background: #f3f4f6;
  color: #6b7280;
}

.tb-assignees {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tb-assignee-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.tb-assignee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.tb-assignee-row--accepted {
  background: #f0fdf4;
  border-color: #86efac;
}

.tb-assignee-row--pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.tb-assignee-row--rejected {
  background: #fef2f2;
  border-color: #fecaca;
}

.tb-assignee-row--me {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.tb-assignee-row__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f2937;
  min-width: 0;
}

.tb-assignee-row__you {
  font-size: 0.68rem;
  font-weight: 800;
  color: #2563eb;
  margin-left: 0.15rem;
}

.tb-assignee-row__status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #374151;
}

.tb-assignee-row--accepted .tb-assignee-row__status {
  color: #166534;
}

.tb-assignee-row--pending .tb-assignee-row__status {
  color: #92400e;
}

.tb-assignee-row--rejected .tb-assignee-row__status {
  color: #991b1b;
}

.tb-assignee-progress {
  font-size: 0.68rem;
  font-weight: 800;
  color: #4b5563;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.tb-you-response {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tb-you-response__lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
}

.tb-assignees__lbl,
.tb-assigner__lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  margin-right: 0.15rem;
}

.tb-assigner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.tb-assigner__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2937;
}

.tb-assignee-name {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  max-width: 100%;
}

.tb-assignee-name--ok {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.tb-assignee-name--pending {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.tb-assignee-name--rej {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.tb-task-card__corner {
  min-width: 0;
}

.tb-response-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tb-response-badge--pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.tb-response-badge--accepted {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.tb-response-badge--rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tb-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tb-response-actions .btn {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
}

.tb-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c7d2fe;
}

.tb-avatar--ok {
  background: #dcfce7;
  color: #166534;
  box-shadow: 0 0 0 1px #86efac;
}

.tb-avatar--pending {
  background: #fef9c3;
  color: #854d0e;
  box-shadow: 0 0 0 1px #fde047;
}

.tb-avatar--more {
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.6rem;
  box-shadow: none;
}

.tb-task-card__foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem 0.65rem;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
  margin-top: auto;
}

.tb-status-select {
  flex: 1;
  font-size: 0.78rem;
  border-radius: 8px;
  border-color: #e5e7eb;
}

.tb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
}

.tb-icon-btn:hover {
  background: #f9fafb;
  color: var(--digi-accent, #7a1f2b);
  border-color: var(--digi-accent, #7a1f2b);
}

.tb-icon-btn--danger:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

/* Empty state */
.tb-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f8fafc;
  border-radius: 14px;
  border: 2px dashed #e2e8f0;
}

.tb-empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* Side panel */
.tb-task-panel {
  width: min(100vw, 420px);
  border-left: 1px solid rgba(122, 31, 43, 0.12);
  box-shadow: -8px 0 40px rgba(18, 38, 63, 0.15);
}

.tb-task-panel__head {
  background: linear-gradient(135deg, #6b1f2b 0%, #9a2f3f 100%);
  color: #fff;
  padding: 1.1rem 1.25rem;
}

.tb-task-panel__head .btn-close {
  filter: brightness(0) invert(1);
}

.tb-title-input {
  border-radius: 10px;
  font-weight: 600;
}

.tb-rec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tb-rec-pill {
  cursor: pointer;
  margin: 0;
}

.tb-rec-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tb-rec-pill span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  transition: all 0.12s ease;
}

.tb-rec-pill--on span,
.tb-rec-pill input:checked + span {
  background: var(--digi-accent, #7a1f2b);
  border-color: var(--digi-accent, #7a1f2b);
  color: #fff;
}

.tb-staff-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.65rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.tb-staff-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.tb-staff-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tb-staff-chip span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  transition: all 0.12s ease;
}

.tb-staff-chip--on span,
.tb-staff-chip input:checked + span {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.tb-task-panel__actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.5rem;
}

/* Status ? modern radio grid */
.tb-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 420px) {
  .tb-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tb-status-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.65rem 0.4rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.tb-status-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tb-status-opt__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tb-status-opt__text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
}

.tb-status-opt--pending .tb-status-opt__dot { background: #f59e0b; }
.tb-status-opt--progress .tb-status-opt__dot { background: #3b82f6; }
.tb-status-opt--done .tb-status-opt__dot { background: #22c55e; }
.tb-status-opt--cancel .tb-status-opt__dot { background: #9ca3af; }

.tb-status-opt--on.tb-status-opt--pending,
.tb-status-opt--pending:has(input:checked) {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.tb-status-opt--on.tb-status-opt--progress,
.tb-status-opt--progress:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.tb-status-opt--on.tb-status-opt--done,
.tb-status-opt--done:has(input:checked) {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.tb-status-opt--on.tb-status-opt--cancel,
.tb-status-opt--cancel:has(input:checked) {
  border-color: #9ca3af;
  background: #f9fafb;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.25);
}

/* Active ? slider toggle */
.tb-active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.tb-active-row__text {
  min-width: 0;
}

.tb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.tb-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tb-toggle__track {
  position: relative;
  width: 3rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.tb-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.tb-toggle__input:checked + .tb-toggle__track {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.tb-toggle__input:checked + .tb-toggle__track .tb-toggle__thumb {
  transform: translateX(1.35rem);
}

.tb-toggle--on .tb-toggle__track,
.tb-toggle:has(.tb-toggle__input:checked) .tb-toggle__track {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.tb-toggle--on .tb-toggle__thumb,
.tb-toggle:has(.tb-toggle__input:checked) .tb-toggle__thumb {
  transform: translateX(1.35rem);
}

.tb-toggle__state {
  font-size: 0.82rem;
  font-weight: 800;
  color: #374151;
  min-width: 4.5rem;
}

.tb-toggle:has(.tb-toggle__input:checked) .tb-toggle__state {
  color: #15803d;
}

@media (max-width: 767.98px) {
  .tb-task-panel {
    width: 100vw;
  }

  .tb-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
}

/* ??? Taskboard login alert modal ? colorful modern popup ??? */
.tb-login-modal .modal-dialog {
  max-width: 560px;
}

.tb-login-modal__shell {
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(59, 7, 28, 0.28),
    0 8px 24px rgba(37, 99, 235, 0.15);
}

.tb-login-modal__head {
  position: relative;
  overflow: hidden;
}

.tb-login-modal__head-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    #7a1f2b 0%,
    #9333ea 35%,
    #2563eb 65%,
    #0891b2 100%
  );
  background-size: 200% 200%;
  animation: tb-hero-gradient 10s ease infinite;
}

.tb-login-modal__head-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 58%
  );
  background-size: 250% 100%;
  animation: tb-hero-shine 5s ease-in-out infinite;
  pointer-events: none;
}

.tb-login-modal__head-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem;
}

.tb-login-modal__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tb-login-modal__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.tb-login-modal__subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.2rem;
}

.tb-login-modal__close {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

.tb-login-modal__body {
  padding: 1.15rem 1.25rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  max-height: min(60vh, 420px);
}

.tb-login-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.tb-login-modal__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-top-color: #7a1f2b;
  border-radius: 50%;
  animation: tb-login-spin 0.7s linear infinite;
}

.tb-login-modal__foot {
  padding: 0.85rem 1.25rem 1.15rem;
  background: #fff;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tb-login-section {
  margin-bottom: 1.15rem;
}

.tb-login-section:last-child {
  margin-bottom: 0;
}

.tb-login-section__head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.tb-login-section__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.tb-login-section--accept .tb-login-section__dot {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.tb-login-section--admin .tb-login-section__dot {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}

.tb-login-section__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
}

.tb-login-section__sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.tb-login-section__cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tb-login-task-card {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

.tb-login-task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.tb-login-task-card--out {
  opacity: 0;
  transform: scale(0.96);
}

.tb-login-task-card__accent {
  height: 4px;
}

.tb-login-task-card--accept .tb-login-task-card__accent {
  background: linear-gradient(90deg, #fbbf24, #f97316, #ea580c);
}

.tb-login-task-card--admin .tb-login-task-card__accent {
  background: linear-gradient(90deg, #60a5fa, #3b82f6, #6366f1);
}

.tb-login-task-card--status-pending {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 45%, #fff 100%);
  border-color: rgba(245, 158, 11, 0.28);
}

.tb-login-task-card--status-progress {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 45%, #fff 100%);
  border-color: rgba(59, 130, 246, 0.28);
}

.tb-login-task-card--status-done {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 45%, #fff 100%);
  border-color: rgba(34, 197, 94, 0.28);
}

.tb-login-task-card--status-cancel {
  background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 45%, #fff 100%);
  border-color: rgba(156, 163, 175, 0.35);
}

.tb-login-task-card__inner {
  padding: 0.95rem 1rem 1rem;
}

.tb-login-task-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.tb-login-task-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.tb-login-task-card__desc {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.tb-login-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tb-login-badge--warn {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.tb-login-badge--today {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.tb-login-task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tb-login-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
}

.tb-login-meta-pill--rec {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.tb-login-meta-pill--status {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tb-login-meta-pill--status-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tb-login-meta-pill--status-progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tb-login-meta-pill--status-done {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tb-login-meta-pill--status-cancel {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.tb-login-meta-pill--date {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tb-login-task-card__staff {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.tb-login-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.tb-login-accept-btn {
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.tb-login-accept-btn--busy {
  opacity: 0.7;
  pointer-events: none;
}

@keyframes tb-login-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tb-login-modal__head-bg,
  .tb-login-modal__head-shine,
  .tb-login-modal__spinner {
    animation: none;
  }
}

/* What's New modal content */
.wn-release {
  margin-bottom: 1.1rem;
}

.wn-release:last-child {
  margin-bottom: 0;
}

.wn-release__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.55rem;
}

.wn-release__ver {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--digi-accent, #7a1f2b);
  background: rgba(122, 31, 43, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.wn-release__date {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
}

.wn-release__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wn-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.wn-item__title {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.35;
}

.wn-item__body {
  margin-top: 0.3rem;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Dashboard task alerts ? compact horizontal cards */
.tb-dash-task {
  flex: 0 0 auto;
  width: min(220px, 70vw);
  border-radius: 10px;
  padding: 0.5rem 0.6rem !important;
  margin-bottom: 0;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 7.5rem;
}

.tb-dash-task__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.tb-dash-task__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-dash-task__desc {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-dash-task__meta {
  font-size: 0.68rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-dash-task__foot {
  font-size: 0.66rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: auto;
}

.tb-dash-task__foot span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-dash-task__inactive {
  font-size: 0.62rem;
  font-weight: 700;
  color: #6b7280;
}

.tb-dash-task--pending {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 50%, #fff 100%);
  border-color: rgba(245, 158, 11, 0.22);
}

.tb-dash-task--progress {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 50%, #fff 100%);
  border-color: rgba(59, 130, 246, 0.22);
}

.tb-dash-task--done {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 50%, #fff 100%);
  border-color: rgba(34, 197, 94, 0.22);
}

.tb-dash-task--cancel {
  background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 50%, #fff 100%);
  border-color: rgba(156, 163, 175, 0.3);
}

.tb-dash-task__badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  align-self: flex-start;
}

.tb-dash-task--pending .tb-dash-task__badge { background: #fde68a; color: #92400e; }
.tb-dash-task--progress .tb-dash-task__badge { background: #bfdbfe; color: #1e40af; }
.tb-dash-task--done .tb-dash-task__badge { background: #bbf7d0; color: #166534; }
.tb-dash-task--cancel .tb-dash-task__badge { background: #e5e7eb; color: #4b5563; }

/* Dashboard ? hero (taskboard-style) + compact stats */
.school-dashboard-page .tb-hero.dash-hero {
  min-height: 0;
}

.school-dashboard-page .dash-hero .tb-hero__inner {
  padding: 1rem 1.1rem 1rem;
}

.school-dashboard-page .dash-hero-stats {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.school-dashboard-page .dash-hero-panchang-card {
  min-height: 0;
  padding: 0.65rem 0.85rem;
  gap: 0;
  align-items: stretch;
}

.school-dashboard-page .dash-hero-panchang-card__text {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.25;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.school-dashboard-page .dash-hero-panchang-card__text::-webkit-scrollbar {
  display: none;
}

.school-dashboard-page .dash-hero-panchang-card__sep {
  opacity: 0.65;
}

.school-dashboard-page .dash-hero-panchang-card__ist {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.8;
}

.school-dashboard-page .staff-doc-section-card__head--dash-date-load {
  background: linear-gradient(125deg, #7c3aed 0%, #2563eb 28%, #059669 52%, #d97706 76%, #dc2626 100%);
  color: #fff !important;
}

.school-dashboard-page .dash-date-load-card {
  border-radius: 0.75rem;
  overflow: hidden;
}

.school-dashboard-page .dash-date-load-card .card-body {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* Dashboard ? refresh controls */
.school-dashboard-page .dash-refresh-all-btn {
  background: rgba(255, 255, 255, 0.96);
  color: #6b1f2b;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.school-dashboard-page .dash-refresh-all-btn:hover,
.school-dashboard-page .dash-refresh-all-btn:focus {
  background: #fff;
  color: #5a0b1b;
  border-color: rgba(255, 255, 255, 0.8);
}

.school-dashboard-page .dash-refresh-all-btn:disabled {
  opacity: 0.65;
}

.school-dashboard-page .dash-card-refresh-btn {
  --bs-btn-padding-x: 0.38rem;
  --bs-btn-padding-y: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.96);
  color: #6b1f2b;
  line-height: 0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

.school-dashboard-page .dash-card-refresh-btn:hover,
.school-dashboard-page .dash-card-refresh-btn:focus {
  background: #fff;
  color: #5a0b1b;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.school-dashboard-page .dash-staff-leave-card .dash-card-refresh-btn {
  color: #0c4a6e;
}

.school-dashboard-page .dash-staff-leave-card .dash-card-refresh-btn:hover,
.school-dashboard-page .dash-staff-leave-card .dash-card-refresh-btn:focus {
  color: #075985;
}

.school-dashboard-page .dash-date-load-card .dash-card-refresh-btn,
.school-dashboard-page .dash-bv-summary-card .dash-card-refresh-btn {
  color: #334155;
  border-color: rgba(15, 23, 42, 0.12);
}

.school-dashboard-page .dash-refresh-icon {
  display: block;
  flex-shrink: 0;
}

.school-dashboard-page .js-dash-refresh.is-busy .dash-refresh-icon {
  animation: dash-refresh-spin 0.75s linear infinite;
}

@keyframes dash-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dashboard ? taskboard card (list below hero) */
.dash-taskboard-card {
  border: 1px solid rgba(122, 31, 43, 0.1);
}

.school-dashboard-page .dash-taskboard-card .staff-doc-section-card__head {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #6b1f2b 0%, #9a2f3f 100%);
}

.dash-taskboard-open-btn {
  background: rgba(255, 255, 255, 0.96);
  color: #6b1f2b;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dash-taskboard-open-btn:hover,
.dash-taskboard-open-btn:focus {
  background: #fff;
  color: #5a0b1b;
  border-color: rgba(255, 255, 255, 0.75);
}

.dash-taskboard-list {
  max-height: 15.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dash-taskboard-items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
  padding-bottom: 0.25rem;
  min-height: 9.5rem;
}

.tb-task-card--dash {
  flex: 0 0 auto;
  width: min(248px, 78vw);
  max-height: 15rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tb-dash-task__status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.tb-task-card--status-pending .tb-dash-task__status-head {
  background: linear-gradient(90deg, #b45309 0%, #d97706 45%, #f59e0b 100%);
}

.tb-task-card--status-progress .tb-dash-task__status-head {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 45%, #3b82f6 100%);
}

.tb-task-card--status-done .tb-dash-task__status-head {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 45%, #22c55e 100%);
}

.tb-task-card--status-cancel .tb-dash-task__status-head {
  background: linear-gradient(90deg, #374151 0%, #4b5563 45%, #6b7280 100%);
}

.tb-dash-task__status-head .tb-dash-task__inactive {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  text-shadow: none;
}

.tb-task-card--dash .tb-task-card__body {
  padding: 0.55rem 0.75rem 0.55rem;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tb-task-card--dash .tb-task-card__title {
  font-size: 0.86rem;
  margin: 0.2rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-task-card--dash .tb-task-card__desc {
  font-size: 0.72rem;
  margin: 0.2rem 0 0.35rem;
  -webkit-line-clamp: 2;
}

.tb-task-card--dash .tb-task-card__meta {
  margin-top: auto;
}

.tb-task-card--dash .tb-chip {
  font-size: 0.66rem;
  padding: 0.15rem 0.4rem;
}

.tb-task-card--dash .tb-dash-task__foot {
  font-size: 0.66rem;
  color: #6b7280;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tb-task-card--dash .tb-dash-task__foot span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-dash-task__actions {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.tb-dash-task__actions .tb-status-select {
  flex: 1 1 100%;
  font-size: 0.72rem;
  border-radius: 8px;
  min-height: 1.75rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.tb-dash-task__actions .btn {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
}

.tb-task-card--dash:hover {
  transform: none;
}

.dash-taskboard-filters {
  flex-wrap: wrap;
}

.dash-taskboard-filters .tb-filter-pill {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
}

/* Dashboard ? staff on leave card (below taskboard) */
.dash-staff-leave-card {
  border: 1px solid rgba(13, 94, 120, 0.14);
}

.school-dashboard-page .dash-staff-leave-card .staff-doc-section-card__head--dash-staff-leave {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 55%, #0891b2 100%);
  row-gap: 0.35rem;
}

.dash-staff-leave-card__head .dash-staff-leave-filters {
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}

.dash-staff-leave-card__head .dash-staff-leave-filters .tb-filter-pill {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.55);
  color: #0f4c6a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dash-staff-leave-card__head .dash-staff-leave-filters .tb-filter-pill:hover {
  background: #fff;
  border-color: #fff;
  color: #0c4a6e;
}

.dash-staff-leave-card__head .dash-staff-leave-filters .tb-filter-pill.active {
  background: var(--digi-accent, #7a1f2b);
  border-color: var(--digi-accent, #7a1f2b);
  color: #fff;
}

.dash-staff-leave-open-btn {
  background: rgba(255, 255, 255, 0.96);
  color: #0c4a6e;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dash-staff-leave-open-btn:hover,
.dash-staff-leave-open-btn:focus {
  background: #fff;
  color: #075985;
  border-color: rgba(255, 255, 255, 0.75);
}

.dash-staff-leave-card .card-body {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.dash-staff-leave-list {
  max-height: 10.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dash-staff-leave-items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  padding-bottom: 0.2rem;
  min-height: 6.65rem;
}

.dash-staff-leave-card-item {
  flex: 0 0 auto;
  width: min(248px, 78vw);
  max-height: 10.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  background: #fff;
  box-shadow: 0 2px 10px rgba(8, 47, 73, 0.08);
}

.dash-staff-leave-card-item__status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.34rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.dash-staff-leave-card-item--pending .dash-staff-leave-card-item__status-head {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 45%, #ef4444 100%);
}

.dash-staff-leave-card-item--approved .dash-staff-leave-card-item__status-head {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 45%, #22c55e 100%);
}

.dash-staff-leave-card-item__main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem 0.5rem;
}

.dash-staff-leave-card-item__photo {
  flex: 0 0 3.75rem;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.dash-staff-leave-card-item__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-staff-leave-card-item__photo-placeholder {
  color: #0369a1;
  opacity: 0.65;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-staff-leave-card-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  justify-content: center;
}

.dash-staff-leave-card-item__name {
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-staff-leave-card-item__type {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0e7490;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-staff-leave-card-item__dates {
  font-size: 0.66rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.dash-staff-leave-card-item:hover {
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 4px 14px rgba(8, 47, 73, 0.12);
}

/* offcanvas (#tbTaskPanel) `.taskboard-page` ???? ?? ? ???? ?? ?? same date-picker hide CSS ???? */
.taskboard-page .gr-date-wrap .form-control,
.tb-task-panel .gr-date-wrap .form-control {
  padding-right: 44px;
}

.taskboard-page .gr-date-native,
.tb-task-panel .gr-date-native {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
  color-scheme: light;
  pointer-events: none;
}

.taskboard-page .gr-date-btn,
.tb-task-panel .gr-date-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(90, 11, 27, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(90, 11, 27, 0.85);
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}

.taskboard-page .gr-date-btn:hover,
.tb-task-panel .gr-date-btn:hover {
  border-color: rgba(138, 21, 48, 0.35);
  box-shadow: 0 10px 20px rgba(35, 10, 16, 0.1);
}

.taskboard-page .gr-date-btn svg,
.tb-task-panel .gr-date-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.taskboard-page .pa-tb-school-list {
  max-height: min(50vh, 360px);
  overflow-y: auto;
}

/* ?? ?????????? ?? ????? ??????? (A4 grid, ???? ????? ??) ?? */
body.stu-icard-print-body.lc-app-print-body {
  /* Gujarati ?????? ? Roboto ?????? ?????? PDF/html2canvas ??? glyph ???? */
  font-family: "Noto Sans Gujarati", "Nirmala UI", "Roboto", "Segoe UI", Arial, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* PDF export: Indic script ???? letter-spacing / faux-bold ??? */
body.lc-app-exporting .stu-icard,
body.lc-app-exporting .stu-icard * {
  letter-spacing: 0 !important;
}
body.lc-app-exporting .stu-icard__name,
body.lc-app-exporting .stu-icard__school-name,
body.lc-app-exporting .stu-icard__std {
  font-family: "Noto Sans Gujarati", "Nirmala UI", sans-serif !important;
  font-weight: 700 !important;
  font-synthesis: none !important;
  text-rendering: geometricPrecision;
}

.lc-app-print-zoom-shell > .stu-icard-print-page + .stu-icard-print-page {
  margin-top: 1.25rem;
}

.lc-app-print-page .stu-icard-sheet {
  width: 100%;
  min-height: 277mm;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 54mm);
  grid-auto-rows: 85.6mm;
  gap: 3mm;
  justify-content: center;
  align-content: start;
  page-break-after: always;
}

.lc-app-print-page:last-child .stu-icard-sheet {
  page-break-after: auto;
}

.stu-icard {
  --stu-icard-accent: #ea580c;
  --stu-icard-accent-soft: #f97316;
  --stu-icard-ink: #1f2937;
  --stu-icard-muted: #4b5563;
  --stu-icard-label: #374151;
  --stu-icard-photo: 24mm;
  position: relative;
  width: 54mm;
  height: 85.6mm;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  border: .2mm solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  color: var(--stu-icard-ink);
  font-family: "Noto Sans Gujarati", "Nirmala UI", "Roboto", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

.stu-icard__header {
  position: relative;
  height: 20mm;
  z-index: 1;
}

.stu-icard__wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stu-icard__wave-dark { fill: #2b2b2b; }
.stu-icard__wave-mid { fill: #f97316; }
.stu-icard__wave-light { fill: #fbbf24; opacity: .85; }

.stu-icard--maroon-classic {
  --stu-icard-accent: #8a1530;
  --stu-icard-accent-soft: #a01c3a;
}
.stu-icard--maroon-classic .stu-icard__wave-dark { fill: #5a0b1b; }
.stu-icard--maroon-classic .stu-icard__wave-mid { fill: #8a1530; }
.stu-icard--maroon-classic .stu-icard__wave-light { fill: #c9a227; opacity: .9; }
.stu-icard--maroon-classic .stu-icard__footer-seg--dark { background: #5a0b1b; }
.stu-icard--maroon-classic .stu-icard__footer-seg--orange { background: #8a1530; }
.stu-icard--maroon-classic .stu-icard__footer-seg--amber { background: #c9a227; }

.student-icard-page .stu-icard-design-pick {
  display: block;
  margin: 0;
  cursor: pointer;
}

.student-icard-page .stu-icard-design-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.student-icard-page .stu-icard-design-pick__box {
  display: block;
  border: 2px solid rgba(90, 11, 27, .15);
  border-radius: 12px;
  padding: .85rem 1rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.student-icard-page .stu-icard-design-pick input:checked + .stu-icard-design-pick__box {
  border-color: var(--digi-accent, #8a1530);
  box-shadow: 0 0 0 3px rgba(138, 21, 48, .12);
}

.student-icard-page .stu-icard-design-pick__swatch {
  display: block;
  width: 100%;
  height: 2.5rem;
  border-radius: 8px;
  margin-bottom: .5rem;
}

.student-icard-page .stu-icard-design-pick__swatch--orangewave {
  background: linear-gradient(135deg, #2b2b2b 40%, #f97316 70%, #fbbf24 100%);
}

.student-icard-page .stu-icard-design-pick__swatch--maroonclassic {
  background: linear-gradient(135deg, #5a0b1b 40%, #8a1530 70%, #c9a227 100%);
}

.stu-icard__brand {
  position: absolute;
  top: 1.8mm;
  right: 2.5mm;
  left: 2.5mm;
  max-height: 8.5mm;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5mm;
  z-index: 5;
  overflow: hidden;
}

.stu-icard__logo,
.stu-icard__logo-fallback {
  width: 7.5mm;
  height: 7.5mm;
  object-fit: contain;
  flex: 0 0 auto;
}

.stu-icard__school-text {
  text-align: right;
  color: #fff;
  min-width: 0;
}

.stu-icard__school-name {
  font-family: "Noto Sans Gujarati", "Nirmala UI", sans-serif;
  font-size: 2.6mm;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #fff;
  font-synthesis: none;
}

.stu-icard__school-tag {
  font-family: "Noto Sans Gujarati", "Nirmala UI", "Roboto", sans-serif;
  font-size: 1.7mm;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .92);
  margin-top: .35mm;
}

/* Photo: header ?? ???? ?????, ????? ??? ? overlap ???? */
.stu-icard__photo-wrap {
  position: absolute;
  top: 10mm;
  left: 50%;
  transform: translateX(-50%);
  width: var(--stu-icard-photo);
  height: var(--stu-icard-photo);
  z-index: 4;
  pointer-events: none;
}

.stu-icard__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.1mm solid var(--stu-icard-accent-soft);
  box-shadow:
    0 0 0 .55mm #fff,
    0 0 0 1.35mm var(--stu-icard-accent);
  background: #f3f4f6;
  display: block;
}

.stu-icard__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.stu-icard__photo--empty svg {
  width: 10mm;
  height: 10mm;
}

/* Body photo ?? ?????? ??? ? ??? photo ???? ? ??? (ring/shadow ???? ??? gap) */
.stu-icard__body {
  position: absolute;
  top: calc(10mm + var(--stu-icard-photo) + 3.4mm);
  left: 3mm;
  right: 3mm;
  bottom: 3.5mm;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.stu-icard__name {
  /* Gujarati: letter-spacing + faux-bold (800) PDF ??? ???????? ???? ? ? ????? */
  font-family: "Noto Sans Gujarati", "Nirmala UI", sans-serif;
  font-size: 3.15mm;
  font-weight: 700;
  font-synthesis: none;
  color: var(--stu-icard-accent);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
  padding: 0 1mm;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 8mm;
  overflow: hidden;
}

.stu-icard__role {
  font-family: "Roboto", "Noto Sans Gujarati", sans-serif;
  font-size: 2.1mm;
  font-weight: 700;
  color: var(--stu-icard-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .55mm;
}

.stu-icard__std {
  font-family: "Noto Sans Gujarati", "Nirmala UI", sans-serif;
  font-size: 2.05mm;
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: 0;
  color: var(--stu-icard-muted);
  margin-top: .35mm;
}

.stu-icard__rule {
  height: .4mm;
  background: var(--stu-icard-accent);
  margin: 1.3mm auto 1.5mm;
  width: 78%;
  border-radius: .2mm;
  opacity: .95;
}

.stu-icard__fields {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  text-align: left;
}

.stu-icard__field {
  display: grid;
  grid-template-columns: 14mm 1fr;
  align-items: baseline;
  column-gap: 1mm;
  font-size: 2.05mm;
  line-height: 1.35;
  margin-bottom: .55mm;
}

.stu-icard__field dt {
  margin: 0;
  font-weight: 700;
  color: var(--stu-icard-label);
  white-space: nowrap;
}

.stu-icard__field dt::after {
  content: " :";
  color: var(--stu-icard-muted);
}

.stu-icard__field dd {
  margin: 0;
  font-weight: 600;
  color: var(--stu-icard-ink);
  min-width: 0;
  word-break: break-word;
}

.stu-icard__field--email dd {
  font-size: 1.8mm;
  font-weight: 500;
}

.stu-icard__barcode {
  display: block;
  width: 36mm;
  height: 6.5mm;
  object-fit: contain;
  margin: .6mm auto 0;
  flex: 0 0 auto;
}

.stu-icard__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2mm;
  display: flex;
  z-index: 3;
}

.stu-icard__footer-seg {
  display: block;
  height: 100%;
}

.stu-icard__footer-seg--dark {
  flex: 0 0 40%;
  background: #2b2b2b;
}

.stu-icard__footer-seg--orange {
  flex: 0 0 30%;
  background: #f97316;
}

.stu-icard__footer-seg--amber {
  flex: 1 1 auto;
  background: #fbbf24;
}

@media print {
  .stu-icard {
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .lc-app-print-page .stu-icard-sheet {
    page-break-after: always;
  }

  .lc-app-print-page:last-child .stu-icard-sheet {
    page-break-after: auto;
  }
}

@media screen and (max-width: 900px) {
  .stu-icard-sheet {
    width: min(100%, 210mm);
    grid-template-columns: repeat(auto-fit, minmax(54mm, 1fr));
    justify-items: center;
  }
}

/* ===== Dashboard ? ?????? ??? ????? button badges ===== */
.dash-child-leave-btn {
  padding-right: 2.75rem !important;
}

.dash-child-leave-badge {
  position: absolute;
  top: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.dash-child-leave-badge--pending {
  right: -0.2rem;
  background: #dc2626;
}

.dash-child-leave-badge--approved {
  right: 1.05rem;
  background: #16a34a;
}

.dash-child-leave-badge--inquery {
  right: 2.3rem;
  background: #ea580c;
}

/* ===== Dashboard ? quick action buttons (5 ? mobile 2 lines) ===== */
.school-dashboard-page .dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.school-dashboard-page .dash-quick-actions__btn {
  justify-content: center;
}

.school-dashboard-page .dash-footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(136, 19, 55, 0.12);
}

.school-dashboard-page .dash-footer-shortcuts__btn {
  justify-content: center;
}

@media (max-width: 767.98px) {
  .school-dashboard-page .dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .school-dashboard-page .dash-quick-actions > * {
    grid-column: span 2;
    width: 100%;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* 5 ???: ????? ???? 3, ???? ???? 2 (???? ??????) */
  .school-dashboard-page .dash-quick-actions > *:nth-child(4):nth-last-child(2),
  .school-dashboard-page .dash-quick-actions > *:nth-child(5):nth-last-child(1) {
    grid-column: span 3;
  }

  .school-dashboard-page .dash-footer-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .school-dashboard-page .dash-footer-shortcuts__btn {
    width: 100%;
  }
}

.dash-gic-scan-popup__card-wrap {
  display: block;
  padding: 0;
}

.dash-gic-scan-popup__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(138, 21, 48, 0.14);
  justify-content: stretch;
}

.dash-gic-scan-popup__shortcut {
  flex: 1 1 10rem;
  justify-content: center;
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dash-gic-scan-popup__shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.digi-info-modal .dash-gic-pro-dialog {
  max-width: 720px;
}

/* ===== ???? ????? ????? ? modern verify card ===== */
.dash-gic-pro {
  --gic-accent: #8a1530;
  --gic-accent-2: #b01b34;
  --gic-ink: #1f2937;
  --gic-muted: #6b7280;
  animation: dashGicProIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dashGicProIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dash-gic-pro__hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 0.85rem;
  padding: 1.1rem 1.1rem 0.95rem;
  color: #fff;
  background:
    linear-gradient(135deg, #5a0b1b 0%, #8a1530 42%, #c43a52 100%);
  box-shadow:
    0 14px 32px rgba(90, 11, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dash-gic-pro__hero-glow {
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.35), transparent 70%);
  pointer-events: none;
}

.dash-gic-pro__hero-main {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 1;
}

.dash-gic-pro__hero-text {
  flex: 1 1 auto;
}

.dash-gic-pro__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.dash-gic-pro__name {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #fff;
}

.dash-gic-pro__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-gic-pro__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.dash-gic-pro__chip--id {
  background: rgba(15, 23, 42, 0.28);
  border-color: rgba(255, 255, 255, 0.28);
}

.dash-gic-pro__chip-lab {
  opacity: 0.75;
  font-size: 0.68rem;
}

.dash-gic-pro__chip--ok {
  background: rgba(22, 163, 74, 0.92);
  border-color: rgba(255, 255, 255, 0.25);
}

.dash-gic-pro__chip--off {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

.dash-gic-pro__meta-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.dash-gic-pro__meta-item {
  min-width: 0;
}

.dash-gic-pro__meta-lab {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 0.12rem;
}

.dash-gic-pro__meta-val {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.dash-gic-pro__avatar {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.dash-gic-pro__avatar--lg {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 18px;
  border-width: 3px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.dash-gic-pro__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.dash-gic-pro__avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(160deg, #f8fafc, #e2e8f0);
}

.dash-gic-pro__hero .dash-gic-pro__avatar-fallback {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
}

.dash-gic-pro__block {
  margin-bottom: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(138, 21, 48, 0.1);
  box-shadow: 0 10px 24px rgba(90, 11, 27, 0.06);
}

.dash-gic-pro__block-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gic-accent);
  letter-spacing: 0.02em;
}

.dash-gic-pro__block-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #8a1530, #c43a52);
  box-shadow: 0 6px 14px rgba(138, 21, 48, 0.28);
}

.dash-gic-pro__people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.dash-gic-pro__person {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #fbf8f9 0%, #fff 55%);
  border: 1px solid rgba(138, 21, 48, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dash-gic-pro__person:hover {
  border-color: rgba(138, 21, 48, 0.22);
  box-shadow: 0 10px 22px rgba(90, 11, 27, 0.08);
  transform: translateY(-1px);
}

.dash-gic-pro__person .dash-gic-pro__avatar {
  border-color: rgba(138, 21, 48, 0.18);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.dash-gic-pro__role {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gic-accent);
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.dash-gic-pro__person-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gic-ink);
  line-height: 1.3;
  word-break: break-word;
}

.dash-gic-pro__person-line {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gic-muted);
  line-height: 1.35;
}

.dash-gic-pro__phone {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.dash-gic-pro__phone[href="#"] {
  color: var(--gic-muted);
  pointer-events: none;
}

.dash-gic-pro__phone:not([href="#"]):hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .dash-gic-pro__hero-main {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }

  .dash-gic-pro__meta-bar {
    grid-template-columns: 1fr 1fr;
  }

  .dash-gic-pro__people {
    grid-template-columns: 1fr;
  }

  .dash-gic-scan-popup__shortcuts {
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding-top: 0.7rem;
  }

  /* column flex ??? flex-basis:10rem ????? ??? ??? ? compact row ??? ???? */
  .dash-gic-scan-popup__shortcut {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    font-size: 0.875rem;
    line-height: 1.25;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  }

  /* ??????? ????? ????? ? left/top/right (??? bottom) ??????? */
  #dashGuardianICardModal.digi-info-modal .dash-gic-pro-dialog,
  .digi-info-modal .dash-gic-pro-dialog {
    --bs-modal-margin: 0.85rem;
    width: auto;
    max-width: calc(100vw - 1.75rem);
    margin: 0.85rem 0.875rem;
  }
}

/* ===== ???? ??? ????? ? digital letterpad (Digi Report Viewer print) ===== */
body.gic-digi-print-body {
  font-family: "Noto Sans Gujarati", "Nirmala UI", "Roboto", Arial, sans-serif;
  color: #211815;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.gic-digi-sheet {
  width: 100%;
  min-height: 277mm;
  box-sizing: border-box;
  padding: 4mm 4mm 6mm;
  font-family: "Noto Sans Gujarati", "Nirmala UI", "Roboto", Arial, sans-serif;
  color: #211815;
}

.gic-digi-title {
  text-align: center;
  font-weight: 700;
  font-size: 18pt;
  color: #7a1f2b;
  margin: 3mm 0 5mm;
  letter-spacing: .02em;
}

.gic-digi-sec {
  border: 1px solid rgba(122, 31, 43, .28);
  border-radius: 3mm;
  margin-bottom: 4mm;
  overflow: hidden;
}

.gic-digi-sec__head {
  background: linear-gradient(90deg, #7a1f2b, #a01c3a);
  color: #fff;
  font-weight: 700;
  font-size: 12.5pt;
  padding: 2.2mm 4mm;
}

.gic-digi-sec__body { padding: 3.5mm 4mm; }

.gic-digi-row {
  display: grid;
  grid-template-columns: 1fr 32mm;
  gap: 4mm;
  align-items: start;
}

.gic-digi-parents {
  display: grid;
  grid-template-columns: 1fr 28mm 1fr 28mm;
  gap: 3.5mm;
  align-items: start;
}

.gic-digi-field {
  display: grid;
  grid-template-columns: 34mm 1fr;
  gap: 2mm;
  font-size: 12pt;
  margin-bottom: 2.2mm;
  line-height: 1.45;
}

.gic-digi-field dt { margin: 0; font-weight: 700; color: #7a1f2b; }
.gic-digi-field dd { margin: 0; font-weight: 600; }

.gic-digi-photo {
  width: 30mm;
  height: 36mm;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 1.5mm;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gic-digi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.gic-digi-photo--empty {
  font-size: 8.5pt;
  color: #888;
  text-align: center;
  padding: 1mm;
}

.gic-digi-g-label {
  font-size: 11pt;
  font-weight: 700;
  color: #7a1f2b;
  margin-bottom: 1.5mm;
}

.gic-digi-footer {
  display: grid;
  grid-template-columns: 1fr 52mm 1fr;
  gap: 4mm;
  align-items: end;
  margin-top: 5mm;
  padding-top: 4mm;
  border-top: 1.5px solid rgba(122, 31, 43, .35);
  min-height: 48mm;
}

.gic-digi-meta {
  font-size: 11pt;
  line-height: 1.65;
}

.gic-digi-meta strong { color: #7a1f2b; }

.gic-digi-qr { text-align: center; }

.gic-digi-qr img {
  width: 44mm;
  height: 44mm;
  object-fit: contain;
  image-rendering: pixelated;
}

.gic-digi-qr-cap {
  font-size: 10pt;
  font-weight: 700;
  color: #7a1f2b;
  margin-top: 1.2mm;
  font-family: ui-monospace, Consolas, monospace;
}

.gic-digi-sign {
  text-align: center;
  padding-bottom: 2mm;
}

.gic-digi-sign__lab {
  font-size: 13pt;
  font-weight: 700;
  color: #7a1f2b;
  margin-bottom: 2mm;
}

.gic-digi-sign__school {
  font-size: 10.5pt;
  font-weight: 600;
  color: #444;
  line-height: 1.35;
  max-width: 52mm;
  margin: 0 auto;
}

/* ===== Child leave approval page (form shell + wrap cards) ===== */
.child-leave-approval-page .staff-doc-section-card {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.child-leave-approval-page .staff-doc-section-card .card-body {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.child-leave-approval-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.child-leave-approval-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.child-leave-approval-page .staff-doc-section-card__head--list .staff-doc-list-count {
  flex-shrink: 0;
  margin-left: 0.35rem;
  opacity: 0.95;
}

.child-leave-approval-page .school-user-page-title {
  color: var(--digi-accent);
}

.child-leave-approval-page .child-leave-filters {
  flex-wrap: wrap;
}

.child-leave-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: stretch;
}

.child-leave-approval-page .child-leave-card.tb-task-card--dash {
  flex: 1 1 260px;
  width: auto;
  max-width: 320px;
  min-width: min(260px, 100%);
  max-height: none;
}

.child-leave-card__body {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.child-leave-card__photo-wrap {
  flex: 0 0 auto;
  position: relative;
}

.child-leave-card__photo {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
}

.child-leave-card__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.child-leave-card__main {
  flex: 1 1 auto;
  min-width: 0;
}

.child-leave-card--inquery .tb-dash-task__status-head,
.tb-task-card.child-leave-card--inquery .tb-dash-task__status-head {
  background: linear-gradient(90deg, #ef4444, #dc2626) !important;
  color: #fff;
}

.child-leave-card--approved .tb-dash-task__status-head {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #fff;
}

.child-leave-card--pending .tb-dash-task__status-head {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #fff;
}

/* આજની હાજરી / ડેશબોર્ડ — રજા અરજી popup */
.today-raja-modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
}
.today-raja-modal__head {
  background: linear-gradient(125deg, #7f1d1d 0%, #b91c1c 55%, #f87171 100%);
  color: #fff;
  border-bottom: 0;
}
.today-raja-modal__head .school-user-page-title {
  color: #fff;
}
.today-raja-card__actions {
  padding: 0.5rem 0.75rem 0.75rem;
}
.today-raja-card__actions .btn {
  border-radius: 999px;
}

/* Dashboard + TodayAttendance: full-width cards, reason fully visible */
#dashRajaArajiModal .modal-dialog,
#todayRajaArajiModal .modal-dialog {
  max-width: 640px;
}
#dashRajaArajiModal .child-leave-card-grid,
#todayRajaArajiModal .child-leave-card-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.85rem;
  width: 100%;
}
#dashRajaArajiModal .today-raja-card.tb-task-card--dash,
#todayRajaArajiModal .today-raja-card.tb-task-card--dash {
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
}
#dashRajaArajiModal .today-raja-card .tb-task-card__desc,
#todayRajaArajiModal .today-raja-card .tb-task-card__desc,
#dashRajaArajiModal .today-raja-card__reason,
#todayRajaArajiModal .today-raja-card__reason {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}
#dashRajaArajiModal .today-raja-card__applicant,
#todayRajaArajiModal .today-raja-card__applicant {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #475569;
}
#dashRajaArajiModal .today-raja-card .tb-task-card__meta,
#todayRajaArajiModal .today-raja-card .tb-task-card__meta {
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

/* રજા રિપોર્ટ — વાલી અરજી row colors */
.vali-raja-row--pending td { background: rgba(245, 158, 11, 0.12); }
.vali-raja-row--approved td { background: rgba(34, 197, 94, 0.10); }
.vali-raja-row--rejected td { background: rgba(239, 68, 68, 0.10); }
.vali-raja-row--inquery td { background: rgba(59, 130, 246, 0.10); }

/* ??? Digi info modal ? grid Action �??????� (nm-edit-modal style, centered) ??? */
.digi-info-modal .modal-dialog {
  max-width: 640px;
}

.digi-info-modal .modal-dialog.modal-lg {
  max-width: 800px;
}

.digi-info-modal .modal-dialog.modal-xl {
  max-width: 1140px;
}

.digi-info-modal__content {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(138, 21, 48, 0.10), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(22, 163, 74, 0.08), transparent 50%),
    #fff;
  box-shadow:
    0 0 0 1px rgba(138, 21, 48, 0.10),
    0 0 28px rgba(138, 21, 48, 0.18),
    0 0 60px rgba(138, 21, 48, 0.10),
    0 22px 48px rgba(15, 23, 42, 0.18);
}

.digi-info-modal__content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.digi-info-modal__header {
  padding: 1rem 1.25rem;
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
  color: #fff;
}

.digi-info-modal__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(90, 11, 27, 0.28);
}

.digi-info-modal__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.digi-info-modal__subtitle {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

.digi-info-modal__subtitle:empty {
  display: none;
}

.digi-info-modal__body {
  padding: 1.15rem 1.25rem 0.35rem;
  background: linear-gradient(180deg, #fbf8f9 0%, #fff 40%);
}

.digi-info-modal__footer {
  padding: 0.65rem 1.25rem 1.1rem;
  background: #fff;
}

.digi-info-modal .form-label {
  color: var(--digi-accent) !important;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.digi-info-modal .form-control,
.digi-info-modal .form-select,
.digi-info-modal textarea.form-control {
  border-radius: 10px;
  border-color: rgba(138, 21, 48, 0.18);
}

.digi-info-modal .form-control:focus,
.digi-info-modal .form-select:focus,
.digi-info-modal textarea.form-control:focus {
  border-color: rgba(138, 21, 48, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(138, 21, 48, 0.12);
}

.digi-info-modal__section {
  margin-bottom: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(138, 21, 48, 0.08);
  box-shadow: 0 8px 22px rgba(90, 11, 27, 0.05);
}

.digi-info-modal__section--first {
  margin-top: 0;
}

.digi-info-modal__section-head {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--digi-accent);
}

.digi-info-modal__dl {
  display: grid;
  gap: 0.55rem 0;
}

.digi-info-modal__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: 0.35rem 0.85rem;
  align-items: start;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(138, 21, 48, 0.10);
}

.digi-info-modal__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.digi-info-modal__label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}

.digi-info-modal__value {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .digi-info-modal__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ===== GuardianVisit grid ? leave approval row colors ===== */
#visitGrid tbody tr.gv-row--leave-approved td {
  background-color: rgba(34, 197, 94, 0.12) !important;
}

#visitGrid tbody tr.gv-row--leave-inquery td {
  background-color: rgba(239, 68, 68, 0.14) !important;
}

#visitGrid tbody tr.gv-row--leave-pending td {
  background-color: rgba(245, 158, 11, 0.12) !important;
}


/* ===== Project Admin dashboard ===== */
.pa-dashboard-page {
  --pa-ink: #0f172a;
  --pa-muted: #475569;
  --pa-card-bg: #ffffff;
  --pa-soft: #f8fafc;
}

.pa-dashboard-page .pa-dash-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--digi-accent, #7a1f2b);
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.pa-dashboard-page .staff-doc-section-card.pa-dash-section {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(18, 38, 63, 0.1);
  background: #fff;
}

.pa-dashboard-page .pa-dash-section .card-body,
.pa-dashboard-page .pa-dash-section-body {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pa-dashboard-page .staff-doc-section-card__head {
  margin: 0;
  padding: 0.85rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

/* 3-color header gradients (section-wise) */
.pa-dashboard-page .staff-doc-section-card__head--staff {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.pa-dashboard-page .staff-doc-section-card__head--codes {
  background: linear-gradient(125deg, #075985 0%, #0284c7 50%, #38bdf8 100%);
}

.pa-dashboard-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #166534 0%, #16a34a 55%, #86efac 100%);
}

.pa-dashboard-page .staff-doc-section-card__head--detail {
  background: linear-gradient(125deg, #8a1530 0%, #b01b34 55%, #d94b63 100%);
}

.pa-dashboard-page .staff-doc-section-card__head--indigo {
  background: linear-gradient(125deg, #312e81 0%, #4f46e5 50%, #818cf8 100%);
}

.pa-dashboard-page .staff-doc-section-card__head--sunset {
  background: linear-gradient(125deg, #9a3412 0%, #ea580c 50%, #fdba74 100%);
}

.pa-dashboard-page .staff-doc-section-card__head--gold {
  background: linear-gradient(125deg, #92400e 0%, #d97706 50%, #fcd34d 100%);
}

.pa-dashboard-page .staff-doc-section-card__head--teal {
  background: linear-gradient(125deg, #115e59 0%, #0d9488 50%, #5eead4 100%);
}

.pa-dashboard-page .pa-dash-head-btn {
  font-weight: 700;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.pa-dashboard-page .pa-dash-period {
  width: auto;
  min-width: 10.75rem;
  max-width: 13.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  border: 0;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.pa-dashboard-page .pa-dash-period:disabled {
  opacity: 0.7;
}

.pa-dashboard-page .pa-dash-chart-wrap--loading {
  opacity: 0.45;
  pointer-events: none;
}

.pa-dashboard-page .pa-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (min-width: 992px) {
  .pa-dashboard-page .pa-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .pa-wa-summary-page .pa-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pa-dashboard-page a.pa-metric-card,
.pa-dashboard-page .pa-metric-card.pa-metric-card--static {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.05rem 1.35rem;
  min-height: 6.4rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--pa-card-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.pa-dashboard-page a.pa-metric-card::before,
.pa-dashboard-page .pa-metric-card.pa-metric-card--static::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--pa-accent, #0284c7);
  border-radius: 14px 0 0 14px;
}

.pa-dashboard-page a.pa-metric-card .pa-metric-card__glow,
.pa-dashboard-page .pa-metric-card.pa-metric-card--static .pa-metric-card__glow {
  position: absolute;
  inset: auto -20% -55% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pa-glow, rgba(2, 132, 199, 0.18)) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.pa-dashboard-page a.pa-metric-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: color-mix(in srgb, var(--pa-accent, #0284c7) 35%, transparent);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.14),
    0 0 0 3px color-mix(in srgb, var(--pa-accent, #0284c7) 14%, transparent);
  color: inherit;
}

.pa-dashboard-page a.pa-metric-card:hover .pa-metric-card__glow {
  transform: scale(1.25) translate(-8%, -8%);
  opacity: 1;
}

.pa-dashboard-page a.pa-metric-card:hover .pa-metric-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.pa-dashboard-page a.pa-metric-card:focus-visible {
  outline: 2px solid var(--pa-accent, #0284c7);
  outline-offset: 2px;
}

.pa-dashboard-page .pa-metric-card__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, var(--pa-icon-a, #0284c7), var(--pa-icon-b, #38bdf8));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--pa-accent, #0284c7) 35%, transparent);
}

.pa-dashboard-page .pa-metric-card__icon--pulse {
  animation: pa-metric-pulse 2.2s ease-in-out infinite;
}

@keyframes pa-metric-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pa-dashboard-page .pa-metric-card__icon--pulse {
    animation: none;
  }
}

.pa-dashboard-page .pa-metric-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pa-dashboard-page .pa-metric-card__val {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--pa-ink) !important;
  letter-spacing: -0.02em;
}

.pa-dashboard-page .pa-metric-card__val-soft {
  font-size: 0.62em;
  font-weight: 700;
  color: var(--pa-muted) !important;
}

.pa-dashboard-page .pa-metric-card__lbl {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pa-muted) !important;
}

.pa-dashboard-page .pa-metric-card__hint {
  font-weight: 600;
  color: #64748b !important;
}

.pa-dashboard-page .pa-metric-card__cta {
  position: absolute;
  right: 0.85rem;
  bottom: 0.55rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pa-accent, #0284c7);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Metric accent themes */
.pa-dashboard-page .pa-metric-card--amber {
  --pa-accent: #d97706;
  --pa-icon-a: #b45309;
  --pa-icon-b: #f59e0b;
  --pa-glow: rgba(245, 158, 11, 0.22);
  background: linear-gradient(160deg, #fffbeb 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--green {
  --pa-accent: #16a34a;
  --pa-icon-a: #15803d;
  --pa-icon-b: #4ade80;
  --pa-glow: rgba(34, 197, 94, 0.2);
  background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--orange {
  --pa-accent: #ea580c;
  --pa-icon-a: #c2410c;
  --pa-icon-b: #fb923c;
  --pa-glow: rgba(234, 88, 12, 0.2);
  background: linear-gradient(160deg, #fff7ed 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--blue {
  --pa-accent: #2563eb;
  --pa-icon-a: #1d4ed8;
  --pa-icon-b: #60a5fa;
  --pa-glow: rgba(37, 99, 235, 0.2);
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--lime {
  --pa-accent: #16a34a;
  --pa-icon-a: #15803d;
  --pa-icon-b: #22c55e;
  --pa-glow: rgba(34, 197, 94, 0.22);
  background: linear-gradient(160deg, #ecfdf5 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--sky {
  --pa-accent: #0284c7;
  --pa-icon-a: #0369a1;
  --pa-icon-b: #38bdf8;
  --pa-glow: rgba(14, 165, 233, 0.2);
  background: linear-gradient(160deg, #f0f9ff 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--violet {
  --pa-accent: #7c3aed;
  --pa-icon-a: #6d28d9;
  --pa-icon-b: #a78bfa;
  --pa-glow: rgba(124, 58, 237, 0.2);
  background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--gold {
  --pa-accent: #ca8a04;
  --pa-icon-a: #a16207;
  --pa-icon-b: #facc15;
  --pa-glow: rgba(234, 179, 8, 0.22);
  background: linear-gradient(160deg, #fefce8 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--teal {
  --pa-accent: #0f766e;
  --pa-icon-a: #115e59;
  --pa-icon-b: #2dd4bf;
  --pa-glow: rgba(13, 148, 136, 0.2);
  background: linear-gradient(160deg, #f0fdfa 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--rose {
  --pa-accent: #e11d48;
  --pa-icon-a: #be123c;
  --pa-icon-b: #fb7185;
  --pa-glow: rgba(225, 29, 72, 0.18);
  background: linear-gradient(160deg, #fff1f2 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--maroon {
  --pa-accent: #7a1f2b;
  --pa-icon-a: #7a1f2b;
  --pa-icon-b: #d94b63;
  --pa-glow: rgba(122, 31, 43, 0.18);
  background: linear-gradient(160deg, #fff5f6 0%, #ffffff 55%);
}
.pa-dashboard-page .pa-metric-card--slate {
  --pa-accent: #475569;
  --pa-icon-a: #334155;
  --pa-icon-b: #94a3b8;
  --pa-glow: rgba(71, 85, 105, 0.16);
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 55%);
}

.pa-dashboard-page .pa-dash-chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}

.pa-dashboard-page .pa-dash-chart-wrap--donut {
  height: 220px;
  max-width: 280px;
  margin: 0 auto;
}

.pa-dashboard-page .pa-dash-chart-wrap--wide {
  height: 280px;
}

@media (max-width: 575.98px) {
  .pa-dashboard-page .pa-metric-grid {
    grid-template-columns: 1fr;
  }

  .pa-dashboard-page .pa-dash-chart-wrap,
  .pa-dashboard-page .pa-dash-chart-wrap--wide {
    height: 220px;
  }

  .pa-dashboard-page a.pa-metric-card .pa-metric-card__cta {
    opacity: 0.85;
    transform: none;
  }
}

/* ===== Library Issue-Return ===== */
.library-issue-return-page .staff-doc-section-card__head--list {
  background: linear-gradient(125deg, #9f1239 0%, #be123c 50%, #e11d48 100%);
}
.library-issue-return-page .staff-doc-section-card__head--staff {
  background: linear-gradient(125deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
}
.library-issue-return-page .lir-member-kind .btn {
  font-weight: 600;
}
.library-issue-return-page .lir-book-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(138, 21, 48, 0.06);
  border: 1px solid rgba(138, 21, 48, 0.12);
}
.library-issue-return-page .lir-book-title-line__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
}
.library-issue-return-page .lir-book-title-line__value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
}
.library-issue-return-page .lir-book-empty {
  text-align: center;
  padding: 1.75rem 1rem 1.25rem;
}
.library-issue-return-page .lir-book-empty__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.85rem;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(145deg, rgba(138, 21, 48, 0.12), rgba(138, 21, 48, 0.04));
  border: 1px solid rgba(138, 21, 48, 0.12);
}
.library-issue-return-page .lir-book-empty__title {
  font-weight: 800;
  color: #3f2a30;
  margin-bottom: 0.25rem;
}
.library-issue-return-page .lir-book-empty__hint {
  font-size: 0.88rem;
  color: #6b7280;
  max-width: 16rem;
  margin: 0 auto;
  line-height: 1.45;
}
.library-issue-return-page .lir-book-panel__hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.library-issue-return-page .lir-book-cover {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #f7eef1 0%, #efe4e8 100%);
  border: 1px solid rgba(138, 21, 48, 0.14);
  box-shadow: 0 12px 26px rgba(35, 10, 16, 0.12);
  flex-shrink: 0;
}
.library-issue-return-page .lir-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.library-issue-return-page .lir-book-cover__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #8a1530;
}
.library-issue-return-page .lir-book-cover__glyph {
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0.75;
}
.library-issue-return-page .lir-book-cover__hint {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.65;
}
.library-issue-return-page .lir-book-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.library-issue-return-page .lir-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.library-issue-return-page .lir-chip--acc {
  background: rgba(18, 38, 63, 0.08);
  color: #243447;
}
.library-issue-return-page .lir-chip--status-ok {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.library-issue-return-page .lir-chip--status-warn {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}
.library-issue-return-page .lir-chip--status-danger {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}
.library-issue-return-page .lir-chip--status-muted {
  background: rgba(107, 114, 128, 0.14);
  color: #4b5563;
}
.library-issue-return-page .lir-book-panel__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  color: #231015;
}
.library-issue-return-page .lir-book-panel__by {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #6b7280;
}
.library-issue-return-page .lir-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.library-issue-return-page .lir-meta-chip {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: #faf7f8;
  border: 1px solid rgba(18, 38, 63, 0.07);
  min-width: 0;
}
.library-issue-return-page .lir-meta-chip__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a7a80;
  margin-bottom: 0.18rem;
}
.library-issue-return-page .lir-meta-chip__value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  word-break: break-word;
}
.library-issue-return-page .lir-meta-grid .lir-meta-chip:nth-child(1),
.library-issue-return-page .lir-meta-grid .lir-meta-chip:nth-child(2) {
  grid-column: span 1;
}
@media (max-width: 419.98px) {
  .library-issue-return-page .lir-book-panel__hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .library-issue-return-page .lir-book-cover {
    width: min(220px, 70vw);
  }
  .library-issue-return-page .lir-book-panel__chips {
    justify-content: center;
  }
  .library-issue-return-page .lir-meta-grid {
    grid-template-columns: 1fr;
  }
}
.library-issue-return-page .lir-open-issue {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(217, 119, 6, 0.28);
}
.library-issue-return-page .lir-open-issue__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.library-issue-return-page .lir-open-issue__badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
}
.library-issue-return-page .lir-open-issue__title {
  font-weight: 800;
  color: #92400e;
}
.library-issue-return-page .lir-open-issue__kind {
  font-size: 0.72rem;
  font-weight: 800;
  color: #a16207;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.library-issue-return-page .lir-open-issue__name {
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
}
.library-issue-return-page .lir-open-issue__ref {
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7280;
}
.library-issue-return-page .lir-open-issue__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.library-issue-return-page .lir-open-issue__dates > div {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}
.library-issue-return-page .lir-open-issue__dates span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #92400e;
}
.library-issue-return-page .lir-open-issue__dates strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1f2937;
}
.digi-barcode-scan-reader {
  width: 100%;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.digi-barcode-scan-reader--msg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: #1f2937;
  padding: 1rem;
}

.digi-barcode-scan-reader__msg {
  color: #f8fafc;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 22rem;
}

.digi-barcode-scan-manual {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(138, 21, 48, 0.18);
}

.digi-barcode-scan-manual .form-label {
  color: var(--digi-accent);
  font-size: 0.86rem;
}

.digi-barcode-scan-manual__row .form-control {
  border-radius: 10px 0 0 10px;
}

.digi-barcode-scan-manual__row .btn {
  border-radius: 0 10px 10px 0;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .digi-barcode-scan-reader {
    min-height: 200px;
  }

  .digi-barcode-scan-manual__row {
    flex-wrap: nowrap;
  }

  .digi-barcode-scan-manual__row .btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
@media (min-width: 992px) {
  .library-issue-return-page #issueBookDetailCardWrap,
  .library-issue-return-page #tab-return .col-lg-5 > .card {
    position: sticky;
    top: 1rem;
  }
}

/* ???? ??????? ? ???? ?????? ???? compact summary */
.day-reg-page .day-reg-summary-card {
  overflow: hidden;
}
.day-reg-page .day-reg-summary-card .staff-doc-section-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.day-reg-page .day-reg-summary-body {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.day-reg-page .day-reg-sum-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.05rem 0.05rem 0.2rem;
  -webkit-overflow-scrolling: touch;
}
.day-reg-page .day-reg-sum-chip {
  flex: 1 1 0;
  min-width: 6.5rem;
  max-width: 10rem;
  border: 0;
  border-radius: 12px;
  padding: 0.45rem 0.55rem 0.5rem;
  color: #fff !important;
  text-align: left;
  box-shadow: 0 4px 12px rgba(18, 38, 63, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.15;
  position: relative;
  overflow: hidden;
}
.day-reg-page .day-reg-sum-chip .day-reg-sum-lbl,
.day-reg-page .day-reg-sum-chip .day-reg-sum-val,
.day-reg-page .day-reg-sum-chip .day-reg-sum-sub,
.day-reg-page .day-reg-sum-chip .day-reg-sum-ico {
  color: #fff !important;
}
.day-reg-page .day-reg-sum-chip::after {
  content: "";
  position: absolute;
  right: -0.6rem;
  top: -0.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.day-reg-page .day-reg-sum-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(18, 38, 63, 0.2);
}
.day-reg-page .day-reg-sum-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.day-reg-page .day-reg-sum-ico {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.day-reg-page .day-reg-sum-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-reg-page .day-reg-sum-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-top: 0.05rem;
}
.day-reg-page .day-reg-sum-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-reg-page .day-reg-sum-chip--total { background: linear-gradient(135deg, #4a0012 0%, #2e000b 100%); }
.day-reg-page .day-reg-sum-chip--c { background: linear-gradient(135deg, #064e3b 0%, #022c22 100%); }
.day-reg-page .day-reg-sum-chip--s { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.day-reg-page .day-reg-sum-chip--f { background: linear-gradient(135deg, #831843 0%, #500724 100%); }
.day-reg-page .day-reg-sum-chip--h { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); }
.day-reg-page .day-reg-sum-chip--d { background: linear-gradient(135deg, #7c2d12 0%, #431407 100%); }
.day-reg-page .day-reg-sum-chip--v { background: linear-gradient(135deg, #164e63 0%, #082f49 100%); }

@media (max-width: 991.98px) {
  .day-reg-page .day-reg-sum-chip {
    flex: 0 0 auto;
    width: 7.75rem;
    max-width: none;
  }
}

/* PARAKH ?????? ????? ? compact attractive summary (WA-history KPI style) */
.parakh-vidhan-page .parakh-summary-card {
  overflow: hidden;
}
.parakh-vidhan-page .parakh-summary-card .staff-doc-section-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: linear-gradient(125deg, #1e293b 0%, #0f172a 100%) !important;
  color: #fff !important;
}
.parakh-vidhan-page .parakh-summary-card .staff-doc-section-card__head .staff-doc-list-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.parakh-vidhan-page .parakh-summary-body {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.parakh-vidhan-page .parakh-sum-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.05rem 0.05rem 0.2rem;
  -webkit-overflow-scrolling: touch;
}
.parakh-vidhan-page .parakh-sum-chip {
  flex: 1 1 0;
  min-width: 7rem;
  max-width: 11rem;
  border: 0;
  border-radius: 12px;
  padding: 0.45rem 0.55rem 0.5rem;
  color: #fff;
  text-align: left;
  box-shadow: 0 4px 12px rgba(18, 38, 63, 0.14);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.15;
  position: relative;
  overflow: hidden;
}
.parakh-vidhan-page .parakh-sum-chip::after {
  content: "";
  position: absolute;
  right: -0.6rem;
  top: -0.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.parakh-vidhan-page .parakh-sum-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(18, 38, 63, 0.2);
}
.parakh-vidhan-page .parakh-sum-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.parakh-vidhan-page .parakh-sum-ico {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.parakh-vidhan-page .parakh-sum-ico svg {
  display: block;
}
.parakh-vidhan-page .parakh-sum-ico-txt {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.parakh-vidhan-page .parakh-sum-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.parakh-vidhan-page .parakh-sum-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-top: 0.05rem;
}
.parakh-vidhan-page .parakh-sum-unit {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
  margin-left: 0.05rem;
}
.parakh-vidhan-page .parakh-sum-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.parakh-vidhan-page .parakh-sum-chip--total { background: linear-gradient(135deg, #800020 0%, #5c0018 100%); }
.parakh-vidhan-page .parakh-sum-chip--std3 { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.parakh-vidhan-page .parakh-sum-chip--std6 { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.parakh-vidhan-page .parakh-sum-chip--surat { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.parakh-vidhan-page .parakh-sum-chip--guj { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.parakh-vidhan-page .parakh-sum-chip--bharat { background: linear-gradient(135deg, #db2777 0%, #9d174d 100%); }
.parakh-vidhan-page .parakh-sum-chip--low { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }

@media (max-width: 991.98px) {
  .parakh-vidhan-page .parakh-sum-chip {
    flex: 0 0 auto;
    width: 8.25rem;
    max-width: none;
  }
}

/* NIPUN ?????? ????? ? clickable std/subject summary chips */
.nipun-kshamata-page .nipun-summary-card {
  overflow: hidden;
}
.nipun-kshamata-page .nipun-summary-card .staff-doc-section-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: linear-gradient(125deg, #1e293b 0%, #0f172a 100%) !important;
  color: #fff !important;
}
.nipun-kshamata-page .nipun-summary-card .staff-doc-section-card__head .staff-doc-list-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.nipun-kshamata-page .nipun-summary-body {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.nipun-kshamata-page .nipun-sum-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.05rem 0.05rem 0.2rem;
  -webkit-overflow-scrolling: touch;
}
.nipun-kshamata-page .nipun-sum-chip {
  flex: 1 1 0;
  min-width: 6.5rem;
  max-width: 11rem;
  border: 0;
  border-radius: 12px;
  padding: 0.45rem 0.55rem 0.5rem;
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(18, 38, 63, 0.14);
  transition: transform 0.12s ease, box-shadow 0.12s ease, outline-color 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.15;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.nipun-kshamata-page .nipun-sum-chip::after {
  content: "";
  position: absolute;
  right: -0.6rem;
  top: -0.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.nipun-kshamata-page .nipun-sum-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(18, 38, 63, 0.2);
  color: #fff;
  text-decoration: none;
}
.nipun-kshamata-page .nipun-sum-chip:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
  color: #fff;
}
.nipun-kshamata-page .nipun-sum-chip.is-active {
  outline: 2px solid #fff;
  outline-offset: -2px;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.35), 0 7px 18px rgba(18, 38, 63, 0.22);
}
.nipun-kshamata-page .nipun-sum-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.nipun-kshamata-page .nipun-sum-ico {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.nipun-kshamata-page .nipun-sum-ico-txt {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}
.nipun-kshamata-page .nipun-sum-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nipun-kshamata-page .nipun-sum-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-top: 0.05rem;
}
.nipun-kshamata-page .nipun-sum-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nipun-kshamata-page .nipun-sum-chip--total { background: linear-gradient(135deg, #800020 0%, #5c0018 100%); }
.nipun-kshamata-page .nipun-sum-chip--subj-math { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.nipun-kshamata-page .nipun-sum-chip--subj-guj { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.nipun-kshamata-page .nipun-sum-chip--std-bv { background: linear-gradient(135deg, #db2777 0%, #9d174d 100%); }
.nipun-kshamata-page .nipun-sum-chip--std-1 { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.nipun-kshamata-page .nipun-sum-chip--std-2 { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
.nipun-kshamata-page .nipun-sum-chip--std-3 { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.nipun-kshamata-page .nipun-sum-chip--std-4 { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.nipun-kshamata-page .nipun-sum-chip--std-5 { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); }

@media (max-width: 991.98px) {
  .nipun-kshamata-page .nipun-sum-chip {
    flex: 0 0 auto;
    width: 7.75rem;
    max-width: none;
  }
}

/* PARAKH ????????? ? ???? chip picker (Spardha-style) */
.parakh-mulyankan-page .parakh-std-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(145deg, #faf7f8 0%, #f5eef0 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  border-radius: 12px;
}
.parakh-mulyankan-page .parakh-std-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.parakh-mulyankan-page .parakh-std-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.parakh-mulyankan-page .parakh-std-chip span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 21, 48, 0.18);
  background: #fff;
  color: rgba(90, 11, 27, 0.78);
  transition: all 0.14s ease;
  white-space: nowrap;
}
.parakh-mulyankan-page .parakh-std-chip:hover span {
  border-color: rgba(138, 21, 48, 0.35);
  background: #fff8fa;
}
.parakh-mulyankan-page .parakh-std-chip input:checked + span {
  background: linear-gradient(135deg, #8a1530 0%, #b01b34 100%);
  border-color: #8a1530;
  color: #fff;
  box-shadow: 0 2px 8px rgba(138, 21, 48, 0.22);
}

/* PARAKH entry: Project Admin master exam picker */
.parakh-mulyankan-page .parakh-template-select {
  background-color: #eef4ff;
  border: 1.5px solid #3b6fd8;
  color: #1d3f8f;
  font-weight: 600;
}
.parakh-mulyankan-page .parakh-template-select:focus {
  border-color: #1f56c4;
  box-shadow: 0 0 0 0.2rem rgba(59, 111, 216, 0.2);
}
.parakh-mulyankan-page .parakh-template-select.has-value {
  background-color: #e7f7ee;
  border-color: #1f9254;
  color: #126b3c;
}
.parakh-mulyankan-page .parakh-template-hint {
  color: #1d3f8f;
  font-weight: 500;
}

/* PARAKH ?????????? ????????? ? ???? ??? ??????? + ????? ??????? */
.parakh-vidyarthi-entry-page .parakh-mark-th-code {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}
.parakh-vidyarthi-entry-page .parakh-mark-th-max {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffe8a3;
  text-transform: none;
  white-space: nowrap;
}
.parakh-vidyarthi-entry-page .vagale-grade-table thead th.js-parakh-vidhan-th.parakh-vidhan-th--active {
  background: linear-gradient(135deg, #c45c16 0%, #9a1a32 55%, #7a1029 100%);
  box-shadow: inset 0 -3px 0 #ffe8a3, 0 4px 12px rgba(79, 10, 26, 0.25);
}
.parakh-vidyarthi-entry-page .parakh-vidhan-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #fff8e8 0%, #fff3d6 55%, #ffe8a3 100%);
  border-bottom: 2px solid #e0a800;
  color: #4a2c0a;
  font-size: 0.9rem;
  line-height: 1.35;
}
.parakh-vidyarthi-entry-page .parakh-vidhan-highlight.d-none {
  display: none !important;
}
.parakh-vidyarthi-entry-page .parakh-vidhan-highlight__code {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #8a1530;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}
.parakh-vidyarthi-entry-page .parakh-vidhan-highlight__code:empty {
  display: none;
}
.parakh-vidyarthi-entry-page .parakh-vidhan-highlight__marks {
  font-weight: 700;
  color: #9a1a32;
  font-size: 0.82rem;
}
.parakh-vidyarthi-entry-page .parakh-vidhan-highlight__marks:empty {
  display: none;
}
.parakh-vidyarthi-entry-page .parakh-vidhan-highlight__text {
  flex: 1 1 12rem;
  min-width: 0;
  font-weight: 600;
}
.parakh-vidyarthi-entry-page input.js-parakh-mark.parakh-mark--over,
.parakh-vidyarthi-entry-page input.js-parakh-mark.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff5f5;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.2);
}

.parakh-vidyarthi-entry-page .vagale-grade-table tfoot th,
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot td {
  font-size: 0.78rem;
  vertical-align: middle;
  padding: 0.4rem 0.35rem;
  background: #f8f1f3;
  border-color: rgba(138, 21, 48, 0.15);
  color: #3b0d18;
  white-space: nowrap;
}
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot .parakh-stat-row--avg th,
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot .parakh-stat-row--avg td {
  background: #fff8e8;
  font-weight: 700;
}
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot .parakh-stat-row--success th,
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot .parakh-stat-row--success td {
  background: #e8f6ef;
}
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot .parakh-stat-success {
  color: #0f7a45;
}
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot .parakh-stat-row--cmp th,
.parakh-vidyarthi-entry-page .vagale-grade-table tfoot .parakh-stat-row--cmp td {
  background: #f3f0ff;
  white-space: normal;
  line-height: 1.35;
}
.parakh-vidyarthi-entry-page .parakh-cmp-cell {
  font-size: 0.72rem;
  font-weight: 700;
}
.parakh-vidyarthi-entry-page .parakh-cmp {
  display: inline-block;
}
.parakh-vidyarthi-entry-page .parakh-cmp--up {
  color: #0f7a45;
}
.parakh-vidyarthi-entry-page .parakh-cmp--down {
  color: #b02a37;
}
.parakh-vidyarthi-entry-page .parakh-cmp--same {
  color: #6c757d;
}

/* PARAKH Summary */
.parakh-summary-page .parakh-kpi {
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  min-height: 4.5rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.parakh-summary-page .parakh-kpi__label {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.92;
  margin-bottom: 0.2rem;
}
.parakh-summary-page .parakh-kpi__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.parakh-summary-page .parakh-kpi--school {
  background: linear-gradient(135deg, #8a1530 0%, #5c0018 100%);
}
.parakh-summary-page .parakh-kpi--surat {
  background: linear-gradient(135deg, #0d6efd 0%, #084298 100%);
}
.parakh-summary-page .parakh-kpi--guj {
  background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
}
.parakh-summary-page .parakh-kpi--bharat {
  background: linear-gradient(135deg, #fd7e14 0%, #b35c00 100%);
}
.parakh-summary-page .parakh-sum-chart-wrap {
  position: relative;
  height: 280px;
  max-width: 100%;
}
.parakh-summary-page .parakh-cmp {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
}
.parakh-summary-page .parakh-cmp--up {
  color: #0f7a45;
}
.parakh-summary-page .parakh-cmp--down {
  color: #b02a37;
}
.parakh-summary-page .parakh-cmp--same {
  color: #6c757d;
}

/* ?????? ??????? ? ??? ???? (??? / ???? / ???????) */
.rojmel-entry-page .school-user-grid-scroll.rojmel-book-scroll.school-user-grid-scroll--data-grid {
  max-height: min(70vh, 28rem);
}
.rojmel-entry-page .rojmel-book-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.rojmel-entry-page .rojmel-book-opening td {
  background: #f8f4e8;
}
.rojmel-entry-page .rojmel-book-contra td {
  background: #f7f8fa;
}
.rojmel-entry-page .rojmel-book-totals td {
  background: #eef6f0;
  border-top: 2px solid #c5d9cc;
}
.rojmel-entry-page .rojmel-contra-split-table {
  max-width: 42rem;
}
.rojmel-entry-page .rojmel-contra-split-table th {
  font-size: 0.85rem;
  color: var(--digi-accent);
}

/* ===== વ્યક્તિગત શિસ્ત એન્ટ્રી ===== */
.personal-discipline-page .pd-mode-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.personal-discipline-page .pd-mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 31, 43, 0.18);
  background: #fff;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--digi-accent);
  box-shadow: 0 0.08rem 0.35rem rgba(62, 44, 29, 0.06);
}
.personal-discipline-page .pd-mode-chip:has(input:checked) {
  background: var(--digi-accent);
  border-color: var(--digi-accent-2);
  color: #fff;
  box-shadow: 0 0.12rem 0.45rem rgba(90, 11, 27, 0.28);
}
.personal-discipline-page .pd-mode-chip:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}
.personal-discipline-page .pd-col-title {
  font-weight: 700;
  white-space: nowrap;
}
.personal-discipline-page .js-pd-mark.pd-mark--Y,
.personal-discipline-page .js-pd-bulk.pd-mark--Y {
  background: #e8f6ed;
  color: #0f6b32;
  font-weight: 700;
}
.personal-discipline-page .js-pd-mark.pd-mark--N {
  background: #fdecee;
  color: #b42318;
  font-weight: 700;
}
.personal-discipline-page .js-pd-mark.pd-mark--Z {
  background: #eef0f6;
  color: #3d4a73;
  font-weight: 700;
}
.personal-discipline-page .js-pd-mark.pd-mark--dash {
  background: #f4f1ee;
  color: #6b5a4a;
}

/* Subject caption — ધોરણ segmented chips */
.subject-caption-page .sc-std-seg {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.32rem;
  gap: 0.32rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #faf7f8 0%, #f0e8eb 100%);
  border: 1px solid rgba(138, 21, 48, 0.12);
  box-shadow: inset 0 1px 2px rgba(79, 10, 26, 0.04);
}

.subject-caption-page .sc-std-seg__btn {
  appearance: none;
  flex: 1 1 8.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6b4a52;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.15;
  text-align: start;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.subject-caption-page .sc-std-seg__btn:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--digi-accent);
}

.subject-caption-page .sc-std-seg__btn:focus-visible {
  outline: 2px solid rgba(138, 21, 48, 0.45);
  outline-offset: 2px;
}

.subject-caption-page .sc-std-seg__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  background: rgba(138, 21, 48, 0.1);
  color: var(--digi-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.subject-caption-page .sc-std-seg__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
}

.subject-caption-page .sc-std-seg__count {
  flex: 0 0 auto;
  min-width: 1.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(138, 21, 48, 0.08);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.subject-caption-page .sc-std-seg__btn.is-active {
  background: linear-gradient(125deg, #8a1530 0%, #b91c3c 55%, #e11d48 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(138, 21, 48, 0.28);
  transform: translateY(-1px);
}

.subject-caption-page .sc-std-seg__btn.is-active .sc-std-seg__mark {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.subject-caption-page .sc-std-seg__btn.is-active .sc-std-seg__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 575.98px) {
  .subject-caption-page .sc-std-seg__btn {
    flex: 1 1 calc(50% - 0.32rem);
    min-width: 0;
    padding: 0.4rem 0.5rem 0.4rem 0.38rem;
    font-size: 0.82rem;
  }

  .subject-caption-page .sc-std-seg__mark {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.74rem;
  }
}

/* ===== રિપોર્ટ શીર્ષક/વર્ણન color field (_ReportTextColorField) ===== */
.digi-color-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.625rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  background: #fff;
}
.digi-color-field__input {
  width: 2.6rem;
  height: 2rem;
  padding: 2px;
  border: 1px solid #adb5bd;
  border-radius: 0.4rem;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.digi-color-field__input:disabled { cursor: not-allowed; opacity: 0.6; }
.digi-color-field__hex {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  min-width: 4.5rem;
}
.digi-color-field__presets {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}
.digi-color-field__swatch {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #adb5bd;
  cursor: pointer;
}
.digi-color-field__swatch:hover:not(:disabled) { transform: scale(1.12); }
.digi-color-field__swatch.is-active { box-shadow: 0 0 0 2px #111; }
.digi-color-field__swatch:disabled { cursor: not-allowed; opacity: 0.5; }

/* PARAKH સાહિત્ય — મુખ્ય હેડિંગ મુજબ grouped grid (PA + School) */
.parakh-sahitya-page .ps-table tbody.ps-group tr.ps-group-row td {
  background: linear-gradient(180deg, #fef8e7 0%, #fbefd0 100%);
  border-top: 2px solid #e8d6a8;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.parakh-sahitya-page .ps-group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}
.parakh-sahitya-page .ps-group-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--digi-accent);
}
.parakh-sahitya-page .ps-group-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b4f12;
  background: #fff;
  border: 1px solid #e8d6a8;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}
.parakh-sahitya-page .ps-group-desc {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: #6c757d;
}
.parakh-sahitya-page .ps-pdf-icon {
  color: #c62828;
  display: inline-flex;
  vertical-align: -2px;
  margin-right: 0.2rem;
}

/* Shared call + WhatsApp action icons next to phone numbers */
.digi-phone-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  vertical-align: middle;
}
.digi-phone-actions__num {
  font-weight: 600;
}
.digi-phone-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  line-height: 1;
  cursor: pointer;
}
.digi-phone-actions__btn:hover,
.digi-phone-actions__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--digi-focus-ring);
}
.digi-phone-actions__btn--call {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
}
.digi-phone-actions__btn--call:hover {
  background: rgba(13, 110, 253, 0.18);
}
.digi-phone-actions__btn--wa {
  color: #128c7e;
  background: rgba(37, 211, 102, 0.14);
}
.digi-phone-actions__btn--wa:hover {
  background: rgba(37, 211, 102, 0.24);
}
.digi-phone-actions__btn svg {
  fill: currentColor;
}

/* ===== ?????????? ???? ???????? — summary cards ===== */
.student-age-classification-page .sac-summary-body {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.student-age-classification-page .sac-kpi {
  border-radius: 14px;
  padding: 0.95rem 1rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  min-height: 5.25rem;
}
.student-age-classification-page .sac-kpi__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.student-age-classification-page .sac-kpi__value {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.2rem;
}
.student-age-classification-page .sac-kpi--total {
  background: linear-gradient(135deg, #7a1f2b 0%, #4c0f18 100%);
}
.student-age-classification-page .sac-kpi--boy {
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}
.student-age-classification-page .sac-kpi--girl {
  background: linear-gradient(135deg, #db2777 0%, #9d174d 100%);
}
.student-age-classification-page .sac-kpi--unk {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%);
}
.student-age-classification-page .sac-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.student-age-classification-page .sac-panel__head {
  padding: 0.7rem 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: #7a1f2b;
  background: linear-gradient(90deg, rgba(122, 31, 43, 0.08), rgba(122, 31, 43, 0.02));
  border-bottom: 1px solid rgba(122, 31, 43, 0.12);
}
.student-age-classification-page .sac-panel__body {
  padding: 0.85rem 1rem 1rem;
}
.student-age-classification-page .sac-year-card {
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 100%);
  padding: 0.75rem 0.8rem 0.85rem;
  height: 100%;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.student-age-classification-page .sac-year-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}
.student-age-classification-page .sac-year-card__age {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}
.student-age-classification-page .sac-year-card__age span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 0.15rem;
}
.student-age-classification-page .sac-year-card__stats {
  display: grid;
  gap: 0.28rem;
}
.student-age-classification-page .sac-year-card__stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}
.student-age-classification-page .sac-year-card__k {
  color: #64748b;
  font-weight: 600;
}
.student-age-classification-page .sac-year-card__stats strong {
  font-weight: 800;
  color: #0f172a;
}
.student-age-classification-page .sac-year-card__tot {
  padding-top: 0.25rem;
  margin-top: 0.15rem;
  border-top: 1px dashed rgba(37, 99, 235, 0.25);
}
.student-age-classification-page .sac-year-card__tot strong {
  color: #7a1f2b;
}
.student-age-classification-page .sac-year-card--unk {
  border-color: rgba(100, 116, 139, 0.25);
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%);
}
.student-age-classification-page .sac-year-card--unk .sac-year-card__age {
  color: #334155;
}
.student-age-classification-page .sac-mini-table {
  border-collapse: separate;
  border-spacing: 0;
}
.student-age-classification-page .sac-mini-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  font-size: 0.78rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.student-age-classification-page .sac-mini-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.86rem;
  vertical-align: middle;
}
.student-age-classification-page .sac-mini-table tbody tr:last-child td {
  border-bottom: 0;
}
