.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}

.bg-academic-texture {
  background-color: #f8f9fa;
  background-image: radial-gradient(#003049 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.03;
}

/* DS rule: gradients are disabled across the app */
.bg-gradient-to-r,
.bg-gradient-to-l,
.bg-gradient-to-t,
.bg-gradient-to-b,
.bg-gradient-to-tr,
.bg-gradient-to-tl,
.bg-gradient-to-br,
.bg-gradient-to-bl {
  background-image: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

.ds-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  background: #f8f9fa;
}

.ds-admin-sidebar {
  background: #f3f4f5;
  padding: 1.75rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.ds-admin-main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ds-admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(28px);
  padding: 0.95rem 2rem;
}

.ds-sidebar-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.85rem;
  padding: 0.68rem 0.78rem;
  color: #42474d;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ds-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #001a2b;
}

.ds-sidebar-link-active {
  background: #ffffff;
  color: #b7004d;
  box-shadow: 0 24px 48px -34px rgba(0, 48, 73, 0.18);
}

@media (max-width: 1024px) {
  .ds-admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .ds-admin-sidebar {
    display: none;
  }

  .ds-admin-header {
    padding-inline: 1.25rem;
  }
}

.ds-page {
  display: grid;
  gap: 2rem;
}

.ds-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.ds-subtitle {
  color: #42474d;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.ds-zone {
  background: #f3f4f5;
  border-radius: 1.25rem;
  padding: 0.75rem;
}

.ds-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 32px 64px -32px rgba(0, 48, 73, 0.06);
}

.ds-card-tight {
  padding: 1.1rem 1.25rem;
}

.ds-actionbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.ds-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ds-kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (min-width: 768px) {
  .ds-kpi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ds-kpi-value {
  color: #003049;
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ds-kpi-value-compact {
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
}

.ds-card-kpi-compact {
  padding: 0.78rem 1rem;
}

.ds-table-shell {
  background: #f3f4f5;
  border-radius: 1.25rem;
  padding: 0.75rem;
}

.ds-table-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 32px 64px -32px rgba(0, 48, 73, 0.06);
}

.ds-table-head {
  background: #003049;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.ds-table-body > tr + tr {
  border-top: 1px solid rgba(194, 199, 205, 0.15);
}

.ds-table-row:hover {
  background: rgba(243, 244, 245, 0.55);
}

.ds-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #42474d;
  font-size: 0.88rem;
}

.ds-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ds-pill-positive {
  background: #ecfdf3;
  color: #0f7a43;
}

.ds-pill-muted {
  background: #edeeef;
  color: #42474d;
}

.ds-pill-warn {
  background: #fff6e5;
  color: #8c5a00;
}

.ds-input {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(194, 199, 205, 0.55);
  color: #191c1d;
  padding: 0.62rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-input:focus {
  outline: none;
  border-color: rgba(183, 0, 77, 0.38);
  box-shadow: 0 0 0 3px rgba(183, 0, 77, 0.16);
}

.ds-input-compact {
  min-height: 2.25rem;
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.84rem;
}

.ds-select {
  width: 100%;
  border-radius: 0.75rem;
  border: 0;
  background: #f3f4f5;
  color: #001a2b;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.pagy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pagy a,
.pagy span {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.pagy a {
  background: #edeeef;
  color: #42474d;
}

.pagy a:hover {
  background: #e1e3e4;
}

.pagy a[aria-current="page"],
.pagy .current {
  background: #003049;
  color: #ffffff;
}

.pagy a[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
