@import url("./base.css");
@import url("./theme_dc.css");
@import url("./mobile-overrides.css");

/* 1) tokens/base resets */

body.system-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #f4f6f8;
  color: #13141a;
  overflow-x: hidden;
}

body.system-shell::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(72vw, 520px);
  height: min(72vh, 520px);
  background-image: url("../logos/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.026;
  pointer-events: none;
  z-index: 0;
}

body.system-shell main,
body.system-shell footer {
  position: relative;
  z-index: 1;
}

body.system-shell::after {
  content: none !important;
}

body.system-shell *::before {
  background-image: none !important;
}

.system-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 4vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sys-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

body.system-shell > main {
  flex: 1 0 auto;
  display: block;
  width: 100%;
  padding: 0;
  padding-top: 64px;
}

body.system-shell .flash-wrap {
  width: 100%;
  padding: 0 4vw;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

body.system-shell .section {
  background: transparent;
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.sys-main-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.system-dashboard {
  width: 100%;
  margin: 0 auto;
}

.dashboard-shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-tile {
  min-height: 180px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 14px 30px rgba(8, 18, 64, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-tile:hover,
.dashboard-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 20px 36px rgba(8, 18, 64, 0.18);
}

.dashboard-tile__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-tile__icon img {
  max-width: 72px;
  max-height: 72px;
  width: auto;
  height: auto;
  display: block;
}

.dashboard-tile__label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: #13141a;
}

@media (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (max-width: 720px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-shell {
    padding-inline: 16px;
  }
}

@media (min-width: 600px) {
  .sys-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .sys-main-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .sys-main-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.sys-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 32px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.0)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
}

.sys-icon-tile:hover,
.sys-icon-tile:focus-visible {
  transform: translateY(-4px);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sys-icon-tile:focus-visible {
  outline: 2px solid rgba(36, 157, 255, 0.3);
  outline-offset: 2px;
}

.sys-icon-figure {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sys-icon-image {
  max-width: 84px;
  max-height: 84px;
  width: auto;
  height: auto;
  display: block;
}

.sys-icon-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a0c4ff, #d9e4ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.sys-icon-label {
  display: block;
  font-weight: 600;
  text-transform: none;
  text-align: center;
  color: #13141a;
  font-size: 1rem;
}

.placeholder-card,
.sys-form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 32px 60px rgba(15, 16, 90, 0.12);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.admin-shell,
.parceiro-shell,
.client-area-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}

.client-area-shell {
  align-items: flex-start;
  padding-top: 24px;
}

.client-area-shell .dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sys-form-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sys-form-card input,
.sys-form-card button {
  width: 100%;
}

.muted {
  color: rgba(19, 20, 26, 0.7);
}

[data-login-token-status],
[data-login-change-feedback],
[data-login-availability],
[data-password-feedback] {
  display: block;
  margin-top: 4px;
}

[data-login-token-status][data-state="error"],
[data-login-change-feedback][data-state="error"],
[data-login-availability][data-state="error"],
[data-password-feedback][data-state="error"] {
  color: #b42318;
}

[data-login-token-status][data-state="success"],
[data-login-change-feedback][data-state="success"],
[data-login-availability][data-state="success"],
[data-password-feedback][data-state="success"] {
  color: #0f7b62;
}

[data-login-token-status][data-state="pending"],
[data-login-change-feedback][data-state="pending"],
[data-login-availability][data-state="pending"],
[data-password-feedback][data-state="pending"] {
  color: rgba(19, 20, 26, 0.7);
}

/* Garantia absoluta de um único watermark */
body.system-shell::before {
  content: none !important;
}

body.system-shell > main {
  display: block;
  margin: 0;
  padding-top: 64px;
}

body.system-shell .flash-wrap {
  display: block;
  width: 100%;
  padding: 0 4vw;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

body.system-shell .sys-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.system-shell .pessoas-shell,
body.system-shell .system-form-shell {
  width: 100%;
  padding: 0 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.system-shell .pessoas-header,
body.system-shell .system-form-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

body.system-shell .pessoas-header > div,
body.system-shell .system-form-header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}

body.system-shell .pessoas-header .subtitle,
body.system-shell .system-form-header .subtitle {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

body.system-shell .pessoas-header .page-title,
body.system-shell .system-form-header .page-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.75);
}

body.system-shell .pessoas-header__actions,
body.system-shell .system-form-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.pessoas-record-badge {
  font-size: 0.64rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.pessoas-list-toolbar {
  width: 100%;
}

.pessoas-filter-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pessoas-filter-field {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pessoas-filter-field--small {
  flex: 1 1 150px;
  min-width: 130px;
}

.pessoas-filter-field label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.pessoas-filter-field input,
.pessoas-filter-field select {
  border-radius: 8px;
  border: 1px solid #dfe3ee;
  background: #fff;
  padding: 6px 10px;
  height: 34px;
  font-size: 0.85rem;
  color: #13141a;
}

.pessoas-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}

.pessoas-filter-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.pessoas-filter-switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0e57c3;
}

.pessoas-flash-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pessoas-field--tiny {
  max-width: 90px;
}

.pessoas-cep-field input:disabled {
  background: #f4f4f5;
  border-color: #d1d5db;
  cursor: not-allowed;
}

.pessoas-cep-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.pessoas-password-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.pessoas-password-row input {
  height: 32px;
}

.pessoas-action-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pessoas-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pessoas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pessoas-table th,
.pessoas-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  text-align: left;
  vertical-align: middle;
}

.pessoas-table thead th {
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.pessoas-table tbody tr:hover {
  background: rgba(14, 87, 195, 0.04);
}

.pessoas-table__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-outline-primary {
  border: 1px solid #0e57c3;
  color: #0e57c3;
  background: transparent;
  box-shadow: none;
}

.badge-outline-warning {
  border: 1px solid #f4b740;
  color: #f4b740;
  background: transparent;
  box-shadow: none;
}

.badge-warning {
  background: #f4b740;
  color: #2d1c00;
}

.badge-success {
  background: #28a745;
  color: #fff;
}

.badge-danger {
  background: #d9534f;
  color: #fff;
}

.badge-default {
  background: #adb5bd;
  color: #1f1f1f;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge--pending {
  background: #f4b740;
  color: #2d1c00;
}

.status-badge--approved {
  background: #28a745;
  color: #fff;
}

.status-badge--rejected {
  background: #d9534f;
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag--success {
  background: #28a745;
  color: #fff;
}

.tag--warn {
  background: #f4b740;
  color: #2d1c00;
}

.pessoas-grid-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.person-form,
.system-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  align-items: flex-start;
}

.form-col-1 {
  grid-column: span 1;
}


.form-col-2 {
  grid-column: span 2;
}

.form-col-3 {
  grid-column: span 3;
}

.form-col-4 {
  grid-column: span 4;
}

.form-col-5 {
  grid-column: span 5;
}

.form-col-6 {
  grid-column: span 6;
}

.form-col-7 {
  grid-column: span 7;
}

.form-col-8 {
  grid-column: span 8;
}

.form-col-9 {
  grid-column: span 9;
}

.form-col-10 {
  grid-column: span 10;
}

.form-col-11 {
  grid-column: span 11;
}

.form-col-12 {
  grid-column: span 12;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
}

.form-field input,
.form-field select {
  border-radius: 8px;
  border: 1px solid #dfe3ee;
  background: #fff;
  padding: 4px 9px;
  font-size: 0.85rem;
  color: #13141a;
  height: 32px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 32px;
}

.form-field select.hidden,
.form-field input.hidden {
  display: none;
}

.form-field select option {
  color: #13141a;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #0e57c3;
  box-shadow: 0 0 0 3px rgba(14, 87, 195, 0.2);
}

.form-inline-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.form-inline-checkbox input {
  width: 16px;
  height: 16px;
}

.form-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-block__heading {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.form-block__heading span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
}

 .form-note {
  display: none;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin: 0;
}

.form-status-row {
  display: flex;
  justify-content: flex-end;
}

.form-field--actions {
  justify-content: center;
  gap: 4px;
  min-height: 42px;
}

.row-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  align-self: flex-end;
}

.is-hidden {
  display: none !important;
}

.row-actions .btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.field-with-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.field-with-actions > .field-grow {
  flex: 1;
  min-width: 0;
}

.phone-row .form-field input,
.phone-row .form-field select,
.bank-row .form-field input,
.bank-row .form-field select {
  font-size: 0.82rem;
  padding: 3px 8px;
  height: 30px;
}

.phone-row .form-field label,
.bank-row .form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.form-field--actions .btn {
  width: 100%;
  font-size: 0.8rem;
  padding: 6px;
}

.form-field--actions .btn:first-child {
  padding-top: 6px;
}

.bank-account {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.bank-account:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.phone-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.phone-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.bank-account.bank-account--template {
  border-bottom: none;
  padding-bottom: 0;
}

.phone-item.phone-item--template {
  border-bottom: none;
  padding-bottom: 0;
}

.form-row.phone-row {
  gap: 8px;
}

@media (max-width: 960px) {
  .form-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .form-field--actions {
    flex-direction: row;
  }
}

.pessoas-grid-row {
  width: 100%;
  display: grid;
  gap: 8px 14px;
}

.pessoas-grid-row--identificacao {
  grid-template-columns: minmax(0, 4fr) minmax(0, 1.2fr) minmax(0, 2.6fr) minmax(0, 0.8fr) minmax(0, 1.6fr);
  align-items: center;
  column-gap: 14px;
}

.pessoas-grid-row--contato {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: flex-start;
}

.pessoas-grid-row--address {
  grid-template-columns: 160px minmax(0, 1.8fr) 90px;
  align-items: flex-start;
}

.pessoas-grid-row--address-secondary {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.0fr) 150px 150px;
  align-items: flex-start;
}

.pessoas-grid-row--governance {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  align-items: center;
}

.pessoas-grid-row--bank-single {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.pessoas-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pessoas-field__label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pessoas-field__hint {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.pessoas-field--wide {
  min-width: 0;
}

.pessoas-field--xsmall {
  max-width: 110px;
}

.pessoas-field--large {
  min-width: 210px;
}

.pessoas-field--medwide {
  min-width: 170px;
}

.pessoas-field--email {
  min-width: 200px;
}

.pessoas-field--phone {
  min-width: 150px;
}

.pessoas-field label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
}

.pessoas-field input,
.pessoas-field select {
  border-radius: 8px;
  border: 1px solid #dfe3ee;
  background: #fff;
  padding: 6px 10px;
  font-size: 0.88rem;
  color: #13141a;
  height: 30px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pessoas-field--tipo {
  min-width: 70px;
  max-width: 90px;
  font-size: 0.65rem;
}

.pessoas-field--cpf {
  min-width: 320px;
}

.pessoas-field--cep {
  max-width: 140px;
}

.pessoas-field--ddi {
  max-width: 120px;
}

.pessoas-field--telefone {
  max-width: 220px;
}

.pessoas-field--bairro {
  min-width: 0;
}

.pessoas-field--cidade {
  min-width: 0;
}

.pessoas-field--estado select,
.pessoas-field--pais select {
  width: 100%;
}

.pessoas-field--ddi select,
.pessoas-field--telefone input {
  width: 100%;
}

.pessoas-field--tipo label {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pessoas-cep-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pessoas-cep-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.6);
}

.pessoas-cep-checkbox input {
  width: 16px;
  height: 16px;
}

.pessoas-field--numero {
  max-width: 110px;
}

.pessoas-field--complemento {
  min-width: 120px;
}

.pessoas-field input:focus,
.pessoas-field select:focus {
  outline: none;
  border-color: #0e57c3;
  box-shadow: 0 0 0 3px rgba(14, 87, 195, 0.2);
}


.pessoas-field input:focus,
.pessoas-field select:focus {
  outline: none;
  border-color: #0e57c3;
  box-shadow: 0 0 0 3px rgba(14, 87, 195, 0.2);
}

.pessoas-field--small {
  max-width: 140px;
}

.pessoas-field--medium {
  max-width: 220px;
}

.pessoas-field--wide {
  min-width: 240px;
}

.pessoas-note {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pessoas-bank-note {
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pessoas-actions,
.system-form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
}

.pessoas-actions__secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pessoas-actions .btn,
.system-form-actions .btn {
  min-width: 140px;
  min-height: 42px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-stage__feedback {
  margin-top: 8px;
  font-size: 0.85rem;
}

.account-stage__feedback[hidden] {
  display: none !important;
}

.account-stage__feedback[data-tone="error"] {
  color: #b71c1c;
  font-weight: 600;
}

.account-stage__feedback[data-tone="success"] {
  color: #1b5e20;
  font-weight: 600;
}

.kpi-inline-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(4, 27, 115, 0.08);
  border: 1px solid rgba(4, 27, 115, 0.08);
  margin-bottom: 24px;
}

.kpi-inline-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.kpi-inline-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 6px;
}

.kpi-inline-header h5 {
  margin: 0;
  font-size: 1.15rem;
}

.kpi-inline-hint {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.kpi-inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.account-security {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 87, 195, 0.06), rgba(14, 87, 195, 0));
}

.account-security__header {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.account-security__header p {
  max-width: 520px;
  margin: 0;
  color: rgba(15, 23, 42, 0.75);
}

.account-security__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 6px;
}

.account-security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.account-security__card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-security__card h5 {
  margin: 0;
  font-size: 1rem;
}

.account-security__card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.78);
}

.account-security__steps {
  margin: 0 0 10px;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.78);
  font-size: 0.9rem;
}

.account-security__steps li + li {
  margin-top: 4px;
}

.account-security__token-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.account-security__token-row .btn {
  min-width: 160px;
}

.account-security__form .form-field + .form-field {
  margin-top: 16px;
}

.account-security__status {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 10px 0;
}

.account-security__status[data-tone="info"] {
  color: #0e57c3;
}

.account-security__status[data-tone="success"] {
  color: #1b5e20;
}

.account-security__status[data-tone="warning"] {
  color: #e65100;
}

.account-security__status[data-tone="error"] {
  color: #b71c1c;
}

.account-security__actions {
  justify-content: flex-end;
}

.system-modal {
  position: fixed;
  inset: 64px 0 0;
  z-index: 115;
}

.system-modal.hidden {
  display: none;
}

.system-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.system-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 136px);
  overflow: auto;
  margin: 20px auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

.system-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.system-modal__header h5 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-modal__body {
  padding: 14px 18px 18px;
}

.system-choice-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2200;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.system-choice-modal--visible {
  display: flex;
}

.system-choice-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.system-choice-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1rem 1.1rem;
}

.system-choice-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.system-choice-modal__header h3 {
  margin: 0;
  font-size: 1rem;
}

.system-choice-modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.system-choice-modal__message {
  white-space: pre-line;
  color: #0f172a;
  margin-bottom: 0.9rem;
}

.system-choice-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pessoas-phone-display {
  width: 100%;
}

.pessoas-phone-display + input {
  display: none;
}

.pessoas-grid-row--bank-single .pessoas-field:last-child {
  grid-column: span 1;
}

@media (max-width: 960px) {
  .pessoas-filter-row,
  .pessoas-grid-row--identificacao,
  .pessoas-grid-row--contato,
  .pessoas-grid-row--address,
  .pessoas-grid-row--address-secondary,
  .pessoas-grid-row--governance,
  .pessoas-grid-row--bank-single {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .pessoas-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pessoas-table__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .pessoas-password-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-security__token-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 2) layout shell (header/footer fixos + main padding) */
.sys-list-shell,
.sys-form-shell {
  width: 100%;
}

.sys-page-header__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}

.sys-page-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.sys-list-toolbar {
  width: 100%;
}

/* 3) components/buttons */
.sys-table-actions,
.table-actions,
.pessoas-table__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 4) components/tags */
.sys-tag--success,
.tag--success {
  background: #28a745;
  color: #fff;
}

.sys-tag--warn,
.tag--warn {
  background: #f4b740;
  color: #2d1c00;
}

.sys-tag--info,
.tag--info {
  background: #0e57c3;
  color: #fff;
}

.sys-tag--neutral,
.tag--neutral {
  background: #e5e7eb;
  color: #1f2937;
}

.sys-tag--danger,
.tag--danger {
  background: #c62828;
  color: #fff;
}

/* 5) components/forms */
.project-form-compact {
  gap: 0;
  padding-top: 4px;
}

.project-form-compact .system-form-header {
  margin-bottom: 2px;
}

.admin-panel-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-panel-filters--inline {
  flex-wrap: nowrap;
}

.admin-panel-filters input[type="text"] {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

.admin-panel-filters select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
}

.audit-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.audit-preview-modal[data-visible="true"] {
  display: flex;
}

.audit-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 66, 0.65);
}

.audit-preview-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.3);
  width: min(90vw, 580px);
  max-height: 85vh;
  overflow: hidden;
  z-index: 1;
}

.audit-preview-modal__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.audit-preview-modal__body {
  max-height: 60vh;
  overflow: auto;
}

.audit-preview-modal__body pre {
  background: #0b1220;
  color: #f5f5f5;
  padding: 16px;
  border-radius: 12px;
  white-space: pre-wrap;
}

/* 6) components/lists+filters */
.sys-filter-row,
.pessoas-filter-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sys-filter-field,
.pessoas-filter-field {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sys-filter-actions,
.pessoas-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}

.sys-filter-switch,
.pessoas-filter-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

/* 7) components/tables */
.sys-table-wrap,
.pessoas-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.sys-table,
.pessoas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sys-table th,
.sys-table td,
.pessoas-table th,
.pessoas-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  text-align: left;
  vertical-align: middle;
}

.sys-table thead th,
.pessoas-table thead th {
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.sys-table tbody tr:hover,
.pessoas-table tbody tr:hover {
  background: rgba(14, 87, 195, 0.04);
}

.sys-pre-wrap {
  white-space: pre-wrap;
  word-break: break-all;
}

/* 8) components/tabs (admin panel + pills) */
.sys-tabs,
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sys-tab,
.admin-tab {
  border: 1px solid rgba(4, 27, 115, 0.2);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sys-tab small,
.admin-tab small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
}

.sys-tab.is-active,
.admin-tab.is-active {
  background: #041b73;
  color: #fff;
  border-color: #041b73;
}

.sys-tab.is-active small,
.admin-tab.is-active small {
  color: rgba(255, 255, 255, 0.9);
}

.admin-panel-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(4, 27, 115, 0.08);
}

.admin-panel-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-panel-table thead th {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #6b7280;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(4, 27, 115, 0.08);
  text-align: left;
}

.admin-panel-table tbody td {
  padding: 16px 0;
  border-bottom: 1px solid rgba(4, 27, 115, 0.04);
  font-size: 0.92rem;
  color: #1f2937;
}

.admin-panel-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-panel-empty {
  padding: 32px;
  text-align: center;
  color: #6b7280;
}

.admin-panel-commitments {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-panel-commitments__group {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  gap: 18px;
  display: flex;
  flex-direction: column;
}

.admin-panel-commitments__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-panel-commitments__header strong {
  font-size: 1.05rem;
}

.admin-panel-commitments__project p {
  margin: 0;
  font-weight: 600;
}

.admin-panel-commitments__project small {
  color: rgba(15, 23, 42, 0.6);
}

.admin-panel-commitments__totals {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
  color: #0e57c3;
}

.admin-panel-commitments__totals span {
  font-size: 0.95rem;
}

.admin-panel-commitments__summary {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(14, 87, 195, 0.22);
  background: rgba(14, 87, 195, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
}

.admin-panel-commitments__summary p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14, 87, 195, 0.7);
}

.admin-panel-commitments__summary strong {
  font-size: 1.2rem;
  color: #0e57c3;
}

.admin-panel-commitments__summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-panel-commitments__summary-totals {
  display: flex;
  gap: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.admin-panel-commitments__summary-services {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.admin-panel-commitments__summary-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.admin-panel-commitments__summary-service:first-child {
  border-top: none;
}

.admin-panel-commitments__list {
  margin-bottom: 24px;
}

.admin-panel-commitments__participant-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.admin-panel-commitments__global {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 16px;
  margin-top: 12px;
}

.admin-panel-commitments__global-values {
  display: flex;
  gap: 24px;
  font-weight: 600;
  color: #0e57c3;
}

.admin-panel-receipts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-panel-receipts__summary {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 16px;
}

.admin-panel-receipts__summary p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14, 87, 195, 0.7);
}

.admin-panel-receipts__summary-values {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
  color: #0e57c3;
}

