.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9fb;
}

.welcome-overlay[hidden] {
  display: none;
}

.welcome-overlay__title[data-i18n] {
  visibility: hidden;
}

.welcome-overlay.is-i18n-applied .welcome-overlay__title[data-i18n] {
  visibility: visible;
}

html.is-welcome-boot .welcome-overlay {
  display: flex !important;
}


html.is-welcome-boot .welcome-overlay__title[data-i18n] {
  visibility: hidden;
}

html.is-welcome-boot .welcome-overlay.is-i18n-applied .welcome-overlay__title[data-i18n] {
  visibility: visible;
}

.welcome-overlay__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #306177;
  text-align: center;
}

.dashboard-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: clip;
  background: #f9f9fb;
}

.dashboard-main {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.stat-card,
.panel-card {
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 174, 242, 0.05);
}

.stat-card {
  display: flex;
  min-height: 106px;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.stat-card__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.stat-card__icon svg,
.stat-card__icon img {
  width: 28px;
  height: 28px;
}

.stat-card__icon svg {
  fill: currentColor;
}

.stat-card__icon--primary img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(18%) saturate(800%) hue-rotate(166deg) brightness(92%) contrast(92%);
}

.stat-card__icon--blue img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(1689%) hue-rotate(166deg) brightness(95%) contrast(101%);
}

.stat-card__icon--primary {
  background: rgba(173, 222, 247, 0.3);
  color: #33647a;
}

.stat-card__icon--blue {
  background: rgba(43, 185, 253, 0.2);
  color: #00658f;
}

.stat-card__icon--purple {
  background: rgba(208, 212, 255, 0.3);
  color: #4455ba;
}

.stat-card p {
  margin: 0;
  color: #41484c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 20px;
}

.stat-card strong {
  display: block;
  margin-top: 2px;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 32px;
}

.stat-card:nth-child(1) strong {
  color: #33647a;
}

.stat-card:nth-child(2) strong {
  color: #00658f;
}

.stat-card:nth-child(3) strong {
  color: #4455ba;
}

.alert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.alert-card {
  display: flex;
  width: 100%;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.alert-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(25, 28, 29, 0.08);
}

.alert-card:focus-visible {
  outline: 2px solid #00658f;
  outline-offset: 2px;
}

.alert-card--danger {
  border: 1px solid rgba(186, 26, 26, 0.1);
  background: rgba(255, 218, 214, 0.3);
  color: #ba1a1a;
}

.alert-card--info {
  border: 1px solid rgba(51, 100, 122, 0.1);
  background: rgba(173, 222, 247, 0.2);
  color: #33647a;
}

.alert-card__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: currentColor;
  color: #ffffff;
  font-weight: 700;
}

.alert-card__icon svg,
.alert-card__icon img {
  width: 20px;
  height: 20px;
}

.alert-card__icon svg {
  fill: currentColor;
}

.alert-card__icon img {
  display: block;
  filter: brightness(0) invert(1);
}

.alert-card__text {
  flex: 1;
  color: #41484c;
}

.alert-card strong {
  display: block;
  color: currentColor;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.alert-card small {
  display: block;
  color: #41484c;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.alert-card b {
  font-size: 28px;
  font-weight: 400;
}

.home-modal[hidden] {
  display: none !important;
}

.home-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.home-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 28, 29, 0.45);
}

.home-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(25, 28, 29, 0.18);
}

.home-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}

.home-modal__header h2 {
  margin: 0;
  color: #191c1d;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.home-modal__close {
  border: 0;
  background: transparent;
  color: #71787d;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.home-modal__body {
  display: flex;
  overflow: auto;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 24px;
}

.home-modal__panel--timeline {
  width: min(520px, 100%);
}

.home-modal__body--timeline {
  flex: 1;
  min-height: 0;
  max-height: min(70vh, 560px);
  padding: 8px 24px 24px;
}

.home-modal__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 8px 8px 8px;
}

.home-modal__timeline::before {
  position: absolute;
  top: 20px;
  bottom: 12px;
  left: 23px;
  width: 2px;
  background: rgba(192, 199, 204, 0.35);
  content: "";
}

.home-modal__timeline .timeline-item {
  margin: 0;
}

.home-modal-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  background: #f9f9fb;
}

.home-modal-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-modal-item__head strong {
  color: #191c1d;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.home-modal-item__badge {
  flex-shrink: 0;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 16px;
  padding: 4px 10px;
  text-transform: uppercase;
}

.home-modal-item__badge--danger {
  background: rgba(255, 218, 214, 0.8);
  color: #ba1a1a;
}

.home-modal-item__badge--info {
  background: rgba(173, 222, 247, 0.5);
  color: #33647a;
}

.home-modal-item p {
  margin: 0;
  color: #41484c;
  font-size: 13px;
  line-height: 18px;
}

.home-modal-item small {
  color: #71787d;
  font-size: 12px;
  line-height: 16px;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 24px;
}

.panel-card {
  overflow: hidden;
}

.panel-card__header {
  display: flex;
  height: 69px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #c0c7cc;
  background: #f3f3f5;
}

.panel-card__header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #191c1d;
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.panel-card__header a,
.panel-card__header button {
  border: 0;
  background: transparent;
  color: #00658f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 20px;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.class-grid__empty,
.timeline__empty,
.home-modal__empty {
  margin: 0;
  padding: 24px;
  color: #41484c;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.class-card {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c0c7cc;
  border-radius: 12px;
  background: #ffffff;
}

.class-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.class-card h3 {
  margin: 0;
  color: #191c1d;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 20px;
}

.class-card span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(43, 185, 253, 0.2);
  color: #00658f;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}

.class-card p {
  margin: 0;
  color: #41484c;
  font-size: 14px;
  line-height: 20px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.timeline::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 39px;
  width: 2px;
  background: rgba(192, 199, 204, 0.3);
  content: "";
}

.timeline-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.timeline-item > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9999px;
}

.timeline-item--blue > span {
  background: #2bb9fd;
}

.timeline-item--teal > span {
  background: #addef7;
}

.timeline-item--purple > span {
  background: #d0d4ff;
}

.timeline-item--gray > span {
  background: #e2e2e4;
}

.timeline-item h3 {
  margin: 0;
  color: #191c1d;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.timeline-item p {
  margin: 0;
  color: #41484c;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

@media (max-width: 1100px) {
  .dashboard-main {
    padding: 24px 20px;
  }

  .stats-grid,
  .alert-grid,
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .class-grid {
    grid-template-columns: 1fr;
  }
}
