:root {
  --bg-1: #0e1623;
  --bg-2: #0b1220;
  --panel: #151f2e;
  --panel-2: #1a2638;
  --panel-3: rgba(255, 255, 255, 0.04);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --nav-text: #dbe7ff;
  --nav-bg: rgba(255, 255, 255, 0.03);
  --nav-hover-bg: linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.04));
  --nav-hover-border: rgba(59, 130, 246, 0.22);
  --badge-text: #cfe1ff;
  --label-text: #dbe7ff;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-placeholder: rgba(148, 163, 184, 0.85);
  --table-head-bg: rgba(59, 130, 246, 0.1);
  --table-head-text: #cfe1ff;
  --soft-border: rgba(255, 255, 255, 0.06);
  --secondary-bg: rgba(255, 255, 255, 0.05);
  --secondary-border: rgba(255, 255, 255, 0.12);
  --secondary-text: #e5e7eb;
  --ghost-bg: rgba(255, 255, 255, 0.03);
  --ghost-text: #dbe7ff;
  --select-arrow: rgba(229, 231, 235, 0.86);
  --option-bg: #152133;
  --option-text: #e5e7eb;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, Arial, sans-serif;
}

html[data-theme="dark"],
:root {
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg-1: #eef3f8;
  --bg-2: #e4ebf3;
  --panel: #ffffff;
  --panel-2: #f6f9fc;
  --panel-3: rgba(15, 23, 42, 0.04);
  --text: #182230;
  --muted: #4f6074;
  --border: rgba(15, 23, 42, 0.12);
  --primary-soft: rgba(59, 130, 246, 0.12);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  --nav-text: #1f2d3d;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-hover-bg: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.96));
  --nav-hover-border: rgba(59, 130, 246, 0.18);
  --badge-text: #1e3a8a;
  --label-text: #243244;
  --input-bg: rgba(255, 255, 255, 0.94);
  --input-placeholder: rgba(96, 112, 132, 0.92);
  --table-head-bg: rgba(59, 130, 246, 0.09);
  --table-head-text: #182230;
  --soft-border: rgba(15, 23, 42, 0.10);
  --secondary-bg: rgba(255, 255, 255, 0.92);
  --secondary-border: rgba(15, 23, 42, 0.12);
  --secondary-text: #182230;
  --ghost-bg: rgba(255, 255, 255, 0.82);
  --ghost-text: #243041;
  --select-arrow: rgba(51, 65, 85, 0.85);
  --option-bg: #ffffff;
  --option-text: #182230;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 0% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

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

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  padding: 22px 18px 18px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.26), rgba(59, 130, 246, 0.08));
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #cfe1ff;
}

.brand-logo {
  width: min(224px, 100%);
  height: 58px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  font-weight: 900;
}

.brand p {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--nav-text);
  border: 1px solid transparent;
  background: var(--nav-bg);
  transition: 0.16s ease;
}

.nav-link:hover,
.nav-link.active {
  transform: translateY(-1px);
  border-color: var(--nav-hover-border);
  background: var(--nav-hover-bg);
}

.nav-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 22px 2px 10px;
}

.sidebar-card {
  margin-top: 22px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-card h3,
.sidebar-card p {
  margin: 0;
}

.sidebar-card h3 {
  font-size: 13px;
  margin-bottom: 6px;
}

.sidebar-card p,
.sidebar-card li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.sidebar-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.page {
  min-width: 0;
  padding: 18px 22px 24px;
}

.page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.page-title h2,
.page-title p {
  margin: 0;
}

.page-title h2 {
  font-size: 22px;
  font-weight: 900;
}

.page-title p {
  margin-top: 4px;
  color: var(--muted);
  max-width: 76ch;
  font-size: 13px;
  line-height: 1.4;
}

.page-actions,
.inline-actions,
.actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.operation-action-bar {
  position: sticky;
  top: 10px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.operation-action-bar.hidden {
  display: none;
}

.operation-action-label {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.operation-action-label strong,
.operation-action-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-action-label span {
  color: var(--muted);
  font-size: 12px;
}

.operation-action-buttons,
.solicitacao-card-head-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip strong {
  font-size: 13px;
}

.user-chip span {
  font-size: 12px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: var(--badge-text);
  font-size: 10px;
  font-weight: 700;
}

.badge.neutral {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.18);
  color: #dbe4ef;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.stat-card,
.panel-card,
.table-card,
.form-card,
.detail-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.stat-card {
  padding: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.stack {
  display: grid;
  gap: 18px;
}

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

.compact-stats {
  margin-bottom: 14px;
}

.compact-stat-card,
.compact-card {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.compact-stat-card {
  padding: 14px;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 14px;
  align-items: start;
  overflow: visible;
}

.workflow-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.workflow-column {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: visible;
}

.workflow-column-main {
  min-width: 0;
}

.compact-card {
  padding: 14px;
}

.compact-card .panel-head {
  margin-bottom: 8px;
}

body.form-modal-open {
  overflow: hidden;
}

.form-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(8px);
  z-index: 90;
}

.form-modal-card {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  z-index: 91;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(21, 31, 46, 0.99), rgba(15, 23, 37, 0.99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.form-modal-card .panel-head {
  position: sticky;
  top: -18px;
  z-index: 2;
  margin: -18px -18px 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(21, 31, 46, 0.99), rgba(15, 23, 37, 0.99));
  border-bottom: 1px solid var(--soft-border);
}

.form-modal-card .compact-form {
  gap: 14px;
}

.form-modal-card .actions:last-child {
  position: sticky;
  bottom: -18px;
  margin: 18px -18px -18px;
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, rgba(21, 31, 46, 0.02), rgba(15, 23, 37, 0.99) 34%);
}

.wizard-form-frame {
  display: grid;
  gap: 14px;
}

.wizard-form-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wizard-form-steps .wizard-step {
  min-height: 88px;
}

.wizard-form-body {
  display: grid;
  gap: 14px;
}

.wizard-form-section {
  display: grid;
  gap: 14px;
}

.wizard-form-head {
  display: grid;
  gap: 6px;
}

.wizard-form-head p,
.wizard-form-tip {
  margin: 0;
}

.wizard-form-card {
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.10);
}

.wizard-form-card > .grid-1,
.wizard-form-card > .grid-2,
.wizard-form-card > .grid-3,
.wizard-form-card > .grid-4,
.wizard-form-card > .stack {
  margin-top: 14px;
}

.wizard-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-step-meta {
  display: grid;
  gap: 4px;
}

.wizard-step-meta strong {
  font-size: 12px;
}

.check-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: rgba(255, 255, 255, 0.03);
}

.check-tile input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2563eb;
}

.check-tile strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.check-tile span {
  display: block;
  color: var(--muted-text);
  font-size: 12px;
  line-height: 1.45;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted-text);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.schedule-grid {
  align-items: start;
}

.grid-4.schedule-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.grid-4.schedule-grid.interval-required {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.grid-4.schedule-grid.separated-schedule {
  grid-template-columns: minmax(150px, 0.72fr) minmax(130px, 0.58fr) minmax(130px, 0.58fr) minmax(170px, 0.78fr) minmax(240px, 1.2fr) minmax(170px, 0.75fr);
}

.grid-4.schedule-grid.separated-schedule:not(.interval-required) {
  grid-template-columns: minmax(150px, 0.72fr) minmax(130px, 0.58fr) minmax(130px, 0.58fr) minmax(260px, 1.25fr) minmax(170px, 0.75fr);
}

.schedule-grid label,
.wizard-form-card label,
.form-modal-card label {
  align-content: start;
  min-width: 0;
}

.schedule-grid select,
.wizard-form-card input,
.wizard-form-card select,
.wizard-form-card textarea {
  width: 100%;
}

#autorizacoes-vagas-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

#autorizacoes-vagas-lista .selection-card {
  display: grid;
  gap: 10px;
}

#intervalo_horario_wrap.hidden {
  display: none;
}

.form-inline-control {
  display: grid;
  align-content: end;
  gap: 6px;
  min-width: 0;
}

.form-inline-control .field-label {
  color: var(--label-text);
  font-size: 11px;
  font-weight: 800;
}

.form-inline-control button {
  width: 100%;
}

.activity-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.activity-picker select[multiple] {
  min-height: 136px;
  background-image: none;
  padding-right: 11px;
}

.activity-picker .inline-actions {
  gap: 8px;
}

.activity-picker .inline-actions button {
  flex: 1 1 160px;
}

.solicitacao-card-secondary {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.compact-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.solicitacoes-lista {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 280px);
  overflow: auto;
  padding-right: 4px;
}

.solicitacao-card {
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.solicitacao-card.active {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.09);
}

.solicitacao-card-main {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: grid;
  gap: 8px;
  justify-items: stretch;
  text-align: left;
  cursor: pointer;
}

.solicitacao-card-main:hover {
  transform: none;
}

.solicitacao-card-head,
.solicitacao-card-actions,
.pane-head,
.selection-head,
.convocacao-card-head,
.convocacao-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.solicitacao-card-actions-top {
  justify-content: flex-end;
  margin-bottom: 10px;
}

#solicitacao-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.solicitacao-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.capacity-card,
.step-card,
.next-action-card,
.convocacao-card {
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.capacity-card {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.capacity-card span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.capacity-card.danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.stepper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.step-card {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.step-card.done {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08);
}

.step-card.current {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.08);
}

.step-card.pending {
  opacity: 0.82;
}

.next-action-card {
  padding: 10px;
  margin-bottom: 8px;
}

.next-action-card strong,
.next-action-card p {
  margin: 0;
}

.next-action-card strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.next-action-card p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.38;
}

.compact-detail-grid {
  gap: 10px;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-lines {
  display: grid;
  gap: 12px;
}

.detail-lines .muted.small {
  margin-bottom: 4px;
  display: inline-block;
}

.compact-form {
  gap: 12px;
}

.compact-textarea {
  min-height: 72px;
}

.compact-composer {
  gap: 10px;
}

.required-field {
  color: var(--label-text);
}

.required-field textarea {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.required-field::before {
  content: "Obrigatória para flexibilização";
  display: inline-block;
  margin-bottom: 4px;
  color: #fbbf24;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.selection-card p {
  margin: 6px 0 0;
  line-height: 1.42;
}

.selection-card.compact {
  padding: 10px 12px;
}

.quadro-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.quadro-picker-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--soft-border);
  background: var(--panel);
}

.quadro-picker-card.selected {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.20) inset;
}

.quadro-picker-card.blocked {
  opacity: 0.72;
  border-style: dashed;
}

.quadro-picker-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.quadro-picker-card .selection-toggle {
  align-self: flex-start;
}

.quadro-picker-card .selection-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.quadro-history-list {
  display: grid;
  gap: 8px;
}

.quadro-history-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--soft-border);
  background: var(--surface);
}

.pane-head {
  margin: 2px 0 8px;
}

.pane-head-spaced {
  margin-top: 0;
}

.elegiveis-pane,
.convocacoes-pane {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 430px);
  overflow: auto;
  padding-right: 4px;
}

.vagas-pane {
  display: grid;
  gap: 10px;
}

.vaga-card {
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.vaga-card.selected {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.08);
}

.vaga-card-head,
.vaga-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.vaga-card-head strong,
.vaga-card-footer strong,
.vaga-card-grid strong {
  font-size: 11px;
  line-height: 1.3;
}

.vaga-card-grid .muted.small,
.vaga-card-head .muted.small,
.vaga-card-footer .muted.small {
  font-size: 9px;
}

.vaga-card-grid > div > div:not(.muted) {
  font-size: 11px;
  line-height: 1.35;
}

.convocacao-card {
  display: grid;
  padding: 12px;
  gap: 10px;
}

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

.convocacao-card.current {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.08);
}

.convocacao-card-footer {
  align-items: center;
}

.acompanhamento-grid {
  gap: 10px;
}

.flow-prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.panel-card,
.table-card,
.form-card,
.detail-card {
  padding: 18px;
}

.table-card.compact-card,
.form-card.compact-card,
.detail-card.compact-card {
  padding: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-head h3,
.panel-head p {
  margin: 0;
}

.panel-head h3 {
  font-size: 12px;
}

.panel-head p {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}

.grid-1,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 12px;
}

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

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

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

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

label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--label-text);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}

select {
  color-scheme: dark;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--select-arrow) 50%),
    linear-gradient(135deg, var(--select-arrow) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

select option,
select optgroup,
option {
  background: var(--option-bg);
  color: var(--option-text);
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(59, 130, 246, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
}

button.secondary,
.button-link.secondary {
  background: var(--secondary-bg);
  border-color: var(--secondary-border);
  color: var(--secondary-text);
}

button.warn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fde6b2;
}

button.danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.32);
  color: #ffd4d4;
}

button.ghost,
.button-link.ghost {
  background: var(--ghost-bg);
  border-color: var(--border);
  color: var(--ghost-text);
}

button:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
}

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

th,
td {
  padding: 10px 11px;
  text-align: left;
  border-bottom: 1px solid var(--soft-border);
  font-size: 12px;
  vertical-align: top;
}

tbody tr.active-row td {
  background: rgba(59, 130, 246, 0.08);
}

td .actions {
  align-items: flex-start;
}

th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--table-head-text);
  background: var(--table-head-bg);
}

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

.mono,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: #c9f9d8;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.neutral {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
  color: #dbe4ef;
}

.status-pill.info {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.24);
  color: #d7e7ff;
}

.status-pill.success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.24);
  color: #d5ffe1;
}

.status-pill.warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde6b2;
}

.status-pill.danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ffd4d4;
}

.message {
  display: none;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.message.show {
  display: block;
}

.message.info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.22);
  color: #d9e9ff;
}

.message.ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
  color: #d5ffe1;
}

.message.error {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.28);
  color: #ffd8d8;
}

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

.detail-item {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: rgba(255, 255, 255, 0.03);
}

.detail-item strong,
.detail-item span {
  display: block;
}

.detail-item strong {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.detail-item span {
  font-size: 11px;
  line-height: 1.35;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-strip .group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.section-title {
  margin: 0;
  font-size: 16px;
}

.small {
  font-size: 11px;
}

.hidden {
  display: none !important;
}

.inline-note,
.selection-card,
.example-box {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: rgba(255, 255, 255, 0.03);
}

.inline-note strong,
.selection-card strong,
.example-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.group-row td {
  background: rgba(59, 130, 246, 0.08);
}

.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-block {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.simple-list {
  margin: 0;
  padding-left: 18px;
}

.simple-list li + li {
  margin-top: 6px;
}

.public-body {
  min-height: 100vh;
}

.public-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.public-hero {
  margin-bottom: 22px;
}

.public-hero h1,
.public-hero p {
  margin: 0;
}

.public-hero h1 {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
}

.public-hero p {
  margin-top: 8px;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.5;
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 999px;
  border: 2px solid var(--secondary-border);
  background: var(--panel-2);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.timeline-item.done .timeline-dot {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.9);
}

.timeline-item.current .timeline-dot {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.95);
}

.timeline-content {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-content p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.timeline-compact .timeline-content {
  padding: 12px;
}

.timeline-compact {
  gap: 10px;
}

.quadro-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.quadro-slot-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--soft-border);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.quadro-slot-card:hover,
.quadro-slot-card.selected {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.quadro-slot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.quadro-slot-head h4,
.quadro-slot-head p {
  margin: 0;
}

.quadro-slot-head h4 {
  font-size: 15px;
}

.quadro-slot-head p {
  margin-top: 4px;
}

.quadro-slot-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.quadro-slot-meta .detail-item {
  min-width: 0;
}

.quadro-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.structure-actions-card {
  margin-top: 2px;
}

.quadro-history-timeline {
  display: grid;
  gap: 10px;
}

.quadro-history-empty {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--soft-border);
  color: var(--muted);
}

.wizard-stage-stack,
#operacao-vaga-card {
  display: grid;
  gap: 8px;
}

#operacao-vaga-card > .panel-head {
  margin-bottom: 0;
}

.wizard-focus-mode #operacao-vaga-card > .panel-head p {
  display: none;
}

.wizard-focus-mode #operacao-vaga-card > .panel-head h3 {
  font-size: 13px;
  opacity: 0.72;
}

.stack-tight {
  gap: 10px;
}

.flow-action-group,
.history-card {
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.flow-action-group + .flow-action-group {
  margin-top: 10px;
}

.flow-action-head,
.history-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.inline-note-soft {
  background: rgba(255, 255, 255, 0.02);
}

.wizard-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.wizard-hero-card {
  position: relative;
  border-color: rgba(59, 130, 246, 0.30);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.10), rgba(255, 255, 255, 0.03));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  padding: 10px;
  overflow: visible;
}

.wizard-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(14, 165, 233, 0.7));
}

.wizard-sticky-shell {
  position: sticky;
  top: 10px;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 2px;
  padding-bottom: 6px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.wizard-step {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
  background: rgba(255, 255, 255, 0.03);
}

.wizard-step strong {
  font-size: 10px;
  line-height: 1.22;
}

.wizard-step.done {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.wizard-step.active {
  border-color: rgba(59, 130, 246, 0.30);
  background: rgba(59, 130, 246, 0.10);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.16);
}

.wizard-step.pending {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.06);
}

.wizard-step.blocked {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.06);
  opacity: 0.86;
}

.wizard-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  font-weight: 800;
}

.wizard-step-state {
  font-size: 9px;
  color: var(--muted);
}

.wizard-main-action {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.10), rgba(59, 130, 246, 0.04));
}

.wizard-main-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: center;
}

.wizard-main-copy strong {
  font-size: 17px;
  line-height: 1.25;
}

.wizard-main-copy .muted.small {
  font-size: 10px;
}

.wizard-primary-cta {
  min-height: 48px;
  width: min(360px, 100%);
  justify-self: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18);
}

.wizard-stage-section.secondary {
  opacity: 0.58;
  filter: saturate(0.82);
}

.wizard-focus-shell {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.10);
}

.wizard-panel-primary {
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.10);
}

.wizard-focus-section {
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.wizard-stage-section.active {
  border-color: rgba(59, 130, 246, 0.34);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.11), rgba(59, 130, 246, 0.04));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.wizard-panel-secondary {
  opacity: 0.28;
  filter: saturate(0.72);
}

.wizard-focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.32);
}

.wizard-focus-button {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.26);
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.readiness-card {
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.readiness-card.done {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.readiness-card.ready {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.08);
}

.readiness-card.blocked {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.readiness-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.selection-card,
.inline-note,
.detail-item,
.history-card,
.readiness-card,
.capacity-card,
.timeline-content,
.candidate-card,
.document-note {
  overflow-wrap: anywhere;
}

.readiness-details {
  display: grid;
  gap: 4px;
}

.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--soft-border);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.doc-chip.neutral {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.18);
  color: #dbe4ef;
}

.doc-chip.info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
  color: #cfe1ff;
}

.doc-chip.success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.24);
  color: #d5ffe1;
}

.doc-chip.warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.24);
  color: #fde6b2;
}

.doc-chip.danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.26);
  color: #ffd8d8;
}

.document-card .muted.small + .muted.small {
  margin-top: 6px;
}

.document-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.document-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tce-checklist-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--soft-border);
}

.tce-checklist-card.ready {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.tce-checklist-card.blocked {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.08);
}

.tce-checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.document-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.document-card-title {
  min-width: 0;
}

.document-card-title strong,
.flow-action-head strong,
.history-card-head strong,
.readiness-head strong {
  font-size: 13px;
  line-height: 1.35;
}

.document-card-badges,
.document-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
}

.document-meta-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.document-note {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  font-size: 12px;
  line-height: 1.45;
}

.document-note.danger {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
}

.document-card.state-recebido {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.05);
}

.document-card.state-validado {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.06);
}

.document-card.state-pendente {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.06);
}

.document-card.state-rejeitado {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(239, 68, 68, 0.08);
}

.document-card.state-substituido,
.document-card.versioned {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.document-card.tce-highlight {
  position: relative;
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.14);
}

.document-card.tce-focus-card {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22), 0 10px 24px rgba(245, 158, 11, 0.08);
}

.document-card.tce-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.8);
}

.document-note.tce-flow {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.08);
}

.document-upload-row.scroll-focus {
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.34);
  padding: 10px;
  background: rgba(245, 158, 11, 0.08);
}

.document-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.document-upload-row > *,
.flow-action-head > *,
.history-card-head > *,
.accordion-summary > *,
.readiness-head > *,
.wizard-flow-head > *,
.wizard-main-action > *,
.tce-checklist-head > * {
  min-width: 0;
}

.document-upload-row input[type="file"] {
  max-width: 100%;
  flex: 1 1 260px;
}

.flow-prep-actions button,
.flow-prep-actions .button-link,
.document-upload-row button,
.document-upload-row .button-link {
  white-space: normal;
  text-align: center;
}

.tce-shortcut-actions {
  margin-top: 10px;
}

.compact-grid {
  margin-bottom: 12px;
}

.compact-inline-note {
  margin-bottom: 12px;
}

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mini-drive-disclosure {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.compact-disclosure.mini-drive-disclosure summary {
  padding: 10px 12px;
}

.compact-disclosure.mini-drive-disclosure .accordion-body {
  gap: 10px;
  padding: 0 12px 12px;
}

.mini-drive-disclosure .accordion-summary strong {
  font-size: 12px;
}

.mini-drive-disclosure[open] {
  border-color: rgba(59, 130, 246, 0.20);
}

.mini-drive-disclosure.tce-only {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.04);
}

.mini-drive-body {
  display: grid;
  gap: 10px;
}

.wizard-support-disclosure,
.wizard-history-disclosure,
.wizard-progress-disclosure {
  opacity: 0.58;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.wizard-support-disclosure[open],
.wizard-history-disclosure[open],
.wizard-progress-disclosure[open] {
  opacity: 1;
}

.compact-disclosure.wizard-support-disclosure summary,
.compact-disclosure.wizard-history-disclosure summary,
.compact-disclosure.wizard-progress-disclosure summary {
  padding: 9px 12px;
}

.compact-disclosure.wizard-support-disclosure .accordion-body,
.compact-disclosure.wizard-history-disclosure .accordion-body,
.compact-disclosure.wizard-progress-disclosure .accordion-body {
  gap: 8px;
  padding: 0 12px 12px;
}

.wizard-progress-disclosure {
  margin-top: 2px;
}

.wizard-progress-disclosure .readiness-grid {
  margin-top: 0;
}

.compact-disclosure summary {
  padding: 12px 14px;
}

.compact-disclosure .accordion-body {
  gap: 10px;
  padding: 0 14px 14px;
}

#vaga-acompanhamento .compact-textarea {
  min-height: 68px;
}

#ciee_email_corpo {
  min-height: 104px;
}

.accordion-group {
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.accordion-group + .accordion-group {
  margin-top: 2px;
}

.accordion-group summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
}

.accordion-group summary::-webkit-details-marker {
  display: none;
}

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.accordion-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.candidate-card {
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.candidate-card.selected {
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(59, 130, 246, 0.08);
}

.candidate-recommendation-card {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.06));
}

.recommended-candidates {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.candidate-card.compact-candidate {
  background: rgba(255, 255, 255, 0.045);
}

.compact-section-title {
  padding: 4px 2px 0;
}

.candidate-card-head,
.candidate-actions,
.candidate-grid {
  display: flex;
  gap: 12px;
}

.candidate-card-head {
  align-items: flex-start;
  justify-content: space-between;
}

.candidate-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.candidate-grid {
  margin-top: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.candidate-grid > div {
  min-width: 180px;
  flex: 1 1 180px;
}

.candidate-detail {
  margin-top: 12px;
  border-top: 1px solid var(--soft-border);
  padding-top: 12px;
}

.candidate-detail summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--label-text);
}

.candidate-detail p {
  margin: 10px 0 0;
  line-height: 1.5;
}

html[data-theme="light"] body {
  background:
    radial-gradient(1200px 620px at 0% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(34, 197, 94, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.92));
}

html[data-theme="light"] .brand-mark {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.06));
}

html[data-theme="light"] .user-chip,
html[data-theme="light"] .sidebar-card,
html[data-theme="light"] .detail-item,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .panel-card,
html[data-theme="light"] .table-card,
html[data-theme="light"] .form-card,
html[data-theme="light"] .detail-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.98));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .badge.neutral {
  color: #475569;
}

html[data-theme="light"] .status-pill {
  color: #166534;
}

html[data-theme="light"] .status-pill.neutral {
  color: #475569;
}

html[data-theme="light"] .status-pill.info {
  color: #1d4ed8;
}

html[data-theme="light"] .status-pill.success {
  color: #166534;
}

html[data-theme="light"] .status-pill.warn {
  color: #92400e;
}

html[data-theme="light"] .status-pill.danger {
  color: #991b1b;
}

html[data-theme="light"] .doc-chip.neutral {
  color: #475569;
}

html[data-theme="light"] .doc-chip.info {
  color: #1e3a8a;
}

html[data-theme="light"] .doc-chip.success {
  color: #166534;
}

html[data-theme="light"] .doc-chip.warning {
  color: #92400e;
}

html[data-theme="light"] .doc-chip.danger {
  color: #991b1b;
}

html[data-theme="light"] .message.info {
  color: #1e3a8a;
}

html[data-theme="light"] .message.ok {
  color: #166534;
}

html[data-theme="light"] .message.error {
  color: #991b1b;
}

html[data-theme="light"] .operation-action-bar {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .form-modal-backdrop {
  background: rgba(15, 23, 42, 0.34);
}

html[data-theme="light"] .form-modal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(245, 248, 252, 0.995));
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .form-modal-card .panel-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(245, 248, 252, 0.995));
}

html[data-theme="light"] .form-modal-card .actions:last-child {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(245, 248, 252, 0.995) 34%);
}

html[data-theme="light"] .wizard-form-card,
html[data-theme="light"] .check-tile {
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] button.warn {
  color: #92400e;
}

html[data-theme="light"] button.danger {
  color: #991b1b;
}

html[data-theme="light"] select {
  color-scheme: light;
}

@media (max-width: 1440px) {
  .workflow-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }

  .workflow-column-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .workflow-layout,
  .panel-grid,
  .public-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .grid-4.schedule-grid,
  .grid-4.schedule-grid.interval-required,
  .grid-4.schedule-grid.separated-schedule,
  .grid-4.schedule-grid.separated-schedule:not(.interval-required) {
    grid-template-columns: 1fr;
  }

  .compact-filters,
  .capacity-grid,
  .stepper-grid,
  .wizard-steps,
  .wizard-form-steps,
  .vaga-card-grid,
  .convocacao-card-grid,
  .readiness-grid,
  .disclosure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-column-right {
    grid-template-columns: 1fr;
  }

  .solicitacoes-lista,
  .elegiveis-pane,
  .convocacoes-pane {
    max-height: none;
  }

  .wizard-sticky-shell {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 18px 14px 24px;
  }

  .form-modal-card {
    top: 12px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .form-modal-card .panel-head {
    top: -14px;
    margin: -14px -14px 14px;
    padding: 14px;
  }

  .form-modal-card .actions:last-child {
    bottom: -14px;
    margin: 16px -14px -14px;
    padding: 12px 14px 14px;
  }

  .wizard-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .public-page {
    padding: 24px 14px 36px;
  }

  .page-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-filters,
  .capacity-grid,
  .stepper-grid,
  .vaga-card-grid,
  .convocacao-card-grid,
  .readiness-grid,
  .disclosure-grid,
  .compact-detail-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .accordion-summary,
  .candidate-card-head,
  .solicitacao-card-head,
  .vaga-card-head,
  .vaga-card-footer,
  .wizard-flow-head,
  .wizard-main-action,
  .selection-head,
  .convocacao-card-head,
  .convocacao-card-footer,
  .readiness-head,
  .document-card-top,
  .flow-action-head,
  .history-card-head,
  .pane-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-upload-row {
    align-items: stretch;
  }

  .document-upload-row > * {
    width: 100%;
  }

  .candidate-actions {
    justify-content: flex-start;
  }
}
