html[data-theme="light"],
:root {
  --primary: #2f6682;
  --secondary: #204b63;
  --accent: #f28a5b;
  --primary-fg: #fff;
  --body-fg: #18303d;
  --body-bg: #f4f8f9;
  --body-quiet-color: #647883;
  --body-loud-color: #18303d;
  --header-color: #fff;
  --header-branding-color: #fff;
  --header-bg: #2f6682;
  --header-link-color: #fff;
  --breadcrumbs-fg: #647883;
  --breadcrumbs-link-fg: #2f6682;
  --breadcrumbs-bg: #eaf3f7;
  --link-fg: #2f6682;
  --link-hover-color: #204b63;
  --default-button-bg: #2f6682;
  --default-button-hover-bg: #204b63;
  --button-bg: #2f6682;
  --button-hover-bg: #204b63;
  --delete-button-bg: #c65454;
  --delete-button-hover-bg: #a33f3f;
  --hairline-color: #dbe6ea;
  --border-color: #dbe6ea;
  --darkened-bg: #edf5f7;
  --selected-bg: #eaf3f7;
  --tea-shadow-sm: 0 4px 16px rgba(25, 60, 76, 0.07);
  --tea-shadow: 0 18px 46px rgba(25, 60, 76, 0.11);
  --tea-control-height: 40px;
}

html[data-theme="dark"] {
  --body-bg: #10242d;
  --body-fg: #edf7f9;
  --body-quiet-color: #b9c8ce;
  --body-loud-color: #fff;
  --header-bg: #163240;
  --header-color: #fff;
  --header-branding-color: #fff;
  --breadcrumbs-bg: #1f4354;
  --darkened-bg: #183642;
  --selected-bg: #21495a;
  --hairline-color: #2f5666;
  --border-color: #2f5666;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}

#container {
  background: var(--body-bg);
}

#header {
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(219, 230, 234, 0.88);
  box-shadow: 0 1px 0 rgba(25, 60, 76, 0.02);
}

#branding {
  display: flex;
  align-items: center;
}

.tea-admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--header-branding-color);
  text-decoration: none;
}

.tea-admin-brand:hover {
  color: #fff;
}

.tea-admin-brand img {
  width: 146px;
  height: 48px;
  object-fit: contain;
}

.tea-admin-brand span {
  display: grid;
  line-height: 1.15;
}

.tea-admin-brand strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.tea-admin-brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
}

#user-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

#user-tools a,
#user-tools a:link,
#user-tools a:visited,
#user-tools button,
.tea-admin-site-link,
.tea-admin-site-link:link,
.tea-admin-site-link:visited {
  box-sizing: border-box;
  display: inline-flex;
  height: var(--tea-control-height);
  min-height: 0;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

#user-tools button {
  margin: 0;
  text-transform: none;
}

#user-tools a:hover,
#user-tools a:focus,
#user-tools button:hover,
#user-tools button:focus,
.tea-admin-site-link:hover,
.tea-admin-site-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border-bottom-color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumbs {
  padding: 13px 32px;
  color: var(--breadcrumbs-fg);
  border-bottom: 1px solid var(--hairline-color);
  font-size: 0.82rem;
}

.main {
  background: var(--body-bg);
}

#content {
  padding: 32px;
}

#content h1 {
  margin: 0 0 22px;
  color: var(--body-loud-color);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  letter-spacing: 0;
}

#content h2,
.module h2,
.module caption,
.inline-group h2 {
  color: var(--body-loud-color);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.module,
#content-related,
.paginator,
fieldset.module,
.inline-group {
  overflow: hidden;
  border: 1px solid var(--hairline-color);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--tea-shadow-sm);
}

.dashboard .module table th,
.dashboard .module table td {
  padding: 14px 16px;
}

.dashboard .module table th {
  width: 100%;
}

.dashboard #content-related {
  padding: 18px;
}

.dashboard #content-related h2 {
  margin: 0 0 12px;
}

.dashboard #content-related h3 {
  color: var(--body-quiet-color);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th,
tfoot td {
  color: var(--body-loud-color);
  background: #f8fbfc;
  font-weight: 800;
}

tbody tr:hover {
  background: #fbfdfd;
}

td,
th {
  border-bottom-color: var(--hairline-color);
}

tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}

#nav-sidebar {
  border-right: 1px solid var(--hairline-color);
  background: #fff;
}

#nav-sidebar .module th,
#nav-sidebar .module td {
  padding: 10px 12px;
}

#nav-sidebar .current-app .section:link,
#nav-sidebar .current-app .section:visited {
  color: var(--primary);
}

.object-tools a,
.object-tools button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
  border-radius: 10px;
  font-weight: 800;
}

.object-tools a,
.object-tools button {
  min-height: 36px;
  padding: 8px 13px;
}

input,
textarea,
select,
.vTextField {
  border-color: var(--border-color);
  border-radius: 10px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 102, 130, 0.14);
}

.submit-row {
  border: 1px solid var(--hairline-color);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--tea-shadow-sm);
}

.messagelist li {
  border-radius: 10px;
  box-shadow: var(--tea-shadow-sm);
}

.tea-overview {
  margin-bottom: 38px;
  padding: 26px;
  border: 1px solid var(--hairline-color);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--tea-shadow-sm);
}

.tea-admin-dashboard #content {
  box-sizing: border-box;
  width: min(100%, 1440px);
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

.tea-dashboard-page-title {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tea-dashboard-page-title h1 { margin: 0; }

.tea-dashboard-logout-form { margin: 0; }

.tea-dashboard-logout-form button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #e2a19a;
  border-radius: 8px;
  background: #fff;
  color: #bd4d42;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: none;
}

.tea-dashboard-logout-form button:hover,
.tea-dashboard-logout-form button:focus {
  border-color: #c84c40;
  background: #fff1ef;
  color: #a83e34;
}

.tea-dashboard-logout-form button span { font-size: 0.98rem; line-height: 1; }

.tea-admin-dashboard .tea-overview,
.tea-admin-dashboard .tea-admin-models {
  width: 100%;
}

.tea-overview__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.tea-overview__eyebrow {
  margin: 0 0 5px;
  color: var(--body-quiet-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tea-overview h1 {
  margin: 0;
}

.tea-overview__heading h2 {
  margin: 0;
  color: var(--body-loud-color);
  font-size: 1.1rem;
  font-weight: 850;
}

.tea-overview__tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--hairline-color);
  border-radius: 8px;
  background: #f8fbfc;
}

.tea-overview__tabs a,
.tea-overview__tabs a:link,
.tea-overview__tabs a:visited {
  padding: 9px 13px;
  color: var(--primary);
  border-left: 1px solid var(--hairline-color);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.tea-overview__tabs a:first-child {
  border-left: 0;
}

.tea-overview__tabs a:hover,
.tea-overview__tabs a:focus,
.tea-overview__tabs a.is-active {
  color: #fff;
  background: var(--primary);
  text-decoration: none;
}

.tea-overview__intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.tea-overview__intro h2,
.tea-admin-models h2 {
  margin: 0;
  color: var(--body-loud-color);
  font-size: 1rem;
  font-weight: 850;
}

.tea-overview__intro h3 {
  margin: 0;
  color: var(--body-loud-color);
  font-size: 1rem;
  font-weight: 850;
}

.tea-overview__intro p {
  margin: 0;
  color: var(--body-quiet-color);
  font-size: 0.82rem;
}

.tea-overview__result-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f3f8;
  color: #245b75 !important;
  font-size: 0.76rem !important;
  font-weight: 850;
}

.tea-overview__filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--hairline-color);
  border-radius: 8px;
  background: #f8fbfc;
}

.tea-filter-field {
  display: grid;
  gap: 6px;
}

.tea-filter-field--search {
  grid-column: span 2;
}

.tea-filter-field label {
  color: var(--body-quiet-color);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tea-filter-field input,
.tea-filter-field select {
  box-sizing: border-box;
  width: 100%;
  height: var(--tea-control-height);
  min-height: 0;
  padding: 0 11px;
  background: #fff;
  color: var(--body-fg);
  font-size: 0.82rem;
}

.tea-overview__filter-actions {
  display: flex;
  min-height: var(--tea-control-height);
  align-self: end;
  align-items: center;
  gap: 10px;
}

.tea-overview__filter-actions button,
.tea-overview__filter-actions a {
  box-sizing: border-box;
  display: inline-flex;
  height: var(--tea-control-height);
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.tea-overview__filter-actions a {
  border-color: var(--hairline-color);
  background: #fff;
  color: var(--primary);
}

.tea-overview__filter-actions button:hover,
.tea-overview__filter-actions button:focus {
  background: var(--secondary);
}

.tea-overview__filter-actions a:hover,
.tea-overview__filter-actions a:focus {
  border-color: var(--primary);
  background: #e8f3f8;
  color: var(--secondary);
  text-decoration: none;
}

.tea-overview__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline-color);
  border-radius: 8px;
}

.tea-overview__table {
  width: 100%;
  min-width: 620px;
}

.tea-overview__table--students {
  min-width: 1040px;
  table-layout: fixed;
}

.tea-overview__table--students th:nth-child(1) { width: 12%; }
.tea-overview__table--students th:nth-child(2) { width: 12%; }
.tea-overview__table--students th:nth-child(3) { width: 16%; }
.tea-overview__table--students th:nth-child(4) { width: 14%; }
.tea-overview__table--students th:nth-child(5) { width: 20%; }
.tea-overview__table--students th:nth-child(6) { width: 18%; }
.tea-overview__table--students th:nth-child(7) { width: 8%; }

.tea-overview__table--students td,
.tea-overview__table--students th {
  overflow-wrap: anywhere;
}

.tea-overview__table thead th {
  padding: 11px 14px;
  color: var(--body-quiet-color);
  background: #f8fbfc;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tea-overview__table tbody th,
.tea-overview__table tbody td {
  padding: 13px 14px;
  vertical-align: middle;
}

.tea-overview__table tbody th {
  color: var(--body-loud-color);
  font-weight: 800;
}

.tea-overview__action,
.tea-overview__action:link,
.tea-overview__action:visited {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.tea-overview__action:hover,
.tea-overview__action:focus {
  color: var(--secondary);
  text-decoration: underline;
}

.tea-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.tea-status--alert {
  color: #963f2e;
  background: #fff0eb;
}

.tea-status--ok {
  color: #236b55;
  background: #e7f6ef;
}

.tea-status--neutral {
  color: #245b75;
  background: #e8f3f8;
}

.tea-overview__empty {
  padding: 20px !important;
  color: var(--body-quiet-color);
  text-align: center;
}

.tea-admin-models h2 {
  margin-bottom: 16px;
}

.tea-admin-models #content-main {
  float: none;
}

.errornote,
ul.errorlist {
  border-radius: 10px;
}

body.login {
  background: var(--body-bg);
}

body.login #container {
  min-height: 100vh;
}

body.login #header {
  display: none;
}

body.login #content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.tea-login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
}

.tea-login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  color: #fff;
  background: radial-gradient(circle at 95% 8%, rgba(83, 203, 195, 0.2), transparent 31%), linear-gradient(145deg, #123c52, #226a78);
  isolation: isolate;
}

.tea-login-story::before {
  content: "";
  position: absolute;
  width: min(62vw, 680px);
  aspect-ratio: 1;
  right: -36%;
  bottom: -35%;
  border: 1px solid rgba(212, 244, 242, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(212, 244, 242, 0.045), 0 0 0 112px rgba(212, 244, 242, 0.03);
  transform: rotate(-20deg);
}

.tea-login-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%, rgba(8, 42, 56, 0.12));
  pointer-events: none;
}

.tea-login-brand,
.tea-login-story__content,
.tea-login-story__features {
  position: relative;
  z-index: 1;
}

.tea-login-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.tea-login-brand:hover,
.tea-login-brand:focus { color: #fff; text-decoration: none; }

.tea-login-brand__mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
}

.tea-login-brand__mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.tea-login-brand__text { display: grid; gap: 2px; }
.tea-login-brand__text strong { font-size: 1.05rem; font-weight: 850; letter-spacing: 0.01em; }
.tea-login-brand__text small { color: rgba(255, 255, 255, 0.76); font-size: 0.68rem; font-weight: 700; }

.tea-login-story__watermark {
  position: absolute;
  z-index: 0;
  width: min(54%, 340px);
  right: -11%;
  bottom: 10%;
  opacity: 0.1;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.tea-login-story__content {
  max-width: 470px;
}

.tea-login-story__content span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #ffe5d6;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tea-login-story__content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 850;
  line-height: 1.1;
}

.tea-login-story__content p {
  max-width: 410px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  line-height: 1.55;
}

.tea-login-story__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tea-login-story__features span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 750;
}

.tea-login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
  background: linear-gradient(145deg, #fbfdfd, #f1f7f8);
}

.tea-login-card {
  width: min(100%, 396px);
  padding: clamp(26px, 4vw, 34px);
  border: 1px solid var(--hairline-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(30, 72, 88, 0.1);
}

.tea-login-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.tea-login-card h2 {
  margin: 0;
  color: var(--body-loud-color);
  font-size: 1.45rem;
  font-weight: 850;
}

.tea-login-intro {
  margin: 8px 0 22px;
  color: var(--body-quiet-color);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.login .form-row {
  margin: 0 0 15px;
  padding: 0;
}

body.login .form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--body-loud-color);
  font-size: 0.82rem;
  font-weight: 800;
}

body.login .form-row input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: #fff;
  color: var(--body-fg);
  font-size: 0.92rem;
}

body.login .form-row input:focus {
  border-color: #159aa1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(21, 154, 161, 0.13);
}

body.login .submit-row {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.login .submit-row input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  background: var(--primary);
  border-radius: 9px;
}

body.login .submit-row input:hover {
  background: var(--secondary);
}

@media (max-width: 900px) {
  #header {
    min-height: auto;
    padding: 16px;
  }

  #content {
    padding: 20px 16px;
  }

  .tea-admin-dashboard #content {
    width: 100%;
  }

  .tea-overview {
    padding: 18px;
  }

  .tea-overview__heading,
  .tea-overview__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .tea-overview__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tea-overview__tabs {
    width: 100%;
  }

  .tea-overview__tabs a {
    flex: 1;
    text-align: center;
  }

  .tea-login-shell {
    grid-template-columns: 1fr;
  }

  .tea-login-story {
    min-height: auto;
    gap: 44px;
  }

  .tea-login-story__watermark {
    width: min(42%, 260px);
    right: -5%;
    bottom: 7%;
  }

  .tea-login-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .tea-login-story {
    min-height: 390px;
    padding: 28px 24px;
  }

  .tea-login-story__content h1 {
    font-size: 1.9rem;
  }

  .tea-login-story__features {
    display: none;
  }

  .tea-login-panel {
    padding: 26px 16px 36px;
  }

  .tea-login-card {
    padding: 26px 22px;
  }

  .tea-overview__filters {
    grid-template-columns: 1fr;
  }

  .tea-filter-field--search {
    grid-column: auto;
  }

  .tea-overview__filter-actions {
    align-items: stretch;
  }

  .tea-overview__filter-actions button,
  .tea-overview__filter-actions a {
    flex: 1;
  }
}

.tea-executive-dashboard {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.tea-executive-dashboard__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.tea-executive-dashboard__eyebrow,
.tea-dashboard-card__header > div > span {
  display: block;
  margin: 0 0 5px;
  color: #65808d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tea-executive-dashboard h1 {
  margin: 0;
  color: #122b3a;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  letter-spacing: -0.035em;
}

.tea-executive-dashboard__subtitle {
  margin: 7px 0 0;
  color: #657985;
  font-size: 0.88rem;
}

.tea-executive-dashboard__details-link {
  display: inline-flex;
  min-height: 40px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #148b93;
  border-radius: 8px;
  background: #fff;
  color: #117c84;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.tea-executive-dashboard__details-link:hover,
.tea-executive-dashboard__details-link:focus {
  border-color: #0d777e;
  background: #eaf8f7;
  color: #0d6d74;
  text-decoration: none;
}

.tea-executive-dashboard__details-link span { font-size: 1rem; line-height: 1; }

.tea-executive-dashboard__period {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 11px 14px;
  border: 1px solid #d9e6ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--tea-shadow-sm);
}

.tea-executive-dashboard__period span {
  color: #66808c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tea-executive-dashboard__period strong {
  color: #214050;
  font-size: 0.8rem;
}

.tea-detailed-page {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.tea-detailed-page__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}

.tea-detailed-page__header p {
  margin: 0 0 5px;
  color: #65808d;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tea-detailed-page__header h1 {
  margin: 0;
  color: #122b3a;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.tea-detailed-page__header span {
  display: block;
  margin-top: 7px;
  color: #657985;
  font-size: 0.84rem;
}

.tea-detailed-page__header > a {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #cfe1e5;
  border-radius: 8px;
  color: #117c84;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.tea-detailed-page__header > a:hover,
.tea-detailed-page__header > a:focus {
  border-color: #148b93;
  background: #eaf8f7;
  text-decoration: none;
}

.tea-dashboard-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1.2fr minmax(180px, 1.45fr) auto;
  align-items: end;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d9e6ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--tea-shadow-sm);
}

.tea-dashboard-filter {
  display: grid;
  gap: 5px;
}

.tea-dashboard-filter > span {
  color: #5c7481;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tea-dashboard-filter input,
.tea-dashboard-filter select {
  box-sizing: border-box;
  width: 100%;
  height: 37px;
  min-height: 0;
  padding: 0 10px;
  border: 1px solid #d6e3e7;
  border-radius: 8px;
  background: #fbfdfe;
  color: #284654;
  font-size: 0.78rem;
}

.tea-date-control {
  position: relative;
  display: block;
}

.tea-date-control input[type="date"] {
  padding-right: 39px;
}

.tea-date-control svg {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 18px;
  height: 18px;
  color: #587888;
  pointer-events: none;
  transform: translateY(-50%);
}

.tea-date-control svg rect,
.tea-date-control svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tea-date-control input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 8px;
  width: 23px;
  height: 25px;
  cursor: pointer;
  opacity: 0;
}

.tea-dashboard-filter input:focus,
.tea-dashboard-filter select:focus {
  border-color: #159aa1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 156, 155, 0.12);
}

.tea-dashboard-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
}

.tea-dashboard-filter-actions button,
.tea-dashboard-filter-actions a {
  box-sizing: border-box;
  display: inline-flex;
  height: 37px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #d5e3e7;
  border-radius: 8px;
  background: #fff;
  color: #31738a;
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.tea-dashboard-filter-actions button {
  border-color: #169fa0;
  background: #169fa0;
  color: #fff;
}

.tea-dashboard-filter-actions button:hover,
.tea-dashboard-filter-actions button:focus {
  background: #087e86;
}

.tea-dashboard-filter-actions a:hover,
.tea-dashboard-filter-actions a:focus {
  border-color: #78bec6;
  background: #edf9fa;
  color: #0d777e;
}

.tea-dashboard-filter-actions .tea-dashboard-export {
  border-color: #169fa0;
  color: #087e86;
}

.tea-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tea-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 92px;
  padding: 15px 13px;
  border: 1px solid #e1eaed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(30, 72, 88, 0.06);
}

.tea-kpi-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.23rem;
  font-weight: 900;
}

.tea-kpi-card p,
.tea-kpi-card small {
  display: block;
  margin: 0;
  color: #5a717d;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.22;
}

.tea-kpi-card strong {
  display: block;
  margin: 3px 0 4px;
  color: #173343;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.tea-kpi-card small {
  color: #329260;
  font-size: 0.64rem;
}

.tea-kpi-card--centros .tea-kpi-card__icon { color: #168e96; background: #e6f7f7; }
.tea-kpi-card--ativos .tea-kpi-card__icon { color: #32a74a; background: #eaf8eb; }
.tea-kpi-card--escolas .tea-kpi-card__icon { color: #3a72d9; background: #eaf1ff; }
.tea-kpi-card--alunos .tea-kpi-card__icon { color: #7746d4; background: #f0eaff; }
.tea-kpi-card--pendencias .tea-kpi-card__icon { color: #e86921; background: #fff0e7; }
.tea-kpi-card--pendencias small { color: #d65f28; }
.tea-kpi-card--cobertura .tea-kpi-card__icon { color: #d99309; background: #fff6df; }

.tea-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(235px, 0.88fr) minmax(260px, 1fr) minmax(270px, 1.04fr);
  grid-template-rows: auto auto auto;
  gap: 13px;
}

.tea-dashboard-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 17px;
  border: 1px solid #dfe9ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(30, 72, 88, 0.055);
}

.tea-dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.tea-dashboard-card__header h2 {
  margin: 0;
  color: #173343;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.tea-dashboard-card__hint {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid #c7d7dc;
  border-radius: 50%;
  color: #6c828d;
  font-size: 0.66rem;
  font-weight: 850;
  cursor: help;
}

.tea-centers-chart {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 142px;
}

.tea-donut {
  display: grid;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 48%, transparent 49%), var(--donut-fill);
}

.tea-donut strong {
  color: #173343;
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
}

.tea-donut span {
  margin-top: 3px;
  color: #68808c;
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}

.tea-chart-legend {
  display: grid;
  gap: 13px;
  margin: 0;
}

.tea-chart-legend > div {
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 8px;
  align-items: start;
}

.tea-chart-legend dt,
.tea-chart-legend dd { margin: 0; }
.tea-chart-legend dd { color: #607782; font-size: 0.72rem; }
.tea-chart-legend dd strong { margin-left: 5px; color: #1e3c4a; font-size: 0.78rem; }
.tea-chart-legend dd small { display: block; margin-top: 2px; color: #78909a; font-size: 0.66rem; }

.tea-legend-dot,
.tea-student-status__dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
}

.tea-legend-dot--active { background: #109c9b; }
.tea-legend-dot--waiting { background: #f7a828; }

.tea-school-bars {
  display: grid;
  gap: 13px;
  min-height: 142px;
}

.tea-school-bars__item { display: grid; gap: 6px; }
.tea-school-bars__item > div { display: flex; justify-content: space-between; gap: 10px; color: #57707c; font-size: 0.72rem; }
.tea-school-bars__item strong { color: #274656; font-size: 0.76rem; }
.tea-school-bars__item i,
.tea-ranking-list__row i { display: block; height: 9px; overflow: hidden; border-radius: 999px; background: #edf3f5; }
.tea-school-bars__fill,
.tea-ranking-list__row b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #138f97, #31b9b6); }
.tea-school-bars__fill--sem-alunos { background: linear-gradient(90deg, #f2a222, #f8c462); }
.tea-school-bars__fill--base { background: linear-gradient(90deg, #4e78d9, #7ba0f2); }

.tea-school-chart {
  display: flex;
  height: 160px;
  min-height: 142px;
  align-items: end;
  justify-content: space-around;
  gap: 18px;
  padding: 8px 9px 0;
  border-bottom: 1px solid #dfe9ec;
}

.tea-school-chart__column {
  display: grid;
  height: 100%;
  min-width: 74px;
  flex: 1;
  grid-template-rows: 20px 1fr 32px;
  align-items: end;
  justify-items: center;
  gap: 4px;
}

.tea-school-chart__column > span {
  color: #45616e;
  font-size: 0.68rem;
  font-weight: 850;
}

.tea-school-chart__column > i {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: end;
  justify-content: center;
}

.tea-school-chart__bar {
  display: block;
  width: min(36px, 62%);
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #42beb9, #158e96);
}

.tea-school-chart__bar--sem-alunos {
  background: linear-gradient(180deg, #f8c364, #e79b1d);
}

.tea-school-chart__column small {
  max-width: 96px;
  color: #718993;
  font-size: 0.62rem;
  line-height: 1.18;
  text-align: center;
}

.tea-student-status { min-height: 142px; }
.tea-student-status__bar { display: flex; height: 40px; overflow: hidden; margin: 14px 0 16px; border-radius: 7px; background: #edf3f5; }
.tea-student-status__segment { min-width: 0; height: 100%; }
.tea-student-status__segment--pei, .tea-student-status__dot--pei { background: #34ab59; }
.tea-student-status__segment--em-dia, .tea-student-status__dot--em-dia { background: #1ea7a7; }
.tea-student-status__segment--desatualizado, .tea-student-status__dot--desatualizado { background: #f09a22; }
.tea-student-status__segment--sem-plano, .tea-student-status__dot--sem-plano { background: #7d8991; }

.tea-student-status__legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.tea-student-status__legend div { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; column-gap: 6px; align-items: start; }
.tea-student-status__legend i { grid-row: span 2; }
.tea-student-status__legend span { overflow: hidden; color: #58717d; font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.tea-student-status__legend strong { color: #284654; font-size: 0.72rem; }
.tea-student-status__legend small { grid-column: 2 / span 2; color: #8498a1; font-size: 0.64rem; }

.tea-dashboard-card--alerts {
  grid-column: 3;
  grid-row: 2 / span 2;
}

.tea-alert-list { display: grid; gap: 9px; }
.tea-alert { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid; border-radius: 9px; text-decoration: none; }
.tea-alert:hover, .tea-alert:focus { transform: translateY(-1px); text-decoration: none; box-shadow: 0 6px 14px rgba(30, 72, 88, 0.08); }
.tea-alert__symbol { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; font-weight: 900; }
.tea-alert > span:nth-child(2) { display: grid; gap: 3px; }
.tea-alert strong { color: #314b58; font-size: 0.68rem; line-height: 1.18; }
.tea-alert small { color: #708590; font-size: 0.61rem; line-height: 1.2; }
.tea-alert b { min-width: 21px; padding: 3px 5px; border-radius: 999px; text-align: center; font-size: 0.68rem; }
.tea-alert--urgente { border-color: #ffd0c9; background: #fff8f6; }
.tea-alert--urgente .tea-alert__symbol, .tea-alert--urgente b { color: #e15546; background: #ffe7e2; }
.tea-alert--atencao { border-color: #ffe0a8; background: #fffaf0; }
.tea-alert--atencao .tea-alert__symbol, .tea-alert--atencao b { color: #d88909; background: #fff0cb; }
.tea-alert--informacao { border-color: #cce2ff; background: #f6faff; }
.tea-alert--informacao .tea-alert__symbol, .tea-alert--informacao b { color: #2876dc; background: #e1efff; }
.tea-alerts-all { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 13px; border-top: 1px solid #e4ecee; color: #148b93; font-size: 0.72rem; font-weight: 850; text-decoration: none; }
.tea-alerts-all span { font-size: 1.05rem; line-height: 0.7; }

.tea-dashboard-card--evolucao { grid-column: 1; }
.tea-dashboard-card--ranking { grid-column: 2; }
.tea-evolution-chart { display: flex; height: 160px; align-items: end; justify-content: space-between; gap: 9px; padding: 8px 4px 0; border-bottom: 1px solid #dfe9ec; }
.tea-evolution-chart__column { display: grid; height: 100%; flex: 1; grid-template-rows: 20px 1fr 21px; align-items: end; justify-items: center; gap: 4px; }
.tea-evolution-chart__column > span { color: #45616e; font-size: 0.65rem; font-weight: 800; }
.tea-evolution-chart__column i { display: flex; width: 100%; height: 100%; align-items: end; justify-content: center; }
.tea-evolution-chart__column b { display: block; width: min(24px, 72%); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #47c5c1, #128f97); }
.tea-evolution-chart__column small { color: #7b919b; font-size: 0.6rem; white-space: nowrap; }

.tea-ranking-list { display: grid; gap: 16px; min-height: 160px; padding-top: 9px; }
.tea-ranking-list__row { display: grid; grid-template-columns: minmax(78px, 0.8fr) minmax(80px, 1.6fr) auto; gap: 9px; align-items: center; }
.tea-ranking-list__row span { overflow: hidden; color: #4c6875; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.tea-ranking-list__row b { background: linear-gradient(90deg, #14969a, #54c8c1); }
.tea-ranking-list__row strong { color: #274656; font-size: 0.73rem; }
.tea-chart-empty { align-self: center; color: #78909a; font-size: 0.75rem; text-align: center; }

.tea-dashboard-card--operacional { padding-bottom: 0; }
.tea-dashboard-card--operacional .tea-dashboard-card__header { margin-bottom: 13px; }
.tea-dashboard-card--operacional .tea-dashboard-card__header > small { color: #6e858f; font-size: 0.7rem; font-weight: 750; }
.tea-operational-table-wrap { margin: 0 -17px; overflow-x: auto; border-top: 1px solid #e2ebed; }
.tea-operational-table { width: 100%; min-width: 850px; border-spacing: 0; }
.tea-operational-table thead th { padding: 10px 16px; color: #607782; background: #f8fbfc; font-size: 0.64rem; font-weight: 850; letter-spacing: 0.035em; text-transform: uppercase; }
.tea-operational-table tbody th, .tea-operational-table tbody td { padding: 11px 16px; border-bottom: 1px solid #edf2f3; color: #4e6874; font-size: 0.72rem; vertical-align: middle; }
.tea-operational-table tbody th { color: #294858; font-weight: 850; }
.tea-operational-table tbody tr:last-child th, .tea-operational-table tbody tr:last-child td { border-bottom: 0; }
.tea-operational-table tbody tr:hover { background: #fbfdfd; }
.tea-operational-table a { color: #148b93; font-weight: 850; text-decoration: none; }
.tea-operational-table a:hover { text-decoration: underline; }

.tea-operational-table__pending { color: #d95d42 !important; font-weight: 850; }
.tea-operational-table__empty { padding: 22px !important; color: #718791; text-align: center; }
.tea-row-status { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: 0.64rem; font-weight: 850; }
.tea-row-status--ativo { color: #287e4b; background: #e8f7ed; }
.tea-row-status--pendencia { color: #bd6a08; background: #fff1d6; }
.tea-row-status--neutro { color: #748691; background: #edf2f4; }

@media (max-width: 1250px) {
  .tea-dashboard-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tea-dashboard-filter-actions { justify-content: flex-start; }
  .tea-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tea-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tea-dashboard-card--alerts { grid-column: 2; grid-row: 2 / span 2; }
  .tea-dashboard-card--evolucao { grid-column: 1; }
  .tea-dashboard-card--ranking { grid-column: 1; }
}

@media (max-width: 800px) {
  .tea-dashboard-page-title { align-items: flex-start; flex-direction: column; }
  .tea-executive-dashboard__header { align-items: flex-start; flex-direction: column; }
  .tea-executive-dashboard__details-link { margin-left: 0; }
  .tea-executive-dashboard__period { width: 100%; box-sizing: border-box; }
  .tea-dashboard-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tea-dashboard-filter--search { grid-column: span 2; }
  .tea-dashboard-grid { grid-template-columns: 1fr; }
  .tea-dashboard-card--alerts, .tea-dashboard-card--evolucao, .tea-dashboard-card--ranking { grid-column: auto; grid-row: auto; }
  .tea-dashboard-card--alerts { order: 5; }
  .tea-detailed-page__header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .tea-dashboard-filters, .tea-kpi-grid { grid-template-columns: 1fr; }
  .tea-dashboard-filter--search { grid-column: auto; }
  .tea-dashboard-filter-actions { flex-wrap: wrap; }
  .tea-dashboard-filter-actions > * { flex: 1; }
  .tea-kpi-card { min-height: auto; }
  .tea-centers-chart { justify-content: center; }
  .tea-student-status__legend { grid-template-columns: 1fr; }
}
