/* Configurações da empresa: Dados da empresa, Empresas / Lojas, Modelos de e-mails, Meu plano e Criador de site.
   Medidas e cores lidas das capturas configuracoes-dados_empresa, lojas, modelos_emails-index,
   recursos_humanos e site_builder (escala 2 de 1440x900). A lista, a tabela e os cartões reaproveitam
   as classes .fincfg-* de financeiro-config.css; aqui só o que é próprio destas telas. */

.ecfg-page { max-width: 1100px; }

/* Barra de ações da lista de lojas: "Adicionar" escuro, como no original. */
.ecfg-add {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid #0f1b24; border-radius: 4px; background: #0f1b24; color: #fff;
  font-size: 15px; text-decoration: none;
}
.ecfg-add:hover { background: #26323b; }
.ecfg-add .fincfg-icon { width: 15px; height: 15px; }

/* Cartões e formulário de Dados da empresa */
.ecfg-form { display: flex; flex-direction: column; gap: 16px; }
.ecfg-section-body { padding: 16px; }
.ecfg-section > .ecfg-section-body + .ecfg-section-body { border-top: 1px solid #e6e8eb; }
.ecfg-grid { display: grid; gap: 14px 16px; }
.ecfg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ecfg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ecfg-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ecfg-span-2 { grid-column: span 2; }
.ecfg-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ecfg-label { font-size: 12px; color: #555b61; }
.ecfg-required { margin-left: 2px; color: #dc3545; font-weight: 400; }
.ecfg-field input, .ecfg-field select {
  width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #cfd4d9; border-radius: 4px;
  background: #fff; color: #222529; font: inherit; font-size: 15px;
}
.ecfg-field input:disabled { background: #eef0f2; cursor: not-allowed; }
.ecfg-group { display: flex; min-width: 0; }
.ecfg-group input { flex: 1; border-radius: 4px 0 0 4px; }
.ecfg-addon {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid #cfd4d9; border-left: 0; border-radius: 0 4px 4px 0; background: #f7f7f7; color: #222529;
  font-size: 13px;
}
.ecfg-addon:disabled { cursor: not-allowed; }
.ecfg-addon-check input { width: 14px; height: 14px; }
.ecfg-substitutes { display: flex; flex-direction: column; gap: 10px; }
.ecfg-substitutes:not(:empty) { margin-bottom: 14px; }
.ecfg-substitute { display: grid; grid-template-columns: 120px minmax(0, 1fr) 36px; gap: 12px; align-items: end; }
.ecfg-remove {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid #cfd4d9; border-radius: 4px; background: #fff; color: #dc3545; cursor: pointer;
}
.ecfg-outline, .ecfg-dark, .ecfg-danger {
  display: inline-flex; align-items: center; gap: 6px; height: 33px; padding: 0 8px;
  border: 1px solid #0f1b24; border-radius: 4px; background: #fff; color: #0f1b24; font-size: 13px; cursor: pointer;
}
.ecfg-dark { background: #0f1b24; color: #fff; }
.ecfg-danger { border-color: #dc3545; color: #dc3545; }
.ecfg-outline:disabled, .ecfg-dark:disabled, .ecfg-danger:disabled { cursor: not-allowed; opacity: 1; }
.ecfg-outline .fincfg-icon { width: 14px; height: 14px; }
.ecfg-actions { display: flex; justify-content: flex-end; gap: 10px; }
.ecfg-submit { min-width: 110px; }

/* Meu plano */
.ecfg-alert {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border: 1px solid #f1aeb5; border-radius: 4px; background: #f8d7da; color: #58151c; font-size: 14px;
}
.ecfg-alert-close { display: inline-flex; padding: 2px; border: 0; background: none; color: inherit; cursor: pointer; }
.ecfg-alert-close .fincfg-icon { width: 12px; height: 12px; }
.ecfg-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ecfg-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.ecfg-fact { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6e757c; }
.ecfg-fact strong { font-size: 14px; color: #222529; }
.ecfg-button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ecfg-renewal { margin: 0 0 14px; font-size: 13px; color: #6e757c; }
.ecfg-pill { padding: 1px 6px; border: 1px solid #cfd4d9; border-radius: 3px; background: #f7f7f7; font-size: 11px; }
.ecfg-features { margin: 0; padding: 0; list-style: none; max-height: 414px; overflow-y: auto; }
.ecfg-features li {
  display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 16px;
  border-bottom: 1px solid #e6e8eb; font-size: 14px;
}
.ecfg-features li:last-child { border-bottom: 0; }
.ecfg-feature-on { color: #198754; display: inline-flex; }
.ecfg-feature-off { color: #6e757c; display: inline-flex; }
.ecfg-feature-unknown { color: #6e757c; font-style: normal; }
.ecfg-features .fincfg-icon { width: 14px; height: 14px; }
.ecfg-right { text-align: right !important; }
.ecfg-empty { padding: 16px; color: #6e757c; text-align: center; }
.ecfg-invoice-table { min-width: 0; }

/* Criador de site: coluna única sem o menu da empresa (medidas da captura site_builder em 1440 px) */
.ecfg-site { max-width: 720px; margin: -7px auto 0; padding: 0 16px 40px; color: #222529; }
.ecfg-site-title { margin: 0 0 47px; font-size: 22px; font-weight: 400; line-height: 34px; text-align: center; }
.ecfg-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 49px; }
.ecfg-steps span { height: 10px; border-radius: 5px; background: #e6e7e9; }
.ecfg-steps .is-done { background: #0f1b24; }
.ecfg-site-step { margin: 0 0 40px; font-size: 18px; font-weight: 400; line-height: 26px; color: #1c3d5a; text-align: center; }
.ecfg-site-form { display: flex; flex-direction: column; gap: 17px; width: 100%; max-width: 577px; margin: 0 auto; }
.ecfg-site-field, .ecfg-site-field > label { display: flex; flex-direction: column; gap: 6px; }
.ecfg-site-field strong { font-size: 13px; line-height: 18px; }
.ecfg-site-field small { max-width: 556px; font-size: 13px; line-height: 21px; color: #6e757c; }
.ecfg-site-field small + input, .ecfg-site-field small + textarea { margin-top: -2px; }
.ecfg-site-field input, .ecfg-site-field textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #cfd4d9; border-radius: 4px; background: #fff;
  color: #222529; font: inherit; font-size: 14px;
}
.ecfg-site-field input { height: 38px; min-height: 38px; box-sizing: border-box; }
.ecfg-site-field textarea { height: 110px; min-height: 110px; box-sizing: border-box; line-height: 24px; }
.ecfg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; }
.ecfg-chip {
  height: 26px; padding: 0 12px; border: 0; border-radius: 13px; background: #e9ecef; color: #495057; font-size: 12px; cursor: pointer;
}
.ecfg-chip:hover { background: #dde1e5; }
.ecfg-site-actions { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 8px; }
.ecfg-site-next {
  min-width: 106px; height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: #5f6368; color: #fff;
  font-size: 15px;
}
.ecfg-site-next:disabled, .ecfg-site-skip:disabled { cursor: not-allowed; }
.ecfg-site-skip { border: 0; background: none; color: #6e757c; font-size: 12px; }

@media (max-width: 900px) {
  .ecfg-grid-3, .ecfg-grid-4, .ecfg-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecfg-plan-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ecfg-grid-3, .ecfg-grid-4, .ecfg-grid-6 { grid-template-columns: minmax(0, 1fr); }
  .ecfg-span-2 { grid-column: auto; }
  .ecfg-substitute { grid-template-columns: minmax(0, 1fr) 36px; }
}

/* Leva 3 (G8): Recursos Humanos (aviso de plano) na medida da captura de 1440 px: página inteira, colunas de 568 px, intervalo de 32 px. */
#view-root[data-view='human-resources'] .ecfg-page { max-width: none; gap: 17px; }
#view-root[data-view='human-resources'] .ecfg-alert { margin-top: 15px; min-height: 47px; padding-top: 0; padding-bottom: 0; }
#view-root[data-view='human-resources'] .ecfg-plan-grid { gap: 32px; }
#view-root[data-view='human-resources'] .ecfg-plan-grid > .stack { gap: 18px; }
#view-root[data-view='human-resources'] .ecfg-section-body { padding: 20px 20px 19px; }
#view-root[data-view='human-resources'] .ecfg-facts { flex-wrap: nowrap; gap: 0; margin-bottom: 17px; padding-bottom: 16px; border-bottom: 1px solid #dee2e6; }
#view-root[data-view='human-resources'] .ecfg-fact { gap: 1px; font-size: 14px; line-height: 20px; color: #6c757d; }
#view-root[data-view='human-resources'] .ecfg-fact strong { font-size: 14px; line-height: 20px; }
#view-root[data-view='human-resources'] .ecfg-fact:first-child { min-width: 157px; }
#view-root[data-view='human-resources'] .ecfg-fact + .ecfg-fact { min-width: 124px; padding-left: 16px; border-left: 1px solid #dee2e6; box-sizing: border-box; }
#view-root[data-view='human-resources'] .ecfg-facts:has(+ .ecfg-renewal) { margin-bottom: 9px; padding-bottom: 0; border-bottom: 0; }
#view-root[data-view='human-resources'] .ecfg-facts:has(+ .ecfg-renewal) .ecfg-fact:first-child { min-width: 192px; }
#view-root[data-view='human-resources'] .ecfg-facts:has(+ .ecfg-renewal) .ecfg-fact + .ecfg-fact { min-width: 117px; padding-left: 0; border-left: 0; }
#view-root[data-view='human-resources'] .ecfg-renewal { margin: 0 0 17px; padding-bottom: 17px; border-bottom: 1px solid #dee2e6; font-size: 14px; line-height: 20px; }
#view-root[data-view='human-resources'] .ecfg-invoice-table { table-layout: fixed; width: 100%; }
#view-root[data-view='human-resources'] .ecfg-invoice-table th:nth-child(1) { width: 25.8%; }
#view-root[data-view='human-resources'] .ecfg-invoice-table th:nth-child(2) { width: 18.1%; }
#view-root[data-view='human-resources'] .ecfg-invoice-table th:nth-child(3) { width: 26%; }
#view-root[data-view='human-resources'] .ecfg-invoice-table th:nth-child(4) { width: 17.5%; }

/* Leva 3 (G8): Criador de site, tamanhos de fonte conferidos pela largura do texto na captura (título 24, passo 20, rótulos e apoio 14,
   campos 16, botão 16, link 14). */
.ecfg-site-title { font-size: 24px; }
.ecfg-site-step { font-size: 20px; }
.ecfg-site-field strong { font-size: 14px; }
.ecfg-site-field small { max-width: 577px; font-size: 14px; }
.ecfg-site-field input, .ecfg-site-field textarea { font-size: 16px; }
.ecfg-site-next { font-size: 16px; }
.ecfg-site-skip { font-size: 14px; }
