* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 16px/1.6 Arial, Helvetica, sans-serif;
  color: #23364d;
  background: #f4f6f9;
}
a {
  color: #155b86;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #154b70;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #103b59;
  text-decoration: none;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  color: #36516b;
  background: #fff;
  border-color: #dbe3eb;
}
.danger {
  background: #a33434;
}
.full {
  width: 100%;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #a96125;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin-bottom: 9px;
}
h2 {
  font-size: 21px;
}
p {
  color: #4f6073;
}
small {
  font-size: 12px;
  color: #526478;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
label:has(> input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}
input[type="checkbox"] {
  width: auto;
}
[hidden] {
  display: none !important;
}
.enrollment-qr { max-width: 100%; height: auto; display: block; margin: 20px auto; }
.enrollment-public { max-width: 720px; margin: 24px auto; }
.enrollment-logo { display: block; max-width: 100%; height: auto; margin-bottom: 20px; }
.enrollment-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.suggestion-field { position: relative; }
.student-indicators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.student-indicators .card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.student-indicators strong { font-size: 28px; color: #174b69; }
.student-indicators small { color: #586b7d; }
@media (max-width: 700px) { .student-indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .student-indicators .card { padding: 14px; } }
.course-suggestions { position: absolute; top: 68px; left: 0; right: 0; max-height: 240px; overflow-y: auto; z-index: 10; background: white; border: 1px solid #cad4db; border-radius: 6px; box-shadow: 0 6px 18px #12344d22; }
.course-suggestions [role="option"] { padding: 12px; cursor: pointer; border-bottom: 1px solid #edf1f4; font-weight: 400; }
.course-suggestions [role="option"]:hover, .course-suggestions [aria-selected="true"] { background: #edf5fa; }
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: #24384e;
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 6px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #3177a0;
  box-shadow: 0 0 0 3px #3177a018;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
:focus-visible {
  outline: 3px solid #dc8b43;
  outline-offset: 3px;
}
.site-footer {
  padding: 18px 38px;
  font-size: 12px;
  color: #526478;
  display: flex;
  justify-content: space-between;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  margin-bottom: 0;
  font-size: 14px;
}
.card {
  padding: 26px;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  margin-bottom: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.filters label {
  margin: 0;
  flex: 1;
  min-width: 150px;
}
.filters button {
  height: 46px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #526478;
  background: #f7f9fb;
  padding: 14px;
}
td {
  padding: 17px 14px;
  border-bottom: 1px solid #edf1f4;
}
td small {
  display: block;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  background: #edf5f1;
  color: #33785b;
  font-size: 12px;
  white-space: nowrap;
}
.empty {
  text-align: center;
  padding: 45px;
  color: #53677c;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 12px;
  color: #526478;
}
.pagination-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagination .pagination-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid #d5e2ed; border-radius: 11px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .15s, border-color .15s; }
.pagination .pagination-previous { background: #fff; color: #174d79; }
.pagination .pagination-previous:hover { background: #edf5fc; border-color: #9fbdd4; }
.pagination .pagination-next { background: #154b70; color: #fff; border-color: #154b70; box-shadow: 0 3px 8px #12344d14; }
.pagination .pagination-next:hover { background: #103b59; border-color: #103b59; }
.pagination .pagination-button:focus-visible { outline: 3px solid #73b5e3; outline-offset: 3px; }
@media (max-width: 600px) {
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination-actions { width: 100%; }
  .pagination .pagination-button { flex: 1; padding-inline: 12px; }
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat {
  padding: 23px;
  border: 1px solid #e4eaf0;
  background: #fff;
  border-radius: 10px;
}
.stat small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.stat strong {
  display: block;
  font-size: 33px;
  font-weight: 600;
  color: #183e5b;
  margin: 6px 0;
}
.stat p {
  font-size: 12px;
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.auth-card {
  max-width: 490px;
  margin: 9vh auto;
  background: white;
  border: 1px solid #e0e7ed;
  padding: 38px;
  border-radius: 12px;
}
.qr {
  display: block;
  margin: 20px auto;
  max-width: 100%;
}
.secret {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 15px 0;
}
.guest .main {
  min-height: calc(100vh - 56px);
  display: flow-root;
}
.login-shell {
  max-width: 1050px;
  margin: 10vh auto 5vh;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 60px #183e5b10;
  min-height: 610px;
}
.login-intro {
  background: radial-gradient(ellipse at 95% 5%, #309cdd55, transparent 60%),
    linear-gradient(140deg, #092a50 0%, #125287 55%, #08335e 100%);
  padding: 54px 45px;
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.login-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(140deg, #000, transparent 85%);
}
.login-intro img {
  display: block;
  width: 95px;
  height: 95px;
  object-fit: contain;
  margin-bottom: 46px;
}
.login-intro .eyebrow {
  color: #eca365;
}
.login-intro h1 {
  font-size: 34px;
  margin: 20px 0;
  line-height: 1.3;
}
.login-intro p {
  color: #d0e3f2;
  font-size: 14px;
  max-width: 340px;
}
.intro-line {
  width: 45px;
  height: 3px;
  background: #e88331;
  margin: 37px 0 20px;
}
.login-intro small {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: #bfd6e8;
}
.login-form {
  background: #fff;
  padding: 83px 53px 45px;
}
.login-form h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 14px 0 10px;
}
.login-form > p {
  font-size: 14px;
  margin-bottom: 32px;
}
.login-form button[type="submit"], .login-form button:not([type]) {
  margin-top: 7px;
  justify-content: space-between;
}
.muted-link {
  display: block;
  text-align: center;
  font-size: 12px;
  margin: 20px 0;
}
.security-note {
  border-top: 1px solid #edf0f3;
  padding-top: 22px;
  margin-top: 30px;
  font-size: 12px;
  color: #526478;
  text-align: center;
}
.login-form > .login-credit { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: #4f6376; }
.password-field { margin-bottom: 20px; }
.password-field label { margin-bottom: 7px; }
.password-input { position: relative; }
.password-input input { padding-right: 54px; }
.password-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 42px; height: 40px; padding: 10px; border: 0; background: transparent; color: #526d85; border-radius: 8px; }
.password-toggle:hover { background: #edf3f8; color: #154b70; }
.password-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.password-eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-slash { display: block; }
.factor-form { min-width: 0; padding-top: 48px; }
.factor-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-top: 22px; border: 1px solid #d7e8f5; border-radius: 16px; background: #edf6fc; color: #155487; }
.factor-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.factor-form label { margin-bottom: 8px; }
.factor-code { font-size: 26px; font-weight: 600; letter-spacing: .3em; text-align: center; padding: 13px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.factor-code::placeholder { color: #a0b2c1; }
.factor-help { font-size: 12px; margin: 10px 0 18px; }
.factor-exit { margin-top: 10px; }
.factor-form .factor-exit button { justify-content: center; }
.factor-exit .secondary:hover { background: #edf3f8; color: #154b70; }
.factor-setup { margin-bottom: 24px; border: 1px solid #e0e9f1; border-radius: 12px; padding: 12px; background: #f8fbfe; }
.factor-setup .qr { margin: 0 auto 14px; height: auto; }
.factor-setup summary { cursor: pointer; font-size: 12px; color: #155487; }
.factor-setup details p { margin: 12px 0 0; font-size: 12px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.details-grid strong {
  display: block;
  font-size: 14px;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #dfe6ed;
  padding-bottom: 15px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.inline-form {
  display: inline;
}
.inline-form button {
  padding: 6px 10px;
  font-size: 12px;
}
.preview {
  width: 100%;
  height: 720px;
  border: 1px solid #dae3eb;
}
@media (max-width: 900px) {
  .login-shell {
    margin: 30px 20px;
    grid-template-columns: 1fr 1fr;
  }
  .login-intro,
  .login-form {
    padding: 35px 27px;
  }
  .login-intro h1 {
    font-size: 27px;
  }
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .login-shell {
    display: block;
    margin: 20px;
  }
  .login-intro {
    padding: 25px;
  }
  .login-intro img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  .login-intro h1 {
    font-size: 24px;
    margin: 10px 0;
  }
  .login-intro p,
  .intro-line,
  .login-intro small {
    display: none;
  }
  .login-form {
    padding: 32px 25px;
  }
  .form-grid,
  .stats,
  .details-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .card {
    padding: 19px;
  }
  .site-footer span {
    display: none;
  }
  .auth-card {
    margin: 40px 20px;
    padding: 25px;
  }
  .filters {
    align-items: stretch;
    flex-direction: column;
  }
}

.instructor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.instructor-list small {
  display: block;
}
.course-note {
  margin: 18px 0 0;
  font-size: 14px;
}
.localities-message {
  flex-basis: 100%;
}
.details-grid strong,
.page-heading h1 {
  overflow-wrap: anywhere;
}
.data-use-notice { text-align: justify; hyphens: auto; }
.notice-acceptance { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 20px 0; border: 1px solid #c8d6e5; border-radius: 12px; background: #f4f8fc; cursor: pointer; }
.notice-acceptance input[type="checkbox"] { appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; padding: 0; border: 2px solid #637b93; border-radius: 7px; background: white; cursor: pointer; display: grid; place-content: center; }
.notice-acceptance input:checked { background: #175a80; border-color: #175a80; }
.notice-acceptance input:checked::after { content: '✓'; color: white; font-size: 18px; font-weight: bold; }
.notice-acceptance input:focus-visible { outline: 3px solid #75b9ee; outline-offset: 3px; }
.enrollment-link { overflow-wrap: anywhere; }
.enrollment-course { padding: 18px 0; border-bottom: 1px solid #dce4ec; }

dialog[data-sign-dialog]{max-width:min(520px,calc(100vw - 32px));border:0;border-radius:12px;padding:24px}
dialog[data-sign-dialog]::backdrop{background:rgb(10 30 45 / 65%)}
.document-preview{display:block;width:100%;height:75vh;min-height:480px;border:1px solid #d8e1e8;background:#fff}
.completion-selection{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem 0}
.completion-selection label{display:flex;align-items:center;gap:.6rem;margin:0}
.completion-selection input,.completion-check input{width:1.15rem;height:1.15rem;accent-color:#164d6b}
.completion-selection [role=status]{color:#526a7a}
.completion-table .completion-person small{display:block;margin-top:.4rem}
.completion-pending{background:#eef2f5;color:#526a7a}
.completion-table tr:has(input:checked){background:#edf6fb}
.completion-actions{flex-wrap:wrap;position:sticky;bottom:12px;z-index:2;padding:.8rem;background:#fff;border:1px solid #d8e1e8;border-radius:10px;box-shadow:0 3px 14px #12344d12}
@media(max-width:760px){
 .completion-table thead{display:none}
 .completion-table tbody tr{display:grid;grid-template-columns:28px minmax(0,1fr);gap:.3rem .5rem;padding:1rem 0;border-bottom:1px solid #d8e1e8}
 .completion-table tbody td{border:0;padding:.3rem 0;white-space:normal;overflow-wrap:anywhere}
 .completion-table .completion-check{grid-column:1;grid-row:1}
 .completion-table .completion-person{grid-column:2;grid-row:1}
 .completion-table .completion-state,.completion-table .completion-links{grid-column:2}
 .completion-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;bottom:6px}
 .completion-actions button[value=validar_ata]{grid-column:1/-1}
}
/* Indicadores compartilhados pelo painel e relatórios. */
.report-indicators{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
@media(max-width:600px){.report-indicators{grid-template-columns:1fr}}
