#clientesWorkspaceHost {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  contain: layout;
}
#clientesWorkspaceHost[hidden] { display: none !important; }
#clientesWorkspaceHost > #clientesWorkspace {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
#clientesWorkspaceHost .cad-card-clientes[hidden],
#clientesWorkspaceHost .cad-card-clientes[data-clientes-legacy="1"] { display: none !important; }
#clientesWorkspaceHost *,
#clientesWorkspaceHost *::before,
#clientesWorkspaceHost *::after { box-sizing: border-box; }
#clientesWorkspaceHost *::before,
#clientesWorkspaceHost *::after { content: none !important; }
#clientesWorkspaceHost button,
#clientesWorkspaceHost input,
#clientesWorkspaceHost select,
#clientesWorkspaceHost textarea,
#clientesWorkspaceHost label { margin: 0; font: inherit; line-height: 1.2; }

#clientesWorkspaceHost .clientes-workspace {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  color: #16324f;
  background: #edf4f8;
}
#clientesWorkspaceHost .clientes-operational-area { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
#clientesWorkspaceHost .clientes-master,
#clientesWorkspaceHost .clientes-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#clientesWorkspaceHost .clientes-master { flex: 0 0 var(--clientes-master-width, 36%); min-width: 27%; max-width: 40%; background: #fff; }
#clientesWorkspaceHost .clientes-splitter { flex: 0 0 8px; width: 8px; min-width: 8px; cursor: col-resize; background: #e9f0f5; border-right: 1px solid #d4e0e8; border-left: 1px solid #d4e0e8; }
#clientesWorkspaceHost .clientes-splitter { position: relative; display: flex; align-items: center; justify-content: center; }
#clientesWorkspaceHost .clientes-splitter-grip { display: grid; gap: 2px; padding: 3px 1px; }
#clientesWorkspaceHost .clientes-splitter-grip i { display: block; width: 2px; height: 2px; border-radius: 50%; background: #7e9bad; }
#clientesWorkspaceHost .clientes-splitter:hover,
#clientesWorkspaceHost .clientes-splitter:focus { outline: 0; background: #d9eaf7; }
#clientesWorkspaceHost .clientes-detail { flex: 1 1 0; background: #f7fafc; }

#clientesWorkspaceHost .clientes-eyebrow { color: #2875b6; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
#clientesWorkspaceHost .clientes-icon { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#clientesWorkspaceHost .clientes-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; border: 1px solid transparent; border-radius: 7px; padding: 7px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
#clientesWorkspaceHost .clientes-button--primary { color: #fff; background: #1769d2; border-color: #1769d2; }
#clientesWorkspaceHost .clientes-button--secondary { color: #1769d2; background: #fff; border-color: #cbdce8; }
#clientesWorkspaceHost .clientes-button--ghost { color: #1769d2; background: transparent; border-color: transparent; }
#clientesWorkspaceHost .clientes-button--icon { width: 32px; padding: 7px; color: #24577d; background: #fff; border-color: #d1e0ea; }
#clientesWorkspaceHost .clientes-button:disabled { opacity: .4; cursor: not-allowed; }

#clientesWorkspaceHost .clientes-master-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 13px 9px; border-bottom: 1px solid #e0e9ef; }
#clientesWorkspaceHost .clientes-master-head h2 { margin: 3px 0 0; color: #102f4d; font-size: 17px; letter-spacing: -.015em; }
#clientesWorkspaceHost .clientes-master-head h2 span { color: #6b8497; font-size: 12px; font-weight: 700; }
#clientesWorkspaceHost .clientes-master-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
#clientesWorkspaceHost .clientes-master-actions .clientes-button--secondary { min-height: 30px; padding: 6px 8px; font-size: 10px; }
#clientesWorkspaceHost .clientes-master-tools { position: relative; z-index: 3; flex: 0 0 auto; padding: 8px 9px; border-bottom: 1px solid #e5edf2; background: #f8fbfd; }
#clientesWorkspaceHost .clientes-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
#clientesWorkspaceHost .clientes-filter-count { flex: 0 0 100%; padding: 1px 0 0 2px; color: #59758a; font-size: 10px; font-weight: 700; white-space: nowrap; }
#clientesWorkspaceHost .clientes-search { display: flex; flex: 1 1 auto; align-items: center; gap: 6px; min-width: 0; min-height: 32px; padding: 0 8px; border: 1px solid #cbdbe6; border-radius: 7px; color: #6a879d; background: #fff; }
#clientesWorkspaceHost .clientes-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #16324f; background: transparent; font-size: 11px; }
#clientesWorkspaceHost .clientes-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#clientesWorkspaceHost .clientes-filter-popover { position: absolute; top: calc(100% - 2px); left: 9px; z-index: 20; width: min(310px, calc(100vw - 32px)); padding: 10px; border: 1px solid #cbdbe6; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(16,43,76,.16); }
#clientesWorkspaceHost .clientes-filter-popover header,
#clientesWorkspaceHost .clientes-filter-popover footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
#clientesWorkspaceHost .clientes-filter-popover header { margin-bottom: 9px; color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#clientesWorkspaceHost .clientes-filter-field { display: grid; gap: 4px; color: #6d8495; font-size: 9px; font-weight: 800; text-transform: uppercase; }
#clientesWorkspaceHost .clientes-filter-field select { width: 100%; min-height: 30px; padding: 5px 6px; border: 1px solid #cbdbe6; border-radius: 6px; color: #16324f; background: #fff; font-size: 10px; }
#clientesWorkspaceHost .clientes-filter-popover footer { margin-top: 9px; justify-content: flex-end; }

#clientesWorkspaceHost .clientes-list { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px; }
#clientesWorkspaceHost .clientes-row { display: flex; width: 100%; min-height: max-content; height: auto; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 9px 8px; border: 0; border-bottom: 1px solid #e8eff3; color: #16324f; background: #fff; text-align: left; cursor: pointer; }
#clientesWorkspaceHost .clientes-list { display: grid; align-content: start; grid-auto-rows: max-content; gap: 5px; }
#clientesWorkspaceHost .clientes-row:hover { background: #f7fbff; }
#clientesWorkspaceHost .clientes-row.is-selected { background: #edf6ff; box-shadow: inset 3px 0 0 #1769d2; }
#clientesWorkspaceHost .clientes-row-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
#clientesWorkspaceHost .clientes-row strong { display: -webkit-box; overflow-wrap: anywhere; overflow: hidden; color: #153451; font-size: 13px; line-height: 1.2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#clientesWorkspaceHost .clientes-row-fantasy { display: block; overflow-wrap: normal; word-break: normal; color: #476d87; font-size: 11px; line-height: 1.25; white-space: normal; }
#clientesWorkspaceHost .clientes-row-match { display: block; margin-top: 3px; color: #1769d2; font-size: 10px; font-weight: 700; line-height: 1.3; }
#clientesWorkspaceHost .clientes-contact-row.is-search-match { border-color: #7fb2ef; background: #eef6ff; box-shadow: inset 3px 0 0 #1769d2; }
#clientesWorkspaceHost .clientes-row-meta { display: block; overflow-wrap: normal; word-break: normal; color: #587487; font-size: 12px; line-height: 1.3; white-space: normal; }
#clientesWorkspaceHost .clientes-status { display: inline-flex; flex: 0 0 auto; align-self: center; border-radius: 999px; padding: 3px 5px; color: #237a53; background: #edf8f2; font-size: 10px; font-style: normal; font-weight: 800; }
#clientesWorkspaceHost .clientes-status.is-off { color: #7c8790; background: #f0f2f4; }
#clientesWorkspaceHost .clientes-pagination { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; border-top: 1px solid #dbe6ed; color: #6d8495; background: #fff; font-size: 10px; }
#clientesWorkspaceHost .clientes-pagination nav { display: flex; align-items: center; gap: 4px; }
#clientesWorkspaceHost .clientes-pagination .clientes-button { min-width: 28px; min-height: 28px; padding: 5px; font-size: 10px; }

#clientesWorkspaceHost .clientes-detail-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 15px 10px; border-bottom: 1px solid #dbe6ed; background: #fff; }
#clientesWorkspaceHost .clientes-detail-head h2 { margin: 3px 0 3px; color: #102f4d; font-size: 18px; letter-spacing: -.015em; }
#clientesWorkspaceHost .clientes-detail-head p { margin: 0; color: #6d8495; font-size: 11px; }
#clientesWorkspaceHost .clientes-detail-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 14px; }
#clientesWorkspaceHost .clientes-detail-head .clientes-button--danger { color: #a33a32; background: #fff; border-color: #d9938d; }
#clientesWorkspaceHost .clientes-sections { display: grid; gap: 7px; }
#clientesWorkspaceHost .clientes-section { border: 1px solid #d7e3eb; border-radius: 8px; background: #fff; }
#clientesWorkspaceHost .clientes-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 37px; padding: 4px 8px 4px 10px; }
#clientesWorkspaceHost .clientes-section-toggle { display: inline-flex; flex: 1 1 auto; align-items: center; gap: 5px; min-width: 0; padding: 5px 2px; border: 0; color: #16324f; background: transparent; font-size: 13px; font-weight: 800; text-align: left; cursor: pointer; }
#clientesWorkspaceHost .clientes-section-toggle .clientes-icon { color: #1769d2; }
#clientesWorkspaceHost .clientes-section-body { padding: 0 10px 10px; }
#clientesWorkspaceHost .clientes-section-body[hidden] { display: none; }
#clientesWorkspaceHost .clientes-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
#clientesWorkspaceHost .clientes-data-grid > div { min-width: 0; padding: 3px 0 6px; border: 0; border-bottom: 1px solid #e8eff3; background: transparent; }
#clientesWorkspaceHost .clientes-data-grid dt { color: #718898; font-size: 9px; font-weight: 800; text-transform: uppercase; }
#clientesWorkspaceHost .clientes-data-grid dd { margin: 3px 0 0; overflow-wrap: anywhere; color: #16324f; font-size: 11px; font-weight: 700; }
#clientesWorkspaceHost .clientes-hcontrol-rich-value { white-space: pre-line; line-height: 1.45; }
#clientesWorkspaceHost .clientes-hcontrol-update { display: grid; gap: 10px; color: #536f83; font-size: 11px; }
#clientesWorkspaceHost .clientes-hcontrol-update-list { display: grid; gap: 5px; }
#clientesWorkspaceHost .clientes-hcontrol-update-row { display: flex; gap: 8px; align-items: flex-start; padding: 7px; border: 1px solid #e0eaf0; border-radius: 6px; background: #f7fafc; }
#clientesWorkspaceHost .clientes-hcontrol-update-row span { display: grid; gap: 2px; }
#clientesWorkspaceHost .clientes-hcontrol-update-row small { color: #718898; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-contacts { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e0eaf0; }
#clientesWorkspaceHost .clientes-hcontrol-contacts h4 { margin: 0; color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-hcontrol-contact-list { display: grid; gap: 6px; }
#clientesWorkspaceHost .clientes-hcontrol-contact-list article { display: grid; gap: 3px; padding: 8px; border: 1px solid #e0eaf0; border-radius: 6px; background: #f7fafc; color: #536f83; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-contact-list strong { color: #16324f; font-size: 11px; }
#clientesWorkspaceHost .clientes-hcontrol-contact-actions { margin-top: 4px; min-width: 0; }
#clientesWorkspaceHost .clientes-hcontrol-contact-actions.is-paired { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#clientesWorkspaceHost .clientes-hcontrol-contact-actions.is-single { display: block; }
#clientesWorkspaceHost .clientes-hcontrol-contact-actions .clientes-button { width: 100%; min-width: 0; white-space: normal; line-height: 1.25; }

#clientesWorkspaceHost .clientes-hcontrol-update-contact { display: grid; gap: 4px; color: #536f83; font-size: 10px; font-weight: 700; }
#clientesWorkspaceHost .clientes-hcontrol-multi { display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #dbe6ed; }
#clientesWorkspaceHost .clientes-hcontrol-contacts:has(> .clientes-state) + .clientes-hcontrol-multi { display: none; }
#clientesWorkspaceHost .clientes-hcontrol-multi > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#clientesWorkspaceHost .clientes-hcontrol-multi h4 { margin: 0; color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-hcontrol-multi header small { color: #718898; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-multi header > strong { color: #1769d2; font-size: 11px; white-space: nowrap; }
#clientesWorkspaceHost .clientes-hcontrol-multi-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#clientesWorkspaceHost .clientes-hcontrol-multi-list { display: grid; gap: 6px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-row { display: grid; gap: 6px; padding: 8px; border: 1px solid #dbe6ed; border-radius: 7px; background: #f8fbfd; }
#clientesWorkspaceHost .clientes-hcontrol-multi-select { display: flex; align-items: flex-start; gap: 8px; color: #536f83; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-select span { display: grid; gap: 2px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-select strong { color: #16324f; font-size: 11px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-select small { color: #718898; }
#clientesWorkspaceHost .clientes-hcontrol-multi-config { display: grid; gap: 5px; padding: 7px 8px; border-left: 2px solid #7fb2ef; color: #536f83; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-config label { display: flex; align-items: center; gap: 5px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-config select { min-height: 28px; padding: 4px 6px; border: 1px solid #cbdbe6; border-radius: 5px; color: #16324f; background: #fff; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-config small { color: #718898; }
#clientesWorkspaceHost .clientes-hcontrol-multi-review-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
#clientesWorkspaceHost .clientes-hcontrol-multi-review-list li { display: grid; gap: 3px; padding: 8px 9px; border: 1px solid #dbe6ed; border-radius: 7px; background: #f8fbfd; }
#clientesWorkspaceHost .clientes-hcontrol-multi-review-list strong { display: block; color: #16324f; font-size: 12px; line-height: 1.3; }
#clientesWorkspaceHost .clientes-hcontrol-multi-review-list span { display: block; color: #536f83; font-size: 11px; line-height: 1.4; }
#clientesWorkspaceHost .clientes-hcontrol-multi-results { display: grid; gap: 7px; margin-top: 10px; padding: 10px; border: 1px solid #cfe0ec; border-radius: 7px; background: #f8fbfd; color: #536f83; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-results h4 { margin: 0; color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-hcontrol-multi-results ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
#clientesWorkspaceHost .clientes-hcontrol-multi-results li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #e0eaf0; padding-top: 4px; }
#clientesWorkspaceHost .clientes-contact-list { display: grid; gap: 4px; }
#clientesWorkspaceHost .clientes-contact-row { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #e8eff3; color: #536f83; font-size: 10px; }
#clientesWorkspaceHost .clientes-contact-row:last-child { border-bottom: 0; }
#clientesWorkspaceHost .clientes-contact-row div { display: grid; gap: 2px; min-width: 0; }
#clientesWorkspaceHost .clientes-contact-row strong { color: #16324f; font-size: 13px; font-weight: 800; line-height: 1.25; }
#clientesWorkspaceHost .clientes-contact-row span,
#clientesWorkspaceHost .clientes-contact-row small { overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; }
#clientesWorkspaceHost .clientes-contact-row > div:first-child small { color: #536f83; font-weight: 700; }
#clientesWorkspaceHost .clientes-contact-row > div:nth-child(2) { gap: 3px; color: #536f83; }
#clientesWorkspaceHost .clientes-primary-contact { display: grid; gap: 9px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dbe6ed; background: transparent; border: 0; border-top: 1px solid #dbe6ed; border-radius: 0; box-shadow: none; }
#clientesWorkspaceHost .clientes-primary-contact-head { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; }
#clientesWorkspaceHost .clientes-primary-contact-head strong { color: #16324f; font-size: 12px; font-weight: 800; }
#clientesWorkspaceHost .clientes-primary-contact-source { color: #1769d2; font-size: 10px; font-weight: 800; text-transform: uppercase; }
#clientesWorkspaceHost .clientes-primary-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 0; }
#clientesWorkspaceHost .clientes-primary-contact-grid > div { min-width: 0; }
#clientesWorkspaceHost .clientes-primary-contact-grid dt { color: #718898; font-size: 9px; font-weight: 800; text-transform: uppercase; }
#clientesWorkspaceHost .clientes-primary-contact-grid dd { margin: 2px 0 0; overflow-wrap: anywhere; color: #16324f; font-size: 11px; font-weight: 700; line-height: 1.35; }
#clientesWorkspaceHost .clientes-primary-contact-unavailable { color: #607b8e; font-size: 11px; line-height: 1.35; }
#clientesWorkspaceHost .clientes-form-section-title { grid-column: 1 / -1; margin-top: 8px; padding-top: 10px; border-top: 1px solid #dbe6ed; color: #16324f; font-size: 12px; font-weight: 800; }
#clientesWorkspaceHost .clientes-link-state { color: #1769d2; }
#clientesWorkspaceHost .clientes-address { display: grid; gap: 3px; padding: 2px 0; color: #536f83; font-size: 11px; }
#clientesWorkspaceHost .clientes-address strong { color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-integrations { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#clientesWorkspaceHost .clientes-integrations article { position: relative; display: grid; gap: 4px; padding: 9px; border: 1px solid #e0eaf0; border-radius: 7px; background: #f7fafc; color: #657f91; font-size: 10px; }
#clientesWorkspaceHost .clientes-integrations h4 { display: flex; align-items: center; gap: 3px; margin: 0; color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-integrations strong { color: #1769d2; font-size: 11px; }
#clientesWorkspaceHost .clientes-integrations small { font-size: 9px; }
#clientesWorkspaceHost .clientes-help { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; padding: 0; border: 1px solid #84a9c3; border-radius: 50%; color: #1769d2; background: #fff; cursor: help; }
#clientesWorkspaceHost .clientes-help .clientes-icon { width: 12px; height: 12px; }
#clientesWorkspaceHost .clientes-help-popover { position: absolute; z-index: 25; width: min(240px, calc(100vw - 32px)); margin: 5px 0 0 -210px; padding: 8px 9px; border: 1px solid #cbdbe6; border-radius: 7px; color: #536f83; background: #fff; box-shadow: 0 8px 20px rgba(16,43,76,.14); font-size: 10px; font-weight: 500; }
#clientesWorkspaceHost .clientes-detail-empty,
#clientesWorkspaceHost .clientes-state { display: grid; place-content: center; gap: 5px; min-height: 120px; padding: 18px; color: #718898; text-align: center; font-size: 11px; }
#clientesWorkspaceHost .clientes-section-body .clientes-state,
#clientesWorkspaceHost .clientes-section-body .clientes-error { min-height: 0; padding: 5px 0; }
#clientesWorkspaceHost .clientes-detail-empty strong { color: #16324f; font-size: 14px; }
#clientesWorkspaceHost .clientes-error { padding: 9px; border-radius: 6px; color: #b42318; background: #fff2f0; font-size: 11px; }
#clientesWorkspaceHost .clientes-history { display: grid; gap: 4px; padding: 9px; color: #718898; background: #f7fafc; font-size: 10px; }
#clientesWorkspaceHost .clientes-history strong { color: #536f83; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly { display: grid; grid-column: 1 / -1; gap: 4px; padding: 4px 0 1px; color: #718898; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly > strong { color: #536f83; font-size: 10px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly .clientes-check { min-height: 28px; padding: 4px 6px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly > small { color: #718898; font-size: 9px; line-height: 1.2; }

#clientesWorkspaceHost .clientes-drawer-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; justify-content: flex-end; background: rgba(16,43,76,.22); }
#clientesWorkspaceHost .clientes-drawer { display: flex; width: clamp(400px, 32vw, 470px); max-width: calc(100vw - 16px); height: 100%; min-height: 0; flex-direction: column; overflow: hidden; border-left: 1px solid #d2e0e8; background: #fff; box-shadow: -14px 0 32px rgba(16,43,76,.18); }
#clientesWorkspaceHost .clientes-drawer--wide { width: min(760px, 68vw); }
#clientesWorkspaceHost .clientes-drawer > header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px; border-bottom: 1px solid #dbe6ed; }
#clientesWorkspaceHost .clientes-drawer h2 { margin: 3px 0 0; color: #16324f; font-size: 17px; }
#clientesWorkspaceHost .clientes-drawer-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
#clientesWorkspaceHost .clientes-drawer-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 7px; padding: 10px 14px 14px; border-top: 1px solid #e7eef2; background: #fff; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-overlay { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 16px; background: rgba(16,43,76,.28); }
#clientesWorkspaceHost .clientes-hcontrol-confirm { display: flex; width: min(420px, calc(100vw - 32px)); max-height: calc(100% - 32px); min-height: 0; flex-direction: column; overflow: hidden; border: 1px solid #d2e0e8; border-radius: 10px; background: #fff; box-shadow: 0 18px 44px rgba(16,43,76,.22); }
#clientesWorkspaceHost .clientes-hcontrol-confirm--selection { width: min(520px, calc(100vw - 32px)); }
#clientesWorkspaceHost .clientes-hcontrol-confirm--compact { width: min(360px, calc(100vw - 32px)); }
#clientesWorkspaceHost .clientes-hcontrol-confirm > header { flex: 0 0 auto; padding: 14px 16px 11px; cursor: grab; border-bottom: 1px solid #e7eef2; user-select: none; touch-action: none; }
#clientesWorkspaceHost .clientes-hcontrol-confirm--dragging > header { cursor: grabbing; }
#clientesWorkspaceHost .clientes-hcontrol-confirm h2 { margin: 3px 0 0; color: #16324f; font-size: 17px; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-body { display: grid; flex: 1 1 auto; min-height: 0; gap: 11px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 16px; color: #536f83; font-size: 12px; line-height: 1.45; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-body p { margin: 0; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-body dl { display: grid; gap: 7px; margin: 0; padding: 10px; border: 1px solid #dbe6ed; border-radius: 7px; background: #f7fafc; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-body dl div { display: flex; justify-content: space-between; gap: 12px; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-body dt { color: #718898; font-size: 10px; font-weight: 800; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-body dd { margin: 0; color: #16324f; font-weight: 700; text-align: right; }
#clientesWorkspaceHost .clientes-hcontrol-confirm-note { color: #607b8e; font-size: 11px; }
#clientesWorkspaceHost .clientes-hcontrol-review-fields { display: grid; gap: 8px; }
#clientesWorkspaceHost .clientes-hcontrol-decision-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 9px 10px; border: 1px solid #dbe6ed; border-radius: 8px; background: #f8fbfd; }
#clientesWorkspaceHost .clientes-hcontrol-decision-summary strong { color: #16324f; font-size: 11px; }
#clientesWorkspaceHost .clientes-hcontrol-decision-summary span { color: #536f83; font-size: 11px; }
#clientesWorkspaceHost .clientes-hcontrol-review-field { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 10px; padding: 10px; border: 1px solid #dbe6ed; border-radius: 8px; background: #f8fbfd; }
#clientesWorkspaceHost .clientes-hcontrol-review-field > span { display: grid; gap: 3px; min-width: 0; }
#clientesWorkspaceHost .clientes-hcontrol-review-field strong { color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-hcontrol-review-field small { overflow-wrap: anywhere; color: #536f83; font-size: 11px; }
#clientesWorkspaceHost .clientes-hcontrol-review-field input { width: 15px; height: 15px; margin: 0; accent-color: #146ed1; }
#clientesWorkspaceHost .clientes-hcontrol-review-field em { color: #536f83; font-size: 10px; font-style: normal; white-space: nowrap; }
#clientesWorkspaceHost .clientes-hcontrol-confirm > footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 7px; padding: 10px 16px 14px; border-top: 1px solid #e7eef2; background: #fff; }
#clientesWorkspaceHost .clientes-drawer-form { display: grid; gap: 10px; }
#clientesWorkspaceHost .clientes-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#clientesWorkspaceHost .clientes-generated-code { display: grid; gap: 3px; grid-column: 1 / -1; padding: 8px 9px; border: 1px solid #dbe6ed; border-radius: 7px; background: #f5f9fb; color: #607b8e; font-size: 10px; }
#clientesWorkspaceHost .clientes-generated-code strong { color: #16324f; font-size: 10px; }
#clientesWorkspaceHost .clientes-generated-code span { color: #718898; font-size: 10px; }
#clientesWorkspaceHost .clientes-inferred-hint { color: #607b8e; font-size: 9px; font-weight: 600; line-height: 1.3; }
#clientesWorkspaceHost .clientes-form-grid label { display: grid; grid-column: auto; gap: 4px; color: #607b8e; font-size: 10px; font-weight: 800; }
#clientesWorkspaceHost .clientes-form-grid [hidden] { display: none !important; }
#clientesWorkspaceHost .clientes-form-grid > .clientes-generated-code,
#clientesWorkspaceHost .clientes-form-grid > label:nth-child(2) { grid-column: auto; }
#clientesWorkspaceHost .clientes-form-grid label:first-child,
#clientesWorkspaceHost .clientes-form-grid label:nth-child(2),
#clientesWorkspaceHost .clientes-form-span { grid-column: 1 / -1; }
#clientesWorkspaceHost .clientes-form-grid input,
#clientesWorkspaceHost .clientes-form-grid select { width: 100%; min-height: 34px; padding: 7px 8px; border: 1px solid #cbdbe6; border-radius: 6px; color: #16324f; background: #fff; font-size: 11px; font-weight: 400; }
#clientesWorkspaceHost .clientes-form-grid input[readonly] { color: #718898; background: #f1f6f9; }
#clientesWorkspaceHost .clientes-field-invalid input,
#clientesWorkspaceHost .clientes-field-invalid select { border-color: #d6ae45; background: #fff8d9; box-shadow: 0 0 0 2px rgba(214,174,69,.12); }
#clientesWorkspaceHost .clientes-field-message { display: block; min-height: 13px; color: #b42318; font-size: 9px; font-weight: 700; line-height: 1.35; }
#clientesWorkspaceHost .clientes-field-message[hidden] { display: none; }
#clientesWorkspaceHost .clientes-check { display: flex !important; align-items: center; gap: 6px; min-height: 30px; padding: 5px 7px; border: 1px solid #dbe6ed; border-radius: 6px; color: #16324f !important; }
#clientesWorkspaceHost .clientes-check input { width: auto; min-height: 16px; }
#clientesWorkspaceHost .clientes-drawer-form footer { display: flex; justify-content: flex-end; gap: 7px; padding-top: 9px; border-top: 1px solid #e7eef2; }
#clientesWorkspaceHost .clientes-drawer-error { min-height: 16px; color: #b42318; font-size: 10px; }
#clientesWorkspaceHost .clientes-contact-drawer-list { display: grid; gap: 7px; margin-bottom: 10px; }
#clientesWorkspaceHost .clientes-contact-drawer-list article { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 9px; border: 1px solid #dbe6ed; border-radius: 7px; background: #f8fbfd; }
#clientesWorkspaceHost .clientes-contact-drawer-list article > div { display: grid; gap: 3px; min-width: 0; }
#clientesWorkspaceHost .clientes-contact-drawer-list strong { color: #16324f; font-size: 11px; }
#clientesWorkspaceHost .clientes-contact-drawer-list span { color: #718898; font-size: 10px; }
#clientesWorkspaceHost .clientes-city-results { position: absolute; z-index: 3; display: grid; max-height: 150px; overflow: auto; padding: 4px; border: 1px solid #dbe6ed; border-radius: 6px; background: #fff; box-shadow: 0 8px 18px rgba(16,43,76,.14); }
#clientesWorkspaceHost .clientes-city-results button { display: flex; width: 100%; justify-content: space-between; padding: 6px; border: 0; color: #16324f; background: #fff; font-size: 10px; text-align: left; cursor: pointer; }
#clientesWorkspaceHost .clientes-city-results small { color: #718898; }

/* Geometria oficial: o shell fornece o topo real; o JS calcula a altura restante. */
#clientesWorkspaceHost { height: auto; }
@media (max-width: 900px) { #clientesWorkspaceHost .clientes-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #clientesWorkspaceHost .clientes-contact-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { #clientesWorkspaceHost .clientes-primary-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { #clientesWorkspaceHost .clientes-hcontrol-finance-readonly-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { #clientesWorkspaceHost .clientes-hcontrol-contact-actions.is-paired { grid-template-columns: 1fr; } #clientesWorkspaceHost { overflow: visible; } #clientesWorkspaceHost .clientes-workspace { min-height: 760px; overflow: visible; } #clientesWorkspaceHost .clientes-operational-area { overflow: visible; flex-direction: column; } #clientesWorkspaceHost .clientes-master { width: 100%; max-width: none; flex-basis: auto; } #clientesWorkspaceHost .clientes-splitter { display: none; } #clientesWorkspaceHost .clientes-detail { min-height: 480px; overflow: visible; } #clientesWorkspaceHost .clientes-list { max-height: 380px; } #clientesWorkspaceHost .clientes-integrations, #clientesWorkspaceHost .clientes-form-grid { grid-template-columns: 1fr; } #clientesWorkspaceHost .clientes-form-grid label:first-child, #clientesWorkspaceHost .clientes-form-grid label:nth-child(2), #clientesWorkspaceHost .clientes-form-span { grid-column: auto; } #clientesWorkspaceHost .clientes-drawer { width: min(470px, calc(100vw - 16px)); } }

@media (max-width: 700px) { #clientesWorkspaceHost .clientes-hcontrol-confirm-overlay { padding: 8px; } #clientesWorkspaceHost .clientes-hcontrol-confirm { width: calc(100vw - 16px); max-height: calc(100% - 16px); } #clientesWorkspaceHost .clientes-hcontrol-confirm > header { cursor: default; } }

/* A compactacao do shell existe somente enquanto o cadastro Clientes esta ativo. */
main.wrap[data-clientes-workspace-active="1"] { padding: 4px 8px 4px !important; margin-top: 0 !important; margin-bottom: 0 !important; box-sizing: border-box; }
main.wrap[data-clientes-workspace-active="1"],
main.wrap[data-clientes-workspace-active="1"] #tabCadastros,
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta),
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta) > .cad-grid { min-height: 0 !important; }
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta),
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta) > .cad-grid { display: flex !important; flex-direction: column; }
main.wrap[data-clientes-workspace-active="1"] { display: flex !important; flex-direction: column; overflow: hidden !important; }
main.wrap[data-clientes-workspace-active="1"] > .card-fonte-compacta,
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta) > .admin-head,
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta) > .cad-modulo-toolbar,
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta) > .cad-subnav { flex: 0 0 auto; }
main.wrap[data-clientes-workspace-active="1"] #tabCadastros { flex: 1 1 auto !important; height: auto !important; overflow: hidden !important; display: flex !important; flex-direction: column; }
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta) { flex: 1 1 auto !important; height: auto !important; overflow: hidden !important; }
main.wrap[data-clientes-workspace-active="1"] #tabCadastros > section.card:not(.importacao-compacta) > .cad-grid { flex: 1 1 auto !important; height: auto !important; overflow: hidden !important; }
main.wrap[data-clientes-workspace-active="1"] #tabCadastros .cad-card-clientes { display: none !important; }
main.wrap[data-clientes-workspace-active="1"] #clientesWorkspaceHost { flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; overflow: hidden !important; }
main.wrap[data-clientes-workspace-active="1"] > .card-fonte-compacta { margin-bottom: 3px !important; padding: 4px 8px !important; }
main.wrap[data-clientes-workspace-active="1"] > .card-fonte-compacta .fonte-compacta { gap: 6px !important; min-height: 28px; }
#tabCadastros[data-clientes-workspace-active="1"] { min-height: 0 !important; padding: 5px 8px 0 !important; }
#tabCadastros[data-clientes-workspace-active="1"] #importacaoInicialCard { display: none !important; }
#tabCadastros[data-clientes-workspace-active="1"] > section.card:not(.importacao-compacta) { margin-bottom: 0 !important; padding: 5px 0 0 !important; }
#tabCadastros[data-clientes-workspace-active="1"] .admin-head { margin-bottom: 3px !important; }
#tabCadastros[data-clientes-workspace-active="1"] .cad-modulo-toolbar { margin: 3px 0 4px !important; padding: 2px 0 !important; }
#tabCadastros[data-clientes-workspace-active="1"] .cad-subnav { margin-bottom: 4px !important; padding-bottom: 4px !important; }
#tabCadastros[data-clientes-workspace-active="1"] .cad-grid { margin: 0 !important; }
#tabCadastros[data-clientes-workspace-active="1"] #clientesWorkspaceHost { width: 100% !important; }

#clientesWorkspaceHost .clientes-batch { display: grid; gap: 10px; }
#clientesWorkspaceHost .clientes-batch-note { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid #cfe0eb; border-radius: 7px; color: #607b8e; background: #f7fafc; font-size: 10px; }
#clientesWorkspaceHost .clientes-batch-note strong { color: #16324f; font-size: 11px; }
#clientesWorkspaceHost .clientes-batch-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#clientesWorkspaceHost .clientes-batch-kpi { display: grid; gap: 2px; min-height: 52px; padding: 7px; border: 1px solid #dbe6ed; border-radius: 7px; color: #607b8e; background: #fff; text-align: left; cursor: pointer; }
#clientesWorkspaceHost .clientes-batch-kpi strong { color: #1769d2; font-size: 16px; }
#clientesWorkspaceHost .clientes-batch-kpi span { font-size: 9px; font-weight: 700; }
#clientesWorkspaceHost .clientes-batch-kpi.is-active { border-color: #7fb2ef; background: #eef6ff; }
#clientesWorkspaceHost .clientes-batch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #607b8e; font-size: 10px; }
#clientesWorkspaceHost .clientes-batch-list { display: grid; gap: 6px; }
#clientesWorkspaceHost .clientes-batch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px; border: 1px solid #dbe6ed; border-radius: 7px; background: #fff; }
#clientesWorkspaceHost .clientes-batch-row > div { display: grid; gap: 3px; min-width: 0; }
#clientesWorkspaceHost .clientes-batch-row strong { color: #16324f; font-size: 11px; }
#clientesWorkspaceHost .clientes-batch-row span { color: #607b8e; font-size: 10px; overflow-wrap: anywhere; }
#clientesWorkspaceHost .clientes-batch-row small { color: #9a5b19; font-size: 9px; }
#clientesWorkspaceHost .clientes-batch-status { flex: 0 0 auto; border-radius: 999px; padding: 4px 6px; font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
#clientesWorkspaceHost .clientes-batch-status--documento_exato { color: #1769d2; background: #eaf3ff; }
#clientesWorkspaceHost .clientes-batch-status--ja_vinculado { color: #237a53; background: #edf8f2; }
#clientesWorkspaceHost .clientes-batch-status--sem_correspondencia { color: #607b8e; background: #f1f4f6; }
#clientesWorkspaceHost .clientes-batch-status--conflito { color: #a33a32; background: #fff0ef; }
#clientesWorkspaceHost .clientes-batch-status--documento_invalido { color: #9a5b19; background: #fff7e8; }
#clientesWorkspaceHost .clientes-full-batch-launch { display: grid; gap: 5px; margin-top: 10px; padding: 10px; border: 1px solid #b9d5ef; border-radius: 8px; background: #f1f8ff; }
#clientesWorkspaceHost .clientes-full-batch-launch small { color: #607b8e; font-size: 10px; }
#clientesWorkspaceHost .clientes-full-batch-modal { width: min(760px, calc(100vw - 32px)); height: calc(100% - 16px); max-height: calc(100% - 16px); }
#clientesWorkspaceHost .clientes-full-batch-modal > header { cursor: default; }
#clientesWorkspaceHost .clientes-full-batch-modal .clientes-hcontrol-confirm-body { min-height: 0; overflow-y: auto; }
#clientesWorkspaceHost .clientes-full-batch-modal > footer { position: relative; z-index: 1; }
#clientesWorkspaceHost .clientes-full-batch-confirm-modal { width: min(900px, calc(100vw - 32px)); }
#clientesWorkspaceHost .clientes-full-batch-confirm-note { padding: 9px 10px; border: 1px solid #dbe6ed; border-radius: 8px; background: #f7fafc; color: #536f83; }
#clientesWorkspaceHost .clientes-full-batch-confirm-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
#clientesWorkspaceHost .clientes-full-batch-confirm-item { display: grid; gap: 5px; padding: 10px 11px; border: 1px solid #dbe6ed; border-radius: 8px; background: #fff; }
#clientesWorkspaceHost .clientes-full-batch-confirm-item strong { color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-full-batch-confirm-item span,
#clientesWorkspaceHost .clientes-full-batch-confirm-item small { display: block; color: #536f83; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
#clientesWorkspaceHost .clientes-full-batch-confirm-status { color: #a33a32 !important; font-weight: 800; }
#clientesWorkspaceHost .clientes-full-batch-confirm-note.is-processing { border-color: #9ec5f0; color: #125a9c; background: #edf6ff; font-weight: 800; }
#clientesWorkspaceHost .clientes-full-batch-complete { display: grid; gap: 7px; padding: 14px; border: 1px solid #9fd7b7; border-radius: 9px; color: #1f6f49; background: #edf9f2; }
#clientesWorkspaceHost .clientes-full-batch-complete strong { color: #17653f; font-size: 15px; }
#clientesWorkspaceHost .clientes-full-batch-complete span { color: #2d7453; font-size: 12px; line-height: 1.5; }


#clientesWorkspaceHost .clientes-full-batch-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px; border: 1px solid #dbe6ed; border-radius: 8px; background: #f7fafc; }
#clientesWorkspaceHost .clientes-full-batch-summary strong { color: #1769d2; font-size: 12px; }
#clientesWorkspaceHost .clientes-full-batch-summary .clientes-button { margin-left: auto; min-height: 27px; padding: 5px 7px; font-size: 10px; }
#clientesWorkspaceHost .clientes-full-batch-summary .clientes-button + .clientes-button { margin-left: 0; }
#clientesWorkspaceHost .clientes-full-batch-card { border: 1px solid #d6e3eb; border-radius: 8px; background: #fff; }
#clientesWorkspaceHost .clientes-full-batch-card + .clientes-full-batch-card { margin-top: 8px; }
#clientesWorkspaceHost .clientes-full-batch-card-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 0; background: transparent; color: #16324f; text-align: left; cursor: pointer; }
#clientesWorkspaceHost .clientes-full-batch-card-head span { display: grid; gap: 3px; min-width: 0; }
#clientesWorkspaceHost .clientes-full-batch-card-head small,
#clientesWorkspaceHost .clientes-full-batch-card-head em { color: #607b8e; font-size: 10px; font-style: normal; }
#clientesWorkspaceHost .clientes-full-batch-card-body { display: grid; gap: 12px; padding: 0 10px 10px; }
#clientesWorkspaceHost .clientes-full-batch-fields,
#clientesWorkspaceHost .clientes-full-batch-contacts { display: grid; gap: 6px; }
#clientesWorkspaceHost .clientes-full-batch-fields h4,
#clientesWorkspaceHost .clientes-full-batch-contacts h4 { margin: 0; color: #16324f; font-size: 12px; }
#clientesWorkspaceHost .clientes-full-batch-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; padding: 7px; border: 1px solid #e3ebf0; border-radius: 6px; background: #fbfdfe; }
#clientesWorkspaceHost .clientes-full-batch-field span { display: grid; gap: 2px; }
#clientesWorkspaceHost .clientes-full-batch-field small { color: #607b8e; font-size: 10px; overflow-wrap: anywhere; }
#clientesWorkspaceHost .clientes-full-batch-contact-actions { display: flex; gap: 6px; flex-wrap: wrap; }
#clientesWorkspaceHost .clientes-full-batch-contact-actions .clientes-button { min-height: 27px; padding: 5px 7px; font-size: 10px; }
#clientesWorkspaceHost .clientes-full-batch-contact { padding: 7px; border: 1px solid #e3ebf0; border-radius: 6px; }
#clientesWorkspaceHost .clientes-full-batch-contact > label { display: flex; gap: 7px; align-items: flex-start; }
#clientesWorkspaceHost .clientes-full-batch-contact > label span { display: grid; gap: 2px; }
#clientesWorkspaceHost .clientes-full-batch-contact small,
#clientesWorkspaceHost .clientes-full-batch-contact-note { color: #607b8e; font-size: 10px; }
#clientesWorkspaceHost .clientes-full-batch-contact-config { display: grid; gap: 6px; margin: 7px 0 0 22px; padding-top: 6px; border-top: 1px solid #edf2f5; font-size: 10px; }
#clientesWorkspaceHost .clientes-full-batch-contact-config select { min-height: 26px; margin-left: 4px; border: 1px solid #cadbe6; border-radius: 5px; }
#clientesWorkspaceHost .clientes-full-batch-contact-fields { display: flex; flex-wrap: wrap; gap: 6px 10px; }
#clientesWorkspaceHost .clientes-full-batch-contact-fields label { display: inline-flex; gap: 4px; align-items: center; }
#clientesWorkspaceHost .clientes-batch-result { display: grid; gap: 4px; margin-top: 10px; padding: 9px; border: 1px solid #cce6d8; border-radius: 7px; color: #237a53; background: #f1fbf5; font-size: 10px; }
@media (max-width: 900px) { #clientesWorkspaceHost .clientes-drawer--wide { width: min(620px, calc(100vw - 16px)); } #clientesWorkspaceHost .clientes-batch-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } #clientesWorkspaceHost .clientes-hcontrol-review-field { grid-template-columns: minmax(0, 1fr) auto; } #clientesWorkspaceHost .clientes-hcontrol-review-field em { grid-column: 1 / -1; } }


/* PEND-023 • Outros enderecos do Cliente */
#clientesWorkspaceHost .clientes-address-list .clientes-contact-row {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr) auto;
  align-items: center;
}
#clientesWorkspaceHost .clientes-contact-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#clientesWorkspaceHost .clientes-contact-row-actions .clientes-button {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}
#clientesWorkspaceHost [data-address-form] input[readonly] {
  background: #f5f8fa;
  color: #405f76;
  cursor: default;
}
@media (max-width: 900px) {
  #clientesWorkspaceHost .clientes-address-list .clientes-contact-row {
    grid-template-columns: 1fr;
  }
  #clientesWorkspaceHost .clientes-contact-row-actions {
    justify-content: flex-start;
  }
}

/* Revisão local de identidade DigiSAC, dentro de Integrações. */
.clientes-digisac-reviews { display: grid; gap: 12px; width: 100%; }
.clientes-digisac-review { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid var(--border, #dce2e8); border-radius: 8px; overflow-wrap: anywhere; }

/* A4: confirmação financeira junto ao Contato existente. */
.clientes-financeiro-state,.clientes-financeiro-summary { display:flex; flex-direction:column; gap:6px; }
.clientes-financeiro-summary { margin-bottom:12px; }
.clientes-financeiro-state button { align-self:flex-start; }


/* PEND-022/026/027 • saneamento final do Cadastro Mestre */
#clientesWorkspaceHost .clientes-phone-hint { margin-top:-2px; color:#718898; font-size:9px; line-height:1.25; }
#clientesWorkspaceHost .clientes-finance-flags { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
#clientesWorkspaceHost .clientes-finance-flags .clientes-check { min-height:30px; padding:5px 7px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly { display:grid; grid-column:1 / -1; gap:4px; padding:4px 0 1px; color:#718898; font-size:10px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly > strong { color:#536f83; font-size:10px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly .clientes-check { min-height:28px; padding:4px 6px; }
#clientesWorkspaceHost .clientes-hcontrol-finance-readonly > small { color:#718898; font-size:9px; line-height:1.2; }
#clientesWorkspaceHost .clientes-integrations { align-items:start; }
#clientesWorkspaceHost .clientes-integration-card { gap:7px; padding:8px; }
#clientesWorkspaceHost .clientes-integration-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
#clientesWorkspaceHost .clientes-integration-head > div { display:grid; gap:2px; min-width:0; }
#clientesWorkspaceHost .clientes-integration-head .clientes-button,
#clientesWorkspaceHost .clientes-integration-actions .clientes-button,
#clientesWorkspaceHost .clientes-financeiro-state .clientes-button,
#clientesWorkspaceHost .clientes-contact-row-actions .clientes-button { min-height:26px; padding:4px 7px; border-radius:6px; font-size:10px; }
#clientesWorkspaceHost .clientes-integration-status { flex:0 0 auto; color:#607b8e; font-size:9px; font-weight:800; }
#clientesWorkspaceHost .clientes-integration-status.is-ok { color:#147a49; }
#clientesWorkspaceHost .clientes-tech-details { border-top:1px solid #e4edf2; padding-top:5px; color:#607b8e; }
#clientesWorkspaceHost .clientes-tech-details summary { width:max-content; max-width:100%; color:#47718f; font-size:9px; font-weight:800; cursor:pointer; }
#clientesWorkspaceHost .clientes-tech-details > div { display:grid; gap:3px; padding-top:6px; }
#clientesWorkspaceHost .clientes-tech-details .clientes-button { justify-self:start; margin-top:3px; min-height:25px; padding:3px 6px; font-size:9px; }
#clientesWorkspaceHost .clientes-digisac-reviews { gap:7px; }
#clientesWorkspaceHost .clientes-digisac-review { gap:6px; padding:8px; background:#fff; }
#clientesWorkspaceHost .clientes-digisac-review-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; width:100%; }
#clientesWorkspaceHost .clientes-digisac-review-head > div { display:grid; gap:2px; min-width:0; }
#clientesWorkspaceHost .clientes-digisac-result { display:grid; gap:2px; width:100%; padding:5px 6px; border-radius:6px; background:#f7fafc; }
#clientesWorkspaceHost .clientes-digisac-candidate { display:grid; gap:1px; }
#clientesWorkspaceHost .clientes-integration-actions { display:flex; flex-wrap:wrap; gap:4px; align-items:center; }
#clientesWorkspaceHost .clientes-financeiro-state { display:flex; flex-flow:row wrap; align-items:center; gap:4px 7px; }
#clientesWorkspaceHost .clientes-financeiro-state > small:first-child { color:#607b8e; }
#clientesWorkspaceHost .clientes-financeiro-state [role="alert"] { flex-basis:100%; }
#clientesWorkspaceHost .clientes-financeiro-summary { margin-bottom:8px; gap:3px; }
@media (max-width:700px) {
  #clientesWorkspaceHost .clientes-finance-flags,
  #clientesWorkspaceHost .clientes-hcontrol-finance-readonly-grid { grid-template-columns:1fr; }
}


/* Gateway Financeiro: estado da automacao por Cliente */
.clientes-finance-auto-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid var(--border, #d9e1e8);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.clientes-finance-auto-badge.is-active {
  background: #eef8f1;
}
.clientes-finance-auto-badge.is-paused {
  background: #fff4e8;
}
.clientes-finance-auto-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border, #d9e1e8);
  border-radius: 10px;
  background: #f8fafc;
}
.clientes-finance-auto-card > div {
  display: grid;
  gap: 3px;
}
.clientes-finance-auto-card small {
  display: block;
}
.clientes-finance-auto-card.is-paused {
  background: #fff8ef;
}
.clientes-finance-auto-card.is-error {
  background: #fff4f4;
}
@media (max-width: 700px) {
  .clientes-finance-auto-card {
    align-items: stretch;
    flex-direction: column;
  }
}
