.woovi-dialog { box-sizing: border-box; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; overflow: auto; }
.woovi-payment-dialog { width: min(1040px, calc(100% - 24px)); }
.woovi-list-heading, .woovi-batch-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.woovi-list-heading h3, .woovi-payment-dialog h3 { margin: 0; font-size: 16px; }
.woovi-list-heading span, .woovi-batch-heading span { font-size: 12px; color: var(--muted); }
.woovi-list { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.woovi-list-row { display: grid; grid-template-columns: 26px minmax(180px, 1fr) 100px 145px 150px; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.woovi-list-row[data-selected="true"] { border-color: #9cb7e8; background: #f3f7ff; }
.woovi-list-row .woovi-list-detail { border: 0; background: none; color: var(--navy); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.woovi-list-row small { color: var(--muted); }
.woovi-list-row select { width: 100%; }
.woovi-batch { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f7faff; }
.woovi-batch .woovi-actions { justify-content: flex-start; }
.woovi-batch-reviewed { display: grid; gap: 5px; max-height: 240px; overflow: auto; margin: 12px 0; font-size: 13px; overflow-wrap: anywhere; }
.woovi-batch-reviewed p { margin: 0 0 5px; font-weight: 700; }
#wooviBatchSendForm .check-row { margin: 14px 0; align-items: flex-start; }
.woovi-dialog::backdrop { background: rgba(5, 17, 38, .5); }
.woovi-heading, .woovi-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.woovi-heading h2 { font-size: 20px; margin: 0; }
.woovi-dialog p { line-height: 1.5; overflow-wrap: anywhere; }
.woovi-dialog .form-message { color: var(--muted); }
.woovi-dialog .field { width: 100%; min-width: 0; margin: 14px 0; }
.woovi-dialog select, .woovi-dialog input { max-width: 100%; min-width: 0; }
.woovi-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px 0; border-block: 1px solid var(--line); }
.woovi-summary dt { color: var(--muted); font-size: 12px; }
.woovi-summary dd { margin: 5px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.woovi-wide { grid-column: 1 / -1; }
#wooviSendForm { margin: 18px 0; padding: 16px 0; border-block: 1px solid var(--line); }
#wooviSendForm .check-row { margin: 18px 0; align-items: flex-start; }
.woovi-dialog .button { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.period-commission-dialog { width: min(760px, calc(100% - 24px)); }
.period-commission-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.period-commission-values > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7faff; }
.period-commission-values span, .period-commission-values strong { display: block; }
.period-commission-values span { color: var(--muted); font-size: 12px; }
.period-commission-values strong { margin-top: 4px; color: var(--navy); font-size: 20px; }
.period-commission-dialog .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; }
.period-commission-dialog .section-heading h3 { margin: 0; font-size: 16px; }
.period-commission-users { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 280px; overflow: auto; }
.period-commission-user { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 9px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.period-commission-user .field { margin: 0; }
.period-commission-user .check-row span { overflow-wrap: anywhere; }
.period-commission-dialog textarea { width: 100%; min-height: 72px; }
@media (max-width: 600px) { .period-commission-users, .period-commission-values { grid-template-columns: 1fr; } }
#wooviRefresh { margin-top: 16px; }
@media (max-width: 480px) {
  .woovi-dialog { padding: 18px; }
  .woovi-list-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .woovi-list-row small { grid-column: 2; }
  .woovi-list-row select { grid-column: 2 / -1; }
  .woovi-summary { grid-template-columns: minmax(0, 1fr); }
  .woovi-actions { align-items: stretch; flex-direction: column; }
  #wooviSend { width: 100%; }
}

.security-settings { padding: 24px 0; border-bottom: 1px solid var(--line); }
.security-settings h2 { margin: 6px 0; font-size: 20px; }
.security-settings [data-enabled="true"] { color: #248141; }
.security-form { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 14px 0; }
.security-form .field { width: 280px; max-width: 100%; }
.security-enrollment { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr); gap: 24px; padding: 20px 0; }
.security-enrollment > div { min-width: 0; }
.security-enrollment .security-form { display: block; }
.security-enrollment .field { margin-bottom: 18px; width: 100%; }
.security-enrollment img { display: block; background: #fff; width: 240px; height: 240px; max-width: 100%; object-fit: contain; }
.security-enrollment input[readonly] { width: 100%; font-family: monospace; padding: 10px; border: 1px solid var(--line); }
.security-recovery { padding: 16px 0; border-block: 1px solid var(--line); }
.security-recovery ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; gap: 12px; list-style: none; font-family: monospace; overflow-wrap: anywhere; }
.security-settings summary { cursor: pointer; padding: 10px 0; }
.security-settings .form-message { color: var(--muted); }
@media (max-width: 650px) {
  .security-settings .security-enrollment { grid-template-columns: minmax(0, 1fr); }
  .security-settings .security-form .field { width: 100%; }
  .security-settings .security-recovery ul { grid-template-columns: minmax(0, 1fr); }
}
.polo-heading-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.polo-subtabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 20px 0 24px; }
.polo-subtabs button { border: 0; border-bottom: 3px solid transparent; padding: 12px 4px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.polo-subtabs button[aria-selected="true"] { border-bottom-color: var(--navy); color: var(--navy); }
.polo-subtabs button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.settlements-dialog { width: 100%; min-width: 0; color: var(--ink); }
.settlements-heading h2 { font-size: 22px; margin: 5px 0 0; }
.settlements-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin: 22px 0; }
.settlements-toolbar .field { width: 230px; max-width: 100%; }
.settlements-toolbar > strong { margin-left: auto; padding: 10px 0; }
.settlements-totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); margin: 18px 0; }
.settlements-totals > div { padding: 18px 12px; min-width: 0; }
.settlements-totals span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.settlements-totals strong { font-size: 21px; overflow-wrap: anywhere; }
.settlements-totals .is-paid { color: #248141; }
.settlements-totals .is-pending { color: #ad4024; }
.settlements-totals small, .settlements-value-label { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.settlements-blocker { display: block; margin-top: 6px; max-width: 280px; color: #913611; line-height: 1.4; }
.settlements-calculation { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 16px; margin: 16px 0; }
.settlements-calculation dt { color: var(--muted); font-size: 12px; }
.settlements-calculation dd { margin: 6px 0 0; font-weight: 700; }
.settlements-selection { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 6px 0 16px; }
.settlements-selection .button { margin-left: 0; }
.settlements-selection #settlementsZeroSelected { margin-left: auto; }
.settlements-table { min-width: 820px; }
.settlements-table th, .settlements-table td { white-space: normal; }
.settlements-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); }
.settlements-table td:first-child { text-align: center; width: 70px; }
.settlements-table td:nth-child(2) { min-width: 170px; }
.settlements-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 7px; border-radius: 4px; background: #edf1f7; color: #213d66; }
.settlements-badge[data-status="FECHADO_PENDENTE"] { color: #913611; background: #fff0df; }
.settlements-badge[data-status="QUITADO"] { color: #226c3c; background: #eaf6ee; }
.settlements-details > td { text-align: left !important; padding: 18px !important; background: #f7f9fc; }
.settlements-details h4 { margin: 6px 0 12px; font-size: 14px; }
.settlements-details .data-table { min-width: 600px; background: #fff; margin-bottom: 18px; }
.settlements-details .data-table td { text-align: left; }
.settlements-rounds { margin: 0; padding-left: 20px; line-height: 1.8; }
.settlements-alert { padding: 12px 14px; background: #fff6e8; border-left: 3px solid #c8791d; line-height: 1.6; }
.settlements-alert button { margin: 3px 6px; }
.settlements-preview { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--navy); }
.settlements-preview-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settlements-preview-row small { display: block; margin-top: 5px; color: var(--muted); }
.settlements-preview-row.is-error small { color: var(--red); }
.settlements-confirm { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-top: 20px; }
.settlements-transaction-table { min-width: 620px; margin: 10px 0 22px; }
.settlements-transaction-table input, .settlements-transaction-table select { width: 100%; min-width: 180px; min-height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.settlements-dialog .settlements-transaction-table th:nth-child(1), .settlements-dialog .settlements-transaction-table td:nth-child(1) { width: 120px; min-width: 120px; white-space: nowrap; }
.settlements-dialog .settlements-transaction-table th:nth-child(2), .settlements-dialog .settlements-transaction-table td:nth-child(2) { width: 32%; }
.settlements-dialog .settlements-table > thead > tr > th:first-child, .settlements-dialog .settlements-table > tbody > tr:not(.settlements-details) > td:first-child { width: 88px; min-width: 88px; }
.settlements-dialog .form-message { color: var(--muted); }
.settlements-dialog .data-table { table-layout: auto; }
.settlements-dialog .settlements-table-wrap { max-height: none; }
.settlements-dialog .settlements-details .data-table th:first-child,
.settlements-dialog .settlements-details .data-table td:first-child { width: 28%; min-width: 180px; text-align: left; }
.settlements-dialog .settlements-details .data-table th:nth-child(2),
.settlements-dialog .settlements-details .data-table td:nth-child(2) { width: 120px; min-width: 120px; }
.settlements-sheets { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.settlements-sheet { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.settlements-sheet span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .settlements-dialog { width: 100%; }
  .settlements-heading { align-items: start; gap: 12px; flex-direction: column; }
  .settlements-heading h2 { font-size: 18px; }
  .settlements-toolbar .field { width: 100%; }
  .settlements-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settlements-totals strong { font-size: 18px; }
  .settlements-selection .button { margin-left: 0; width: 100%; }
  .polo-heading-actions { justify-content: flex-start; }
}

:root {
  --navy: #061531;
  --navy-soft: #132545;
  --green: #33a957;
  --green-deep: #248141;
  --red: #c93232;
  --ink: #20242a;
  --muted: #68717d;
  --line: #d9dee5;
  --panel: #ffffff;
  --page: #f3f5f8;
  --row: #f7f9fb;
  --row-alt: #eef2f6;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.logo-slot {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: start;
  min-width: 92px;
  min-height: 52px;
}

.logo-image {
  display: none;
  max-width: 128px;
  max-height: 58px;
  object-fit: contain;
}

.logo-image.is-loaded {
  display: block;
}

.logo-image.is-loaded + .institution-mark {
  display: none;
}

.institution-mark {
  color: var(--navy);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.institution-mark span {
  color: var(--green);
}

.topbar-title p,
.topbar-title h1 {
  margin: 0;
}

.topbar-title p {
  color: var(--muted);
  font-size: 13px;
}

.topbar-title h1 {
  margin-top: 3px;
  font-size: 20px;
  text-transform: uppercase;
}

.topbar-meta {
  color: var(--navy);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions .button {
  min-height: 30px;
}

.refresh-data-button {
  border-color: #1f7a4f;
  color: #145c3a;
  min-width: 112px;
}

.refresh-data-button:disabled {
  color: var(--muted);
}

.user-identity {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  max-width: 260px;
  overflow: hidden;
  padding: 7px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-button {
  align-items: center;
  background: #fff;
  border: 1px solid #aeb7c2;
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
}

.notification-button span {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.notification-button strong {
  font-size: 12px;
}

.notification-button.has-notifications {
  background: #fff7d6;
  border-color: #d6a300;
  color: #8a6500;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) minmax(260px, 330px);
  gap: 14px;
  padding: 14px;
}

.filter-panel,
.results-panel,
.selected-panel,
.report-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-panel,
.selected-panel {
  padding: 14px;
  position: relative;
  z-index: 2;
}

.results-panel,
.report-preview {
  overflow: hidden;
}

.report-preview {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  text-transform: uppercase;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-small {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 34px;
  border: 1px solid #b9c1cc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.field input:disabled,
.field select:disabled {
  background: #eef1f4;
  color: #7c858f;
}

.field-wide {
  margin-bottom: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button-row,
.button-stack {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.button-stack {
  flex-direction: column;
}

.button {
  min-height: 34px;
  border: 1px solid #aeb7c2;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
}

.button:hover:not(:disabled) {
  background: #f1f4f7;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: var(--navy-soft);
}

.link-button {
  border: 0;
  background: transparent;
  color: #0b70c9;
  cursor: pointer;
  display: block;
  font-weight: 700;
  margin: 10px auto 0;
  padding: 0;
  text-decoration: underline;
}

.table-wrap {
  overflow: auto;
  max-height: 390px;
}

.data-table,
.report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e5e9ef;
  padding: 8px 9px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.data-table td:nth-child(8) {
  overflow-wrap: normal;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}

.data-table tbody tr:nth-child(even) {
  background: var(--row);
}

.data-table tbody tr:hover {
  background: #e7f3ec;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  width: 44px;
  text-align: center;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  width: 70px;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
  width: 110px;
  text-align: center;
}

.data-table th:nth-child(8),
.data-table td:nth-child(8) {
  width: 92px;
  text-align: center;
}

.empty-cell,
.empty-state {
  color: var(--muted);
  text-align: center;
}

.empty-cell {
  height: 120px;
}

.selected-list {
  display: grid;
  gap: 8px;
  min-height: 180px;
}

.selected-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.selected-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.selected-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.selected-item button {
  margin-top: 8px;
  min-height: 28px;
}

.report-filter-box {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
}

.report-status-dropdown {
  position: relative;
}

.report-status-dropdown summary {
  align-items: center;
  background: #fff;
  border: 1px solid #b9c1cc;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  height: 34px;
  justify-content: space-between;
  list-style: none;
  padding: 0 10px;
}

.report-status-dropdown summary::-webkit-details-marker {
  display: none;
}

.report-status-dropdown summary::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-left: 10px;
  transform: rotate(45deg) translateY(-2px);
}

.report-status-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.report-status-dropdown summary span {
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-status-options {
  background: #fff;
  border: 1px solid #b9c1cc;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgb(10 24 51 / 14%);
  left: 0;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
}

.report-status-all,
.report-status-options label {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  display: flex;
  font-size: 12px;
  gap: 8px;
  min-height: 30px;
  padding: 4px 8px;
  width: 100%;
}

.report-status-all {
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.report-status-all[aria-pressed="true"] {
  background: #e9f0fa;
  color: var(--navy);
}

.report-status-options label:hover,
.report-status-all:hover {
  background: #f1f4f7;
}

.report-status-options label:focus-within,
.report-status-all:focus-visible,
.report-status-dropdown summary:focus-visible {
  outline: 2px solid #3575c5;
  outline-offset: 1px;
}

.report-status-options input[type="checkbox"] {
  flex: 0 0 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  width: 16px;
}

.report-status-options label span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.report-filter-group {
  display: grid;
  gap: 8px;
}

.report-filter-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.metric-filter {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px 1fr;
  min-width: 0;
}

.metric-filter span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
}

.report-pages {
  padding: 16px;
  overflow-x: auto;
}

.report-page {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  margin: 0 auto 18px;
  max-width: 1120px;
  min-width: 980px;
  min-height: 760px;
  padding: 24px 28px;
}

.report-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}

.report-logo {
  position: relative;
  color: var(--navy);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  min-width: 112px;
  min-height: 62px;
}

.report-logo-image {
  display: none;
  max-width: 138px;
  max-height: 68px;
  object-fit: contain;
}

.report-logo-image.is-loaded {
  display: block;
}

.report-logo-image.is-loaded + .report-logo-fallback {
  display: none;
}

.report-logo span {
  color: var(--green);
}

.institution-data h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.institution-data p {
  margin: 1px 0;
  font-size: 11px;
}

.report-date {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.report-title,
.report-subtitle {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.report-title {
  font-size: 16px;
}

.report-subtitle {
  margin: 14px 0 16px;
  font-size: 14px;
}

.report-table th,
.report-table td {
  border: 1px solid #e3e7ed;
  font-size: 11px;
  padding: 6px 7px;
  text-align: center;
  vertical-align: middle;
}

.report-table th {
  background: var(--navy);
  color: #fff;
  font-size: 10px;
}

.report-table tbody tr:nth-child(even) {
  background: var(--row-alt);
}

.report-table td.name-cell {
  text-align: left;
}

.report-table td.notes-cell {
  font-size: 10px;
  text-align: left;
  white-space: normal;
}

.status-active,
.average-cell {
  background: var(--green);
  color: #fff;
}

.paid-cell {
  color: var(--green-deep);
  font-weight: 700;
}

.status-danger,
.average-danger {
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.status-transfer {
  background: #d97706;
  color: #fff;
  font-weight: 700;
}

.status-waiting {
  background: #1d6fd1;
  color: #fff;
  font-weight: 700;
}

.status-desistente {
  background: #7c3aad;
  color: #fff;
  font-weight: 700;
}

.status-neutral {
  background: #6b7280;
  color: #fff;
  font-weight: 700;
}

.overdue-cell {
  color: var(--red);
  font-weight: 700;
}

.average-cell {
  font-weight: 700;
}

.average-pending {
  color: #6b7280;
  font-weight: 700;
}

.auth-gate,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(6, 21, 49, 0.55);
  padding: 18px;
}

.auth-gate[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.auth-box,
.settings-modal,
.incentives-modal {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(6, 21, 49, 0.25);
  padding: 22px;
}

.auth-logo {
  display: block;
  max-width: 132px;
  max-height: 62px;
  object-fit: contain;
  margin-bottom: 14px;
}

.auth-box h2,
.settings-modal h2,
.incentives-modal h2,
.modal-head p {
  margin: 0;
}

.auth-box h2,
.settings-modal h2,
.incentives-modal h2 {
  color: var(--navy);
  text-transform: uppercase;
}

.auth-box p,
.modal-head p {
  color: var(--muted);
  font-size: 12px;
}

.auth-box .field {
  margin-top: 12px;
}

.auth-box .button-primary {
  width: 100%;
  margin-top: 14px;
}

.auth-gate {
  align-content: center;
  background: #fff;
  place-items: center;
}

.auth-gate .auth-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  justify-items: center;
  padding: 0;
  width: min(100%, 560px);
}

.auth-gate .auth-logo {
  background: #fff;
  margin: 0 0 42px;
  max-height: 96px;
  max-width: 190px;
  padding: 14px 24px;
}

.auth-report-title {
  color: #061531;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 26px;
  text-align: center;
  text-transform: uppercase;
}

.auth-report-title span {
  display: block;
}

.auth-frame {
  border: 2px solid #c7d0db;
  border-radius: 10px;
  padding: 14px 28px 18px;
  width: 100%;
}

.auth-frame h2 {
  background: #fff;
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
  margin: 0 auto 14px;
  padding: 8px 16px;
  text-align: center;
  width: fit-content;
}

.auth-frame > p {
  display: none;
}

.auth-card {
  background: #fff;
  padding: 10px 26px 14px;
}

.auth-card .field {
  margin-top: 0;
}

.auth-card .field + .field {
  margin-top: 16px;
}

.auth-card .field span {
  color: var(--navy-soft);
}

.auth-card .field input {
  height: 38px;
}

.auth-card .button-primary {
  height: 40px;
  margin-top: 16px;
}

.auth-card .link-button {
  margin-top: 12px;
}

.reset-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.form-message {
  min-height: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.settings-modal {
  width: min(100%, 980px);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.incentives-modal {
  width: min(100%, 1240px);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 16px;
}

.settings-list,
.settings-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.user-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
}

.user-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.user-row.is-selected,
.user-row:hover {
  border-color: var(--navy);
  background: #f3f6fa;
}

.user-row strong,
.user-row span {
  display: block;
}

.user-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.staff-fields {
  display: grid;
  gap: 10px;
  border-block: 1px solid var(--line);
  padding-block: 12px;
  min-width: 0;
}

.staff-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.staff-search-results {
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.staff-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.staff-result:hover {
  border-color: var(--navy);
  background: #f3f6fa;
}

.staff-result span,
.staff-note {
  color: var(--muted);
  font-size: 12px;
}

.staff-note {
  margin: 0;
}

.check-row {
  display: flex;
  gap: 18px;
  color: var(--navy-soft);
  font-weight: 700;
}

.permission-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy-soft);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  padding: 9px 10px;
}

.field-label {
  color: var(--navy-soft);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.campus-permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
}

.reset-requests-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 16px;
  padding: 12px;
}

.reset-request-list {
  display: grid;
  gap: 8px;
}

.reset-request-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 10px;
}

.reset-request-item.is-pending {
  border-color: #d6a300;
  background: #fffaf0;
}

.reset-request-item strong,
.reset-request-item span {
  display: block;
}

.reset-request-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.copy-message-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.copy-message-box textarea {
  border: 1px solid #b9c1cc;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 130px;
  resize: vertical;
  width: 100%;
}

.incentive-filters {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
  padding: 12px;
}

.incentive-actions {
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.incentive-table-wrap {
  max-height: 540px;
}

.incentive-table {
  min-width: 1180px;
}

.incentive-table th:nth-child(1),
.incentive-table td:nth-child(1) {
  width: 44px;
  text-align: center;
}

.incentive-table th:nth-child(2),
.incentive-table td:nth-child(2) {
  width: 100px;
}

.incentive-table th:nth-child(3),
.incentive-table td:nth-child(3) {
  width: 210px;
}

.incentive-table th:nth-child(4),
.incentive-table td:nth-child(4) {
  width: 120px;
  text-align: center;
}

.incentive-table th:nth-child(9),
.incentive-table td:nth-child(9) {
  width: 130px;
  text-align: center;
}

.incentive-table th:nth-child(8),
.incentive-table td:nth-child(8) {
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
  width: 150px;
}

.incentive-badge {
  border: 1px solid #c5ccd6;
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}

.incentive-badge.is-active {
  background: #e6f6ec;
  border-color: var(--green);
  color: var(--green-deep);
}

.report-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 26px;
  color: var(--navy);
  font-weight: 700;
}

.audit-box {
  margin-top: 16px;
  border: 1px solid var(--line);
}

.audit-box h4 {
  margin: 0;
  background: #f2f5f8;
  color: var(--navy);
  font-size: 12px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
}

.audit-table th,
.audit-table td {
  border-top: 1px solid #e3e7ed;
  font-size: 10px;
  padding: 6px 8px;
  text-align: left;
}

.audit-table th {
  color: var(--navy);
  background: #fbfcfd;
}

.confidence {
  display: inline-block;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  white-space: nowrap;
}

.confidence-alta {
  background: var(--green-deep);
}

.confidence-media,
.confidence-baixa {
  background: #8a6d18;
}

.confidence-revisao {
  background: var(--red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.polo-workspace {
  padding: 20px 26px 40px;
}

.polo-heading,
.polo-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.polo-heading {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.polo-heading h2 {
  font-size: 19px;
  margin: 0 0 3px;
}

.polo-heading span,
.polo-status {
  color: var(--muted);
  font-size: 12px;
}

.polo-toolbar .field {
  min-width: min(260px, 100%);
}

.polo-toolbar .button {
  min-height: 36px;
}

.polo-status {
  min-height: 18px;
  margin: 12px 0;
}

.polo-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.polo-metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 80px;
  padding: 12px;
}

.polo-metric span,
.polo-metric strong {
  display: block;
}

.polo-metric span {
  color: var(--muted);
  font-size: 12px;
}

.polo-metric strong {
  font-size: 20px;
  margin-top: 8px;
}

.polo-metric.positive strong { color: var(--green-deep); }
.polo-metric.negative strong { color: var(--red); }
.polo-metric.pending strong { font-size: 15px; }

.polo-commission {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0 20px;
  margin-bottom: 24px;
}

.polo-ranking {
  border-top: 1px solid var(--line);
  padding: 14px 0 20px;
}

.polo-ranking h3 {
  font-size: 14px;
  margin: 0;
}

.polo-ranking .table-wrap {
  max-height: 520px;
  overflow: auto;
}

.polo-ranking .data-table {
  min-width: 1290px;
}

.polo-data-warning {
  color: #835400;
  font-size: 12px;
  margin: 0 0 12px;
}

.polo-ranking .data-table th:nth-child(2),
.polo-ranking .data-table td:nth-child(2) {
  width: 220px;
  text-align: left;
}

.polo-ranking .data-table th:nth-child(1),
.polo-ranking .data-table td:nth-child(1) { width: 48px; }
.polo-ranking .data-table th:nth-child(3),
.polo-ranking .data-table td:nth-child(3),
.polo-ranking .data-table th:nth-child(4),
.polo-ranking .data-table td:nth-child(4) { width: 72px; }
.polo-ranking .data-table th:nth-child(5),
.polo-ranking .data-table td:nth-child(5) { width: 126px; }
.polo-ranking .data-table th:nth-child(6),
.polo-ranking .data-table td:nth-child(6),
.polo-ranking .data-table th:nth-child(7),
.polo-ranking .data-table td:nth-child(7) { width: 132px; }
.polo-ranking .data-table th:nth-child(8),
.polo-ranking .data-table td:nth-child(8) { width: 84px; }
.polo-ranking .data-table th:nth-child(9),
.polo-ranking .data-table td:nth-child(9),
.polo-ranking .data-table th:nth-child(10),
.polo-ranking .data-table td:nth-child(10) { width: 92px; }
.polo-ranking .data-table th:nth-child(11),
.polo-ranking .data-table td:nth-child(11) { width: 138px; }

.polo-commission h3 { font-size: 15px; margin: 0; }
.polo-commission .polo-toolbar { margin-top: 14px; }
.polo-commission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 16px 0;
  margin: 12px 0 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.polo-commission-summary span { display: flex; flex-direction: column; gap: 4px; }
.polo-commission-summary strong { font-size: 17px; color: var(--navy); }
.polo-commission-summary .polo-commission-total strong { font-size: 21px; }
.polo-commission-config { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 18px; }
.polo-commission-config[hidden], #poloCommissionContent[hidden] { display: none; }
.polo-commission-block { min-width: 0; }
.polo-commission-block + .polo-commission-block { border-left: 1px solid var(--line); padding-left: 28px; }
.polo-commission-block h4 { font-size: 13px; margin: 0 0 12px; }
.polo-commission .polo-list-controls { margin-top: 10px; }
.polo-commission .field { min-width: min(175px, 100%); }
.polo-commission-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.polo-commission-note { color: var(--muted); font-size: 11px; margin: 12px 0 0; }
.polo-goal-recommendation strong { display: block; font-size: 13px; }
.polo-goal-recommendation details { font-size: 11px; margin-top: 8px; color: var(--muted); }
.polo-goal-recommendation summary, .polo-share-panel summary { cursor: pointer; }
.polo-goal-recommendation p { max-width: 70ch; line-height: 1.5; margin: 8px 0 0; }
.polo-share-panel { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; }
.polo-share-panel > summary { display: list-item; font-weight: 700; font-size: 12px; }
.polo-share-panel > summary span { float: right; color: var(--muted); font-weight: 400; }
#poloCommissionMessage[data-tone="info"] { color: var(--muted); font-weight: 400; }
#poloCommissionMessage[data-tone="success"] { color: var(--green-deep); }
.polo-share-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; align-items: end; gap: 12px; margin: 8px 0; }
.polo-share-row > span { overflow-wrap: anywhere; align-self: center; }
.polo-share-row .field { min-width: 0; }
@media (max-width: 720px) { .polo-share-row { grid-template-columns: minmax(0, 1fr) 100px; } .polo-share-row > button { grid-column: 2; } }
@media (max-width: 900px) {
  .polo-commission-config { grid-template-columns: 1fr; gap: 20px; }
  .polo-commission-block + .polo-commission-block { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
}

.polo-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.polo-chart-section,
.polo-return-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.polo-chart-section h3,
.polo-return-section h3 {
  font-size: 14px;
  margin: 0 0 12px;
}

.polo-bars {
  display: flex;
  gap: 8px;
  min-height: 184px;
  overflow-x: auto;
}

.polo-bar-column {
  display: grid;
  grid-template-rows: 22px 124px 22px;
  flex: 1 0 54px;
  min-width: 54px;
  text-align: center;
}

.polo-bar-column strong,
.polo-bar-column span {
  font-size: 11px;
  line-height: 20px;
}

.polo-bar-track {
  display: flex;
  align-items: end;
  background: #e8edf1;
}

.polo-bar-track i {
  background: #318a70;
  display: block;
  width: 100%;
}

#poloEvasionChart .polo-bar-track i { background: #b36040; }
#poloCompletionChart .polo-bar-track i { background: #506e9d; }

.polo-chart-empty {
  color: var(--muted);
  padding: 12px 0 18px;
}

.polo-return-section .table-wrap {
  max-height: 440px;
  overflow: auto;
}

.polo-return-section .data-table {
  min-width: 900px;
}

.polo-return-section .data-table th:nth-child(1),
.polo-return-section .data-table td:nth-child(1) {
  width: 120px;
  text-align: left;
}

.polo-return-section .data-table th:nth-child(2),
.polo-return-section .data-table td:nth-child(2) { width: 32%; }

.polo-return-section .data-table th:nth-child(4),
.polo-return-section .data-table td:nth-child(4) { width: 170px; }

.polo-return-section { margin-bottom: 24px; }

.polo-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 12px;
}

.polo-list-controls .field { min-width: min(220px, 100%); }
.polo-list-controls .button { min-height: 36px; }

.polo-audit { border-top: 1px solid var(--line); padding: 12px 0; font-size: 12px; color: var(--muted); }
.polo-audit summary { color: var(--ink); cursor: pointer; font-weight: 600; }
.polo-audit p { margin: 8px 0 0; }

.polo-contact-dialog {
  border: 1px solid var(--line);
  border-radius: 6px;
  width: min(480px, calc(100vw - 28px));
  padding: 20px;
  color: var(--ink);
}

.polo-contact-dialog::backdrop { background: rgba(5, 17, 38, .5); }
.polo-contact-dialog h2 { font-size: 16px; margin: 0; }
.polo-contact-dialog p { color: var(--muted); font-size: 12px; }
.polo-contact-fields { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; margin: 18px 0; font-size: 13px; }
.polo-contact-fields dt { color: var(--muted); }
.polo-contact-fields dd { margin: 0; overflow-wrap: anywhere; }

.polo-contact-dialog .field textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #b9c1cc;
  border-radius: 6px;
  color: var(--ink);
  padding: 9px 10px;
}

.polo-contact-dialog .field[hidden] { display: none; }

.polo-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar-meta {
    grid-column: auto;
  }

  .settings-grid,
  .incentive-filters,
  .campus-permissions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .polo-workspace { padding: 14px; }
  .polo-charts { grid-template-columns: 1fr; }
  .polo-toolbar .field { flex: 1 1 100%; }
  body {
    font-size: 13px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .logo-slot {
    min-height: 40px;
  }

  .institution-mark {
    font-size: 36px;
  }

  .logo-image {
    max-width: 112px;
    max-height: 46px;
  }

  .topbar-title h1 {
    font-size: 16px;
  }

  .workspace {
    gap: 10px;
    padding: 10px;
  }

  .filter-panel,
  .selected-panel {
    padding: 12px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .table-wrap {
    max-height: 320px;
  }

  .data-table {
    min-width: 820px;
  }

  .report-pages {
    padding: 10px;
  }

  .report-page {
    min-width: 980px;
    padding: 20px 22px;
  }
}

/* FCG Hub application shell. The A4 report and its print rules remain separate. */
:root {
  --navy: #082b78;
  --ink: #1d2939;
  --navy-soft: #243f6b;
  --muted: #596879;
  --line: #d7e0ec;
  --page: #f4f7fb;
  --row: #f7f9fc;
  --row-alt: #edf2f9;
  --green-deep: #176b4b;
  --focus: #1356b8;
  --surface-soft: #ebf2fc;
  --amber: #9b5d19;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.4;
}

button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
:where(button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.topbar {
  grid-template-areas: "brand utility" "nav nav";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff;
}
.topbar-brand { grid-area: brand; display: flex; align-items: center; gap: 9px; min-height: 68px; min-width: 0; }
.logo-slot { min-width: 0; min-height: 0; }
.logo-image { max-width: 96px; max-height: 42px; }
.institution-mark { font-size: 35px; }
.topbar-title { border-left: 1px solid var(--line); padding-left: 10px; min-width: 0; }
.topbar-title h1 { margin: 0; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.topbar-utility { grid-area: utility; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.topbar-utility .button { width: auto; min-height: 32px; }
.topbar-meta { color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.user-identity { border: 0; border-radius: 0; border-left: 1px solid var(--line); padding: 4px 0 4px 12px; font-size: 12px; }
.notification-button { min-height: 32px; border-radius: 4px; }
.topbar-actions {
  grid-area: nav;
  gap: 0;
  min-height: 44px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  flex-wrap: nowrap;
}
.nav-current {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-bottom: 3px solid var(--navy);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
}
.nav-current-polo { display: none; }
.app-shell:has(#poloWorkspace:not([hidden])) .nav-current-reports { display: none; }
.app-shell:has(#poloWorkspace:not([hidden])) .nav-current-polo { display: inline-flex; }
.topbar-actions .button {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 0 18px;
}
.topbar-actions .button:hover:not(:disabled) { background: var(--surface-soft); color: var(--ink); }
.refresh-data-button { border-color: var(--line); color: var(--navy); }

.section-heading { min-height: 26px; margin-bottom: 14px; }
.section-heading h2, .section-heading h3 { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.2; margin: 0; text-transform: none; }
.section-heading span { color: var(--muted); font-size: 11px; font-weight: 600; }
.field { min-width: 0; gap: 6px; }
.field span, .field-label { color: var(--navy-soft); font-size: 12px; font-weight: 650; }
.field input, .field select, .field textarea {
  min-height: 38px;
  border: 1px solid #9faec4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
}
.field input:hover:not(:disabled), .field select:hover:not(:disabled) { border-color: #496da4; }
.field input:disabled, .field select:disabled { background: #eef2f7; color: #687789; }
.field input::placeholder { color: #738196; opacity: 1; }
.button {
  min-height: 38px;
  border: 1px solid #9bacc5;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-weight: 650;
  padding: 7px 13px;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button:hover:not(:disabled) { background: #eaf1fb; border-color: #5f7eaf; }
.button:active:not(:disabled) { box-shadow: inset 0 1px 3px #173d7c25; }
.button:disabled { opacity: .55; }
.button-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-primary:hover:not(:disabled) { background: #0b3b9a; border-color: #0b3b9a; }
.button-small { min-height: 30px; padding: 4px 10px; }
.button-row, .button-stack { gap: 8px; }
.form-message { line-height: 1.4; }
.form-message:empty { min-height: 0; margin: 0; }
.form-message[data-tone="info"] { color: var(--muted); font-weight: 500; }
.form-message[data-tone="success"] { color: var(--green-deep); }

.workspace {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(270px, 310px);
  align-items: start;
  gap: 0;
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px 28px 48px;
}
.report-main-column { min-width: 0; }
.filter-panel, .results-panel, .selected-panel, .report-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  min-width: 0;
}
.filter-panel, .selected-panel { padding: 18px; }
.filter-panel { border-radius: 6px 0 0 6px; border-right: 0; }
.results-panel { border-radius: 0; }
.selected-panel { border-radius: 0 6px 6px 0; border-left: 0; }
.results-panel > .section-heading { padding: 18px 16px 0; }
.report-preview { border-radius: 6px; margin-top: 14px; }
.preview-heading { padding: 14px 18px 0; }
.field-grid { gap: 14px 10px; }
.filter-panel .field-grid { grid-template-columns: 1fr; }
.field-wide { margin-bottom: 18px; }
.filter-panel .button-row { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; flex-wrap: wrap; }
.filter-panel .button-row .button-primary { flex: 1 1 110px; }
.filter-panel .button-row .button { min-width: 0; }
.results-panel .table-wrap { max-height: min(62vh, 690px); }
.results-actions { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.data-table { table-layout: auto; }
.data-table th {
  background: #113779;
  border-bottom: 1px solid #0b2860;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  padding: 10px;
  white-space: normal;
}
.data-table td { font-size: 12px; line-height: 1.38; padding: 10px; }
.data-table tbody tr:nth-child(even) { background: var(--row); }
.data-table tbody tr:hover { background: #eaf2fc; }
.results-panel .data-table { min-width: 710px; }
.results-panel .data-table th:nth-child(3), .results-panel .data-table td:nth-child(3) { min-width: 150px; }
.results-panel .data-table th:nth-child(5), .results-panel .data-table td:nth-child(5) { min-width: 100px; }
.results-panel .data-table th:nth-child(7), .results-panel .data-table td:nth-child(7) { min-width: 100px; }
.empty-cell { height: 96px; }
.selected-list { min-height: 150px; max-height: 280px; overflow: auto; gap: 0; }
.selected-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; padding: 10px 2px; }
.selected-item strong { line-height: 1.35; }
.selected-item button { min-height: 30px; }
.report-filter-box { margin-top: 16px; padding-top: 16px; gap: 14px; }
.report-status-dropdown summary { height: auto; min-height: 38px; border-color: #aabbb6; border-radius: 4px; font-size: 13px; }
.report-status-options { border-radius: 4px; box-shadow: 0 12px 32px #101f2040; }
.report-filter-group { border-top: 1px solid var(--line); padding-top: 14px; gap: 10px; }
.metric-filter span { font-size: 12px; font-weight: 500; }
.metric-filter input, .check-row input, .permission-toggle input { accent-color: var(--navy); }
.selected-panel .button-stack { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.selected-panel .button-stack .button-primary { order: -1; }
.report-pages { background: #eaf0f8; }

.module-kicker { display: block; color: var(--navy); font-size: 11px; font-weight: 750; line-height: 1.3; text-transform: uppercase; }
.polo-workspace { max-width: 1920px; margin: 0 auto; padding: 28px 30px 50px; }
.polo-commission {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 0 30px;
  padding: 0;
  overflow: hidden;
}
.polo-module-heading {
  align-items: center;
  background: #edf3fc;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 17px 20px;
}
.polo-module-heading h2 { font-size: 18px; margin-top: 3px; }
.polo-module-heading > span { align-self: center; font-weight: 650; }
.polo-commission > .polo-toolbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 16px 20px;
  gap: 12px;
}
.polo-commission > .polo-toolbar .field { width: min(270px, 100%); }
#poloCommissionContent { padding: 0 20px 18px; }
.polo-commission-summary {
  align-items: center;
  gap: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.polo-commission-summary > span {
  flex: 1 1 155px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 0 18px;
  line-height: 1.3;
}
.polo-commission-summary > span:first-child { border-left: 0; padding-left: 0; }
.polo-commission-summary .polo-commission-total { flex: 1 1 210px; }
.polo-commission-summary strong { color: var(--ink); font-size: 19px; line-height: 1.1; }
.polo-commission-summary .polo-commission-total strong { color: var(--navy); font-size: 26px; }
.polo-commission-config { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-top: 0; }
.polo-commission-block { padding: 20px 22px 14px 0; }
.polo-commission-block + .polo-commission-block { border-left: 1px solid var(--line); padding: 20px 0 14px 22px; }
.polo-commission-block h3 { color: var(--ink); font-size: 15px; margin: 0 0 14px; }
.polo-young-goal-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.polo-young-goal-block .polo-commission-note { margin: 0 0 14px; line-height: 1.5; }
.polo-commission .polo-list-controls { gap: 10px; margin: 0; }
.polo-commission .field { min-width: min(150px, 100%); }
.polo-commission-actions { width: 100%; margin-top: 3px; }
.polo-commission-note { line-height: 1.4; margin: 10px 0 0; }
.polo-goal-recommendation { border-left: 3px solid #c58d34; background: #fffaf0; padding: 10px 12px; margin-bottom: 14px; }
.polo-goal-recommendation strong { color: #6d461b; font-size: 13px; }
.polo-goal-recommendation details { color: #5b554a; font-size: 12px; }
.polo-goal-recommendation summary, .polo-share-panel summary { color: var(--navy); font-size: 12px; font-weight: 650; }
.polo-share-panel { margin-top: 0; padding: 16px 0 0; }
.polo-share-panel > summary { display: block; list-style: none; }
.polo-share-panel > summary::after { content: "+"; float: right; font-size: 18px; line-height: 1; }
.polo-share-panel[open] > summary::after { content: "−"; }
.polo-share-panel > summary::-webkit-details-marker { display: none; }
.polo-share-panel > summary span { float: none; margin-left: 8px; }
.polo-share-help { margin: 6px 0 12px; color: var(--muted); font-size: 12px; }
.polo-closeout { border-top: 1px solid var(--line); margin-top: 18px; padding: 18px 0 4px; }
.polo-closeout .section-heading { align-items: center; gap: 12px; flex-wrap: wrap; }
.polo-closeout .section-heading .button { width: auto; }
.polo-closeout > p { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.polo-closeout-rounds { color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; margin-bottom: 10px; }
.polo-closeout .table-wrap { margin-top: 10px; }
.polo-closeout .data-table { min-width: 580px; }
.polo-closeout .data-table .button { width: auto; min-height: 30px; }
.polo-closeout-pending { color: #a44b20; font-weight: 700; }
.polo-closeout-paid { color: var(--green-deep); font-weight: 700; }
#poloCommissionMessage:not(:empty) { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }

.polo-heading { border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 16px; }
.polo-heading h2 { color: var(--ink); font-size: 19px; margin: 3px 0 2px; }
.polo-heading > span { font-size: 11px; }
.polo-workspace > .polo-toolbar { gap: 12px; margin: 0 0 14px; }
.polo-workspace > .polo-toolbar .field { min-width: min(250px, 100%); }
.polo-status:empty { min-height: 0; margin: 0; }
.polo-metrics { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; margin-bottom: 24px; }
.polo-metric { grid-column: span 3; }
.polo-metric:nth-child(-n+3) { grid-column: span 4; }
.polo-metric { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; min-height: 96px; padding: 16px; }
.polo-metric span { color: var(--muted); font-size: 12px; }
.polo-metric strong { font-size: 23px; line-height: 1.1; margin-top: 11px; }
.polo-metric.pending strong { font-size: 17px; }
.polo-ranking, .polo-chart-section, .polo-return-section { border-top: 2px solid #c0d1ea; padding-top: 16px; }
.polo-ranking { margin-bottom: 28px; }
.polo-ranking h3, .polo-chart-section h3, .polo-return-section h3 { font-size: 15px; color: var(--ink); }
.polo-list-controls { gap: 10px 14px; margin-bottom: 14px; }
.polo-list-controls .field { min-width: min(190px, 100%); }
.polo-charts { gap: 20px; }
.polo-bars { min-height: 190px; }
.polo-bar-track { background: #e5ebf4; border-radius: 2px 2px 0 0; }
.polo-bar-track i { background: #1d59ae; border-radius: 2px 2px 0 0; }
#poloEvasionChart .polo-bar-track i { background: #b56839; }
#poloCompletionChart .polo-bar-track i { background: #3c75b7; }
.polo-data-warning { color: #795115; background: #fff7e8; border-left: 3px solid #b78332; padding: 8px 10px; }
.polo-audit { margin-top: 20px; }

.auth-gate { background: #fff; padding: 22px; }
.auth-gate .auth-box { width: min(100%, 430px); justify-items: stretch; gap: 0; }
.auth-gate .auth-logo { background: transparent; max-width: 120px; max-height: 74px; padding: 0; margin: 0 auto 18px; }
.auth-report-title { color: var(--ink); font-size: 24px; font-weight: 750; margin-bottom: 22px; text-transform: none; }
.auth-frame { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 5px; box-shadow: 0 10px 34px #1f3e3420; padding: 24px; }
.auth-frame h2 { background: transparent; color: var(--ink); font-size: 19px; font-weight: 700; margin: 0 0 4px; padding: 0; text-align: left; text-transform: none; width: auto; }
.auth-frame > p { display: block; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.auth-card { padding: 0; }
.auth-card .field + .field { margin-top: 14px; }
.auth-card .field input { height: 42px; }
.auth-card .button-primary { height: 42px; margin-top: 20px; }
.auth-card .link-button { color: var(--navy); margin: 14px 0 0; text-align: left; text-decoration: none; }
.auth-card .link-button:hover { text-decoration: underline; }
.reset-panel { border-top: 1px solid var(--line); margin-top: 18px; }
#changePasswordModal .auth-box { border-radius: 5px; border-top: 3px solid var(--navy); padding: 26px; }
#changePasswordModal .auth-box h2 { color: var(--ink); font-size: 19px; line-height: 1.25; text-transform: none; }
#changePasswordModal .auth-box > p { color: var(--muted); font-size: 13px; margin: 6px 0 18px; }
#changePasswordModal .auth-logo { max-width: 95px; max-height: 50px; }
.modal-backdrop { background: #102540a8; }
.settings-modal, .incentives-modal { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 80px #051c2160; padding: 0; }
.settings-modal { width: min(100%, 1080px); }
.settings-polo { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.settings-polo .polo-module-heading { padding: 17px 22px; }
.settings-polo .polo-toolbar { display: flex; flex-wrap: wrap; }
.settings-polo .polo-toolbar .field { flex: 1 1 220px; }
.settings-polo #poloCommissionContent { padding: 0 22px 20px; }
.settings-polo .polo-commission-config { border-bottom: 1px solid var(--line); }
.settings-polo .polo-commission-block { padding-bottom: 18px; }
.settings-polo .polo-share-panel { border-top: 0; padding-top: 18px; }
.settings-polo .polo-closeout { margin-top: 18px; }
.polo-charts + .polo-metrics { margin-top: 24px; }
.polo-metrics + .polo-return-section { margin-top: 24px; }
.polo-return-section .section-heading { flex-wrap: wrap; gap: 8px 16px; }
.polo-return-section .data-table { min-width: 960px; }
.polo-return-section[aria-labelledby="poloEntrantsTitle"] .data-table,
.polo-return-section[aria-labelledby="poloCurrentTitle"] .data-table { min-width: 1660px; }
.polo-return-section[aria-labelledby="poloEntrantsTitle"] .data-table th:nth-child(2),
.polo-return-section[aria-labelledby="poloEntrantsTitle"] .data-table td:nth-child(2),
.polo-return-section[aria-labelledby="poloCurrentTitle"] .data-table th:nth-child(2),
.polo-return-section[aria-labelledby="poloCurrentTitle"] .data-table td:nth-child(2) { width: 220px; }
.polo-return-section[aria-labelledby="poloEntrantsTitle"] .data-table th:nth-child(4),
.polo-return-section[aria-labelledby="poloEntrantsTitle"] .data-table td:nth-child(4),
.polo-return-section[aria-labelledby="poloCurrentTitle"] .data-table th:nth-child(4),
.polo-return-section[aria-labelledby="poloCurrentTitle"] .data-table td:nth-child(4) { width: 190px; }
.polo-return-section .data-table th,
.polo-return-section .data-table td { overflow-wrap: normal; word-break: normal; }
.incentives-modal { width: min(100%, 1440px); }
.modal-head { align-items: center; background: #edf3fc; border-bottom: 1px solid var(--line); margin: 0; padding: 18px 22px; }
.modal-head h2 { color: var(--ink); font-size: 19px; line-height: 1.25; text-transform: none; }
.modal-head p { font-size: 12px; line-height: 1.4; margin: 0; }
.settings-grid { grid-template-columns: minmax(235px, 290px) minmax(0, 1fr); gap: 0; }
.settings-list, .settings-form { border: 0; border-radius: 0; }
.settings-list { border-right: 1px solid var(--line); background: #f8fafd; padding: 20px; }
.settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; padding: 20px 24px; gap: 16px; }
.settings-form > .staff-fields,
.settings-form > .check-row,
.settings-form > .permission-toggle,
.settings-form > div:has(> .campus-permissions),
.settings-form > .button-row,
.settings-form > .form-message { grid-column: 1 / -1; }
.user-list { gap: 0; }
.user-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 8px; }
.user-row.is-selected, .user-row:hover { border-color: var(--navy); background: #e9f1fd; }
.staff-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 12px 16px; padding: 18px 0; }
.staff-fields > .field-label, .staff-search-row, .staff-search-results, .staff-note { grid-column: 1 / -1; }
.staff-result { border-radius: 4px; }
.permission-toggle { border: 0; border-radius: 0; background: #eef3fb; padding: 11px 12px; }
.campus-permissions { border-radius: 4px; gap: 8px; }
.reset-requests-box { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 24px; margin: 0; }
.reset-request-item { border-radius: 4px; }
.copy-message-box { border-radius: 4px; }
.incentives-modal > .incentive-filters, .incentives-modal > .incentive-actions, .incentives-modal > .form-message, .incentives-modal > .section-heading { margin-left: 22px; margin-right: 22px; }
.incentive-filters { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 20px 0; margin-bottom: 16px; }
.incentive-actions { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-top: 0; }
.incentive-table-wrap { border-top: 1px solid var(--line); max-height: min(54vh, 610px); }
.incentive-table { min-width: 1100px; }
.incentive-badge { border-radius: 3px; }
.polo-contact-dialog { border-radius: 5px; box-shadow: 0 20px 60px #102b3540; }

@media (max-width: 1180px) {
  .topbar { grid-template-areas: "brand brand" "nav utility"; grid-template-columns: minmax(0, 1fr) auto; }
  .topbar-utility { justify-content: flex-end; flex-wrap: wrap; padding: 5px 0; }
  .topbar-actions { min-width: 0; }
  .workspace { grid-template-columns: minmax(230px, 285px) minmax(0, 1fr); gap: 0; }
  .report-main-column { display: contents; }
  .filter-panel { border-radius: 6px 0 0 6px; border-right: 0; }
  .results-panel { grid-column: 2; order: 1; border-radius: 0 6px 6px 0; }
  .selected-panel { grid-column: 1 / -1; order: 2; border: 1px solid var(--line); border-radius: 6px; margin-top: 16px; }
  .report-preview { grid-column: 1 / -1; order: 3; }
  .selected-panel .selected-list { max-height: 180px; min-height: 70px; }
  .selected-panel .report-filter-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-panel .button-stack { flex-direction: row; }
  .selected-panel .button-stack .button { flex: 1; }
}

@media (max-width: 800px) {
  .topbar { grid-template-areas: "brand brand" "nav nav" "utility utility"; }
  .topbar-utility { justify-content: flex-start; border-top: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .filter-panel, .results-panel, .selected-panel { grid-column: 1; border: 1px solid var(--line); border-radius: 6px; margin: 0; }
  .report-preview { grid-column: 1; margin: 0; }
  .filter-panel .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-panel .table-wrap { max-height: 360px; }
  .results-panel .data-table { min-width: 900px; }
  .results-panel .data-table td.empty-cell { text-align: left; padding-left: 16px; }
  .selected-panel .report-filter-box { grid-template-columns: 1fr 1fr; }
  .polo-workspace { padding: 18px 16px 40px; }
  .polo-commission-config { grid-template-columns: 1fr; }
  .polo-commission-block { padding: 18px 0; }
  .polo-commission-block + .polo-commission-block { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .polo-charts { grid-template-columns: 1fr; gap: 12px; }
  .polo-metric, .polo-metric:nth-child(-n+3) { grid-column: span 6; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .user-list { max-height: 160px; }
  .incentive-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar { padding: 0 14px; gap: 0; }
  .topbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .topbar-brand { min-height: 58px; gap: 10px; }
  .topbar-title { padding-left: 10px; }
  .topbar-title h1 { font-size: 17px; }
  .logo-image { max-width: 64px; max-height: 32px; }
  .institution-mark { font-size: 29px; }
  .topbar-utility { gap: 6px; }
  .topbar-meta { display: none; }
  .nav-current, .topbar-actions .button { padding: 0 12px; font-size: 12px; }
  .workspace { padding: 12px; gap: 12px; }
  .filter-panel, .selected-panel { padding: 14px; }
  .filter-panel .button-row .button-primary { flex: 0 1 auto; }
  .filter-panel .field-grid, .selected-panel .report-filter-box { grid-template-columns: 1fr; }
  .selected-panel .button-stack { flex-direction: column; }
  .results-panel > .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .results-actions { justify-content: flex-start; }
  .polo-workspace { padding: 14px 12px 32px; }
  .polo-module-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px; }
  .polo-commission > .polo-toolbar { padding: 14px; }
  .polo-commission > .polo-toolbar .field { width: 100%; }
  #poloCommissionContent { padding: 0 14px 14px; }
  .polo-commission-summary > span { flex-basis: 50%; padding: 8px 12px; }
  .polo-commission-summary > span:nth-child(odd) { border-left: 0; padding-left: 0; }
  .polo-commission-summary .polo-commission-total { flex-basis: 100%; }
  .polo-metrics { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .polo-metric { min-height: 94px; padding: 12px; }
  .polo-metric strong { font-size: 19px; }
  .polo-heading { align-items: flex-start; gap: 8px; }
  .polo-toolbar .field, .polo-workspace > .polo-toolbar .field { flex: 1 1 100%; }
  .incentives-modal, .settings-modal { max-height: 100dvh; border-radius: 0; }
  .modal-backdrop { padding: 0; }
  .modal-head { padding: 14px; }
  .incentives-modal > .incentive-filters, .incentives-modal > .incentive-actions, .incentives-modal > .form-message, .incentives-modal > .section-heading { margin-left: 14px; margin-right: 14px; }
  .incentive-filters { grid-template-columns: 1fr; gap: 11px; }
  .incentive-actions .button { width: 100%; }
  .settings-list, .settings-form, .reset-requests-box { padding: 14px; }
  .settings-form, .staff-fields { grid-template-columns: 1fr; }
  .campus-permissions { grid-template-columns: 1fr; }
  .auth-gate { padding: 12px; }
  .auth-frame { padding: 20px 18px; }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    background: #fff;
    width: 210mm;
    min-height: 297mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .topbar,
  .auth-gate,
  .modal-backdrop,
  .filter-panel,
  .results-panel,
  .selected-panel,
  .preview-heading {
    display: none;
  }

  .workspace,
  .report-preview,
  .report-pages {
    display: block;
    padding: 0;
    border: 0;
    margin: 0;
    overflow: visible;
  }

  .report-page {
    border: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: none;
    min-width: 0;
    width: 210mm;
    min-height: 297mm;
    padding: 12mm 9mm;
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .report-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .report-logo {
    min-width: 82px;
    min-height: 45px;
    font-size: 38px;
  }

  .report-logo-image {
    max-width: 88px;
    max-height: 44px;
  }

  .institution-data h3 {
    font-size: 10pt;
  }

  .institution-data p {
    font-size: 7pt;
  }

  .report-date {
    font-size: 8pt;
  }

  .report-title {
    font-size: 10pt;
  }

  .report-subtitle {
    margin: 6px 0 8px;
    font-size: 8.5pt;
  }

  .report-table th,
  .report-table td {
    font-size: 6.4pt;
    line-height: 1.05;
    padding: 2px 2px;
    overflow-wrap: anywhere;
  }

  .report-table th {
    font-size: 6pt;
  }

  .report-table th:nth-child(1),
  .report-table td:nth-child(1) {
    width: 5%;
  }

  .report-table th:nth-child(2),
  .report-table td:nth-child(2) {
    width: 9%;
  }

  .report-table th:nth-child(3),
  .report-table td:nth-child(3) {
    width: 21%;
  }

  .report-table th:nth-child(4),
  .report-table td:nth-child(4) {
    width: 11%;
  }

  .report-table th:nth-child(5),
  .report-table td:nth-child(5),
  .report-table th:nth-child(6),
  .report-table td:nth-child(6) {
    width: 8%;
  }

  .report-table th:nth-child(7),
  .report-table td:nth-child(7) {
    width: 7%;
  }

  .report-table th:nth-child(8),
  .report-table td:nth-child(8) {
    width: 11%;
  }

  .report-table th:nth-child(9),
  .report-table td:nth-child(9) {
    width: 10%;
  }

  .report-table th:nth-child(10),
  .report-table td:nth-child(10) {
    width: 10%;
  }

  .report-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .report-head,
  .report-title,
  .report-subtitle {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-table {
    page-break-inside: auto;
  }

  .report-page-full .report-table {
    height: 215mm;
  }

  .report-table thead {
    display: table-header-group;
  }

  .report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-page-full .report-table tbody tr {
    height: 5.8mm;
  }

  .report-foot {
    margin-top: auto;
    padding-top: 4mm;
  }
}

/* Navegação principal do FCG Hub */
.app-shell:not([hidden]) { display: grid; grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.app-shell > .topbar { grid-column: 1 / -1; grid-row: 1; grid-template-areas: "brand utility"; grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; padding: 0 24px; position: relative; z-index: 11; }
.app-shell > .workspace, .app-shell > .polo-workspace, .app-shell > .inventory-workspace { grid-column: 2; grid-row: 2; width: 100%; min-width: 0; }
.app-sidebar { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 0; height: calc(100dvh - 72px); overflow-y: auto; display: flex; flex-direction: column; background: #122c59; color: #dce7f9; border-right: 1px solid #1f417c; box-sizing: border-box; z-index: 10; }
.sidebar-nav { padding: 8px 11px 24px; }
.sidebar-group { padding: 9px 0 15px; border-bottom: 1px solid #ffffff17; }
.sidebar-group:last-child { border: 0; }
.sidebar-group-label { display: block; padding: 0 13px 9px; color: #91aad0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.sidebar-link, .sidebar-submenu button { display: flex; align-items: center; width: 100%; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: #dce7f9; text-align: left; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.sidebar-link { gap: 11px; padding: 9px 12px; }
.sidebar-link > span { display: inline-grid; place-items: center; width: 20px; color: #a9cef3; font-size: 17px; }
.sidebar-link:hover, .sidebar-submenu button:hover { background: #ffffff17; color: #fff; }
.sidebar-link[aria-current="page"], .sidebar-submenu button[aria-current="location"] { background: #e8f3ff; color: #123463; }
.sidebar-link[aria-current="page"] > span { color: #16729a; }
.sidebar-submenu { display: grid; gap: 2px; margin: 3px 0 0 18px; border-left: 1px solid #92b9e060; padding-left: 7px; }
.sidebar-submenu button { min-height: 34px; padding: 6px 12px; color: #b8cbe5; font-size: 12px; font-weight: 500; }
.sidebar-footer { margin-top: auto; padding: 17px 21px; border-top: 1px solid #ffffff21; color: #a8bdd9; font-size: 11px; }
.sidebar-footer-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4ed0a2; }
.app-shell .sidebar-toggle { display: none; }
.sidebar-scrim { display: none; }
.app-shell > .workspace { max-width: none; }
.app-shell > .polo-workspace { max-width: none; }
.app-shell .polo-workspace .polo-heading { padding-bottom: 19px; }
.app-shell .polo-workspace .polo-ranking, .app-shell .polo-workspace .polo-return-section { scroll-margin-top: 20px; }
@media (max-width: 920px) {
  .app-shell:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .app-shell > .topbar { grid-template-areas: "brand utility"; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 14px; }
  .app-shell > .workspace, .app-shell > .polo-workspace, .app-shell > .inventory-workspace { grid-column: 1; }
  .app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 88vw); height: 100dvh; transform: translateX(-101%); transition: transform .2s ease; z-index: 31; box-shadow: 14px 0 40px #071a3450; }
  .app-shell.sidebar-open .app-sidebar { transform: translateX(0); }
  .app-shell .sidebar-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
  .sidebar-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 30; width: 100%; border: 0; background: #071a3470; }
  .app-shell .topbar-utility { grid-area: utility; justify-content: flex-end; border: 0; flex-wrap: nowrap; }
  .app-shell .topbar-meta, .app-shell .user-identity { display: none; }
}
@media (max-width: 560px) {
  .app-shell > .topbar { min-height: 62px; }
  .app-shell .topbar-utility { gap: 5px; }
  .app-shell .topbar-utility .refresh-data-button, .app-shell .topbar-utility .notification-button { display: none; }
  .app-shell .topbar-utility .button { padding: 5px 9px; font-size: 12px; }
  .app-shell .sidebar-toggle span { display: none; }
}
@media print {
  .app-shell:not([hidden]) { display: block; }
  .app-sidebar, .sidebar-scrim { display: none !important; }
}

/* Relatorios: um fluxo continuo com busca, selecao e previa na mesma janela. */
.app-shell.settings-view > .workspace, .app-shell.settings-view > .polo-workspace, .app-shell.settings-view > .inventory-workspace { display: none !important; }
#poloOverviewPanel[data-section="ranking"] #poloEntrantsSection,
#poloOverviewPanel[data-section="ranking"] #poloCurrentSection,
#poloOverviewPanel[data-section="ranking"] #poloRetentionSection,
#poloOverviewPanel[data-section="ranking"] #poloGraduatesSection,
#poloOverviewPanel[data-section="ranking"] #poloReviewSection,
#poloOverviewPanel[data-section="ranking"][data-role="polo"] .polo-charts,
#poloOverviewPanel[data-section="ranking"][data-role="polo"] #poloMetrics,
#poloOverviewPanel[data-section="ranking"][data-role="polo"] #poloAuditSection,
#poloOverviewPanel:not([data-section="ranking"]) #poloOwnSummary,
#poloOverviewPanel[data-section="students"] #poloRanking,
#poloOverviewPanel[data-section="students"] .polo-charts,
#poloOverviewPanel[data-section="students"] #poloMetrics,
#poloOverviewPanel[data-section="students"] #poloRetentionSection,
#poloOverviewPanel[data-section="students"] #poloGraduatesSection,
#poloOverviewPanel[data-section="students"] #poloReviewSection,
#poloOverviewPanel[data-section="students"] #poloAuditSection,
#poloOverviewPanel[data-section="retention"] #poloRanking,
#poloOverviewPanel[data-section="retention"] .polo-charts,
#poloOverviewPanel[data-section="retention"] #poloMetrics,
#poloOverviewPanel[data-section="retention"] #poloEntrantsSection,
#poloOverviewPanel[data-section="retention"] #poloCurrentSection,
#poloOverviewPanel[data-section="retention"] #poloGraduatesSection,
#poloOverviewPanel[data-section="retention"] #poloAuditSection,
#poloOverviewPanel[data-section="graduates"] #poloRanking,
#poloOverviewPanel[data-section="graduates"] .polo-charts,
#poloOverviewPanel[data-section="graduates"] #poloMetrics,
#poloOverviewPanel[data-section="graduates"] #poloEntrantsSection,
#poloOverviewPanel[data-section="graduates"] #poloCurrentSection,
#poloOverviewPanel[data-section="graduates"] #poloRetentionSection,
#poloOverviewPanel[data-section="graduates"] #poloReviewSection,
#poloOverviewPanel[data-section="graduates"] #poloAuditSection { display: none !important; }
.polo-own-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; }
.polo-own-summary[hidden] { display: none !important; }
.polo-own-summary > div { min-width: 0; background: #fff; border: 1px solid #dce5f1; border-radius: 14px; padding: 22px 24px; }
.polo-own-summary span, .polo-own-summary small { display: block; color: #52647d; }
.polo-own-summary span { font-size: 13px; font-weight: 700; }
.polo-own-summary strong { display: block; color: #17396f; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.2; margin: 8px 0; }
.polo-own-summary small { font-size: 12px; line-height: 1.45; }
@media (max-width: 700px) { .polo-own-summary { grid-template-columns: 1fr; } }
#settingsModal[data-section="users"] #totpSettings,
#settingsModal[data-section="users"] .settings-polo,
#settingsModal[data-section="users"] .polo-status-panel,
#settingsModal[data-section="commissions"] #totpSettings,
#settingsModal[data-section="commissions"] .polo-status-panel,
#settingsModal[data-section="commissions"] .settings-grid,
#settingsModal[data-section="commissions"] .reset-requests-box,
#settingsModal[data-section="security"] .settings-polo,
#settingsModal[data-section="security"] .polo-status-panel,
#settingsModal[data-section="security"] .settings-grid,
#settingsModal[data-section="security"] .reset-requests-box,
#settingsModal[data-section="polos"] #totpSettings,
#settingsModal[data-section="polos"] .settings-polo,
#settingsModal[data-section="polos"] .settings-grid,
#settingsModal[data-section="polos"] .reset-requests-box { display: none !important; }

.polo-status-panel { padding: 24px 28px; }
.polo-status-panel > p { color: var(--muted); line-height: 1.5; }
.polo-status-toolbar, .polo-status-actions { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 20px 0 14px; }
.polo-status-toolbar .field { width: min(280px, 100%); }
.polo-status-panel .data-table { min-width: 760px; width: 100%; table-layout: fixed; }
.polo-status-panel .data-table th:first-child { width: 46px; }
.polo-status-panel .data-table th:nth-child(2) { width: 40%; }
.polo-status-panel .data-table th:nth-child(3) { width: 23%; }
.polo-status-panel .data-table th:nth-child(4) { width: 15%; }
.polo-status-panel .data-table th:last-child { width: 150px; }
.polo-status-panel .data-table td { vertical-align: middle; }
.polo-status-panel .data-table td:last-child { width: 150px; }
.polo-status-panel .data-table td:first-child { width: 46px; }
.polo-status-panel .data-table small { display: block; color: var(--muted); margin-top: 3px; }
#settingsModal[data-section="polos"] .settings-modal { min-height: 0; }
@media (max-width: 700px) { .polo-status-panel { padding: 18px; } .polo-status-toolbar, .polo-status-actions { align-items: stretch; flex-direction: column; } }

/* Acabamento visual */
:root { --navy: #193b77; --navy-soft: #244b8d; --ink: #17243b; --muted: #66748b; --line: #e1e8f1; --page: #f5f8fc; --row: #f8fafd; }
body { font-family: "Segoe UI", Inter, system-ui, sans-serif; font-size: 14px; }
.app-shell > .topbar { background: #fff; border-bottom: 1px solid #e8edf5; box-shadow: 0 2px 12px #17396908; }
.app-sidebar { background: #fff; border-right: 1px solid #e7edf5; color: var(--ink); }
.sidebar-group-label { color: #8491a8; }
.sidebar-footer { color: #8491a8; }
.sidebar-group { border-color: #edf1f7; }
.sidebar-link, .sidebar-submenu button { color: #31435e; }
.sidebar-link > span { color: #526d9e; }
.sidebar-link:hover, .sidebar-submenu button:hover { background: #f1f5fb; color: #173c7c; }
.sidebar-link[aria-current="page"], .sidebar-submenu button[aria-current="location"] { background: #eaf1ff; color: #17418a; }
.sidebar-submenu { border-left-color: #d6e2f4; }
.sidebar-submenu button { color: #62718a; }
.sidebar-footer { border-color: #edf1f7; }
.view-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 4px 0 8px; }
.view-eyebrow, .module-kicker { color: #3e70c0; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.view-heading h2, .app-shell .polo-heading h2 { margin: 5px 0 4px; color: #17243b; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.2; letter-spacing: -.025em; font-weight: 750; }
.view-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.view-heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.app-shell > .workspace, .app-shell > .polo-workspace { padding: 28px clamp(18px, 2.5vw, 42px) 48px; }
.app-shell > .workspace { gap: 20px; align-content: start; }
.app-shell #reportWorkspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "stepper" "filters" "results" "action2" "selected" "preview"; align-items: start; max-width: 1740px; }
#reportWorkspace[data-step="1"] { grid-template-areas: "heading" "stepper" "filters"; }
#reportWorkspace[data-step="2"] { grid-template-areas: "heading" "stepper" "results" "action2"; }
#reportWorkspace[data-step="3"] { grid-template-areas: "heading" "stepper" "selected"; }
#reportWorkspace[data-step="3"][data-preview-visible="true"] { grid-template-areas: "heading" "stepper" "selected" "preview"; }
#reportWorkspace .view-heading { grid-area: heading; }
#reportWorkspace .report-main-column { display: contents; }
#reportWorkspace .report-stepper { grid-area: stepper; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#reportWorkspace .report-stepper button { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 62px; padding: 12px 16px; border: 1px solid #dce5f0; border-radius: 13px; background: #fff; color: #53647c; text-align: left; cursor: pointer; font: inherit; }
#reportWorkspace .report-stepper button[disabled] { cursor: default; opacity: .58; }
#reportWorkspace .report-stepper button[aria-current="step"] { border-color: #7ca4dd; background: #eaf2ff; color: #173f80; box-shadow: 0 5px 16px #1c5bad13; }
#reportWorkspace .report-stepper button span { display: inline-grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 9px; background: #eaf1fb; color: #275596; font-size: 13px; font-weight: 800; }
#reportWorkspace .report-stepper button[aria-current="step"] span { background: #2053a0; color: #fff; }
#reportWorkspace .report-stepper button strong { font-size: 14px; line-height: 1.25; }
#reportWorkspace .report-step-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -7px; }
#reportWorkspace .report-step-actions > span { margin-right: auto; color: var(--muted); font-size: 13px; }
#reportWorkspace [data-report-step-actions="2"] { grid-area: action2; }
#reportWorkspace[data-step="1"] .results-panel, #reportWorkspace[data-step="1"] [data-report-step-actions="2"], #reportWorkspace[data-step="1"] .selected-panel, #reportWorkspace[data-step="1"] .report-preview,
#reportWorkspace[data-step="2"] .filter-panel, #reportWorkspace[data-step="2"] .selected-panel, #reportWorkspace[data-step="2"] .report-preview,
#reportWorkspace[data-step="3"] .filter-panel, #reportWorkspace[data-step="3"] .results-panel, #reportWorkspace[data-step="3"] [data-report-step-actions="2"],
#reportWorkspace[data-preview-visible="false"] .report-preview { display: none !important; }
#reportWorkspace .filter-panel { grid-area: filters; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 16px; border: 1px solid #e5ebf4; border-radius: 16px; margin: 0; }
#reportWorkspace .filter-panel > .section-heading { grid-column: 1 / -1; margin: 0 0 3px; }
#reportWorkspace .filter-panel .field-grid { display: contents; }
#reportWorkspace .filter-panel .field-wide { margin: 0; }
#reportWorkspace .filter-panel .button-row { grid-column: 1 / -1; justify-content: flex-end; border: 0; padding: 0; margin: 2px 0 0; }
#reportWorkspace .filter-panel .button-row .button-primary { flex: 0 0 auto; }
#reportWorkspace #reportSearchMessage { grid-column: 1 / -1; margin: 0; }
#reportWorkspace .results-panel { grid-area: results; min-width: 0; border-radius: 16px; }
#reportWorkspace .results-panel > .section-heading { padding: 0; }
#reportWorkspace .selected-panel { grid-area: selected; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 760px); gap: 0 24px; align-items: start; min-width: 0; border: 1px solid #e5ebf4; border-radius: 16px; margin: 0; }
#reportWorkspace .selected-panel > .section-heading { grid-column: 1 / -1; }
#reportWorkspace .selected-panel .selected-list { min-height: 0; max-height: 240px; align-content: start; }
#reportWorkspace .selected-panel .report-filter-box { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-self: start; gap: 12px 16px; border-top: 0; border-left: 1px solid #e5ebf4; margin: 0; padding: 0 0 0 24px; }
#reportWorkspace .selected-panel .report-status-dropdown summary { height: 40px; min-height: 40px; border: 1px solid #d5dfec; border-radius: 9px; font-size: 13px; }
#reportWorkspace .selected-panel .report-filter-group { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; padding: 12px; border: 1px solid #e5ebf4; border-radius: 10px; background: #f8fafd; }
#reportWorkspace .selected-panel .report-filter-title { grid-column: 1 / -1; }
#reportWorkspace .selected-panel .metric-filter { min-height: 27px; }
#reportWorkspace .selected-panel .metric-filter input { width: 16px; height: 16px; margin: 0; }
#reportWorkspace .selected-panel .metric-filter span { font-size: 13px; }
#reportWorkspace .selected-panel .button-stack { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; margin: 0; padding-top: 12px; }
#reportWorkspace .selected-panel .button-stack .button { width: auto; }
#reportWorkspace .report-preview { grid-area: preview; min-width: 0; margin: 0; border-radius: 16px; scroll-margin-top: 28px; }
#reportWorkspace .preview-heading { padding: 0; }
#reportWorkspace .preview-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
#reportWorkspace .preview-actions > span { color: var(--muted); font-size: 13px; }
#reportWorkspace .results-panel .table-wrap { max-height: min(58vh, 650px); }
#reportWorkspace .results-panel .data-table { min-width: 920px; }
#reportWorkspace .results-panel .data-table th { white-space: nowrap; }
#reportWorkspace .selected-panel .button-stack .button-primary { order: 0; }
.filter-panel, .results-panel, .selected-panel, .report-preview,
.polo-ranking, .polo-chart-section, .polo-return-section, .polo-metrics,
.settlements-totals, .settlements-table-wrap, .settlements-sheets, .polo-audit {
  background: #fff; border: 1px solid #e5ebf4; border-radius: 16px; box-shadow: 0 7px 28px #203d6609;
}
.filter-panel, .selected-panel { padding: 23px; }
.results-panel, .report-preview { padding: 22px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { color: #1c3157; font-size: 17px; text-transform: none; letter-spacing: -.01em; }
.section-heading h3, .polo-chart-section h3 { color: #1c3157; font-size: 17px; }
.button { min-height: 38px; border-radius: 9px; border-color: #d2ddeb; padding: 7px 13px; transition: background .15s, border-color .15s, transform .15s; }
.button:hover:not(:disabled) { border-color: #9eb8e4; }
.button-primary { background: #2053a0; border-color: #2053a0; box-shadow: 0 4px 12px #2053a021; }
.button-primary:hover:not(:disabled) { background: #164587; color: #fff; }
.field input, .field select { min-height: 40px; height: auto; border-radius: 9px; border-color: #d5dfec; }
.field input:focus, .field select:focus { outline: 2px solid #b7cff6; border-color: #6492d6; }
.table-wrap { max-height: min(62vh, 680px); border-radius: 10px; }
.data-table th { background: #f0f4fa; color: #52647d; border-bottom: 1px solid #dfe7f2; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }
.data-table td { padding-top: 11px; padding-bottom: 11px; border-color: #edf1f6; }
.data-table tbody tr:hover { background: #eef5ff; }
.polo-ranking .data-table { table-layout: auto; min-width: 1580px; }
.polo-ranking .data-table th { white-space: nowrap; overflow-wrap: normal; }
.app-shell .polo-heading { border: 0; margin-bottom: 12px; }
.polo-subtabs { display: none; }
.polo-toolbar { background: #fff; border: 1px solid #e5ebf4; border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.polo-ranking, .polo-chart-section, .polo-return-section { border-top: 1px solid #e5ebf4; padding: 22px; margin-bottom: 20px; }
.polo-charts { gap: 16px; }
.polo-metrics { gap: 0; padding: 10px; margin: 0 0 20px; }
.settlements-totals { overflow: hidden; margin: 20px 0; }
.settlements-totals > div + div { border-left: 1px solid #edf1f6; }
.team-commission { margin: 18px 0 24px; padding: 22px; border: 1px solid #d9e3f0; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(28, 58, 104, .04); }
.team-commission .section-heading { margin-bottom: 4px; }
.team-commission .section-heading h3 { margin: 3px 0; font-size: 20px; color: var(--navy); }
.team-commission-help { margin: 5px 0 16px; max-width: 88ch; color: var(--muted); line-height: 1.5; }
.team-commission-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.team-commission-metrics > div { min-width: 0; padding: 13px 14px; border: 1px solid #e2e9f3; border-radius: 10px; background: #f7faff; }
.team-commission-metrics span, .team-commission-metrics small { display: block; color: var(--muted); font-size: 12px; }
.team-commission-metrics strong { display: block; margin: 4px 0; font-size: 19px; color: var(--navy); }
.team-commission-config { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)) auto; align-items: end; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.team-commission-goal { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px 0; border-top: 1px solid var(--line); }
.team-commission-goal .field { width: min(240px, 100%); }
.team-commission-goal small { flex-basis: 100%; color: var(--muted); }
.team-commission-share-heading, .team-commission-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 9px; border-top: 1px solid var(--line); }
.team-commission-share-heading span { font-size: 12px; color: var(--muted); }
.team-commission-users { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.team-commission-user { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e2e9f3; border-radius: 10px; }
.team-commission-user label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.team-commission-user small { display: block; color: var(--muted); font-size: 11px; }
.team-commission-user input[type="number"] { width: 100%; }
.team-commission-preview, .team-commission-closed { margin-top: 12px; padding: 16px; border-radius: 10px; background: #f7faff; }
.team-commission-preview .team-commission-actions { justify-content: flex-end; }
.team-commission-closed .table-wrap { margin-top: 12px; }
@media (max-width: 900px) { .team-commission-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-commission-users { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .team-commission { padding: 15px; } .team-commission-config { grid-template-columns: 1fr; } .team-commission-metrics { grid-template-columns: 1fr 1fr; } .team-commission-share-heading { align-items: flex-start; flex-direction: column; } }
.settlements-table-wrap { padding: 8px; }
.settlements-sheets { padding: 22px; }
.settings-modal, .incentives-modal, .woovi-dialog { border-radius: 18px; }
.settings-modal { width: min(100%, 1160px); }
.settings-modal .modal-head { padding: 22px 26px; border-bottom: 1px solid #e8edf5; }
.settings-grid { gap: 0; }
.security-settings { padding: 24px 28px; }
.settlements-reopen-selection { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; padding: 12px 16px; background: #edf5ff; border: 1px solid #d6e7fc; border-radius: 12px; }
.settlements-reopen-selection span { margin-right: auto; color: #244777; font-weight: 700; }
.reopen-check { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #376092; font-weight: 650; margin-left: 4px; }
.reopen-check input { accent-color: #2053a0; }
.batch-panel { margin: 18px 22px 24px; padding: 22px; background: #f8fbff; border: 1px solid #d9e6f6; border-radius: 15px; }
.polo-goal-band-table { margin: 18px 22px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.polo-goal-band-table .section-heading { margin-bottom: 8px; }
.polo-goal-band-table .table-wrap { max-height: 390px; overflow: auto; margin-top: 12px; }
.polo-goal-band-table .data-table { min-width: 920px; }
.polo-goal-band-table .data-table th { position: sticky; top: 0; background: #f4f7fc; z-index: 1; }
.polo-goal-band-table .data-table th, .polo-goal-band-table .data-table td { padding: 9px 11px; white-space: nowrap; }
.polo-goal-band-hint { display: none; color: var(--muted); font-size: 11px; margin: 7px 0 0; }
@media (max-width: 700px) { .polo-goal-band-hint { display: block; } }
.commission-mode-tabs { display: inline-flex; gap: 4px; margin: 0 22px 8px; padding: 4px; border: 1px solid #dce5f1; border-radius: 11px; background: #f2f6fb; }
.commission-mode-tabs button { border: 0; border-radius: 8px; background: transparent; color: #526985; padding: 9px 20px; cursor: pointer; font-weight: 700; }
.commission-mode-tabs button[aria-pressed="true"] { background: #fff; color: #1c4b91; box-shadow: 0 2px 8px #24487616; }
.settings-polo[data-commission-mode="single"] .batch-panel,
.settings-polo[data-commission-mode="batch"] #poloCommissionContent,
.settings-polo[data-commission-mode="batch"] .polo-toolbar .field:first-child { display: none !important; }
.batch-panel .section-heading h3 { margin: 4px 0 0; font-size: 19px; }
.batch-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.batch-selection-actions, .batch-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.batch-selection-actions .button { margin-left: auto; }
.batch-table-wrap { max-height: 360px; background: #fff; border: 1px solid #e1e9f3; }
.batch-table-wrap .data-table { table-layout: auto; }
.batch-table-wrap td:first-child { width: 95px; }
.batch-table-wrap td:nth-child(2) { min-width: 190px; }
.batch-table-wrap input[type="number"] { min-width: 115px; max-width: 160px; min-height: 36px; padding: 5px 8px; border: 1px solid #d5dfec; border-radius: 8px; }
.batch-table-wrap small { display: block; margin-top: 3px; color: var(--muted); }
.batch-preview { padding: 14px 18px; background: #eaf3ff; border: 1px solid #c8def8; border-radius: 10px; }
.batch-preview ul { max-height: 180px; overflow: auto; margin: 8px 0; padding-left: 20px; line-height: 1.7; }
#poloBatchMessage { margin: 10px 0 0; color: #345578; line-height: 1.5; }
#settingsModal { left: 252px; top: 72px; right: 0; bottom: 0; z-index: 9; display: block; overflow: auto; background: var(--page); padding: 28px clamp(18px, 2.5vw, 42px); }
#settingsModal .settings-modal { width: min(100%, 1160px); max-height: none; min-height: calc(100dvh - 130px); margin: 0 auto; box-shadow: 0 7px 28px #203d6609; }
@media (max-width: 920px) {
  #settingsModal { left: 0; top: 72px; padding: 20px 15px; }
  .app-shell #reportWorkspace { grid-template-columns: 1fr; }
  #reportWorkspace .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #reportWorkspace .filter-panel > .section-heading, #reportWorkspace .filter-panel .button-row { grid-column: 1 / -1; }
  #reportWorkspace .selected-panel { grid-template-columns: 1fr; }
  #reportWorkspace .selected-panel .selected-list, #reportWorkspace .selected-panel .report-filter-box { grid-column: 1; }
  #reportWorkspace .selected-panel .report-filter-box { border-left: 0; border-top: 1px solid #e5ebf4; margin-top: 16px; padding: 16px 0 0; }
  .app-shell > .workspace, .app-shell > .polo-workspace { padding: 20px 15px 32px; }
  .view-heading { align-items: start; flex-direction: column; margin-bottom: 18px; }
}
@media (max-width: 600px) {
  #reportWorkspace .report-stepper { gap: 5px; }
  #reportWorkspace .report-stepper button { min-height: 65px; padding: 7px; flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
  #reportWorkspace .report-stepper button span { flex-basis: 26px; width: 26px; height: 26px; }
  #reportWorkspace .report-stepper button strong { font-size: 11px; }
  #reportWorkspace .filter-panel { grid-template-columns: 1fr; }
  #reportWorkspace .selected-panel .report-filter-box { grid-template-columns: 1fr; }
  #reportWorkspace .selected-panel .report-filter-group { grid-template-columns: 1fr; }
  #reportWorkspace .selected-panel .button-stack { flex-direction: column; }
  #reportWorkspace .selected-panel .button-stack .button, #reportWorkspace .report-step-actions .button { width: 100%; }
  #reportWorkspace .filter-panel .button-row { justify-content: stretch; }
  #reportWorkspace .filter-panel .button-row .button { flex: 1 1 auto; }
  #reportWorkspace .preview-actions { justify-content: flex-start; }
  .batch-panel { margin: 14px; padding: 15px; }
  .settlements-reopen-selection .button { flex: 1 1 auto; }
  #settingsModal { top: 62px; }
  .results-panel, .report-preview, .filter-panel, .selected-panel, .polo-ranking, .polo-chart-section, .polo-return-section { padding: 16px; }
  .results-actions { flex-wrap: wrap; }
  .app-shell .polo-heading h2, .view-heading h2 { font-size: 24px; }
}
@media print {
  .view-heading { display: none !important; }
  #reportWorkspace .report-stepper, #reportWorkspace .report-step-actions { display: none !important; }
  #reportWorkspace .filter-panel, #reportWorkspace .results-panel, #reportWorkspace .selected-panel { display: none !important; }
  .app-shell #reportWorkspace { display: block; padding: 0; }
  #reportWorkspace .report-main-column,
  #reportWorkspace .report-preview { display: block !important; margin: 0; max-width: none; padding: 0; border: 0; box-shadow: none; }
}

/* Inventário dos polos */
.inventory-workspace { padding: 32px 42px 56px; min-width: 0; background: #f3f6fb; }
.inventory-workspace[hidden] { display: none !important; }
.inventory-workspace [hidden] { display: none !important; }
.inventory-tabs { display: flex; gap: 8px; margin: 0 0 18px; border-bottom: 1px solid #dce5f1; padding-bottom: 12px; }
.inventory-tabs .button[aria-current="page"] { background: #eaf1ff; border-color: #9dbbf2; color: #17418a; font-weight: 700; }
.inventory-heading { margin-bottom: 22px; }
.inventory-heading h2 { margin: 8px 0 4px; color: var(--navy); font-size: 30px; }
.inventory-heading p { margin: 0; color: var(--muted); }
.inventory-card { background: #fff; border: 1px solid #dce5f1; border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.inventory-controls { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.inventory-controls .field { width: min(420px, 100%); }
.inventory-actions, .inventory-form-actions, .inventory-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inventory-form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 22px; }
.inventory-form .field { flex: 1 1 150px; min-width: 0; }
.inventory-form .field:first-child { flex: 2 1 250px; }
.inventory-form-actions { flex: 1 0 100%; justify-content: flex-end; }
.inventory-table { width: 100%; min-width: 980px; table-layout: fixed; }
.inventory-table th, .inventory-table td { text-align: left; overflow-wrap: normal; word-break: normal; }
.inventory-table th:nth-child(1), .inventory-table td:nth-child(1) { width: 39%; text-align: left; overflow-wrap: break-word; }
.inventory-table th:nth-child(2), .inventory-table td:nth-child(2) { width: 16%; }
.inventory-table th:nth-child(3), .inventory-table td:nth-child(3) { width: 19%; overflow-wrap: anywhere; }
.inventory-table th:nth-child(4), .inventory-table td:nth-child(4) { width: 8%; text-align: center; }
.inventory-table th:nth-child(5), .inventory-table td:nth-child(5) { width: 18%; text-align: left; }
.inventory-table td { vertical-align: middle; }
.inventory-table td:first-child strong { display: block; font-size: 13px; line-height: 1.4; }
.inventory-table td:first-child small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.inventory-usage { display: inline-block; border-radius: 6px; background: #eaf1ff; color: #17418a; padding: 4px 7px; font-weight: 650; white-space: nowrap; }
.inventory-usage[data-usage="ADMINISTRATIVO"] { background: #edf3ef; color: #276044; }
.inventory-usage[data-usage="NAO_APLICAVEL"] { background: #f2f4f7; color: #607084; font-weight: 500; }
.inventory-row-actions { flex-wrap: nowrap; }
.inventory-row-actions .button { width: auto; }
#inventoryMessage { color: #345578; }
.inventory-report-wrap { margin-top: 24px; }
.inventory-report-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.inventory-report-toolbar h3 { margin: 0; }
.inventory-report-summary { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.inventory-report-page .report-table td { overflow-wrap: anywhere; }
.inventory-report-page .report-table th:nth-child(1), .inventory-report-page .report-table td:nth-child(1) { width: 6%; }
.inventory-report-page .report-table th:nth-child(2), .inventory-report-page .report-table td:nth-child(2) { width: 39%; }
.inventory-report-page .report-table th:nth-child(3), .inventory-report-page .report-table td:nth-child(3) { width: 17%; }
.inventory-report-page .report-table th:nth-child(4), .inventory-report-page .report-table td:nth-child(4) { width: 23%; }
.inventory-report-page .report-table th:nth-child(5), .inventory-report-page .report-table td:nth-child(5) { width: 15%; }
.inventory-issues-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.inventory-issue-filters { display: flex; gap: 12px; flex: 1 1 auto; }
.inventory-issue-filters .field { min-width: 185px; }
.inventory-issue-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.inventory-issue-summary > div { background: #fff; border: 1px solid #dce5f1; border-radius: 12px; padding: 17px 20px; }
.inventory-issue-summary span { display: block; color: var(--muted); font-size: 12px; }
.inventory-issue-summary strong { display: block; color: var(--navy); font-size: 25px; margin-top: 3px; }
.inventory-issue-table { width: 100%; min-width: 980px; table-layout: fixed; }
.inventory-issue-table th:first-child { width: 17%; }
.inventory-issue-table th:nth-child(2), .inventory-issue-table th:nth-child(3), .inventory-issue-table th:nth-child(7) { width: 7%; }
.inventory-issue-table th:nth-child(4) { width: 13%; }
.inventory-issue-table th:nth-child(5), .inventory-issue-table th:nth-child(6) { width: 11%; }
.inventory-issue-table th:last-child { width: 27%; }
.inventory-issue-table td, .inventory-issue-table th { overflow-wrap: normal; }
#inventoryIssueMessage { color: #345578; }
.inventory-issue-alert { background: #fff8ee; }
.inventory-issue-alert td:last-child { color: #8c4b00; font-weight: 700; }
@media (max-width: 800px) {
  .inventory-workspace { padding: 20px 15px 36px; }
  .inventory-controls, .inventory-issues-toolbar { align-items: stretch; flex-direction: column; }
  .inventory-form .field { flex-basis: 180px; }
  .inventory-issue-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .inventory-form .field { flex-basis: 100%; } .inventory-issue-filters { flex-direction: column; } .inventory-issue-summary { grid-template-columns: 1fr; } }
@media print {
  .app-shell:has(#inventoryWorkspace:not([hidden])) #reportWorkspace,
  .app-shell:has(#inventoryWorkspace:not([hidden])) #poloWorkspace,
  .app-shell:has(#inventoryWorkspace:not([hidden])) #settingsModal,
  .app-shell:has(#inventoryWorkspace:not([hidden])) .inventory-heading,
  .app-shell:has(#inventoryWorkspace:not([hidden])) .inventory-controls,
  .app-shell:has(#inventoryWorkspace:not([hidden])) .inventory-card,
  .app-shell:has(#inventoryWorkspace:not([hidden])) .inventory-tabs,
  .app-shell:has(#inventoryWorkspace:not([hidden])) #inventoryIssues,
  .app-shell:has(#inventoryWorkspace:not([hidden])) .inventory-issue-summary,
  .app-shell:has(#inventoryWorkspace:not([hidden])) #inventoryMessage,
  .app-shell:has(#inventoryWorkspace:not([hidden])) .inventory-report-toolbar { display: none !important; }
  .app-shell:has(#inventoryWorkspace:not([hidden])) #inventoryWorkspace { display: block !important; padding: 0 !important; background: #fff; }
  .app-shell:has(#inventoryWorkspace:not([hidden])) #inventoryReportWrap,
  .app-shell:has(#inventoryWorkspace:not([hidden])) #inventoryIssueReportWrap { display: none !important; }
  .app-shell:has(#inventoryWorkspace:not([hidden])) #inventoryWorkspace[data-inventory-tab="items"] #inventoryReportWrap,
  .app-shell:has(#inventoryWorkspace:not([hidden])) #inventoryWorkspace[data-inventory-tab="issues"] #inventoryIssueReportWrap { display: block !important; margin: 0; }
  .app-shell:has(#inventoryWorkspace:not([hidden])) .inventory-report-page { min-width: 0; width: 210mm; min-height: 297mm; max-width: none; margin: 0; border: 0; padding: 12mm 9mm; break-after: page; page-break-after: always; }
}

/* Entrada do FCG Hub e espaços de cada plataforma. */
.platform-launcher[hidden], .invoice-workspace[hidden], .scholarship-workspace[hidden] { display: none !important; }
.app-shell.launcher-view > .app-sidebar,
.app-shell.invoice-view > .app-sidebar,
.app-shell.scholarship-view > .app-sidebar,
.app-shell.launcher-view .sidebar-toggle,
.app-shell.invoice-view .sidebar-toggle,
.app-shell.scholarship-view .sidebar-toggle { display: none !important; }
.app-shell > .platform-launcher,
.app-shell > .invoice-workspace,
.app-shell > .scholarship-workspace { grid-column: 1 / -1; grid-row: 2; min-width: 0; min-height: calc(100dvh - 72px); background: #f4f7fc; }
.platform-launcher { padding: clamp(38px, 6vw, 92px) clamp(18px, 5vw, 72px); }
.platform-launcher-inner, .invoice-workspace-inner, .scholarship-workspace-inner { max-width: 1110px; margin: 0 auto; }
.platform-launcher-kicker { display: inline-block; color: #3468b1; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.platform-launcher h2 { margin: 12px 0 8px; color: #17243b; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.12; }
.platform-launcher-inner > p { margin: 0; color: #68768b; font-size: 16px; }
.platform-launcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 42px; }
.platform-launcher-grid:has(#invoicePlatformButton[hidden]) { grid-template-columns: minmax(0, 540px); }
.platform-card[hidden] { display: none !important; }
.platform-launcher-message { margin: 18px 0 0; color: #a63232; font-size: 13px; }
.platform-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 312px; padding: 28px; border: 1px solid #dce5f1; border-radius: 18px; background: #fff; text-align: left; color: #17243b; box-shadow: 0 12px 30px #1f40700d; cursor: pointer; font: inherit; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.platform-card:hover, .platform-card:focus-visible { transform: translateY(-3px); border-color: #7ca7db; box-shadow: 0 18px 38px #1f40701c; outline: none; }
.platform-card-top { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 33px; }
.platform-card-icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 14px; background: #eaf2ff; color: #23549c; font-size: 30px; }
.platform-card-status { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: #5b6b81; font-size: 11px; font-weight: 750; white-space: nowrap; }
.platform-card-status.is-ready { background: #e6f5ed; color: #187347; }
.platform-card-number { color: #5279b4; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.platform-card strong { display: block; margin-top: 9px; font-size: clamp(23px, 2.1vw, 29px); letter-spacing: -.025em; line-height: 1.16; }
.platform-card-description { max-width: 390px; margin-top: 13px; color: #68768b; font-size: 14px; line-height: 1.55; }
.platform-card-action { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; padding-top: 30px; color: #174c98; font-size: 13px; font-weight: 800; }
.platform-card-action span { font-size: 23px; line-height: 1; }
.platform-home-button { font-weight: 700; }
.hub-admin-button { font-weight: 700; }
#settingsModal.hub-settings { left: 0; }
#settingsModal.hub-settings .settings-modal { width: min(100%, 1160px); }
.app-shell.hub-settings-view > .app-sidebar,
.app-shell.hub-settings-view .sidebar-toggle { display: none !important; }
.app-shell.hub-settings-view > .platform-launcher,
.app-shell.hub-settings-view > .invoice-workspace,
.app-shell.hub-settings-view > .scholarship-workspace { display: none !important; }
.hub-settings-tabs:not([hidden]) { display: flex; gap: 8px; padding: 14px 28px 0; }
.hub-settings-tabs button { padding: 9px 15px; border: 1px solid #d5e0ef; border-radius: 8px; background: #fff; color: #335178; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hub-settings-tabs button[aria-current="page"] { border-color: #7da9e5; background: #eaf2ff; color: #17418a; }
.invoice-workspace { padding: 30px clamp(16px, 3vw, 48px); }
.invoice-workspace-inner { max-width: 1480px; }
#invoiceWorkspace [hidden] { display: none !important; }
.fiscal-stage-nav { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; margin: 18px 0; }
.fiscal-stage-nav button { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid #d7e2f2; background: #fff; border-radius: 10px; padding: 14px 16px; color: #4f6481; cursor: pointer; }
.fiscal-stage-nav button span { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; border-radius: 7px; background: #eef3fa; font-weight: 800; }
.fiscal-stage-nav button[aria-current] { background: #eaf2ff; border-color: #87abe4; color: #174c96; }
.fiscal-stage-nav button[aria-current] span { background: #24549a; color: #fff; }
.fiscal-stage-nav button:disabled { opacity: .55; cursor: default; }
.fiscal-global-message:empty { display: none; }
.invoice-workspace-inner > .fiscal-global-message { padding: 12px 15px; background: #fff; border: 1px solid #dce5f1; border-radius: 9px; font-size: 13px; margin: 12px 0; }
.fiscal-panel-heading .fiscal-hint { margin: 7px 0 0; max-width: 780px; }
.invoice-workspace h2 { margin: 8px 0 5px; color: #17243b; font-size: clamp(29px, 3vw, 40px); letter-spacing: -.03em; }
.invoice-workspace-inner > p { margin: 0; color: #68768b; font-size: 15px; }
.invoice-intro-card { max-width: 750px; margin-top: 34px; padding: 32px; border: 1px solid #dce5f1; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px #1f40700d; }
.invoice-intro-card h3 { margin: 18px 0 9px; color: #17243b; font-size: 21px; }
.invoice-intro-card p { margin: 0 0 25px; max-width: 630px; color: #62718a; line-height: 1.6; }
.invoice-flow { display: grid; gap: 13px; margin: 22px 0 25px; padding: 0; list-style: none; counter-reset: invoice-step; }
.invoice-flow li { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 2px 11px; align-items: start; counter-increment: invoice-step; }
.invoice-flow li::before { content: counter(invoice-step); display: grid; place-items: center; grid-row: 1 / 3; width: 27px; height: 27px; border-radius: 8px; background: #eaf2ff; color: #24549a; font-size: 12px; font-weight: 800; }
.invoice-flow strong { color: #273b57; font-size: 14px; }
.invoice-flow span { color: #68768b; font-size: 13px; line-height: 1.45; }
.fiscal-page-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.fiscal-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 20px; }
.fiscal-mode-tabs button { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid #d9e4f2; border-radius: 13px; background: #fff; color: #1c3558; text-align: left; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.fiscal-mode-tabs button[aria-current="page"] { border-color: #7fa9e9; background: #eaf2ff; box-shadow: inset 4px 0 #20549f; }
.fiscal-mode-tabs small { color: #607590; font-size: 12px; font-weight: 500; }
.fiscal-page-title .button { flex: 0 0 auto; }
.fiscal-notice { padding: 15px 18px; margin-bottom: 20px; border: 1px solid #cbdcf5; border-radius: 12px; background: #eaf2ff; color: #294369; font-size: 13px; line-height: 1.5; }
.fiscal-notice a { color: #174c96; font-weight: 700; }
.fiscal-panel { margin: 17px 0; padding: 24px; border: 1px solid #dce5f1; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px #1f40700a; }
.fiscal-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.fiscal-panel-heading h3 { margin: 5px 0 0; color: #17243b; font-size: 19px; }
.fiscal-panel-heading > span { color: #657692; font-size: 13px; }
.fiscal-form-grid { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(230px, 2fr) minmax(170px, 1fr) minmax(160px, 1fr); gap: 12px; }
.fiscal-context-grid { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.fiscal-context-grid > .field:first-child { width: min(100%, 410px); }
.fiscal-context-grid > .field:nth-child(2) { width: min(100%, 210px); }
#fiscalContextPanel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 16px 24px; }
#fiscalContextPanel .fiscal-panel-heading { margin: 0; }
#fiscalContextPanel h3 { margin: 0; font-size: 16px; }
.fiscal-review-context { padding: 12px 15px; background: #f0f6ff; border-radius: 8px; color: #234b81; font-weight: 600; font-size: 13px; }
.fiscal-student-identity[hidden], #fiscalMunicipalityField[hidden], #fiscalMunicipalPanel[hidden], #fiscalStudentPanel[hidden] { display: none !important; }
.fiscal-roster-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 18px; }
.fiscal-roster-tools .field:first-child { min-width: min(100%, 250px); flex: 1 1 260px; }
.fiscal-roster-tools .field:nth-child(2) { min-width: 160px; }
.fiscal-roster-tools .button { min-height: 40px; }
.fiscal-price-box { padding: 16px; border: 1px solid #dce7f5; border-radius: 11px; background: #f7faff; }
.fiscal-price-box > div:first-child strong { color: #213b61; }
.fiscal-price-box p { margin: 4px 0 12px; color: #60728d; font-size: 12px; line-height: 1.45; }
.fiscal-price-bands { display: flex; flex-wrap: wrap; gap: 9px; margin: 10px 0; }
.fiscal-price-bands > div { display: grid; gap: 3px; min-width: 150px; padding: 10px 13px; border: 1px solid #d8e3f4; border-radius: 9px; background: #fff; }
.fiscal-price-bands strong { color: #1d4b89; }
.fiscal-price-bands span { color: #657692; font-size: 11px; }
.fiscal-price-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; }
.fiscal-price-actions .field { min-width: 220px; }
.fiscal-price-actions .button { min-height: 40px; }
.fiscal-roster-actions { white-space: nowrap; }
.fiscal-roster-actions .button { margin: 2px 3px 2px 0; }
.fiscal-municipal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 15px; }
.fiscal-municipal-summary > div { display: grid; gap: 5px; padding: 15px; border: 1px solid #dce7f5; border-radius: 10px; background: #f7faff; }
.fiscal-municipal-summary span { color: #647792; font-size: 12px; }
.fiscal-municipal-summary strong { color: #173c76; font-size: 19px; }
.fiscal-municipal-financial { margin-top: 23px; border-top: 1px solid #e4ebf5; padding-top: 15px; }
.fiscal-municipal-financial h4 { margin: 0 0 14px; color: #213b61; font-size: 17px; }
.fiscal-municipal-financial .fiscal-municipal-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fiscal-certificate-form { display: grid; grid-template-columns: 1.3fr .75fr .9fr 1.4fr auto; gap: 10px; align-items: end; margin-top: 15px; }
.fiscal-certificate-form .field { min-width: 0; }
.fiscal-certificate-form .button { min-height: 40px; }
.fiscal-student-filters { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 14px; align-items: end; margin-top: 20px; padding: 18px; border-radius: 11px; background: #f5f8fc; border: 1px solid #e1e8f2; }
.fiscal-search-actions { display: flex; gap: 8px; justify-content: flex-end; }
.fiscal-group-box { display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(160px,1fr) auto; gap: 14px; align-items: end; margin-top: 14px; padding: 12px; border-radius: 8px; background: #f7faff; }
.fiscal-group-box strong { color: #23456f; }
.fiscal-group-box p { margin: 5px 0 0; color: #61758f; font-size: 12px; line-height: 1.4; }
.fiscal-group-box .field { min-width: 0; }
.fiscal-group-box .button { min-height: 40px; }
.fiscal-lists { margin: 16px 0; padding: 16px; border: 1px solid #dce5f1; border-radius: 10px; background: #f7faff; }
.fiscal-list-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: #23456f; }
.fiscal-list-heading p, .fiscal-list-create p { margin: 5px 0 0; color: #61758f; font-size: 12px; line-height: 1.5; }
.fiscal-list-load, .fiscal-list-create { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 15px; }
.fiscal-list-load .field { flex: 1; min-width: 180px; max-width: 600px; }
.fiscal-list-create { padding-top: 15px; border-top: 1px solid #dce5f1; }
.fiscal-list-create .field { flex: 1; min-width: 220px; max-width: 400px; }
.fiscal-list-create p { flex: 1; min-width: 200px; }
.fiscal-month-line { min-height: 30px; display: flex; align-items: center; }
#fiscalMonthlyProgress:empty { display: none; }
.fiscal-student-filters .field { min-width: 0; }
.fiscal-student-filters .button { min-height: 40px; }
.fiscal-student-documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; margin-top: 10px; border: 1px solid #d8e5f7; border-radius: 9px; background: #f8fbff; }
.fiscal-student-documents > strong { grid-column: 1 / -1; color: #234d89; }
.fiscal-student-documents .field { min-width: 0; }
.fiscal-import-row { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) auto; align-items: end; gap: 12px; }
.fiscal-import-row .field { min-width: 0; }
.fiscal-import-row input[type=file] { width: 100%; padding: 9px; }
.fiscal-import-row > .button { height: 40px; }
.fiscal-control-actions { justify-content: flex-start; }
.fiscal-history-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.fiscal-history-form strong { min-width: 170px; font-size: 12px; }
.fiscal-history-form select, .fiscal-history-form input { width: auto; min-width: 150px; flex: 1 1 160px; height: 38px; }
.fiscal-history-form button { flex: 0 0 auto; }
.fiscal-issues { display: grid; gap: 7px; max-height: 230px; overflow: auto; }
.fiscal-issues > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border: 1px solid #f1d9ae; border-radius: 9px; background: #fff9ed; color: #76501e; font-size: 12px; }
.fiscal-beneficiary-editor { margin-top: 16px; border: 1px solid #dce5f1; border-radius: 10px; padding: 13px 16px; }
.fiscal-beneficiary-editor summary { cursor: pointer; font-weight: 700; color: #244677; }
.fiscal-beneficiary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 15px; }
.fiscal-beneficiary-grid .field { min-width: 0; }
.fiscal-beneficiary-grid .fiscal-check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.fiscal-beneficiary-grid > .button { height: 40px; }
.fiscal-parcel-results h4 { margin: 18px 0 10px; color: #253b5a; }
.fiscal-form-grid .field, .fiscal-search-row .field { min-width: 0; }
.fiscal-search-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr) auto; align-items: end; gap: 12px; }
.fiscal-search-row > .button { height: 40px; }
.fiscal-hint { margin: 11px 0 0; color: #677790; font-size: 12px; line-height: 1.5; }
.fiscal-contract-results, .fiscal-parcel-results, .fiscal-selected-items { margin-top: 16px; color: #63738a; font-size: 13px; }
.fiscal-search-scope { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; color: #5d708a; font-size: 12px; }
.fiscal-search-scope > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.fiscal-search-scope strong { color: #214d89; background: #edf4ff; padding: 7px 10px; border-radius: 7px; font-size: 13px; }
.fiscal-students-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #dde6f1; border-radius: 10px; }
#fiscalContractResults .fiscal-students-table-wrap { max-height: 560px; overflow: auto; }
.fiscal-students-table thead th { position: sticky; top: 0; z-index: 1; }
.fiscal-students-table, .fiscal-review-table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; color: #293d58; }
.fiscal-students-table { min-width: 1320px; }
.fiscal-students-table th, .fiscal-review-table th { text-align: left; background: #eff4fa; color: #536b8c; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.fiscal-students-table th, .fiscal-students-table td, .fiscal-review-table th, .fiscal-review-table td { padding: 14px 12px; border-bottom: 1px solid #e6edf5; vertical-align: middle; overflow-wrap: break-word; word-break: normal; }
.fiscal-students-table tbody tr:last-child td, .fiscal-review-table tbody tr:last-child td { border-bottom: 0; }
.fiscal-students-table tbody tr:hover { background: #f7faff; }
.fiscal-students-table tr.is-selected { background: #edf4ff; }
.fiscal-students-table strong, .fiscal-review-table strong { display: block; color: #223b60; font-size: 12px; line-height: 1.45; }
.fiscal-students-table small, .fiscal-review-table small { display: block; color: #73839b; font-size: 11px; line-height: 1.45; margin-top: 5px; }
.fiscal-col-check { width: 42px; }
.fiscal-col-student { width: 24%; }
.fiscal-col-course { width: 23%; }
.fiscal-col-campus { width: 15%; }
.fiscal-col-period { width: 100px; }
.fiscal-col-status { width: 145px; }
.fiscal-col-action { width: 126px; }
.fiscal-period-badge { display: inline-block; padding: 5px 9px; border-radius: 6px; background: #edf3fd; color: #24549a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.fiscal-status-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 11px; line-height: 1.4; font-weight: 700; }
.fiscal-status-badge.is-active { background: #e9f6f0; color: #257057; }
.fiscal-status-badge.is-warning { background: #fff2da; color: #875a16; }
.fiscal-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 13px 0; font-size: 12px; }
.fiscal-pagination > div { display: flex; align-items: center; gap: 10px; }
.fiscal-selection-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 15px 17px; border: 1px solid #c6d9f5; border-radius: 10px; background: #f0f6ff; color: #234b81; font-size: 13px; }
.fiscal-selection-bar > div { display: flex; gap: 9px; }
.fiscal-review-table th:first-child { width: 25%; }
.fiscal-review-table th:nth-child(2) { width: 20%; }
.fiscal-review-table th:nth-child(3) { width: 16%; }
.fiscal-review-table th:nth-child(4) { width: 13%; }
.fiscal-review-table th:nth-child(5) { width: 17%; }
.fiscal-review-table input { width: 100%; min-width: 0; height: 39px; border: 1px solid #b8cbe7; border-radius: 7px; padding: 8px; }
.fiscal-parcel-dialog { width: min(850px, calc(100vw - 32px)); max-height: 85dvh; overflow: auto; border: 1px solid #cbd9ee; border-radius: 15px; padding: 24px; box-shadow: 0 24px 80px #142a4e40; }
.fiscal-parcel-dialog::backdrop { background: #15274270; }
.fiscal-parcel-dialog h3 { margin: 0; color: #213b61; }
.fiscal-result-list { display: grid; gap: 8px; max-height: 270px; overflow: auto; }
.fiscal-result { width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) auto; gap: 15px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid #dce5f1; border-radius: 10px; background: #f8faff; color: #1a3154; cursor: pointer; }
.fiscal-result:hover { border-color: #8db0e8; background: #edf4ff; }
.fiscal-result span { color: #6a7890; font-size: 12px; }
.fiscal-result b { color: #24549a; font-size: 12px; }
.fiscal-parcel-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 10px; }
.fiscal-parcel-head > div { display: grid; gap: 3px; }
.fiscal-parcel-head span { color: #71809b; font-size: 12px; }
.fiscal-parcel-table { max-height: 310px; overflow: auto; border: 1px solid #e2e9f3; border-radius: 10px; }
.fiscal-parcel-table table { width: 100%; border-collapse: collapse; min-width: 580px; }
.fiscal-parcel-table th { position: sticky; top: 0; background: #edf2f9; color: #405c86; font-size: 11px; text-align: left; text-transform: uppercase; }
.fiscal-parcel-table th, .fiscal-parcel-table td { padding: 10px 12px; border-bottom: 1px solid #e8edf5; }
.fiscal-parcel-table td:nth-child(4) { font-weight: 700; color: #253b5a; }
.fiscal-selected-head { display: flex; justify-content: space-between; padding: 11px 12px; border-radius: 9px 9px 0 0; background: #eaf2ff; color: #234d89; }
.fiscal-selected-list { max-height: 220px; overflow: auto; border: 1px solid #d8e5f7; border-top: 0; border-radius: 0 0 9px 9px; }
.fiscal-selected-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid #e7edf5; }
.fiscal-selected-list > div:first-child { border-top: 0; }
.fiscal-preview-empty { padding: 20px; border: 1px dashed #cdd9ea; border-radius: 10px; background: #f8faff; color: #7a89a0; }
.fiscal-preview-card { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 15px; padding: 18px; border: 1px solid #b8cef0; border-radius: 10px; background: #edf4ff; }
.fiscal-preview-card > div { display: grid; align-content: start; gap: 4px; }
.fiscal-preview-card span, .fiscal-preview-card small { color: #5e7396; font-size: 12px; }
.fiscal-preview-card strong { color: #173d78; font-size: 17px; }
.fiscal-payment-warning { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #efd19a; border-radius: 9px; background: #fff8e9; color: #7a4d13; }
.fiscal-payment-warning strong, .fiscal-payment-warning small, .fiscal-payment-warning label { display: block; }
.fiscal-payment-warning strong { color: #7a4d13; font-size: 13px; }
.fiscal-payment-warning small { margin: 3px 0 9px; color: #805d31; }
.fiscal-payment-warning ul { margin: 0 0 10px; padding-left: 18px; }
.fiscal-payment-warning label { font-size: 12px; cursor: pointer; }
.fiscal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.fiscal-drafts { display: grid; gap: 9px; }
.fiscal-empty { padding: 25px; border: 1px dashed #ccd9eb; border-radius: 10px; color: #7a89a0; text-align: center; }
.fiscal-draft { border: 1px solid #dde6f2; border-radius: 11px; background: #fff; }
.fiscal-draft summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; cursor: pointer; list-style-position: inside; }
.fiscal-draft summary > span { display: grid; gap: 5px; }
.fiscal-draft small { color: #71819a; font-size: 12px; }
.fiscal-draft-value { text-align: right; color: #17477e; font-weight: 800; }
.fiscal-draft-body { padding: 0 18px 18px; border-top: 1px solid #e8eef6; }
.fiscal-draft-items { max-height: 210px; overflow: auto; margin: 12px 0; }
.fiscal-draft-items > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #edf1f7; font-size: 12px; }
.fiscal-note-form { padding: 17px; border-radius: 10px; background: #f5f8fc; }
.fiscal-note-form h4 { margin: 0 0 12px; color: #243b5c; }
.fiscal-note-form > .field { margin-top: 12px; }
.fiscal-financial-summary { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 16px 0; padding: 13px; border-radius: 9px; background: #eaf2ff; color: #264770; }
.fiscal-financial-summary strong { margin-left: auto; color: #143c78; }
.fiscal-financial-list { display: grid; gap: 4px; color: #526783; font-size: 12px; }
.fiscal-financial-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 9px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid #dce5f1; }
.fiscal-financial-form h4 { grid-column: 1 / -1; margin: 0; }
.fiscal-financial-form .field { min-width: 0; }
@media (max-width: 900px) { .fiscal-financial-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .fiscal-beneficiary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fiscal-beneficiary-grid, .fiscal-financial-form { grid-template-columns: 1fr; } }
.fiscal-note-form .fiscal-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .fiscal-form-grid, .fiscal-search-row, .fiscal-import-row, .fiscal-preview-card { grid-template-columns: 1fr; } .fiscal-result { grid-template-columns: 1fr; gap: 4px; } .fiscal-page-title { align-items: start; flex-direction: column; } .fiscal-panel { padding: 17px; } .fiscal-note-form .fiscal-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .fiscal-group-box, .fiscal-certificate-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fiscal-group-box > div { grid-column: 1 / -1; } }
@media (max-width: 900px) { .fiscal-student-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .fiscal-municipal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fiscal-mode-tabs, .fiscal-student-filters, .fiscal-student-documents, .fiscal-municipal-summary, .fiscal-municipal-financial .fiscal-municipal-summary, .fiscal-group-box, .fiscal-certificate-form { grid-template-columns: 1fr; } .fiscal-roster-tools .field { flex-basis: 100%; } }
@media (max-width: 700px) { .fiscal-stage-nav { grid-template-columns: 1fr 1fr; } .fiscal-stage-nav button { padding: 10px; font-size: 12px; } .fiscal-selection-bar { position: static; } .fiscal-selection-bar > div { flex-wrap: wrap; } .fiscal-pagination > div { gap: 5px; } .fiscal-parcel-dialog { padding: 16px; } }
@media (max-width: 700px) {
  .platform-launcher-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .platform-card { min-height: 266px; padding: 22px; }
  .platform-card-top { margin-bottom: 24px; }
  .app-shell > .platform-launcher, .app-shell > .invoice-workspace, .app-shell > .scholarship-workspace { min-height: calc(100dvh - 62px); }
  .invoice-intro-card { padding: 23px; }
  .hub-settings-tabs:not([hidden]) { padding: 14px 18px 0; }
}

/* Concurso de Bolsas. */
.scholarship-workspace { padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px); }
.scholarship-page-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.scholarship-page-title h2 { margin: 8px 0 5px; color: #17243b; font-size: clamp(29px, 3vw, 40px); letter-spacing: -.03em; }
.scholarship-page-title p { margin: 0; color: #68768b; }
.scholarship-message { min-height: 24px; color: #25518d; font-size: 14px; }
.scholarship-message.is-error, .scholarship-pending.is-error { color: #a63232; }
.scholarship-panel { margin: 20px 0; padding: 26px; border: 1px solid #dce5f1; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px #1f40700d; }
.scholarship-panel-heading { margin-bottom: 10px; }
.scholarship-panel h3 { margin: 6px 0 0; color: #17243b; font-size: 22px; }
.scholarship-panel > p { color: #68768b; line-height: 1.5; }
#scholarshipCreateForm > .field { max-width: 460px; }
.scholarship-edital-list { display: grid; gap: 9px; max-height: 330px; overflow: auto; margin: 17px 0; }
.scholarship-organizations { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 9px; margin: 18px 0; }
.scholarship-org { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #dce5f1; border-radius: 10px; cursor: pointer; font-size: 14px; color: #243a5a; }
.scholarship-org:has(input:checked), .scholarship-edital:has(input:checked) { border-color: #3268b5; background: #edf4ff; }
.scholarship-selected { display: grid; gap: 7px; margin: 10px 0 18px; }
.scholarship-selected > div { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px; background: #edf4ff; border-radius: 8px; font-size: 13px; }
#scholarshipCreateButton { margin-top: 14px; }
#scholarshipAccessPanel > summary { font-weight: 700; font-size: 18px; color: #243a5a; cursor: pointer; }
#scholarshipPendingDetails { margin: 12px 0 20px; color: #873a29; font-size: 13px; }
#scholarshipPendingList { max-height: 260px; overflow: auto; }
.scholarship-room-list details { width: 100%; background: #edf4ff; padding: 10px; border-radius: 7px; font-size: 13px; color: #243a5a; }
.scholarship-room-list summary { cursor: pointer; }
.scholarship-room-list li { padding: 3px 0; }
.scholarship-edital { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid #dce5f1; border-radius: 10px; cursor: pointer; }
.scholarship-edital:hover { border-color: #9dbce5; background: #f8fbff; }
.scholarship-edital input { margin-top: 4px; }
.scholarship-edital strong, .scholarship-edital small { display: block; }
.scholarship-edital strong { color: #243a5a; }
.scholarship-edital small { margin-top: 3px; color: #68768b; }
.scholarship-select-row { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.scholarship-select-row .field { min-width: min(100%, 360px); }
.scholarship-sync { margin: 19px 0 8px; color: #68768b; font-size: 13px; }
.scholarship-summary { margin: 0 0 8px; color: #17243b; font-size: 20px; font-weight: 750; }
.scholarship-pending { margin: 0 0 17px; color: #23734d; font-size: 14px; }
.scholarship-sites { display: grid; gap: 15px; }
.scholarship-site { padding: 19px; border: 1px solid #dce5f1; border-radius: 12px; background: #fbfcff; }
.scholarship-site-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.scholarship-site-heading h4 { margin: 0 0 4px; color: #17243b; font-size: 18px; }
.scholarship-site-heading p, .scholarship-address { margin: 0; color: #68768b; font-size: 13px; }
.scholarship-site-heading > strong { white-space: nowrap; color: #23549c; }
.scholarship-address { margin-top: 6px; }
.scholarship-capacity { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.scholarship-capacity label span { display: block; margin-bottom: 5px; color: #4c617d; font-size: 12px; font-weight: 700; }
.scholarship-capacity input { width: 130px; padding: 10px; border: 1px solid #cbd7e7; border-radius: 8px; font: inherit; }
.scholarship-room-summary { margin: 14px 0 6px; color: #4c617d; font-size: 13px; }
.scholarship-room-list { display: flex; flex-wrap: wrap; gap: 7px; }
.scholarship-room-list span { padding: 6px 9px; border-radius: 7px; background: #eaf2ff; color: #23549c; font-size: 12px; }
.scholarship-print-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.scholarship-note { margin: 12px 0 0; color: #68768b; font-size: 12px; }
.scholarship-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.scholarship-access-grid h4 { margin: 8px 0 12px; color: #253b5b; }
.scholarship-access-user { display: flex; align-items: flex-start; gap: 9px; padding: 8px 4px; border-bottom: 1px solid #edf1f6; color: #324963; font-size: 13px; cursor: pointer; }
.scholarship-access-user input { margin-top: 2px; }
.scholarship-access-group { margin: 10px 0; padding: 11px; border: 1px solid #dce5f1; border-radius: 9px; }
.scholarship-access-group summary { color: #253b5b; font-weight: 700; cursor: pointer; }
.scholarship-group-form { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.scholarship-group-form .field { flex: 1; min-width: 180px; }
@media (max-width: 700px) { .scholarship-page-title { align-items: flex-start; flex-direction: column; } .scholarship-panel { padding: 18px; } .scholarship-access-grid { grid-template-columns: 1fr; } }
.scholarship-unify-panel { padding: 18px; margin: 20px 0; border: 1px solid #b9cce4; border-radius: 12px; background: #f4f8fe; }
.scholarship-unify-panel h4 { margin: 0 0 8px; }
.scholarship-unify-panel label { display: grid; gap: 6px; max-width: 720px; }
.scholarship-unify-panel select { width: 100%; padding: 10px; }
.scholarship-merge-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; }
.scholarship-merge-check input { width: auto; }
.scholarship-source { font-size: 12px; color: #52657a; }

/* Concurso de Bolsas: classificação e sala especial. */
.scholarship-support-panel {border:1px solid #d8e2f0;padding:16px;border-radius:12px;margin:16px 0;}
.scholarship-support-panel > summary,.scholarship-special-config > summary {cursor:pointer;font-weight:600;}
.scholarship-support-panel .field {display:flex;flex-direction:column;gap:6px;margin:12px 0;}
.scholarship-support-panel input,.scholarship-support-panel select,.scholarship-support-panel textarea {width:100%;padding:9px;border:1px solid #cbd8ed;border-radius:6px;background:white;color:#102849;}
.scholarship-special-config {margin:14px 0;padding:12px;background:#f2f6ff;border-radius:8px;}
.scholarship-special-config p {font-size:12px;line-height:1.6;}

.scholarship-staff-site {margin:14px 0;border-top:1px solid #d8e2f0;padding-top:12px;}
.scholarship-staff-site > summary {font-weight:600;cursor:pointer;line-height:1.7;}
.scholarship-staff-entry {display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;margin:12px 0;background:#f2f6ff;border-radius:8px;}
.scholarship-staff-entry > strong,.scholarship-staff-entry > small,.scholarship-staff-entry > p {grid-column:1/-1;}
.scholarship-staff-entry .field {min-width:0;margin:0;}
.scholarship-staff-counts {width:100%;border-collapse:collapse;font-size:13px;}
.scholarship-staff-counts th,.scholarship-staff-counts td {border:1px solid #d8e2f0;padding:8px;text-align:left;}
@media(max-width:600px){.scholarship-staff-entry{grid-template-columns:1fr;}}

/* Global candidate classification is edited directly in table rows. */
.scholarship-workspace-inner {max-width:1800px;}
.scholarship-workspace {padding:28px 24px;}
.scholarship-support-toolbar {display:flex;gap:16px;align-items:end;flex-wrap:wrap;}
.scholarship-support-toolbar .field:first-child {flex:1;min-width:260px;}
.scholarship-support-toolbar .field:last-child {min-width:260px;}
.scholarship-support-count {margin:8px 0;font-size:12px;}
.scholarship-support-scroll {overflow:auto;max-height:640px;border:1px solid #d8e2f0;border-radius:8px;}
.scholarship-support-table {width:100%;min-width:1200px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;line-height:1.4;color:#233b5b;}
.scholarship-support-table caption {text-align:left;padding:10px 12px;background:#e9f0fb;font-weight:600;}
.scholarship-support-table th {position:sticky;top:0;z-index:2;background:#e9f0fb;text-align:left;font-size:11px;color:#345377;}
.scholarship-support-table th,.scholarship-support-table td {padding:10px 8px;border-bottom:1px solid #d8e2f0;border-right:1px solid #e5ebf4;vertical-align:top;overflow-wrap:anywhere;}
.scholarship-support-table tbody tr {background:#fff;}
.scholarship-support-table tbody tr:nth-child(even) {background:#f6f9fd;}
.scholarship-support-table tbody tr.has-draft {background:#fff9e9;}
.scholarship-support-table tbody tr:hover {background:#edf4ff;}
.scholarship-support-table th:nth-child(1) {width:140px;}
.scholarship-support-table th:nth-child(2) {width:125px;}
.scholarship-support-table th:nth-child(3) {width:150px;}
.scholarship-support-table th:nth-child(4) {width:100px;}
.scholarship-support-table th:nth-child(5) {width:155px;}
.scholarship-support-table th:nth-child(6) {width:230px;}
.scholarship-support-table th:nth-child(7) {width:80px;}
.scholarship-support-table th:nth-child(8) {width:105px;}
.scholarship-support-table th:nth-child(9) {width:72px;}
.scholarship-support-table th:nth-child(10) {width:125px;}
.scholarship-support-table td:first-child {position:sticky;left:0;z-index:1;background:inherit;}
.scholarship-support-table th:first-child {left:0;z-index:3;}
.scholarship-support-table strong,.scholarship-support-table small {display:block;}
.scholarship-support-table small {margin-top:4px;font-size:11px;}
.scholarship-support-table .scholarship-support-row-status {font-weight:600;color:#365e8c;}
.scholarship-support-table input,.scholarship-support-table select {min-width:0;width:100%;height:34px;padding:5px;font-size:12px;box-sizing:border-box;}
.scholarship-support-hint {display:block;margin:8px 0;color:#526b8c;}
.scholarship-type-catalog {margin:12px 0;padding:12px;border:1px solid #d8e2f0;border-radius:8px;}
.scholarship-type-create {display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap;}
.scholarship-type-create input {flex:1;min-width:220px;}
.scholarship-type-catalog-list {max-height:280px;overflow:auto;}
.scholarship-type-picker {display:flex;align-items:center;gap:6px;}
.scholarship-type-trigger,.scholarship-type-add {height:34px;background:#fff;border:1px solid #cbd8e8;border-radius:6px;color:#172b4d;cursor:pointer;}
.scholarship-type-trigger {display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;flex:1;padding:5px 9px;text-align:left;font-size:12px;}
.scholarship-type-trigger span:first-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}
.scholarship-type-count {flex:none;font-weight:600;color:#365e8c;}
.scholarship-type-add {width:34px;flex:none;font-size:21px;padding:0;}
.scholarship-type-trigger:focus-visible,.scholarship-type-add:focus-visible {outline:2px solid #3774cc;outline-offset:2px;}
.scholarship-type-dropdown {position:fixed;inset:auto;margin:0;padding:10px;box-sizing:border-box;overflow:auto;background:#fff;color:#172b4d;border:1px solid #cfdae9;border-radius:8px;box-shadow:0 8px 25px #172b4d26;font:13px Arial,sans-serif;}
.scholarship-type-dropdown input[type=search] {width:100%;height:34px;box-sizing:border-box;padding:7px 9px;border:1px solid #d8e2f0;border-radius:5px;font-size:13px;}
.scholarship-type-options {max-height:210px;overflow:auto;margin:7px 0;}
.scholarship-type-options label {display:flex;align-items:center;gap:9px;padding:9px 6px;cursor:pointer;border-radius:4px;}
.scholarship-type-options label:hover {background:#eef3fb;}
.scholarship-type-dropdown .scholarship-type-options input[type=checkbox] {width:16px;height:16px;flex:none;margin:0;}
.scholarship-type-dropdown small {color:#60718a;font-size:11px;}
.scholarship-type-dialog {width:min(440px,calc(100vw - 40px));box-sizing:border-box;border:1px solid #d8e2f0;border-radius:12px;padding:24px;color:#172b4d;background:#fff;}
.scholarship-type-dialog::backdrop {background:#172b4d66;}
.scholarship-type-dialog h3 {margin:0 0 20px;}
.scholarship-type-dialog label {display:block;font-size:13px;}
.scholarship-type-dialog input {width:100%;box-sizing:border-box;margin-top:6px;padding:10px;}
.scholarship-type-dialog p {font-size:12px;color:#60718a;}
.scholarship-type-dialog .scholarship-type-error {color:#b42318;}
.scholarship-type-dialog-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:18px;}
.scholarship-team-toolbar {display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0;}
.scholarship-team-toolbar .team-progress {margin-right:auto;font-size:13px;color:#526b8c;}
.scholarship-team-scroll {overflow:auto;border:1px solid #d8e2f0;border-radius:8px;}
.scholarship-team-table {width:100%;min-width:800px;border-collapse:collapse;table-layout:fixed;font-size:12px;}
.scholarship-team-table th {background:#eef3fa;text-align:left;padding:8px;}
.scholarship-team-table td {padding:6px 8px;border-top:1px solid #e5ebf4;vertical-align:middle;}
.scholarship-team-table input,.scholarship-team-table select {width:100%;min-width:0;box-sizing:border-box;font-size:12px;padding:6px;height:34px;}
.scholarship-team-table th:nth-child(1) {width:25%;}.scholarship-team-table th:nth-child(2) {width:20%;}
.scholarship-team-table th:nth-child(3) {width:27%;}.scholarship-team-table th:nth-child(4) {width:18%;}
.scholarship-team-table th:nth-child(5) {width:10%;}
.scholarship-team-table small {display:block;color:#526b8c;margin-top:3px;}
.scholarship-team-table .has-draft {background:#fff9e9;}
.scholarship-team-table button {padding:5px 8px;font-size:11px;}
.scholarship-team-secondary {margin-top:12px;font-size:12px;color:#526b8c;}
