@font-face {
  font-family: PsiSans;
  src: url("pdfjs/standard_fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: PsiSans;
  src: url("pdfjs/standard_fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #405bfa;
  --ink: #243046;
  --muted: #7d889d;
  --bg: #f0f3f9;
  --line: #e6eaf2;
  --green: #269983;
  --purple: #8962d6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    14px/1.5 PsiSans,
    Arial,
    sans-serif;
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  transition: 0.15s;
}
button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.secondary {
  background: #eef1ff;
  color: var(--blue);
}
button.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger {
  background: #fff0f2;
  color: #c14b63;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce2ed;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #405bfa15;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 700;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
.shell {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 82px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  padding: 22px 10px;
  z-index: 2;
}
.mark {
  font-size: 30px;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 22px;
}
.nav {
  background: transparent;
  color: #8995aa;
  font-size: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
}
.nav.active {
  background: #eef0ff;
  color: var(--blue);
}
.rail .bottom {
  margin-top: auto;
}
.workspace {
  margin-left: 82px;
  width: calc(100% - 82px);
}
.top {
  background: var(--blue);
  color: white;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -1.5px;
}
.brand span {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-left: 18px;
  opacity: 0.75;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 38px;
  height: 38px;
  background: #ffffff25;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.top small {
  color: #d4dcff;
}
.body {
  padding: 30px 32px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.tab {
  color: var(--muted);
  background: none;
  padding: 12px 0;
  border-radius: 0;
  border-bottom: 3px solid transparent;
}
.tab.active {
  color: var(--blue);
  border-color: var(--blue);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.metric,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
}
.metric .num {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -1.2px;
  margin: 12px 0 2px;
}
.metric .icon {
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.metric small {
  font-size: 11px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.panel h3 {
  margin: 0 0 5px;
}
.panel .sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 23px;
}
.barrow {
  display: grid;
  grid-template-columns: 140px 1fr 32px;
  align-items: center;
  gap: 14px;
  margin: 15px 0;
  font-size: 12px;
}
.bar {
  height: 11px;
  background: #f1f3f9;
  border-radius: 5px;
  overflow: hidden;
}
.bar > i {
  display: block;
  background: var(--blue);
  height: 100%;
  border-radius: 5px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 600;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #f0f2f7;
  font-size: 12px;
}
td strong {
  font-size: 13px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  background: #eef1ff;
  color: var(--blue);
}
.badge.green {
  background: #e9f6f1;
  color: #248975;
}
.badge.orange {
  background: #fff3df;
  color: #bd8935;
}
.badge.gray {
  background: #f0f2f6;
  color: #7f8999;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}
.toolbar select {
  max-width: 330px;
}
.toolbar input {
  max-width: 250px;
}
.board {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  min-height: 530px;
  padding-bottom: 25px;
  align-items: flex-start;
}
.column {
  min-width: 268px;
  width: 268px;
  background: #e9edf5;
  border-radius: 11px;
  padding: 13px;
  min-height: 460px;
  border: 2px solid transparent;
}
.column.over {
  border-color: var(--blue);
}
.colhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 19px;
  padding: 4px;
}
.colhead b {
  font-size: 10px;
  background: #dce2ee;
  border-radius: 5px;
  padding: 3px 7px;
}
.stripe {
  width: 37px;
  height: 4px;
  background: var(--blue);
  border-radius: 10px;
  margin: 0 0 18px 4px;
}
.card {
  background: white;
  border: 1px solid #e4e9f4;
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 12px;
  box-shadow: 0 3px 7px #24304603;
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 8px 18px #24304610;
  border-color: #c9d2ff;
}
.card .name {
  font-weight: 700;
  margin: 12px 0 3px;
}
.card .email {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.card footer {
  border-top: 1px solid #f1f3f8;
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.tinyavatar {
  border-radius: 8px;
  background: #ecedff;
  color: #7564c4;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 700;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 13px;
}
.empty b {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}
.note {
  padding: 13px 16px;
  background: #eff2ff;
  border-radius: 9px;
  color: #56668b;
  font-size: 12px;
  margin: 14px 0;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.loading {
  padding: 80px;
  text-align: center;
}
.auth {
  max-width: 1040px;
  margin: 8vh auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 30px 80px #24304610;
}
.pitch {
  background: var(--blue);
  color: white;
  padding: 54px 42px;
  position: relative;
  overflow: hidden;
}
.pitch h1 {
  font-size: 43px;
  line-height: 1.15;
  letter-spacing: -1.9px;
  margin: 60px 0 24px;
}
.pitch p {
  color: #dbe2ff;
  max-width: 290px;
}
.pitch .pill {
  display: inline-block;
  border: 1px solid #ffffff50;
  border-radius: 20px;
  padding: 7px 13px;
  margin-top: 30px;
  font-size: 11px;
}
.authform {
  padding: 40px;
}
.authform h2 {
  margin: 25px 0 5px;
}
.authform button[type="submit"] {
  width: 100%;
  margin-top: 25px;
}
.authform .switch {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
}
.authform .switch button {
  padding: 3px;
  background: none;
  color: var(--blue);
}
dialog {
  border: 0;
  border-radius: 17px;
  padding: 0;
  width: 800px;
  max-width: 94vw;
  max-height: 90vh;
  box-shadow: 0 30px 100px #18234340;
  color: var(--ink);
}
dialog::backdrop {
  background: #1b284d66;
  backdrop-filter: blur(3px);
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modalhead h2 {
  margin: 0;
}
.modalbody {
  padding: 25px;
  overflow: auto;
}
.close {
  background: #f0f2f8;
  color: var(--ink);
  padding: 5px 12px;
  font-size: 20px;
}
.modalfoot {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  gap: 10px;
}
.section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 24px;
}
.section h3 {
  margin-bottom: 12px;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.7 PsiSans,
    Arial,
    sans-serif;
  background: #f7f8fc;
  padding: 18px;
  border-radius: 9px;
}
.history {
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.logo {
  max-width: 130px;
  max-height: 44px;
  object-fit: contain;
}
.portal {
  max-width: 680px;
  margin: 50px auto;
  background: white;
  padding: 38px;
  border-radius: 20px;
}
.portal h1 {
  margin: 26px 0 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25344e;
  color: white;
  border-radius: 10px;
  padding: 15px 22px;
  box-shadow: 0 10px 30px #0002;
  display: none;
  max-width: 420px;
  z-index: 10;
}
.error {
  color: #b74659;
  background: #fff0f3;
  padding: 12px;
  border-radius: 8px;
  margin: 14px 0;
}
.success {
  color: #168974;
  background: #e8f8f3;
  padding: 12px;
  border-radius: 8px;
}
.linkbox {
  word-break: break-all;
  padding: 14px;
  background: #ecf8f4;
  border-radius: 8px;
}
.filterline {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}
.filterline > div {
  flex: 1;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 12px;
}
.check input {
  width: auto;
  margin-top: 3px;
}
.printonly {
  display: none;
}
@media (max-width: 1000px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .body {
    padding: 24px;
  }
  .brand span {
    display: none;
  }
}
@media (max-width: 640px) {
  .rail {
    width: 55px;
    padding: 18px 5px;
  }
  .nav {
    width: 40px;
  }
  .workspace {
    margin-left: 55px;
    width: calc(100% - 55px);
  }
  .top {
    padding: 16px;
  }
  .account small {
    display: none;
  }
  .brand {
    font-size: 23px;
  }
  .body {
    padding: 20px 13px;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 14px;
  }
  .metric .num {
    font-size: 28px;
  }
  .metric .icon {
    display: none;
  }
  .auth {
    display: block;
    margin: 16px;
  }
  .pitch {
    padding: 24px;
  }
  .pitch h1 {
    font-size: 30px;
    margin: 25px 0 15px;
  }
  .pitch .pill {
    display: none;
  }
  .authform {
    padding: 25px;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .panel {
    padding: 16px;
  }
  .barrow {
    grid-template-columns: 110px 1fr 20px;
  }
  .portal {
    margin: 15px;
    padding: 24px;
  }
  .filterline {
    flex-wrap: wrap;
  }
  .filterline > div {
    min-width: 120px;
  }
}
@media print {
  .rail,
  .top,
  .actions,
  .toolbar,
  .tabs,
  button,
  .filterline {
    display: none !important;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .body {
    padding: 0;
  }
  .panel,
  .metric {
    break-inside: avoid;
  }
  .printonly {
    display: block;
  }
  body {
    background: white;
  }
  dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    max-width: none;
    box-shadow: none;
  }
  .modalbody {
    overflow: visible;
  }
  body:has(dialog[open]) #app {
    display: none;
  }
}

/* Identidade Psi Empresa */
.brand {
  letter-spacing: -0.8px;
}
.pitch .brand span {
  display: block;
  margin: 5px 0 0;
  letter-spacing: 1.5px;
}
.top .brand {
  min-width: 0;
}
.account {
  min-width: 0;
}
.account > div:first-child {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .top .brand {
    font-size: 20px;
    line-height: 1.1;
    max-width: 145px;
  }
  .account {
    max-width: 48%;
    font-size: 11px;
    gap: 7px;
  }
  .account .avatar {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }
  .top {
    gap: 10px;
  }
}

/* v2.3: navegação com nomes e agenda */
.rail {
  width: 220px;
  align-items: stretch;
  gap: 7px;
  padding: 20px 12px;
  overflow-y: auto;
}
.mark {
  text-align: left;
  padding: 0 12px;
  margin-bottom: 16px;
}
.nav {
  width: 100%;
  height: auto;
  min-height: 45px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  flex-shrink: 0;
}
.nav > span:first-child {
  width: 24px;
  text-align: center;
  font-size: 20px;
}
.nav-label {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}
.workspace {
  margin-left: 220px;
  width: calc(100% - 220px);
}
.nav.active {
  box-shadow: inset 3px 0 var(--blue);
}
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.5fr);
  gap: 22px;
  align-items: start;
}
.agenda-metrics {
  grid-template-columns: repeat(3, 1fr);
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.calendar-head h3 {
  text-transform: capitalize;
  margin: 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  text-align: center;
  margin-bottom: 20px;
}
.calendar-day {
  background: #f4f6fc;
  color: var(--ink);
  padding: 8px 2px;
  min-height: 57px;
  border: 1px solid transparent;
}
.calendar-day small {
  display: block;
  font-size: 10px;
  color: inherit;
}
.calendar-day.today {
  border-color: var(--blue);
}
.calendar-day.selected {
  background: var(--blue);
  color: white;
}
.agenda-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.agenda-controls label {
  margin-top: 0;
}
.agenda-item {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.agenda-time {
  font-size: 18px;
  font-weight: 700;
  min-width: 66px;
  color: var(--blue);
}
.agenda-time small {
  display: block;
  font-size: 11px;
  font-weight: 400;
}
.agenda-content {
  min-width: 0;
  flex: 1;
}
.agenda-content h3 {
  margin: 8px 0;
}
.agenda-content p {
  margin: 4px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.agenda-content .actions {
  margin-top: 12px;
}
.agenda-content button {
  font-size: 12px;
  padding: 8px 10px;
}
.agenda-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 10px;
  background: #f6f8fc;
  padding: 12px;
  border-radius: 8px;
}
#candidate-search {
  max-width: 460px;
}
@media (max-width: 1150px) {
  .agenda-layout {
    grid-template-columns: 1fr;
  }
  .brand span {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .rail {
    position: sticky;
    inset: 0 0 auto 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 3;
    border-bottom: 1px solid var(--line);
  }
  .rail .mark {
    display: none;
  }
  .rail .nav {
    width: auto;
    min-height: 42px;
    padding: 8px 11px;
    gap: 7px;
    white-space: nowrap;
  }
  .rail .bottom {
    margin: 0;
  }
  .nav-label {
    font-size: 12px;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .agenda-metrics {
    grid-template-columns: 1fr;
  }
  .agenda-layout {
    gap: 14px;
  }
  .calendar-day {
    min-height: 48px;
  }
  .agenda-controls {
    grid-template-columns: 1fr;
  }
  .agenda-item {
    gap: 10px;
  }
  .agenda-time {
    min-width: 52px;
    font-size: 16px;
  }
  .top {
    flex-wrap: wrap;
  }
  .account {
    max-width: 100%;
  }
}
@media print {
  .workspace {
    margin: 0;
    width: 100%;
  }
  .calendar-grid,
  .calendar-head,
  .agenda-controls {
    display: none;
  }
  .agenda-layout {
    display: block;
  }
}

.process-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 12px 0;
}
.process-line li {
  border: 1px solid #ccd3da;
  border-radius: 12px;
  padding: 9px;
}
.process-line .current {
  background: #173e36;
  color: white;
}
.process-history {
  border-left: 2px solid #a5b9ad;
  margin-left: 12px;
  padding-left: 24px;
}
.process-history li {
  padding: 8px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #128c48;
  vertical-align: middle;
  margin: 3px;
  text-decoration: none;
}
.whatsapp-icon svg {
  width: 22px;
  height: 22px;
}
.whatsapp-icon:hover {
  background: #128c48;
  color: white;
}
.whatsapp-icon:focus-visible {
  outline: 3px solid #7e22ce;
  outline-offset: 3px;
}
.visual-flow {
  display: flex;
  list-style: none;
  padding: 24px 4px;
  gap: 28px;
  overflow-x: auto;
  margin: 0 0 12px;
}
.visual-flow li {
  position: relative;
  flex: 0 0 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.flow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #d9b5f8;
  color: #fff;
  flex-shrink: 0;
}
.flow-circle svg {
  width: 38px;
  height: 38px;
}
.visual-flow li:nth-child(2n) .flow-circle {
  background: #c893ef;
}
.visual-flow li.current .flow-circle {
  background: linear-gradient(140deg, #b34bfa, #8900ff);
  box-shadow: 0 0 0 5px #f0dcff;
}
.visual-flow li.current strong {
  color: #7900cd;
}
.visual-flow li:not(:last-child):after {
  content: "→";
  position: absolute;
  top: 25px;
  right: -25px;
  font-size: 27px;
  color: #26303c;
}
.visual-flow strong {
  font-size: 13px;
  line-height: 1.3;
}
.visual-flow small {
  font-size: 11px;
  color: #677084;
}
.evolution {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e8def0;
}
.onboard-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #f8f0ff;
  padding: 24px;
  border-radius: 18px;
}
.onboard-intro progress {
  width: 100%;
  accent-color: #9000ef;
}
.onboard-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.onboard-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #e5deed;
  border-radius: 14px;
  padding: 18px;
}
.onboard-item h3 {
  margin: 0;
}
.onboard-item p {
  margin: 7px 0;
}
.onboard-number {
  border-radius: 50%;
  background: #f1e4fd;
  color: #7d20b8;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.onboard-item.done {
  background: #f4faf6;
}
.onboard-item.done .onboard-number {
  background: #d7f0df;
  color: #176438;
}
@media (max-width: 600px) {
  .onboard-intro {
    padding: 16px;
    gap: 12px;
  }
  .onboard-item {
    grid-template-columns: 30px 1fr;
    padding: 14px;
  }
  .onboard-item button {
    grid-column: 2;
  }
  .visual-flow {
    gap: 24px;
  }
  .evolution {
    padding: 14px;
  }
}

/* v2.10 — compact layout and responsive content */
:root {
  --bg: #f4f6fb;
  --ink: #222b45;
  --muted: #67748a;
  --blue: #6354d9;
  --line: #e7eaf2;
}
.workspace,
.body,
.panel,
.grid2 > *,
.metrics > * {
  min-width: 0;
}
.body {
  max-width: 1600px;
  margin: 0 auto;
}
.top {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.top small {
  color: var(--muted);
}
.avatar {
  background: #eeeafa;
  color: #6354d9;
}
.brand {
  font-size: 24px;
}
.panel {
  box-shadow: 0 5px 22px #202c4504;
}
.pagehead h1 {
  font-size: 26px;
}
.dashboard-welcome {
  background: linear-gradient(115deg, #29235e, #6552b4);
  border-radius: 20px;
  padding: 28px 32px;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.dashboard-welcome h2 {
  font-size: 27px;
  margin: 10px 0 6px;
}
.dashboard-welcome p {
  color: #e1def5;
}
.welcome-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #dad3ff;
}
.dashboard-welcome button {
  background: #fff;
  color: #483a90;
}
.dashboard-welcome button.ghost {
  background: transparent;
  border-color: #ffffff55;
  color: white;
}
.welcome-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  border-left: 1px solid #ffffff30;
  padding-left: 30px;
}
.welcome-stat strong {
  font-size: 46px;
  line-height: 1.3;
}
.welcome-stat small {
  color: #ddd5f5;
}
.dashboard-filters {
  background: #fff;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dashboard-filters label {
  margin-top: 0;
}
.dashboard-metrics .metric {
  border: 1px solid #e6e7ef;
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.dashboard-metrics .metric:before {
  content: "";
  height: 3px;
  background: #8474dd;
  position: absolute;
  inset: 0 0 auto;
}
.dashboard-metrics .metric:nth-child(2):before {
  background: #589bb7;
}
.dashboard-metrics .metric:nth-child(3):before {
  background: #43a48a;
}
.dashboard-metrics .metric:nth-child(4):before {
  background: #d1a268;
}
.dashboard-metrics .num {
  font-size: 32px;
}
.dashboard-charts .bar {
  height: 8px;
}
.dashboard-agenda {
  margin-bottom: 22px;
}
.interview-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.interview-tile {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 14px;
  background: #f7f8fc;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 15px;
  min-width: 0;
}
.interview-tile > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.interview-tile small {
  display: block;
  font-weight: 400;
  margin: 4px 0;
}
.interview-date {
  color: #6354d9;
  background: #ede9fa;
  border-radius: 10px;
  padding: 10px;
  font-size: 17px;
  flex-shrink: 0;
}
.interview-date small {
  font-size: 11px;
  color: #6354d9;
}
.evolution {
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 16px;
  background: #fafaff;
}
.evolution-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.evolution-head h3 {
  margin: 0;
}
.evolution-head .muted {
  font-size: 10px;
}
.evolution .visual-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
  gap: 8px;
  padding: 14px 0 10px;
  overflow: visible;
  margin: 0;
}
.evolution .visual-flow li {
  min-width: 0;
  gap: 5px;
}
.evolution .flow-circle {
  width: 30px;
  height: 30px;
  background: #e9e3f9;
  color: #8574b5;
}
.evolution .flow-circle svg {
  width: 16px;
  height: 16px;
}
.evolution .visual-flow li:nth-child(2n) .flow-circle {
  background: #e9e3f9;
}
.evolution .visual-flow li.current .flow-circle {
  background: #7660ca;
  color: #fff;
  box-shadow: 0 0 0 3px #e9e2fb;
}
.evolution .visual-flow strong {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}
.evolution .visual-flow small {
  font-size: 9px;
}
.evolution .visual-flow li:not(:last-child):after {
  content: "";
  height: 1px;
  background: #dcd4ed;
  width: 18px;
  top: 15px;
  right: -13px;
  font-size: 0;
}
.evolution summary {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.employee-profile {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #eee8fb;
  color: #7258ba;
  font-size: 24px;
  flex-shrink: 0;
}
.employee-profile h2 {
  margin-bottom: 4px;
}
.employee-profile p {
  margin-bottom: 8px;
}
.employee-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}
.employee-facts > div {
  background: #f7f8fc;
  padding: 15px;
  border-radius: 10px;
  min-width: 0;
}
.employee-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.employee-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.employee-actions {
  white-space: normal;
  min-width: 190px;
}
.employee-actions button {
  padding: 8px 10px;
  font-size: 11px;
  margin: 3px;
}
dialog {
  width: 850px;
}
.modalhead h2 {
  overflow-wrap: anywhere;
  min-width: 0;
}
.modalbody img {
  max-width: 100%;
}
.modalhead .close {
  flex-shrink: 0;
}
.tablewrap {
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.toolbar input {
  max-width: 460px;
}
.actions {
  min-width: 0;
}
@media (max-width: 1150px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
  .interview-preview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .workspace {
    width: 100%;
    margin: 0;
  }
  .body {
    padding: 18px 14px;
  }
  .rail {
    max-width: 100vw;
  }
  .dashboard-welcome {
    padding: 22px;
    gap: 16px;
  }
  .welcome-stat {
    min-width: 100px;
    padding-left: 18px;
  }
  .welcome-stat strong {
    font-size: 34px;
  }
  .dashboard-welcome h2 {
    font-size: 23px;
  }
  .dashboard-filters {
    flex-wrap: wrap;
  }
  .dashboard-filters > div {
    min-width: 140px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .employee-table,
  .employee-table tbody {
    display: block;
    white-space: normal;
  }
  .employee-table thead {
    display: none;
  }
  .employee-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 10px;
    margin-bottom: 12px;
    gap: 0 10px;
  }
  .employee-table td {
    display: block;
    min-width: 0;
    padding: 9px 6px;
    overflow-wrap: anywhere;
  }
  .employee-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .employee-table td:first-child,
  .employee-table td.employee-actions {
    grid-column: 1/-1;
  }
  .employee-table td.employee-actions {
    border: 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
  }
  .employee-table td.employee-actions:before {
    display: none;
  }
  .employee-table .whatsapp-icon {
    width: 36px;
    height: 36px;
  }
  .employee-table button {
    min-height: 36px;
  }
  .filterline > div {
    min-width: 120px;
  }
  .pagehead .actions {
    width: 100%;
  }
  .barrow {
    grid-template-columns: minmax(80px, 110px) minmax(0, 1fr) 24px;
    gap: 9px;
  }
  .top {
    padding: 14px 16px;
  }
  dialog {
    max-width: calc(100vw - 16px);
    max-height: 94dvh;
  }
  .modalhead {
    padding: 16px;
  }
  .modalbody {
    padding: 16px;
  }
  .modalhead h2 {
    font-size: 18px;
  }
  .board {
    max-width: 100%;
    min-height: 400px;
  }
  .column {
    min-width: 245px;
  }
  .toolbar input,
  .toolbar select {
    max-width: 100%;
  }
  #toast {
    max-width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
  }
  .pre {
    padding: 12px;
  }
}
@media (max-width: 480px) {
  .dashboard-welcome {
    flex-direction: column;
  }
  .welcome-stat {
    border-left: 0;
    border-top: 1px solid #ffffff30;
    padding: 12px 0 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .welcome-stat strong {
    font-size: 28px;
    order: -1;
  }
  .welcome-stat small {
    display: none;
  }
  .dashboard-metrics {
    gap: 10px;
  }
  .dashboard-metrics .metric {
    padding: 14px;
  }
  .dashboard-metrics .metric .num {
    font-size: 28px;
  }
  .dashboard-metrics .metric .muted {
    font-size: 12px;
  }
  .dashboard-filters {
    padding: 14px;
  }
  .dashboard-filters > div:first-child {
    flex-basis: 100%;
  }
  .evolution .visual-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }
  .evolution .visual-flow li {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 8px;
  }
  .evolution .visual-flow li strong {
    flex: 1;
  }
  .evolution .visual-flow li small {
    display: none;
  }
  .evolution .visual-flow li:after {
    display: none;
  }
  .evolution-head {
    align-items: flex-start;
  }
  .evolution .flow-circle {
    width: 26px;
    height: 26px;
  }
  .employee-facts {
    grid-template-columns: 1fr;
  }
  .employee-profile {
    align-items: flex-start;
  }
  .pagehead h1 {
    font-size: 23px;
  }
  .account .avatar {
    display: none;
  }
  .top .brand {
    font-size: 20px;
  }
  .onboard-intro {
    flex-wrap: wrap;
  }
}

/* v2.12 — one locally hosted family throughout the application */
:root {
  --font-ui: PsiSans, Arial, sans-serif;
}
body,
button,
input,
select,
textarea,
dialog,
.pre {
  font-family: var(--font-ui);
}
h1,
h2,
h3,
h4,
.brand,
.nav-label,
.metric .num,
.eyebrow,
.welcome-label,
.profile-avatar {
  font-family: inherit;
}
.nav-label,
button,
label,
th {
  font-weight: 700;
}
.brand,
h1,
h2,
h3,
.metric .num {
  font-weight: 700;
}
.brand,
h1,
h2 {
  letter-spacing: normal;
}

/* v2.13 — corporate people-management palette */
:root {
  --blue: #176577;
  --ink: #183247;
  --muted: #52697a;
  --bg: #dfe7ee;
  --line: #c6d3de;
  --green: #257454;
  --purple: #476b87;
  --navy: #142e43;
  --teal: #176577;
  --soft: #e3edf1;
}
.rail {
  background: var(--navy);
  border-color: #203e53;
}
.mark {
  color: #8fd6cb;
}
.rail .nav {
  color: #c8d8e4;
}
.rail .nav:hover {
  background: #23465d;
  color: #fff;
}
.rail .nav.active {
  background: #20586a;
  color: #fff;
  box-shadow: inset 3px 0 #70cdbf;
}
.top {
  background: #1c3b52;
  color: #fff;
  border-color: #35566d;
}
.top small {
  color: #c8d9e5;
}
.top .brand span {
  color: #d7e5ee;
  opacity: 1;
}
.avatar {
  background: #355b72;
  color: #fff;
}
.body {
  color: var(--ink);
}
.panel,
.metric {
  border-color: var(--line);
  box-shadow: 0 4px 16px #18324709;
}
.panel {
  background: #fdfefe;
}
.pagehead h1,
.panel h3 {
  color: #183247;
}
.eyebrow {
  color: #205d72;
}
.dashboard-welcome {
  background: linear-gradient(112deg, #183c53, #176577);
  border: 1px solid #2a6b7a;
  box-shadow: 0 8px 22px #17374b16;
}
.dashboard-welcome h2 {
  color: #fff;
}
.dashboard-welcome p,
.welcome-stat small {
  color: #d6e8ed;
}
.welcome-label {
  color: #b7e2dc;
}
.dashboard-welcome button {
  color: #184d60;
  background: #f6fbfc;
}
.dashboard-welcome button.ghost {
  color: #fff;
  background: #ffffff0a;
  border-color: #8eb3bf;
}
.dashboard-filters {
  background: #edf3f6;
  border-color: #bdcdd8;
}
.dashboard-metrics .metric {
  border-color: #bdcdd8;
  background: #f2f7fa;
}
.dashboard-metrics .metric:nth-child(2) {
  background: #e9f2f4;
}
.dashboard-metrics .metric:nth-child(3) {
  background: #eaf3ee;
}
.dashboard-metrics .metric:nth-child(4) {
  background: #f5f0e7;
}
.dashboard-metrics .metric:before {
  height: 4px;
  background: #355b7a;
}
.dashboard-metrics .metric:nth-child(2):before {
  background: #247287;
}
.dashboard-metrics .metric:nth-child(3):before {
  background: #347b59;
}
.dashboard-metrics .metric:nth-child(4):before {
  background: #a37b3a;
}
.metric .num {
  color: #183d54;
}
.metric .icon {
  background: #d8e6ec;
  color: #21586d;
}
.metric small {
  color: #536979;
}
.metric:nth-child(3) .icon {
  background: #d5e8dc;
  color: #286644;
}
.metric:nth-child(4) .icon {
  background: #e9ddc7;
  color: #78581f;
}
.interview-tile {
  background: #edf3f6;
  border-color: #c6d5de;
}
.interview-date,
.interview-date small {
  background: #d7e7ec;
  color: #1d586b;
}
.bar {
  background: #dce6ed;
}
.badge {
  background: #dceaf0;
  color: #205870;
}
.badge.green {
  background: #d7ecde;
  color: #23613e;
}
.badge.orange {
  background: #f3e5c6;
  color: #785713;
}
.badge.gray {
  background: #e1e7eb;
  color: #445d6d;
}
button.secondary {
  background: #dcebf0;
  color: #20586b;
}
button.ghost {
  background: #f8fbfc;
  color: #294d61;
  border-color: #b9cbd6;
}
button.danger {
  background: #f7e4e6;
  color: #9d3447;
}
input,
select,
textarea {
  border-color: #b9cbd6;
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #176577;
  box-shadow: 0 0 0 3px #17657720;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d29a38;
  outline-offset: 3px;
}
th {
  background: #edf3f6;
  color: #456176;
}
td {
  border-bottom-color: #dce5eb;
}
.note {
  background: #e1edf2;
  color: #30596d;
}
.column {
  background: #cddce5;
}
.colhead b {
  background: #b6cdd9;
  color: #284f63;
}
.card {
  border-color: #bfcfd9;
}
.card:hover {
  border-color: #4d8396;
}
.tinyavatar,
.profile-avatar {
  background: #dbe9ee;
  color: #286479;
}
.pre,
.employee-facts > div {
  background: #edf3f6;
}
.modalhead {
  background: #e7f0f4;
  border-color: #c7d7e1;
}
.close {
  background: #d4e3eb;
  color: #23495d;
}
.evolution {
  background: #eaf1f5;
  border-color: #c4d5df;
}
.evolution .flow-circle,
.evolution .visual-flow li:nth-child(2n) .flow-circle {
  background: #d3e2e9;
  color: #497184;
}
.evolution .visual-flow li.current .flow-circle {
  background: #176577;
  color: #fff;
  box-shadow: 0 0 0 3px #c2dfe4;
}
.evolution .visual-flow li.current strong {
  color: #124d60;
}
.evolution .visual-flow li:not(:last-child):after {
  background: #afc8d5;
}
.evolution .visual-flow small {
  color: #476579;
}
.onboard-intro {
  background: #e1eef1;
}
.onboard-intro .flow-circle {
  background: #176577;
}
.onboard-intro progress {
  accent-color: #176577;
}
.onboard-item {
  border-color: #c6d5de;
}
.onboard-number {
  background: #dcebf0;
  color: #20586b;
}
.onboard-item.done {
  background: #e8f2eb;
}
.calendar-day {
  background: #e4edf2;
  color: #254f64;
}
.calendar-day.selected {
  background: #176577;
  color: #fff;
}
.calendar-day.today {
  border-color: #176577;
}
.agenda-notes {
  background: #eaf1f5;
}
.pitch {
  background: linear-gradient(140deg, #142e43, #176577);
}
.pitch p {
  color: #d7e9ed;
}
.employee-table tr {
  border-color: #bfced8;
}
#toast {
  background: #183e53;
  color: #fff;
}
.process-history {
  border-color: #abc8d1;
}
@media print {
  body,
  .dashboard-welcome,
  .panel,
  .metric,
  .dashboard-metrics .metric {
    background: white !important;
    color: #183247 !important;
    box-shadow: none;
  }
  .dashboard-welcome h2,
  .dashboard-welcome p,
  .welcome-label,
  .welcome-stat small {
    color: #183247 !important;
  }
}

/* v2.14 — navy, royal blue and clean white surfaces */
:root {
  --blue: #174ea6;
  --ink: #112d53;
  --muted: #455f80;
  --bg: #f0f6ff;
  --line: #cdddf2;
  --navy: #081e42;
  --teal: #174ea6;
  --soft: #eaf3ff;
}
.rail {
  background: #081e42;
  border-color: #16345e;
}
.rail .nav {
  color: #c2d8f7;
}
.rail .nav:hover {
  background: #123564;
  color: #fff;
}
.rail .nav.active {
  background: #174b91;
  box-shadow: inset 3px 0 #6bc5ff;
}
.mark img {
  display: block;
  width: 44px;
  height: 44px;
}
.rh-brand-icon {
  width: 36px;
  height: 36px;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 10px;
}
.top {
  background: #0b2854;
  border-color: #173d70;
}
.top small,
.top .brand span {
  color: #d3e6ff;
}
.avatar {
  background: #1d4b85;
}
.dashboard-welcome,
.pitch {
  background: linear-gradient(115deg, #091f46, #123f80);
  border-color: #234f86;
}
.dashboard-welcome p,
.welcome-stat small,
.pitch p {
  color: #d6e8ff;
}
.welcome-label {
  color: #90d2ff;
}
.dashboard-welcome button {
  color: #153e79;
  background: white;
}
.panel,
.metric,
.dashboard-filters,
.dashboard-metrics .metric {
  background: #fff;
  border-color: #cdddf2;
}
.dashboard-metrics .metric:nth-child(n) {
  background: #fff;
}
.dashboard-metrics .metric:before {
  background: #174ea6;
}
.dashboard-metrics .metric:nth-child(2):before {
  background: #1686c1;
}
.metric .num,
.pagehead h1,
.panel h3 {
  color: #102d58;
}
.eyebrow {
  color: #174ea6;
}
.metric .icon {
  background: #e5efff;
  color: #174ea6;
}
.interview-tile,
.employee-facts > div,
.pre,
.agenda-notes {
  background: #f1f7ff;
  border-color: #cdddf2;
}
.interview-date,
.interview-date small {
  background: #dfedff;
  color: #17478c;
}
.dashboard-filters {
  border-color: #cdddf2;
}
.badge,
.badge.gray,
button.secondary,
.tinyavatar,
.profile-avatar,
.onboard-number {
  background: #e4efff;
  color: #184782;
}
button.ghost {
  background: #fff;
  color: #17417a;
  border-color: #b8d0ee;
}
.bar {
  background: #e3edfc;
}
input,
select,
textarea {
  border-color: #b8cfee;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #174ea6;
  box-shadow: 0 0 0 3px #174ea620;
}
th,
.modalhead {
  background: #ecf4ff;
  color: #284d7d;
}
td {
  border-bottom-color: #e1ebf9;
}
.note,
.onboard-intro {
  background: #e7f2ff;
  color: #264e7e;
}
.column {
  background: #e0ecfc;
}
.colhead b,
.close {
  background: #c9dffd;
  color: #153e79;
}
.card {
  border-color: #c5d9f2;
}
.card:hover {
  border-color: #4e8bd9;
}
.evolution {
  background: #f4f8ff;
  border-color: #ccddf3;
}
.evolution .flow-circle,
.evolution .visual-flow li:nth-child(2n) .flow-circle {
  background: #dfebfc;
  color: #416d9f;
}
.evolution .visual-flow li.current .flow-circle {
  background: #174ea6;
  box-shadow: 0 0 0 3px #d4e5ff;
}
.evolution .visual-flow li.current strong {
  color: #17417e;
}
.evolution .visual-flow li:not(:last-child):after {
  background: #b6d0f0;
}
.onboard-intro .flow-circle,
.calendar-day.selected {
  background: #174ea6;
  color: #fff;
}
.onboard-intro progress {
  accent-color: #174ea6;
}
.calendar-day {
  background: #edf5ff;
  color: #234b80;
}
.calendar-day.today {
  border-color: #174ea6;
}
.employee-table tr,
.onboard-item {
  border-color: #cdddf2;
}
#toast {
  background: #0b2854;
}
.process-history {
  border-color: #b6d0f0;
}
@media (max-width: 760px) {
  .mark img {
    width: 32px;
    height: 32px;
  }
  .rh-brand-icon {
    width: 28px;
    height: 28px;
    margin-right: 7px;
  }
}
@media print {
  .panel,
  .metric,
  .dashboard-metrics .metric:nth-child(n) {
    background: white !important;
    box-shadow: none;
  }
}

/* v2.15 — painel com indicadores e gráficos (mesma paleta azul-escura da v2.14) */
:root {
  --chart-grid: #e3ecf8;
  --chart-track: #edf3fc;
  --ink-2: #455f80;
}
button.small {
  padding: 7px 12px;
  font-size: 13px;
}
.filter-clear {
  flex: 0 0 auto;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #cdddf2;
  border-radius: 14px;
  box-shadow: 0 4px 16px #0b28540a;
  min-width: 0;
}
.kpi:before {
  content: "";
  position: absolute;
  inset: 0 16px auto;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #174ea6;
}
.kpi-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e5efff;
  color: #174ea6;
  font-size: 15px;
  margin-bottom: 4px;
}
.kpi-label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}
.kpi-value {
  color: #102d58;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
}
.kpi small {
  color: #5a7090;
  font-size: 12px;
  line-height: 1.35;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.chart-grid > * {
  min-width: 0;
  margin: 0;
}
.chart-panel.span-2 {
  grid-column: span 2;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.chart-head h3 {
  margin: 0;
}
.chart-head .sub {
  margin: 2px 0 0;
  color: #5a7090;
  font-size: 13px;
}
.hbars {
  display: grid;
  gap: 4px;
}
.hbar {
  display: grid;
  grid-template-columns: minmax(96px, 32%) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 5px 6px;
  border-radius: 8px;
}
.hbar:hover {
  background: #f3f8ff;
}
.hbar-label {
  font-size: 13px;
  color: #17345e;
  overflow-wrap: anywhere;
}
.hbar-track {
  height: 14px;
  background: var(--chart-track);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}
.hbar-track i {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  transition: width 0.4s ease;
}
.hbar-value {
  font-weight: 700;
  color: #102d58;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 52px;
}
.hbar-value small {
  display: inline-block;
  margin-left: 6px;
  color: #5a7090;
  font-weight: 400;
  min-width: 32px;
}
.hbar-note {
  grid-column: 2 / -1;
  font-size: 12px;
  color: #5a7090;
  margin-top: -2px;
}
.stackbar {
  display: flex;
  gap: 2px;
  height: 22px;
  margin: 8px 0 18px;
  background: #fff;
}
.stackbar i {
  display: block;
  min-width: 4px;
}
.stackbar i:first-child {
  border-radius: 4px 0 0 4px;
}
.stackbar i:last-child {
  border-radius: 0 4px 4px 0;
}
.stackbar i:only-child {
  border-radius: 4px;
}
.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto 40px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #17345e;
}
.legend li strong {
  font-variant-numeric: tabular-nums;
  color: #102d58;
}
.legend li small {
  color: #5a7090;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.legend.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.legend.inline li {
  display: flex;
  gap: 8px;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.colchart {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  height: 230px;
  padding-bottom: 26px;
}
.col-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: #5a7090;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transform: translateY(0.5em);
}
.col-axis span {
  line-height: 0;
}
.col-plot {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #b8cfee;
}
.gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--chart-grid);
}
.col-group {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
}
.col-group:hover {
  background: #f3f8ff;
}
.col-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
}
.col-bars i {
  display: block;
  width: clamp(8px, 2.2vw, 22px);
  border-radius: 4px 4px 0 0;
  min-height: 0;
}
.col-label {
  position: absolute;
  bottom: -24px;
  font-size: 12px;
  color: #455f80;
  text-transform: capitalize;
}
.chart-table {
  margin-top: 14px;
  font-size: 13px;
}
.chart-table summary {
  cursor: pointer;
  color: #174ea6;
  font-weight: 700;
}
.chart-table table {
  margin-top: 8px;
}
.chart-tip {
  position: fixed;
  z-index: 50;
  display: none;
  max-width: 280px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #0b2854;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 8px 22px #0b285430;
}
@media (max-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-panel.span-2 {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .kpi {
    padding: 14px;
  }
  .kpi-value {
    font-size: 24px;
  }
  .chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .chart-head {
    flex-wrap: wrap;
  }
  .hbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .hbar-label {
    grid-column: 1 / -1;
  }
  .hbar-note {
    grid-column: 1 / -1;
  }
  .colchart {
    height: 200px;
  }
  .filter-clear {
    width: 100%;
  }
}
@media print {
  .chart-tip,
  .chart-table summary {
    display: none;
  }
  .kpi,
  .chart-panel {
    break-inside: avoid;
    box-shadow: none;
  }
}
.chart-grid > .dashboard-agenda {
  grid-column: span 2;
}
@media (max-width: 1100px) {
  .chart-grid > .dashboard-agenda {
    grid-column: 1 / -1;
  }
}

/* v2.15 — ficha do candidato em abas */
dialog.wide {
  width: 1000px;
}
.detail-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.detail-hero .profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
}
.detail-hero > div:nth-child(2) {
  flex: 1 1 220px;
  min-width: 0;
}
.detail-hero p {
  margin: 6px 0 0;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.outcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #fff6e8;
  border: 1px solid #ecc98f;
  color: #5c3f0c;
}
.outcome-banner p {
  margin: 4px 0 0;
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #cdddf2;
  margin: 0 0 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs [role="tab"] {
  background: transparent;
  color: #455f80;
  border-radius: 9px 9px 0 0;
  padding: 11px 16px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tabs [role="tab"]:hover {
  background: #f1f7ff;
  transform: none;
}
.tabs [role="tab"][aria-selected="true"] {
  color: #102d58;
  border-bottom-color: #174ea6;
  background: #f4f8ff;
}
.tab-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #e4efff;
  color: #184782;
  font-size: 12px;
  text-align: center;
}
.tabpanel > .section.first,
.tabpanel > .section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.candidate-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.info-card,
.checklist,
.eval-card,
.doc-card {
  border: 1px solid #cdddf2;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
  background: #fff;
}
.info-card h3,
.eval-card h4,
.doc-card h4 {
  margin: 0;
}
.info-card-head,
.checklist-head,
.history-head,
.eval-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.history-head h3 {
  margin: 0;
}
.eval-card small {
  color: #5a7090;
}
.eval-card .pre {
  margin: 8px 0;
}
.doc-image {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 8px;
}
.checklist {
  background: #f4f8ff;
}
.checklist progress {
  width: 100%;
  height: 8px;
  accent-color: #174ea6;
}
.checklist ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 14px;
}
.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}
.checklist li span {
  color: #8aa0bd;
  font-weight: 700;
}
.checklist li.ok span {
  color: #00796f;
}
.checklist li small {
  color: #5a7090;
}
.checklist .muted {
  font-size: 12px;
  margin: 0;
}
.history-table td {
  vertical-align: top;
}
.history-table td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hkind {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 4px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: #e4efff;
  color: #184782;
}
.hkind.kind-resume {
  background: #fff1dc;
  color: #7a4d06;
}
.hkind.kind-hire {
  background: #dcf3ee;
  color: #00594f;
}
.hkind.kind-eval {
  background: #efe8fb;
  color: #5b3a9c;
}
.hkind.kind-agenda {
  background: #e3f4f9;
  color: #1a5a6d;
}
.hkind.kind-data {
  background: #edf1f6;
  color: #3b5170;
}
a.button-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 9px;
  background: #e4efff;
  color: #184782;
  font-weight: 700;
  text-decoration: none;
}
a.button-link:hover {
  background: #d6e6ff;
}
button.linkish {
  background: none;
  color: #174ea6;
  padding: 0 4px;
  text-decoration: underline;
  font-weight: 700;
}
button.linkish:hover {
  transform: none;
}
.detail-admin {
  margin-top: 8px;
}
.evolution .visual-flow li.outcome .flow-circle {
  background: #c27615;
  box-shadow: 0 0 0 3px #f6e2c4;
}
@media (max-width: 760px) {
  .candidate-facts {
    grid-template-columns: 1fr 1fr;
  }
  .detail-actions {
    width: 100%;
  }
  .detail-actions button {
    flex: 1 1 auto;
  }
  .history-table table,
  .history-table tbody,
  .history-table tr,
  .history-table td {
    display: block;
  }
  .history-table thead {
    display: none;
  }
  .history-table tr {
    padding: 10px 0;
    border-bottom: 1px solid #e1ebf9;
  }
  .history-table td {
    border: 0;
    padding: 2px 4px;
  }
  .history-table td[data-label="Responsável"] {
    color: #5a7090;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .candidate-facts {
    grid-template-columns: 1fr;
  }
}
dialog.wide {
  min-height: min(720px, 90vh);
}
.checklist ul {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.history-table td:last-child {
  white-space: normal;
  min-width: 260px;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 0;
  }
  .tabs [role="tab"] {
    justify-content: center;
    border-radius: 9px;
    border: 1px solid #cdddf2;
  }
  .tabs [role="tab"][aria-selected="true"] {
    border-color: #174ea6;
    box-shadow: inset 0 -3px #174ea6;
  }
  .history-table td:last-child {
    min-width: 0;
  }
}

/* v2.16 — agenda diária por e-mail */
.digest-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f8ff;
  border: 1px solid #cdddf2;
}
.digest-status p {
  margin: 0 0 4px;
}
.digest-status p:last-child {
  margin: 0;
}
.digest-status {
  margin-bottom: 12px;
}

/* v2.17 — parecer da IA e questionário em papel */
.op-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  background: #e4efff;
  color: #184782;
}
.op-chip:empty {
  display: none;
}
.op-chip.op-ok {
  background: #dcf3ee;
  color: #00594f;
}
.op-chip.op-stale {
  background: #fff1dc;
  color: #7a4d06;
}
.op-chip.op-running {
  background: #e4efff;
  color: #184782;
}
.op-chip.op-error {
  background: #fde8e8;
  color: #9b1c1c;
}
.opinion-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.opinion-head h3 {
  margin: 0;
}
.opinion-head .muted {
  margin: 4px 0 0;
  font-size: 13px;
}
.opinion-consent {
  font-size: 13px;
  align-items: flex-start;
}
.opinion-running {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f4f8ff;
  border: 1px solid #cdddf2;
  margin-bottom: 14px;
}
.opinion-running p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #455f80;
}
.spinner {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid #cdddf2;
  border-top-color: #174ea6;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}
.opinion-stale {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff6e8;
  border: 1px solid #ecc98f;
  color: #5c3f0c;
  font-size: 13px;
  margin-bottom: 14px;
}
.opinion-body {
  border: 1px solid #cdddf2;
  border-radius: 12px;
  padding: 6px 20px 14px;
  background: #fff;
  line-height: 1.55;
}
.opinion-body h4 {
  margin: 18px 0 6px;
  color: #0b2854;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e1ebf9;
}
.opinion-body ul {
  margin: 6px 0;
  padding-left: 20px;
}
.opinion-body li {
  margin: 4px 0;
}
.opinion-body p {
  margin: 6px 0;
}
.verdict {
  display: inline-block;
  padding: 0 7px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.verdict.v-ok {
  background: #dcf3ee;
  color: #00594f;
}
.verdict.v-part {
  background: #e4efff;
  color: #184782;
}
.verdict.v-unk {
  background: #fff1dc;
  color: #7a4d06;
}
.verdict.v-no {
  background: #fde8e8;
  color: #9b1c1c;
}
.opinion-version {
  margin: 0 0 12px;
}
.opinion-version summary {
  cursor: pointer;
  padding: 8px 0;
}
.paper-grid {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.paper-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #cdddf2;
  border-radius: 10px;
}
.paper-row legend {
  float: left;
  padding: 0;
  font-size: 14px;
}
.paper-options {
  display: flex;
  gap: 6px;
}
.paper-options label {
  position: relative;
  margin: 0;
}
.paper-options input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.paper-options span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #b8cfee;
  font-weight: 700;
  color: #184782;
  background: #fff;
}
.paper-options input:checked + span {
  background: #174ea6;
  border-color: #174ea6;
  color: #fff;
}
.paper-options input:focus-visible + span {
  outline: 3px solid #90d2ff;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .paper-row {
    grid-template-columns: 1fr;
  }
}
