﻿:root {
  color-scheme: light;
  --blue: #164194;
  --blue-dark: #10306e;
  --blue-soft: #e7f0fa;
  --orange: #e84910;
  --orange-dark: #bd3c0d;
  --ink: #172033;
  --muted: #617085;
  --line: #d6e1ee;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --success: #0f766e;
  --warning: #a16207;
  --error: #b91c1c;
  --shadow: 0 16px 40px rgba(0, 44, 92, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7fbff 0, #eef5fb 460px, #f6f8fb 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  gap: 14px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
  object-fit: contain;
  width: auto;
}

.brand-main-logo {
  height: 58px;
  max-width: 430px;
}

.brand-program-logo {
  display: none;
}

nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

nav a,
.link-button {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover,
.link-button:hover {
  color: var(--orange);
}

nav a.nav-cta {
  background: var(--orange);
  border-radius: 6px;
  color: white;
  font-weight: 700;
  padding: 9px 17px;
}

nav a.nav-cta:hover {
  background: var(--orange-dark);
  color: white;
}

.link-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.section,
.form-shell {
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.eyebrow {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}


.section,
.form-page {
  margin: 0 auto;
  padding: 54px 6vw;
}

.section + .section {
  padding-top: 28px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 10px;
}


.section-copy {
  color: var(--muted);
  margin: -8px 0 24px;
  max-width: 720px;
}

.lookup-row-wide {
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 360px) auto;
}

.alternate-panel {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px 18px;
}

.alternate-panel strong {
  color: var(--orange-dark);
  display: block;
}

.alternate-panel p {
  color: var(--muted);
  margin: 4px 0 0;
}

.lead-panel {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr;
}

.lead-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 6px;
}

.lead-form .button {
  align-self: end;
  min-height: 48px;
}

.lead-panel .message {
  margin: 0;
}

.selected-course-summary {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
}

.selected-course-summary strong {
  color: var(--blue);
  font-size: 1rem;
}

.selected-course-summary span,
.selected-course-summary p,
.selected-course-summary li {
  color: var(--muted);
  font-size: 0.92rem;
}

.selected-course-summary ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.selected-course-summary li {
  border-left: 3px solid var(--orange);
  padding-left: 10px;
}

.areas-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 8px;
}

.area-item {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 10px;
  min-height: 112px;
  padding: 20px 12px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.area-item:hover,
.area-item.is-active {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.area-item.is-active {
  background: #fff6ef;
}

.area-item svg {
  color: var(--orange);
  height: 30px;
  width: 30px;
}

.area-item span {
  font-size: 0.92rem;
  font-weight: 800;
}

.search-row {
  margin-bottom: 20px;
  max-width: 480px;
}

.courses-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.course-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 43, 87, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transform-origin: center top;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.course-card:hover,
.course-card:focus-within,
.course-card:focus {
  box-shadow: 0 24px 54px rgba(0, 43, 87, 0.18);
  outline: none;
  transform: scale(1.045);
  z-index: 4;
}

.course-card-media {
  aspect-ratio: 616 / 536;
  background-color: var(--blue-soft);
  object-fit: cover;
  transition: filter 0.18s ease;
  width: 100%;
}

.course-card:hover .course-card-media,
.course-card:focus-within .course-card-media,
.course-card:focus .course-card-media {
  filter: saturate(1.05) contrast(1.04);
}

.course-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  padding: 22px 24px 24px;
}

.course-card span,
.course-card small {
  color: var(--muted);
  font-size: 0.86rem;
}

.course-card .badge {
  color: var(--orange-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.course-card h2 {
  font-size: 1.34rem;
  line-height: 1.2;
  margin: 12px 0 0;
}

.course-card-details {
  color: var(--muted);
  display: grid;
  gap: 8px;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.2s ease, opacity 0.18s ease, transform 0.18s ease, margin-top 0.18s ease;
}

.course-card-details strong {
  color: var(--blue);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.course-card-details p,
.course-card-details li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.course-card-details ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  max-height: 230px;
  overflow-y: auto;
  padding: 0 4px 0 0;
}

.course-card-details li {
  background: #f8fbff;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 8px 10px;
}

.course-card:hover .course-card-details,
.course-card:focus-within .course-card-details,
.course-card:focus .course-card-details {
  margin-top: 14px;
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
}

.course-card footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}

.button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
}

.button:hover {
  background: var(--orange-dark);
}

.button.secondary {
  background: #edf4fb;
  color: var(--blue);
}

.button.secondary:hover {
  background: #dcebf8;
}

.form-page {
  display: flex;
  justify-content: center;
}

.form-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.lookup-row,
.form-grid {
  display: grid;
  gap: 18px;
}

.lookup-row {
  align-items: end;
  grid-template-columns: minmax(220px, 360px) auto;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.full {
  grid-column: 1 / -1;
}

label {
  color: #536783;
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
  width: 100%;
}

textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 65, 148, 0.14);
  outline: none;
}

input[readonly],
select:disabled {
  background: #edf3f8;
}

.message {
  border-radius: 6px;
  margin: 18px 0 0;
  padding: 12px 14px;
  white-space: pre-line;
}

.message[data-type="info"] {
  background: #e0f2fe;
  color: #075985;
}

.message[data-type="success"] {
  background: #ccfbf1;
  color: var(--success);
}

.message[data-type="warning"] {
  background: #fef3c7;
  color: var(--warning);
}

.message[data-type="error"] {
  background: #fee2e2;
  color: var(--error);
}

.empty {
  color: var(--muted);
}

.form-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 18px;
}

.form-step legend {
  color: var(--blue);
  font-weight: 800;
  padding: 0 8px;
}

.check-line {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.check-line input {
  min-height: 18px;
  width: 18px;
}

.consent-step {
  align-items: start;
}

.consent-card {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.consent-card-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.consent-card strong {
  color: var(--blue);
  display: block;
  font-size: 1rem;
}

.consent-toggle {
  background: #edf4fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.consent-toggle:hover,
.consent-toggle:focus-visible {
  background: #e1eefb;
  outline: none;
}

.consent-card p {
  color: var(--muted);
  margin: 3px 0 0;
}

.consent-scroll {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
  max-height: 180px;
  overflow-y: auto;
  padding: 14px;
}

.consent-scroll:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 65, 148, 0.14);
  outline: none;
}

.consent-card.is-expanded .consent-scroll {
  max-height: min(68vh, 620px);
}

.consent-scroll p + p {
  margin-top: 12px;
}

.consent-check {
  background: #edf4fb;
  border-radius: 6px;
  color: var(--blue);
  padding: 10px 12px;
}

.consent-check input:disabled + span {
  color: var(--muted);
}

.consent-card.is-read .consent-check {
  background: #ecfdf5;
  color: var(--success);
}

.admin-page {
  margin: 0 auto;
  max-width: 1280px;
  padding: 42px 5vw;
}

.dashboard-page {
  max-width: 1680px;
  padding: 34px 3vw;
}

.dashboard-page #dashboardMessage {
  margin: 0 0 18px;
}

.admin-login {
  margin: 0 auto;
  max-width: 520px;
}

.admin-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 20px;
}

.admin-metrics > div,
.admin-metrics > button,
.table-wrap,
.detail-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 43, 87, 0.06);
}

.admin-metrics > div,
.admin-metrics > button {
  padding: 14px;
}

.admin-metrics > button {
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-metrics > button:hover,
.admin-metrics > button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 16px 34px rgba(0, 43, 87, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.admin-metrics strong {
  color: var(--blue);
  display: block;
  font-size: 1.8rem;
}

.admin-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-metrics .metric-wide {
  grid-column: 1 / -1;
}

.admin-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-tab {
  background: #edf4fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.admin-tab:hover,
.admin-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.admin-tab-panel {
  display: block;
}

.bi-dashboard-canvas {
  background: #eef5fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto;
  margin: 0 auto;
  max-width: none;
  overflow: visible;
  padding: 14px;
  width: 100%;
}

.bi-filter-bar {
  align-items: end;
  background: transparent;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) 120px;
  margin: 0;
}

.bi-filter-bar input,
.bi-filter-bar select {
  min-height: 38px;
  padding: 0 10px;
}

.bi-filter-bar .button {
  min-height: 38px;
  padding: 0 14px;
}

.bi-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
}

.bi-metrics > div {
  border-left: 3px solid var(--accent, var(--blue));
  box-shadow: 0 8px 18px rgba(0, 43, 87, 0.05);
  min-height: 78px;
  padding: 10px 12px;
}

.bi-metrics > div:nth-child(6n+1) { --accent: #164194; }
.bi-metrics > div:nth-child(6n+2) { --accent: #16a34a; }
.bi-metrics > div:nth-child(6n+3) { --accent: #e84910; }
.bi-metrics > div:nth-child(6n+4) { --accent: #2563eb; }
.bi-metrics > div:nth-child(6n+5) { --accent: #9333ea; }
.bi-metrics > div:nth-child(6n+6) { --accent: #0f766e; }

.bi-metrics strong {
  font-size: 1.3rem;
  line-height: 1.1;
}

.bi-metrics span {
  display: block;
  font-size: 0.74rem;
  line-height: 1.25;
  margin-top: 4px;
}

.moodle-dashboard-grid {
  display: grid;
  gap: 12px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(200px, auto);
  overflow: visible;
}

.dashboard-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 43, 87, 0.05);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 200px;
  overflow: visible;
  padding: 12px 14px;
  grid-column: span 6;
}

.card-period { grid-column: span 12; }
.card-crossing { grid-column: span 4; }
.card-status,
.card-courses,
.card-course-status { grid-column: span 4; }
.card-funnel,
.card-progress { grid-column: span 3; }
.card-units { grid-column: span 6; }
.card-students { grid-column: span 12; }
.card-type,
.card-state,
.card-completion,
.card-quality { grid-column: span 3; }
.card-alerts,
.card-cpf,
.card-reports { grid-column: span 4; }

.card-courses,
.card-course-status {
  height: 330px;
  overflow: hidden;
}

.dashboard-card h2 {
  color: var(--blue);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 8px;
}

.dashboard-card-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dashboard-card-head h2 {
  margin: 0;
}

.card-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 6px;
}

.card-inline-filters {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(150px, 220px)) auto;
}

.card-inline-filters input,
.card-inline-filters .compact-button {
  min-height: 34px;
  padding: 0 10px;
}

.card-inline-filters .compact-button {
  white-space: nowrap;
}

.table-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 12px 0;
}

.table-pagination span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pagination-pages {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pagination-pages button {
  background: #edf4fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 30px;
  min-width: 34px;
  padding: 0 9px;
}

.pagination-pages button:hover,
.pagination-pages button.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pagination-pages button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-ellipsis {
  padding: 0 2px;
}

.bar-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: visible;
  padding-right: 4px;
}

.course-scroll-list {
  height: 274px;
  max-height: 274px;
  overflow-y: auto;
  padding-right: 8px;
}

.course-scroll-list::-webkit-scrollbar {
  width: 8px;
}

.course-scroll-list::-webkit-scrollbar-track {
  background: #edf4fb;
  border-radius: 999px;
}

.course-scroll-list::-webkit-scrollbar-thumb {
  background: #b7c8de;
  border-radius: 999px;
}

.bar-item {
  display: grid;
  gap: 6px;
}

.bar-item-head {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bar-item-head strong {
  color: var(--ink);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.bar-item-head span {
  color: var(--blue);
  font-weight: 800;
}

.bar-track {
  background: #edf4fb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bar-track span {
  background: var(--orange);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.bar-item small {
  color: var(--muted);
}

.compact-table {
  border: 0;
  box-shadow: none;
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.compact-table table {
  min-width: 100%;
}

.compact-table th,
.compact-table td {
  font-size: 0.8rem;
  padding: 8px 10px;
}

.compact-table th:first-child,
.compact-table td:first-child {
  text-align: left;
  white-space: normal;
  width: auto;
}

.compact-table th:not(:first-child),
.compact-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.period-chart {
  height: 100%;
  min-height: 160px;
}

.period-chart-wrap {
  height: 100%;
  min-height: inherit;
  position: relative;
}

.period-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin: -2px 2px 4px;
}

.period-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.78rem;
  gap: 6px;
}

.period-legend i,
.period-tooltip i {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.period-svg {
  display: block;
  height: calc(100% - 22px);
  width: 100%;
}

.period-grid-line {
  stroke: var(--line);
  stroke-width: 1;
}

.period-area {
  fill: url(#periodAreaFill);
}

.period-line {
  fill: none;
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.period-line-concluded {
  stroke: var(--orange);
}

.period-point {
  fill: #2563eb;
  stroke: var(--paper);
  stroke-width: 1.5;
}

.period-point-concluded {
  fill: var(--orange);
  stroke: var(--paper);
  stroke-width: 1.5;
}

.period-hit-point {
  cursor: pointer;
  fill: transparent;
  pointer-events: all;
}

.period-hover-group {
  outline: none;
}

.period-hover-line {
  display: none;
  pointer-events: none;
  stroke: rgba(15, 23, 42, 0.36);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.period-hover-group:hover .period-hover-line,
.period-hover-group:focus .period-hover-line,
.period-hover-group.is-active .period-hover-line {
  display: block;
}

.period-hover-group:hover .period-point,
.period-hover-group:focus .period-point,
.period-hover-group.is-active .period-point {
  stroke-width: 2;
}

.period-tooltip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-width: 168px;
  padding: 12px 14px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  z-index: 4;
}

.period-tooltip[hidden] {
  display: none;
}

.period-tooltip::after {
  border: 7px solid transparent;
  border-top-color: #fff;
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.period-tooltip strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.period-tooltip span {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.period-dot-total { background: #2563eb; }
.period-dot-concluded { background: var(--orange); }

.period-tooltip b {
  color: var(--ink);
  font-weight: 700;
  margin-left: auto;
}

.period-axis-label {
  fill: var(--muted);
  font-size: 10px;
}

.period-axis-y {
  dominant-baseline: middle;
  text-anchor: end;
}

.period-axis-x {
  text-anchor: middle;
}

.period-value-label {
  fill: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}

.donut-layout {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 120px 1fr;
  min-height: 0;
}

.donut {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  justify-items: center;
  place-content: center;
  position: relative;
}

.donut::after {
  background: var(--paper);
  border-radius: inherit;
  content: "";
  inset: 22px;
  position: absolute;
}

.donut strong,
.donut span {
  position: relative;
  z-index: 1;
}

.donut strong {
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1;
}

.donut span {
  color: var(--muted);
  font-size: 0.78rem;
}

.donut-legend {
  display: grid;
  gap: 8px;
}

.donut-legend span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  gap: 8px;
}

.donut-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.stacked-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: visible;
  padding-right: 4px;
}

.stacked-list.course-scroll-list {
  height: 274px;
  max-height: 274px;
  overflow-y: auto;
  padding-right: 8px;
}

.stacked-item {
  display: grid;
  gap: 6px;
}

.stacked-bar {
  background: #edf4fb;
  border-radius: 999px;
  display: flex;
  height: 9px;
  overflow: hidden;
}

.stacked-bar span {
  display: block;
  min-width: 0;
}

.stacked-bar .ok {
  background: #16a34a;
}

.stacked-bar .info {
  background: #2563eb;
}

.stacked-bar .warn {
  background: #eab308;
}

.stacked-bar .bad {
  background: #f97316;
}

.stacked-item small {
  color: var(--muted);
  font-size: 0.76rem;
}

.funnel-list {
  align-content: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.funnel-item {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 42px;
  padding: 6px 14px;
  text-align: center;
}

.funnel-item:nth-child(2) {
  background: #16a34a;
}

.funnel-item:nth-child(3) {
  background: var(--orange);
}

.funnel-item strong,
.summary-panel strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
}

.funnel-item span,
.summary-panel span,
.summary-panel small {
  font-size: 0.78rem;
}

.funnel-item span {
  opacity: 0.9;
}

.summary-panel {
  align-content: center;
  color: var(--blue);
  display: grid;
  min-height: 100px;
  text-align: center;
}

.summary-panel span,
.summary-panel small {
  color: var(--muted);
}

.alert-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.alert-item {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

.alert-item strong {
  color: var(--orange-dark);
  font-size: 1.15rem;
}

.alert-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 18px;
}

.admin-date-filter {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 4px;
}

.admin-date-filter input {
  min-height: 48px;
}


.admin-tool-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 43, 87, 0.06);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  padding: 16px;
}

.admin-tool-card h2 {
  color: var(--blue);
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.admin-tool-card p {
  color: var(--muted);
  margin: 0;
}

.admin-upload-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-tool-card .admin-tool-message {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 6px;
  background: #edf4fc;
}
.admin-tool-card .admin-tool-message[data-type="success"] { color: #006b4f; background: #e3f5ee; }
.admin-tool-card .admin-tool-message[data-type="error"] { color: #a32323; background: #fde9e9; }

.admin-upload-form input[type="file"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 320px;
  padding: 10px;
}
.admin-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: var(--soft);
}

.detail-panel {
  padding: 18px;
}

.detail-panel h2 {
  color: var(--blue);
  margin-top: 0;
}

.detail-panel dl {
  display: grid;
  gap: 8px;
  grid-template-columns: 90px 1fr;
}

.detail-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-panel dd {
  margin: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.audit-list {
  color: var(--muted);
  font-size: 0.86rem;
  padding-left: 18px;
}

.consent-summary {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
}

.consent-summary strong {
  color: var(--blue);
}

.consent-summary span {
  color: var(--muted);
  font-size: 0.86rem;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.document-button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  width: fit-content;
}

.pdf-icon {
  align-items: center;
  background: #d92d20;
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  letter-spacing: 0.03em;
  line-height: 1;
  min-width: 30px;
  padding: 0 6px;
  width: auto;
}

.pdf-icon-lgpd {
  background: #0057a8;
}

.pdf-icon-renda {
  background: #d92d20;
}

.pdf-icon-img {
  background: #7a2e8f;
}

.pdf-icon-exp {
  background: #0f766e;
}

.document-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.correction-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
  padding-top: 16px;
}

@media (max-width: 1300px) {
  .bi-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-crossing,
  .card-status,
  .card-courses,
  .card-course-status,
  .card-units,
  .card-alerts,
  .card-cpf,
  .card-reports {
    grid-column: span 6;
  }

  .card-funnel,
  .card-progress,
  .card-type,
  .card-state,
  .card-completion,
  .card-quality {
    grid-column: span 4;
  }

  .card-students {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .admin-layout,
  .correction-grid,
  .form-step,
  .lookup-row-wide,
  .moodle-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    grid-column: 1 / -1;
  }

  .bi-dashboard-canvas {
    aspect-ratio: auto;
    overflow: visible;
  }

  .bi-filter-bar,
  .bi-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .card-inline-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 5vw;
  }

  .brand-main-logo {
    height: 42px;
    max-width: 300px;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .section,
  .form-page,
  .admin-page {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .lookup-row,
  .lookup-row-wide,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-shell {
    padding: 22px;
  }

  .course-card,
  .course-card:hover,
  .course-card:focus-within,
  .course-card:focus {
    transform: none;
  }

  .course-card-details {
    margin-top: 14px;
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .alternate-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .lead-form {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.admin-actions {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 43, 87, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.admin-actions span {
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-actions {
  margin-bottom: 18px;
  padding: 12px 14px;
}

.compact-actions .button {
  min-height: 40px;
}

th:first-child,
td:first-child {
  text-align: center;
  width: 46px;
}

.row-select,
#selectAllRows {
  cursor: pointer;
  min-height: 18px;
  width: 18px;
}

/* ---------------------------------------------------------------------
   Identidade "SENAI em Movimento" (index) - classes aditivas, escopadas
   para nao alterar o layout das demais paginas que compartilham este CSS.
--------------------------------------------------------------------- */

.brand-tagline {
  color: var(--orange);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.brand-tagline em {
  color: var(--blue);
  font-style: italic;
  font-weight: 500;
}

.brand-heading {
  font-family: "Oswald", Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.eyebrow-brand {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.eyebrow-brand::before {
  background: var(--orange);
  border-radius: 1px;
  content: "";
  display: inline-block;
  height: 14px;
  width: 4px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(0, 38, 76, 0.62) 0%, rgba(0, 55, 104, 0.32) 46%, rgba(0, 38, 76, 0.08) 100%),
    url("../imagens/banners/Banner-Capa-Site-Programa_1920x480.png");
  background-color: var(--blue);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  min-height: clamp(300px, 24vw, 460px);
  overflow: hidden;
  padding: 36px 6vw;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, var(--orange), rgba(232, 73, 16, 0));
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  min-height: inherit;
  position: relative;
  width: 100%;
}

.hero-content {
  align-self: center;
  max-width: 560px;
  position: relative;
  z-index: 2;
}
  .hero-program-logo {
    margin-bottom: 14px;
    max-width: min(220px, 70vw);
  }

.hero-kicker {
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.04;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-kicker span {
  color: var(--orange);
}
  .hero-subtitle {
    font-size: 0.95rem;
  }
.hero-copy {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hero-copy h1.brand-heading {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.03;
  margin: 0 0 22px;
}

.hero-copy h1.brand-heading span {
  color: var(--orange);
}

.hero-lead {
  color: #fff;
  font-size: 1.14rem;
  line-height: 1.45;
  margin: 0;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.hero-course-button {
  background: linear-gradient(135deg, #16b83f, #02a52e);
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(0, 115, 46, 0.24);
  color: #fff;
  font-size: 1rem;
  min-height: 46px;
  padding: 0 24px;
}

.hero-course-button:hover {
  background: linear-gradient(135deg, #11a837, #008b28);
}

.hero-actions .button.secondary,
.hero-actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}


.movements-section {
  padding-top: 64px;
}

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

.movement-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(0, 43, 87, 0.08);
  min-height: 230px;
  padding: 34px 28px;
}

.movement-number {
  color: var(--orange);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 26px;
}

.movement-card h3 {
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: none;
}

.movement-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.movement-card-featured {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.movement-card-featured .movement-number,
.movement-card-featured h3,
.movement-card-featured p {
  color: #fff;
}

.knowledge-band {
  background: var(--blue);
  color: #fff;
  margin-top: 0;
}

.knowledge-section {
  padding-bottom: 38px;
  padding-top: 42px;
}

.knowledge-grid {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.knowledge-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3.55vw, 3rem);
  line-height: 1.08;
  margin: 0;
  max-width: 650px;
}

.knowledge-copy p:not(.eyebrow) {
  color: #f1f6fb;
  font-size: 1rem;
  margin: 22px 0 0;
  max-width: 650px;
}

.knowledge-mark {
  background: #cf4e35;
  display: block;
  height: 16px;
  margin-top: 42px;
  transform: skewX(-24deg);
  width: min(260px, 60vw);
}

.knowledge-card {
  align-items: flex-start;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 54px rgba(0, 43, 87, 0.24);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 34px 52px;
}

.knowledge-bars {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
  width: 210px;
}

.knowledge-bars span {
  border-radius: 4px;
  display: block;
  height: 20px;
  transform: skewX(-28deg);
}

.knowledge-bars span:nth-child(1) {
  background: #cf4e35;
  width: 154px;
}

.knowledge-bars span:nth-child(2) {
  background: #50aad7;
  margin-left: 62px;
  width: 154px;
}

.knowledge-bars span:nth-child(3) {
  background: #f1efec;
  margin-left: 20px;
  width: 154px;
}

.knowledge-bars span:nth-child(4) {
  background: var(--blue);
  margin-left: 40px;
  width: 154px;
}

.knowledge-card strong {
  color: var(--blue);
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1.08;
}

.knowledge-footer {
  color: #dbe8f6;
  font-size: 1rem;
  font-weight: 700;
  margin: 30px 0 0;
}

.site-footer {
  background: var(--blue-dark);
  color: #dbe6f3;
  margin-top: 0;
  padding: 48px 6vw 24px;
}

.form-page {
  padding-bottom: 0;
}

.site-footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.site-footer-brand p {
  color: #b7c8de;
  font-size: 0.92rem;
  margin: 14px 0 0;
  max-width: 340px;
}

.brand-tagline-footer {
  border-left: 0;
  color: var(--orange);
  font-size: 1.2rem;
  padding-left: 0;
}

.brand-tagline-footer em {
  color: #fff;
}

.site-footer-links {
  display: grid;
  gap: 10px;
}

.site-footer-links h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.site-footer-links a {
  color: #b7c8de;
  font-size: 0.92rem;
  text-decoration: none;
  width: fit-content;
}

.site-footer-links a:hover {
  color: var(--orange);
}

.site-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 36px auto 0;
  max-width: 1120px;
  padding-top: 18px;
}

.site-footer-bottom span,
.site-footer-bottom a {
  color: #94a9c4;
  font-size: 0.84rem;
}

.site-footer-brandmark {
  color: var(--orange);
  font-family: "Oswald", Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 34px 6vw;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy h1.brand-heading {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.08;
    margin: 0 0 18px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-course-button {
    justify-content: center;
    min-width: 0;
    padding: 0 22px;
    width: 100%;
  }
  .hero-program-logo {
    margin-bottom: 14px;
    max-width: min(220px, 70vw);
  }

  .hero-kicker {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }

  .movement-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-mark {
    margin-top: 34px;
  }

  .knowledge-card {
    min-height: 260px;
    padding: 36px 34px;
  }

  .knowledge-bars {
    margin-bottom: 34px;
    max-width: 100%;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

.moodle-report-job{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-top:14px;min-width:0}.moodle-report-job p{flex-basis:100%;margin:0;padding:10px;background:#edf5fb;border-radius:6px}.moodle-report-job p[data-error="true"]{background:#ffe2e2;color:#ad1818}.moodle-report-job label{display:grid;gap:5px;flex:1;min-width:180px}.moodle-report-job select{width:100%;max-width:100%}

.moodle-report-job{grid-column:1 / -1;width:100%}.moodle-report-job label{flex:1 1 260px;min-width:0}
