/*
 * Contratos V230 - ambiente interno v2347
 * Camada estritamente visual. Nenhuma regra, evento ou estrutura de dados.
 */
.v230-app {
  --contract-navy: #142847;
  --contract-blue: #5ea7d7;
  --contract-wine: #8f2747;
  --contract-wine-soft: #fbf5f7;
  --contract-ink: #25384d;
  --contract-muted: #718298;
  --contract-line: #ceddea;
  --contract-line-soft: #e3ebf2;
  --contract-panel: #ffffff;
  --contract-canvas: #f4f7fa;
  max-width: 1600px;
  padding: 26px 30px 40px;
  color: var(--contract-ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 14px;
}

.v230-app .v230-back {
  margin: 0 0 10px;
  color: #285b8c;
  font-size: 12.5px;
  font-weight: 500;
}

.v230-contract-header {
  align-items: center;
  gap: 30px;
  margin-bottom: 17px;
}

.v230-contract-identity {
  gap: 4px;
}

.v230-contract-identity .v230-status {
  margin-bottom: 2px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.v230-contract-identity h1 {
  margin: 0;
  color: var(--contract-navy);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.7rem, 2.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.v230-contract-identity p {
  color: var(--contract-muted);
  font-size: 13.5px;
  font-weight: 400;
}

.v230-contract-identity p b {
  font-weight: 400;
}

.v230-contract-actions {
  align-items: center;
  gap: 10px;
}

.v230-contract-actions .v230-primary,
.v230-contract-actions .v230-secondary {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}

.v230-contract-actions [data-v230-more]::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.v230-contract-actions [data-v230-more] {
  display: inline-flex;
  align-items: center;
}

.v230-guidance {
  min-height: 74px;
  margin-bottom: 18px;
  padding: 13px 18px;
  border: 1px solid #c9ddea;
  border-radius: 9px;
  background: #f1f7fb;
}

.v230-guidance::before {
  display: none;
}

.v230-guidance > div {
  gap: 3px;
}

.v230-guidance small,
.v230-section-intro small,
.v230-overview-sheet header small,
.v230-relationship-actions article small {
  color: #63778e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
}

.v230-guidance h2 {
  color: var(--contract-navy);
  font-size: 15.5px;
  font-weight: 600;
}

.v230-guidance p {
  color: #5e7187;
  font-size: 12.5px;
  line-height: 1.42;
}

.v230-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--contract-line);
  border-radius: 9px;
  background: #fff;
}

.v230-sections button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 45px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid var(--contract-line);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  color: #42546c;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.v230-sections button:last-child {
  border-right: 0;
}

.v230-sections button::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background: currentColor;
  opacity: .86;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.v230-sections button:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.v230-sections button:nth-child(2)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M5 7h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10'/%3E%3Cpath d='M16 11h5v5h-5a2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M5 7h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10'/%3E%3Cpath d='M16 11h5v5h-5a2.5 2.5 0 0 1 0-5Z'/%3E%3C/svg%3E");
}

.v230-sections button:nth-child(3)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='17' r='2.5'/%3E%3Ccircle cx='19' cy='17' r='2.5'/%3E%3Cpath d='M12 7.5V12M7.4 15.2l3.4-2M16.6 15.2l-3.4-2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='17' r='2.5'/%3E%3Ccircle cx='19' cy='17' r='2.5'/%3E%3Cpath d='M12 7.5V12M7.4 15.2l3.4-2M16.6 15.2l-3.4-2'/%3E%3C/svg%3E");
}

.v230-sections button:nth-child(4)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
}

.v230-sections button:hover {
  background: #f8fafc;
  color: #254d77;
}

.v230-sections button.active {
  border-bottom-color: var(--contract-wine);
  background: var(--contract-wine-soft);
  color: var(--contract-navy);
}

.v230-section-intro {
  margin: 3px 0 14px;
}

.v230-section-intro h2 {
  margin: 3px 0 3px;
  color: var(--contract-navy);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.v230-section-intro p {
  color: var(--contract-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.v230-dashboard,
.v230-financial-workspace,
.v230-people-workspace,
.v230-history-workspace {
  gap: 13px;
}

.v230-dashboard-metrics,
.v230-financial-metrics {
  gap: 10px;
}

.v230-dashboard-metrics article,
.v230-financial-metrics article {
  min-height: 88px;
  gap: 5px;
  padding: 14px 15px 14px 17px;
  border: 1px solid var(--contract-line);
  border-radius: 9px;
  background: var(--contract-panel);
  box-shadow: none;
}

.v230-dashboard-metrics article::before,
.v230-financial-metrics article::before {
  width: 2px;
}

.v230-dashboard-metrics small,
.v230-financial-metrics small,
.v230-overview-grid small {
  color: #697c91;
  font-size: 10px;
  font-weight: 500;
}

.v230-dashboard-metrics strong,
.v230-financial-metrics strong {
  color: var(--contract-navy);
  font-size: 15.5px;
  font-weight: 500;
}

.v230-dashboard-metrics span,
.v230-financial-metrics span,
.v230-overview-grid span {
  color: #7a8999;
  font-size: 11px;
}

.v230-overview-sheet,
.v230-panel,
.v230-register-section,
.v230-history-panel,
.v230-relationship-actions article {
  border: 1px solid var(--contract-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.v230-overview-sheet > header {
  padding: 14px 17px;
  border-bottom-color: var(--contract-line-soft);
  background: #f8fafc;
}

.v230-overview-sheet h2 {
  margin: 3px 0 0;
  color: var(--contract-navy);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.v230-overview-grid > div {
  min-height: 66px;
  gap: 5px;
  padding: 14px 16px;
  border-color: var(--contract-line-soft);
}

.v230-overview-grid strong {
  color: #2a3d53;
  font-size: 12.5px;
  font-weight: 500;
}

.v230-overview-grid p {
  color: #405369;
  font-size: 12.5px;
  line-height: 1.5;
}

.v230-panel {
  padding: 0;
  overflow: hidden;
}

.v230-panel > header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--contract-line-soft);
  background: #fff;
}

.v230-panel h3 {
  color: var(--contract-navy);
  font-size: 14px;
  font-weight: 500;
}

.v230-panel header p {
  margin: 3px 0 0;
  color: var(--contract-muted);
  font-size: 11.5px;
}

.v230-table {
  width: 100%;
  overflow: auto;
}

.v230-table table {
  width: 100%;
  font-size: 11.5px;
}

.v230-table th,
.v230-table td {
  padding: 10px 12px;
  border-bottom-color: var(--contract-line-soft);
}

.v230-table th {
  background: #edf3f7;
  color: #526981;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .055em;
}

.v230-table td,
.v230-table td strong {
  color: #31465d;
  font-weight: 400;
}

.v230-obligation-title {
  color: #263c54;
  font-weight: 500;
}

.v230-schedule-state,
.v230-muted {
  color: #7a8b9c;
  font-size: 10.5px;
}

.v230-finance-kind,
.v230-finance-link {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
}

.v230-account-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 84px;
}

.v230-row-menu {
  position: relative;
}

.v230-row-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid #c9d9e6;
  border-radius: 7px;
  background: #fff;
  color: #36536f;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  list-style: none;
}

.v230-row-menu > summary::-webkit-details-marker {
  display: none;
}

.v230-row-menu[open] > summary {
  border-color: #8f2747;
  color: #8f2747;
}

.v230-row-menu > div {
  position: static;
  min-width: 148px;
  margin-top: 5px;
  padding: 5px;
  border: 1px solid #ceddea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 40, 71, .12);
}

.v230-row-menu > div button {
  width: 100%;
  padding: 8px 9px;
  border-radius: 6px;
  text-align: left;
}

.v230-partnership-close {
  min-height: 34px;
  padding: 7px 12px;
  border-color: #cba8b4;
  color: #81223f;
  font-size: 10.5px;
  font-weight: 600;
}

.v230-partnership-close:hover {
  border-color: #8f2747;
  background: #fbf5f7;
  color: #721d38;
}

.v230-relationship-actions {
  gap: 10px;
}

.v230-relationship-actions article {
  position: relative;
  min-height: 112px;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 16px;
}

.v230-relationship-actions article::before {
  content: "";
  width: 54px;
  height: 54px;
  grid-column: 1;
  grid-row: 1;
  border: 1px solid #d7e1e9;
  border-radius: 50%;
  background-color: #f5f8fa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px;
}

.v230-relationship-actions article:first-child::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='%231b3658' stroke-width='1.4'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='17' r='2.5'/%3E%3Ccircle cx='19' cy='17' r='2.5'/%3E%3Cpath d='M12 7.5V12M7.4 15.2l3.4-2M16.6 15.2l-3.4-2'/%3E%3C/svg%3E");
}

.v230-relationship-actions article:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='%231b3658' stroke-width='1.35'%3E%3Cpath d='M12 4v16M4 7h16M6 7l-3 6h6L6 7Zm12 0-3 6h6l-3-6Z'/%3E%3Cpath d='M8 20h8'/%3E%3C/svg%3E");
}

.v230-relationship-actions article > div:first-child {
  grid-column: 2;
  max-width: none;
}

.v230-relationship-actions article > div:last-child {
  grid-column: 3;
  min-width: 122px;
}

.v230-relationship-actions h3 {
  margin: 3px 0 5px;
  color: var(--contract-navy);
  font-size: 14px;
  font-weight: 500;
}

.v230-relationship-actions p {
  color: #6a7c91;
  font-size: 11.5px;
  line-height: 1.45;
}

.v230-relationship-actions article > div:last-child > strong {
  color: var(--contract-navy);
  font-size: 16px;
  font-weight: 500;
}

.v230-relationship-actions article > div:last-child > span {
  font-size: 10.5px;
}

.v230-relationship-actions article > div:last-child > button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 600;
}

.v230-register-section > summary,
.v230-history-panel > summary {
  min-height: 50px;
  padding: 11px 16px;
  border-bottom: 0;
  background: #fff;
}

.v230-register-section[open] > summary,
.v230-history-panel[open] > summary {
  border-bottom: 1px solid var(--contract-line-soft);
}

.v230-register-section > summary b,
.v230-history-panel > summary b {
  display: block;
  color: var(--contract-navy);
  font-size: 13.5px;
  font-weight: 500;
}

.v230-register-section > summary small,
.v230-history-panel > summary small {
  display: block;
  margin-top: 4px;
  color: #79899a;
  font-size: 10.5px;
}

.v230-register-section > summary > span,
.v230-history-panel > summary > span {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.3;
}

.v230-register-row {
  grid-template-columns: minmax(190px, .7fr) minmax(440px, 2fr);
  gap: 18px;
  padding: 13px 16px;
  border-top-color: var(--contract-line-soft);
}

.v230-register-row .identity small,
.v230-register-row dt,
.v230-partner-table dt {
  color: #697c91;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.v230-register-row .identity strong {
  color: var(--contract-navy);
  font-size: 12px;
  font-weight: 500;
}

.v230-register-row .identity span,
.v230-register-row dd,
.v230-partner-table dd,
.v230-register-row > p {
  color: #52657b;
  font-size: 11px;
  font-weight: 400;
}

.v230-register-row > p b {
  color: #52657b;
  font-weight: 500;
}

.v230-empty-register {
  padding: 20px;
  color: #718398;
  font-size: 12px;
}

.v230-history-workspace .v230-section-intro {
  align-items: flex-end;
}

.v230-timeline {
  border-top: 0;
}

.v230-timeline article {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 17px;
  border-bottom-color: var(--contract-line-soft);
}

.v230-timeline-date time {
  color: #354c64;
  font-size: 11px;
  font-weight: 500;
}

.v230-timeline-date span {
  padding: 3px 7px;
  background: #edf2f6;
  color: #617286;
  font-size: 9.5px;
  font-weight: 500;
}

.v230-timeline-content {
  padding-left: 15px;
  border-left: 2px solid #bad4e8;
}

.v230-timeline-content::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -5px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #629fca;
}

.v230-timeline-content h3 {
  margin-bottom: 3px;
  color: var(--contract-navy);
  font-size: 12px;
  font-weight: 500;
}

.v230-timeline-content p {
  color: #66798e;
  font-size: 11.5px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .v230-contract-header {
    align-items: flex-start;
  }

  .v230-relationship-actions article {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }
}

@media (max-width: 700px) {
  .v230-app {
    padding: 14px 12px 28px;
    font-size: 13px;
  }

  .v230-contract-header {
    gap: 12px;
    margin-bottom: 14px;
  }

  .v230-contract-identity h1 {
    font-size: 1.35rem;
  }

  .v230-contract-identity p {
    font-size: 12px;
  }

  .v230-contract-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .v230-contract-actions .v230-primary,
  .v230-contract-actions .v230-secondary {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .v230-guidance {
    min-height: 0;
    padding: 12px 13px;
  }

  .v230-guidance h2 {
    font-size: 13px;
  }

  .v230-guidance p {
    font-size: 11px;
  }

  .v230-sections {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    margin: 0 0 14px;
    overflow-x: auto;
  }

  .v230-sections button {
    flex-direction: column;
    gap: 5px;
    min-height: 61px;
    padding: 8px 5px;
    font-size: 8.5px;
    line-height: 1.2;
    white-space: normal;
  }

  .v230-sections button::before {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .v230-dashboard-metrics,
  .v230-financial-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .v230-dashboard-metrics article,
  .v230-financial-metrics article {
    min-height: 78px;
    padding: 12px 11px 12px 14px;
  }

  .v230-dashboard-metrics strong,
  .v230-financial-metrics strong {
    font-size: 13px;
  }

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

  .v230-overview-grid > div,
  .v230-overview-grid > div:nth-child(2n),
  .v230-overview-grid > div:nth-child(3n),
  .v230-overview-grid > div.wide {
    grid-column: auto;
    border-right: 0;
  }

  .v230-section-intro {
    align-items: stretch;
  }

  .v230-section-intro h2 {
    font-size: 15px;
  }

  .v230-relationship-actions article,
  .v230-relationship-actions article:nth-child(n) {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .v230-relationship-actions article::before {
    width: 44px;
    height: 44px;
    background-size: 24px;
  }

  .v230-relationship-actions article > div:first-child {
    grid-column: 2;
  }

  .v230-relationship-actions article > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    min-width: 0;
    padding-top: 3px;
  }

  .v230-relationship-actions article > div:last-child > button {
    margin: 0 0 0 auto;
  }

  .v230-register-row,
  .v230-timeline article {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .v230-register-row dl,
  .v230-partner-table dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v230-timeline-date {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .v230-timeline-content {
    margin-left: 3px;
  }

  .v230-financial-flow .v230-table table,
  .v230-register-section .v230-table table {
    min-width: 760px;
  }
}

@media (max-width: 430px) {
  .v230-contract-actions {
    grid-template-columns: 1fr;
  }

  .v230-dashboard-metrics,
  .v230-financial-metrics {
    grid-template-columns: 1fr;
  }
}
