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: normal;
  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%);
}

/* રજા અરજી — 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;
}

/* 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;
}

.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 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;
}

/* ===== સેનેટરી નેપકીન રજીસ્ટર (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 {
  overflow: visible;
  position: relative;
}

.parent-meeting-register-page .staff-doc-section-card,
.student-photo-list-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 {
  overflow: visible;
}

.parent-meeting-register-page .staff-doc-section-card .card-body,
.student-photo-list-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 {
  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 {
  background: linear-gradient(90deg, #f5d547 0%, #f0c929 55%, #e8bc18 100%);
  color: #1a1a1a !important;
}

.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 {
  color: var(--digi-accent) !important;
}

.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 {
  min-height: 2.625rem;
}

.parent-meeting-register-page .digi-check-dd,
.student-photo-list-page .digi-check-dd {
  position: relative;
  width: 100%;
}

.parent-meeting-register-page .digi-check-dd__btn,
.student-photo-list-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 {
  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 {
  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 {
  display: flex;
  flex-direction: column;
}

.parent-meeting-register-page .digi-check-dd__list,
.student-photo-list-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 {
  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 {
  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%);
}

/* ===== Spardha Master Entry ===== */
.spardha-master-page .school-user-page-title {
  color: var(--digi-accent);
}

.spardha-master-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 {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.spardha-master-page .spardha-std-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.spardha-master-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 {
  border-color: rgba(138, 21, 48, 0.35);
  background: #fff8fa;
}

.spardha-master-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);
}

.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;
}

/* ===== ટ્રાન્સપોર્ટેશન — વાહન / ડ્રાઇવર એન્ટ્રી (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;
}

/* ===== વિદ્યાર્થી ટ્રાન્સપોર્ટ એન્ટ્રી ===== */
.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-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-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;
}

/* ===== પ્રાર્થના માસ્ટર વિગત ===== */
.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__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;
}

.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 .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 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.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);
}

/* 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%);
}

/* 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;
}

.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;
}

.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);
}

/* 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%);
}

/* ===== બાહ્ય પરીક્ષા (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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-chitrakam-exam-page #chitrakamSummaryCard {
  overflow: hidden;
}

.cet-summary-report,
.nmms-summary-report,
.gyan-sadhana-summary-report,
.jawahar-navodaya-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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
.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,
  .chitrakam-summary-print-body .chitrakam-summary-report__table thead th {
    background: #e3f2fd !important;
  }
}

.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,
.staff-entry-page #gridTable tbody td.staff-sticky-actions {
  position: sticky;
  right: 0;
  z-index: 5;
  background: inherit;
  box-shadow: -10px 0 16px rgba(35, 10, 16, 0.06);
  border-left: 1px solid rgba(90, 11, 27, 0.10);
}
.staff-entry-page #gridTable thead th.staff-sticky-actions {
  z-index: 7;
  background: linear-gradient(135deg, #9a1a32 0%, #7a1029 48%, #5a0b1b 100%);
}

.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);
}

/* 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;
}

.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 {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.35rem;
  padding: 0;
  cursor: pointer;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: auto;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .grv-filter-btn svg {
  display: block;
  width: 11px;
  height: 11px;
  pointer-events: none;
}

.digi-school-tabulator-grid .tabulator .tabulator-header .grv-filter-btn:hover {
  background: rgba(255, 255, 255, 0.38);
}

.digi-school-tabulator-grid .tabulator .tabulator-header .grv-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%;
}

body {
  margin-bottom: 60px;
}

.auth-page {
  margin-bottom: 0;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  background: #f6f6f7;
}

.app-drawer {
  width: 260px;
  background: linear-gradient(180deg, #8a1530 0%, #5a0b1b 100%);
  color: #fff;
  padding: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  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: green = OK, red = expired / licence required */
.sub-ton-ok {
  color: #9ef5c3 !important;
}

.sub-ton-bad {
  color: #ffb3be !important;
}

.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%;
}

.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;
}

.app-topbar {
  height: 58px;
  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);
}

.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;
}

.user-icon {
  font-size: 16px;
  line-height: 1;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.app-content {
  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);
}

.school-user-toolbar .form-control,
.school-user-toolbar .form-select {
  border-radius: 10px;
  border-color: rgba(122, 41, 41, 0.2);
}

.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;
}

.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;
}

.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-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);
}

/* 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;
  }

  /* લાંબી 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;
  }
}

@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);
}

.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: 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;
}

/* 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;
}

.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 Application print preview (StudentLeavingApplication/LcApplicationPrint) ===== */
@media screen {
  .lc-app-print-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    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;
  }
}

.lc-app-print-toolbar {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid #c5c5c5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.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);
}

.lc-page-setup-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.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;
  overflow: auto;
  padding: 1.25rem 1rem 2rem;
  -webkit-overflow-scrolling: touch;
}

.lc-app-print-zoom-shell {
  max-width: 100%;
  margin: 0 auto;
  transition: height 0.15s ease-out;
}

/* 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%);
}

.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;
}

@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);
}

.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;
  }

  .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;
  }

  .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-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 {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.92);
}

.school-dashboard-page .dash-chart-card {
  border-radius: 14px;
  overflow: hidden;
}

/* --- ડેશબોર્ડ section heading strips (દરેક કાર્ડ અલગ રંગ) --- */
:is(.school-dashboard-page, .birthday-card-page) .staff-doc-section-card {
  border-radius: 14px;
  overflow: hidden;
}

:is(.school-dashboard-page, .birthday-card-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;
}

.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 .dash-stdhaj-label {
  text-align: start;
  font-weight: 600;
  color: #134e4a;
  white-space: nowrap;
}

.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-doc-section-card__head--dash-birthday {
  background: linear-gradient(125deg, #9d174d 0%, #db2777 50%, #f9a8d4 100%);
}

:is(.school-dashboard-page, .birthday-card-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-doc-section-card__head--dash-birthday .btn-light:disabled {
  opacity: 0.55;
}

:is(.school-dashboard-page, .birthday-card-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;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-card .card-body {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(219, 39, 119, 0.12);
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-count {
  background: rgba(255, 255, 255, 0.92);
  color: #9d174d;
  font-weight: 700;
}

:is(.school-dashboard-page, .birthday-card-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);
}

.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) .dash-birthday-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

:is(.school-dashboard-page, .birthday-card-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);
}

:is(.school-dashboard-page, .birthday-card-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;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-photo-placeholder {
  color: #db2777;
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-name {
  font-size: 1rem;
  font-weight: 800;
  color: #831843;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-kind {
  font-weight: 700;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-kind--student {
  background: #dcfce7;
  color: #166534;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-kind--staff {
  background: #dbeafe;
  color: #1d4ed8;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-meta {
  display: grid;
  gap: 0.2rem;
}

:is(.school-dashboard-page, .birthday-card-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) .dash-birthday-meta-row dt {
  margin: 0;
  font-weight: 700;
  color: #9d174d;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-meta-row dd {
  margin: 0;
  color: #334155;
}

:is(.school-dashboard-page, .birthday-card-page) .dash-birthday-actions {
  min-width: 10.5rem;
}

@media (max-width: 767.98px) {
  :is(.school-dashboard-page, .birthday-card-page) .dash-birthday-item {
    grid-template-columns: auto 1fr;
  }

  :is(.school-dashboard-page, .birthday-card-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-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 — ટેક્સ્ટ નીચેની edge લાઇન પર */
.bday-card-field--baseline {
  transform: translateY(-100%);
}

.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: translateY(-100%);
  }
}

/* --- દાખલ સારાંશ કાર્ડ --- */
.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-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-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;
  padding: 0.35rem 0.25rem 0.5rem !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;
}

.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-top: 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: 1px 1px;
  line-height: 1.1;
  -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;
}

.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: 2.4em;
  overflow: hidden;
}

.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-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-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;
}

/* FLN / વા.ગ.લે. બ્લોક-અનબ્લોક — sticky header ગ્રિડ */
.fln-block-page .fln-block-grid-card-body,
.vagale-block-page .fln-block-grid-card-body {
  overflow: visible;
}

.fln-block-page .fln-block-grid-scroll,
.vagale-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 {
  top: 0;
  z-index: 10;
  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);
}

.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;
  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-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 {
  left: 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(40vh, 220px);
  overflow-y: auto;
  columns: 2;
  column-gap: 1.25rem;
}

@media (min-width: 992px) {
  .sahitya-summary-page .sv-summary-sahitya-chk-list {
    columns: 3;
  }
}

.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;
}

/* વિતરણ રજીસ્ટર — ફોર્મ + પ્રિન્ટ */
.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 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  border: 0;
  margin-bottom: 1.4rem;
}

.student-scholarship-page .sch-tab,
.student-list-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) {
  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 {
  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 {
  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 {
  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 {
  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 {
  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;
}

/* 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;
}

/* ===== 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--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);
}

/* ===== શિષ્યવૃત્તિ સારાંશ (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%);
}

.udise-plus-summary-page .sch-kpi--mbu-ok {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.udise-plus-summary-page .sch-kpi--mbu-pending {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

.udise-plus-summary-page .sch-kpi--mbu-other {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.udise-plus-summary-page .sch-kpi--apaar-status {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.udise-plus-summary-page .sch-kpi--apaar-status-pending {
  background: linear-gradient(135deg, #db2777 0%, #9d174d 100%);
}

.udise-plus-summary-page .sch-kpi--clickable {
  cursor: pointer;
}

.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;
}

/* 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;
  }
}

/* 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 — 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 {
  font-family: "Roboto", "Noto Sans Gujarati", "Segoe UI", Arial, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.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 {
  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);
}

.stu-icard__header {
  position: relative;
  height: 22mm;
}

.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__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__photo {
  border-color: #8a1530;
  box-shadow: 0 0 0 .6mm #fff, 0 0 0 1.4mm #8a1530;
}
.stu-icard--maroon-classic .stu-icard__name { color: #8a1530; }
.stu-icard--maroon-classic .stu-icard__rule { background: #8a1530; }
.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: 2.5mm;
  right: 2mm;
  left: 2mm;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5mm;
  z-index: 2;
}

.stu-icard__logo,
.stu-icard__logo-fallback {
  width: 7mm;
  height: 7mm;
  object-fit: contain;
  flex: 0 0 auto;
}

.stu-icard__school-text {
  text-align: right;
  color: #fff;
  min-width: 0;
}

.stu-icard__school-name {
  font-size: 2.6mm;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.stu-icard__school-tag {
  font-size: 1.8mm;
  line-height: 1.15;
  opacity: .92;
  margin-top: .4mm;
}

.stu-icard__photo-wrap {
  position: absolute;
  top: 14mm;
  left: 3mm;
  z-index: 3;
}

.stu-icard__photo {
  width: 16mm;
  height: 16mm;
  border-radius: 50%;
  object-fit: cover;
  border: 1.2mm solid #f97316;
  box-shadow: 0 0 0 .6mm #fff, 0 0 0 1.4mm #f97316;
  background: #f3f4f6;
  display: block;
}

.stu-icard__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.stu-icard__photo--empty svg {
  width: 8mm;
  height: 8mm;
}

.stu-icard__body {
  position: absolute;
  top: 24mm;
  left: 3mm;
  right: 3mm;
  bottom: 4mm;
  display: flex;
  flex-direction: column;
}

.stu-icard__name {
  font-size: 3.4mm;
  font-weight: 900;
  color: #f97316;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-top: 4mm;
  word-break: break-word;
}

.stu-icard__role {
  font-size: 2.2mm;
  font-weight: 700;
  color: #374151;
  letter-spacing: .08em;
  margin-top: .8mm;
}

.stu-icard__std {
  font-size: 2mm;
  color: #6b7280;
  margin-top: .5mm;
}

.stu-icard__rule {
  height: .35mm;
  background: #f97316;
  margin: 1.2mm 0 1.4mm;
  width: 100%;
}

.stu-icard__fields {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.stu-icard__field {
  display: flex;
  align-items: baseline;
  gap: 1mm;
  font-size: 2mm;
  line-height: 1.35;
  margin-bottom: .6mm;
}

.stu-icard__field dt {
  margin: 0;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

.stu-icard__field dt::after {
  content: " :";
}

.stu-icard__field dd {
  margin: 0;
  color: #4b5563;
  min-width: 0;
  word-break: break-word;
}

.stu-icard__field--email dd {
  font-size: 1.75mm;
}

.stu-icard__barcode {
  display: block;
  width: 34mm;
  height: 7mm;
  object-fit: contain;
  margin: .8mm auto 0;
}

.stu-icard__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2mm;
  display: flex;
}

.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;
  }
}

