﻿:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --ink: #111114;
  --muted: #70707a;
  --line: #e7e7eb;
  --dark: #0c0d10;
  --dark-2: #15171c;
  --gold: #c7a86b;
  --blue: #2563eb;
  --green: #15803d;
  --red: #b91c1c;
  --shadow: 0 18px 55px rgba(17, 17, 20, 0.08);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 16px;
  color: var(--muted);
}

.logo-temp,
.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #111114, #2a2c33);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: var(--shadow);
}

.logo-temp.small {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 14px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.login-hero {
  position: relative;
  overflow: hidden;
  padding: 72px;
  background:
    radial-gradient(circle at top right, rgba(199, 168, 107, 0.35), transparent 35%),
    linear-gradient(135deg, #0b0c10 0%, #17191f 45%, #07080a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.brand-pill {
  position: relative;
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  backdrop-filter: blur(14px);
}

.login-hero h1 {
  position: relative;
  font-size: clamp(58px, 8vw, 118px);
  line-height: 0.9;
  margin: 28px 0 18px;
  letter-spacing: -0.08em;
  font-weight: 650;
}

.login-hero p {
  position: relative;
  max-width: 620px;
  color: rgba(255,255,255,.72);
  font-size: 22px;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero-card {
  position: relative;
  margin-top: 42px;
  max-width: 520px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 6px;
}

.hero-card span {
  color: var(--gold);
  font-size: 13px;
}

.hero-card strong {
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 44px;
}

.login-card {
  width: min(100%, 440px);
  padding: 34px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-card h2 {
  margin: 24px 0 6px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
  transition: border .2s, box-shadow .2s;
}

input:focus,
select:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.btn-primary,
.btn-secondary,
.btn-dark,
.btn-ghost {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform .2s, opacity .2s, background .2s;
}

.btn-primary {
  background: #111114;
  color: #fff;
}

.btn-secondary {
  background: #ececf1;
  color: #111114;
}

.btn-dark {
  background: #111114;
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: #111114;
  border: 1px solid var(--line);
}

button:hover {
  transform: translateY(-1px);
}

.form-msg {
  min-height: 18px;
  color: var(--red);
  font-size: 13px;
  margin: 0;
}

.setup-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.setup-box summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 288px 1fr;
  transition: grid-template-columns .22s ease;
}

.shell.is-sidebar-collapsed {
  grid-template-columns: 86px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #0b0c10, #12141a);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand strong {
  display: block;
  letter-spacing: -0.03em;
}

.sidebar-brand span {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: 12px;
  margin-top: 2px;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

.shell.is-sidebar-collapsed .sidebar {
  padding-inline: 18px;
}

.shell.is-sidebar-collapsed .sidebar-brand {
  grid-template-columns: 1fr;
  justify-items: center;
}

.shell.is-sidebar-collapsed .sidebar-brand-text,
.shell.is-sidebar-collapsed .menu-item > span:not(.menu-icon),
.shell.is-sidebar-collapsed .menu-item em,
.shell.is-sidebar-collapsed .sidebar-footer {
  display: none;
}

.shell.is-sidebar-collapsed .menu-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 0;
}

.shell.is-sidebar-collapsed .sidebar-toggle {
  margin-top: 6px;
}

.menu {
  display: grid;
  gap: 7px;
}

.menu-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 0;
  border-radius: 14px;
  padding: 12px 12px;
  text-align: left;
}

.menu-item.is-active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.menu-item.is-disabled {
  opacity: .46;
}

.menu-item em {
  font-style: normal;
  font-size: 10px;
  color: var(--gold);
}

.menu-group {
  display: grid;
  gap: 6px;
}

.menu-group-title em {
  color: rgba(240, 207, 134, .9);
}

.menu-group:not(.is-open) .menu-subitems {
  display: none;
}

.menu-subitems {
  display: grid;
  gap: 5px;
  padding-left: 18px;
  margin: -2px 0 6px 0;
}

.menu-subitem {
  grid-template-columns: 18px 1fr auto;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.58);
}

.menu-subitem .menu-icon {
  opacity: .65;
}

.menu-subitem.is-active {
  color: #fff;
  background: rgba(240, 207, 134, .12);
}

.shell.is-sidebar-collapsed .menu-group .menu-subitems,
.shell.is-sidebar-collapsed .menu-group-title em {
  display: none;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  display: grid;
  gap: 2px;
}

.sidebar-footer span,
.sidebar-footer small {
  color: rgba(255,255,255,.52);
  font-size: 12px;
}

.sidebar-footer-link {
  width: fit-content;
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,.82);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.sidebar-footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: relative;
  top: auto;
  z-index: 1;
  background: rgba(245,245,247,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 22px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  color: var(--gold);
  margin: 0 0 4px;
  font-weight: 700;
}

.topbar h1 {
  margin: 0;
  letter-spacing: -0.05em;
  font-size: 32px;
  font-weight: 620;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.topbar-actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-height: 44px;
}

.topbar-actions.is-empty {
  min-width: 1px;
}

.topbar-actions .btn-primary,
.topbar-actions .btn-secondary,
.topbar-actions .btn-ghost,
.topbar-actions .btn-dark {
  white-space: nowrap;
}

.content {
  padding: 0 34px 34px;
}

.loading-card,
.error-box,
.empty-state,
.panel,
.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loading-card,
.error-box,
.empty-state {
  padding: 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  padding: 24px;
  display: grid;
  gap: 10px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 42px;
  letter-spacing: -0.06em;
  font-weight: 620;
}

.panel {
  margin-top: 22px;
  overflow: hidden;
}

.panel-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.panel-header h2 {
  margin: 0;
  letter-spacing: -0.04em;
  font-size: 24px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #fbfbfc;
}

td strong {
  display: block;
}

td small {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: #eeeeF3;
  color: var(--muted);
}

.status.ativo {
  background: #dcfce7;
  color: var(--green);
}

.status.inativo,
.status.bloqueado {
  background: #fee2e2;
  color: var(--red);
}

.status.em_breve,
.status.pendente {
  background: #fef3c7;
  color: #a16207;
}

.link-danger {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
}

.roadmap {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roadmap span {
  padding: 10px 13px;
  background: #f4f4f7;
  border-radius: 999px;
  color: #4b4b55;
}

.cards-list {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}

.profile-card h3,
.profile-card p {
  margin: 0;
}

.profile-card p {
  color: var(--muted);
  margin-top: 4px;
}

.config-list {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.config-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.config-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

code {
  background: #f4f4f7;
  padding: 8px 10px;
  border-radius: 10px;
  color: #333;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  align-content: center;
}

.empty-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #111114;
  color: #fff;
  font-size: 30px;
}

.empty-state h2 {
  margin: 18px 0 0;
  letter-spacing: -0.04em;
}

.empty-state p {
  max-width: 560px;
  color: var(--muted);
}

.modal {
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(92vw, 520px);
  padding: 26px;
  display: grid;
  gap: 14px;
}

.modal-card h3 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-hero {
    padding: 44px;
    min-height: 420px;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
}
/* =========================================================
   B4Y OS v1.01.04-M02 — Módulo 02: Contatos
   ========================================================= */
.contacts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.contacts-header-actions {
  justify-content: flex-end;
  margin-bottom: 16px;
}

.dashboard-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-grid.compact .metric-card {
  padding: 14px 16px;
  gap: 4px;
  min-height: 88px;
  border-radius: 18px;
}

.dashboard-grid.compact .metric-card span {
  font-size: 12px;
}

.dashboard-grid.compact .metric-card strong {
  font-size: 30px;
}

.contacts-panel {
  overflow: visible;
}

.contacts-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 18px 0;
  margin-bottom: 18px;
}

.contacts-toolbar label,
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contacts-toolbar span,
.contact-form label span,
.type-picker > span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contacts-toolbar input,
.contacts-toolbar select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.98);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 13px;
  outline: none;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.contacts-toolbar input:focus,
.contacts-toolbar select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(17, 24, 39, 0.35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.link-action {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.link-action:hover,
.link-danger:hover {
  text-decoration: underline;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  margin: 2px 3px 2px 0;
  white-space: nowrap;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 2px 2px;
  color: var(--muted);
  font-size: 13px;
}

.pagination-bar > div {
  display: flex;
  gap: 8px;
}

.pagination-bar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.contact-modal {
  width: min(1040px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  overflow: hidden;
}

.contact-modal::backdrop {
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(5px);
}

.contact-modal .modal-card {
  width: 100%;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.modal-title-row h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.form-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 18px;
  background: rgba(248, 250, 252, 0.55);
  margin: 16px 0;
}

.form-section h4 {
  margin: 0 0 14px;
  font-size: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.type-picker {
  margin-top: 15px;
}

.type-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
}

.check-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
}

.check-pill input {
  width: auto !important;
  margin: 0;
}

.check-pill span {
  color: var(--ink) !important;
  font-size: 12px !important;
}

.contact-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.contact-summary-grid > div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.76);
}

.contact-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.contact-summary-grid strong {
  font-size: 14px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-list > div {
  border-left: 3px solid rgba(15, 23, 42, 0.18);
  padding-left: 12px;
}

.history-list strong,
.history-list span {
  display: block;
}

.history-list span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.status.em_qualificacao {
  background: rgba(234, 179, 8, 0.12);
  color: #854d0e;
}

.status.bloqueado {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

@media (max-width: 1100px) {
  .dashboard-grid.compact,
  .contacts-toolbar,
  .form-grid,
  .contact-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contacts-toolbar .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .contacts-header,
  .pagination-bar,
  .modal-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-grid.compact,
  .contacts-toolbar,
  .form-grid,
  .contact-summary-grid {
    grid-template-columns: 1fr;
  }

  .contact-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .contact-modal .modal-card {
    max-height: calc(100dvh - 16px);
    padding: 18px;
  }
}

/* v1.01.04-M02 — perfis específicos de Construtor e Investidor */
.conditional-profile-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.conditional-profile-section.is-hidden {
  display: none;
}

.conditional-profile-section h4 {
  margin: 0 0 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field-help {
  min-height: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 2px;
}

.contact-summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 5px;
}


/* v1.01.04-M02 — grid, visualização e edição de perfis estratégicos */
.contacts-table th:nth-child(3),
.contacts-table td:nth-child(3) {
  min-width: 260px;
}

.strategic-profile-summary {
  display: grid;
  gap: 7px;
  min-width: 220px;
}

.strategic-profile-line {
  display: grid;
  gap: 2px;
}

.strategic-profile-line strong {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.strategic-profile-line span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.contact-view .form-section h4 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-view .contact-summary-grid strong .tag {
  margin-top: 0;
}


/* =========================================================
   B4Y OS v1.01.04-M02 — PRD v2 Contatos
   Grid limpa, visualização, edição e inativação
   ========================================================= */
.contacts-command-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.indicators-toggle {
  border-color: rgba(155, 126, 70, 0.35);
}

.btn-contact-primary,
.btn-primary.btn-contact-primary,
.contacts-command-bar .btn-contact-primary {
  background: #9B7E46;
  color: #fff;
  border-color: #9B7E46;
  box-shadow: 0 18px 35px rgba(155, 126, 70, 0.22);
}

.contacts-indicators.is-hidden {
  display: none;
}

.contacts-indicators .dashboard-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-toolbar-v2 {
  grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.contacts-table-prd th,
.contacts-table-prd td {
  vertical-align: middle;
}

.contacts-table-prd th:nth-child(1),
.contacts-table-prd td:nth-child(1) { width: 120px; }
.contacts-table-prd th:nth-child(2),
.contacts-table-prd td:nth-child(2) { min-width: 260px; }
.contacts-table-prd th:nth-child(3),
.contacts-table-prd td:nth-child(3) { min-width: 180px; }
.contacts-table-prd th:nth-child(4),
.contacts-table-prd td:nth-child(4) { width: 140px; }
.contacts-table-prd th:nth-child(5),
.contacts-table-prd td:nth-child(5) { width: 170px; }

.contact-click-row {
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.contact-click-row:hover,
.contact-click-row:focus {
  background: rgba(155, 126, 70, 0.08);
  outline: none;
}

.contact-code-cell,
.contact-code-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: -0.04em;
}

.contact-code-title {
  font-size: 34px !important;
  color: var(--ink);
}

.modal-header-actions,
.modal-actions-between,
.modal-actions-between > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-actions-between {
  justify-content: space-between;
}

.btn-danger-soft {
  border: 1px solid rgba(185, 28, 28, 0.20);
  background: rgba(254, 242, 242, 0.92);
  color: #b91c1c;
  border-radius: 14px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-danger-soft:hover {
  background: rgba(254, 226, 226, 0.98);
}

.form-collapse {
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  padding: 12px 14px;
}

.form-collapse summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
}

.collapse-content {
  margin-top: 14px;
}

.profile-multi-field {
  display: grid;
  gap: 8px;
}

.profile-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-option-help-list {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.profile-option-help-list small {
  line-height: 1.35;
}

.audit-footer {
  margin-top: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.confirm-card {
  max-width: 560px;
}

@media (max-width: 1100px) {
  .contacts-indicators .dashboard-grid.compact,
  .contacts-toolbar-v2 {
    grid-template-columns: 1fr 1fr;
  }
  .contacts-toolbar-v2 .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .contacts-command-bar,
  .modal-header-actions,
  .modal-actions-between,
  .modal-actions-between > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
  .contacts-indicators .dashboard-grid.compact,
  .contacts-toolbar-v2 {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   B4Y OS v1.01.13-M02 — Ajustes Contatos + Demanda de Compra
   ========================================================= */
.indicators-toggle,
#toggleContactIndicators {
  background: #bea36f !important;
  border-color: #bea36f !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(190, 163, 111, .22);
}

.contacts-command-bar {
  justify-content: flex-start;
}

.contacts-table-prd th,
.contacts-table-prd td {
  padding: 12px 14px;
}

.contacts-table-prd th:nth-child(4),
.contacts-table-prd td:nth-child(4) {
  width: 150px;
  padding-right: 24px;
}

.contacts-table-prd th:nth-child(5),
.contacts-table-prd td:nth-child(5) {
  width: 190px;
  padding-left: 24px;
}

.contacts-table-prd .level-cell,
.contacts-table-prd .updated-cell {
  font-size: 12px;
}

.contacts-table-prd .updated-cell {
  color: var(--muted);
}

.sort-th {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.sort-th:hover {
  color: #9B7E46;
}

.col-edit {
  width: 54px;
  text-align: center;
}

.icon-edit-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(155, 126, 70, .28);
  background: rgba(155, 126, 70, .10);
  color: #7a5f2d;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.icon-edit-btn:hover {
  background: #9B7E46;
  color: #fff;
}

.pagination-bar {
  padding-left: 20px !important;
  padding-right: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.pagination-bar > span {
  justify-self: start;
}

.pagination-bar > div {
  justify-self: center;
  grid-column: 2;
}

.form-collapse {
  border: 1px dashed rgba(155,126,70,.35);
  background: rgba(190, 163, 111, .08);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 16px 0;
}

.form-collapse summary {
  cursor: pointer;
  font-weight: 900;
  color: #7a5f2d;
}

.form-collapse .collapse-content {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(155,126,70,.18);
}

.conditional-profile-section,
.contact-view-card,
.demand-section {
  border: 1px solid rgba(155, 126, 70, .18);
  background: rgba(255, 255, 255, .72);
}

.form-section h4,
.conditional-profile-section h4,
.contact-view .form-section h4 {
  font-size: 21px !important;
  letter-spacing: -0.03em;
}

.profile-multi-field > span,
.inline-profile-behavior > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-option-help-list {
  display: none !important;
}

.contact-code-title {
  font-size: 45px !important;
}

.btn-edit-gold {
  background: #9B7E46 !important;
  border-color: #9B7E46 !important;
  color: #fff !important;
}

.confirm-modal .contact-modal,
.confirm-card-compact,
.confirm-card.confirm-card-compact {
  max-width: 520px !important;
}

.confirm-card-compact {
  width: min(92vw, 520px) !important;
  gap: 10px !important;
  padding: 22px !important;
}

.demand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.demand-picker {
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(248,250,252,.72);
}

.local-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.selected-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .07);
  font-size: 12px;
  font-weight: 800;
}

.selected-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  color: #7f1d1d;
}

.suggestions-box {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.suggestions-box button {
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  text-align: left;
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 700;
}

.suggestions-box button:hover {
  border-color: rgba(155,126,70,.35);
  background: rgba(190,163,111,.08);
}

@media (max-width: 860px) {
  .demand-grid,
  .pagination-bar {
    grid-template-columns: 1fr;
  }
  .pagination-bar > div {
    grid-column: auto;
    justify-self: center;
  }
}


/* B4Y OS v1.01.13-M02 — Autosuggest catálogo reutilizável */
.demand-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 20px;
}

.demand-role-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.demand-role-card h5 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.contact-summary-grid.compact {
  gap: 8px;
}

.contact-summary-grid.compact div {
  padding: 10px 12px;
}

.demand-autosuggest-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.b4y-autosuggest-catalog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  position: relative;
}

.catalog-field-head span {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: #666872;
  margin-bottom: 10px;
}

.catalog-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dedee5;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 13px;
  background: #fafafa;
}

.catalog-chip-new {
  border-color: rgba(190, 163, 111, .75);
  background: rgba(190, 163, 111, .12);
}

.catalog-chip em {
  font-style: normal;
  color: #8a6d32;
  font-size: 11px;
  text-transform: uppercase;
}

.catalog-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  color: #777985;
  padding: 0 2px;
}

.catalog-input-row input,
.catalog-create-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

.catalog-input-row input:focus,
.catalog-create-box input:focus {
  border-color: rgba(155, 126, 70, .55);
  box-shadow: 0 0 0 4px rgba(155, 126, 70, .12);
}

.catalog-suggestions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.catalog-suggestions button,
.catalog-empty {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}

.catalog-suggestions button {
  cursor: pointer;
}

.catalog-suggestions button:hover,
.catalog-add-new:hover {
  border-color: rgba(155, 126, 70, .55);
  background: #fbf8f1;
}

.catalog-suggestions small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.catalog-add-new {
  color: #7c5e22;
  font-weight: 800;
}

.catalog-create-box {
  margin-top: 10px;
  border: 1px dashed rgba(155, 126, 70, .55);
  background: #fffaf0;
  border-radius: 16px;
  padding: 12px;
}

.catalog-create-box label span {
  display: block;
  font-weight: 800;
  font-size: 12px;
  color: #666872;
  margin-bottom: 6px;
}

.catalog-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.catalog-error {
  display: block;
  color: #b91c1c;
  margin-top: 8px;
  font-weight: 700;
}

@media (max-width: 780px) {
  .demand-role-grid { grid-template-columns: 1fr; }
}

/* v1.01.13-M02 — Demanda de Compra por perfil */
.demand-profile-section {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.demand-profile-section > h5,
.demand-profile-detail > h5 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .01em;
}

.demand-context-block,
.demand-context-detail {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
}

.demand-context-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demand-context-head span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
}

.demand-context-head strong {
  font-size: 16px;
}

.demand-observation-field span {
  font-weight: 800;
}

.demand-profile-detail {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 780px) {
  .demand-profile-section,
  .demand-context-block,
  .demand-context-detail {
    padding: 12px;
  }
}


/* v1.01.13-M02 — Hotfix Demanda de Compra por perfil */
.demand-section.is-hidden,
.demand-profile-section.is-hidden {
  display: none !important;
}

.demand-section > h4 {
  margin-bottom: 8px;
}

.demand-context-block .demand-autosuggest-grid {
  margin-bottom: 0;
}

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

.catalog-suggestions:empty {
  display: none;
}


/* =========================================================
   B4Y OS v1.01.13-M02 — Ajustes UI Contatos
   ========================================================= */
#pageTitle {
  font-size: 50px !important;
  line-height: .92;
  letter-spacing: -0.06em;
}

.contacts-command-bar {
  justify-content: flex-end !important;
  width: 100%;
}

.contacts-toolbar.contacts-toolbar-v2 {
  padding-top: 25px !important;
}

.pagination-bar {
  padding-bottom: 16px !important;
}

.contact-code-cell {
  font-size: 12px !important;
  letter-spacing: -0.03em;
}

.contact-form .modal-title-row h3,
.contact-form-screen-title,
.contact-view .modal-title-row h3,
.contact-code-title {
  font-size: 40px !important;
  line-height: .94;
}

.contact-edit-top-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.contact-behavior-main {
  margin: 16px 0;
}

.field-alert-blink {
  animation: b4yFieldAlertBlink .62s ease-in-out 0s 4;
  border-radius: 16px;
}

@keyframes b4yFieldAlertBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .28); }
}

.field-alert-blink input,
.field-alert-blink select,
.field-alert-blink textarea {
  border-color: #ef4444 !important;
}

.contact-modal.confirm-modal {
  width: min(560px, calc(100vw - 28px)) !important;
  max-width: 560px !important;
}

.confirm-modal .modal-card,
.confirm-card-compact,
.confirm-card.confirm-card-compact {
  width: 100% !important;
  max-width: 520px !important;
}

@media (max-width: 720px) {
  #pageTitle { font-size: 40px !important; }
  .contact-form .modal-title-row h3,
  .contact-form-screen-title,
  .contact-view .modal-title-row h3,
  .contact-code-title { font-size: 34px !important; }
}


/* v1.01.13-M02 — Agrupamento lógico Perfil + Demanda por papel comercial */
.role-combo-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.role-combo-section {
  border-left: 4px solid #bea36f;
  background: rgba(255, 255, 255, 0.72);
}

.role-combo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.role-combo-header h4 {
  margin: 4px 0 4px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.role-combo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9b7e46;
  text-transform: uppercase;
}

.role-subcard {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}


.role-subcard.demand-profile-section {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.role-subcard-title {
  margin-bottom: 14px;
}

.role-subcard-title h5 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.role-subcard-title p {
  margin: 0;
}

.role-subcard .demand-context-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.role-subcard .demand-context-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.role-subcard .demand-observation-field {
  display: block;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .role-combo-header h4 {
    font-size: 32px;
  }

  .role-subcard {
    padding: 14px;
  }
}


/* v1.01.15-M02 — Destaques visuais da Demanda de Compra */
.role-subcard.demand-profile-section > .role-subcard-title,
.role-demand-subcard-title {
  margin-top: 28px;
}

.demand-context-head .demand-item-badge,
.demand-observation-field .demand-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0cba1;
  color: #3b2f18;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 8px;
}

.role-subcard .demand-context-block .b4y-autosuggest-catalog {
  background: #EBE6D156;
  border-color: rgba(59, 47, 24, 0.18);
}

.role-subcard .demand-context-block .catalog-input-row input,
.role-subcard .demand-context-block .catalog-create-box input {
  background: rgba(255, 255, 255, 0.88);
}

.role-subcard .demand-context-block .catalog-chip {
  background: rgba(255, 255, 255, 0.76);
}

.role-subcard .demand-context-block .catalog-suggestions button,
.role-subcard .demand-context-block .catalog-empty {
  background: rgba(255, 255, 255, 0.92);
}

[data-profile-help$=".poder_investimento"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding-left: 2px;
  clear: both;
}

.role-combo-section.is-hidden,
[data-role-block].is-hidden,
[data-demand-profile].is-hidden,
[data-profile-section].is-hidden {
  display: none !important;
}


/* v1.01.15-M02 — ajustes visuais e obrigatoriedade dos blocos Perfil/Demanda */
.role-subcard.conditional-profile-section {
  background: #EBE6D156;
}

.role-combo-header h4,
.role-subcard.conditional-profile-section .role-subcard-title h5 {
  font-size: 25px;
}


.role-subcard .demand-context-block .b4y-autosuggest-catalog {
  background: #EBE6D156;
  border-color: rgba(59, 47, 24, 0.14);
}

.role-subcard .demand-observation-field {
  margin-top: 28px;
}

.demand-observation-field > span {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.demand-observation-field .demand-item-badge {
  margin-right: 0;
}

.field-alert-blink .b4y-autosuggest-catalog,
.demand-context-block.field-alert-blink,
.b4y-autosuggest-catalog.field-alert-blink {
  outline: 2px solid rgba(239, 68, 68, 0.65);
  outline-offset: 3px;
}


/* v1.01.17-M02 — Cliente / Lead Comprador e Demanda CRM */
.cliente-lead-section {
  border-left-color: #9B7E46;
}

.cliente-lead-section .role-combo-header h4 {
  letter-spacing: -0.05em;
}

.cliente-lead-section .role-subcard-title h5,
.cliente-valores-section .role-subcard-title h5 {
  font-size: 25px;
}

.cliente-permuta-head {
  margin-bottom: 14px;
}

.cliente-lead-view-card {
  background: #EBE6D156;
}

.cliente-lead-section [data-demand-context="cliente_compra"] .b4y-autosuggest-catalog,
.cliente-lead-section [data-demand-context="cliente_permuta"] .b4y-autosuggest-catalog {
  background: #EBE6D156;
  border-color: rgba(59, 47, 24, 0.14);
}

.cliente-lead-section input[name^="cliente_valor"],
.cliente-lead-section input[name="cliente_fgts"],
.cliente-lead-section input[name="cliente_renda_aproximada"] {
  font-variant-numeric: tabular-nums;
}

/* v1.02.01-M03 — Módulo 03: Locais */
.locais-panel .table-wrap {
  overflow-x: auto;
}

.locais-table th,
.locais-table td {
  vertical-align: top;
}

.locais-table td:nth-child(3) strong,
.local-click-row td strong {
  display: block;
}

.locais-toolbar .check-inline-filter {
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.locais-toolbar .check-inline-filter span {
  margin-bottom: 0;
}

.local-modal .modal-card {
  max-width: min(1180px, calc(100vw - 36px));
}

.local-form #condominioSection.is-hidden {
  display: none;
}

.local-rel-list {
  display: grid;
  gap: 10px;
}

.local-rel-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 1fr) minmax(220px, 1.4fr) 80px minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.local-rel-row select,
.local-rel-row input {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.local-rel-view-list {
  display: grid;
  gap: 8px;
}

.local-rel-view-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.local-rel-view-item small,
.local-view .muted {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 920px) {
  .local-rel-row {
    grid-template-columns: 1fr;
  }
}

/* v1.02.01-M03 — UX por subtelas do Módulo Locais */
.locais-ux-panel {
  margin-bottom: 18px;
}

.locais-ux-header .muted {
  max-width: 920px;
}

.locais-submenu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.locais-subtab {
  border: 1px solid rgba(148, 163, 184, .25);
  background: rgba(15, 23, 42, .42);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text, #f8fafc);
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.locais-subtab:hover,
.locais-subtab.is-active {
  border-color: rgba(240, 207, 134, .7);
  background: rgba(240, 207, 134, .08);
  transform: translateY(-1px);
}

.locais-subtab strong {
  display: block;
  font-size: .98rem;
  margin-bottom: 6px;
}

.locais-subtab span {
  display: block;
  color: var(--muted, #94a3b8);
  font-size: .78rem;
  line-height: 1.35;
}

.locais-module-header {
  align-items: flex-start;
}

.composition-block {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, .28);
}

.composition-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.composition-head strong,
.composition-view-group strong {
  display: block;
  color: var(--text, #f8fafc);
  margin-bottom: 4px;
}

.composition-head small {
  color: var(--muted, #94a3b8);
}

.composition-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.composition-chip-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(240, 207, 134, .32);
  background: rgba(240, 207, 134, .08);
  border-radius: 999px;
  padding: 7px 10px;
}

.selected-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.composition-view-group {
  margin-bottom: 14px;
}

.local-form-ux .form-section h4 {
  letter-spacing: .01em;
}

@media (max-width: 1100px) {
  .locais-submenu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .composition-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .locais-submenu {
    grid-template-columns: 1fr;
  }
  .composition-add-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   B4Y OS v1.02.03-M03 — Padronização CRUD Locais conforme Tela Contatos
   ========================================================= */
.locais-panel.contatos-crud-like .panel-header {
  padding: 22px 22px 0;
  margin-bottom: 0;
}

.locais-toolbar-padronizada,
.contacts-toolbar.contacts-toolbar-v2.locais-toolbar-padronizada {
  grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) minmax(150px, 1fr) auto;
}

.locais-table-contato-like th,
.locais-table-contato-like td {
  vertical-align: middle;
}

.locais-table-contato-like th:nth-child(1),
.locais-table-contato-like td:nth-child(1) { width: 120px; }
.locais-table-contato-like th:nth-child(2),
.locais-table-contato-like td:nth-child(2) { min-width: 260px; }
.locais-table-contato-like th:nth-child(3),
.locais-table-contato-like td:nth-child(3) { width: 160px; }
.locais-table-contato-like th:nth-child(4),
.locais-table-contato-like td:nth-child(4) { width: 140px; }
.locais-table-contato-like th:nth-child(5),
.locais-table-contato-like td:nth-child(5) { width: 170px; }

.locais-table-contato-like td strong + small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.locais-table-contato-like .updated-cell {
  color: var(--muted);
  font-size: 12px;
}

.local-view .contact-summary-grid {
  margin-top: 18px;
}

.local-view .modal-title-row,
.local-form .modal-title-row {
  align-items: flex-start;
}

.local-form .modal-title-row h3,
.local-view .modal-title-row h3 {
  font-size: 40px !important;
  line-height: .94;
}

.local-form-ux .modal-actions {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding-top: 16px;
}

.composition-block {
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(255, 255, 255, 0.72);
}

.composition-head strong,
.composition-view-group strong {
  color: var(--ink);
}

.composition-head small {
  color: var(--muted);
}

.selected-chip {
  border-color: rgba(155, 126, 70, .28);
  background: rgba(155, 126, 70, .10);
  color: #7a5f2d;
}

@media (max-width: 1100px) {
  .contacts-toolbar.contacts-toolbar-v2.locais-toolbar-padronizada {
    grid-template-columns: 1fr 1fr;
  }
  .contacts-toolbar.contacts-toolbar-v2.locais-toolbar-padronizada .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .contacts-toolbar.contacts-toolbar-v2.locais-toolbar-padronizada {
    grid-template-columns: 1fr;
  }
  .local-form .modal-title-row h3,
  .local-view .modal-title-row h3 {
    font-size: 34px !important;
  }
}


/* =========================================================
   B4Y OS v1.02.06-M03 — Ajuste de busca, Cidades e Bairros
   ========================================================= */
.locais-table-compact th,
.locais-table-compact td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.locais-table-bairros-logradouros th,
.locais-table-bairros-logradouros td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.locais-module-header .muted {
  margin-top: 4px;
}


/* =========================================================
   B4Y OS v1.02.06-M03 — Ajustes finais Cidades/Bairros e grids Locais
   ========================================================= */
.locais-panel.contatos-crud-like {
  padding-top: 0;
}

.locais-panel.contatos-crud-like .panel-header {
  display: none;
}

.locais-table-estados-cidades {
  table-layout: fixed;
}

.locais-table-estados-cidades th:nth-child(1),
.locais-table-estados-cidades td:nth-child(1) { width: 116px; }
.locais-table-estados-cidades th:nth-child(2),
.locais-table-estados-cidades td:nth-child(2) { width: 34%; min-width: 220px; padding-right: 10px; }
.locais-table-estados-cidades th:nth-child(3),
.locais-table-estados-cidades td:nth-child(3) { width: 28%; min-width: 180px; padding-left: 8px; }
.locais-table-estados-cidades th:nth-child(4),
.locais-table-estados-cidades td:nth-child(4) { width: 120px; }
.locais-table-estados-cidades th:nth-child(5),
.locais-table-estados-cidades td:nth-child(5) { width: 150px; }
.locais-table-estados-cidades th:nth-child(6),
.locais-table-estados-cidades td:nth-child(6) { width: 54px; }

.locais-table-bairros-logradouros {
  table-layout: fixed;
}

.locais-table-bairros-logradouros th:nth-child(1),
.locais-table-bairros-logradouros td:nth-child(1) { width: 112px; }
.locais-table-bairros-logradouros th:nth-child(2),
.locais-table-bairros-logradouros td:nth-child(2) { width: 27%; min-width: 190px; padding-right: 10px; }
.locais-table-bairros-logradouros th:nth-child(3),
.locais-table-bairros-logradouros td:nth-child(3) { width: 31%; min-width: 230px; padding-left: 8px; }
.locais-table-bairros-logradouros th:nth-child(4),
.locais-table-bairros-logradouros td:nth-child(4) { width: 19%; min-width: 150px; }
.locais-table-bairros-logradouros th:nth-child(5),
.locais-table-bairros-logradouros td:nth-child(5) { width: 112px; }
.locais-table-bairros-logradouros th:nth-child(6),
.locais-table-bairros-logradouros td:nth-child(6) { width: 145px; }
.locais-table-bairros-logradouros th:nth-child(7),
.locais-table-bairros-logradouros td:nth-child(7) { width: 54px; }

.locais-table-bairros-logradouros th,
.locais-table-bairros-logradouros td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.local-observacoes-view {
  margin-top: 14px;
}

.local-observacoes-view > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.local-observacoes-view p {
  margin: 0;
}


/* =========================================================
   B4Y OS v1.02.08-M03 — Correção Nova Cidade estado_uf null
   ========================================================= */
.field-error {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.locais-table-condominios {
  table-layout: fixed;
}

.locais-table-condominios th:nth-child(1),
.locais-table-condominios td:nth-child(1) { width: 112px; }
.locais-table-condominios th:nth-child(2),
.locais-table-condominios td:nth-child(2) { width: 31%; min-width: 220px; padding-right: 8px; }
.locais-table-condominios th:nth-child(3),
.locais-table-condominios td:nth-child(3) { width: 24%; min-width: 170px; padding-left: 6px; }
.locais-table-condominios th:nth-child(4),
.locais-table-condominios td:nth-child(4) { width: 25%; min-width: 210px; }
.locais-table-condominios th:nth-child(5),
.locais-table-condominios td:nth-child(5) { width: 112px; }
.locais-table-condominios th:nth-child(6),
.locais-table-condominios td:nth-child(6) { width: 145px; }
.locais-table-condominios th:nth-child(7),
.locais-table-condominios td:nth-child(7) { width: 54px; }

/* =========================================================
   B4Y OS v1.02.10-M03 — Proximidades, filtros e Regiões
   ========================================================= */
.locais-table-regioes {
  table-layout: fixed;
}

.locais-table-regioes th:nth-child(1),
.locais-table-regioes td:nth-child(1) { width: 105px; }
.locais-table-regioes th:nth-child(2),
.locais-table-regioes td:nth-child(2) { width: 30%; min-width: 210px; padding-right: 8px; }
.locais-table-regioes th:nth-child(3),
.locais-table-regioes td:nth-child(3) { width: 30%; min-width: 230px; padding-left: 6px; }
.locais-table-regioes th:nth-child(4),
.locais-table-regioes td:nth-child(4) { width: 17%; min-width: 145px; }
.locais-table-regioes th:nth-child(5),
.locais-table-regioes td:nth-child(5) { width: 105px; }
.locais-table-regioes th:nth-child(6),
.locais-table-regioes td:nth-child(6) { width: 165px; min-width: 155px; }
.locais-table-regioes th:nth-child(7),
.locais-table-regioes td:nth-child(7) { width: 54px; }

.composition-head-autosuggest {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.composition-autosuggest {
  position: relative;
}

.composition-autosuggest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.composition-suggestions {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 6px;
  max-height: 220px;
  overflow: auto;
}

.composition-suggestions.is-hidden {
  display: none;
}

.composition-suggestions button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--ink);
}

.composition-suggestions button:hover {
  background: rgba(155, 126, 70, .10);
}

.composition-suggestions small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.proximidades-view-section .tag-list,
.nas-proximidades-section .composition-chip-list {
  margin-top: 8px;
}



/* v1.02.10-M03 — Autosuggest estilo Demanda de Compra para composição/proximidades */
.composition-autosuggest-demand-style .composition-head-autosuggest {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
}

.locais-composition-autosuggest {
  position: relative;
  padding: 10px;
}

.locais-composition-autosuggest .composition-chip-list {
  margin-bottom: 10px;
}

.locais-composition-autosuggest .catalog-input-row {
  display: block;
}

.locais-composition-autosuggest .catalog-input-row input {
  width: 100%;
}

.locais-composition-autosuggest .composition-suggestions {
  position: static;
  margin-top: 8px;
  max-height: 220px;
  box-shadow: none;
}

.locais-composition-autosuggest .composition-suggestions.is-hidden,
.locais-composition-autosuggest .composition-suggestions:empty {
  display: none;
}

@media (max-width: 1100px) {
  .composition-head-autosuggest {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .composition-autosuggest-row {
    grid-template-columns: 1fr;
  }
}


/* v1.04.00-M04 — Imóveis Base */
.imoveis-panel .contacts-toolbar-v2 {
  align-items: end;
}

.imoveis-table td,
.imoveis-table th {
  vertical-align: middle;
}

.imoveis-table td:nth-child(3) strong {
  display: block;
  max-width: 360px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-suspenso,
.status-indisponivel,
.publication-nao_publicado {
  background: rgba(160, 36, 36, 0.08);
  border-color: rgba(160, 36, 36, 0.22);
}

.status-vendido,
.publication-publicado {
  background: rgba(28, 116, 73, 0.08);
  border-color: rgba(28, 116, 73, 0.22);
}

.imovel-modal .modal-card {
  max-width: 1120px;
}

.imovel-form input[readonly] {
  opacity: 0.75;
  cursor: not-allowed;
}

.imovel-view .form-section p {
  white-space: pre-wrap;
}

/* v1.04.01-M04 — Indicadores em tela separada */
.indicators-page-panel {
  display: grid;
  gap: 18px;
}

.indicators-page-grid {
  margin-top: 4px;
}

.imoveis-indicadores-page .panel-header {
  align-items: flex-start;
}



/* v1.04.02-M04 — Grid, filtros e menu de imóveis */
.imoveis-filter-panel {
  margin-bottom: 18px;
}

.imoveis-filter-header,
.imoveis-grid-header {
  align-items: flex-start;
  gap: 16px;
}

.imoveis-toolbar-main {
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: end;
}

.imoveis-filter-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 32, 56, .08);
}

.imoveis-filter-extra.is-hidden {
  display: none;
}

.imoveis-grid-header {
  margin-bottom: 14px;
}

.imoveis-table .imovel-code-col {
  min-width: 112px;
  width: 112px;
  white-space: nowrap;
}

.imoveis-table .imovel-code-cell {
  letter-spacing: .02em;
}

.imovel-type-alias {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
}

.money-real-input {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .imoveis-toolbar-main {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   B4Y OS v1.04.03 — Layout global Sidebar/Tools/Commandbar
   ========================================================= */
.api-tools-panel .dashboard-grid.compact {
  margin-top: 16px;
}

.api-health-details {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.api-health-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* =========================================================
   B4Y OS v1.04.04 — Compactação geral, Grid Imóveis e Visualização
   ========================================================= */
.metric-card-version-wide {
  grid-column: span 2;
  min-width: 360px;
}

.metric-card-version-wide strong {
  font-size: 22px !important;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.imoveis-filter-panel-compact {
  margin-top: 0;
  margin-bottom: 12px;
}

.imoveis-filter-body {
  padding: 16px 18px 14px;
}

.imoveis-filter-eyebrow {
  margin: 0 0 8px;
}

.imoveis-filter-panel-compact .imoveis-toolbar-main {
  margin: 0;
}

.imoveis-more-filters-link,
.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 0;
  background: transparent;
  color: #9B7E46;
  font-weight: 750;
  padding: 7px 0 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}

.imoveis-more-filters-link:hover,
.text-link:hover {
  text-decoration: underline;
}

.imoveis-filter-panel-compact .imoveis-filter-extra {
  margin: 0 18px 16px;
  padding-top: 14px;
}

.imoveis-panel-compact {
  margin-top: 0;
}

.imoveis-panel-compact .table-wrap {
  padding-top: 0;
}

.imoveis-table.contacts-table th,
.imoveis-table.contacts-table td {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
  line-height: 1.25;
}

.imoveis-table .sort-th {
  font-size: 11px;
  letter-spacing: .02em;
}

.imoveis-table .status-pill {
  font-size: 10px;
  padding: 5px 8px;
  line-height: 1;
  white-space: nowrap;
}

.imoveis-table .imovel-code-col {
  min-width: 118px;
  width: 118px;
}

.imoveis-table .imovel-type-alias,
.imoveis-table .imovel-code-cell {
  font-size: 12px;
}

.imoveis-table .icon-edit-btn {
  width: 28px;
  height: 28px;
}

@media (max-width: 900px) {
  .metric-card-version-wide {
    grid-column: span 1;
    min-width: 0;
  }
}

/* =========================================================
   B4Y OS v1.04.05 — Polimento visual geral e imóveis
   ========================================================= */
.imoveis-panel-compact {
  border-radius: 28px;
  overflow: hidden;
}

.imoveis-panel-compact .imoveis-table-wrap {
  border-radius: inherit;
  overflow: auto;
  background: #fff;
}

.imoveis-table.contacts-table {
  border-collapse: separate;
  border-spacing: 0;
}

.imoveis-table.contacts-table thead th:first-child {
  border-top-left-radius: 28px;
}

.imoveis-table.contacts-table thead th:last-child {
  border-top-right-radius: 28px;
}

.imoveis-filter-panel-compact .imoveis-filter-body {
  padding-top: 14px;
}

.imoveis-filter-panel-compact .imoveis-filter-eyebrow {
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: .08em;
}

.imoveis-filter-panel-compact .imoveis-toolbar-main {
  padding-top: 0 !important;
  row-gap: 8px;
}

.imoveis-filter-panel-compact .imoveis-more-filters-link {
  padding-top: 5px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .01em;
  color: rgba(91, 75, 52, .82);
}

.sidebar-brand-text span {
  display: none;
}

/* =========================================================
   B4Y OS v1.04.06 — Espaçamentos do Grid de Imóveis e Indicadores
   ========================================================= */
.imoveis-filter-panel-compact .search-field span {
  display: inline-block;
  padding-top: 10px;
}

.imoveis-table.contacts-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.imoveis-filter-panel-compact .imoveis-more-filters-link {
  padding-left: 20px;
}

.dashboard-grid.compact.indicators-page-grid {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

/* v1.04.07 — Imóveis: proprietário e localização */
.single-suggest-label {
  position: relative;
}

.b4y-single-suggest {
  position: relative;
}

.single-suggest-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.single-suggest-row input[data-suggest-input] {
  flex: 1;
}

.single-suggest-clear {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 400;
  padding-left: 4px;
  padding-right: 4px;
}

.single-suggest-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(28, 34, 48, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(22, 25, 34, 0.14);
}

.single-suggest-results button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.single-suggest-results button:hover {
  background: rgba(190, 145, 68, 0.10);
}

.single-suggest-results small {
  color: #7b8190;
  font-size: 0.74rem;
}

.imovel-local-cell {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imovel-location-section .form-grid,
.imovel-location-view-section .contact-summary-grid {
  margin-top: 10px;
}


/* =========================================================
   B4Y OS v1.04.08 — Espaçamentos finais do Cadastro de Imóveis
   ========================================================= */
.imoveis-filter-panel-compact .search-field span {
  display: inline-block;
  padding-top: 10px;
}

.imoveis-table.contacts-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.imoveis-filter-panel-compact .imoveis-more-filters-link {
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 15px;
}

.dashboard-grid.compact.indicators-page-grid {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

/* ============================================================
   B4Y OS v1.04.09 — Perfil de negócio do contato e matching base
   ============================================================ */
.contact-business-profile-section .field-help {
  display: block;
  margin: 6px 0 10px;
  font-weight: 400;
  color: var(--muted, #6b7280);
}

.contact-linked-properties-section .linked-properties-list {
  display: grid;
  gap: 10px;
}

.linked-property-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.linked-property-card div {
  display: grid;
  gap: 2px;
}

.linked-property-card span {
  font-size: 0.92rem;
  font-weight: 600;
}

.linked-property-card small {
  font-size: 0.78rem;
  color: var(--muted, #6b7280);
}


/* v1.04.10 — Composição de valor bidirecional */
.contact-composition-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.composition-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.composition-direction-card,
.composition-view-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.composition-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.composition-check-pill span {
  font-size: 0.82rem;
}

.composition-extra-grid {
  gap: 12px;
}

.compact-summary-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.muted-card {
  background: rgba(248, 250, 252, 0.8);
}

@media (max-width: 980px) {
  .composition-direction-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.04.12 — regras semânticas de composição de valor do contato */
.contact-composition-section .is-hidden,
.composition-direction-card.is-hidden {
  display: none !important;
}

/* v1.04.13 — Abas do cadastro de contato e regras de perfil comercial */
/* v1.04.14 — Layout das abas em padrão nav-tabs */
.contact-business-tabs {
  margin: 16px 0 4px;
}


.contact-inline-business-profile {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-behavior-tab-section .contact-behavior-main {
  margin-top: 10px;
}

.contact-behavior-tab-section .contact-behavior-main > span {
  display: none;
}

.contact-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-end;
  padding: 0 0 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 0;
  background: transparent;
}

.contact-tab-btn {
  position: relative;
  margin: 0 2px -1px 0;
  border: 1px solid transparent;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: #000;
  padding: 12px 18px 11px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.contact-tab-btn:hover {
  background: rgba(248, 250, 252, 0.88);
  border-color: rgba(203, 213, 225, 0.72) rgba(203, 213, 225, 0.72) rgba(148, 163, 184, 0.38);
  color: #7a5f2d;
}

.contact-tab-btn.is-active {
  background: #fff;
  color: #7a5f2d;
  border-color: rgba(203, 213, 225, 0.9) rgba(203, 213, 225, 0.9) #fff;
  box-shadow: none;
  font-weight: 500;
}

.contact-tab-btn.is-hidden,
.contact-tab-panel.is-hidden {
  display: none !important;
}

.contact-tab-panels {
  margin-top: 0;
  padding-top: 16px;
}

.contact-tab-panel > .form-section:first-child,
.contact-tab-panel > .role-combo-wrap:first-child {
  margin-top: 0;
}

.profile-rule-modal .confirm-card strong {
  display: block;
  line-height: 1.45;
}

#proprietarioRoleBlock .compact-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#proprietarioRoleBlock .muted-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 14px;
}

#proprietarioRoleBlock .muted-card span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: 6px;
}

#proprietarioRoleBlock .muted-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  
.contact-inline-business-profile {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-behavior-tab-section .contact-behavior-main {
  margin-top: 10px;
}

.contact-behavior-tab-section .contact-behavior-main > span {
  display: none;
}

.contact-tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 10px;
    scrollbar-width: thin;
  }
  .contact-tab-btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    text-align: center;
    padding-left: 14px;
    padding-right: 14px;
  }
  #proprietarioRoleBlock .compact-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.04.16-M02 — Contato: limpeza das abas e editor do Perfil Comportamental */
.form-collapse summary {
  font-weight: 500 !important;
  letter-spacing: 0.01em;
}

.contact-behavior-tab-section h4,
.contact-composition-section h4 {
  text-transform: none;
}

.rich-text-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.rich-text-field > span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rich-text-toolbar button {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.rich-text-toolbar button:hover {
  border-color: rgba(122, 95, 45, 0.55);
  color: #7a5f2d;
  background: rgba(250, 247, 241, 0.9);
}

.rich-text-editor {
  min-height: 126px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
  line-height: 1.55;
  color: #111827;
  outline: none;
}

.rich-text-editor:focus {
  border-color: rgba(122, 95, 45, 0.65);
  box-shadow: 0 0 0 3px rgba(122, 95, 45, 0.11);
}

.rich-text-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(100, 116, 139, 0.72);
}

.rich-text-view {
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
  padding: 13px 14px;
  line-height: 1.55;
}

/* v1.04.19 — Tipo único, info contextual e matching base */
.contact-type-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.info-icon-button {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(122, 95, 45, 0.35);
  background: rgba(240, 207, 134, 0.16);
  color: #7a5f2d;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-icon-button:hover {
  background: rgba(240, 207, 134, 0.28);
}

.contact-type-single-picker .check-pill input[type="radio"] {
  accent-color: #7a5f2d;
}

.contact-type-selected-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-type-selected-hint strong {
  color: #7a5f2d;
}

.contact-type-selected-hint.is-empty strong {
  color: #111827;
}

.contact-type-info-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.contact-type-info-list article {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-type-info-list strong {
  display: block;
  color: #7a5f2d;
  margin-bottom: 3px;
}

.contact-type-info-list span {
  color: #475569;
  font-size: 0.9rem;
}

.proprietario-accepted-asset-card {
  margin-top: 12px;
  background: rgba(255, 251, 235, 0.42);
}

/* v1.04.20 — Contato / Construtor: perfil, imóveis aceitos e recursos financeiros */
.type-picker.contact-type-single-picker {
  margin-top: 30px;
}

.construtor-build-profile-card,
#construtorImoveisAceitaRoleBlock .role-subcard {
  margin-top: 18px;
}

.construtor-aceita-limits-grid {
  margin-top: 14px;
}

/* =========================================================
   B4Y OS v1.04.29-M03-M04 — Logradouros Hotfix UX Autosuggest
   ========================================================= */
.logradouro-preview-nome-completo {
  margin: 2px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
}

.logradouro-form-ux .logradouro-identificacao-grid {
  grid-template-columns: minmax(120px, 0.6fr) minmax(260px, 2.4fr) minmax(0, 1fr);
}

.logradouro-form-ux .logradouro-tipo-field {
  grid-column: span 1;
}

.logradouro-form-ux .logradouro-nome-field {
  grid-column: span 2;
}

.logradouro-form-ux .readonly-field,
.logradouro-form-ux input[readonly] {
  background: rgba(241, 245, 249, 0.9);
  color: #475569;
  cursor: not-allowed;
}

.logradouro-form-ux .field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.logradouro-options-toggle {
  display: inline-flex;
  margin-top: 0px;
  padding: 0 0 0 15px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}

.logradouro-opcoes-avancadas {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(17, 24, 39, 0.14);
}

.logradouro-opcoes-avancadas.is-hidden,
.single-suggest-results.is-hidden {
  display: none !important;
}

.logradouro-regiao-box input[data-suggest-input] {
  margin-top: 8px;
}

.logradouro-region-chip-list {
  margin-top: 8px;
  min-height: 28px;
}

.logradouro-regiao-box .single-suggest-label {
  display: block;
}

@media (max-width: 900px) {
  .logradouro-form-ux .logradouro-identificacao-grid {
    grid-template-columns: 1fr;
  }
  .logradouro-form-ux .logradouro-tipo-field,
  .logradouro-form-ux .logradouro-nome-field {
    grid-column: 1 / -1;
  }
}


/* =========================================================
   B4Y OS v1.04.27-M03-M04 — Logradouros polimento UX e grid
   ========================================================= */
.locais-table-logradouros.contacts-table th,
.locais-table-logradouros.contacts-table td {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
  line-height: 1.25;
}

.locais-table-logradouros .sort-th {
  font-size: 11px;
  letter-spacing: .02em;
}

.locais-table-logradouros .status,
.locais-table-logradouros .status-pill {
  font-size: 10px;
  padding: 5px 8px;
  line-height: 1;
  white-space: nowrap;
}

.locais-table-logradouros .contact-code-cell,
.locais-table-logradouros td small {
  font-size: 12px;
}

.locais-table-logradouros .icon-edit-btn {
  width: 28px;
  height: 28px;
}

.locais-table-logradouros {
  table-layout: fixed;
}

.locais-table-logradouros th:nth-child(1),
.locais-table-logradouros td:nth-child(1) { width: 118px; }
.locais-table-logradouros th:nth-child(2),
.locais-table-logradouros td:nth-child(2) { width: 28%; min-width: 220px; }
.locais-table-logradouros th:nth-child(3),
.locais-table-logradouros td:nth-child(3) { width: 112px; }
.locais-table-logradouros th:nth-child(4),
.locais-table-logradouros td:nth-child(4) { width: 17%; min-width: 150px; }
.locais-table-logradouros th:nth-child(5),
.locais-table-logradouros td:nth-child(5) { width: 16%; min-width: 140px; }
.locais-table-logradouros th:nth-child(6),
.locais-table-logradouros td:nth-child(6) { width: 20%; min-width: 170px; }
.locais-table-logradouros th:nth-child(7),
.locais-table-logradouros td:nth-child(7) { width: 92px; }
.locais-table-logradouros th:nth-child(8),
.locais-table-logradouros td:nth-child(8) { width: 54px; }

/* =========================================================
   B4Y OS v1.04.30-M03-M04 — Logradouros filtros e criação rápida
   ========================================================= */
.catalog-create-option {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: var(--gold);
  font-size: 13px;
  font-weight: 400;
}

.catalog-create-option:hover {
  background: rgba(184, 134, 11, 0.08);
}

.quick-create-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.34);
  border-radius: inherit;
}

.quick-create-card {
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.quick-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.quick-create-form label,
.quick-create-form .wide,
.quick-create-form .modal-actions,
.quick-create-form .form-msg {
  grid-column: 1 / -1;
}

.quick-create-form label:not(.wide) {
  grid-column: span 1;
}

@media (max-width: 700px) {
  .quick-create-form label:not(.wide) {
    grid-column: 1 / -1;
  }
}

#logradouroDialog {
  position: relative;
}

/* =========================================================
   B4Y OS v1.04.32-M03-M04 — Logradouros grid e filtro bairro
   ========================================================= */
.contacts-toolbar.contacts-toolbar-v2.locais-toolbar-padronizada.locais-toolbar-logradouros {
  grid-template-columns: minmax(320px, 1fr) minmax(140px, 160px) auto;
  align-items: end;
}

.locais-toolbar-logradouros .search-field {
  min-width: 0;
}

.locais-filter-extra-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.locais-filter-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

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

@media (max-width: 900px) {
  .contacts-toolbar.contacts-toolbar-v2.locais-toolbar-padronizada.locais-toolbar-logradouros {
    grid-template-columns: 1fr auto;
  }
  .locais-toolbar-logradouros .search-field {
    grid-column: 1 / -1;
  }
  .locais-filter-extra {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contacts-toolbar.contacts-toolbar-v2.locais-toolbar-padronizada.locais-toolbar-logradouros {
    grid-template-columns: 1fr;
  }
  .locais-filter-extra-toggle,
  .locais-toolbar-logradouros #localFilterBtn {
    width: 100%;
  }
}


/* =========================================================
   B4Y OS v1.04.33-M03-M04-Logradouros-Grid-Cabecalho-Cidade — Grid Logradouros cabeçalho e Cidade
   ========================================================= */
.locais-table-logradouros th,
.locais-table-logradouros .sort-th {
  text-transform: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.locais-table-logradouros th:nth-child(1),
.locais-table-logradouros td:nth-child(1) { width: 92px; }
.locais-table-logradouros th:nth-child(2),
.locais-table-logradouros td:nth-child(2) { width: 30%; min-width: 250px; }
.locais-table-logradouros th:nth-child(3),
.locais-table-logradouros td:nth-child(3) { width: 240px; min-width: 220px; }
.locais-table-logradouros th:nth-child(4),
.locais-table-logradouros td:nth-child(4) { width: 210px; min-width: 190px; }
.locais-table-logradouros th:nth-child(5),
.locais-table-logradouros td:nth-child(5) { width: 170px; min-width: 150px; }
.locais-table-logradouros th:nth-child(6),
.locais-table-logradouros td:nth-child(6) { width: 120px; min-width: 110px; }
.locais-table-logradouros th:nth-child(7),
.locais-table-logradouros td:nth-child(7) { width: 100px; min-width: 92px; }
.locais-table-logradouros th:nth-child(8),
.locais-table-logradouros td:nth-child(8) { width: 54px; min-width: 54px; }


/* v1.04.35-M04 — Rascunho privado */
.publication-rascunho {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.22);
}
.publication-minimo {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.28);
}
.publication-completo {
  background: rgba(28, 116, 73, 0.08);
  border-color: rgba(28, 116, 73, 0.22);
}
.imovel-draft-note {
  margin: -2px 0 14px;
}

/* v1.04.36-M04-Imoveis-PreCadastro-Modal */
.imovel-pre-cadastro-modal .modal-card,
.imovel-pre-cadastro-alerta-modal .modal-card {
  max-width: 720px;
}

.imovel-pre-cadastro-section .form-grid {
  gap: 14px;
}

.imovel-second-contact-link {
  margin-top: 12px;
  padding-left: 0;
  font-weight: 600;
}

.imovel-second-contact-fields {
  margin-top: 12px;
}

.imovel-pre-cadastro-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  font-size: 0.9rem;
  color: var(--muted, #64748b);
  background: rgba(15, 23, 42, 0.03);
}

.imovel-alert-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.imovel-alert-box p {
  margin: 6px 0 0;
}

.imovel-pre-cadastro-result-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.imovel-pre-cadastro-result-item {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.imovel-pre-cadastro-result-item span,
.imovel-pre-cadastro-result-item small {
  color: var(--muted, #64748b);
}

.imovel-fluxo-preparado-modal .confirm-card {
  max-width: 560px;
}

/* v1.05.00-M05 — CRM Núcleo de Atendimento */
.crm-filter-panel .crm-toolbar label { min-width: 160px; }
.crm-indicators { margin-bottom: 14px; }
.crm-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.crm-table .danger-text { color: #b42318; font-weight: 700; }
.crm-pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.crm-task-list { display: grid; gap: 10px; }
.crm-task-card { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: #fff; cursor: pointer; }
.crm-task-card strong { display: block; color: var(--text); }
.crm-task-card small { display: block; color: var(--muted); margin-top: 4px; }
.crm-task-card.is-overdue { border-color: #f5b5ae; background: #fff7f6; }
.crm-workspace-panel .form-section { margin-top: 14px; }
.crm-modal .modal-card { max-width: min(1100px, calc(100vw - 32px)); }
.crm-view .contact-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .crm-task-card { grid-template-columns: 1fr; }
  .crm-view .contact-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* v1.05.01-M05 — CRM Views Atendimentos */
.crm-views-panel { overflow: hidden; }
.crm-views-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 0 0 14px; }
.crm-views-header h2 { margin: 3px 0 0; font-size: 18px; }
.crm-views-bar { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: rgba(15, 23, 42, 0.03); }
.crm-view-tab { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.crm-view-tab.is-active { background: #fff; color: var(--text); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); }
.crm-view-wrap { min-height: 240px; }
.crm-kanban-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; }
.crm-kanban-column { border: 1px solid var(--border); border-radius: 18px; background: rgba(248, 250, 252, 0.85); padding: 10px; min-height: 260px; }
.crm-kanban-column-head, .crm-group-head, .crm-agenda-date { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.crm-kanban-column-head span, .crm-group-head span, .crm-agenda-date span { color: var(--muted); font-size: 12px; font-weight: 700; }
.crm-kanban-cards { display: grid; gap: 10px; }
.crm-empty-column { font-size: 12px; padding: 8px; }
.crm-mini-card { display: grid; gap: 7px; border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 12px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.crm-mini-card:hover, .crm-mini-card:focus { transform: translateY(-1px); border-color: rgba(15, 23, 42, 0.20); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08); outline: none; }
.crm-mini-card.is-overdue { border-color: #f5b5ae; background: #fff7f6; }
.crm-mini-card-top, .crm-mini-meta, .crm-mini-badges { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.crm-mini-card h4 { margin: 0; font-size: 15px; }
.crm-mini-card p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.35; }
.crm-mini-card small, .crm-mini-card-top span, .crm-mini-meta { color: var(--muted); font-size: 11px; }
.crm-pendencias-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.crm-pendencia-box { border: 1px solid var(--border); border-radius: 18px; padding: 14px; background: #fff; }
.crm-pendencia-box.is-danger { border-color: rgba(180, 35, 24, 0.22); background: rgba(255, 247, 246, 0.75); }
.crm-agenda-list { display: grid; gap: 14px; }
.crm-agenda-day { border: 1px solid var(--border); border-radius: 18px; padding: 14px; background: #fff; }
.crm-view-footer { margin-top: 12px; }
@media (max-width: 900px) {
  .crm-views-header { align-items: stretch; flex-direction: column; }
  .crm-views-bar { width: 100%; overflow-x: auto; justify-content: flex-start; border-radius: 16px; }
  .crm-pendencias-layout { grid-template-columns: 1fr; }
  .crm-kanban-board { grid-auto-columns: minmax(240px, 86vw); }
}

/* v1.05.02-M02-M05 — Contatos pós-cadastro + direcionamento CRM/Imóvel */
.contact-crm-m05-notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.78);
  color: var(--text);
}
.contact-crm-m05-notice strong { display: block; margin-bottom: 4px; }
.contact-crm-m05-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.contato-pos-cadastro-card { max-width: 560px; }
.contato-pos-cadastro-next-step {
  margin: 14px 0 6px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
}
.contato-pos-cadastro-next-step strong { display: block; margin-bottom: 4px; }
.contato-pos-cadastro-next-step p { margin: 0; color: var(--muted); line-height: 1.45; }

/* v1.05.03-M05 — CRM UX Atendimentos/Form */
.crm-filter-panel-v2 .imoveis-filter-body { display: grid; gap: 12px; }
.crm-filter-main-row { display: grid; grid-template-columns: minmax(260px, 1fr) 160px 120px; gap: 12px; align-items: end; }
.crm-filter-main-row .crm-search-label { min-width: 0; }
.crm-filter-main-row .crm-search-btn,
.crm-filter-main-row .crm-more-filters-btn { min-height: 48px; }
.crm-filter-extra-row { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; align-items: end; padding-top: 2px; }
.crm-filter-extra-row.is-hidden { display: none; }
.crm-indicators-compact { margin: 10px 0 14px; }
.crm-indicators-compact .dashboard-grid.compact { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; }
.crm-indicators-compact .metric-card,
.crm-indicators-compact .metric-card-compact { min-height: 72px; padding: 12px 14px; border-radius: 18px; }
.crm-indicators-compact .metric-card span,
.crm-indicators-compact .metric-card-compact span { font-size: 12px; line-height: 1.2; }
.crm-indicators-compact .metric-card strong,
.crm-indicators-compact .metric-card-compact strong { font-size: 26px; line-height: 1; margin-top: 6px; }
.crm-views-panel { overflow: hidden; max-width: 100%; }
.crm-view-wrap { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.crm-view-wrap.crm-view-kanban { padding-bottom: 4px; }
.crm-view-wrap.crm-view-kanban .crm-view-footer { min-width: 100%; width: max-content; }
.crm-kanban-board { display: flex; align-items: stretch; gap: 12px; width: max-content; min-width: 100%; max-width: none; overflow: visible; padding: 4px 2px 12px; }
.crm-kanban-column { flex: 0 0 260px; max-width: 260px; min-height: 250px; }
.crm-kanban-column-head strong { font-size: 15px; line-height: 1.2; }
.crm-autosuggest-field { position: relative; display: grid; gap: 8px; }
.crm-autosuggest-field label { margin: 0; }
.crm-autosuggest-list { position: absolute; z-index: 60; top: 76px; left: 0; right: 0; max-height: 280px; overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(15, 23, 42, .14); padding: 6px; }
.crm-autosuggest-list.is-hidden { display: none; }
.crm-autosuggest-option,
.crm-autosuggest-empty { width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer; display: grid; gap: 3px; color: var(--text); }
.crm-autosuggest-option:hover,
.crm-autosuggest-empty:hover { background: rgba(15, 23, 42, .05); }
.crm-autosuggest-option strong { font-size: 14px; }
.crm-autosuggest-option small { color: var(--muted); font-size: 12px; }
.crm-autosuggest-loading { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.crm-selected-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(171, 134, 75, .35); background: rgba(171, 134, 75, .08); border-radius: 14px; padding: 8px 10px; font-size: 13px; }
.crm-selected-chip.is-hidden { display: none; }
.crm-quick-lead-btn { justify-self: start; min-height: 36px; padding: 7px 10px; }
.crm-modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 14px; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 16px; }
.crm-modal-footer .form-msg { margin-right: auto; }
.crm-quick-lead-form { max-width: min(760px, calc(100vw - 32px)); }
.status-pill.prio-urgente { border-color: rgba(180, 35, 24, .28); background: rgba(180, 35, 24, .10); color: #b42318; }
@media (max-width: 1100px) {
  .crm-indicators-compact .dashboard-grid.compact { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .crm-filter-extra-row { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
@media (max-width: 760px) {
  .crm-filter-main-row { grid-template-columns: 1fr; }
  .crm-filter-extra-row { grid-template-columns: 1fr; }
  .crm-indicators-compact .dashboard-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-kanban-column { flex-basis: 82vw; max-width: 82vw; }
  .crm-modal-footer { flex-direction: column; align-items: stretch; }
  .crm-modal-footer .form-msg { margin-right: 0; }
}


/* ============================================================
   v1.05.04 — Templates oficiais de autosuggest B4Y OS
   ============================================================ */
.tools-templates-panel .panel-header { margin-bottom: 18px; }
.tools-template-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.tools-template-rule-card { border: 1px solid var(--border); background: rgba(248, 250, 252, .9); border-radius: 18px; padding: 14px; display: grid; gap: 6px; }
.tools-template-rule-card strong { font-size: 14px; color: var(--text); }
.tools-template-rule-card span { font-size: 13px; color: var(--muted); }
.tools-template-rule-card code,
.tools-template-table code { color: var(--gold); font-weight: 800; }
.tools-template-table-wrap { margin-top: 10px; }
.tools-template-table td { vertical-align: top; line-height: 1.45; }
.tools-template-demo-section { margin-top: 18px; }

.b4y-autosuggest-field { position: relative; display: grid; gap: 8px; width: 100%; }
.b4y-autosuggest-label { color: var(--muted); font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.b4y-autosuggest-line { display: flex; align-items: center; gap: 10px; width: 100%; }
.b4y-autosuggest-input { width: 100%; min-height: 54px; border: 1px solid var(--border); border-radius: 18px; background: rgba(248, 250, 252, .86); color: var(--text); font: inherit; padding: 0 16px; outline: none; transition: box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.b4y-autosuggest-input:focus { background: #fff; border-color: rgba(168, 132, 69, .4); box-shadow: 0 0 0 4px rgba(168, 132, 69, .15); }
.b4y-autosuggest-clear { border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: 14px; padding: 6px 4px; white-space: nowrap; }
.b4y-autosuggest-clear:hover { text-decoration: underline; }
.b4y-autosuggest-dropdown { position: absolute; z-index: 75; top: calc(100% + 8px); left: 0; right: 0; max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(15, 23, 42, .14); padding: 0; }
.b4y-autosuggest-dropdown.is-hidden { display: none; }
.b4y-autosuggest-empty { padding: 14px 16px; color: var(--muted); border-bottom: 1px solid rgba(226, 232, 240, .75); }
.b4y-autosuggest-option,
.b4y-autosuggest-add { width: 100%; border: 0; background: #fff; text-align: left; padding: 13px 16px; display: grid; gap: 3px; cursor: pointer; color: var(--text); font: inherit; }
.b4y-autosuggest-option:hover,
.b4y-autosuggest-add:hover { background: rgba(15, 23, 42, .04); }
.b4y-autosuggest-option strong { font-size: 14px; }
.b4y-autosuggest-option small { color: var(--muted); font-size: 12px; }
.b4y-autosuggest-add { color: var(--gold); font-weight: 300; font-size: 14px; }
.b4y-autosuggest-selected { min-height: 22px; color: var(--text); font-size: 14px; }
.b4y-autosuggest-selected.is-muted { color: var(--muted); }
.b4y-chip-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.b4y-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: #f3f4f6; border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 700; }
.b4y-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.b4y-chip button:hover { color: var(--text); }

@media (max-width: 980px) {
  .tools-template-rule-grid { grid-template-columns: 1fr; }
}

/* v1.05.05-M02-M04-M05 — CRM grid clean + autosuggest padrão */
.contato-pos-cadastro-card-v2 { max-width: min(760px, calc(100vw - 32px)); }
.contato-pos-cadastro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: stretch; margin-top: 14px; }
.contato-pos-cadastro-card-v2 .contato-pos-cadastro-next-step { margin: 0; }
.contato-pos-cadastro-action-block { border: 1px solid rgba(148, 163, 184, .24); border-radius: 16px; background: rgba(248, 250, 252, .82); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.contato-pos-cadastro-action-block .btn-primary,
.contato-pos-cadastro-action-block .btn-ghost { width: 100%; justify-content: center; }

.imoveis-filter-panel-compact .imoveis-more-filters-link,
.crm-filter-panel-v2 .imoveis-more-filters-link { padding-left: 20px; color: #c7a864; }

.tools-template-table-v2 { min-width: 980px; }
.tools-template-table-v2 th { font-size: 11px; }
.tools-template-table-v2 td { font-size: 12px; line-height: 1.35; }
.tools-template-table-v2 td:nth-child(2),
.tools-template-table-v2 td:nth-child(3),
.tools-template-table-v2 td:nth-child(4) { color: var(--muted); }
.tools-template-table-v2 td:last-child { width: 260px; }
.tools-template-preview-cell { min-width: 220px; }
.tools-template-preview-cell .b4y-autosuggest-label { font-size: 11px; }
.tools-template-preview-input { display: flex; align-items: center; min-height: 38px; flex: 1; border: 1px solid var(--border); border-radius: 14px; background: rgba(248, 250, 252, .86); padding: 0 12px; color: var(--muted); }
.tools-template-preview-clear { color: var(--gold); font-size: 12px; white-space: nowrap; }
.tools-template-preview-dropdown { margin-top: 6px; border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.tools-template-preview-dropdown span,
.tools-template-preview-dropdown strong { display: block; padding: 9px 12px; font-size: 12px; }
.tools-template-preview-dropdown span { color: var(--muted); border-bottom: 1px solid rgba(226, 232, 240, .75); }
.tools-template-preview-dropdown strong { color: var(--gold); }

.crm-filter-panel-v2 .imoveis-filter-body { gap: 8px; }
.crm-filter-panel-v2 .crm-toolbar-main { margin: 0; }
.crm-filter-panel-v2 .crm-toolbar-main .search-field { min-width: min(420px, 100%); }
.crm-filter-panel-v2 .crm-filter-extra-row { margin: 0 18px 16px; padding-top: 14px; }
.crm-filter-panel-v2 .crm-filter-extra-row.is-hidden { display: none; }

.crm-panel.crm-views-panel { padding: 18px 18px 14px; border-radius: 28px; overflow: hidden; max-width: 100%; min-width: 0; }
.crm-views-header { align-items: center; padding: 0 0 12px; gap: 14px; }
.crm-views-header .eyebrow { margin: 0 0 3px; font-size: 12px; letter-spacing: .11em; }
.crm-views-header h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.crm-views-bar { padding: 4px; gap: 4px; box-shadow: none; max-width: 100%; overflow-x: auto; }
.crm-view-tab { padding: 7px 12px; font-size: 13px; }
.crm-view-wrap { width: 100%; max-width: 100%; min-width: 0; min-height: 0; overflow-x: auto; overflow-y: visible; border-radius: 18px; }
.crm-view-wrap.crm-view-kanban { overflow-x: auto !important; overflow-y: hidden; padding-bottom: 8px; }
.crm-view-wrap.crm-view-kanban .crm-kanban-board { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; width: max-content; min-width: 100%; max-width: none; overflow: visible; padding: 4px 2px 12px; }
.crm-view-wrap.crm-view-kanban .crm-kanban-column { flex: 0 0 250px; width: 250px; max-width: 250px; min-height: 245px; }
.crm-view-wrap.crm-view-kanban .crm-view-footer { min-width: 100%; width: max-content; }
.crm-table-clean { width: 100%; min-width: 980px; }
.crm-table-clean th { padding-top: 12px !important; padding-bottom: 12px !important; font-size: 11px !important; letter-spacing: .045em; line-height: 1.15; }
.crm-table-clean td { padding-top: 10px !important; padding-bottom: 10px !important; vertical-align: middle; }
.crm-table-clean .crm-code-cell { min-width: 112px; }
.crm-table-clean .crm-client-cell { min-width: 170px; }
.crm-table-clean .crm-next-action-cell { min-width: 180px; max-width: 240px; }
.crm-table-clean .crm-next-action-cell strong { display: block; font-size: 12px; line-height: 1.25; }
.crm-table-clean .crm-date-cell { min-width: 112px; white-space: nowrap; }
.crm-table-clean .status-pill { font-size: 10px; padding: 5px 8px; }
.crm-task-alert { display: inline-flex !important; margin-top: 5px !important; padding: 2px 6px; border-radius: 999px; background: rgba(180, 35, 24, .08); }
.crm-pagination-bar { padding: 10px 2px 0; font-size: 12px; color: var(--muted); }
.crm-pagination-bar .btn-ghost { min-height: 34px; padding: 7px 12px; }
.crm-form [data-crm-contato-autosuggest] .b4y-autosuggest-field { width: 100%; }
.crm-form [data-crm-contato-autosuggest] .b4y-autosuggest-input { min-height: 50px; }

@media (max-width: 900px) {
  .contato-pos-cadastro-layout { grid-template-columns: 1fr; }
  .crm-views-header { align-items: stretch; flex-direction: column; }
  .crm-views-bar { border-radius: 16px; }
}


/* v1.05.06-M02-M04-M05 — UX hotfix geral */
html, body, .app-shell, .app-main, main, #content { max-width: 100%; overflow-x: hidden; }
#content > * { min-width: 0; }

.contato-pos-cadastro-card-v3 { max-width: min(820px, calc(100vw - 32px)); }
.contato-pos-cadastro-layout-v3 { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: stretch; margin-top: 0; }
.contato-pos-cadastro-info-block { min-width: 0; display: grid; gap: 12px; align-content: start; }
.contato-pos-cadastro-info-block h3 { margin: 0; }
.contato-pos-cadastro-action-block { min-height: 100%; }

.tools-template-table-v2 { table-layout: fixed; min-width: 1080px; }
.tools-template-table-v2 th:nth-child(1), .tools-template-table-v2 td:nth-child(1) { width: 20%; }
.tools-template-table-v2 th:nth-child(2), .tools-template-table-v2 td:nth-child(2) { width: 12%; }
.tools-template-table-v2 th:nth-child(3), .tools-template-table-v2 td:nth-child(3) { width: 22%; }
.tools-template-table-v2 th:nth-child(4), .tools-template-table-v2 td:nth-child(4) { width: 14%; }
.tools-template-table-v2 th:nth-child(5), .tools-template-table-v2 td:nth-child(5) { width: 32%; }
.tools-template-table-v2 td:last-child { width: auto; }
.tools-template-preview-cell { min-width: 280px; }

.crm-filter-panel,
.crm-indicators,
.crm-panel.crm-views-panel { max-width: 100%; min-width: 0; box-sizing: border-box; }
.crm-filter-panel-v2 .crm-toolbar-main,
.crm-filter-panel-v2 .crm-filter-extra-row { max-width: 100%; min-width: 0; }
.crm-indicators-compact .dashboard-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 100%; }
.crm-views-panel { contain: layout; }
.crm-view-wrap { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto !important; overflow-y: visible; }
.crm-table-clean { width: max-content; min-width: 980px; max-width: none; }
.crm-view-wrap.crm-view-kanban { overflow-x: auto !important; overflow-y: hidden !important; }
.crm-view-wrap.crm-view-kanban .crm-kanban-board { width: max-content; min-width: 100%; max-width: none; overflow: visible; }
.crm-view-wrap.crm-view-kanban .crm-kanban-column { flex: 0 0 250px; width: 250px; max-width: 250px; }
.crm-views-bar { max-width: 100%; min-width: 0; }

@media (max-width: 900px) {
  .contato-pos-cadastro-layout-v3 { grid-template-columns: 1fr; }
  .crm-indicators-compact .dashboard-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* B4Y_V10507_CRM_WORKSPACE_CSS_START */
/* v1.05.09-M05-CRM-Workspace-Syntax-Fix */
html, body, .app-shell, .app-main, main, #content { max-width: 100%; }
#content { overflow-x: hidden; }
#content > * { min-width: 0; }

.crm-workspace-shell { display: grid; gap: 28px; max-width: 100%; min-width: 0; padding-bottom: 24px; }
.crm-workspace-shell .panel { box-sizing: border-box; }
.crm-workspace-hero-clean { display: flex; justify-content: space-between; align-items: center; gap: 18px; max-width: 100%; min-width: 0; overflow: visible !important; padding: 24px 26px !important; }
.crm-workspace-hero-clean h2 { margin: 0 0 4px; font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.crm-workspace-hero-clean .eyebrow { margin: 0 0 8px; }
.crm-workspace-hero-clean .muted { margin: 0; font-size: 15px; line-height: 1.45; }
.crm-workspace-actions-inline { display: none !important; }

.crm-workspace-filters-clean { display: grid; gap: 16px; max-width: 100%; overflow: visible !important; padding: 22px 26px !important; }
.crm-workspace-filter-title .eyebrow { margin: 0; }
.crm-workspace-filter-grid { display: grid; grid-template-columns: minmax(280px, 1.4fr) minmax(170px, .7fr) minmax(170px, .7fr) minmax(170px, .7fr) auto; gap: 14px; align-items: end; max-width: 100%; min-width: 0; }
.crm-workspace-filter-grid label { display: grid; gap: 7px; min-width: 0; font-size: 12px; color: var(--muted); }
.crm-workspace-filter-grid label span { padding-left: 2px; font-weight: 500; }
.crm-workspace-filter-grid input,
.crm-workspace-filter-grid select { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 16px; padding: 0 14px; background: #fff; color: var(--text); box-shadow: 0 1px 0 rgba(15, 23, 42, .02); }
.crm-workspace-filter-grid input:focus,
.crm-workspace-filter-grid select:focus { outline: none; border-color: rgba(199, 168, 100, .85); box-shadow: 0 0 0 4px rgba(199, 168, 100, .10); }
.crm-workspace-filter-actions { display: flex; gap: 10px; align-items: end; white-space: nowrap; }
.crm-workspace-filter-actions .btn-secondary,
.crm-workspace-filter-actions .btn-ghost { min-height: 48px; }

.crm-workspace-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: 100%; min-width: 0; }
.crm-workspace-metric { padding: 18px 20px !important; min-width: 0; border-radius: 22px !important; }
.crm-workspace-metric span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crm-workspace-metric strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }

.crm-workspace-panel-clean { max-width: 100%; min-width: 0; overflow: hidden; padding: 22px !important; border-radius: 28px !important; }
.crm-workspace-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; min-width: 0; }
.crm-workspace-header h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.crm-workspace-header .eyebrow { margin: 0 0 6px; }
.crm-workspace-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--border); border-radius: 22px; background: rgba(248, 250, 252, .78); overflow-x: auto; max-width: 100%; min-width: 0; }
.crm-workspace-tabs button { border: 0; background: transparent; padding: 10px 16px; border-radius: 18px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.crm-workspace-tabs button.is-active { background: #fff; color: var(--text); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.crm-workspace-body { max-width: 100%; min-width: 0; overflow: hidden; }
.crm-workspace-loading,
.crm-workspace-library-note { padding: 16px; border: 1px dashed var(--border); border-radius: 18px; color: var(--muted); background: rgba(248, 250, 252, .6); }

.crm-workspace-table-shell { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 22px; background: #fff; }
#crmWorkspaceTabulator { min-width: 1080px; min-height: 460px; border: 0 !important; border-radius: 0 !important; overflow: hidden; background: #fff; }
#crmWorkspaceTabulator .tabulator { border: 0 !important; background: #fff; font-size: 13px; }
#crmWorkspaceTabulator .tabulator-header { border-bottom: 1px solid rgba(226, 232, 240, .95); background: rgba(248, 250, 252, .96); }
#crmWorkspaceTabulator .tabulator-header .tabulator-col { background: transparent; border-right: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
#crmWorkspaceTabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 14px 12px; }
#crmWorkspaceTabulator .tabulator-row { border-bottom: 1px solid rgba(226, 232, 240, .72); background: #fff; color: var(--text); }
#crmWorkspaceTabulator .tabulator-row:hover { background: rgba(199, 168, 100, .06); cursor: pointer; }
#crmWorkspaceTabulator .tabulator-cell { border-right: 0; padding: 13px 12px; line-height: 1.25; }
#crmWorkspaceTabulator small { display: block; color: var(--muted); margin-top: 3px; }
#crmWorkspaceTabulator .tabulator-footer { background: #fff; border-top: 1px solid rgba(226, 232, 240, .9); }
.crm-workspace-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 22px; background: #fff; }
.crm-workspace-table-scroll table { min-width: 980px; }

.b4y-crm-chip { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; line-height: 1; text-transform: capitalize; background: rgba(148, 163, 184, .14); color: var(--text); margin-right: 4px; white-space: nowrap; }
.b4y-crm-chip-prio-urgente,
.b4y-crm-chip-temp-quente { background: rgba(180, 35, 24, .10); color: #b42318; }
.b4y-crm-chip-prio-alta { background: rgba(247, 144, 9, .12); color: #b54708; }
.b4y-crm-chip-status-ativo { background: rgba(18, 183, 106, .10); color: #027a48; }
.danger-text { color: #b42318 !important; }

.crm-workspace-kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; max-width: 100%; }
.crm-workspace-kanban-column { flex: 0 0 282px; width: 282px; border: 1px solid var(--border); border-radius: 22px; background: rgba(248, 250, 252, .72); padding: 14px; }
.crm-workspace-kanban-column header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.crm-workspace-kanban-column header strong { font-size: 13px; font-weight: 600; }
.crm-workspace-kanban-column header span { min-width: 28px; min-height: 28px; border-radius: 999px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.crm-workspace-kanban-cards { display: grid; gap: 10px; }
.crm-workspace-kanban-card { text-align: left; border: 1px solid var(--border); border-radius: 18px; background: #fff; padding: 13px; display: grid; gap: 8px; cursor: pointer; box-shadow: 0 10px 24px rgba(15, 23, 42, .05); color: var(--text); width: 100%; }
.crm-workspace-kanban-card:hover,
.crm-workspace-card:hover,
.crm-workspace-pending-list button:hover,
.crm-workspace-agenda-list button:hover { border-color: rgba(199, 168, 100, .65); box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.crm-workspace-kanban-card strong { font-size: 13px; }
.crm-workspace-kanban-card small,
.crm-workspace-kanban-card p { color: var(--muted); margin: 0; font-size: 12px; }
.crm-workspace-kanban-card div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.empty-col { padding: 10px; font-size: 12px; }

#crmWorkspaceCalendar { max-width: 100%; min-height: 620px; border: 1px solid var(--border); border-radius: 22px; padding: 14px; background: #fff; overflow: hidden; }
#crmWorkspaceCalendar .fc-toolbar-title { font-size: 18px; font-weight: 500; }
#crmWorkspaceCalendar .fc-button { border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text); box-shadow: none; }
#crmWorkspaceCalendar .fc-button-primary:not(:disabled).fc-button-active,
#crmWorkspaceCalendar .fc-button-primary:not(:disabled):active { background: var(--text); color: #fff; border-color: var(--text); }
.crm-workspace-agenda-list,
.crm-workspace-pending-list { display: grid; gap: 10px; }
.crm-workspace-agenda-list button,
.crm-workspace-pending-list button { border: 1px solid var(--border); background: #fff; border-radius: 18px; padding: 13px 15px; text-align: left; display: grid; gap: 6px; cursor: pointer; color: var(--text); }
.crm-workspace-agenda-list button span,
.crm-workspace-pending-list button small,
.crm-workspace-pending-list button em { color: var(--muted); font-size: 12px; font-style: normal; }
.crm-workspace-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.crm-workspace-card { border: 1px solid var(--border); border-radius: 20px; background: #fff; padding: 15px; display: grid; gap: 10px; cursor: pointer; box-shadow: 0 10px 24px rgba(15, 23, 42, .05); }
.crm-workspace-card strong { display: block; font-size: 14px; font-weight: 600; }
.crm-workspace-card small,
.crm-workspace-card p { margin: 0; color: var(--muted); font-size: 12px; }
.crm-workspace-card footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

@media (max-width: 1200px) {
  .crm-workspace-filter-grid { grid-template-columns: 1fr 1fr; }
  .crm-workspace-search-field { grid-column: 1 / -1; }
  .crm-workspace-filter-actions { justify-content: flex-start; }
}
@media (max-width: 980px) {
  .crm-workspace-hero-clean,
  .crm-workspace-header { flex-direction: column; align-items: stretch; }
  .crm-workspace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .crm-workspace-filter-grid,
  .crm-workspace-metrics { grid-template-columns: 1fr; }
  .crm-workspace-filter-actions { flex-direction: column; align-items: stretch; }
  .crm-workspace-filter-actions .btn-secondary,
  .crm-workspace-filter-actions .btn-ghost { width: 100%; justify-content: center; }
}

/* v1.05.11-M05-CRM-Grid-Refino-Paginacao */
.crm-workspace-shell-v10510 { gap: 18px; }
.crm-workspace-shell-v10510 .crm-workspace-hero,
.crm-workspace-shell-v10510 .crm-workspace-hero-clean { display: none !important; }
.crm-workspace-filters-imoveis { display: block; max-width: 100%; overflow: visible !important; padding: 0 !important; }
.crm-workspace-filters-imoveis .imoveis-filter-body { gap: 8px; }
.crm-workspace-filter-main { margin: 0; max-width: 100%; min-width: 0; }
.crm-workspace-filter-main .search-field { min-width: min(460px, 100%); }
.crm-workspace-filter-main input { min-height: 44px; }
.crm-workspace-more-filters { padding-left: 20px; color: var(--gold); font-weight: 300; }
.crm-workspace-filter-extra { margin: 0 18px 16px; padding-top: 14px; max-width: calc(100% - 36px); min-width: 0; }
.crm-workspace-filter-extra.is-hidden { display: none !important; }
.crm-workspace-filter-extra label { min-width: 150px; }

.crm-workspace-indicators-row { display: flex; justify-content: flex-start; margin-top: -4px; }
.crm-workspace-indicators-link { color: var(--gold); font-weight: 300; padding: 0 0 0 6px; }
.crm-workspace-metrics.is-hidden { display: none !important; }
.crm-workspace-metrics { margin-top: 0; }

.crm-workspace-grid-toolbar { display: flex; align-items: center; gap: 12px; justify-content: flex-start; margin: 0 0 12px; padding: 2px 0; }
.crm-workspace-grid-toolbar .btn-secondary { min-height: 38px; padding: 8px 14px; }
.crm-workspace-grid-toolbar .btn-secondary:disabled { opacity: .48; cursor: not-allowed; }
.crm-workspace-grid-toolbar .muted { font-size: 12px; }

#crmWorkspaceTabulator { min-width: 980px; }
#crmWorkspaceTabulator .tabulator-row.is-selected { background: rgba(199, 168, 100, .08) !important; }
#crmWorkspaceTabulator .tabulator-row.is-expanded { background: rgba(248, 250, 252, .92); }
#crmWorkspaceTabulator .tabulator-cell:first-child,
#crmWorkspaceTabulator .tabulator-cell:nth-child(2) { padding-left: 8px; padding-right: 8px; }
.crm-row-check-input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.crm-row-expand-btn { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.crm-row-expand-btn:hover { border-color: rgba(199, 168, 100, .7); color: var(--gold); }
.crm-tabulator-row-details { width: 100%; border-top: 1px solid rgba(226, 232, 240, .85); background: rgba(248, 250, 252, .72); padding: 14px 18px 16px 94px; box-sizing: border-box; }
.crm-row-details-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.crm-row-details-grid > div { border: 1px solid rgba(226, 232, 240, .86); background: #fff; border-radius: 16px; padding: 11px 12px; min-width: 0; }
.crm-row-details-grid span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .035em; text-transform: uppercase; margin-bottom: 6px; }
.crm-row-details-grid strong { display: block; font-size: 13px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.crm-row-details-grid small { display: block; margin-top: 4px; color: var(--muted); }
.crm-table-expandable th:first-child,
.crm-table-expandable td:first-child,
.crm-table-expandable th:nth-child(2),
.crm-table-expandable td:nth-child(2) { width: 42px; text-align: center; }
.crm-native-detail-row.is-hidden { display: none; }
.crm-native-detail-row td { background: rgba(248, 250, 252, .72); padding: 14px 18px !important; }
.crm-native-main-row.is-expanded { background: rgba(199, 168, 100, .05); }

@media (max-width: 1180px) {
  .crm-row-details-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .crm-tabulator-row-details { padding-left: 18px; }
}
@media (max-width: 680px) {
  .crm-workspace-grid-toolbar { align-items: stretch; flex-direction: column; }
  .crm-workspace-grid-toolbar .btn-secondary { width: 100%; justify-content: center; }
  .crm-row-details-grid { grid-template-columns: 1fr; }
}


/* v1.05.11-M05-CRM-Grid-Refino-Paginacao */
#crmWorkspaceTabulator .tabulator-cell small,
.crm-table-expandable td small { display: block; color: var(--muted); margin-top: 3px; }
#crmWorkspaceTabulator .tabulator-cell:nth-child(3) small,
.crm-table-expandable td:nth-child(3) small { display: none !important; }
.crm-row-expand-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(199, 168, 100, .35);
  border-radius: 999px;
  background: rgba(199, 168, 100, .08);
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .04);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.crm-row-expand-btn:hover {
  border-color: rgba(199, 168, 100, .72);
  background: rgba(199, 168, 100, .14);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}
.crm-row-expand-icon {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .18s ease;
  margin-left: 1px;
}
.crm-row-expand-btn.is-open .crm-row-expand-icon,
#crmWorkspaceTabulator .tabulator-row.is-expanded .crm-row-expand-icon,
.crm-native-main-row.is-expanded .crm-row-expand-icon { transform: rotate(90deg); }
.crm-workspace-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
}
.crm-workspace-pagination > div { display: flex; gap: 8px; align-items: center; }
.crm-workspace-pagination .btn-ghost { min-height: 34px; padding: 7px 12px; }
.crm-workspace-pagination .btn-ghost:disabled,
.crm-workspace-pagination .btn-ghost[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 680px) {
  .crm-workspace-pagination { flex-direction: column; align-items: stretch; }
  .crm-workspace-pagination > div { justify-content: stretch; }
  .crm-workspace-pagination .btn-ghost { flex: 1; justify-content: center; }
}

/* B4Y_V10507_CRM_WORKSPACE_CSS_END */

/* B4Y_V10601_NOVA_TAREFA_COMPLETA_CSS_START */
/* v1.06.01-M05-CRM-Nova-Tarefa-Completa */
.crm-task-modal-v10601 .crm-task-form-v10601 {
  width: min(920px, calc(100vw - 34px));
  max-height: min(860px, calc(100vh - 30px));
  overflow: auto;
}
.crm-task-section-v10601 {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  padding: 16px;
  background: rgba(248, 250, 252, .68);
  margin-top: 14px;
}
.crm-task-section-v10601 .section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.crm-task-section-v10601 h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.crm-task-grid-v10601 {
  gap: 12px;
}
.crm-task-quick-dates-v10601 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 2px;
}
.crm-task-quick-dates-v10601 button {
  border: 1px solid rgba(199, 168, 100, .32);
  color: var(--gold);
  background: rgba(199, 168, 100, .08);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.crm-task-quick-dates-v10601 button:hover {
  background: rgba(199, 168, 100, .14);
}
.crm-task-form-v10601 textarea {
  resize: vertical;
}
.crm-task-form-v10601 .crm-modal-footer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.88), #fff 45%);
  padding-top: 14px;
}
@media (max-width: 760px) {
  .crm-task-modal-v10601 .crm-task-form-v10601 { width: calc(100vw - 20px); }
  .crm-task-section-v10601 { padding: 12px; border-radius: 18px; }
}

/* B4Y_V10601_NOVA_TAREFA_COMPLETA_CSS_END */

/* B4Y_V10601_NOVA_TAREFA_LAYOUT_FIX_CSS_START */
/* v1.06.01-M05-CRM-Nova-Tarefa-Layout-Fix */
.crm-task-layout-fix-modal-v10601 {
  padding: 0;
}
.crm-task-layout-fix-modal-v10601::backdrop {
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(2px);
}
.crm-task-layout-fix-modal-v10601 .crm-task-form-layout-fix-v10601 {
  width: min(980px, calc(100vw - 76px));
  max-height: min(760px, calc(100vh - 72px));
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 28px;
}
.crm-task-layout-fix-header-v10601 {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, .72);
  background: #fff;
}
.crm-task-layout-fix-header-v10601 .eyebrow {
  margin-bottom: 4px;
}
.crm-task-layout-fix-header-v10601 h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: .95;
  letter-spacing: -.05em;
}
.crm-task-layout-fix-header-v10601 .muted {
  margin: 5px 0 0;
}
.crm-task-layout-fix-header-v10601 .btn-ghost {
  min-width: 96px;
  min-height: 46px;
}
.crm-task-layout-fix-body-v10601 {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 28px 22px;
  display: grid;
  gap: 16px;
  background: #fff;
}
.crm-task-section-layout-fix-v10601 {
  margin: 0;
  padding: 16px 18px 18px;
  border-radius: 20px;
}
.crm-task-section-layout-fix-v10601 .section-title-row {
  margin-bottom: 10px;
}
.crm-task-section-layout-fix-v10601 .section-title-row h4 {
  font-size: 20px;
  font-weight: 600;
}
.crm-task-grid-layout-fix-v10601 {
  gap: 10px 14px;
}
.crm-task-form-layout-fix-v10601 label span {
  font-size: 12px;
  margin-bottom: 6px;
}
.crm-task-form-layout-fix-v10601 input,
.crm-task-form-layout-fix-v10601 select,
.crm-task-form-layout-fix-v10601 textarea {
  min-height: 46px;
  border-radius: 16px;
}
.crm-task-form-layout-fix-v10601 textarea {
  min-height: auto;
  resize: vertical;
}
.crm-task-quick-dates-layout-fix-v10601 {
  gap: 8px;
  padding-top: 2px;
}
.crm-task-quick-dates-layout-fix-v10601 button {
  padding: 7px 12px;
  font-size: 12px;
}
.crm-task-layout-fix-footer-v10601 {
  flex: 0 0 auto;
  position: static !important;
  bottom: auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 28px 20px;
  border-top: 1px solid rgba(226, 232, 240, .72);
  background: #fff;
  box-shadow: 0 -10px 22px rgba(15, 23, 42, .04);
}
.crm-task-layout-fix-footer-v10601 .form-msg {
  margin-right: auto;
  min-height: 20px;
}
.crm-task-layout-fix-footer-v10601 .btn-ghost,
.crm-task-layout-fix-footer-v10601 .btn-primary {
  min-height: 46px;
  padding-inline: 20px;
}
@media (max-width: 900px) {
  .crm-task-layout-fix-modal-v10601 .crm-task-form-layout-fix-v10601 {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
  .crm-task-layout-fix-header-v10601,
  .crm-task-layout-fix-body-v10601,
  .crm-task-layout-fix-footer-v10601 {
    padding-left: 18px;
    padding-right: 18px;
  }
  .crm-task-layout-fix-header-v10601 {
    flex-direction: column;
  }
  .crm-task-layout-fix-header-v10601 .btn-ghost {
    align-self: flex-start;
  }
}
@media (max-width: 680px) {
  .crm-task-layout-fix-header-v10601 h3 { font-size: 34px; }
  .crm-task-layout-fix-footer-v10601 { flex-wrap: wrap; }
  .crm-task-layout-fix-footer-v10601 .form-msg { width: 100%; }
}

/* B4Y_V10601_NOVA_TAREFA_LAYOUT_FIX_CSS_END */

/* B4Y_V10602_CRM_TAREFAS_LISTAGEM_CSS_START */
/* v1.06.02-M05-CRM-Tarefas-Listagem-Visualizacao */
.crm-tarefas-shell { display: grid; gap: 16px; }
.crm-tarefas-toolbar { align-items: end; }
.crm-tarefas-search-field { min-width: min(420px, 100%); }
.crm-tarefas-panel { overflow: hidden; }
.crm-tarefas-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.crm-tarefas-header h3 { margin: 2px 0; }
.crm-tarefas-header small { color: var(--muted, #6b7280); }
.crm-tarefas-table-scroll { width: 100%; overflow-x: auto; }
.crm-tarefas-table th, .crm-tarefas-table td { vertical-align: middle; white-space: nowrap; }
.crm-tarefas-table td:nth-child(3) small { display: block; color: var(--muted, #6b7280); margin-top: 3px; }
.crm-tarefa-row { cursor: pointer; }
.crm-tarefa-row.is-overdue td { background: rgba(255, 231, 231, .55); }
.crm-tarefas-empty { padding: 22px; text-align: center; color: var(--muted, #6b7280); }
.btn-small { padding: 6px 10px; font-size: 12px; }
.danger-text { color: #b42318; font-weight: 700; }
.crm-tarefa-modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, .48); display: flex; align-items: center; justify-content: center; padding: 20px; }
.crm-tarefa-modal-card { width: min(940px, 100%); max-height: min(760px, 92vh); background: var(--panel-bg, #fff); border-radius: 20px; box-shadow: 0 24px 70px rgba(15, 23, 42, .28); display: flex; flex-direction: column; overflow: hidden; }
.crm-tarefa-modal-card > header, .crm-tarefa-modal-card > footer { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(15, 23, 42, .08); }
.crm-tarefa-modal-card > footer { border-top: 1px solid rgba(15, 23, 42, .08); border-bottom: 0; justify-content: flex-end; }
.crm-tarefa-modal-card h3 { margin: 3px 0 0; font-size: 20px; }
.crm-tarefa-modal-body { padding: 20px 22px; overflow: auto; }
.crm-tarefa-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.crm-tarefa-detail-grid div { border: 1px solid rgba(15, 23, 42, .08); border-radius: 14px; padding: 12px; background: rgba(248, 250, 252, .78); }
.crm-tarefa-detail-grid span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); margin-bottom: 4px; }
.crm-tarefa-modal-body section { margin-top: 14px; }
.crm-tarefa-modal-body section h4 { margin: 0 0 8px; }
.crm-tarefa-modal-body section p { margin: 0; line-height: 1.55; color: var(--text, #111827); }
#crmTarefasListBtn.is-active { font-weight: 700; }
@media (max-width: 900px) { .crm-tarefa-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .crm-tarefa-detail-grid { grid-template-columns: 1fr; } .crm-tarefas-header { align-items: flex-start; flex-direction: column; } }

/* B4Y_V10602_CRM_TAREFAS_LISTAGEM_CSS_END */

/* B4Y_V10603_CRM_RESUMO_SITUACAO_CSS_START */
/* v1.06.03-M05-CRM-Atendimento-Resumo-Situacao */
.crm-resumo-shell { display: grid; gap: 16px; }
.crm-resumo-toolbar { align-items: end; }
.crm-resumo-search-field { min-width: min(480px, 100%); }
.crm-resumo-panel { overflow: hidden; }
.crm-resumo-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.crm-resumo-header h3 { margin: 2px 0; }
.crm-resumo-header small, .muted-text { color: var(--muted, #6b7280); }
.crm-resumo-table-scroll { width: 100%; overflow-x: auto; }
.crm-resumo-table th, .crm-resumo-table td { vertical-align: top; }
.crm-resumo-table td:nth-child(2) small { display: block; color: var(--muted, #6b7280); margin-top: 3px; }
.crm-resumo-row { cursor: pointer; }
.crm-resumo-empty { padding: 22px; text-align: center; color: var(--muted, #6b7280); }
.btn-small { padding: 6px 10px; font-size: 12px; }
.crm-resumo-modal-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .48); display: flex; align-items: center; justify-content: center; padding: 20px; }
.crm-resumo-modal-card { width: min(860px, 100%); max-height: min(760px, 92vh); background: var(--panel-bg, #fff); border-radius: 20px; box-shadow: 0 24px 70px rgba(15, 23, 42, .28); display: flex; flex-direction: column; overflow: hidden; }
.crm-resumo-modal-card > header, .crm-resumo-modal-card > footer { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(15, 23, 42, .08); }
.crm-resumo-modal-card > footer { border-top: 1px solid rgba(15, 23, 42, .08); border-bottom: 0; justify-content: flex-end; }
.crm-resumo-modal-card h3 { margin: 3px 0 0; font-size: 20px; }
.crm-resumo-modal-body { padding: 20px 22px; overflow: auto; }
.crm-resumo-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.crm-resumo-detail-grid div { border: 1px solid rgba(15, 23, 42, .08); border-radius: 14px; padding: 12px; background: rgba(248, 250, 252, .78); }
.crm-resumo-detail-grid span, .crm-resumo-field span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); margin-bottom: 6px; }
.crm-resumo-field { display: block; margin-top: 14px; }
.crm-resumo-field textarea { width: 100%; resize: vertical; border-radius: 14px; border: 1px solid rgba(15, 23, 42, .14); padding: 12px 14px; font: inherit; line-height: 1.5; background: #fff; }
.crm-resumo-help { margin: 12px 0 0; color: var(--muted, #6b7280); font-size: 13px; }
.crm-resumo-msg { min-height: 20px; margin: 12px 0 0; font-weight: 600; }
#crmResumoSituacaoBtn.is-active { font-weight: 700; }
@media (max-width: 800px) { .crm-resumo-detail-grid { grid-template-columns: 1fr; } .crm-resumo-header { align-items: flex-start; flex-direction: column; } }

/* B4Y_V10603_CRM_RESUMO_SITUACAO_CSS_END */

/* B4Y_V10604_CRM_MODELOS_TAREFA_AUTOSUGGEST_CSS_START */
/* v1.06.04-M05-CRM-Modelos-Tarefa-Autosuggest */
.crm-modelos-autosuggest-v10604 { position: relative; margin-bottom: 10px; }
.crm-modelos-field-v10604 { display: block; }
.crm-modelos-input-v10604 { width: 100%; }
.crm-modelos-selected-v10604 { min-height: 18px; margin: 6px 0; color: var(--muted, #64748b); font-size: 12px; }
.crm-modelos-autosuggest-results-v10604 { position: absolute; left: 0; right: 0; top: calc(100% - 18px); z-index: 10020; background: var(--panel-bg, #fff); border: 1px solid rgba(15, 23, 42, .12); border-radius: 14px; box-shadow: 0 18px 44px rgba(15, 23, 42, .18); max-height: 270px; overflow: auto; }
.crm-modelo-suggestion-v10604 { display: block; width: 100%; text-align: left; padding: 11px 13px; border: 0; border-bottom: 1px solid rgba(15, 23, 42, .07); background: transparent; cursor: pointer; }
.crm-modelo-suggestion-v10604:hover { background: rgba(15, 23, 42, .04); }
.crm-modelo-suggestion-v10604 strong { display: block; font-size: 13px; color: var(--text, #0f172a); }
.crm-modelo-suggestion-v10604 small { display: block; margin-top: 3px; color: var(--muted, #64748b); }
.crm-modelos-empty-v10604 { padding: 12px 14px; color: var(--muted, #64748b); font-size: 13px; }
.crm-modelos-help-v10604 { display: block; margin-top: 6px; color: var(--muted, #64748b); line-height: 1.35; }

/* B4Y_V10604_CRM_MODELOS_TAREFA_AUTOSUGGEST_CSS_END */

/* B4Y_V10604_CRM_TAREFA_MODO_CRIACAO_CSS_START */
/* v1.06.04-M05-CRM-Modelos-Tarefa-Modo-Criacao */
.crm-modo-criacao-overlay-v10604 {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}
.crm-modo-criacao-modal-v10604 {
  position: relative;
  width: min(720px, 96vw);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  padding: 26px;
}
.crm-modo-criacao-close-v10604 {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.crm-modo-criacao-title-v10604 h3 {
  margin: 0 36px 4px 0;
  font-size: 22px;
  font-weight: 650;
  color: #0f172a;
}
.crm-modo-criacao-title-v10604 p {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 14px;
}
.crm-modo-criacao-options-v10604 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.crm-modo-criacao-card-v10604 {
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  padding: 18px;
  min-height: 160px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.crm-modo-criacao-card-v10604:hover,
.crm-modo-criacao-card-v10604:focus {
  transform: translateY(-1px);
  border-color: #94a3b8;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  outline: none;
}
.crm-modo-criacao-card-v10604 strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  margin-bottom: 8px;
}
.crm-modo-criacao-card-v10604 span {
  display: block;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.crm-modo-criacao-card-v10604 small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}
.crm-modo-criacao-header-v10604 {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.crm-modo-criacao-header-v10604 strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 3px;
}
.crm-modo-criacao-header-v10604 small {
  display: block;
  color: #64748b;
  line-height: 1.35;
}
.crm-tipo-tarefa-auto-v10604 {
  pointer-events: none;
  background: #f1f5f9 !important;
  color: #475569 !important;
}
.crm-tipo-tarefa-auto-label-v10604::after {
  content: " Automático";
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.crm-tipo-tarefa-auto-badge-v10604 {
  margin-top: -4px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
}
.crm-tipo-tarefa-auto-badge-v10604 strong { color: #0f172a; }
.crm-tarefa-modo-manual-v10604 .crm-modo-criacao-header-v10604 { background: #fff7ed; border-color: #fed7aa; }
.crm-tarefa-modo-modelo-v10604 .crm-modo-criacao-header-v10604 { background: #eff6ff; border-color: #bfdbfe; }
@media (max-width: 720px) {
  .crm-modo-criacao-options-v10604 { grid-template-columns: 1fr; }
  .crm-modo-criacao-modal-v10604 { padding: 22px; }
}

/* B4Y_V10604_CRM_TAREFA_MODO_CRIACAO_CSS_END */

/* B4Y_V10604_CAMPOS_GESTAO_ADMIN_UX_CSS_START */
/* B4Y OS - v1.06.04-M05-CRM-Campos-Gestao-Admin-Tooltip-Fix */
:root {
  --b4y-gestao-bg: #eff6ff;
  --b4y-gestao-border: #bfdbfe;
  --b4y-gestao-tooltip-bg: #0f172a;
  --b4y-gestao-tooltip-text: #ffffff;
  --b4y-admin-bg: #eef7ff;
  --b4y-admin-border: #93c5fd;
}

.b4y-permission-field {
  position: relative;
  border-radius: 12px;
  padding: 10px 12px;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.b4y-permission-field-gestao {
  background: var(--b4y-gestao-bg) !important;
  border: 1px solid var(--b4y-gestao-border) !important;
}

.b4y-permission-field-admin {
  background: var(--b4y-admin-bg) !important;
  border: 1px solid var(--b4y-admin-border) !important;
}

.b4y-permission-field:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

/* Hotfix: badges removidos para nao quebrar o layout. */
.b4y-permission-badge,
.b4y-permission-badge-gestao,
.b4y-permission-badge-admin {
  display: none !important;
}

.b4y-permission-field[data-b4y-permission-tooltip]:hover::after,
.b4y-permission-field[data-b4y-permission-tooltip]:focus-within::after {
  content: attr(data-b4y-permission-tooltip);
  position: absolute;
  right: 12px;
  top: -30px;
  z-index: 9999;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--b4y-gestao-tooltip-bg);
  color: var(--b4y-gestao-tooltip-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.b4y-permission-field[data-b4y-permission-tooltip]:hover::before,
.b4y-permission-field[data-b4y-permission-tooltip]:focus-within::before {
  content: '';
  position: absolute;
  right: 24px;
  top: -8px;
  z-index: 9998;
  border-width: 6px;
  border-style: solid;
  border-color: var(--b4y-gestao-tooltip-bg) transparent transparent transparent;
  pointer-events: none;
}

.b4y-permission-field .b4y-permission-input,
.b4y-permission-field input,
.b4y-permission-field select,
.b4y-permission-field textarea {
  background-color: rgba(255, 255, 255, .88);
}

/* B4Y_V10604_CAMPOS_GESTAO_ADMIN_UX_CSS_END */

/* B4Y_V10605_CRM_FLUXO_OCORRIDOS_CSS_START */
/* v1.06.05-M05-CRM-Fluxos-Ocorridos-Pagina-Menu */
.b4y-crm-menu-fluxos-wrap { margin: 2px 0; }
.b4y-crm-menu-fluxos { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.b4y-crm-menu-fluxos:hover, .b4y-crm-menu-fluxos.active, .b4y-crm-menu-fluxos.is-active { background: rgba(174, 137, 72, 0.12); color: inherit; }
.b4y-menu-dot { opacity: .7; font-weight: 700; }
.b4y-fluxo-shell { padding: 10px 20px 24px; display: grid; gap: 16px; }
.b4y-fluxo-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-radius: 20px; }
.b4y-fluxo-hero h2 { margin: 4px 0 6px; font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; }
.b4y-fluxo-hero p { margin: 0; color: #667085; }
.b4y-fluxo-select-box { min-width: 260px; }
.b4y-fluxo-select-box label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: #667085; text-transform: uppercase; letter-spacing: .04em; }
.b4y-fluxo-select-box select { width: 100%; min-height: 44px; border: 1px solid #d9e1ec; border-radius: 14px; padding: 0 14px; background: #fff; font-size: 14px; }
.b4y-fluxo-grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; padding: 0; border: 1px solid #e5e7eb; }
.b4y-fluxo-left-title, .b4y-fluxo-right-title { text-align: center; padding: 14px 16px; font-size: 22px; font-weight: 900; letter-spacing: .02em; border-bottom: 1px solid #e5e7eb; }
.b4y-fluxo-right-title { color: #e00000; font-style: italic; }
.b4y-fluxo-left-note, .b4y-fluxo-right-note { min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px 18px; font-size: 17px; }
.b4y-fluxo-right-note { color: #e00000; border-left: 1px solid #e5e7eb; }
.b4y-fluxo-section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.b4y-fluxo-section-header h3 { margin: 2px 0 0; font-size: 22px; }
.b4y-fluxo-timeline-panel, .b4y-fluxo-table-panel { padding: 20px; border-radius: 20px; }
.b4y-fluxo-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.b4y-fluxo-step-card { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.b4y-fluxo-step-number { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f4ead8; color: #9a7437; font-weight: 800; }
.b4y-fluxo-step-card h4 { margin: 0 0 6px; font-size: 15px; }
.b4y-fluxo-step-card p { margin: 0 0 10px; color: #667085; font-size: 13px; line-height: 1.35; }
.b4y-fluxo-step-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.b4y-fluxo-table-scroll { overflow-x: auto; }
.b4y-fluxo-table { min-width: 1080px; width: 100%; }
.b4y-fluxo-table th { white-space: nowrap; }
.b4y-fluxo-table td { vertical-align: top; }
.b4y-fluxo-table td small { display: block; margin-top: 5px; color: #667085; line-height: 1.3; }
.b4y-fluxo-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: #f3f4f6; border: 1px solid #e5e7eb; color: #344054; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.b4y-fluxo-chip-prio.b4y-fluxo-chip-alta { background: #fff4e6; border-color: #ffd7a0; color: #9a5b00; }
.b4y-fluxo-chip-prio.b4y-fluxo-chip-media { background: #eef6ff; border-color: #cfe6ff; color: #175cd3; }
.b4y-fluxo-chip-prio.b4y-fluxo-chip-baixa { background: #ecfdf3; border-color: #bbf7d0; color: #027a48; }
@media (max-width: 980px) { .b4y-fluxo-hero { flex-direction: column; } .b4y-fluxo-select-box { width: 100%; } .b4y-fluxo-grid { grid-template-columns: 1fr; } .b4y-fluxo-right-note { border-left: 0; border-top: 1px solid #e5e7eb; } }

/* B4Y_V10605_CRM_FLUXO_OCORRIDOS_CSS_END */
/* B4Y_V10606_MENU_MODELOS_DEFINITIVO_FIX_CSS_START */
/* B4Y OS — v1.06.06 CRM Menu/Modelos Definitivo Fix */
.sidebar .b4y-crm-submenu-definitivo-v10606 .menu-subitem,
.sidebar .menu-subitem.b4y-crm-menu-definitivo-v10606,
.app-sidebar .b4y-crm-submenu-definitivo-v10606 .menu-subitem,
.app-sidebar .menu-subitem.b4y-crm-menu-definitivo-v10606,
aside .b4y-crm-submenu-definitivo-v10606 .menu-subitem,
aside .menu-subitem.b4y-crm-menu-definitivo-v10606,
nav .b4y-crm-submenu-definitivo-v10606 .menu-subitem,
nav .menu-subitem.b4y-crm-menu-definitivo-v10606 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.b4y-crm-menu-definitivo-v10606 .menu-icon {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: 12px !important;
  min-width: 12px !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.b4y-crm-menu-definitivo-v10606 .menu-label {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
[data-page="crm-modelos-tarefas"].b4y-crm-menu-definitivo-v10606 {
  white-space: nowrap !important;
}
.b4y-crm-page .b4y-crm-page-header h1 { margin-bottom: 4px; }
.b4y-crm-page .b4y-crm-page-body h2 { margin: 18px 0 10px; font-size: 18px; }
.b4y-crm-filter-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.b4y-crm-filter-row input { flex: 1; min-width: 220px; }
.b4y-crm-table .row-actions { white-space: nowrap; display: flex; gap: 6px; }
.b4y-crm-table .btn-xs { padding: 5px 8px; font-size: 12px; }
.b4y-modelo-modal { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.b4y-modelo-modal .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b4y-modelo-modal label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.b4y-modelo-modal textarea { min-height: 86px; resize: vertical; }
.b4y-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.b4y-modal-card { background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.24); padding: 20px; }
.b4y-modal-card .modal-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 14px; }
.b4y-modal-card .modal-actions { display:flex; justify-content:flex-end; margin-top: 14px; }
@media (max-width: 720px) { .b4y-modelo-modal .form-grid { grid-template-columns: 1fr; } }
/* B4Y_V10606_MENU_MODELOS_DEFINITIVO_FIX_CSS_END */


/* B4Y_V10607_CRM_FLUXOS_MODELOS_INTEGRACAO_REAL_CSS_START */
.menu-item .menu-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-subitem[data-page="crm-tarefas"],
.menu-subitem[data-page="crm-resumo-situacao"],
.menu-subitem[data-page="crm-fluxos-ocorridos"],
.menu-subitem[data-page="crm-modelos-tarefas"] {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  white-space: nowrap;
}
.menu-subitem[data-page="crm-tarefas"] .menu-icon,
.menu-subitem[data-page="crm-resumo-situacao"] .menu-icon,
.menu-subitem[data-page="crm-fluxos-ocorridos"] .menu-icon,
.menu-subitem[data-page="crm-modelos-tarefas"] .menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
}
.crm-v10607-table td small,
.crm-modelos-panel td small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.crm-modelos-actions {
  white-space: nowrap;
}
.crm-modelos-actions .btn-small,
.crm-modelos-actions .btn-ghost,
.crm-modelos-actions .btn-secondary,
.crm-modelos-actions .btn-danger {
  margin-right: 6px;
}
.crm-modelo-tarefa-modal-v10607 .modal-card {
  max-width: 980px;
}
.crm-fluxos-real-panel + .crm-fluxos-real-panel,
.crm-modelos-panel {
  margin-top: 16px;
}
/* B4Y_V10607_CRM_FLUXOS_MODELOS_INTEGRACAO_REAL_CSS_END */


/* B4Y_V10608_CRM_TAREFA_CONCLUIR_COM_OCORRIDO_START */
.crm-ocorrido-modal-v10608::backdrop { background: rgba(15, 23, 42, .45); }
.crm-ocorrido-card-v10608 { max-width: 980px; }
.crm-ocorrido-card-v10608 textarea { min-height: 92px; resize: vertical; }
.crm-tarefa-actions-cell { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.crm-tarefa-actions-cell .btn-small { padding: 6px 10px; line-height: 1.1; }
#crmOcorridoMsgV10608 { min-height: 20px; }
/* B4Y_V10608_CRM_TAREFA_CONCLUIR_COM_OCORRIDO_END */


/* B4Y v1.06.08 CRM UX Tarefas/Atendimento Fix */
.crm-workspace-indicators-row,
#crmWorkspaceMetrics {
  display: none !important;
}

.crm-tarefas-atendimento-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.crm-tarefas-atendimento-banner strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.crm-tarefas-atendimento-banner small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #6b7280);
}

.crm-task-link-cell,
.crm-table-clean th:last-child,
.crm-table-clean td:last-child {
  text-align: right;
  white-space: nowrap;
}

.crm-ver-tarefas-atendimento,
.crm-detail-task-link {
  white-space: nowrap;
}

.crm-detail-task-link {
  display: inline-flex;
  margin-top: 4px;
  padding: 0;
}

.crm-workspace-tabs #crmTarefasListBtn {
  display: none !important;
}


/* B4Y_V10608_GRID_TAREFAS_LAYOUT_FIX_CSS_START */
/* v1.06.08-M05-CRM-Tarefas-Separacao-Layout-Dropdown-Fix */

/* CRM Vendas: reduz o respiro entre Filtros e Views/CRM Vendas sem alterar a grid. */
.crm-workspace-shell,
.crm-workspace-shell-v10511,
.crm-vendas-shell,
.crm-page-shell {
  gap: 18px;
}
.imoveis-filter-panel + .crm-workspace-views-panel,
.imoveis-filter-panel + .crm-workspace-panel,
.imoveis-filter-panel + .crm-view-card,
.imoveis-filter-panel + .crm-panel,
#crmWorkspaceFilters + #crmWorkspaceViews,
#crmWorkspaceFilters + .crm-workspace-card,
.crm-filter-panel + .crm-workspace-card,
.crm-filter-panel + .crm-workspace-views-panel {
  margin-top: 18px !important;
}

/* CRM Vendas: linha clicavel com comportamento do expansor/card. */
.crm-native-main-row,
.crm-click-row,
.crm-workspace-table-shell .tabulator-row,
.crm-table-clean tbody tr[data-crm-atendimento-id] {
  cursor: pointer;
}
.crm-native-main-row:hover,
.crm-click-row:hover,
.crm-workspace-table-shell .tabulator-row:hover,
.crm-table-clean tbody tr[data-crm-atendimento-id]:hover {
  background: rgba(174, 137, 72, 0.06);
}

/* Tarefas: filtro ativo integrado ao card principal. */
.crm-tarefas-atendimento-banner {
  display: none !important;
}
.crm-tarefas-filtro-ativo-inline {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 2px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.crm-tarefas-filtro-ativo-inline .eyebrow {
  margin: 0 0 4px;
}
.crm-tarefas-filtro-ativo-inline strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}
.crm-tarefas-filtro-ativo-inline small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #667085);
}
.crm-tarefas-filtro-ativo-inline .btn-ghost {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 18px;
}

/* Tarefas: card de filtro e listagem mais proximos e alinhados. */
.crm-tarefas-shell {
  display: grid;
  gap: 16px !important;
}
.crm-tarefas-filter-panel {
  margin-bottom: 0 !important;
}
.crm-tarefas-panel {
  margin-top: 0 !important;
  padding: 18px 18px 20px !important;
  border-radius: 20px;
}
.crm-tarefas-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
}
.crm-tarefas-header .eyebrow {
  margin: 0 0 4px !important;
}
.crm-tarefas-header h3 {
  margin: 0 0 4px !important;
  line-height: 1.15;
}
.crm-tarefas-header small {
  display: block;
  color: var(--muted, #667085);
}
.crm-tarefas-table-scroll {
  margin-top: 0 !important;
  border-radius: 16px;
  overflow: auto;
}
.crm-tarefas-table th {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  white-space: nowrap;
}
.crm-tarefas-table td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  vertical-align: middle;
}
.crm-tarefas-table td small {
  margin-top: 2px !important;
  line-height: 1.25;
}
.crm-tarefa-actions-cell {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .crm-tarefas-filtro-ativo-inline {
    align-items: stretch;
    flex-direction: column;
  }
  .crm-tarefas-filtro-ativo-inline .btn-ghost {
    width: 100%;
  }
}
/* B4Y_V10608_GRID_TAREFAS_LAYOUT_FIX_CSS_END */

/* B4Y_V10608_CRM_TAREFAS_SEPARACAO_LAYOUT_DROPDOWN_FIX_CSS_START */
/* v1.06.08-M05-CRM-Tarefas-Separacao-Layout-Dropdown-Fix */

/* CRM Vendas: reduz MAIS o espaco vertical entre Filtros e Views/CRM Vendas. */
.crm-workspace-shell,
.crm-workspace-shell-v10510,
.crm-workspace-shell-v10511,
.crm-vendas-shell,
.crm-page-shell {
  gap: 8px !important;
  row-gap: 8px !important;
}
.crm-workspace-shell > .crm-workspace-filters,
.crm-workspace-shell > .imoveis-filter-panel,
.crm-workspace-shell-v10510 > .crm-workspace-filters,
.crm-workspace-shell-v10511 > .crm-workspace-filters {
  margin-bottom: 0 !important;
}
.crm-workspace-shell > .crm-workspace-panel,
.crm-workspace-shell-v10510 > .crm-workspace-panel,
.crm-workspace-shell-v10511 > .crm-workspace-panel {
  margin-top: 0 !important;
}
.imoveis-filter-panel + .crm-workspace-panel,
.imoveis-filter-panel + .crm-workspace-views-panel,
#crmWorkspaceFilters + #crmWorkspaceViews,
#crmWorkspaceFilters + .crm-workspace-card,
.crm-filter-panel + .crm-workspace-card,
.crm-filter-panel + .crm-workspace-views-panel {
  margin-top: 8px !important;
}

/* CRM/Tarefas: separacao definitiva visual. Se algum legado renderizar Tarefas dentro de Views/CRM Vendas, nao exibir ali. */
.crm-workspace-body > .crm-tarefas-shell,
.crm-workspace-panel .crm-workspace-body .crm-tarefas-shell {
  display: none !important;
}
#content > .crm-tarefas-shell {
  display: grid !important;
}

/* Tarefas: card unico e compacto, no padrao Cadastrar Imovel. */
#content > .crm-tarefas-shell .crm-tarefas-filter-panel {
  margin-top: 0 !important;
}
#content > .crm-tarefas-shell .crm-tarefas-filtro-ativo-inline {
  margin: 0 0 14px !important;
}
#content > .crm-tarefas-shell .crm-tarefas-toolbar {
  align-items: end;
}
#content > .crm-tarefas-shell .crm-tarefas-panel {
  margin-top: 0 !important;
}

/* CRM Vendas: feedback discreto para linha clicavel/dropdown. */
.crm-native-main-row,
.crm-workspace-table-shell .tabulator-row {
  cursor: pointer;
}
.crm-native-main-row:hover,
.crm-workspace-table-shell .tabulator-row:hover,
.crm-workspace-table-shell .tabulator-row.b4y-row-click-feedback {
  background: rgba(174, 137, 72, 0.07) !important;
}
/* B4Y_V10608_CRM_TAREFAS_SEPARACAO_LAYOUT_DROPDOWN_FIX_CSS_END */


/* v1.06.08-M05-CRM-Grid-RowClick-Definitivo-Fix */
.crm-atendimento-observacoes-section {
  margin-top: 18px;
}
.crm-native-main-row { cursor: pointer; }
.crm-native-main-row .crm-ver-tarefas-atendimento,
.crm-workspace-table-shell .crm-ver-tarefas-atendimento { cursor: pointer; }
.crm-workspace-grid-toolbar #crmWorkspaceEditSelectedBtn { min-width: 92px; }
.crm-client-cell small { display: none !important; }


/* v1.06.08-M05-CRM-Grid-RowClick-Definitivo-Fix */
/* Row click definitivo: Atendimento e Tarefas abrem segunda linha sem MutationObserver. */
.crm-native-main-row,
.crm-tarefa-main-row,
.crm-workspace-table-shell .tabulator-row {
  cursor: pointer;
}
.crm-native-main-row:hover,
.crm-tarefa-main-row:hover,
.crm-workspace-table-shell .tabulator-row:hover {
  background: rgba(174, 137, 72, 0.06) !important;
}
.crm-tarefa-expand-cell {
  width: 42px;
  min-width: 42px;
  text-align: center;
}
.crm-tarefa-main-row.is-expanded {
  background: rgba(199, 168, 100, .05) !important;
}
.crm-tarefa-detail-row.is-hidden {
  display: none !important;
}
.crm-tarefa-detail-row > td {
  background: rgba(248, 250, 252, .72) !important;
  padding: 14px 18px !important;
}
.crm-tarefa-inline-detail {
  display: grid;
  gap: 14px;
}
.crm-tarefa-inline-texts {
  display: grid;
  gap: 10px;
}
.crm-tarefa-inline-texts section {
  border: 1px solid rgba(226, 232, 240, .86);
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
}
.crm-tarefa-inline-texts h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .035em;
  color: var(--muted, #6b7280);
}
.crm-tarefa-inline-texts p {
  margin: 0;
  line-height: 1.5;
  color: var(--text, #111827);
  white-space: normal;
}
.crm-tarefa-expand-btn.is-open .crm-row-expand-icon,
.crm-tarefa-main-row.is-expanded .crm-row-expand-icon {
  transform: rotate(90deg);
}
.crm-tarefas-table th:first-child,
.crm-tarefas-table td:first-child {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

/* B4Y_V10608_CRM_TAREFAS_GRID_FILTROS_WHATSAPP_FIX_START */
/* v1.06.08-M05-CRM-Tarefas-Grid-Filtros-WhatsApp-Fix */
.crm-tarefas-shell-v10608-filter-fix {
  gap: 14px !important;
}
.crm-tarefas-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 2px;
}
.crm-tarefas-page-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.crm-tarefas-page-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted, #667085);
}
.crm-tarefas-filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 190px) minmax(150px, 190px);
  gap: 12px 14px;
  align-items: end;
}
.crm-tarefas-filter-grid .crm-tarefas-search-field {
  min-width: 0 !important;
}
.crm-tarefas-filter-grid label {
  min-width: 0;
}
.crm-tarefas-filter-grid input,
.crm-tarefas-filter-grid select {
  width: 100%;
}
.crm-tarefas-filter-grid label:nth-of-type(4) {
  grid-column: 1 / span 1;
}
.crm-tarefas-filter-grid label:nth-of-type(5) {
  grid-column: 2 / span 1;
}
.crm-tarefas-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 10px;
  grid-column: 3 / span 1;
}
.crm-tarefas-filter-actions .btn-secondary,
.crm-tarefas-filter-actions .btn-ghost {
  min-height: 48px;
}
.crm-tarefa-detail-row > td {
  background: transparent !important;
  padding: 8px 14px 16px !important;
}
.crm-tarefa-inline-detail {
  width: min(94%, 1180px);
  margin-left: auto;
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}
.crm-tarefa-inline-detail .crm-tarefa-detail-grid {
  margin-bottom: 14px;
}
.crm-tarefa-inline-detail .crm-tarefa-inline-texts {
  display: grid;
  gap: 12px;
}
.crm-tarefa-inline-detail .crm-tarefa-inline-texts section {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
  padding: 13px 14px;
}
.crm-tarefa-inline-detail .crm-tarefa-inline-texts h4 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  color: var(--muted, #667085);
}
.crm-tarefa-inline-detail .crm-tarefa-inline-texts p {
  margin: 0;
  line-height: 1.5;
}
.crm-tarefas-pagination {
  margin-top: 12px;
  padding: 10px 4px 0;
}
.crm-tarefas-pagination > span {
  color: var(--muted, #667085);
  font-size: 13px;
}
.crm-tarefas-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crm-whatsapp-mask-v10608 {
  letter-spacing: .01em;
}
@media (max-width: 980px) {
  .crm-tarefas-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .crm-tarefas-filter-grid .crm-tarefas-search-field {
    grid-column: 1 / -1;
  }
  .crm-tarefas-filter-grid label:nth-of-type(4),
  .crm-tarefas-filter-grid label:nth-of-type(5),
  .crm-tarefas-filter-actions {
    grid-column: auto;
  }
}
@media (max-width: 700px) {
  .crm-tarefas-page-head {
    align-items: stretch;
    flex-direction: column;
  }
  .crm-tarefas-filter-grid {
    grid-template-columns: 1fr;
  }
  .crm-tarefas-filter-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .crm-tarefas-filter-actions .btn-secondary,
  .crm-tarefas-filter-actions .btn-ghost,
  .crm-tarefas-page-head .btn-primary {
    width: 100%;
  }
  .crm-tarefa-inline-detail {
    width: 100%;
  }
  .crm-tarefas-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}
/* B4Y_V10608_CRM_TAREFAS_GRID_FILTROS_WHATSAPP_FIX_END */

/* B4Y_V10608_CRM_TAREFAS_GRID_FILTRO_REFINO_FINAL_START */
/* v1.06.08-M05-CRM-Tarefas-Grid-Filtro-Refino-Final */
.crm-tarefas-shell-refino-final {
  gap: 12px !important;
}
.crm-tarefas-shell-refino-final .crm-tarefas-page-head {
  display: none !important;
}
.crm-tarefas-top-actions-refino-final {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 2px;
}
.crm-tarefas-top-actions-refino-final .btn-primary {
  min-height: 50px;
  padding-inline: 22px;
}
.crm-tarefas-filter-refino-final .imoveis-filter-body {
  display: grid;
  gap: 12px;
}
.crm-tarefas-filter-row-main-refino-final {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 12px 14px;
  align-items: end;
}
.crm-tarefas-filter-row-main-refino-final .crm-tarefas-search-field {
  min-width: 0 !important;
}
.crm-tarefas-filter-row-main-refino-final .btn-secondary,
.crm-tarefas-filter-row-main-refino-final .btn-ghost {
  min-height: 52px;
  min-width: 116px;
}
.crm-tarefas-more-filters-refino-final {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold, #b08a45);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  justify-self: start;
  padding: 0 4px;
}
.crm-tarefas-filter-row-extra-refino-final {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.crm-tarefas-filter-row-extra-refino-final.is-hidden {
  display: none !important;
}
.crm-tarefas-filter-row-extra-refino-final label {
  min-width: 0;
}
.crm-tarefas-filter-row-extra-refino-final select {
  width: 100%;
}
.crm-tarefas-panel-refino-final {
  padding-top: 20px !important;
}
.crm-tarefas-table-refino-final {
  table-layout: fixed;
  min-width: 1240px;
}
.crm-tarefas-table-refino-final th,
.crm-tarefas-table-refino-final td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.crm-tarefas-table-refino-final th:nth-child(1),
.crm-tarefas-table-refino-final td:nth-child(1) { width: 44px; min-width: 44px; }
.crm-tarefas-table-refino-final th:nth-child(2),
.crm-tarefas-table-refino-final td:nth-child(2) { width: 100px; min-width: 100px; }
.crm-tarefas-table-refino-final th:nth-child(3),
.crm-tarefas-table-refino-final td:nth-child(3) { width: 120px; min-width: 120px; }
.crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-table-refino-final td:nth-child(4) { width: 250px; min-width: 250px; }
.crm-tarefas-table-refino-final th:nth-child(5),
.crm-tarefas-table-refino-final td:nth-child(5) { width: 130px; min-width: 130px; }
.crm-tarefas-table-refino-final th:nth-child(6),
.crm-tarefas-table-refino-final td:nth-child(6) { width: 150px; min-width: 150px; }
.crm-tarefas-table-refino-final th:nth-child(7),
.crm-tarefas-table-refino-final td:nth-child(7) { width: 210px; min-width: 210px; }
.crm-tarefas-table-refino-final th:nth-child(8),
.crm-tarefas-table-refino-final td:nth-child(8) { width: 130px; min-width: 130px; }
.crm-tarefas-table-refino-final th:nth-child(9),
.crm-tarefas-table-refino-final td:nth-child(9) { width: 130px; min-width: 130px; }
.crm-tarefas-table-refino-final th:nth-child(10),
.crm-tarefas-table-refino-final td:nth-child(10) { width: 120px; min-width: 120px; text-align: right; }
.crm-tarefas-table-refino-final .crm-tarefa-col-contato small {
  display: block;
  color: var(--muted, #6b7280);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-tarefas-table-refino-final .crm-tarefa-actions-cell .btn-ghost.crm-tarefa-view-btn {
  display: none !important;
}
.crm-tarefa-detail-row > td {
  background: rgba(248, 250, 252, .72) !important;
  padding: 14px 18px 16px 94px !important;
}
.crm-tarefa-inline-detail-refino-final {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.crm-tarefa-detail-grid-refino-final {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 14px !important;
}
.crm-tarefa-detail-grid-refino-final > div {
  border: 1px solid rgba(226, 232, 240, .86) !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 11px 12px !important;
  min-width: 0;
}
.crm-tarefa-detail-grid-refino-final span {
  display: block;
  color: var(--muted, #6b7280);
  font-size: 11px;
  letter-spacing: .035em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.crm-tarefa-detail-grid-refino-final strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #111827);
  overflow-wrap: anywhere;
}
.crm-tarefa-inline-texts-refino-final {
  display: grid;
  gap: 12px;
}
.crm-tarefa-inline-texts-refino-final section {
  border: 1px solid rgba(226, 232, 240, .86) !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
}
.crm-tarefa-inline-texts-refino-final h4 {
  margin: 0 0 8px !important;
  color: var(--muted, #6b7280);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.crm-tarefa-inline-texts-refino-final p {
  margin: 0;
  white-space: normal;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .crm-tarefas-filter-row-main-refino-final { grid-template-columns: 1fr; }
  .crm-tarefas-filter-row-main-refino-final .btn-secondary,
  .crm-tarefas-filter-row-main-refino-final .btn-ghost { width: 100%; }
  .crm-tarefas-filter-row-extra-refino-final { grid-template-columns: 1fr 1fr; }
  .crm-tarefa-detail-row > td { padding-left: 18px !important; }
  .crm-tarefa-detail-grid-refino-final { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .crm-tarefas-top-actions-refino-final .btn-primary { width: 100%; }
  .crm-tarefas-filter-row-extra-refino-final,
  .crm-tarefa-detail-grid-refino-final { grid-template-columns: 1fr; }
}
/* B4Y_V10608_CRM_TAREFAS_GRID_FILTRO_REFINO_FINAL_END */


/* B4Y_V10608_CRM_TAREFAS_GRID_ALINHAMENTO_TOPBAR_FIX_START */
/* v1.06.08-M05-CRM-Tarefas-Grid-Alinhamento-Topbar-Fix */
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-top-actions-refino-final {
  display: none !important;
}
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final {
  table-layout: fixed !important;
  min-width: 1180px !important;
}
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th,
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td {
  box-sizing: border-box;
}
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(1),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(1) { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(2),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(2) { width: 88px !important; min-width: 88px !important; max-width: 88px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(3),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(3) { width: 110px !important; min-width: 110px !important; max-width: 110px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(4) { width: 205px !important; min-width: 205px !important; max-width: 205px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(5),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(5) { width: 125px !important; min-width: 125px !important; max-width: 125px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(6),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(6) { width: 112px !important; min-width: 112px !important; max-width: 112px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(7),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(7) { width: 205px !important; min-width: 205px !important; max-width: 205px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(8),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(8) { width: 120px !important; min-width: 120px !important; max-width: 120px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(9),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(9) { width: 118px !important; min-width: 118px !important; max-width: 118px !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final th:nth-child(10),
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefas-table-refino-final td:nth-child(10) { width: 110px !important; min-width: 110px !important; max-width: 110px !important; text-align: right !important; }
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefa-actions-cell {
  display: table-cell !important;
  vertical-align: middle !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefa-actions-cell .btn-small {
  min-width: 82px;
}
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefa-col-contato,
.crm-tarefas-shell-alinhamento-topbar-fix .crm-tarefa-col-responsavel {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* B4Y_V10608_CRM_TAREFAS_GRID_ALINHAMENTO_TOPBAR_FIX_END */

/* B4Y_V10609_CRM_PROXIMA_TAREFA_OBRIGATORIA_START */
.crm-ocorrido-modal-v10609 .is-hidden {
  display: none !important;
}
.crm-proxima-tarefa-section-v10609 {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 16px;
}
.crm-ocorrido-card-v10609 textarea {
  resize: vertical;
}
/* B4Y_V10609_CRM_PROXIMA_TAREFA_OBRIGATORIA_END */

/* B4Y_V10609_CRM_PROXIMA_TAREFA_TEXTAREA_FIX_START */
/* Hotfix: aplica o padrao visual real dos formularios B4Y OS ao modal de conclusao de tarefa. */
.crm-ocorrido-card-v10609 .form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.crm-ocorrido-card-v10609 .form-grid label > span {
  font-size: 12px;
  color: var(--muted, #6b7280);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.crm-ocorrido-card-v10609 input,
.crm-ocorrido-card-v10609 select,
.crm-ocorrido-card-v10609 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.98);
  color: var(--ink, #0f172a);
  border-radius: 16px;
  padding: 12px 13px;
  outline: none;
  font: inherit;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.crm-ocorrido-card-v10609 textarea {
  min-height: 92px;
  resize: vertical;
  overflow: auto;
}
.crm-ocorrido-card-v10609 input:focus,
.crm-ocorrido-card-v10609 select:focus,
.crm-ocorrido-card-v10609 textarea:focus {
  border-color: rgba(17, 24, 39, 0.35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}
.crm-ocorrido-card-v10609 textarea::placeholder,
.crm-ocorrido-card-v10609 input::placeholder {
  color: rgba(100, 116, 139, 0.78);
}
.crm-ocorrido-card-v10609 .form-section {
  overflow: hidden;
}
/* B4Y_V10609_CRM_PROXIMA_TAREFA_TEXTAREA_FIX_END */

/* B4Y_V10609_CRM_TAREFAS_GRID_CONCLUIR_SELECIONADAS_FIX_START */
/* Hotfix: grid de tarefas com selecao em fila, cabecalhos compactos e coluna Tipo removida. */
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-bulk-info {
  color: var(--muted, #6b7280);
  font-size: 12px;
  font-weight: 700;
}
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefa-select-cell {
  text-align: center !important;
  vertical-align: middle !important;
}
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefa-select-cell input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111827;
  cursor: pointer;
}
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefa-select-cell input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .38;
}
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final {
  table-layout: fixed !important;
  min-width: 1180px !important;
}
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(1),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(1) { width: 44px !important; min-width: 44px !important; max-width: 44px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(2),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(2) { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(3),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(3) { width: 88px !important; min-width: 88px !important; max-width: 88px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(4) { width: 92px !important; min-width: 92px !important; max-width: 92px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(5),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(5) { width: 235px !important; min-width: 235px !important; max-width: 235px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(6),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(6) { width: 128px !important; min-width: 128px !important; max-width: 128px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(7),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(7) { width: 205px !important; min-width: 205px !important; max-width: 205px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(8),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(8) { width: 105px !important; min-width: 105px !important; max-width: 105px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(9),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(9) { width: 118px !important; min-width: 118px !important; max-width: 118px !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final th:nth-child(10),
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-table-refino-final td:nth-child(10) { width: 120px !important; min-width: 120px !important; max-width: 120px !important; text-align: right !important; }
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefa-col-contato,
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefa-col-responsavel,
.crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefa-col-atendimento {
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-tarefa-bulk-feedback {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10050;
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 55px rgba(15, 23, 42, .18);
  padding: 14px 16px;
  font-weight: 800;
  line-height: 1.35;
}
.crm-tarefa-bulk-feedback-info {
  color: #334155;
}
@media (max-width: 760px) {
  .crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-bulk-actions {
    justify-content: stretch;
  }
  .crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-bulk-actions button,
  .crm-tarefas-shell-concluir-selecionadas-fix .crm-tarefas-bulk-info {
    width: 100%;
  }
}
/* B4Y_V10609_CRM_TAREFAS_GRID_CONCLUIR_SELECIONADAS_FIX_END */

/* B4Y_V10609_TOOLS_TEXTAREA_TEMPLATE_UI_FIX_START */
/* Tools > Templates UI: templates oficiais de textarea simples e textarea personalizado. */
.b4y-textarea-field {
  display: grid;
  gap: 7px;
  width: 100%;
}
.b4y-textarea-label,
.b4y-field-help {
  color: var(--muted, #6b7280);
}
.b4y-textarea-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.b4y-field-help {
  font-size: 12px;
  line-height: 1.4;
}
.b4y-textarea-input {
  width: 100%;
  max-width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.98);
  color: var(--ink, #0f172a);
  border-radius: 16px;
  padding: 12px 13px;
  outline: none;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.b4y-textarea-input:focus {
  border-color: rgba(17, 24, 39, 0.35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}
.b4y-rich-text-field {
  margin-top: 0;
}
.tools-template-preview-textarea .b4y-textarea-input {
  min-height: 70px;
  font-size: 12px;
  resize: none;
}
.tools-template-preview-rich-text {
  gap: 6px;
}
.tools-template-preview-rich-text .rich-text-toolbar {
  gap: 4px;
}
.tools-template-preview-rich-text .rich-text-toolbar button {
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 11px;
}
.tools-template-preview-rich-text .rich-text-editor {
  min-height: 70px;
  padding: 10px 11px;
  font-size: 12px;
}
.tools-template-table-v2 small {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted, #6b7280);
  font-size: 11px;
  line-height: 1.3;
}
/* B4Y_V10609_TOOLS_TEXTAREA_TEMPLATE_UI_FIX_END */

/* B4Y v1.06.09 — CRM Tarefas Resultado Fluxo Seguro Fix */
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final {
  min-width: 1120px !important;
  table-layout: fixed;
}
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(1),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(1) { width: 44px !important; min-width: 44px !important; max-width: 44px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(2),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(2) { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(3),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(3) { width: 88px !important; min-width: 88px !important; max-width: 88px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(4) { width: 138px !important; min-width: 138px !important; max-width: 138px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(5),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(5) { width: 250px !important; min-width: 250px !important; max-width: 250px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(6),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(6) { width: 138px !important; min-width: 138px !important; max-width: 138px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(7),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(7) { width: 205px !important; min-width: 205px !important; max-width: 205px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(8),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(8) { width: 105px !important; min-width: 105px !important; max-width: 105px !important; }
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final th:nth-child(9),
.crm-tarefas-resultado-fluxo-seguro-fix .crm-tarefas-table-refino-final td:nth-child(9) { width: 118px !important; min-width: 118px !important; max-width: 118px !important; }
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-card-v10609 { max-width: 980px; }
.crm-ocorrido-contexto-v10609 {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}
.crm-ocorrido-context-line-v10609,
.crm-ocorrido-resumo-toggle-v10609 {
  width: 100%;
  border: 1px solid rgba(226, 232, 240, .9);
  background: rgba(248, 250, 252, .78);
  border-radius: 16px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  color: var(--text);
  font: inherit;
}
.crm-ocorrido-context-line-v10609 span,
.crm-ocorrido-resumo-toggle-v10609 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.crm-ocorrido-context-line-v10609 strong,
.crm-ocorrido-resumo-toggle-v10609 strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.crm-ocorrido-resumo-toggle-v10609 { cursor: pointer; }
.crm-ocorrido-resumo-toggle-v10609 strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-ocorrido-resumo-toggle-v10609.is-expanded strong {
  white-space: normal;
  overflow: visible;
}
.crm-ocorrido-context-line-v10609 .is-muted { color: var(--muted); font-weight: 500; }
.crm-ocorrido-fluxo-seguro-v10609 .b4y-autosuggest-field,
.crm-proxima-tarefa-rascunho-modal-v10609 .b4y-autosuggest-field { width: 100%; }
.crm-ocorrido-fluxo-seguro-v10609 .rich-text-field,
.crm-proxima-tarefa-rascunho-modal-v10609 .rich-text-field { width: 100%; }
.crm-ocorrido-fluxo-seguro-v10609 .rich-text-editor,
.crm-proxima-tarefa-rascunho-modal-v10609 .rich-text-editor {
  min-height: 118px;
}
.crm-proxima-tarefa-rascunho-modal-v10609 .modal-card { max-width: 980px; }
@media (max-width: 760px) {
  .crm-ocorrido-context-line-v10609,
  .crm-ocorrido-resumo-toggle-v10609 { grid-template-columns: 1fr; }
}

/* B4Y v1.06.09 — CRM Tarefas Resultado Modal UX Fix */
.crm-ocorrido-fluxo-seguro-v10609.contact-modal {
  width: min(1120px, calc(100vw - 28px));
}
.crm-ocorrido-fluxo-seguro-v10609.contact-modal .crm-ocorrido-card-v10609 {
  width: 100% !important;
  max-width: none !important;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 18px 18px 26px;
  scrollbar-gutter: stable;
}
.crm-ocorrido-fluxo-seguro-v10609 .modal-title-row {
  margin-bottom: 8px;
  gap: 14px;
}
.crm-ocorrido-fluxo-seguro-v10609 .modal-title-row h3 {
  font-size: 36px !important;
  line-height: .94;
  letter-spacing: -0.045em;
}
.crm-ocorrido-fluxo-seguro-v10609 .modal-title-row .muted {
  margin-top: 4px;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-v10609 {
  gap: 6px;
  margin: 8px 0 14px;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-context-line-v10609,
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-resumo-toggle-v10609 {
  min-height: 0;
  border-color: rgba(226, 232, 240, .86);
  background: rgba(248, 250, 252, .62);
  border-radius: 13px;
  padding: 8px 12px;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-context-line-v10609 span,
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-resumo-toggle-v10609 span {
  font-size: 10.5px;
  letter-spacing: .045em;
  line-height: 1.1;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-context-line-v10609 strong,
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-resumo-toggle-v10609 strong {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-resumo-toggle-v10609:not(.is-expanded) strong,
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-context-line-v10609 strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-ocorrido-fluxo-seguro-v10609 .form-section {
  margin-top: 0;
  padding: 22px;
  border-radius: 22px;
}
.crm-ocorrido-fluxo-seguro-v10609 .form-section h4 {
  margin-bottom: 14px;
}
.crm-ocorrido-fluxo-seguro-v10609 [data-resultado-autosuggest-v10609] .b4y-autosuggest-field {
  gap: 6px;
}
.crm-ocorrido-fluxo-seguro-v10609 [data-resultado-autosuggest-v10609] .b4y-autosuggest-input {
  min-height: 44px;
  height: 44px;
  border-radius: 15px;
  padding: 0 14px;
  font-size: 14px;
}
.crm-ocorrido-fluxo-seguro-v10609 [data-resultado-autosuggest-v10609] .b4y-autosuggest-line {
  gap: 8px;
}
.crm-ocorrido-fluxo-seguro-v10609 [data-resultado-autosuggest-v10609] .b4y-autosuggest-clear {
  padding: 4px 3px;
  font-size: 13px;
}
.crm-ocorrido-fluxo-seguro-v10609 [data-resultado-autosuggest-v10609] .b4y-autosuggest-selected {
  display: none !important;
}
.crm-ocorrido-fluxo-seguro-v10609 [data-observacoes-ocorrido-v10609] .rich-text-editor {
  min-height: 96px;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-modal-footer {
  padding-top: 12px;
}
@media (max-width: 760px) {
  .crm-ocorrido-fluxo-seguro-v10609.contact-modal .crm-ocorrido-card-v10609 {
    padding: 20px 12px 16px 18px;
  }
  .crm-ocorrido-fluxo-seguro-v10609 .modal-title-row h3 {
    font-size: 31px !important;
  }
  .crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-context-line-v10609,
  .crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-resumo-toggle-v10609 {
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
  }
}

/* B4Y v1.06.09 — CRM Tarefas Filtros Data Indefinidas UX Fix */
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-filter-row-main-refino-final {
  grid-template-columns: minmax(320px, 1fr) minmax(170px, 210px) auto auto;
  align-items: end;
}
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-status-main-filter {
  display: grid;
  gap: 6px;
  min-width: 170px;
}
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-status-main-filter span {
  color: var(--muted, #6b7280);
  font-size: 12px;
  font-weight: 600;
}
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-status-main-filter select,
.crm-tarefas-filtros-data-indefinidas-ux-fix #crmTarefasPeriodo {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: #fff;
  padding: 0 12px;
  font: inherit;
  color: var(--text, #111827);
}
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-more-filters-refino-final {
  font-weight: 400 !important;
}
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-bulk-actions {
  align-items: center;
}
.crm-tarefas-filtros-data-indefinidas-ux-fix #crmTarefasUltimasCriadasBtn {
  white-space: nowrap;
}
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-table-refino-final td:nth-child(4) {
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
}
@media (max-width: 900px) {
  .crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-filter-row-main-refino-final {
    grid-template-columns: 1fr 1fr;
  }
  .crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-filter-row-main-refino-final .crm-tarefas-search-field {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-filter-row-main-refino-final {
    grid-template-columns: 1fr;
  }
  .crm-tarefas-filtros-data-indefinidas-ux-fix .crm-tarefas-status-main-filter,
  .crm-tarefas-filtros-data-indefinidas-ux-fix #crmTarefasUltimasCriadasBtn {
    width: 100%;
  }
}
/* B4Y_V10609_CRM_TAREFAS_FILTROS_DATA_INDEFINIDAS_UX_FIX_END */

/* B4Y v1.06.09 — CRM Tarefas Grid Contexto Sugestao Acao Fix */
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-filter-row-main-refino-final {
  grid-template-columns: minmax(300px, 1fr) minmax(150px, 185px) minmax(145px, 170px) auto auto !important;
  align-items: end;
}
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-periodo-main-filter,
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-status-main-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-periodo-main-filter span,
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-status-main-filter span {
  color: var(--muted, #6b7280);
  font-size: 12px;
  font-weight: 600;
}
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-periodo-main-filter select,
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-status-main-filter select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: #fff;
  padding: 0 12px;
  font: inherit;
  color: var(--text, #111827);
}
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-table-refino-final th:nth-child(6),
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-table-refino-final td:nth-child(6) {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
}
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefa-col-responsavel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-header {
  align-items: center;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-tarefa-title-v10609 {
  margin-top: 4px;
  margin-bottom: 0;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-meta-subline-v10609 {
  margin-top: 2px !important;
  font-size: 12px !important;
  line-height: 1.35;
  color: var(--muted, #6b7280) !important;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 {
  border: 1px solid rgba(226, 232, 240, .92);
  background: rgba(248, 250, 252, .72);
  border-radius: 18px;
  padding: 12px 14px;
  gap: 7px;
  margin: 10px 0 14px;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-context-title-v10609 {
  color: var(--muted, #6b7280);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 .crm-ocorrido-context-line-v10609,
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 .crm-ocorrido-resumo-toggle-v10609 {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  grid-template-columns: 142px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 .crm-ocorrido-context-line-v10609 + .crm-ocorrido-context-line-v10609,
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 .crm-ocorrido-resumo-toggle-v10609 + .crm-ocorrido-context-line-v10609 {
  border-top: 1px solid rgba(226, 232, 240, .65) !important;
  padding-top: 7px !important;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 span {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .045em;
}
.crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 strong {
  font-size: 12.5px !important;
  font-weight: 550 !important;
  color: var(--text, #111827);
}
.crm-resultado-sugestao-v10609,
.crm-next-task-sugestao-v10609 {
  grid-column: 1 / -1;
  border: 1px solid rgba(203, 213, 225, .78);
  background: rgba(255, 251, 235, .36);
  border-radius: 16px;
  padding: 11px 13px;
  display: grid;
  gap: 5px;
}
.crm-resultado-sugestao-v10609.is-empty {
  background: rgba(248, 250, 252, .64);
}
.crm-resultado-sugestao-v10609 span,
.crm-next-task-sugestao-v10609 span {
  color: var(--muted, #6b7280);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.crm-resultado-sugestao-v10609 strong,
.crm-next-task-sugestao-v10609 strong {
  font-size: 14px;
  line-height: 1.25;
  color: var(--text, #111827);
}
.crm-resultado-sugestao-v10609 p,
.crm-next-task-sugestao-v10609 p {
  margin: 0;
  color: var(--muted, #6b7280);
  font-size: 12.5px;
  line-height: 1.45;
}
.crm-resultado-sugestao-v10609 small {
  color: var(--muted, #6b7280);
  font-size: 12px;
}
@media (max-width: 980px) {
  .crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-filter-row-main-refino-final {
    grid-template-columns: 1fr 1fr;
  }
  .crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-filter-row-main-refino-final .crm-tarefas-search-field {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .crm-tarefas-grid-contexto-sugestao-acao-fix .crm-tarefas-filter-row-main-refino-final {
    grid-template-columns: 1fr;
  }
  .crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 .crm-ocorrido-context-line-v10609,
  .crm-ocorrido-fluxo-seguro-v10609 .crm-ocorrido-contexto-card-v10609 .crm-ocorrido-resumo-toggle-v10609 {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
}
/* B4Y_V10609_CRM_TAREFAS_GRID_CONTEXTO_SUGESTAO_ACAO_FIX_END */

/* B4Y v1.06.09 — CRM Tarefas Grid Proxima Tarefa Slides Fix */
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final {
  min-width: 1180px !important;
  table-layout: fixed;
}
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(1),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(1) { width: 44px !important; min-width: 44px !important; max-width: 44px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(2),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(2) { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(3),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(3) { width: 88px !important; min-width: 88px !important; max-width: 88px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(4) { width: 120px !important; min-width: 120px !important; max-width: 120px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(5),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(5) { width: 210px !important; min-width: 210px !important; max-width: 210px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(6),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(6) { width: 84px !important; min-width: 84px !important; max-width: 84px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(7),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(7) { width: 190px !important; min-width: 190px !important; max-width: 190px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(8),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(8) { width: 98px !important; min-width: 98px !important; max-width: 98px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(9),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(9) { width: 112px !important; min-width: 112px !important; max-width: 112px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final th:nth-child(10),
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefas-table-refino-final td:nth-child(10) { width: 160px !important; min-width: 160px !important; max-width: 160px !important; }
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefa-col-atendimento,
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefa-col-contato,
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefa-col-responsavel,
.crm-tarefas-grid-proxima-tarefa-slides-fix .crm-tarefa-col-atualizado {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-tarefa-sortable-th { padding: 0 !important; }
.crm-tarefa-sort-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 10px;
  cursor: pointer;
}
.crm-tarefa-sort-btn em {
  font-style: normal;
  color: var(--muted, #6b7280);
  font-size: 10px;
  opacity: .75;
}
.crm-tarefa-sortable-th.is-active .crm-tarefa-sort-btn em {
  color: var(--text, #111827);
  opacity: 1;
}
.crm-proxima-tarefa-slides-fix-v10609.contact-modal {
  width: min(1040px, calc(100vw - 28px));
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-slides-form-v10609 {
  max-width: none !important;
  width: 100%;
  max-height: calc(100dvh - 34px);
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto;
  overflow: hidden;
  background: #fff;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-header-v10609 {
  background: #fff !important;
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  padding-bottom: 16px;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-header-v10609 h3 {
  letter-spacing: -0.035em;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-meta-v10609 {
  margin-top: 4px !important;
  font-size: 12px !important;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-slides-v10609 {
  min-height: 0;
  display: grid;
  overflow: hidden;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-slide-v10609 {
  margin: 0 !important;
  min-height: 100%;
  overflow-y: auto;
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 24px !important;
  border-radius: 0 !important;
  align-content: start;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-slide-grid-v10609 {
  margin-top: 14px;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-footer-v10609 {
  border-top: 1px solid rgba(226, 232, 240, .8);
  padding-top: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-footer-actions-v10609 {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.crm-next-task-last-closed-v10609 {
  border: 1px solid rgba(226, 232, 240, .9);
  background: rgba(248, 250, 252, .72);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 10px 0 12px;
  display: grid;
  gap: 5px;
}
.crm-next-task-last-closed-v10609 span,
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-sugestao-v10609 span {
  color: var(--muted, #6b7280);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.crm-next-task-last-closed-v10609 strong {
  color: var(--text, #111827);
  font-size: 13.5px;
  line-height: 1.3;
}
.crm-next-task-last-closed-v10609 p {
  margin: 0;
  color: var(--muted, #6b7280);
  font-size: 12.5px;
  line-height: 1.42;
}
.crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-sugestao-v10609 {
  background: rgba(255, 251, 235, .34);
  border-color: rgba(203, 213, 225, .78);
  margin: 0 0 12px;
}
.crm-proxima-tarefa-slides-fix-v10609 [data-next-task-mensagem-v10609] {
  display: none !important;
}
@media (max-width: 760px) {
  .crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-slides-form-v10609 {
    grid-template-rows: auto minmax(360px, 1fr) auto;
  }
  .crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-slide-v10609 {
    padding: 18px !important;
  }
  .crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-footer-v10609 {
    align-items: stretch;
    flex-direction: column;
  }
  .crm-proxima-tarefa-slides-fix-v10609 .crm-next-task-footer-actions-v10609 {
    justify-content: flex-start;
  }
}
/* B4Y_V10609_CRM_TAREFAS_GRID_PROXIMA_TAREFA_SLIDES_FIX_END */


/* B4Y_V10609_CRM_PROXIMA_TAREFA_WIZARD_FULLSCREEN_FIX_START */
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609.contact-modal {
  width: min(1280px, calc(100vw - 28px)) !important;
  height: calc(100dvh - 28px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slides-form-v10609 {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
  border-radius: inherit;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-header-v10609 {
  padding: 28px 34px 18px !important;
  flex-shrink: 0;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-header-v10609 h3 {
  margin: 4px 0 4px !important;
  line-height: .98;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-header-v10609 .muted {
  max-width: 860px;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slides-v10609 {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: block !important;
  border-top: 1px solid rgba(226, 232, 240, .75);
  border-bottom: 1px solid rgba(226, 232, 240, .75);
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-v10609 {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  width: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 30px 34px !important;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-v10609[hidden] {
  display: none !important;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-v10609 .section-title-row {
  margin: 0 0 16px !important;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-v10609 .section-title-row h4 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-grid-v10609 {
  max-width: none;
  margin-top: 16px !important;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-v10609[data-next-task-slide="1"] .crm-next-task-slide-grid-v10609,
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-v10609[data-next-task-slide="2"] .crm-next-task-slide-grid-v10609 {
  align-content: start;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-last-closed-v10609,
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-sugestao-v10609 {
  max-width: 100%;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-footer-v10609 {
  margin: 0 !important;
  padding: 16px 34px 18px !important;
  flex-shrink: 0;
  background: #fff;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-footer-v10609 .form-msg {
  margin: 0;
  max-width: 680px;
}
.crm-proxima-tarefa-wizard-fullscreen-fix-v10609::backdrop {
  background: rgba(15, 23, 42, .62);
}
@media (max-width: 760px) {
  .crm-proxima-tarefa-wizard-fullscreen-fix-v10609.contact-modal {
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
  }
  .crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-header-v10609,
  .crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-slide-v10609,
  .crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-footer-v10609 {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .crm-proxima-tarefa-wizard-fullscreen-fix-v10609 .crm-next-task-footer-v10609 {
    align-items: stretch;
  }
}
/* B4Y_V10609_CRM_PROXIMA_TAREFA_WIZARD_FULLSCREEN_FIX_END */


/* B4Y_V10609_CRM_PROXIMA_TAREFA_WIZARD_TELA_INTEIRA_FIX_START */
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609.contact-modal {
  width: min(1280px, calc(100vw - 28px)) !important;
  height: calc(100dvh - 28px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-tela-inteira-form-v10609,
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-slides-form-v10609 {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: inherit !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screens-v10609,
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-slides-v10609 {
  height: 100% !important;
  min-height: 0 !important;
  display: block !important;
  overflow: hidden !important;
  border: 0 !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-v10609 {
  height: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
  background: #fff !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-v10609[hidden] {
  display: none !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-header-v10609 {
  padding: 28px 34px 18px !important;
  border-bottom: 1px solid rgba(226, 232, 240, .82) !important;
  background: #fff !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
  min-height: 0 !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-header-v10609 h3 {
  margin: 4px 0 6px !important;
  line-height: .98 !important;
  letter-spacing: -0.045em !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-header-v10609 .muted {
  max-width: 860px;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-body-v10609 {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 28px 34px !important;
  box-sizing: border-box !important;
  scrollbar-gutter: stable;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-body-v10609 .section-title-row {
  margin: 0 0 16px !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-body-v10609 .section-title-row h4 {
  font-size: 22px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-slide-grid-v10609 {
  margin-top: 16px !important;
  align-content: start !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-footer-v10609 {
  margin: 0 !important;
  padding: 16px 34px 18px !important;
  border-top: 1px solid rgba(226, 232, 240, .82) !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 0 !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-footer-v10609 .form-msg {
  margin: 0 !important;
  max-width: 680px !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-footer-actions-v10609 {
  display: inline-flex !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-last-closed-v10609,
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-sugestao-v10609 {
  max-width: 100% !important;
}
.crm-proxima-tarefa-wizard-tela-inteira-fix-v10609::backdrop {
  background: rgba(15, 23, 42, .62) !important;
}
@media (max-width: 760px) {
  .crm-proxima-tarefa-wizard-tela-inteira-fix-v10609.contact-modal {
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
  }
  .crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-header-v10609,
  .crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-body-v10609,
  .crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-footer-v10609 {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-screen-footer-v10609 {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .crm-proxima-tarefa-wizard-tela-inteira-fix-v10609 .crm-next-task-footer-actions-v10609 {
    justify-content: flex-start !important;
  }
}
/* B4Y_V10609_CRM_PROXIMA_TAREFA_WIZARD_TELA_INTEIRA_FIX_END */

/* B4Y_V10609_CRM_TAREFAS_WIZARD_3_SLIDES_FULLSCREEN_FIX_START */
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609.contact-modal {
  width: min(1280px, calc(100vw - 28px)) !important;
  height: calc(100dvh - 28px) !important;
  max-height: calc(100dvh - 28px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefas-wizard-3-slides-card-v10609 {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  background: #fff !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-slide-v10609 {
  height: 100% !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  scrollbar-gutter: stable;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-slide-v10609[hidden] {
  display: none !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-header-v10609,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-body-v10609,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-footer-v10609 {
  position: static !important;
  inset: auto !important;
  flex-shrink: 0;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-header-v10609 {
  padding: 28px 34px 16px !important;
  border-bottom: 1px solid rgba(226, 232, 240, .82) !important;
  background: #fff !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-header-v10609 h3 {
  margin: 4px 0 6px !important;
  font-size: 38px !important;
  line-height: .96 !important;
  letter-spacing: -0.045em !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-body-v10609 {
  flex: 1 0 auto !important;
  min-height: 0 !important;
  padding: 24px 34px 20px !important;
  background: #fff !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-footer-v10609 {
  margin: auto 0 0 !important;
  padding: 16px 34px 18px !important;
  border-top: 1px solid rgba(226, 232, 240, .82) !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-footer-v10609 .form-msg {
  margin: 0 !important;
  max-width: 720px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-section-v10609 {
  margin-top: 0 !important;
  padding: 20px !important;
  border-radius: 22px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .section-title-row {
  margin: 0 0 14px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .section-title-row h4 {
  font-size: 22px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, .92) !important;
  background: rgba(248, 250, 252, .66) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: block !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 summary {
  list-style: none !important;
  cursor: pointer !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  color: var(--text, #111827) !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 summary::-webkit-details-marker { display: none !important; }
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 summary span {
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 summary small {
  color: var(--muted, #6b7280) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-body-v10609 {
  padding: 0 14px 12px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-body-v10609 .crm-ocorrido-context-line-v10609 {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 7px 0 !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  border-top: 1px solid rgba(226, 232, 240, .65) !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-resultado-sugestao-v10609,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-next-task-sugestao-v10609 {
  max-width: 100% !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609::backdrop {
  background: rgba(15, 23, 42, .62) !important;
}
@media (max-width: 760px) {
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609.contact-modal {
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
  }
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-header-v10609,
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-body-v10609,
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-footer-v10609 {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-footer-v10609 {
    align-items: stretch !important;
    flex-direction: column !important;
  }
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-next-task-footer-actions-v10609 {
    justify-content: flex-start !important;
  }
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-body-v10609 .crm-ocorrido-context-line-v10609 {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }
}
/* B4Y_V10609_CRM_TAREFAS_WIZARD_3_SLIDES_FULLSCREEN_FIX_END */

/* B4Y_V10609_CRM_TAREFAS_WIZARD_SLIDE1_COMPACTO_FIX_START */
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609.contact-modal {
  width: min(1280px, calc(100vw - 24px)) !important;
  height: calc(100dvh - 22px) !important;
  max-height: calc(100dvh - 22px) !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-slide-v10609 {
  scrollbar-gutter: auto !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-header-v10609 {
  padding: 22px 34px 12px !important;
  gap: 18px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-title-row-v10609 {
  display: flex !important;
  align-items: baseline !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-title-row-v10609 h3 {
  margin: 3px 0 2px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-step-v10609 {
  color: var(--muted, #6b7280) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-tarefa-title-v10609 {
  display: none !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-meta-subline-v10609,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-next-task-meta-v10609 {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-body-v10609 {
  padding: 16px 34px 14px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 {
  margin: 0 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 summary {
  justify-content: flex-start !important;
  padding: 0 !important;
  gap: 10px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 summary span {
  color: var(--gold, #b8924a) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-v10609 summary small {
  font-size: 12px !important;
  font-weight: 400 !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-ocorrido-context-details-body-v10609 {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(226, 232, 240, .82) !important;
  border-radius: 14px !important;
  background: rgba(248, 250, 252, .58) !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-section-v10609 {
  padding: 16px !important;
  border-radius: 20px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .section-title-row {
  margin: 0 0 10px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .section-title-row h4 {
  font-size: 20px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 [data-resultado-autosuggest-v10609] .b4y-autosuggest-input,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 [data-resultado-autosuggest-v10609] .b4y-autosuggest-line {
  min-height: 44px !important;
  height: 44px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-resultado-sugestao-v10609.is-hidden,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-next-task-sugestao-v10609.is-hidden {
  display: none !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-resultado-sugestao-v10609 {
  padding: 9px 12px !important;
  border-radius: 14px !important;
  display: block !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-resultado-sugestao-v10609 span {
  font-size: 11px !important;
  letter-spacing: .04em !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-resultado-sugestao-v10609 strong {
  font-size: 14px !important;
  line-height: 1.25 !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-resultado-sugestao-v10609 p,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-resultado-sugestao-v10609 small {
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 [data-observacoes-ocorrido-v10609] .rich-text-toolbar {
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 [data-observacoes-ocorrido-v10609] .rich-text-editor,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .rich-text-editor {
  min-height: 86px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-footer-v10609 {
  padding: 12px 34px 14px !important;
}
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-next-task-footer-actions-v10609 button,
.crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-header-v10609 button {
  min-height: 48px !important;
  padding: 0 22px !important;
  border-radius: 16px !important;
  font-weight: 400 !important;
  font-size: 15px !important;
}
@media (max-width: 760px) {
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-title-row-v10609 {
    gap: 8px !important;
  }
  .crm-tarefas-wizard-3-slides-fullscreen-fix-v10609 .crm-tarefa-wizard-step-v10609 {
    font-size: 12px !important;
  }
}
/* B4Y_V10609_CRM_TAREFAS_WIZARD_SLIDE1_COMPACTO_FIX_END */

/* B4Y v1.06.10 — CRM Tarefas Visao Operacional Multiorigem */
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final {
  min-width: 1260px !important;
  table-layout: fixed;
}
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(1),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(1) { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(2),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(2) { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(3),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(3) { width: 330px !important; min-width: 330px !important; max-width: 330px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(4) { width: 260px !important; min-width: 260px !important; max-width: 260px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(5),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(5) { width: 155px !important; min-width: 155px !important; max-width: 155px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(6),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(6) { width: 105px !important; min-width: 105px !important; max-width: 105px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(7),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(7) { width: 150px !important; min-width: 150px !important; max-width: 150px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(8),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(8) { width: 110px !important; min-width: 110px !important; max-width: 110px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final th:nth-child(9),
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefas-table-refino-final td:nth-child(9) { width: 165px !important; min-width: 165px !important; max-width: 165px !important; }
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-tarefa,
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-contexto {
  white-space: normal !important;
  overflow: hidden;
  vertical-align: middle;
}
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-tarefa strong {
  display: block;
  color: var(--text, #111827);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;
}
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-tarefa small,
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-contexto small {
  display: block;
  margin-top: 3px;
  color: var(--muted, #6b7280);
  font-size: 11.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-tarefa em {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted, #6b7280);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: .03em;
}
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-contexto span {
  display: block;
  font-weight: 650;
  font-size: 12.5px;
  color: var(--text, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-responsavel,
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-atualizado,
.crm-tarefas-operacional-multiorigem-v10610 .crm-tarefa-col-prazo {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-tarefa-inline-detail-multiorigem-v10610 {
  display: grid;
  gap: 14px;
}
.crm-tarefa-detail-context-v10610 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.crm-tarefa-detail-context-v10610 > div {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 14px;
  background: rgba(248, 250, 252, .72);
  padding: 11px 12px;
}
.crm-tarefa-detail-context-v10610 span,
.crm-tarefa-inline-texts-multiorigem-v10610 h4 {
  display: block;
  margin-bottom: 4px;
  color: var(--muted, #6b7280);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.crm-tarefa-detail-context-v10610 strong {
  display: block;
  color: var(--text, #111827);
  font-size: 13px;
  line-height: 1.25;
}
.crm-tarefa-detail-context-v10610 small {
  display: block;
  margin-top: 4px;
  color: var(--muted, #6b7280);
  font-size: 11.5px;
}
.crm-tarefa-inline-texts-multiorigem-v10610 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.crm-tarefa-inline-texts-multiorigem-v10610 section {
  margin: 0 !important;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
}
.crm-tarefa-inline-texts-multiorigem-v10610 p {
  margin: 0;
  color: var(--text, #111827);
  font-size: 12.5px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .crm-tarefa-detail-context-v10610,
  .crm-tarefa-inline-texts-multiorigem-v10610 { grid-template-columns: 1fr; }
}
/* B4Y_V10610_CRM_TAREFAS_VISAO_OPERACIONAL_MULTIORIGEM_END */


/* B4Y v1.06.10 — CRM Tarefas Grid Contexto Ordenacao Datas Fix */
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefas-table-refino-final {
  min-width: 1245px !important;
}
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefas-table-refino-final th:nth-child(4),
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefas-table-refino-final td:nth-child(4) {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
}
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefas-table-refino-final th:nth-child(5),
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefas-table-refino-final td:nth-child(5) {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
}
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefas-table-refino-final th:nth-child(9),
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefas-table-refino-final td:nth-child(9) {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
}
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefa-col-contexto span,
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefa-col-contexto small {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefa-col-prazo,
.crm-tarefas-grid-contexto-ordenacao-datas-fix-v10610 .crm-tarefa-col-atualizado {
  font-variant-numeric: tabular-nums;
}

/* B4Y v1.06.10 — CRM Tarefas Card Expandido Operacional Fix */
.crm-tarefa-inline-detail-card-operacional-fix-v10610 {
  display: block;
}
.crm-tarefa-inline-texts-card-operacional-fix-v10610 {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
}
.crm-tarefa-inline-texts-card-operacional-fix-v10610 section {
  width: 100%;
  min-width: 0;
}
.crm-tarefa-detail-section-descricao-v10610 {
  background: rgba(255, 255, 255, .94) !important;
}
.crm-tarefa-detail-meta-operacional-v10610 > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-tarefa-detail-meta-operacional-v10610 span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 999px;
  background: rgba(248, 250, 252, .82);
  padding: 7px 10px;
}
.crm-tarefa-detail-meta-operacional-v10610 em {
  color: var(--muted, #6b7280);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.crm-tarefa-detail-meta-operacional-v10610 strong {
  color: var(--text, #111827);
  font-size: 12px;
  font-weight: 650;
}
/* B4Y_V10610_CRM_TAREFAS_CARD_EXPANDIDO_OPERACIONAL_FIX_END */


/* B4Y v1.06.10 — CRM Tarefas Card Expandido Clean Fix */
.crm-tarefa-inline-detail-clean-fix-v10610 {
  padding-top: 6px;
}
.crm-tarefa-inline-texts-clean-fix-v10610 {
  gap: 8px !important;
}
.crm-tarefa-detail-line-clean-v10610 {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 2px 0 6px !important;
  box-shadow: none !important;
}
.crm-tarefa-detail-line-clean-v10610 span {
  color: var(--muted, #6b7280);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.crm-tarefa-detail-line-clean-v10610 span::after {
  content: " |";
  color: rgba(100, 116, 139, .55);
  font-weight: 400;
}
.crm-tarefa-detail-line-clean-v10610 p {
  margin: 0;
  color: var(--text, #111827);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.crm-tarefa-inline-texts-clean-fix-v10610 section h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}
.crm-tarefa-inline-texts-clean-fix-v10610 section p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .crm-tarefa-detail-line-clean-v10610 {
    grid-template-columns: 1fr;
    row-gap: 3px;
  }
  .crm-tarefa-detail-line-clean-v10610 span::after {
    content: "";
  }
}
/* B4Y_V10610_CRM_TAREFAS_CARD_EXPANDIDO_CLEAN_FIX_END */


/* B4Y v1.06.10 — CRM Tarefas Card Expandido Box Duas Colunas Fix */
.crm-tarefa-inline-detail-clean-fix-v10610 {
  text-align: left !important;
}
.crm-tarefa-inline-texts-clean-fix-v10610 {
  align-items: stretch !important;
  text-align: left !important;
}
.crm-tarefa-detail-line-clean-v10610 {
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  align-items: stretch !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
.crm-tarefa-detail-line-clean-v10610 span,
.crm-tarefa-detail-line-clean-v10610 p {
  border: 1px solid rgba(203, 213, 225, .95) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .96) !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  text-align: left !important;
}
.crm-tarefa-detail-line-clean-v10610 span {
  padding: 9px 11px !important;
  color: var(--text, #111827) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}
.crm-tarefa-detail-line-clean-v10610 span::after {
  content: "" !important;
}
.crm-tarefa-detail-line-clean-v10610 p {
  margin: 0 !important;
  padding: 9px 12px !important;
  color: var(--text, #111827) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  justify-content: flex-start !important;
}
.crm-tarefa-detail-meta-operacional-v10610 {
  text-align: left !important;
}
.crm-tarefa-detail-meta-operacional-v10610 h4 {
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: var(--text, #111827) !important;
}
.crm-tarefa-detail-meta-operacional-v10610 > div {
  justify-content: flex-start !important;
  text-align: left !important;
}
@media (max-width: 720px) {
  .crm-tarefa-detail-line-clean-v10610 {
    grid-template-columns: 1fr !important;
    row-gap: 6px !important;
  }
}
/* B4Y_V10610_CRM_TAREFAS_CARD_EXPANDIDO_BOX_DUAS_COLUNAS_FIX_END */

/* B4Y v1.06.10 — CRM Tarefas Card Expandido Labels Tipo Canal Fix */
.crm-tarefa-detail-line-clean-v10610 {
  align-items: stretch !important;
}
.crm-tarefa-detail-line-clean-v10610 span,
.crm-tarefa-detail-line-clean-v10610 p {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
.crm-tarefa-detail-meta-operacional-v10610 em {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--muted, #6b7280) !important;
}
.crm-tarefa-detail-meta-operacional-v10610 strong {
  font-weight: 600 !important;
}
/* B4Y_V10610_CRM_TAREFAS_CARD_EXPANDIDO_LABELS_TIPO_CANAL_FIX_END */


/* B4Y v1.06.10-M05-CRM-Tarefas-Card-Expandido-Largura-Fix — Card expandido largura dos textos */
.crm-tarefa-inline-detail-largura-fix-v10610 {
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
.crm-tarefa-inline-texts-largura-fix-v10610 {
  width: min(100%, 1120px) !important;
  max-width: calc(100vw - 430px) !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
.crm-tarefa-inline-texts-largura-fix-v10610 .crm-tarefa-detail-line-clean-v10610 {
  width: 100% !important;
  max-width: 1120px !important;
  box-sizing: border-box !important;
  grid-template-columns: 210px minmax(0, 1fr) !important;
}
.crm-tarefa-inline-texts-largura-fix-v10610 .crm-tarefa-detail-line-clean-v10610 span,
.crm-tarefa-inline-texts-largura-fix-v10610 .crm-tarefa-detail-line-clean-v10610 p {
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.crm-tarefa-inline-texts-largura-fix-v10610 .crm-tarefa-detail-line-clean-v10610 p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.crm-tarefa-inline-texts-largura-fix-v10610 .crm-tarefa-detail-meta-operacional-v10610 {
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  box-sizing: border-box !important;
}
@media (max-width: 1180px) {
  .crm-tarefa-inline-texts-largura-fix-v10610 {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 720px) {
  .crm-tarefa-inline-texts-largura-fix-v10610 .crm-tarefa-detail-line-clean-v10610 {
    grid-template-columns: 1fr !important;
  }
}
/* B4Y_V10610_CRM_TAREFAS_CARD_EXPANDIDO_LARGURA_FIX_END */

/* B4Y v1.06.10-M05-CRM-Tarefas-Card-Expandido-Largura-Resp-Fix — limitar boxes do card expandido até a região RESP. */
.crm-tarefa-inline-detail-largura-resp-fix-v10610 {
  overflow-x: hidden !important;
}
.crm-tarefa-inline-texts-largura-resp-fix-v10610 {
  width: min(100%, 980px) !important;
  max-width: min(980px, calc(100vw - 540px)) !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
.crm-tarefa-inline-texts-largura-resp-fix-v10610 .crm-tarefa-detail-line-clean-v10610,
.crm-tarefa-inline-texts-largura-resp-fix-v10610 .crm-tarefa-detail-meta-operacional-v10610 {
  width: 100% !important;
  max-width: 980px !important;
  box-sizing: border-box !important;
}
.crm-tarefa-inline-texts-largura-resp-fix-v10610 .crm-tarefa-detail-line-clean-v10610 {
  grid-template-columns: 210px minmax(0, 1fr) !important;
}
.crm-tarefa-inline-texts-largura-resp-fix-v10610 .crm-tarefa-detail-line-clean-v10610 span,
.crm-tarefa-inline-texts-largura-resp-fix-v10610 .crm-tarefa-detail-line-clean-v10610 p {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.crm-tarefa-inline-texts-largura-resp-fix-v10610 .crm-tarefa-detail-line-clean-v10610 p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
@media (max-width: 1180px) {
  .crm-tarefa-inline-texts-largura-resp-fix-v10610 {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 720px) {
  .crm-tarefa-inline-texts-largura-resp-fix-v10610 .crm-tarefa-detail-line-clean-v10610 {
    grid-template-columns: 1fr !important;
  }
}
/* B4Y_V10610_CRM_TAREFAS_CARD_EXPANDIDO_LARGURA_RESP_FIX_END */


/* B4Y v1.06.10-M05-CRM-Tarefas-Grid-Indefinidas-Alinhamento-Status-Fix */
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefas-table-refino-final th,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefas-table-refino-final td {
  text-align: left !important;
  vertical-align: top !important;
}
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefas-table-refino-final th:nth-child(7),
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefas-table-refino-final td:nth-child(7) {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
}
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-status .b4y-crm-chip,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-prioridade .b4y-crm-chip {
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-tarefa,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-contexto,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-prazo,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-prioridade,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-status,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-responsavel,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-col-atualizado {
  text-align: left !important;
  vertical-align: top !important;
}
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-detail-row td,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-inline-detail,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-inline-texts,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-detail-line-clean-v10610,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-detail-line-clean-v10610 span,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-detail-line-clean-v10610 p,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-detail-meta-operacional-v10610,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-detail-meta-operacional-v10610 h4,
.crm-tarefas-grid-indefinidas-alinhamento-status-fix-v10610 .crm-tarefa-detail-meta-operacional-v10610 div {
  text-align: left !important;
  vertical-align: top !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
/* B4Y_V10610_CRM_TAREFAS_GRID_INDEFINIDAS_ALINHAMENTO_STATUS_FIX_END */


/* v1.06.14-M01-Usuarios-Perfis-Permissoes-UI */
.access-table-wrap-v10614 table th,
.access-table-wrap-v10614 table td {
  vertical-align: top;
  text-align: left;
}

.access-table-v10614 td small,
.access-table-v10614 th small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  font-weight: 400;
}

.access-actions-cell-v10614 {
  white-space: nowrap;
}

.access-actions-cell-v10614 .link-btn,
.access-actions-cell-v10614 .link-danger {
  margin-right: 10px;
}

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.access-modal-card-v10614 {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.access-permissions-modal-card-v10614 {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.access-form-grid-v10614 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-modal-title-v10614 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.access-permissions-body-v10614 {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.access-permission-group-v10614 {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: rgba(248, 250, 252, .72);
}

.access-permission-group-title-v10614 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.access-permission-group-title-v10614 small {
  color: var(--muted);
  font-weight: 400;
}

.access-permission-grid-v10614 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.access-permission-item-v10614 {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.access-permission-item-v10614 input {
  margin-top: 3px;
}

.access-permission-item-v10614 span {
  display: grid;
  gap: 3px;
}

.access-permission-item-v10614 strong {
  font-size: 12px;
}

.access-permission-item-v10614 small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .access-form-grid-v10614,
  .access-permission-grid-v10614 {
    grid-template-columns: 1fr;
  }
}


/* B4Y v1.06.14 - Modo Teste de Acesso UI */
.modo-teste-banner-v10614 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 20px 14px 20px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 33, 63, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.modo-teste-banner-v10614 > div {
  display: grid;
  gap: 2px;
  text-align: left;
}
.modo-teste-banner-v10614 strong {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1d4ed8;
}
.modo-teste-banner-v10614 span {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.modo-teste-banner-v10614 small {
  color: #64748b;
}
.modo-teste-panel-v10614,
.modo-teste-form-v10614 {
  text-align: left;
}
.modo-teste-status-card-v10614 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  background: #f8fafc;
}
.modo-teste-status-card-v10614.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(239, 246, 255, 0.78);
}
.modo-teste-status-card-v10614 div,
.modo-teste-info-grid-v10614 article {
  display: grid;
  gap: 3px;
}
.modo-teste-status-card-v10614 span,
.modo-teste-info-grid-v10614 span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}
.modo-teste-status-card-v10614 strong,
.modo-teste-info-grid-v10614 strong {
  color: #111827;
}
.modo-teste-status-card-v10614 small,
.modo-teste-info-grid-v10614 small {
  color: #64748b;
}
.modo-teste-info-grid-v10614 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.modo-teste-info-grid-v10614 article {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
}
.modo-teste-actions-v10614 {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .modo-teste-banner-v10614,
  .modo-teste-status-card-v10614 {
    align-items: flex-start;
    flex-direction: column;
  }
  .modo-teste-info-grid-v10614 {
    grid-template-columns: 1fr;
  }
}
