*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

body {
  color: #1e3440;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

h1, h2, h3, p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  margin-bottom: 0.15rem;
  color: #12bfc2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.container {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, 1700px);
}

.section {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.section-heading {
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-heading h2 {
  margin: 0;
  color: #006c8d;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  text-transform: uppercase;
}
.section-heading::after {
  content: "";
  display: block;
  width: 13rem;
  max-width: 45vw;
  height: 2px;
  margin: 0.8rem auto 0.2rem;
  background: #08799c;
}
.section-heading span {
  color: #08799c;
}
.section-heading--left {
  margin-left: 0;
  text-align: left;
}
.section-heading--left::after {
  margin-left: 0;
}
.section-heading--left h2 {
  text-transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: 0.65rem 1rem;
  background: #fff;
  color: #08799c;
  border-radius: 0.35rem;
}
.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 5rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(10px);
  transition: height 0.2s ease;
}
.site-header.is-compact {
  height: 4.4rem;
}
.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(7rem, 9vw, 8.5rem);
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  padding: 0.25rem 0.1rem;
  color: #2e3439;
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: #08799c;
  transition: transform 0.2s ease;
}
.primary-nav a:hover, .primary-nav a.is-active {
  color: #08799c;
}
.primary-nav a:hover::after, .primary-nav a.is-active::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
}
.header-tools .user-icon {
  margin-right: 0.35rem;
  font-size: 1.7rem;
}

.language {
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
}
.language.is-active {
  color: #08799c;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem;
  border: 0;
  background: transparent;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.6rem;
  height: 2px;
  margin: 0.3rem;
  background: #08799c;
}

@media (max-width: 900px) {
  .site-header {
    height: 4.25rem;
  }
  .menu-toggle {
    display: block;
  }
  .header-tools {
    display: none;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .primary-nav a {
    padding: 0.75rem 1rem;
  }
  .primary-nav.is-open {
    max-height: 28rem;
    padding-block: 0.75rem;
  }
}
.button {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
}
.button--primary {
  color: #fff;
  background: #08799c;
}
.button--primary:hover {
  background: rgb(2.5518890483%, 38.5973218556%, 49.7618364419%);
}

.text-link {
  color: #08799c;
  font-weight: 700;
}
.text-link span {
  transition: margin 0.2s ease;
}
.text-link:hover span {
  margin-left: 0.35rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #08799c;
  cursor: pointer;
  text-decoration: underline;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(18, 191, 194, 0.35);
  outline-offset: 3px;
}

.date-card {
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 10px 25px rgba(18, 60, 85, 0.12);
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.date-card h3 {
  margin: 0.6rem 0 0.25rem;
  color: #006c8d;
  font-size: 1rem;
}
.date-card strong, .date-card time {
  font-size: 0.8rem;
}
.date-card a {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: #08799c;
  font-size: 0.78rem;
  font-weight: 700;
}
.date-card--featured {
  color: #fff;
  background: #08799c;
}
.date-card--featured h3 {
  color: #fff;
}
.date-card--featured a {
  color: #08799c;
  background: #fff;
}
.date-card__icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 1.8rem;
}
.date-card__icon--violet {
  color: #7b77f7;
  background: #eeedff;
}
.date-card__icon--orange {
  color: #ff9a44;
  background: #fff0e2;
}
.date-card__icon--rose {
  color: #ef7485;
  background: #ffedf0;
}

.programme-card {
  --theme: #7b4be7;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 10px 25px rgba(18, 60, 85, 0.12);
  padding: 1.2rem;
  border-bottom: 5px solid var(--theme);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.programme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(18, 60, 85, 0.17);
}
.programme-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.programme-card__top small {
  color: #667782;
}
.programme-card .programme-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.65rem;
  color: #fff;
  background: var(--theme);
  font-size: 1.35rem;
}
.programme-card h3 {
  min-height: 3.2rem;
  margin: 0.8rem 0;
  color: var(--theme);
  font-size: 1.15rem;
  line-height: 1.2;
}
.programme-card > p {
  min-height: 6.5rem;
  color: #667782;
  font-size: 0.78rem;
}
.programme-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 1rem -0.35rem;
  padding: 0.8rem 0.35rem;
  border-block: 1px solid #e8edf0;
  text-align: center;
}
.programme-card dl dt {
  color: #667782;
  font-size: 0.67rem;
}
.programme-card dl dd {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
}

.theme-teal {
  --theme: #087e9e;
}

.theme-orange {
  --theme: #f07314;
}

.theme-blue {
  --theme: #287de0;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.card-actions button {
  padding: 0.4rem 0.35rem;
  border: 1px solid var(--theme);
  border-radius: 999px;
  color: var(--theme);
  background: #fff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}
.card-actions button.filled {
  color: #fff;
  background: var(--theme);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 0.76rem;
}
.data-table th, .data-table td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid #e8edf0;
  text-align: center;
}
.data-table th {
  color: #37434a;
  background: #f0f2f3;
  font-weight: 700;
}
.data-table th:first-child, .data-table td:first-child {
  text-align: left;
}
.data-table tbody tr:nth-child(even) {
  background: #eef5ff;
}
.data-table tbody tr:hover {
  background: #e5f3fa;
}

.status {
  display: inline-flex;
  min-width: 4rem;
  justify-content: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
}
.status-good {
  color: #278858;
  background: #dff5e8;
}
.status-warn {
  color: #a66c00;
  background: #fff0bf;
}
.status-danger {
  color: #e54250;
  background: #ffebed;
}
.status-info {
  color: #4b8ee8;
  background: #e7f0ff;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: #667782;
  font-size: 0.75rem;
}
.table-footer div {
  display: flex;
  gap: 0.25rem;
}
.table-footer button {
  min-width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  cursor: pointer;
}
.table-footer button.is-active {
  color: #08799c;
  background: #e1f4fb;
}

.table-search input {
  width: 10rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #d9e4e9;
  border-radius: 0.4rem;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .table-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
.hero {
  position: relative;
  overflow: hidden;
  background: #006c8d;
}
.hero__image {
  height: 360px;
  min-height: 0;
  background: url("../images/reference-home.png") center clamp(-286px, calc(179px - 24.2vw), -131px)/100% auto no-repeat;
}
.hero__mobile-copy {
  display: none;
}

.benefit-bar {
  color: #006c8d;
  background: #e1f1fb;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}
.benefit-bar__inner {
  display: grid;
  grid-template-columns: 14rem 1fr auto;
  align-items: stretch;
  min-height: 4.1rem;
}
.benefit-bar__inner > strong {
  display: flex;
  align-items: center;
  margin-left: calc((100vw - min(100vw - 2rem, 1320px)) / -2);
  padding-left: max(1rem, (100vw - 1320px) / 2);
  color: #fff;
  background: #006c8d;
}

.ticker {
  overflow: hidden;
}
.ticker__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}
.ticker__track span {
  display: flex;
  min-width: 100%;
  align-items: center;
  padding: 0.5rem 2rem;
  font-size: 0.9rem;
}
.ticker__buttons {
  display: flex;
}
.ticker__buttons button {
  width: 2.7rem;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  color: #08799c;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 1.8rem;
}

.portal-section {
  overflow: hidden;
  padding: 2.5rem 0;
  background: radial-gradient(circle at 10% 25%, rgba(93, 135, 229, 0.17) 0 7px, transparent 8px), radial-gradient(circle at 12% 70%, rgba(93, 135, 229, 0.12) 0 18px, transparent 19px), linear-gradient(135deg, #f8fbff, #edf4ff);
}

.portal-section .section-heading {
  margin-bottom: 1.5rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(31rem, 1.08fr);
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.login-card {
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 10px 25px rgba(18, 60, 85, 0.12);
  overflow: hidden;
}
.login-card h3 {
  margin: 0;
  padding: 1.2rem 1.5rem 0.75rem;
  color: #006c8d;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 1.5rem;
  border-radius: 0.5rem;
  background: #e4f4fc;
}
.auth-tabs button {
  padding: 0.75rem;
  border: 0;
  color: #08799c;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.auth-tabs button.is-active {
  border-radius: 0.5rem;
  color: #fff;
  background: #08799c;
}

.auth-form {
  display: none;
  padding: 1.5rem;
}
.auth-form.is-active {
  display: grid;
  gap: 1rem;
}
.auth-form label {
  display: grid;
  gap: 0.35rem;
  color: #667782;
  font-size: 0.78rem;
}
.auth-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #dfe7eb;
  border-radius: 0.4rem;
  color: #1e3440;
}
.auth-form > a {
  color: #08799c;
  font-size: 0.78rem;
}
.auth-form small {
  color: #9aa5ab;
  text-align: center;
}
.auth-form .form-message {
  min-height: 1.2rem;
  margin: 0;
  color: #21845b;
  text-align: center;
  font-size: 0.8rem;
}

.about-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 2px 2px, #e5edf1 1.5px, transparent 1.6px) 0 0/14px 14px, #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1050px;
  margin: auto;
}

.about-copy {
  color: #4c5b64;
  font-size: 0.96rem;
}

.about-visual {
  position: relative;
  height: 27rem;
}
.about-visual__crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 48% 52% 45% 55%;
  background: #f6fbff;
}
.about-visual__crop img {
  position: absolute;
  width: 900px;
  max-width: none;
  top: -940px;
  left: -430px;
}

.programmes-section {
  min-height: 70rem;
  background: linear-gradient(rgba(239, 247, 255, 0.9), rgba(238, 243, 255, 0.9)), url("../images/reference-home.png") center 65%/cover no-repeat;
}

.programme-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.programme-toolbar select {
  min-width: 16rem;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  border: 1px solid #b8cbd6;
  border-radius: 0.35rem;
  background: #fff;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.filter-pills button {
  padding: 0.55rem 1.1rem;
  border: 1px solid #08799c;
  border-radius: 999px;
  color: #08799c;
  background: #fff;
  cursor: pointer;
}
.filter-pills button.is-active {
  color: #fff;
  background: #08799c;
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.empty-state {
  padding: 3rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

@media (max-width: 900px) {
  .portal-section {
    padding: 2rem 0;
  }
  .hero__image {
    height: 360px;
    background-size: auto 980px;
    background-position: 58% -42px;
    filter: brightness(0.72);
  }
  .hero__mobile-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
  }
  .hero__mobile-copy h1 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1;
  }
  .hero__mobile-copy p:last-child {
    max-width: 33rem;
  }
  .benefit-bar__inner {
    grid-template-columns: 10rem 1fr auto;
  }
  .portal-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
  }
  .programme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    order: -1;
    max-width: 600px;
    width: 100%;
    margin: auto;
  }
}
@media (max-width: 640px) {
  .hero__image {
    height: 320px;
    background-size: auto 860px;
    background-position: 58% -18px;
  }
  .benefit-bar__inner {
    width: 100%;
    grid-template-columns: 1fr auto;
  }
  .benefit-bar__inner > strong {
    grid-column: 1/-1;
    margin: 0;
    padding: 0.65rem 1rem;
  }
  .ticker__track span {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  .date-grid {
    grid-template-columns: 1fr;
  }
  .date-card {
    min-height: 13rem;
  }
  .programme-grid {
    grid-template-columns: 1fr;
  }
  .programme-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .programme-toolbar select {
    width: 100%;
  }
  .programme-card > p {
    min-height: auto;
  }
  .about-visual {
    height: 20rem;
  }
  .about-visual__crop img {
    width: 700px;
    top: -730px;
    left: -330px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.admin-page {
  background: #e8f8ff;
}

.admin-page .site-header {
  position: relative;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1920px;
  margin: 0 auto;
  background: #fff;
}

.admin-sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #dbe9ef;
  background: #fff;
}

.admin-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  color: #006c8d;
  background: #a7eff1;
}
.admin-profile .admin-avatar {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #08799c;
  font-size: 0.8rem;
  font-weight: 800;
}
.admin-profile strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
}
.admin-profile small {
  color: #1e3440;
  font-size: 0.65rem;
}
.admin-profile button {
  border: 0;
  color: #08799c;
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
}

.sidebar-label {
  margin: 2rem 1rem 0.65rem;
  color: #97a4aa;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.55rem 2rem;
}
.sidebar-nav a, .sidebar-nav .sidebar-parent {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 0.35rem;
  color: #3f4f57;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
}
.sidebar-nav a b, .sidebar-nav .sidebar-parent b {
  font-size: 1.2rem;
}
.sidebar-nav a:hover, .sidebar-nav a.is-active, .sidebar-nav .sidebar-parent:hover, .sidebar-nav .sidebar-parent.is-active {
  color: #174253;
  background: #dff3fd;
}

.sidebar-submenu {
  display: grid;
  margin: -0.1rem 0 0.45rem 2.25rem;
  overflow: hidden;
}
.sidebar-submenu a {
  position: relative;
  grid-template-columns: 1fr;
  min-height: 1.75rem;
  padding: 0.35rem 0.65rem 0.35rem 1rem;
  font-size: 0.7rem;
}
.sidebar-submenu a::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: currentColor;
}
.sidebar-submenu[hidden] {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.dashboard-main {
  min-width: 0;
  padding: 2rem;
  background: #e8f8ff;
}

.sidebar-toggle {
  display: none;
}

.dashboard-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
  padding: 1.2rem 2rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 5px 14px rgba(12, 90, 120, 0.12);
  background-image: repeating-radial-gradient(ellipse at 78% 0%, transparent 0 8px, rgba(21, 186, 193, 0.1) 9px 10px, transparent 11px 17px);
}
.dashboard-banner .badge {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.25rem;
  color: #08799c;
  background: #e3f5fd;
  font-size: 0.68rem;
}
.dashboard-banner h1 {
  margin: 0;
  color: #006c8d;
  font-size: 1.4rem;
}
.dashboard-banner p {
  margin: 0.1rem 0 0;
  color: #667782;
  font-size: 0.72rem;
}

.dashboard-filters {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.dashboard-filters select {
  width: 18rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #cbdce4;
  border-radius: 0.4rem;
  color: #4c5b64;
  background: #fff;
  font-size: 0.78rem;
}

.refresh-button, .live-button {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  background: #25b9c0;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-surface {
  padding: 1.75rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 5px 14px rgba(12, 90, 120, 0.1);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1.4rem;
}

.metric-card {
  --metric:#7056ff;
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  padding: 1.5rem 1rem;
  border-bottom: 4px solid var(--metric);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(112, 86, 255, 0.08), rgba(112, 86, 255, 0.02));
  box-shadow: 0 7px 16px rgba(24, 62, 82, 0.14);
  text-align: center;
}
.metric-card::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid color-mix(in srgb, var(--metric) 20%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--metric) 5%, transparent), 0 0 0 18px color-mix(in srgb, var(--metric) 4%, transparent);
}
.metric-card .metric-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--metric);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--metric) 40%, transparent);
  font-size: 1.5rem;
}
.metric-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}
.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
}
.metric-card p {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0 0;
  color: #667782;
  font-size: 0.68rem;
}

.metric-purple {
  --metric:#7056ff;
}

.metric-yellow {
  --metric:#f2bd00;
}

.metric-teal {
  --metric:#08c2c0;
}

.metric-pink {
  --metric:#fa5d91;
}

.metric-green {
  --metric:#2fbf69;
}

.metric-cyan {
  --metric:#21b9c2;
}

.metric-orange {
  --metric:#e87827;
}

.dashboard-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.dashboard-grid--analytics, .dashboard-grid--records {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
}

.dashboard-panel {
  overflow: hidden;
  border: 1px solid #dbe2e6;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(25, 70, 90, 0.05);
}
.dashboard-panel > header {
  display: flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e0e5e8;
}
.dashboard-panel > header h2 {
  margin: 0;
  color: #006c8d;
  font-size: 1.15rem;
}
.dashboard-panel .panel-body {
  padding: 1.4rem;
}

.state-performance {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.2fr);
  gap: 2rem;
}

.bar-chart {
  display: flex;
  height: 16rem;
  align-items: end;
  justify-content: space-around;
  gap: 1rem;
  padding: 1rem 0 0;
}
.bar-chart .bar-item {
  display: grid;
  width: 3.2rem;
  height: 100%;
  grid-template-rows: 1fr auto;
  gap: 0.55rem;
  align-items: end;
  text-align: center;
}
.bar-chart .bar-item > span {
  display: block;
  width: 2.5rem;
  height: var(--value);
  max-height: 12rem;
  margin: auto;
  border-radius: 0.4rem 0.4rem 0 0;
  background: var(--bar);
}
.bar-chart .bar-item strong {
  font-size: 0.62rem;
  line-height: 1.2;
}
.bar-chart .bar-item strong b {
  display: block;
  font-size: 0.85rem;
}

.state-summaries {
  display: grid;
  gap: 1rem;
}
.state-summaries article {
  padding: 0.85rem;
  border: 1px solid #c8e3ef;
  border-radius: 0.6rem;
  background: #eef8fd;
}
.state-summaries article > header {
  display: flex;
  justify-content: space-between;
  color: #08799c;
  font-size: 0.75rem;
}
.state-summaries article dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0.75rem 0 0;
}
.state-summaries article dl div {
  padding: 0.6rem;
  border-radius: 0.35rem;
  background: #fff;
}
.state-summaries article dl dt {
  color: #667782;
  font-size: 0.58rem;
}
.state-summaries article dl dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
}

.progress-list {
  display: grid;
  gap: 1.2rem;
}
.progress-list > div {
  --progress:#2196f3;
}
.progress-list > div:nth-child(2) {
  --progress:#168c79;
}
.progress-list > div:nth-child(3) {
  --progress:#f2b500;
}
.progress-list > div:nth-child(4) {
  --progress:#1f2933;
}
.progress-list > div:nth-child(5) {
  --progress:#e9003d;
}
.progress-list > div:nth-child(6) {
  --progress:#22b6bc;
}
.progress-list p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
}
.progress-list progress {
  width: 100%;
  height: 0.5rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
}
.progress-list progress::-webkit-progress-bar {
  border-radius: 999px;
  background: color-mix(in srgb, var(--progress) 15%, white);
}
.progress-list progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--progress);
}
.progress-list progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--progress);
}

.open-badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: #d9003f;
  font-size: 0.72rem;
  font-weight: 800;
}

.alerts-panel {
  min-height: 31rem;
  background: repeating-radial-gradient(ellipse at 100% 100%, transparent 0 12px, rgba(16, 188, 194, 0.1) 13px 14px, transparent 15px 22px), #fff;
}

.alert-list {
  display: grid;
  gap: 1rem;
}

.alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem;
  border-bottom: 3px solid;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 3px 11px rgba(25, 70, 90, 0.14);
}
.alert > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
}
.alert strong {
  font-size: 0.78rem;
}
.alert p {
  margin: 0;
  color: #667782;
  font-size: 0.62rem;
}
.alert.warning {
  border-color: #ef8500;
}
.alert.warning > span {
  background: #ef8500;
}
.alert.success {
  border-color: #04a538;
}
.alert.success > span {
  background: #04a538;
}
.alert.danger {
  border-color: #ea003e;
}
.alert.danger > span {
  background: #ea003e;
}

.coverage-panel {
  background: linear-gradient(135deg, #fff, #f5f9ff);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.coverage-grid article {
  --metric:#7056ff;
  min-height: 13rem;
  padding: 1.6rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--metric) 10%, white), #fff);
  box-shadow: 0 6px 15px rgba(25, 70, 90, 0.09);
}
.coverage-grid article h3 {
  font-size: 1rem;
}
.coverage-grid article strong {
  display: block;
  margin: 1rem 0;
  font-size: 2rem;
}
.coverage-grid article p {
  color: #667782;
  font-size: 0.76rem;
}

.dashboard-footer {
  margin-left: 0;
}

.refresh-button.is-loading span {
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

.refresh-toast {
  position: fixed;
  z-index: 80;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  background: #006c8d;
  box-shadow: 0 10px 25px rgba(18, 60, 85, 0.12);
  font-size: 0.8rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1500px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 300px);
    height: 100vh;
    transform: translateX(-105%);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease;
  }
  .admin-sidebar.is-open {
    transform: none;
  }
  .sidebar-backdrop {
    position: fixed;
    z-index: 29;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(19, 40, 50, 0.45);
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .sidebar-backdrop.is-open {
    visibility: visible;
    opacity: 1;
  }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 0.4rem;
    color: #fff;
    background: #08799c;
    cursor: pointer;
  }
  .dashboard-grid--analytics, .dashboard-grid--records {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .dashboard-main {
    padding: 1rem;
  }
  .dashboard-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-filters {
    flex-wrap: wrap;
  }
  .dashboard-filters select {
    width: 100%;
  }
  .dashboard-filters label {
    flex: 1 1 13rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .metric-card {
    min-height: 11.5rem;
  }
  .state-performance {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .dashboard-main {
    padding: 0.65rem;
  }
  .dashboard-surface {
    padding: 0.75rem;
  }
  .dashboard-banner {
    padding: 1rem;
  }
  .dashboard-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .refresh-button {
    width: 100%;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .metric-card {
    min-height: 10.5rem;
    padding: 1rem 0.6rem;
  }
  .metric-card .metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.65rem;
  }
  .metric-card h3 {
    font-size: 0.72rem;
  }
  .metric-card strong {
    font-size: 1.5rem;
  }
  .dashboard-grid {
    margin-top: 1rem;
    gap: 1rem;
  }
  .dashboard-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-panel > header h2 {
    font-size: 1rem;
  }
  .table-search, .table-search input {
    width: 100%;
  }
  .bar-chart {
    gap: 0.25rem;
  }
  .bar-chart .bar-item {
    width: 2.5rem;
  }
  .bar-chart .bar-item > span {
    width: 1.7rem;
  }
  .state-summaries article dl {
    grid-template-columns: 1fr 1fr;
  }
  .coverage-grid {
    grid-template-columns: 1fr;
  }
  .coverage-grid article {
    min-height: 10rem;
  }
}
.batch-main {
  display: grid;
  gap: 1.25rem;
}
.batch-main .dashboard-banner {
  margin-bottom: 0;
}

.batch-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 5px 14px rgba(12, 90, 120, 0.1);
}

.batch-stat {
  --metric:#7056ff;
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  padding: 1.6rem;
  border-bottom: 4px solid var(--metric);
  border-radius: 0.45rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--metric) 9%, white), #fff);
  box-shadow: 0 6px 14px rgba(24, 62, 82, 0.14);
  text-align: center;
}
.batch-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: repeating-radial-gradient(ellipse at 15% 5%, transparent 0 7px, color-mix(in srgb, var(--metric) 13%, transparent) 8px 9px, transparent 10px 16px);
  pointer-events: none;
}
.batch-stat .metric-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--metric);
  font-size: 1.4rem;
}
.batch-stat h2, .batch-stat strong {
  position: relative;
  z-index: 1;
}
.batch-stat h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}
.batch-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.batch-filter-card {
  overflow: hidden;
  padding: 1.2rem 2rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 5px 14px rgba(12, 90, 120, 0.1);
}
.batch-filter-card > header {
  margin: -1.2rem -2rem 1rem;
  padding: 0.75rem 1rem;
  background: #a9eef0;
}
.batch-filter-card > header h2 {
  margin: 0;
  color: #285364;
  font-size: 1rem;
}
.batch-filter-card > header p {
  margin: 0 0 0 1.7rem;
  font-size: 0.55rem;
}

.batch-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}
.batch-filter-grid label {
  display: grid;
  gap: 0.35rem;
  color: #3f4a50;
  font-size: 0.68rem;
  font-weight: 700;
}
.batch-filter-grid select, .batch-filter-grid input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfd9de;
  border-radius: 0.35rem;
  color: #59676e;
  background: #fff;
  font-size: 0.7rem;
}

.clear-filter {
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 0.35rem;
  color: #fff;
  background: #c72535;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.batch-table-card {
  min-width: 0;
  padding: 1.7rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 5px 14px rgba(12, 90, 120, 0.1);
}

.batch-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #536067;
  font-size: 0.7rem;
}
.batch-table-toolbar select, .batch-table-toolbar input {
  padding: 0.45rem 0.55rem;
  border: 1px solid #bfcbd1;
  background: #fff;
}
.batch-table-toolbar input {
  width: 13rem;
}

.batch-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0 0.25rem;
  font-size: 0.62rem;
}
.batch-table thead th {
  padding: 0.75rem;
  border: 1px solid #dbe2e6;
  color: #354249;
  background: #f4f6f7;
  text-align: center;
}
.batch-table tbody td {
  padding: 0.75rem;
  border-block: 1px solid #dce4e8;
  border-right: 1px solid #dce4e8;
  color: #69777e;
  background: #f7f9fa;
  vertical-align: top;
}
.batch-table tbody td:first-child {
  border-left: 1px solid #dce4e8;
  border-radius: 0.25rem 0 0 0.25rem;
}
.batch-table tbody td:last-child {
  border-radius: 0 0.25rem 0.25rem 0;
  text-align: center;
  vertical-align: middle;
}
.batch-table tbody tr:nth-child(odd) td {
  background: #eef5ff;
}
.batch-table td > strong:not(.batch-code):not(.role-chip) {
  display: block;
  margin-bottom: 0.35rem;
}
.batch-table td > span, .batch-table td > small {
  display: block;
  margin-top: 0.25rem;
}
.batch-table .batch-code {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.35rem;
  color: #28979a;
  background: #b6f0f0;
  font-size: 0.7rem;
}
.batch-table .role-chip {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  color: #e37422;
  background: #ffe2ca;
  font-size: 0.68rem;
}
.batch-table td:nth-child(4) > i {
  display: block;
  width: 100%;
  height: 0.25rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #21bfc2 var(--fill), #dff2f3 var(--fill));
}

.capacity-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.capacity-cells span {
  display: grid;
  min-width: 3.5rem;
  padding: 0.45rem 0.25rem;
  place-items: center;
  border-radius: 0.25rem;
  color: #20aeb4;
  background: #dcf5fc;
}
.capacity-cells span b {
  font-size: 0.7rem;
}
.capacity-cells span small {
  font-size: 0.47rem;
}

.batch-status {
  display: inline-block !important;
  width: fit-content;
  margin-top: 0.35rem !important;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  color: #fff;
  background: #15915c;
  font-weight: 700;
}

.view-button {
  padding: 0.32rem 0.6rem;
  border: 0;
  border-radius: 0.3rem;
  color: #fff;
  background: #1478ee;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.batch-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: #68767d;
  font-size: 0.7rem;
}
.batch-pagination nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.batch-pagination button {
  min-width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  cursor: pointer;
}
.batch-pagination button.is-active {
  border: 1px solid #aebbc1;
  background: #fff;
}

.batch-empty {
  padding: 3rem 1rem;
  color: #667782;
  text-align: center;
}

.batch-dialog {
  width: min(90vw, 28rem);
  padding: 2rem;
  border: 0;
  border-radius: 0.85rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.batch-dialog::backdrop {
  background: rgba(14, 35, 45, 0.55);
}
.batch-dialog .dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.8rem;
}
.batch-dialog .badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  color: #08799c;
  background: #e3f5fd;
  font-size: 0.7rem;
}
.batch-dialog h2 {
  margin: 0.75rem 0;
  color: #006c8d;
}
.batch-dialog p {
  color: #667782;
  font-size: 0.85rem;
}

@media (max-width: 1400px) {
  .batch-filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1000px) {
  .batch-summary {
    grid-template-columns: 1fr 1fr;
  }
  .batch-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .batch-summary {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.75rem;
  }
  .batch-stat {
    min-height: 9.5rem;
    padding: 1rem 0.5rem;
  }
  .batch-stat .metric-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.65rem;
  }
  .batch-stat h2 {
    font-size: 0.7rem;
  }
  .batch-stat strong {
    font-size: 1.45rem;
  }
  .batch-filter-card {
    padding: 1rem;
  }
  .batch-filter-card > header {
    margin: -1rem -1rem 1rem;
  }
  .batch-filter-grid {
    grid-template-columns: 1fr;
  }
  .batch-table-card {
    padding: 0.75rem;
  }
  .batch-table-toolbar, .batch-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .batch-table-toolbar label, .batch-table-toolbar input {
    width: 100%;
  }
  .batch-pagination nav {
    max-width: 100%;
    overflow-x: auto;
  }
}
.site-footer {
    margin-top:0px;
    padding-top:0px;
  color: #fff;
  background: #006c8d;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1fr 1fr;
  gap: 3rem;
  padding-block: 3rem;
}
.site-footer h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}
.site-footer a:hover {
  color: #75e4e1;
}

.brand--footer {
  width: fit-content;
  padding: 1rem 1.75rem;
  border-radius: 0 0 1.3rem 1.3rem;
  background: #fff;
}

.brand--footer img {
  width: 8.5rem;
}

.socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 2rem;
}
.socials a {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #006c8d;
  font-weight: 800;
}

.copyright {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
