@font-face {
  font-family: "FT Base";
  src: url("/FTBase-Regular.tff") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "FT Base";
  src: url("/FTBase-Semibold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
}

/* *** ESTILOS GRID ARQUIVOS CUSTOMIZADOS *** */
#anexar-documentos-negocio:hover,
#anexar-documentos-negocio:focus,
#anexar-documentos-negocio:active {
  background: inherit;
  color: inherit;
  box-shadow: none;
  outline: none;
}

#anexar-documentos-negocio {
  width: 100% !important;
  position: relative !important;
  z-index: 10 !important;
}

.arquivo-status {
  font-size: 10px;
  background: red;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
}
.status-aguardando {
  background: #f7b200 !important;
  color: #222222 !important;
}
.status-aguardando-envio {
    background:#7C9599 !important;
    color:#FFFFFF !important;
}

/* *** FIM ESTILOS GRID ARQUIVOS CUSTOMIZADOS *** */

/* *** COMPONENTE ATIVIDADES *** */
.wrapper-activities {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
}

.wrapper-activities:hover {
  opacity: 0.9;
  background-color: #a9ffba;
  cursor: pointer;
}

.activities-icon {
  color: var(--primary-500);
  font-size: 24px;
}
.activities-label {
  font-size: 18px;
}

.btn-activity {
  margin: 10px 10px 0 0;
  padding: 16px;
  color: var(--neutral-50);
  background: var(--primary-500);
  border: 0;
  line-height: 23px;
}

.header-buttons {
  display: none;
  flex-direction: column;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  -webkit-animation: tilt-in-top-2 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    both;
  animation: tilt-in-top-2 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@-webkit-keyframes tilt-in-top-2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tilt-in-top-2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.item-activity-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.item-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #D7DFE0;
  padding-bottom: 18px;
}
.item-activity-content {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.item-activity-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-activity-icon {
  color: var(--primary-500);
  margin-right: 8px;
  font-size: 24px;
}
.item-activity-label {
  color: var(--neutral-900);
  font-size: 18px;
}

.item-activity-content-date-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item-activity-content-note-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-activity-content-title {
  color: var(--neutral-800);
  font-size: 16px;
}

.item-activity-content-value {
  color: var(--neutral-900);
  
}
.item-activity-attachment {
  padding: 8px 12px;
  border: 1px solid #D7DFE0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-activity-description {
}
.item-activity-subject {
}
.item-activity-status {
  background: var(--alert-500);
  padding: 4px 8px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
}

/*  new codes */
.item-activity-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.item-activity-row.full {
  flex-direction: column;
}

.item-activity-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.item-activity-field.grow {
  flex: 1;
}

.item-activity-field.align-right {
  margin-left: auto;
}

/* *** FIM COMPONENTE ATIVIDADES *** */

/* Container Principal do Dropdown */
.components-dropdown-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--neutral-900);
  border-radius: 4px;
  margin-bottom: 10px;
  margin-top: 16px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
}

/* Cabeçalho (Clicável) */
.components-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.components-dropdown-header:hover {
  background-color: #edebe9;
}

/* Título */
.components-dropdown-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--neutral-900);
}

/* Seta */
.components-dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

/* Corpo (Onde ficam os campos) */
.components-dropdown-body {
  padding: 16px;
  border-top: 1px solid var(--tertiary-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background-color: #fff;
}

/* Estado Fechado - Esconde o corpo */
.components-hidden {
  display: none !important;
}

/* Elemento Individual de Campo (Label + Valor) */
.components-field-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.components-field-label {
  font-size: 12px;
  color: var(--primary-500);
  font-weight: 600;
  margin-bottom: 4px;
}

.components-field-value {
  font-size: 14px;
  color: var(--neutral-900);
  word-break: break-word;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.components-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.components-dropdown-preview {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background-color: #fff;
  border-top: 1px solid var(--tertiary-200);
}

.components-btn-full {
  grid-column: span 2;
  width: 100%;
  margin-top: 8px;
  background-color: var(--primary-500); /* Ajuste a cor conforme seu tema */
  color: white;
}

/* Modo preview: só mostra always-visible */
.components-preview-mode .components-field-item {
  display: none;
}

.components-preview-mode .components-always-visible {
  display: flex;
}

/* *** VIEW CARD *** */
.componentes-view-card-body {
  padding: 16px;
  border-top: 1px solid var(--tertiary-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background-color: #fff;
}

.crmEntityFormView[data-form-name="UC Contrato de Adesão - PORTALS"]
  .componentes-view-card-body {
  min-height: 38vh;
}

.components-view-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.components-adhesion-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#components-adhesion-history-modal,
#components-adhesion-history-modal * {
  font-family: "FT Base", "Segoe UI", Arial, sans-serif !important;
}

.components-adhesion-modal-content {
  background: var(--white, #ffffff);
  width: min(582px, 92vw);
  border-radius: 8px;
  border: 0;
  padding: 24px;
  position: relative;
  box-sizing: border-box;
  font-family: "FT Base", "Segoe UI", Arial, sans-serif !important;
}

.components-adhesion-modal-close {
  position: absolute;
  top: 14px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.components-adhesion-modal-close-icon {
  display: block;
  width: 32px;
  height: 32px;
}

.components-adhesion-modal-title {
  margin: 0 0 24px;
  color: #222222;
  font-family: "FT Base", "Segoe UI", Arial, sans-serif !important;
  font-style: normal;
  font-size: 22px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.components-adhesion-modal-table-shell {
  border: 1px solid #90a5a8;
  border-radius: 4px;
  overflow: hidden;
}

.components-adhesion-modal-list {
  background: #fff;
}

.components-adhesion-modal-row {
  min-height: 40px;
  border-bottom: 1px solid #90a5a8;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 8px 16px;
  gap: 16px;
  box-sizing: border-box;
}

.components-adhesion-modal-row:last-child {
  border-bottom: 0;
}

.components-adhesion-modal-row-text,
.components-adhesion-modal-row-right {
  height: 24px;
  display: flex;
  align-items: center;
  font-family: "FT Base", "Segoe UI", Arial, sans-serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #222222;
  box-sizing: border-box;
}

.components-adhesion-modal-row-text {
  flex: 1;
  color: #222222;
}

.components-adhesion-modal-row-right {
  width: 100px;
  color: #222222;
  justify-content: flex-start;
  text-align: left;
}

.components-adhesion-modal-header-row {
  background: #6d32ff;
}

.components-adhesion-modal-header-row .components-adhesion-modal-row-text,
.components-adhesion-modal-header-row .components-adhesion-modal-row-right {
  color: #ffffff;
  font-weight: 600;
}

.components-adhesion-modal-row-alt {
  background: #f1f4f4;
}

/* CARD MOBILE (LEAD) */

.wrapper-card-mobile {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  width: 100%;
  white-space: nowrap; /* não quebra linha */
  overflow: hidden; /* esconde o excesso */
  text-overflow: ellipsis; /* adiciona "..." */
  background-color: white !important;
}

.header-card-mobile {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.body-card-mobile {
  margin-bottom: 24px;
  background-color: white !important;
}

.wrapper-content-card-mobile {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  border-bottom: 1px solid var(--neutral-400);
  padding-bottom: 8px;
  padding-top: 16px;
}

.label-card-mobile {
  color: var(--neutral-800);
  font-weight: 600;
}

.value-card-mobile {
  color: #222222;
}

.header-title-card-mobile {
  color: #222222;
  font-size: 18px;
  font-weight: 600;
  text-wrap: auto;
}

.header-status-card-mobile {
  color: #222222;
  background-color: var(--primary-300);
  padding: 8px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 12px;
  height: fit-content;
}

.label-card-mobile {
  font-size: 12px;
}

.value-card-mobile {
  font-size: 12px;
}

/* ============================================
   Modal Activity Timeline
   ============================================ */

.wrapper-modal-activity-timeline {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.wrapper-modal-activity-timeline header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #ffffff;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  width: min(500px, calc(100vw - 32px));
  max-width: 100%;
  box-sizing: border-box;
}

.wrapper-modal-activity-timeline > .body-modal-activity-timeline {
  width: min(500px, calc(100vw - 32px));
  max-width: 100%;
  background: #ffffff;
  box-sizing: border-box;
  margin-top: -1px;
}

.wrapper-modal-activity-timeline > .footer-modal-activity-timeline {
  width: min(500px, calc(100vw - 32px));
  max-width: 100%;
  background: #ffffff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-sizing: border-box;
  margin-top: -1px;
}

.wrapper-modal-activity-timeline header,
.wrapper-modal-activity-timeline > .body-modal-activity-timeline,
.wrapper-modal-activity-timeline > .footer-modal-activity-timeline {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.header-content-activity-timeline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.header-content-activity-timeline span:last-child {
  font-size: 20px;
  color: #222222;
  font-weight: 500;
}

.header-content-activity-timeline span[aria-hidden="true"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.wrapper-icon-close-modal {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin: 0;
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.wrapper-icon-close-modal:hover {
  opacity: 0.6;
}

.wrapper-icon-close-modal svg {
  width: 16px;
  height: 16px;
}

/* Body do Modal */
.body-modal-activity-timeline {
  padding-top: 0;
  padding-bottom: 10px;
  padding-left: 24px;
  padding-right: 24px;
}

.body-modal-activity-timeline label {
  display: block;
  margin-left: 0;
  margin-top: -10px;
  margin-bottom: 20px;
  padding-left: 0;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
}

.body-modal-activity-timeline label::after {
  content: " *";
  color: #e5484d;
}

.body-modal-activity-timeline select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
  height: 44px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  padding: 10px 12px;
  appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.0003 12.3143C7.91696 12.3143 7.83363 12.2776 7.7803 12.2143L0.740296 4.1743C0.633629 4.05096 0.646963 3.86763 0.766963 3.76096C0.890296 3.6543 1.07363 3.66763 1.1803 3.78763L8.0003 11.5743L14.8203 3.78763C14.927 3.6643 15.1136 3.6543 15.2336 3.76096C15.357 3.86763 15.367 4.0543 15.2603 4.1743L8.2203 12.211C8.16363 12.2743 8.08363 12.311 8.0003 12.311V12.3143Z' fill='%237C9599'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.body-modal-activity-timeline select option {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.body-modal-activity-timeline select:hover {
  border-color: #999;
}

.body-modal-activity-timeline select:focus {
  outline: none;
  border-color: #6d32ff;
  box-shadow: none;
}

/* Footer do Modal */
.footer-modal-activity-timeline {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botões Reutilizáveis */
.btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.btn:focus {
  border-radius: 0px !important;
  outline: none !important;
  border: 1px solid var(--primary-500);
}
.btn-primary {
  background: #6d32ff;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #5a1f99;
}

.btn-primary:active:not(:disabled) {
  background: #4a1580;
}

.btn-secondary {
  background: #ffffff;
  color: #6d32ff;
  border: 2px solid #6d32ff;
}

.btn-secondary:hover:not(:disabled) {
  background: #f8f8f8;
}

.btn-secondary:active:not(:disabled) {
  background: #f0f0f0;
}

.btn-disabled {
  background: #e8e8e8;
  color: #999999;
  cursor: not-allowed;
  border: none;
}

.btn-disabled:hover {
  background: #e8e8e8;
}

.fieldSetParent {
  background: #ffffff !important;
  border-radius: 5px !important;
  padding-top: 10px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  padding-bottom: 5px !important;
  border: 1px solid #e2e2e2 !important;
  margin-right: 10px !important;
  margin-left: 10px !important;
  width: 28% !important;
  min-width: 350px !important;
}

.radio-field !important {
  display: flex !important;
  gap: 25px !important;
  flex-wrap: wrap !important;
  margin-top: 6px !important;
  margin-left: -20px !important;
  margin-bottom: 10px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  color: #323130 !important;
  padding-left: 2px !important;
}

.radio-field label !important {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  font-size: small !important;
  font-weight: normal !important;
  margin-left: 13px !important;
}

.card-wrapper {
  background: #ffffff !important;
  border: 0px !important;
  border-radius: 4px !important;
  padding: 5px !important;
  margin-bottom: 2px !important;
}

.card-wrapper legend {
  margin-top: 10px !important;
  display: block !important;
  margin-left: -10px;
}

#anexar-btn .fa-paperclip::before {
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.session-header-text {
  display: flex;
  flex-direction: column;
}
.session-toggle svg {
  stroke: #6f3cff;
  fill: none;
}
.session-toggle {
  width: 22px;
  height: 13px;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.5602 12.9275C21.4402 12.9275 21.3152 12.8775 21.2302 12.7775L11.0002 1.0975L0.770197 12.7775C0.610197 12.9625 0.330197 12.9775 0.150197 12.8175C-0.0348033 12.6575 -0.0498033 12.3775 0.110197 12.1975L10.6702 0.1425C10.8352 -0.0475 11.1652 -0.0475 11.3302 0.1425L21.8902 12.1975C22.0502 12.3825 22.0302 12.6575 21.8502 12.8175C21.7652 12.8925 21.6652 12.9275 21.5602 12.9275Z' fill='%236f3cff'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  cursor: pointer;
  transition: transform 0.25s ease;
}
.session-collapsed .session-toggle {
  transform: rotate(180deg);
}
.session-body {
  width: 100%;
}
fieldset.card-session,
fieldset[aria-label="Arquivos"] {
  background: #ffffff;
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px !important;
}
.card-move-right-105 {
  margin-left: 0% !important;
  width: 98%;
}
.layout-duas-colunas {
  display: flex;
  width: 194%;
  gap: 24px;
  align-items: flex-start;
}
.coluna-esquerda,
.coluna-direita {
  flex: 1;
}
.coluna-esquerda fieldset,
.coluna-direita fieldset {
  width: 100%;
}
.session-body,
table.section,
td.cell {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.card-avancar {
  background: #ffffff;
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  /*margin: 20px 8px !important;*/
}
.session-description {
  font-family: "FT Base", "Segoe UI", Arial, sans-serif !important;
  font-size: 14px;
  color: #7c9599;
  font-weight: 100;
  margin-top: 4px;
  margin-bottom: 15px;
  margin-right: 5px;
  line-height: 1.45;
  display: block;
  padding-left: 16px;
  margin-left: -10px;
}
.btn-avancar-etapa {
  width: 100%;
  background: #6e1fed;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.btn-avancar-etapa:hover {
  background: #5a19c2;
}
.icon-seta {
  font-size: 18px;
}
nav#custom-form-nav > ul.nav.navbar-nav {
  border-bottom: 1px solid #d6dde3 !important;
  padding-bottom: 10px;
  margin-bottom: 12px !important;
}
nav#custom-form-nav > ul.nav.navbar-nav > li > a {
  border: none !important;
  padding-bottom: 10px !important;
}
nav#custom-form-nav > ul.nav.navbar-nav > li.active > a,
nav#custom-form-nav > ul.nav.navbar-nav > li.active > a:hover,
nav#custom-form-nav > ul.nav.navbar-nav > li.active > a:focus {
  border-bottom: 3px solid #6e1fed !important;
  padding-bottom: 10px !important;
}
.grid-oculta {
  display: none !important;
}
