/* Duração comum para estados de interação; sem animar dimensões ou posicionamento. */
:root {
  --zap-interaction-duration: 240ms;
  --zap-interaction-easing: cubic-bezier(.2, .7, .2, 1);
}
html body :where(*) {
  transition-property: background-color, color, border-color, box-shadow, opacity, outline-color, fill, stroke;
  transition-duration: var(--zap-interaction-duration);
  transition-timing-function: var(--zap-interaction-easing);
}
html[data-bs-theme] body :is(a, button, input, select, textarea, label, .btn, .nav-link, .dropdown-item, .list-group-item, .zap-contact-row, #zap-group-members li, .swal2-styled, .table tbody tr, .table tbody td) {
  transition: background-color var(--zap-interaction-duration) var(--zap-interaction-easing),
    color var(--zap-interaction-duration) var(--zap-interaction-easing),
    border-color var(--zap-interaction-duration) var(--zap-interaction-easing),
    box-shadow var(--zap-interaction-duration) var(--zap-interaction-easing),
    opacity var(--zap-interaction-duration) var(--zap-interaction-easing),
    outline-color var(--zap-interaction-duration) var(--zap-interaction-easing);
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@font-face {
  font-family: 'Roboto Variable';
  src: url('/fonts/roboto-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root, [data-bs-theme="light"] {
  --zap-bg: #f0f4f2;
  --zap-surface: #ffffff;
  --zap-complement: #f5f7f6;
  --zap-text: #17231d;
  --zap-muted: #58675e;
  --zap-primary: #e0f2e7;
  --zap-on-primary: #15603e;
  --zap-accent: #1daa61;
  --zap-action: #15603e;
  --zap-on-action: #ffffff;
  --zap-border: #d9e0dc;
  --zap-error: #b42332;
  --zap-warning: #805000;
  --zap-info: #185d8b;
  --zap-error-bg: #fff0f0;
  --zap-warning-bg: #fff4d6;
  --zap-info-bg: #eaf4ff;
  --zap-shadow: 0 8px 32px rgb(0 0 0 / 12%);
  --zap-shadow-small: 0 2px 8px rgb(0 0 0 / 6%);
  --zap-font: 'Roboto Variable', Roboto, system-ui, sans-serif;
  --zap-text-xs: .75rem;
  --zap-text-sm: .875rem;
  --zap-text-md: 1rem;
  --zap-text-lg: 1.375rem;
  --zap-space-1: 2px;
  --zap-space-2: 4px;
  --zap-space-3: 8px;
  --zap-space-4: 12px;
  --zap-space-5: 16px;
  --zap-space-6: 20px;
  --zap-space-7: 24px;
  --zap-radius-sm: 8px;
  --zap-radius: 12px;
  --zap-radius-lg: 24px;
  --zap-pill: 999px;
  --zap-layer-details: 30;
  --zap-layer-toast: 1090;
  --zap-motion: 240ms cubic-bezier(.22, 1, .36, 1);
  --zap-viewport: 100dvh;
}
[data-bs-theme="dark"] {
  --zap-bg: #262524;
  --zap-surface: #1d1f1f;
  --zap-complement: #161717;
  --zap-text: #fafafa;
  --zap-muted: #a8a8a7;
  --zap-primary: #103529;
  --zap-on-primary: #d9fdd3;
  --zap-accent: #21c063;
  --zap-action: #21c063;
  --zap-on-action: #0a0a0a;
  --zap-border: #3c3b3a;
  --zap-error: #ff9ea6;
  --zap-warning: #f5ce7e;
  --zap-info: #9bceff;
  --zap-error-bg: #411e23;
  --zap-warning-bg: #352b18;
  --zap-info-bg: #192e41;
  --zap-shadow: 0 8px 32px rgb(0 0 0 / 30%);
}
html[data-bs-theme] {
  --bs-body-font-family: var(--zap-font);
  --bs-body-font-size: var(--zap-text-sm);
  --bs-body-color: var(--zap-text);
  --bs-body-bg: var(--zap-bg);
  --bs-secondary-color: var(--zap-muted);
  --bs-tertiary-bg: var(--zap-complement);
  --bs-secondary-bg: var(--zap-complement);
  --bs-border-color: var(--zap-border);
  --bs-border-radius: var(--zap-radius-sm);
  --bs-border-radius-lg: var(--zap-radius);
  --bs-primary: var(--zap-action);
  --bs-link-color: var(--zap-action);
  --bs-link-hover-color: var(--zap-on-primary);
  --bs-primary-rgb: 21, 96, 62;
  --dark-1: var(--zap-border);
  --secondary: var(--zap-muted);
  --attachment-type-photos-color: var(--zap-info);
  --attachment-type-camera-color: var(--zap-info);
  --attachment-type-documents-color: var(--zap-info);
  --attachment-type-catalog-color: var(--zap-action);
  --attachment-type-quick-replies-color: var(--zap-warning);
}
html[data-bs-theme="dark"] {
  --bs-primary-rgb: 33, 192, 99;
}
html[data-bs-theme] body {
  background: var(--zap-bg);
  color: var(--zap-text);
  font: 400 var(--zap-text-sm)/1.5 var(--zap-font);
}
html[data-bs-theme] :is(h1, h2, h3, h4, h5, h6) {
  color: var(--zap-text);
  font-weight: 545;
}
h1, h2 {
  font-size: var(--zap-text-lg);
}
h3, h4 {
  font-size: var(--zap-text-md);
}
h5, h6 {
  font-size: var(--zap-text-sm);
}
button, input, select, textarea {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--zap-action);
  outline-offset: 3px;
}
html[data-bs-theme] .text-muted, .text-muted-zap5 {
  color: var(--zap-muted) !important;
}
html[data-bs-theme] .bg-light {
  background: var(--zap-complement) !important;
}
html[data-bs-theme] .bg-primary {
  background: var(--zap-primary) !important;
  color: var(--zap-on-primary);
}
html[data-bs-theme] .text-primary {
  color: var(--zap-action) !important;
}
html[data-bs-theme] .btn {
  min-height: 40px;
  border-radius: var(--zap-radius-sm);
  font-weight: 545;
  font-size: var(--zap-text-sm);
  transition: background-color var(--zap-motion), border-color var(--zap-motion);
  line-height: 29px;
}
html[data-bs-theme] .btn-primary {
  --bs-btn-bg: var(--zap-action);
  --bs-btn-border-color: var(--zap-action);
  --bs-btn-color: var(--zap-on-action);
  --bs-btn-hover-bg: var(--zap-on-primary);
  --bs-btn-hover-color: var(--zap-complement);
  --bs-btn-hover-border-color: var(--zap-on-primary);
  --bs-btn-active-bg: var(--zap-on-primary);
  --bs-btn-active-color: var(--zap-complement);
  --bs-btn-disabled-bg: var(--zap-action);
  --bs-btn-disabled-border-color: var(--zap-action);
  --bs-btn-disabled-color: var(--zap-on-action);
}
html[data-bs-theme] :is(.btn-light, .btn-outline-secondary, .btn-soft-primary) {
  color: var(--zap-text);
  background: var(--zap-complement);
  border-color: var(--zap-border);
}
html[data-bs-theme] .btn-link {
  color: var(--zap-action);
}
html[data-bs-theme] .btn-danger {
  color: var(--zap-error);
  background: var(--zap-error-bg);
  border-color: var(--zap-error);
}
html[data-bs-theme] :is(.form-control, .form-select) {
  background-color: var(--zap-surface);
  color: var(--zap-text);
  border-color: var(--zap-border);
  min-height: 44px;
  font-size: var(--zap-text-sm);
}
html[data-bs-theme] :is(.form-control, .form-select):focus {
  border-color: var(--zap-action);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--zap-action) 20%, transparent);
}
html[data-bs-theme] :is(.form-control, .form-select)::placeholder {
  color: var(--zap-muted);
}
html[data-bs-theme] .form-floating > label {
  color: var(--zap-muted);
}
html[data-bs-theme] .form-floating > .form-control {
  min-height: 58px;
}
html[data-bs-theme] :is(.card, .modal-content, .dropdown-menu, .list-group-item, .offcanvas, .swal2-popup) {
  color: var(--zap-text);
  background: var(--zap-surface);
  border-color: var(--zap-border);
}
html[data-bs-theme] .card {
  border-radius: var(--zap-radius);
  box-shadow: none;
  margin-bottom: 16px;
}
html[data-bs-theme] .card-body {
  padding: var(--zap-space-7);
}
html[data-bs-theme] .dropdown-menu {
  box-shadow: var(--zap-shadow);
  border-radius: var(--zap-radius);
  padding: 8px;
}
html[data-bs-theme] .dropdown-item {
  color: var(--zap-text);
  min-height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
html[data-bs-theme] body .dropdown-item:is(:hover, :focus, :active) {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] .modal-header {
  border-bottom-color: var(--zap-border);
  background: var(--zap-surface);
}
html[data-bs-theme] .modal-header .text-white {
  color: var(--zap-text) !important;
}
html[data-bs-theme] .modal-content {
  border-radius: var(--zap-radius);
  box-shadow: var(--zap-shadow);
}
html[data-bs-theme] .table {
  --bs-table-bg: var(--zap-surface);
  --bs-table-color: var(--zap-text);
  --bs-table-striped-bg: var(--zap-complement);
  --bs-table-striped-color: var(--zap-text);
  --bs-table-hover-bg: var(--zap-primary);
  --bs-table-hover-color: var(--zap-on-primary);
  --bs-table-border-color: var(--zap-border);
}
.table td, .table th {
  padding: 12px 16px;
  vertical-align: middle;
}
.table thead th {
  font-size: 12px;
  color: var(--zap-muted);
  font-weight: 700;
}
.table-responsive {
  border: 1px solid var(--zap-border);
  border-radius: var(--zap-radius);
}
.table-responsive .table {
  border: 0;
  margin: 0;
}
.table-responsive .dropdown-menu {
  position: fixed;
}
html[data-bs-theme] .alert-danger {
  background: var(--zap-error-bg);
  color: var(--zap-error);
  border-color: var(--zap-error);
}
html[data-bs-theme] .alert-warning {
  background: var(--zap-warning-bg);
  color: var(--zap-warning);
  border-color: var(--zap-border);
}
html[data-bs-theme] .alert-info {
  background: var(--zap-info-bg);
  color: var(--zap-info);
  border-color: var(--zap-border);
}
html[data-bs-theme] .page-link {
  background: var(--zap-surface);
  color: var(--zap-action);
  border-color: var(--zap-border);
  min-width: 40px;
  min-height: 40px;
}
html[data-bs-theme] .active > .page-link {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
.form-check-input:focus, .form-check-input:hover, .form-check-input:active {
	box-shadow: none !important;
}
.zap-brand {
  color: var(--zap-action);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.5px;
}
.zap-theme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--zap-muted);
  margin: 0;
}
.zap-theme-control .form-select {
  width: 108px;
}
.zap-auth-header, .zap-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}
.zap-auth-header > :last-child, .zap-panel-header > :last-child {
  margin-left: auto;
}
.zap-auth-main {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 156px);
  padding: 24px;
}
.zap-auth-card {
  width: min(100%, 440px);
  background: var(--zap-surface);
  border: 1px solid var(--zap-border);
  border-radius: var(--zap-radius-lg);
  padding: 32px;
  box-shadow: var(--zap-shadow-small);
}
.zap-auth-card h1 {
  margin: 8px 0 12px;
}
.zap-auth-card form {
  margin-top: 24px;
}
.zap-eyebrow {
  color: var(--zap-action);
  font-weight: 700;
  margin: 0;
}
.zap-auth-footer {
  text-align: center;
  padding: 16px;
  color: var(--zap-muted);
}
.zap-access-help {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--zap-border);
}
.zap-access-help summary {
  color: var(--zap-action);
  cursor: pointer;
}
.zap-access-help p {
  color: var(--zap-muted);
  margin: 12px 0 0;
}
.zap-panel-header {
  padding: 16px 0 24px;
}
body[data-zap-surface="panel"] > .layout-wrapper > .user-chat {
  margin-left: 208px;
  min-width: 0;
  padding: 0 16px 24px;
  background: var(--zap-bg);
}
body[data-zap-surface="panel"] {
  --zap-nav-width: 208px;
}
body[data-zap-surface="panel"] .side-menu {
  padding: 16px 8px;
}
body[data-zap-surface="panel"] .side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body[data-zap-surface="panel"] .side-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
}
.zap-nav-label {
  font-size: 14px;
}
body[data-zap-surface="panel"] .card-body.row {
  margin: 0;
}
body[data-zap-surface="panel"] .card-body.py-0 {
  padding-block: 20px !important;
}
body[data-zap-surface="panel"] .width-form {
  max-width: 1100px;
}
body[data-zap-surface="panel"] form.col-md-8 {
  width: 100%;
}
body[data-zap-surface="panel"] .navbar-collapse {
  display: flex;
}
body[data-zap-surface="panel"] .navbar-nav {
  flex-direction: row;
  gap: 16px;
}
html[data-bs-theme] .navbar .nav-link {
  color: var(--zap-on-primary);
}
.departaments-list-form {
  max-height: 280px;
  overflow: auto;
}
body[data-zap-surface="chat"] {
  height: var(--zap-viewport);
  overflow: hidden;
}
body[data-zap-surface="chat"] .layout-wrapper {
  display: flex;
  height: 100%;
}
html[data-bs-theme] .side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--zap-nav-width, 72px);
  z-index: 20;
  background: var(--zap-complement);
  border-right: 1px solid var(--zap-border);
}
.side-menu .navbar-brand-box {
  height: 72px;
  display: grid;
  place-items: center;
}
.side-menu .logo-light {
  display: none;
}
.side-menu-nav {
  padding: 8px;
}
html[data-bs-theme] .side-menu .nav-link {
  position: relative;
  color: var(--zap-muted);
  border-radius: var(--zap-radius);
  min-height: 48px;
  font-size: 24px;
  text-align: center;
}
html[data-bs-theme] .side-menu .nav-link.active {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] .chat-leftsidebar {
  flex: 0 0 344px;
  width: 344px;
  margin-left: 72px;
  background: var(--zap-surface);
  border-right: 1px solid var(--zap-border);
  min-height: 0;
}
.zap-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px;
}
.zap-list-header strong {
  font-size: 22px;
}
.zap-list-header .zap-theme-control > span {
  display: none;
}
.zap-chat-search {
  padding: 0 16px 16px;
}
.chat-room-list {
  height: calc(var(--zap-viewport) - 190px);
  overflow-y: auto;
}
.chat-leftsidebar > .tab-content {
  min-height: 0;
}
.chat-leftsidebar #TabTypesChat {
  padding: 0 12px;
  gap: 8px;
  flex-wrap: nowrap;
}
.chat-leftsidebar #TabTypesChat li {
  flex: 1;
}
html[data-bs-theme] .nav-pills .nav-link {
  color: var(--zap-muted);
  border-radius: var(--zap-radius-sm);
}
html[data-bs-theme] .nav-pills .nav-link.active {
  color: var(--zap-on-primary);
  background: var(--zap-primary);
}
.chat-list {
  list-style: none;
  padding: 0;
}
.chat-leftsidebar .chat-list > li {
  margin: 2px 8px;
  border-radius: 12px;
}
html[data-bs-theme] .chat-leftsidebar .chat-list > li > a {
  display: block;
  padding: 12px;
  color: var(--zap-text);
  border-radius: 12px;
}
html[data-bs-theme] .chat-leftsidebar .chat-list > li:is(.active, :hover) {
  background: var(--zap-primary);
}
.chat-leftsidebar .chat-list .qtd_msgs {
  border-radius: var(--zap-pill);
  padding: 2px 6px;
  background: var(--zap-action);
  color: var(--zap-on-action);
}
.chat-leftsidebar .chat-list p {
  color: var(--zap-muted);
  margin: 0;
}
.chat-leftsidebar .chat-list .overflow-hidden {
  min-width: 0;
}
.header-waiting, .header-my, .header-other {
  padding: 12px 8px 4px;
  color: var(--zap-muted);
}
.header-other h6 {
  color: var(--zap-muted);
}
html[data-bs-theme] .user-chat {
  min-width: 0;
  background: var(--zap-bg);
  position: relative;
}
body[data-zap-surface="chat"] .user-chat {
  flex: 1;
}
.user-chat-overlay {
  display: none;
}
#Chat {
  height: 100%;
}
#Chat > .w-100 {
  display: flex;
  flex-direction: column;
}
#users-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
html[data-bs-theme] .user-chat-topbar {
  background: var(--zap-surface);
  border-bottom: 1px solid var(--zap-border);
  z-index: 2;
  flex: none;
}
.user-chat-topbar .row {
  row-gap: 8px;
}
.user-chat-topbar .col-sm-4 {
  width: 100%;
}
.user-chat-topbar .col-sm-8 {
  width: 100%;
}
.user-chat-topbar .list-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.user-chat-topbar .list-inline-item {
  margin: 0;
}
.chat-user-img, .avatar-sm {
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.avatar-lg {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.avatar-xl {
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.profile-user {
  width: 32px;
  height: 32px;
  object-fit: cover;
}
.chat-conversation {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
}
.chat-conversation-list {
  padding: 0;
  margin: 0;
}
.chat-conversation-list > li {
  display: flex;
  margin-bottom: 12px;
}
.chat-conversation-list > li.right {
  justify-content: flex-end;
}
.chat-conversation .conversation-list {
  max-width: min(80%, 640px);
  min-width: 0;
}
.chat-conversation .conversation-list .ctext-wrap {
  margin-bottom: 0;
  display: flex;
  align-items: start;
  gap: 4px;
  position: relative;
}
html[data-bs-theme] .ctext-wrap-content {
  background: var(--zap-surface);
  color: var(--zap-text);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--zap-border);
  min-width: 100px;
  overflow-wrap: anywhere;
}
html[data-bs-theme] .right .ctext-wrap-content {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
  border-color: transparent;
}
.ctext-content {
  text-align: left;
}
.ctext-content p {
  margin: 0 0 4px;
}
.ctext-content a {
  color: var(--zap-info);
}
.ctext-wrap-content .text-end {
  margin-top: 4px;
  font-size: 12px;
  color: var(--zap-muted);
}
.ctext-wrap .dropdown .btn {
  min-height: 32px;
  min-width: 32px;
}
.ctext-wrap .dropdown {
  opacity: 1;
}
.ctext-wrap:hover .dropdown, .ctext-wrap:focus-within .dropdown {
  opacity: 1;
}
.divSender {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.spanSenderName {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.spanSenderPhone {
  color: var(--zap-muted);
}
.msg-notification {
  padding: 8px 12px;
  margin: 0 auto;
  border-radius: 8px;
  background: var(--zap-complement);
  color: var(--zap-muted);
  max-width: 90%;
  text-align: center;
}
.replymessage-block {
  border-left: 3px solid var(--zap-action);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--zap-complement);
  color: var(--zap-text);
}
.replymessage-block p {
  color: var(--zap-muted);
  margin: 0;
}
.replyCard {
  display: none;
}
.replyCard.show {
  display: block;
}
#input-send-message-content.position-absolute {
  position: relative !important;
  flex: none;
  width: 100%;
}
html[data-bs-theme] .chat-input-section {
  background: var(--zap-surface);
  border-top: 1px solid var(--zap-border);
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}
.bts-mensagens, .chat-input-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bts-mensagens .btn, .chat-input-links .btn {
  width: 44px;
  height: 44px;
  padding: 8px;
  color: var(--zap-muted);
}
.bts-mensagens .dropdown-menu .btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}
html[data-bs-theme] .chat-send {
  background: var(--zap-action);
  color: var(--zap-on-action);
  border-radius: 50%;
}
#chat-input {
  resize: none;
  max-height: 160px;
  overflow-y: auto;
  border-radius: 12px;
}
.disable-input-msg {
  opacity: .65;
}
.disable-input-msg .chat-input-section {
  pointer-events: none;
}
#load-modal {
  inset: 0;
  z-index: 4;
  background: var(--zap-complement);
}
#aviso-chat {
  inset: 0;
  z-index: 3;
  background: var(--zap-bg);
}
.zap-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 32px 24px;
  overflow: auto;
}
.zap-welcome-art {
  width: min(360px, 75%);
  flex: 0 0 auto;
  color: var(--zap-muted);
  margin-bottom: 20px;
}
.zap-welcome-art svg {
  display: block;
  width: 100%;
}
.zap-welcome-orbit {
  stroke: var(--zap-border);
  stroke-dasharray: 3 9;
  opacity: .65;
}
.zap-welcome-bubble {
  fill: var(--zap-surface);
  stroke: var(--zap-border);
}
.zap-welcome-reply {
  fill: var(--zap-primary);
  stroke: var(--zap-action);
  stroke-opacity: .3;
}
.zap-welcome-accent {
  fill: var(--zap-action);
}
.zap-welcome-eyebrow {
  color: var(--zap-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 16px;
}
.zap-chat-empty h1 {
  color: var(--zap-text);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0 0 16px;
}
.zap-chat-empty p {
  color: var(--zap-muted);
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.zap-welcome-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--zap-on-primary);
  background: var(--zap-primary);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 28px;
  font-size: 12px;
}
.zap-welcome-hint > span {
  font-size: 20px;
  line-height: 1;
}
.zap-welcome-signature {
  margin-top: 48px;
  font-size: 16px;
  font-weight: 700;
  color: var(--zap-muted);
}
.zap-welcome-signature span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
}
@media (max-height: 680px) {
  .zap-welcome-art {
    width: 220px;
    margin-bottom: 8px;
  }
  .zap-welcome-signature {
    margin-top: 24px;
  }
  .zap-welcome-hint {
    margin-top: 16px;
  }
}
/* A prévia ocupa somente o histórico; o compositor continua disponível. */
.modal-archive {
  inset: 0;
  z-index: 3;
  background: var(--zap-complement);
  overflow: hidden;
  padding: 64px 16px 16px;
}
.modal-archive .close-bt {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 2;
}
.modal-archive .close-bt .btn {
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--zap-text);
}
.modal-archive .zap-attachment-stage, .modal-archive .zap-attachment-media, .modal-archive .preview {
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.modal-archive .zap-attachment-media {
  width: 100%;
}
.modal-archive canvas, .modal-archive img, .modal-archive video {
  display: block;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.modal-archive #img-loaded {
  width: auto !important;
  height: 100%;
}
.modal-archive .preview {
  width: 100%;
}
.modal-archive .preview p {
  flex: none;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  max-height: 3em;
  overflow: hidden;
}
.modal-archive .pages-doc {
  position: absolute;
  inset: 12px 16px auto 68px;
  text-align: right;
  color: var(--zap-muted);
  font-size: 12px;
}
.modal-archive .pages-doc p {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.popup-img img, .popup-video video {
  max-width: min(100%, 320px);
  max-height: 320px;
  object-fit: contain;
}
.aguarde {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}
.aguarde .info {
  min-width: 0;
}
.aguarde .info p {
  overflow-wrap: anywhere;
}
.aguarde .img img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
html[data-bs-theme] .user-profile-sidebar {
  display: none;
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 100%);
  z-index: var(--zap-layer-details);
  background: var(--zap-surface);
  border-left: 1px solid var(--zap-border);
  box-shadow: var(--zap-shadow);
  overflow-y: auto;
}
.user-profile-sidebar .nav-btn {
  color: var(--zap-text) !important;
}
.fg-emoji-picker {
  max-width: calc(100vw - 24px);
  z-index: 25;
}
.total_msgs_chats, .total_msgs_groups {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 9px;
}
#zap-connection {
  margin: 0 12px 12px;
  font-size: 12px;
}
#zap-new-messages {
  position: absolute;
  bottom: 100px;
  right: 24px;
  z-index: 5;
  box-shadow: var(--zap-shadow);
}
#pending-intents {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 32px));
  max-height: 35dvh;
  overflow: auto;
  z-index: 1060;
  box-shadow: var(--zap-shadow);
}
#zap-toasts {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: min(360px, calc(100% - 32px));
  z-index: var(--zap-layer-toast);
  pointer-events: none;
}
.zap-toast {
  background: var(--zap-surface);
  color: var(--zap-text);
  border: 1px solid var(--zap-border);
  box-shadow: var(--zap-shadow);
  border-radius: 12px;
  margin-bottom: 8px;
  pointer-events: auto;
}
.zap-toast .toast-header {
  color: var(--zap-text);
  background: transparent;
  border-bottom-color: var(--zap-border);
  padding: 12px;
}
.zap-toast-icon {
  border-radius: 50%;
  background: var(--zap-primary);
  color: var(--zap-on-primary);
  width: 24px;
  height: 24px;
  text-align: center;
  margin-right: 8px;
}
.zap-toast[data-kind="error"] .zap-toast-icon {
  background: var(--zap-error-bg);
  color: var(--zap-error);
}
.zap-toast[data-kind="warning"] .zap-toast-icon {
  background: var(--zap-warning-bg);
  color: var(--zap-warning);
}
.zap-toast .toast-body {
  padding: 12px 16px;
  overflow-wrap: anywhere;
}
.spinner-container {
  animation: zap-spin 1s linear infinite;
}
.spinner-container .path {
  stroke: var(--zap-action);
  stroke-dasharray: 90 150;
}
@keyframes zap-spin {
  to {
    transform: rotate(360deg);
  }
}
.onda {
  --oa-accent: var(--zap-action);
  --oa-red: var(--zap-error);
  color: var(--zap-text);
  font: inherit;
}
.onda svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.onda [hidden] {
  display: none !important;
}
.onda .oa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--zap-text);
  font: inherit;
}
.onda .oa-button:hover {
  background: var(--zap-complement);
}
.onda .oa-button:disabled {
  opacity: .5;
  cursor: default;
}
.onda .oa-primary, .onda .oa-play {
  background: var(--zap-action);
  color: var(--zap-on-action);
}
.onda .oa-primary:hover, .onda .oa-play:hover, html[data-bs-theme] .zap-audio-message .oa-play:hover {
  background: #21C063;
  color: var(--zap-on-action);
}
.onda .oa-player {
  margin: 0;
  min-width: 0;
}
.onda .oa-player-title, .onda .oa-player-amplitude {
  display: none;
}
.onda .oa-player-surface {
  display: flex;
  gap: 8px;
  align-items: center;
}
.onda .oa-play {
  border-radius: 50%;
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
}
.onda .oa-wave-wrap {
  flex: 1;
  min-width: 32px;
}
.onda .oa-wave {
  display: block;
  width: 100%;
  height: 44px;
  cursor: pointer;
  touch-action: pan-y;
}
.onda .oa-player-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 5ch;
  text-align: center;
}
.onda .oa-player-time span {
  display: block;
  color: var(--zap-muted);
}
.onda .oa-player-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.onda .oa-player-status {
  font-size: 12px;
  color: var(--zap-muted);
}
.onda .oa-player-tools .oa-button {
  padding: 4px 8px;
  min-height: 36px;
}
.onda .oa-download, .onda .oa-remove {
  display: none;
}
.zap-audio-message {
  width: min(320px, 100%);
  min-width: 200px;
}
.zap-audio-native {
  width: 100%;
  margin-top: 8px;
}
.zap-rail-label {
  display: block;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
}
.user-chat-remove {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 28px;
  text-decoration: none;
  color: var(--zap-text);
}
.user-profile-show {
  display: block;
  min-width: 0;
  text-decoration: none;
}
.user-chat-topbar h6 {
  font-size: 16px;
}
body[data-zap-surface="chat"] .side-menu .nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
#zap-recorder {
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}
.zap-recorder-meter {
  display: flex;
  gap: 12px;
  align-items: center;
}
.zap-recorder-meter canvas {
  height: 40px;
  width: 100%;
  min-width: 0;
}
.zap-recorder-meter [data-role="timer"] {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zap-recorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.zap-recorder-state {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--zap-muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.zap-recorder-preview {
  margin-top: 8px;
}
.zap-recorder-preview-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.zap-recorder-error {
  margin: 8px 0 0;
  color: var(--zap-error);
}
@media (max-width: 1199px) {
  html[data-bs-theme] .chat-leftsidebar {
    flex-basis: 304px;
    width: 304px;
  }
  .chat-conversation .conversation-list {
    max-width: 90%;
  }
}
@media (max-width: 991px) {
  body[data-zap-surface="panel"] .side-menu {
    position: static;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--zap-border);
  }
  body[data-zap-surface="panel"] .side-menu-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  body[data-zap-surface="panel"] .side-menu .nav-link {
    flex-direction: column;
    min-width: 88px;
    padding: 8px;
    gap: 4px;
  }
  body[data-zap-surface="panel"] > .layout-wrapper > .user-chat {
    margin-left: 0;
    padding: 0 8px 24px;
  }
  body[data-zap-surface="chat"] .side-menu {
    width: 64px;
  }
  html[data-bs-theme] .chat-leftsidebar {
    margin-left: 64px;
    width: calc(100% - 64px);
    flex-basis: calc(100% - 64px);
  }
  body[data-zap-surface="chat"] .user-chat {
    position: fixed;
    inset: 0;
    width: 100%;
    height: var(--zap-viewport) !important;
    z-index: 22;
    display: none;
  }
  body[data-zap-surface="chat"] .user-chat-show-mobile {
    visibility: visible;
    transform: none;
    display: block;
  }
  #users-chat {
    margin-top: 0;
  }
  #Chat {
    display: flex;
  }
  .user-chat-topbar .list-inline-item {
    display: inline-block !important;
  }
  .user-chat-topbar .list-inline {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 0;
  }
  .user-chat-topbar .list-inline .btn {
    white-space: nowrap;
  }
  .chat-conversation .conversation-list {
    max-width: 92%;
  }
  .zap-panel-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (max-width: 575px) {
  html[data-bs-theme] :is(.form-control, .form-select) {
    font-size: 16px;
  }
  .zap-auth-header {
    padding: 16px;
  }
  .zap-auth-main {
    padding: 12px;
  }
  .zap-auth-card {
    padding: 24px;
  }
  .zap-theme-control > span {
    display: none;
  }
  .zap-chat-search {
    padding: 0 12px 12px;
  }
  .zap-list-header {
    padding: 12px;
  }
  .chat-input-section > .row > .col {
    min-width: 80px;
  }
  .chat-input-links .btn, .bts-mensagens .btn {
    width: 40px;
    padding: 8px;
  }
  .bts-mensagens .btn-group {
    margin-inline: 0 !important;
  }
  .bts-mensagens #emoji-btn {
    display: none;
  }
  .chat-conversation-list {
    padding: 8px 0;
  }
  .modal-dialog {
    margin: 8px;
  }
  html[data-bs-theme] .card-body {
    padding: 16px;
  }
  .zap-recorder-actions .oa-button {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Chat: composição da referência fornecida, com contratos e marca Zap5. */
html[data-bs-theme] body[data-zap-surface="chat"] {
  --zap-chat-panel: var(--zap-surface);
  --zap-chat-field: var(--zap-complement);
  --zap-chat-selected: var(--zap-primary);
  --zap-chat-incoming: var(--zap-surface);
  --zap-chat-outgoing: var(--zap-primary);
  --zap-chat-wallpaper: .04;
  --zap-chat-invert: 0;
  --zap-nav-width: 64px;
  overflow: hidden;
}
html[data-bs-theme="dark"] body[data-zap-surface="chat"] {
  --zap-bg: #161717;
  --zap-chat-panel: #161717;
  --zap-chat-field: #262828;
  --zap-chat-selected: #2b2d2d;
  --zap-chat-incoming: #242626;
  --zap-chat-outgoing: #103529;
  --zap-chat-wallpaper: .045;
  --zap-chat-invert: 1;
}
html[data-bs-theme] body[data-zap-surface="chat"] .side-menu {
  width: 64px;
  min-width: 64px;
  background: var(--zap-surface);
  border: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .side-menu .nav-link {
  max-width: 44px;
  min-height: 44px;
  margin: 4px auto;
  padding: 0;
  border-radius: 50%;
  color: var(--zap-muted);
  text-decoration: none;
  text-align: center;
  display: inline flow-root list-item;
}
html[data-bs-theme] body[data-zap-surface="chat"] .side-menu .nav-link.active {
  background: var(--zap-chat-selected);
  color: var(--zap-action);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-rail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar {
  margin-left: 64px;
  width: clamp(340px, 30vw, 560px);
  flex: 0 0 clamp(340px, 30vw, 560px);
  background: var(--zap-chat-panel);
  border-right: 1px solid var(--zap-border);
  display: flex;
  flex-direction: column;
  height: var(--zap-viewport);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-list-header {
  height: 64px;
  flex: none;
  padding: 12px 20px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-list-header strong {
  font-size: 22px;
  letter-spacing: -.4px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-list-header .form-select {
  min-height: 36px;
  background-color: transparent;
  border-color: transparent;
  width: 100px;
  font-size: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-chat-search {
  padding: 0 20px 10px;
}
html[data-bs-theme] body[data-zap-surface="chat"] #zap-search {
  border: 0;
  border-radius: 24px;
  background: var(--zap-chat-field);
  padding: 8px 16px;
  min-height: 40px;
}
html[data-bs-theme] body[data-zap-surface="chat"] #zap-connection {
  flex: none;
  margin: 0 16px 8px;
  padding: 8px 12px;
  font-size: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar > .tab-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-room-list, html[data-bs-theme] body[data-zap-surface="chat"] #container-contacts {
  height: auto;
  max-height: none;
  overflow: visible;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat {
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px !important;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat li {
  flex: none;
  width: auto !important;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .nav-link {
  padding: 6px 12px;
  gap: 8px;
  min-height: 32px;
  border: 1px solid var(--zap-border);
  border-radius: 24px;
  font-size: 14px;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .nav-link > span:first-child:not(.zap-tab-label) {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .badge {
  font-size: 11px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .chat-list > li {
  position: relative;
  margin: 0 10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .chat-list > li > a {
  min-height: 76px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--zap-text);
  text-decoration: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar a * {
  text-decoration: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .chat-list > li:is(.active, :hover) {
  background: var(--zap-chat-selected);
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .avatar-xs, html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .avatar-xs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-main {
  gap: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-copy {
  flex: 1;
  min-width: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-copy > p {
  font-size: 16px;
  font-weight: 400;
  color: var(--zap-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-copy .descriptions {
  font-size: 12px;
  line-height: 18px;
  color: var(--zap-muted);
  gap: 6px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .descriptions span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-chat-preview {
  font-size: 14px;
  line-height: 20px;
  color: var(--zap-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-chat-preview:empty, html[data-bs-theme] body[data-zap-surface="chat"] .qtd_msgs:empty {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-main > .ms-auto {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  align-self: flex-start;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-preview-time {
  color: var(--zap-muted);
  font-size: 12px;
  white-space: nowrap;
}
html[data-bs-theme] body[data-zap-surface="chat"] .header-waiting, html[data-bs-theme] body[data-zap-surface="chat"] .header-my, html[data-bs-theme] body[data-zap-surface="chat"] .header-other, html[data-bs-theme] body[data-zap-surface="chat"] .contact-list-title {
  border: 0;
  margin: 0;
  padding: 12px 20px 4px;
  color: var(--zap-muted);
  font-size: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar h6 {
  font-size: 12px;
  font-weight: 545;
  color: var(--zap-muted);
}
html[data-bs-theme] body[data-zap-surface="chat"] .contact-list-title::after, html[data-bs-theme] body[data-zap-surface="chat"] .contact_droupdown .dropdown-toggle::after {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .contact_droupdown .dropdown-toggle {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px !important;
  border-radius: 8px;
  background: transparent;
}
html[data-bs-theme] body[data-zap-surface="chat"] .contact_droupdown .dropdown-item {
  padding: 10px 20px;
  background: transparent;
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="chat"] .contact_droupdown .dropdown-toggle:is(:hover, :focus-visible, .show) {
  background: var(--zap-complement);
}
html[data-bs-theme] body[data-zap-surface="chat"] .contact_droupdown .dropdown-item:is(:hover, :focus-visible, :active) {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="chat"] .profile-user-dropdown .dropdown-menu {
  width: 288px;
  max-width: calc(100vw - 24px);
  padding: 8px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .profile-user-dropdown .dropdown-item, html[data-bs-theme] body[data-zap-surface="chat"] .zap-profile-theme {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  text-align: left;
  white-space: normal;
}
html[data-bs-theme] body[data-zap-surface="chat"] .profile-user-dropdown .dropdown-item[hidden] {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .profile-user-dropdown .zap-action-icon {
  flex: 0 0 20px;
  font-size: 20px;
  color: inherit;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-profile-theme .zap-theme-control {
  flex: 1;
  justify-content: space-between;
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-profile-theme .zap-theme-control > span {
  display: inline;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-profile-theme .form-select {
  min-height: 44px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .profile-user-dropdown .dropdown-item:is(:hover, :focus-visible) {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat {
  background: var(--zap-bg);
  border: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] #users-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('/images/bg-chat.svg') repeat;
  background-size: 374px 666px;
  filter: invert(var(--zap-chat-invert));
  opacity: var(--zap-chat-wallpaper);
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat .user-chat-topbar {
  position: relative;
  padding: 8px 16px !important;
  min-height: 64px;
  background: var(--zap-chat-panel) !important;
  border: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar > .row {
  flex-wrap: nowrap;
  margin: 0;
  gap: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .col-sm-4 {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .col-sm-8 {
  width: auto;
  flex: none;
  padding: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .list-inline {
  gap: 8px;
  padding: 0;
  align-items: center;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .list-inline-item {
  margin: 0 !important;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .btn {
  background: transparent;
  color: var(--zap-text);
  border-color: var(--zap-border);
  min-height: 36px;
  border-radius: 20px;
  padding: 6px 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .btn-danger {
  color: var(--zap-error);
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat .chat-conversation {
  padding: 0px 20px !important;
  background: transparent;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation-list > li {
  margin-bottom: 6px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation .conversation-list {
  max-width: min(78%, 760px);
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation .ctext-wrap-content {
  background: var(--zap-chat-incoming) !important;
  color: var(--zap-text) !important;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: left;
  box-shadow: 0 1px 1px #00000018;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation .right .ctext-wrap-content {
  background: var(--zap-chat-outgoing) !important;
  color: #FAFAFA !important;
}
html[data-bs-theme] body[data-zap-surface="chat"] .ctext-wrap-content .ctext-content {
  margin: 0;
  line-height: 20px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .ctext-wrap-content .conversation-name {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--zap-action);
}
html[data-bs-theme] body[data-zap-surface="chat"] .ctext-wrap-content .chat-time {
  font-size: 11px;
  color: var(--zap-muted) !important;
  line-height: 16px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-message-status {
  letter-spacing: -2px;
  display: inline-block;
  font-size: 11px;
  line-height: 14px;
  text-align: right;
  color: var(--zap-muted);
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-list.right .zap-message-status {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-message-status[data-status="READ"], html[data-bs-theme] body[data-zap-surface="chat"] .zap-message-status[data-status="PLAYED"] {
  color: var(--zap-info);
}
html[data-bs-theme] body[data-zap-surface="chat"] .side-menu .navbar-brand-box {
  height: 64px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .sidemenu-navigation {
  height: calc(100% - 64px);
}
html[data-bs-theme] body[data-zap-surface="chat"] .side-menu-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  flex-wrap: nowrap;
}
html[data-bs-theme] body[data-zap-surface="chat"] .side-menu .nav-link svg {
  fill: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .side-menu .nav-link::before {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .profile-user-dropdown .dropdown-toggle::after, html[data-bs-theme] body[data-zap-surface="chat"] .bts-mensagens .dropdown-toggle::after {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .bts-mensagens #emoji-btn {
  order: 2;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-department::after {
  content: " ·";
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation-list > .zap-date-separator {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-date-separator time {
  background: var(--zap-chat-incoming);
  color: var(--zap-muted);
  border-radius: 8px;
  font-size: 12px;
  padding: 4px 10px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-message-status:empty {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .ctext-wrap .detalhe {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] #input-send-message-content {
  padding: 8px 12px 12px;
  background: transparent;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat .chat-input-section {
  border: 0;
  padding: 6px 10px !important;
  border-radius: 28px;
  background: var(--zap-chat-incoming) !important;
}
html[data-bs-theme] body[data-zap-surface="chat"] #chat-input {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 40px;
  padding: 10px 0;
  box-shadow: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-input-section > .row {
  gap: 0;
  --bs-gutter-x: 8px;
}
.bts-mensagens .btn {
  line-height: 20px;
}
#replyFastModal .modal-dialog {
  max-width: 720px;
}
#replyFastModal .responses-content {
  display: grid;
  gap: 10px;
  margin: 0;
}
#replyFastModal .zap-quick-response-hint, #zap-quick-response-empty {
  margin: 12px 0 16px;
  color: var(--zap-muted);
}
#replyFastModal .zap-quick-response {
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  background: var(--zap-complement);
  overflow: hidden;
}
#replyFastModal .zap-quick-response:has(input:checked) {
  border-color: var(--zap-action);
  background: var(--zap-primary);
}
#replyFastModal .zap-quick-response:focus-within {
  outline: 2px solid var(--zap-action);
  outline-offset: 2px;
}
#replyFastModal .zap-quick-response-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}
#replyFastModal .form-check-input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}
#replyFastModal .zap-quick-response-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
#replyFastModal .zap-quick-response-copy strong {
  font-size: 14px;
  color: var(--zap-text);
}
#replyFastModal .zap-quick-response-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: pre-wrap;
  line-height: 1.5;
  color: var(--zap-muted);
}
#replyFastModal .zap-quick-response:has(input:checked) .zap-quick-response-preview {
  display: block;
  color: var(--zap-on-primary);
}
#replyFastModal .zap-quick-response-file {
  display: block;
  margin: 0 16px 14px 48px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-input-links .btn, html[data-bs-theme] body[data-zap-surface="chat"] .bts-mensagens .btn {
  width: 40px;
  height: 40px;
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="chat"] .bts-mensagens :is(.btn-anexo, .emoji-btn) {
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transition: background-color 150ms ease;
}
html[data-bs-theme] body[data-zap-surface="chat"] .bts-mensagens :is(.btn-anexo, .emoji-btn):is(:hover, :focus-visible, :active, .show) {
  background: color-mix(in srgb, var(--zap-text) 12%, transparent);
}
html[data-bs-theme] body[data-zap-surface="chat"] .bts-mensagens :is(.btn-anexo, .emoji-btn):focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html[data-bs-theme] body[data-zap-surface="chat"] .bts-mensagens :is(.btn-anexo, .emoji-btn) {
    transition: none;
  }
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-input-links .chat-send {
  color: var(--zap-on-action);
}
html[data-bs-theme] body[data-zap-surface="chat"] #aviso-chat {
  background: var(--zap-bg);
  border-bottom: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] #aviso-chat .zap-chat-empty {
  position: relative;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-list-header > .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--zap-action);
  color: var(--zap-on-action);
  font-size: 24px;
}
@media (max-width: 991px) {
  html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar {
    margin-left: 64px;
    width: calc(100% - 64px);
    flex-basis: calc(100% - 64px);
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar > .row {
    flex-wrap: wrap;
    gap: 4px;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .col-sm-4 {
    flex-basis: 100%;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .user-chat-topbar .list-inline {
    max-width: calc(100vw - 32px);
    overflow-x: auto;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation .conversation-list {
    max-width: 90%;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] #input-send-message-content {
    padding: 6px 8px max(8px, env(safe-area-inset-bottom));
  }
}
/* Acabamento do chat e seleção de atendentes. */
html[data-bs-theme] body[data-zap-surface="chat"] a, html[data-bs-theme] body[data-zap-surface="chat"] a:hover, html[data-bs-theme] body[data-zap-surface="chat"] .btn-link {
  text-decoration: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .dropdown-toggle:has(i)::after, html[data-bs-theme] body[data-zap-surface="chat"] .dropdown-toggle:has(svg)::after {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .header-waiting hr, html[data-bs-theme] body[data-zap-surface="chat"] .header-my hr, html[data-bs-theme] body[data-zap-surface="chat"] .header-other hr {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .replymessage-block {
  background: color-mix(in srgb, var(--zap-text) 6%, var(--zap-chat-incoming));
  padding: 8px 12px;
  margin-bottom: 6px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .right .replymessage-block {
  background: color-mix(in srgb, var(--zap-text) 6%, var(--zap-chat-outgoing));
}
html[data-bs-theme] body[data-zap-surface="chat"] .message-box-drop > .dropdown-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--zap-muted);
  border-radius: 8px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .message-box-drop > .dropdown-toggle:hover {
  color: var(--zap-text);
  background: var(--zap-chat-selected);
}
.zap-attendant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  margin: 4px 0;
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  color: var(--zap-text);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.zap-attendant-option > span {
  min-width: 0;
}
.zap-attendant-option .form-check-input {
  flex: none;
  margin: 0;
}
.zap-attendant-option:has(:checked) {
  background: var(--zap-primary);
}
.zap-attendant-option:focus-within {
  outline: 2px solid var(--zap-action);
  outline-offset: 2px;
}
.zap-attendant-departments {
  display: block;
  color: var(--zap-muted);
  font-size: 12px;
  margin-top: 4px;
}
.zap-attendant-empty {
  margin: 0;
  padding: 16px 0;
  color: var(--zap-muted);
}
html[data-bs-theme] body[data-zap-surface="chat"] .header-waiting h6, html[data-bs-theme] body[data-zap-surface="chat"] .header-my h6, html[data-bs-theme] body[data-zap-surface="chat"] .header-other h6 {
  border: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .right .message-box-drop {
  order: -1;
}
.zap-attendant-option .form-check-input:checked {
  background-color: var(--zap-action);
  border-color: var(--zap-action);
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .nav-link {
  width: 100%;
  min-height: 40px;
  font-size: 12px;
  white-space: nowrap;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-chatbot-heading {
  padding: 12px 20px 4px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar:has(#pills-meus-dados.active) .zap-chat-search, html[data-bs-theme] body[data-zap-surface="chat"] .zap-chat-search[hidden] {
  display: none;
}
.side-menu-nav .nav-item .nav-link {
  height: 44px;
  line-height: 44px;
}
body[data-layout-mode="dark"] .chat-input-links .links-list-item > .btn.btn-link {
  color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
}
#audio-send .btn {
  color: #fff;
}
/* Picker do plugin: cores e geometria compartilhadas com o chat. */
body[data-layout-mode="dark"] .fg-emoji-picker .fg-emoji-picker-categories {
  background-color: var(--zap-surface) !important;
}
body[data-layout-mode="dark"] a.fg-emoji-picker-close-button {
  background: var(--zap-primary) !important;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker {
  width: 360px;
  max-width: calc(100vw - 24px);
  min-height: 0;
  background: var(--zap-surface);
  color: var(--zap-text);
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  box-shadow: var(--zap-shadow);
  overflow: hidden;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker *, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker input {
  font-family: inherit;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-all-categories {
  height: min(280px, 40dvh);
  padding: 0 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--zap-border) transparent;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-all-categories, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-category, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-grid, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-grid > li {
  background: var(--zap-surface);
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-footer {
  background: var(--zap-surface);
  color: var(--zap-text);
  border-color: var(--zap-border);
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories {
  padding: 4px;
  border-bottom: 1px solid var(--zap-border);
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories ul {
  flex-wrap: nowrap;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories li {
  border-radius: 8px;
  overflow: hidden;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-category {
  padding-top: 4px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-container-title, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-footer-title {
  color: var(--zap-muted);
  font-size: 12px;
  font-weight: 545;
  margin: 8px 4px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-search {
  height: 56px;
  margin: 0;
  background: var(--zap-surface);
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-search input {
  inset: 8px 12px;
  width: calc(100% - 24px);
  height: 40px;
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--zap-border);
  border-radius: 8px;
  background: var(--zap-complement);
  color: var(--zap-text);
  font-size: 14px;
  caret-color: var(--zap-text);
  box-shadow: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-search input::placeholder {
  color: var(--zap-muted);
  opacity: 1;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-search svg {
  top: 20px;
  right: 24px;
  pointer-events: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories a, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker a.fg-emoji-picker-close-button {
  height: 40px;
  padding: 8px 4px;
  background: transparent;
  color: var(--zap-muted);
  border-radius: 8px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories svg, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-search svg {
  fill: currentColor;
  color: var(--zap-muted);
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories li.active, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories li.active a, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories a:hover, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-grid > li:hover {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories li.active svg, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories a:hover svg {
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-grid > li {
  flex-basis: calc(100% / 7);
  max-width: calc(100% / 7);
  height: 44px;
  border-radius: 8px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-grid > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-grid > li:hover a {
  transform: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker a:focus-visible, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker input:focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: -2px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-categories svg *, html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker .fg-emoji-picker-search svg * {
  color: inherit;
  fill: currentColor;
}
@media (prefers-reduced-motion: reduce) {
  html[data-bs-theme] body[data-zap-surface="chat"] .fg-emoji-picker * {
    transition: none;
  }
}
.zap-lazy-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--zap-complement);
}
.zap-lazy-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.zap-lazy-photo {
  width: 246px;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
}
.zap-lazy-image[data-image-state="loading"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, var(--zap-border) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: zap-image-skeleton 1.4s ease-in-out infinite;
}
.zap-lazy-image:not([data-image-state="ready"]) > img {
  opacity: 0;
}
.zap-lazy-avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zap-lazy-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zap-lazy-photo[data-image-state="error"]::after {
  content: attr(data-image-error);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--zap-muted);
  font-size: 12px;
}
@keyframes zap-image-skeleton {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zap-lazy-image[data-image-state="loading"]::after {
    animation: none;
  }
}
/* Painel administrativo: geometria independente da barra de ícones do chat. */
html[data-bs-theme] body[data-zap-surface="panel"] {
  --zap-nav-width: 224px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .side-menu {
  position: fixed;
  max-width: none;
  inset: 0 auto 0 0;
  width: 224px;
  min-width: 224px;
  height: 100dvh;
  padding: 20px 12px;
  background: var(--zap-surface);
  border-right: 1px solid var(--zap-border);
  overflow-y: auto;
}
.zap-panel-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 12px 28px;
  color: var(--zap-text);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.zap-panel-brand span {
  color: var(--zap-muted);
  font-size: 12px;
  font-weight: 400;
}
html[data-bs-theme] body[data-zap-surface="panel"] .side-menu-nav {
  width: 100%;
  height: auto;
  padding: 0;
  gap: 6px;
  flex-direction: column;
  flex-wrap: nowrap;
}
html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-item {
  width: 100%;
  margin: 0;
}
html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  gap: 12px;
  border-radius: 8px;
  color: var(--zap-muted);
  line-height: 24px;
  text-decoration: none;
}
html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-link i, html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-link svg {
  width: 24px;
  flex: 0 0 24px;
  text-align: center;
  font-size: 18px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-link::before {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-link.active, html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-link:hover {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="panel"] > .layout-wrapper > .user-chat {
  background: var(--zap-bg);
  transition-property: background-color, color, border-color;
  visibility: visible;
  transform: none;
  position: relative;
  margin-left: 224px;
  width: calc(100% - 224px) !important;
  min-height: 100dvh;
  height: auto !important;
  padding: 0 28px 32px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-header {
  min-height: 80px;
  padding: 16px 0;
  border-bottom: 1px solid var(--zap-border);
  margin-bottom: 28px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .btn-link {
  text-decoration: none;
}
.zap-dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.zap-dashboard-heading h1 {
  font-size: 28px;
  margin: 4px 0 8px;
  color: var(--zap-text);
}
.zap-dashboard-heading p {
  margin: 0;
  color: var(--zap-muted);
}
.zap-dashboard-heading .zap-eyebrow {
  font-size: 12px;
  color: var(--zap-action);
  font-weight: 700;
}
.zap-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.zap-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 24px 20px;
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  background: var(--zap-surface);
  color: var(--zap-text);
  text-align: left;
}
.zap-metric-label {
  margin: 0;
  min-height: 40px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 545;
}
.zap-metric-value {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--zap-text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.zap-metric-caption {
  margin-top: auto;
  font-size: 12px;
  line-height: 18px;
  color: var(--zap-muted);
}
.zap-metric-action {
  cursor: pointer;
}
.zap-metric-action:hover {
  border-color: var(--zap-action);
  background: var(--zap-complement);
}
.zap-metric-action .zap-metric-caption {
  color: var(--zap-action);
}
@media (max-width: 1399px) {
  .zap-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  html[data-bs-theme] body[data-zap-surface="panel"] .side-menu {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--zap-border);
  }
  .zap-panel-brand {
    padding: 0 8px 12px;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] .side-menu-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-item {
    width: auto;
    flex: none;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] .side-menu .nav-link {
    min-width: 0;
    white-space: nowrap;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] > .layout-wrapper > .user-chat {
    margin-left: 0;
    width: 100% !important;
    padding: 0 12px 24px;
  }
  .zap-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zap-dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 479px) {
  .zap-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .zap-metric {
    padding: 20px;
    gap: 8px;
  }
  .zap-metric-label {
    min-height: 0;
  }
}
/* Consulta de atendimentos. */
.zap-conversations .breadcrumb {
  margin: 0 0 8px;
}
.zap-conversations .breadcrumb a {
  color: var(--zap-muted);
  text-decoration: none;
}
.zap-conversations .breadcrumb a:hover {
  color: var(--zap-action);
}
.zap-conversation-filters {
  margin-bottom: 20px;
}
.zap-conversation-filters .card {
  margin: 0 !important;
}
html[data-bs-theme] .zap-conversation-filters .card-body {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 20px !important;
}
.zap-conversation-filters .card-body > .row {
  display: contents;
}
.zap-conversation-filters .row > [class*="col-"] {
  width: auto;
  padding: 0;
  min-width: 0;
}
.zap-conversation-filters .row > .col-md-4 {
  grid-column: span 2;
}
.zap-conversation-filters .mb-3 {
  margin-bottom: 0 !important;
}
.zap-conversation-filters .form-label {
  margin-bottom: 8px;
  color: var(--zap-muted);
  font-size: 12px;
}
.zap-conversation-filters .form-control, .zap-conversation-filters .form-select {
  min-height: 44px;
}
.zap-conversation-filters .zap-filter-action {
  display: flex;
  align-items: flex-end;
  grid-column: span 2;
}
.zap-conversation-filters #filter {
  min-height: 44px;
}
.zap-conversation-table {
  border: 1px solid var(--zap-border);
  border-radius: 12px;
}
html[data-bs-theme] .zap-conversation-table .table {
  margin: 0;
  min-width: 720px;
  --bs-table-bg: var(--zap-surface);
  --bs-table-border-color: var(--zap-border);
  --bs-table-hover-bg: var(--zap-complement);
  --bs-table-hover-color: var(--zap-text);
}
html[data-bs-theme] .zap-conversation-table .table > :not(caption) > * > * {
  border: 0;
  border-bottom: 1px solid var(--zap-border);
  padding: 12px 16px;
  vertical-align: middle;
  color: var(--zap-text);
}
html[data-bs-theme] .zap-conversation-table .table > thead > tr > th {
  background: var(--zap-complement);
  color: var(--zap-muted);
  font-size: 12px;
  font-weight: 545;
}
html[data-bs-theme] .zap-conversation-table tbody tr:last-child td {
  border-bottom: 0;
}
html[data-bs-theme] .zap-conversations .zap-conversation-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--zap-on-primary);
  background: var(--zap-primary);
  border: 1px solid transparent;
  border-radius: 8px;
}
html[data-bs-theme] .zap-conversations .zap-conversation-details:hover {
  border-color: var(--zap-action);
}
.zap-conversations .pagination {
  gap: 4px;
  margin: 16px 0;
}
.zap-conversations .page-link {
  border-radius: 8px;
  text-decoration: none;
}
.zap-conversations .zap-clear-filter {
  color: inherit;
  font-weight: 700;
}
@media (max-width: 1199px) {
  html[data-bs-theme] .zap-conversation-filters .card-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zap-conversation-filters .row > .col-md-4, .zap-conversation-filters .zap-filter-action {
    grid-column: auto;
  }
}
@media (max-width: 575px) {
  html[data-bs-theme] .zap-conversation-filters .card-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px !important;
  }
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .dropdown-menu {
  position: absolute;
  inset: auto auto calc(100% + 12px) 0 !important;
  transform: none !important;
  margin: 0;
  width: 232px;
  min-width: 232px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  background: var(--zap-surface);
  box-shadow: var(--zap-shadow);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .dropdown-menu .btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 10px 12px;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--zap-text);
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .icone {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .icone {
  color: var(--zap-muted);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .icone svg path {
  fill: currentColor;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .dropdown-item:is(:hover, :focus-visible) .icone {
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .nome {
  white-space: nowrap;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .dropdown-item:hover, html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .dropdown-item:focus-visible {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-attachment-menu .dropdown-divider {
  margin: 8px 4px;
  border-color: var(--zap-border);
}
/* Componentes compartilhados de todas as páginas do painel. */
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages {
  min-width: 0;
  padding-bottom: 24px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages > .card {
  margin-bottom: 20px !important;
  border: 1px solid var(--zap-border);
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages .card-body {
  padding: 20px !important;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-page-heading {
  background: transparent;
  border: 0 !important;
  box-shadow: none;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-page-heading .card-body {
  margin: 0;
  align-items: center;
  row-gap: 16px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-page-heading .card-body > [class*="col-"] {
  padding: 0;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-page-heading h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="panel"] .breadcrumb {
  margin: 0;
  font-size: 12px;
  gap: 4px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .breadcrumb a {
  color: var(--zap-muted);
  text-decoration: none;
}
html[data-bs-theme] body[data-zap-surface="panel"] .breadcrumb a:hover {
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages .btn {
  min-height: 40px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 28px;
  text-transform: uppercase;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-table {
  width: 100%;
  border: 0;
  --bs-table-bg: var(--zap-surface);
  --bs-table-color: var(--zap-text);
  --bs-table-border-color: var(--zap-border);
  --bs-table-hover-bg: var(--zap-complement);
  --bs-table-hover-color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-table > :not(caption) > * {
  border: 0;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-table > :not(caption) > * > * {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--zap-border);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-table thead th {
  background: var(--zap-complement);
  color: var(--zap-muted);
  font-size: 12px;
  font-weight: 545;
  text-transform: none;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-table tbody tr:last-child td {
  border-bottom: 0;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-table td:last-child {
  width: 68px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 24px;
  background: transparent;
  color: var(--zap-muted);
  border: 1px solid transparent;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-row-actions::after {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-row-actions:hover, html[data-bs-theme] body[data-zap-surface="panel"] .zap-row-actions.show {
  color: var(--zap-on-primary);
  background: var(--zap-primary);
  border-color: var(--zap-border);
}
html[data-bs-theme] body[data-zap-surface="panel"] .dropdown-menu {
  padding: 8px;
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  background: var(--zap-surface);
  box-shadow: var(--zap-shadow);
}
html[data-bs-theme] body[data-zap-surface="panel"] .dropdown-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="panel"] .dropdown-item:hover, html[data-bs-theme] body[data-zap-surface="panel"] .dropdown-item:focus {
  color: var(--zap-on-primary);
  background: var(--zap-primary);
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-form-card {
  width: 100%;
  max-width: 1040px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-form {
  max-width: 960px;
  padding: 0;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages form .row {
  --bs-gutter-x: 24px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .form-label {
  display: block;
  text-align: left;
  font-size: 14px;
  font-weight: 545;
  margin-bottom: 8px;
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="panel"] .form-control, html[data-bs-theme] body[data-zap-surface="panel"] .form-select {
  min-height: 44px;
  border-radius: 8px;
  background-color: var(--zap-complement);
  color: var(--zap-text);
  border-color: var(--zap-border);
}
html[data-bs-theme] body[data-zap-surface="panel"] textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
html[data-bs-theme] body[data-zap-surface="panel"] .form-control::placeholder {
  color: var(--zap-muted);
  opacity: 1;
}
html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages form > div:last-child:has(> .btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--zap-border);
}
html[data-bs-theme] body[data-zap-surface="panel"] [data-zap-file-preview] {
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  background: var(--zap-complement);
}
html[data-bs-theme] body[data-zap-surface="panel"] [data-zap-file-preview] .d-flex {
  flex-wrap: wrap;
  gap: 12px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .pagination {
  gap: 4px;
  flex-wrap: wrap;
}
html[data-bs-theme] body[data-zap-surface="panel"] .page-link {
  border-radius: 8px;
  text-decoration: none;
}
html[data-bs-theme] body[data-zap-surface="panel"] .modal-content {
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  background: var(--zap-surface);
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="panel"] .modal-header, html[data-bs-theme] body[data-zap-surface="panel"] .modal-footer {
  background: var(--zap-surface);
  border-color: var(--zap-border);
  padding: 16px 20px;
}
html[data-bs-theme] body[data-zap-surface="panel"] .modal-header .modal-title {
  color: var(--zap-text) !important;
}
html[data-bs-theme] body[data-zap-surface="panel"] .alert-info {
  color: var(--zap-text);
  background: var(--zap-complement);
  border-color: var(--zap-border);
}
@media (max-width: 767px) {
  html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages .card-body {
    padding: 16px !important;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] .zap-page-heading .card-body {
    padding: 0 !important;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] .zap-page-heading .float-end {
    float: none !important;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-table > :not(caption) > * > * {
    padding: 10px 8px;
  }
  html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages > .d-flex, html[data-bs-theme] body[data-zap-surface="panel"] .zap-panel-pages > .d-flex > .d-flex {
    flex-wrap: wrap;
    gap: 12px;
  }
}
/* Player de mensagem montado antes do download, sem waveform fictícia. */
html[data-bs-theme] .zap-audio-message {
  width: min(420px, 65vw);
  max-width: 100%;
}
html[data-bs-theme] .zap-audio-message .oa-player {
  margin: 0;
  width: 100%;
}
html[data-bs-theme] .zap-audio-message .oa-player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
html[data-bs-theme] .zap-audio-message .oa-player-name {
  font-size: 14px;
  font-weight: 545;
}
html[data-bs-theme] .zap-audio-message .oa-player-meta {
  font-size: 12px;
  color: var(--zap-muted);
}
html[data-bs-theme] .zap-audio-message .oa-player-surface {
  background: var(--zap-complement);
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  padding: 12px;
  gap: 12px;
}
html[data-bs-theme] .zap-audio-message .oa-play {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
  flex: 0 0 40px;
}
html[data-bs-theme] .zap-audio-message .oa-player-name {
  color: var(--zap-text);
}
html[data-bs-theme] .zap-audio-message .oa-player-tools {
  margin-top: 4px;
}
html[data-bs-theme] .zap-audio-message .zap-wave-pending {
  height: 48px;
  display: flex;
  align-items: center;
}
html[data-bs-theme] .zap-audio-message .zap-wave-pending::after {
  content: '';
  width: 100%;
  border-top: 3px dotted var(--zap-muted);
  opacity: .5;
}
@media (max-width: 575px) {
  html[data-bs-theme] .zap-audio-message {
    width: min(320px, 70vw);
  }
  html[data-bs-theme] .zap-audio-message .oa-player-surface {
    padding: 8px;
    gap: 8px;
  }
}
.chat-leftsidebar .chat-list > li.zap-search-hidden {
  display: none !important;
}
html[data-bs-theme] body[data-layout-mode="dark"] :is(.card, .card-footer, .card-header, .modal-content, .offcanvas) {
  border-color: var(--zap-border) !important;
  background: var(--zap-surface);
}
html[data-bs-theme] .zap-audio-message .oa-player-meta, html[data-bs-theme] .zap-audio-message .oa-player-tools {
  display: none;
}
html[data-bs-theme] .zap-audio-message .zap-audio-error .oa-player-tools {
  display: block;
}
html[data-bs-theme] .zap-audio-message .oa-player-surface > .oa-speed {
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 4px;
  color: var(--zap-text);
  font-size: 12px;
}
html[data-bs-theme] .zap-audio-message [aria-busy="true"] .zap-wave-pending {
  opacity: .5;
}
#zap-action-toasts {
  position: fixed;
  z-index: 1090;
  top: calc(20px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
#zap-action-toasts .zap-action-toast {
  width: auto;
  pointer-events: auto;
  border: 1px solid var(--zap-border);
  border-radius: 16px;
  background: var(--zap-surface);
  background: linear-gradient(135deg, rgb(255 255 255 / 16%), transparent 65%), color-mix(in srgb, var(--zap-surface) 82%, transparent);
  border-color: color-mix(in srgb, var(--zap-border) 65%, white 35%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 8px 32px rgb(0 0 0 / 14%), inset 0 1px 0 rgb(255 255 255 / 25%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #zap-action-toasts .zap-action-toast {
    background: var(--zap-surface);
  }
}
#zap-action-toasts .toast-header {
  padding: 12px 16px;
  border: 0;
  gap: 8px;
  background: transparent;
  color: var(--zap-text);
}
#zap-action-toasts .toast-body {
  display: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] #input-send-message-content > .replyCard {
  position: relative;
  inset: auto;
  width: auto;
  margin: 0 0 8px;
  padding: 0;
  transform: none;
  transition: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-bs-theme] .zap-reply-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 12px;
  border-left: 3px solid var(--zap-action);
  border-radius: 12px;
  background: var(--zap-surface);
}
html[data-bs-theme] .zap-reply-preview .reply_dados {
  flex: 1;
  min-width: 0;
}
html[data-bs-theme] .zap-reply-preview h5 {
  color: var(--zap-action);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  margin: 0 0 2px;
}
html[data-bs-theme] .zap-reply-preview p {
  color: var(--zap-muted);
  font-size: 13px;
  line-height: 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
html[data-bs-theme] .zap-reply-preview #close_reply {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  color: var(--zap-muted);
  text-decoration: none;
}
html[data-bs-theme] .zap-reply-preview #close_reply:hover {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
/* Acesso: composição compartilhada entre login e recuperação. */
html[data-bs-theme] body[data-zap-surface="auth"] {
  background: var(--zap-complement);
}
body[data-zap-surface="auth"] .zap-auth-header {
  max-width: 1280px;
  margin: auto;
  padding: 20px 32px;
}
body[data-zap-surface="auth"] .zap-auth-main {
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1200px;
  margin: auto;
  padding: 32px;
  min-height: calc(100dvh - 148px);
}
.zap-auth-intro {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  border-radius: 32px;
  background: #103529;
  color: #d9fdd3;
  overflow: hidden;
}
.zap-auth-symbol {
  margin-bottom: 32px;
}
.zap-auth-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 16px;
  color: #a7c8b5;
}
html[data-bs-theme] .zap-auth-intro h2 {
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
  margin: 0 0 20px;
  color: #f4fff7;
}
.zap-auth-intro h2 span {
  color: #72e49c;
}
.zap-auth-description {
  max-width: 320px;
  color: #b7d2c2;
  font-size: 15px;
  line-height: 1.7;
}
.zap-auth-art {
  position: relative;
  padding: 28px 0 20px;
  width: 100%;
  max-width: 320px;
}
.zap-auth-bubble {
  width: 75%;
  border: 1px solid #507561;
  padding: 20px;
  border-radius: 20px 20px 20px 4px;
  background: #204c38;
}
.zap-auth-bubble span {
  display: block;
  height: 5px;
  margin: 7px 0;
  border-radius: 8px;
  background: #a7c8b5;
  width: 86%;
}
.zap-auth-bubble span:last-child {
  width: 50%;
}
.zap-auth-bubble-reply {
  width: 65%;
  margin: -12px 0 0 auto;
  position: relative;
  background: #72e49c;
  border-color: #72e49c;
  border-radius: 20px 20px 4px 20px;
}
.zap-auth-bubble-reply span {
  background: #21603d;
}
.zap-auth-art-caption {
  margin-top: 16px;
  font-size: 12px;
  color: #b7d2c2;
}
.zap-auth-wordmark {
  margin-top: 24px;
  font-weight: 700;
  font-size: 20px;
}
.zap-auth-wordmark span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: .15em;
  color: #b7d2c2;
}
body[data-zap-surface="auth"] .zap-auth-card {
  padding: 36px 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  max-width: 400px;
}
html[data-bs-theme] .zap-auth-card h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
html[data-bs-theme] .zap-auth-card .form-control {
  min-height: 48px;
  background: var(--zap-surface);
  border-radius: 12px;
}
html[data-bs-theme] .zap-auth-card .input-group > .form-control {
  border-radius: 12px 0 0 12px;
}
html[data-bs-theme] .zap-auth-card .input-group > .btn {
  border-radius: 0 12px 12px 0;
  font-size: 12px;
}
html[data-bs-theme] .zap-auth-card .btn-primary {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
}
@media (max-width: 850px) {
  body[data-zap-surface="auth"] .zap-auth-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 24px 32px;
    min-height: auto;
  }
  .zap-auth-intro {
    padding: 24px;
    max-width: 480px;
    justify-self: center;
  }
  .zap-auth-symbol, .zap-auth-art, .zap-auth-wordmark, .zap-auth-description {
    display: none;
  }
  .zap-auth-kicker {
    margin-bottom: 12px;
    font-size: 10px;
  }
  html[data-bs-theme] .zap-auth-intro h2 {
    font-size: 32px;
    margin: 0;
  }
  body[data-zap-surface="auth"] .zap-auth-card {
    padding: 8px 0;
  }
  body[data-zap-surface="auth"] .zap-auth-header {
    padding: 16px 24px;
  }
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation .chat-list .message-box-drop {
  visibility: visible;
  flex: 0 0 36px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .message-box-drop > .dropdown-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  line-height: 1;
  background: transparent;
  opacity: .65;
}
html[data-bs-theme] body[data-zap-surface="chat"] .message-box-drop > .dropdown-toggle:hover, html[data-bs-theme] body[data-zap-surface="chat"] .message-box-drop > .dropdown-toggle:focus-visible, html[data-bs-theme] body[data-zap-surface="chat"] .message-box-drop > .dropdown-toggle.show {
  opacity: 1;
  background: var(--zap-complement);
  color: var(--zap-text);
}
html[data-bs-theme] body[data-zap-surface="chat"] .balloon-options {
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--zap-border);
  box-shadow: var(--zap-shadow);
}
html[data-bs-theme] body[data-zap-surface="chat"] .balloon-options .dropdown-item {
  min-height: 40px;
  padding: 8px 12px;
  gap: 20px;
  border-radius: 8px;
  white-space: nowrap;
}
@media (pointer: coarse) {
  html[data-bs-theme] body[data-zap-surface="chat"] .chat-conversation .chat-list .message-box-drop {
    flex-basis: 44px;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .message-box-drop > .dropdown-toggle {
    width: 44px;
    height: 44px;
    opacity: 1;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .balloon-options .dropdown-item {
    min-height: 44px;
  }
}
/* Conteúdo recebido e reações: cores compartilhadas entre os temas. */
.zap-received-label {
  display: block;
  margin-bottom: 6px;
  color: var(--zap-muted);
  font-size: 12px;
  font-weight: 600;
}
.zap-received-context {
  padding: 8px 10px;
  margin-bottom: 8px;
  border-left: 3px solid var(--zap-action);
  border-radius: 8px;
  background: var(--zap-complement);
  color: var(--zap-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.zap-message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 2px;
}
.right .zap-message-reactions {
  justify-content: flex-end;
}
.zap-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--zap-border);
  border-radius: 16px;
  background: var(--zap-surface);
  color: var(--zap-text);
  font-size: 14px;
  line-height: 24px;
}
.zap-sticker img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
}
/* Localização recebida: mapa real, carregado sob demanda, com link externo explícito. */
.zap-location-card {
  width: min(300px, calc(100vw - 110px));
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--zap-border);
  text-align: left;
}
.zap-location-preview {
  height: 180px;
  background: var(--zap-complement);
}
.zap-location-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.zap-location-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  color: var(--zap-text);
  text-decoration: none;
  background: var(--zap-surface);
  overflow-wrap: anywhere;
}
.zap-location-details strong {
  font-size: 13px;
}
.zap-location-details span {
  font-size: 12px;
  color: var(--zap-muted);
}
.zap-location-details:hover {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
  text-decoration: none;
}
.zap-location-details:focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: -2px;
}
.zap-location-message .chat-time {
  margin-top: 4px;
}
/* Cartões de contatos e figurinhas recebidas. */
.zap-contact-card {
  width: min(300px, calc(100vw - 110px));
  max-width: 100%;
  text-align: left;
}
.zap-contact-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 6px 16px;
}
.zap-contact-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.zap-contact-avatar > img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}
.zap-contact-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.zap-contact-info strong {
  font-size: 14px;
  color: inherit;
  overflow-wrap: anywhere;
}
.zap-contact-info span {
  font-size: 12px;
  color: var(--zap-muted);
  overflow-wrap: anywhere;
}
.zap-contact-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid var(--zap-border);
  background: transparent;
  color: var(--zap-action);
  font: inherit;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}
.zap-contact-action:hover {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
.zap-contact-action:focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: -2px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat .chat-conversation .zap-sticker-message .ctext-wrap-content {
  background: transparent !important;
  box-shadow: none;
  border: 0;
  padding: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat .chat-conversation .zap-sticker-message .zap-lazy-photo {
  width: 190px;
  aspect-ratio: 1;
  background: transparent;
}
html[data-bs-theme] body[data-zap-surface="chat"] .user-chat .chat-conversation .zap-sticker-message .zap-sticker img {
  max-width: 190px;
  max-height: 190px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
}
.zap-sticker-message .chat-time {
  width: fit-content;
  margin: 5px 0 0 auto;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--zap-surface);
}
.zap-reaction-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 6px;
  border-bottom: 1px solid var(--zap-border);
}
.zap-reaction-picker button {
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--zap-text);
  font-size: 22px;
}
.zap-reaction-picker button:hover, .zap-reaction-picker button:focus-visible {
  background: var(--zap-primary);
  outline: 2px solid var(--zap-action);
}
.zap-reaction-picker button:disabled {
  opacity: .45;
  cursor: wait;
}
.zap-reaction-picker button:last-child {
  grid-column: 1 / -1;
  font-size: 12px;
  border-radius: 8px;
}
.zap-offline {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f0f4f2;
  color: #17231d;
  font-family: system-ui, sans-serif;
  text-align: center;
}
.zap-offline main {
  max-width: 460px;
  padding: 40px 24px;
}
.zap-offline h1 {
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: -1px;
}
.zap-offline p {
  line-height: 1.7;
  color: #58675e;
}
.zap-offline .zap-offline-brand {
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 2px;
}
.zap-offline a {
  display: inline-flex;
  gap: 24px;
  margin-top: 20px;
  padding: 14px 24px;
  border-radius: 14px;
  background: #15603e;
  color: #fff;
  text-decoration: none;
}
.zap-offline a:focus-visible {
  outline: 3px solid #21c063;
  outline-offset: 4px;
}
@media (prefers-color-scheme: dark) {
  .zap-offline {
    background: #161717;
    color: #f0f4f2;
  }
  .zap-offline p {
    color: #adbab2;
  }
}
/* Detalhes dos contatos compartilhados. */
#incoming-contacts-modal .modal-dialog {
  max-width: 460px;
}
#incoming-contacts-modal .modal-content {
  background: var(--zap-surface) !important;
  color: var(--zap-text);
  border: 1px solid var(--zap-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px #0004;
}
#incoming-contacts-modal .modal-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 18px;
  border: 0;
  background: transparent;
}
#incoming-contacts-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
#incoming-contacts-description {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--zap-muted);
}
#incoming-contacts-modal .modal-body {
  padding: 0 24px;
  background: transparent;
}
#incoming-contacts-modal .incoming-contacts-content {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.zap-incoming-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: var(--zap-complement);
  border: 1px solid var(--zap-border);
}
#incoming-contacts-modal .zap-incoming-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
}
.zap-incoming-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.zap-incoming-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.zap-incoming-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--zap-text);
}
.zap-incoming-info p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--zap-muted);
}
#incoming-contacts-modal .modal-footer {
  padding: 18px 24px 24px;
  border: 0;
  background: transparent;
}
.zap-contact-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--zap-muted);
  font-size: 24px;
  line-height: 1;
}
.zap-contact-done {
  min-height: 40px;
  padding: 8px 24px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
.zap-contact-close:hover, .zap-contact-done:hover {
  background: var(--zap-action);
  color: var(--zap-on-action);
}
.zap-contact-close:focus-visible, .zap-contact-done:focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: 3px;
}
#details-modal {
  z-index: 1055;
}
#details-modal .modal-content {
  background: var(--zap-surface);
  color: var(--zap-text);
  border: 1px solid var(--zap-border);
  border-radius: 18px;
  overflow: hidden;
}
#details-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--zap-border);
}
#details-modal .modal-title {
  font-size: 19px;
  font-weight: 600;
}
#details-modal .modal-header p {
  margin: 5px 0 0;
  color: var(--zap-muted);
  font-size: 13px;
}
#details-modal .modal-body {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  padding: 0;
  height: min(680px, calc(100dvh - 150px));
  min-height: 0;
}
.zap-attendance-info {
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid var(--zap-border);
  background: var(--zap-surface);
}
.zap-attendance-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--zap-primary);
  color: var(--zap-on-primary);
  overflow-wrap: anywhere;
}
.zap-attendance-summary small, .zap-attendance-summary strong {
  display: block;
}
.zap-attendance-section + .zap-attendance-section {
  border-top: 1px solid var(--zap-border);
  padding-top: 18px;
}
.zap-attendance-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--zap-text);
  margin: 0 0 12px;
}
.zap-attendance-section dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  margin: 9px 0;
  font-size: 12px;
}
.zap-attendance-section dt {
  font-weight: 400;
  color: var(--zap-muted);
}
.zap-attendance-section dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.zap-attendance-history {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--zap-complement);
}
.zap-attendance-contact {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--zap-border);
  background: var(--zap-surface);
}
.zap-attendance-contact h3 {
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--zap-text);
}
.zap-attendance-contact small {
  color: var(--zap-muted);
}
#details-modal .chat-conversation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}
#details-modal .ctext-wrap-content {
  border-radius: 12px;
  border: 0;
  background: var(--zap-surface) !important;
  color: var(--zap-text) !important;
}
#details-modal .right .ctext-wrap-content {
  background: var(--zap-primary) !important;
  color: var(--zap-on-primary) !important;
}
#details-modal .replymessage-block {
  text-decoration: none;
  color: inherit;
}
@media (max-width: 767px) {
  #details-modal .modal-dialog {
    margin: 10px;
  }
  #details-modal .modal-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(100px, 28%) minmax(0, 1fr);
    height: calc(100dvh - 130px);
  }
  .zap-attendance-info {
    border-right: 0;
    border-bottom: 1px solid var(--zap-border);
  }
  #details-modal .modal-header {
    padding: 16px;
  }
}
.zap-group-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px;
}
#zap-group-manage .modal-content {
  background: var(--zap-surface);
  color: var(--zap-text);
  border: 1px solid var(--zap-border);
  border-radius: 16px;
}
#zap-group-manage .modal-header, #zap-group-manage .modal-body, #zap-group-manage .modal-footer {
  padding: 20px;
  border-color: var(--zap-border);
}
#zap-group-manage .modal-header {
  justify-content: space-between;
}
#zap-group-manage .zap-group-local {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0 6px;
}
#zap-group-manage input[type=checkbox] {
  accent-color: var(--zap-action);
  width: 18px;
  height: 18px;
}
#zap-group-manage small, #zap-group-manage .zap-group-description {
  color: var(--zap-muted);
  overflow-wrap: anywhere;
}
#zap-group-manage .zap-group-feedback {
  margin: 16px 0 0;
  font-size: 13px;
}
#zap-group-members {
  margin-top: 24px;
  border-top: 1px solid var(--zap-border);
  padding-top: 24px;
}
#zap-group-members h3 {
  font-size: 15px;
  color: var(--zap-text);
  margin-bottom: 16px;
}
#zap-group-members ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#zap-group-members li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--zap-border);
}
#zap-group-members strong {
  display: block;
  color: var(--zap-text);
  font-size: 14px;
  overflow-wrap: anywhere;
}
#zap-group-members small, #zap-group-members p {
  display: block;
  color: var(--zap-muted);
  font-size: 12px;
}
.zap-member-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zap-primary);
  color: var(--zap-on-primary, #fff);
}
#zap-group-members .zap-member-chat {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  place-items: center;
  align-self: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--zap-primary);
  color: var(--zap-on-primary);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
#zap-group-members .zap-member-chat .zap-action-icon {
  margin: 0;
  font-size: 21px;
}
#zap-group-members .zap-member-chat:is(:hover, :focus-visible):not(:disabled) {
  background: var(--zap-action);
  color: var(--zap-on-action);
}
#zap-group-members .zap-member-chat:focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: 3px;
}
#zap-group-members .zap-member-chat:disabled {
  opacity: .4;
  cursor: not-allowed;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-action-icon {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  vertical-align: -3px;
  margin-inline-end: 6px;
  color: currentColor;
  pointer-events: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-tab-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
/* Menu do chat com superfície própria no tema claro. */
html[data-bs-theme="light"] body[data-zap-surface="chat"] .side-menu {
  background: #e7efeb;
  border-inline-end: 1px solid #cbd9d1;
  box-shadow: 2px 0 8px rgb(23 60 40 / 3%);
}
html[data-bs-theme="light"] body[data-zap-surface="chat"] .side-menu .nav-link {
  color: #496356;
  transition: background-color 160ms ease, color 160ms ease;
}
html[data-bs-theme="light"] body[data-zap-surface="chat"] .side-menu .nav-link:hover {
  background: #d5e5dc;
  color: #124e33;
}
html[data-bs-theme="light"] body[data-zap-surface="chat"] .side-menu .nav-link.active {
  background: #15603e;
  color: #ffffff;
  box-shadow: 0 2px 5px rgb(21 96 62 / 15%);
}
html[data-bs-theme="light"] body[data-zap-surface="chat"] .side-menu .nav-link:focus-visible {
  outline: 2px solid #15603e;
  outline-offset: 3px;
}
/* Quatro filtros em uma única linha, com espaço reservado aos contadores. */
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-inline: 16px;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .nav-link {
  position: relative;
  justify-content: center !important;
  padding: 8px 3px;
  min-height: 60px;
  border-radius: 12px;
  gap: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .zap-tab-label {
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  line-height: 16px;
  text-transform: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .zap-action-icon {
  font-size: 18px;
  margin: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  max-width: 44px;
  font-size: 10px;
  line-height: 11px;
  border-radius: 12px !important;
  width: 20px;
	text-align: center;
}
html[data-bs-theme] body[data-zap-surface="chat"] #TabTypesChat .nav-link:not(.active):hover {
  background: var(--zap-complement);
}
.zap-contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.zap-contact-tags[hidden] {
  display: none;
}
.zap-contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid var(--zap-border);
  border-radius: 6px;
  color: var(--zap-text);
  background: var(--zap-complement);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  overflow-wrap: anywhere;
}
.zap-contact-tag i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--zap-muted);
}
html[data-bs-theme] .zap-message-deleted {
  --zap-deleted-bg: #fff1f1;
  --zap-deleted-border: #e5b4b9;
  --zap-deleted-accent: #a73343;
}
html[data-bs-theme="dark"] .zap-message-deleted {
  --zap-deleted-bg: #302125;
  --zap-deleted-border: #69404a;
  --zap-deleted-accent: #f0a1ae;
}
html[data-bs-theme] body .chat-conversation .zap-message-deleted .ctext-wrap-content {
  border: 1px solid var(--zap-deleted-border) !important;
  border-left: 3px solid var(--zap-deleted-accent) !important;
  background: var(--zap-deleted-bg) !important;
}
html[data-bs-theme] .zap-message-deleted .zap-deleted-notice {
  color: var(--zap-deleted-accent);
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--zap-deleted-border);
}
html[data-bs-theme] .zap-group-departure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--zap-border);
  border-radius: 20px;
  background: var(--zap-surface);
  color: var(--zap-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.zap-group-departure .bx {
  flex-shrink: 0;
  font-size: 17px;
}
.zap-deleted-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--zap-muted);
  font-size: 11px;
  margin-bottom: 8px;
}
html[data-bs-theme] .zap-history-footer {
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
html[data-bs-theme] .zap-history-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 0;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--zap-muted);
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
html[data-bs-theme] .zap-history-button .zap-action-icon {
  margin: 0;
  font-size: 13px;
}
html[data-bs-theme] .zap-history-button:is(:hover, :focus-visible) {
  color: var(--zap-on-primary);
  background: var(--zap-primary);
  border-color: var(--zap-border);
}
html[data-bs-theme] .zap-history-button:focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: 2px;
}
.zap-history-entry {
  border-inline-start: 3px solid var(--zap-action);
  padding: 4px 14px;
  margin-bottom: 20px;
}
.zap-history-entry small {
  display: block;
  color: var(--zap-muted);
  margin: 5px 0 10px;
}
.zap-history-entry p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#zap-message-change .modal-header {
  justify-content: space-between;
  gap: 16px;
}
#zap-message-change .zap-contact-close {
  margin-inline-start: auto;
  flex-shrink: 0;
}
/* Ações dos grupos: menu fora da área de rolagem da lista. */
html[data-bs-theme] body[data-zap-surface="chat"] .zap-group-row > .unread-msg-user {
  padding-right: 48px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-group-options-toggle {
  position: absolute;
  right: 9px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--zap-muted);
  font-size: 24px;
  line-height: 1;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-group-options-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) {
  background: var(--zap-primary);
  color: var(--zap-on-primary);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-group-options-menu {
  position: fixed;
  z-index: 1050;
  width: 200px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border: 1px solid var(--zap-border);
  border-radius: 12px;
  background: var(--zap-surface);
  color: var(--zap-text);
  box-shadow: 0 8px 28px #0003;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-group-options-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 13px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-group-options-menu button:is(:hover, :focus-visible) {
  background: var(--zap-primary);
  outline: 2px solid transparent;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-group-options-menu .zap-group-option-danger {
  color: #c43447;
  border-top: 1px solid var(--zap-border);
  margin-top: 4px;
}
html[data-bs-theme="dark"] body[data-zap-surface="chat"] .zap-group-options-menu .zap-group-option-danger {
  color: #ff9ba7;
}
html[data-bs-theme] body[data-zap-surface] .balloon-options .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
}
html[data-bs-theme] body[data-zap-surface] .balloon-options .dropdown-item .zap-action-icon {
  flex: 0 0 18px;
  width: 18px;
  margin: 0;
  font-size: 18px;
  text-align: center;
  color: inherit;
}
html[data-bs-theme] body[data-zap-surface] .balloon-options .zap-message-delete-action {
  color: #b53647;
  border-top: 1px solid var(--zap-border);
  margin-top: 4px;
}
html[data-bs-theme="dark"] body[data-zap-surface] .balloon-options .zap-message-delete-action {
  color: #ff9ba7;
}
html[data-bs-theme] body[data-zap-surface] .balloon-options .dropdown-item:focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: -2px;
  background: var(--zap-primary);
}
/* Linguagem visual compartilhada por diálogos do chat e dos painéis. */
html[data-bs-theme] body .modal {
  --bs-modal-padding: 24px;
  --bs-modal-header-padding: 20px 24px;
  --bs-modal-color: var(--zap-text);
  --bs-modal-bg: var(--zap-surface);
  --bs-modal-border-color: var(--zap-border);
  --bs-modal-border-radius: 18px;
}
html[data-bs-theme] body :is(.modal-content, .swal2-popup) {
  background: var(--zap-surface) !important;
  color: var(--zap-text);
  border: 1px solid var(--zap-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 80px #0004 !important;
}
html[data-bs-theme] body .modal-content > :is(.modal-header, .modal-footer) {
  padding: 18px 24px !important;
  background: transparent !important;
  border-color: var(--zap-border);
}
html[data-bs-theme] body .modal-header {
  gap: 16px;
  align-items: center;
}
html[data-bs-theme] body .modal-header .modal-title {
  margin: 0;
  color: var(--zap-text) !important;
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
}
html[data-bs-theme] body .modal-body {
  padding: 24px;
  color: var(--zap-text);
}
html[data-bs-theme] body .modal-footer {
  gap: 8px;
}
html[data-bs-theme] body .modal-footer > * {
  margin: 0;
}
html[data-bs-theme] body :is(.modal, .swal2-popup) :is(.btn, .swal2-styled) {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-transform: none !important;
  box-shadow: none;
}
html[data-bs-theme] body :is(.modal .btn-primary, .swal2-confirm) {
  background: var(--zap-action) !important;
  color: var(--zap-on-action) !important;
  border-color: transparent;
}
html[data-bs-theme] body :is(.modal .btn-secondary, .swal2-cancel, .swal2-deny) {
  background: var(--zap-complement) !important;
  color: var(--zap-text) !important;
  border: 1px solid var(--zap-border);
}
html[data-bs-theme] body :is(.modal, .swal2-popup) :is(.btn, .swal2-styled):hover {
  filter: brightness(.94);
}
html[data-bs-theme] body :is(.modal, .swal2-popup) :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: 3px;
}
html[data-bs-theme] body .modal-header :is(.btn-close, .close, .zap-contact-close) {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  padding: 0;
  margin: 0 0 0 auto;
  border: 1px solid var(--zap-border);
  border-radius: 10px;
  background-color: var(--zap-complement);
  color: var(--zap-muted);
  opacity: 1;
}
html[data-bs-theme] body .modal-header :is(.close, .zap-contact-close) {
  font-size: 22px;
  line-height: 32px;
}
html[data-bs-theme="dark"] body .modal-header .btn-close {
  filter: none;
  --bs-btn-close-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23b9c3bd' stroke-width='1.8' d='m4 4 8 8m0-8-8 8'/%3E%3C/svg%3E");
}
html[data-bs-theme] body .modal :is(.form-control, .form-select) {
  min-height: 42px;
  border-radius: 10px;
  background-color: var(--zap-complement);
  color: var(--zap-text);
  border-color: var(--zap-border);
}
html[data-bs-theme] body .modal .form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
html[data-bs-theme] body .swal2-title {
  padding: 24px 24px 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--zap-text);
}
html[data-bs-theme] body .swal2-html-container {
  margin: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--zap-muted);
}
html[data-bs-theme] body .swal2-actions {
  gap: 8px;
  width: calc(100% - 48px);
  max-width: 320px;
  align-items: stretch;
  margin: 8px auto 24px;
}
html[data-bs-theme] body .swal2-actions > .swal2-styled {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
  overflow-wrap: anywhere;
}
html[data-bs-theme] body .swal2-styled {
  margin: 0;
}
html[data-bs-theme] .zap-history-entry {
  position: relative;
  padding: 16px 18px;
  margin: 0 0 12px;
  border: 1px solid var(--zap-border);
  border-left: 3px solid var(--zap-action);
  border-radius: 12px;
  background: var(--zap-complement);
}
html[data-bs-theme] .zap-history-entry:last-child {
  margin-bottom: 0;
}
html[data-bs-theme] .zap-history-entry strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
html[data-bs-theme] .zap-history-entry small {
  margin: 5px 0 12px;
  font-size: 11px;
  line-height: 1.5;
}
html[data-bs-theme] .zap-history-entry p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
html[data-bs-theme] .zap-history-summary {
  color: var(--zap-muted);
  font-size: 13px;
  margin: 0 0 16px;
}
@media (max-width: 575.98px) {
  html[data-bs-theme] body .modal-dialog {
    margin: 12px;
  }
  html[data-bs-theme] body .modal-content > :is(.modal-header, .modal-footer), html[data-bs-theme] body .modal-body {
    padding: 16px !important;
  }
  html[data-bs-theme] body .modal-footer {
    flex-wrap: wrap;
  }
  html[data-bs-theme] body .modal-footer .btn {
    min-height: 44px;
  }
}
html[data-bs-theme] .zap-forwarded-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--zap-muted);
  font-size: 11px;
  font-style: italic;
  line-height: 16px;
}
html[data-bs-theme] .zap-forwarded-label .bx {
  font-size: 15px;
  font-style: normal;
}
html[data-bs-theme] .zap-sticker-message .zap-forwarded-label {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--zap-surface);
}
.zap-contact-photo-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.zap-contact-photo-editor[hidden] {
  display: none;
}
.zap-contact-photo-editor img {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--zap-border);
}
.zap-contact-photo-editor small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--zap-muted);
}

/* Listas de pessoas: notificações alinhadas e ações reveladas por interação. */
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .chat-list > .zap-contact-row {
  position: relative;
  margin: 2px 9px;
  border-radius: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .chat-list > .zap-contact-row:not(:last-child)::after,
#zap-group-members li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--zap-border) 25%, var(--zap-border) 75%, transparent);
  transition: opacity 160ms ease;
  pointer-events: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .chat-list > .zap-contact-row:is(:hover, :focus-within)::after,
#zap-group-members li:is(:hover, :focus-within)::after {
  opacity: 0;
}
html[data-bs-theme] body[data-zap-surface="chat"] .chat-leftsidebar .chat-list > .zap-contact-row > a {
  min-height: 72px;
  padding: 12px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:is(:hover, :focus-within, .active),
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has([aria-expanded="true"]),
#zap-group-members li:is(:hover, :focus-within),
#zap-group-members li:has([aria-expanded="true"]) {
  background: var(--zap-chat-selected);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row .zap-contact-main > .ms-auto {
  flex: 0 0 auto;
  min-width: 44px;
  gap: 4px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row .zap-preview-time {
  line-height: 18px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has(.qtd_msgs:not(:empty)) .zap-preview-time {
  color: var(--zap-action);
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row .qtd_msgs:not(:empty) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px !important;
  border-radius: 12px !important;
  background: var(--zap-action);
  color: var(--zap-on-action);
  font-size: 12px;
  line-height: 20px;
  transition: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row .zap-contact-options {
  position: absolute;
  inset-inline-end: 8px;
  bottom: 8px;
}
html[data-bs-theme] body[data-zap-surface="chat"] :is(.zap-contact-row, #zap-group-members li) .zap-group-options-toggle,
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row .contact_droupdown .dropdown-toggle {
  right: auto;
  inset-inline-end: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0 !important;
  border-radius: 50%;
  background: transparent;
  color: var(--zap-muted);
  opacity: 0;
  pointer-events: none;
}
html[data-bs-theme] body[data-zap-surface="chat"] :is(.zap-contact-row, #zap-group-members li):is(:hover, :focus-within, :has([aria-expanded="true"])) :is(.zap-group-options-toggle, .contact_droupdown .dropdown-toggle) {
  opacity: 1;
  pointer-events: auto;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has(.zap-contact-options) .zap-contact-copy {
  padding-inline-end: 28px;
}
html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has(.zap-group-options-toggle):is(:hover, :focus-within, :has([aria-expanded="true"])) .qtd_msgs {
  margin-inline-end: 28px;
}
html[data-bs-theme] body[data-zap-surface="chat"] :is(.zap-contact-row, #zap-group-members li) :is(.dropdown-toggle, .zap-group-options-toggle):focus-visible {
  outline: 2px solid var(--zap-action);
  outline-offset: 2px;
}
#zap-group-members li {
  position: relative;
  min-height: 72px;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  padding: 12px;
  margin-block: 2px;
  border: 0;
  border-radius: 12px;
  gap: 12px;
}
#zap-group-members .zap-member-avatar {
  width: 48px;
  height: 48px;
}
#zap-group-members strong {
  font-size: 16px;
  font-weight: 400;
}
@media (hover: none), (pointer: coarse) {
  html[data-bs-theme] body[data-zap-surface="chat"] :is(.zap-contact-row, #zap-group-members li) :is(.zap-group-options-toggle, .contact_droupdown .dropdown-toggle) {
    opacity: 1;
    pointer-events: auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has(.zap-group-options-toggle) .qtd_msgs,
  html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has(.zap-group-options-toggle):is(:hover, :focus-within, :has([aria-expanded="true"])) .qtd_msgs {
    margin-inline-end: 44px;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has(.zap-contact-options) .zap-contact-copy {
    padding-inline-end: 44px;
  }
  html[data-bs-theme] body[data-zap-surface="chat"] .zap-contact-row:has(.zap-group-options-toggle) .zap-contact-main > .ms-auto {
    min-width: 88px;
  }
  #zap-group-members li {
    grid-template-columns: 48px minmax(0, 1fr) 44px;
  }
}
/* Disponibilidade do atendente, confirmada pela conexão atual. */
html[data-bs-theme] body[data-zap-surface="chat"] #zap-connection {
  position: fixed;
  z-index: 1080;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 24px);
  margin: 0;
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}
.zap-availability {
  border: 1px solid var(--zap-border);
  border-radius: 999px;
  background: var(--zap-surface);
  color: var(--zap-text);
  padding: 6px 10px;
  font-size: .75rem;
  min-height: 36px;
  margin-left: auto;
}
.zap-availability::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: currentColor;
}
.zap-availability[data-online="true"]::before {
  background: #24a568;
}
.zap-availability:disabled {
  cursor: default;
}
.zap-session-dialog {
  border: 1px solid var(--zap-border);
  border-radius: 16px;
  background: var(--zap-surface);
  color: var(--zap-text);
  padding: 24px;
  width: min(440px, calc(100% - 32px));
}
.zap-session-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.zap-unread-hidden {
  display: none !important;
}
.zap-has-unread .text-truncate {
  font-weight: 600;
}
#zap-unread-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--zap-border);
  border-radius: var(--zap-pill);
  background: var(--zap-complement);
  color: var(--zap-muted);
  font-size: 13px;
  font-weight: 600;
}
#zap-unread-filter:hover {
  color: var(--zap-text);
  background: var(--zap-surface);
}
#zap-unread-filter[aria-pressed="true"] {
  border-color: var(--zap-primary);
  color: var(--zap-on-primary);
  background: var(--zap-primary);
}
#zap-unread-filter:focus-visible {
  outline: 2px solid var(--zap-accent);
  outline-offset: 3px;
  box-shadow: none;
}
#zap-unread-filter #zap-unread-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--zap-pill);
  background: var(--zap-border) !important;
  color: var(--zap-text) !important;
  font-size: 11px;
  line-height: 1;
}
#zap-unread-filter[aria-pressed="true"] #zap-unread-total {
  background: var(--zap-action) !important;
  color: var(--zap-on-action) !important;
}

.zap-internal-panel { --bs-offcanvas-width: min(1080px, 100vw); z-index: 1095; }
.zap-internal-panel .offcanvas-header { padding: 20px 24px; border-bottom: 1px solid var(--bs-border-color); }
.zap-internal-panel .offcanvas-body { padding: 0; overflow: hidden; display: flex; }
.zap-internal-close { color: var(--zap-text); font-size: 28px; width: 44px; height: 44px; padding: 4px; }
.zap-team-avatar { width: 42px; height: 42px; border-radius: 14px; background: var(--zap-primary); color: var(--zap-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; font-weight: 600; }
.zap-team-avatar i { font-size: 24px; }
.zap-internal-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); flex: 1; min-height: 0; min-width: 0; }
.zap-internal-sidebar { border-right: 1px solid var(--bs-border-color); min-height: 0; display: flex; flex-direction: column; }
.zap-internal-search { margin: 20px 16px; position: relative; }
.zap-internal-search > i { position: absolute; top: 14px; left: 12px; font-size: 18px; color: var(--zap-muted); }
.zap-internal-search input { padding-left: 38px; min-height: 44px; }
.zap-internal-label { font-size: 12px; font-weight: 600; color: var(--zap-muted); padding: 0 20px 12px; margin: 0; }
#zap-internal-threads { overflow-y: auto; padding: 0 10px 16px; gap: 6px; }
#zap-internal-threads > p { padding: 12px; line-height: 1.6; }
#zap-internal-threads .list-group-item { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; padding: 12px 10px; text-align: left; color: var(--zap-text); }
#zap-internal-threads .list-group-item:hover { background: var(--zap-complement); }
#zap-internal-threads .list-group-item[aria-pressed="true"] { background: var(--zap-primary); border-color: var(--zap-accent); }
.zap-internal-person { min-width: 0; flex: 1; }
.zap-internal-person strong { display: block; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.zap-internal-person small { display: block; color: var(--zap-muted); margin-top: 4px; }
.zap-internal-conversation { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.zap-internal-peerbar { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--bs-border-color); min-height: 80px; }
.zap-internal-peerbar > div { min-width: 0; overflow-wrap: anywhere; }
#zap-internal-back { display: none; }
.zap-internal-history { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; background: var(--zap-complement); }
.zap-internal-history.is-empty { display: flex; align-items: center; justify-content: center; }
.zap-internal-empty { text-align: center; max-width: 280px; color: var(--zap-muted); line-height: 1.6; }
.zap-internal-empty > i { display: block; font-size: 38px; margin-bottom: 16px; color: var(--zap-accent); }
.zap-internal-empty strong { display: block; color: var(--zap-text); margin-bottom: 8px; font-size: 16px; }
.zap-internal-empty p { margin: 0; }
.zap-internal-message { width: fit-content; max-width: 85%; padding: 12px 16px; margin-bottom: 14px; background: var(--zap-surface); border: 1px solid var(--bs-border-color); border-radius: 14px 14px 14px 4px; overflow-wrap: anywhere; }
.zap-internal-message p { white-space: pre-wrap; margin-bottom: 6px; }
.zap-internal-message small { color: var(--zap-muted); font-size: 11px; }
.zap-internal-message.is-mine { margin-left: auto; background: var(--zap-primary); border-radius: 14px 14px 4px 14px; }
#zap-internal-form { display: flex; align-items: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--bs-border-color); }
#zap-internal-body { resize: vertical; min-height: 48px; max-height: 150px; }
#zap-internal-send { display: flex; gap: 8px; align-items: center; min-height: 44px; }
#zap-internal-send i { font-size: 20px; }
#zap-internal-status:not(:empty) { padding: 0 20px 12px; }
.zap-internal-panel :is(button,input,textarea):focus-visible { outline: 2px solid var(--zap-accent); outline-offset: 2px; }
.zap-chat-tools { display: flex; gap: 8px; padding: 0 16px 12px; }
.zap-chat-tools .btn { min-height: 40px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; }
.zap-chat-tools .btn:first-child { flex: 1; }
@media (max-width: 767.98px) {
  .zap-internal-grid { grid-template-columns: minmax(0, 1fr); }
  .zap-internal-panel .offcanvas-header { padding: 14px 16px; }
  .zap-internal-sidebar { border-right: 0; }
  .zap-internal-conversation { display: none; }
  .zap-internal-panel.has-thread .zap-internal-sidebar { display: none; }
  .zap-internal-panel.has-thread .zap-internal-conversation { display: flex; }
  #zap-internal-back { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; color: var(--zap-text); font-size: 22px; padding: 0; }
  .zap-internal-peerbar { padding: 12px; gap: 8px; }
  .zap-internal-history { padding: 16px; }
  #zap-internal-form { padding: 12px; gap: 8px; }
  #zap-internal-send span { display: none; }
}

.zap-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
}
.zap-admin-layout > main {
  margin-left: 224px;
}
.zap-admin-layout .table-responsive {
  position: relative;
}
.zap-admin-footer {
  margin-left: 224px;
  padding: 12px 28px;
}
@media (max-width: 991.98px) {
  .zap-admin-layout > main, .zap-admin-footer {
    margin-left: 0;
  }
}
.zap-flow-viewport {
  height: 65vh;
  min-height: 420px;
  overflow: auto;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  border-radius: .5rem;
}
.zap-flow-canvas {
  position: relative;
  width: 3600px;
  height: 5200px;
  transform-origin: 0 0;
}
.zap-flow-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.zap-flow-edges path {
  fill: none;
  stroke: var(--bs-secondary-color);
  stroke-width: 2;
}
.zap-flow-node {
  position: absolute;
  width: 220px;
  padding: .75rem;
  border: 2px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-body-bg);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.zap-flow-node.selected {
  border-color: var(--bs-primary);
}
.zap-flow-node.invalid {
  border-color: var(--bs-danger);
}
.zap-flow-node-title {
  color: var(--bs-body-color);
  background: none;
  border: 0;
  text-align: left;
  font-weight: 600;
  cursor: grab;
  touch-action: none;
  overflow-wrap: anywhere;
}
.zap-flow-zoom {
  width: 100px;
}
@media (max-width: 991.98px) {
  .zap-flow-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .zap-flow-viewport {
    height: 50vh;
  }
}
.zap-internal-nav { position: relative; border: 0; background: transparent; }
.zap-internal-nav .badge { position: absolute; top: 1px; right: 0; font-size: 10px; }
.zap-chat-tools .btn:first-child { flex: initial; }
.zap-internal-panel .zap-internal-close { margin-left: auto; flex-shrink: 0; }

/* Menu compartilhado pelos painéis, com geometria animada em conjunto. */
.zap-panel-brandbar { display: flex; align-items: center; min-height: 60px; margin-bottom: 16px; gap: 4px; }
.zap-panel-brandbar .zap-panel-brand { padding: 0 8px; margin: 0; flex: 1; min-width: 0; font-size: 22px; overflow: hidden; white-space: nowrap; }
.zap-panel-brandbar .zap-panel-brand span { font-size: 11px; }
.zap-panel-menu-toggle { display: none; }
.zap-admin-main { min-width: 0; padding: 0 28px 32px; }
.zap-admin-footer footer { border-color: var(--zap-border) !important; }
.zap-admin-layout .table { --bs-table-border-color: var(--zap-border); --bs-table-color: var(--zap-text); }
.zap-admin-layout .table a { color: var(--zap-on-primary); text-decoration: none; }
.zap-admin-layout .table a:hover { text-decoration: underline; }
.zap-panel-logout { border-top: 1px solid var(--zap-border); padding-top: 12px; margin-top: 12px !important; }
@media (min-width: 992px) {
  html[data-bs-theme] body[data-zap-surface="panel"] #zap-panel-menu { transition: width 280ms cubic-bezier(.22,1,.36,1), min-width 280ms cubic-bezier(.22,1,.36,1), background-color var(--zap-motion); }
  html[data-bs-theme] #zap-panel-menu .zap-panel-menu-toggle { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; min-height: 40px; padding: 8px; margin: 0; border: 0; border-radius: 10px; background: transparent; color: var(--zap-muted); }
  html[data-bs-theme] #zap-panel-menu .zap-panel-menu-toggle:hover { background: var(--zap-primary); color: var(--zap-on-primary); }
  #zap-panel-menu-toggle:focus-visible { outline: 2px solid var(--zap-accent); outline-offset: 2px; }
  #zap-panel-menu-toggle svg { transition: transform 280ms cubic-bezier(.22,1,.36,1); }
  #zap-panel-menu .zap-nav-label { display: block; white-space: nowrap; max-width: 160px; opacity: 1; overflow: hidden; transition: opacity 160ms ease, max-width 280ms cubic-bezier(.22,1,.36,1); }
  #zap-panel-menu .zap-panel-brand { max-width: 164px; opacity: 1; transition: max-width 280ms cubic-bezier(.22,1,.36,1), opacity 160ms ease, padding 280ms cubic-bezier(.22,1,.36,1); }
  html[data-bs-theme] body[data-zap-surface="panel"] #zap-panel-menu .nav-link { overflow: hidden; gap: 12px; transition: gap 280ms cubic-bezier(.22,1,.36,1), padding 280ms cubic-bezier(.22,1,.36,1), background-color var(--zap-motion), color var(--zap-motion); }
  html[data-bs-theme] body[data-zap-surface="panel"] > .layout-wrapper > .user-chat,
  .zap-admin-layout > main, .zap-admin-footer { transition: margin-left 280ms cubic-bezier(.22,1,.36,1), width 280ms cubic-bezier(.22,1,.36,1), background-color var(--zap-motion); }
  html.zap-panel-collapsed body[data-zap-surface="panel"]:has(#zap-panel-menu) { --zap-nav-width: 76px; }
  html.zap-panel-collapsed body[data-zap-surface="panel"] #zap-panel-menu { width: 76px; min-width: 76px; }
  html.zap-panel-collapsed #zap-panel-menu .zap-nav-label { max-width: 0; opacity: 0; }
  html.zap-panel-collapsed #zap-panel-menu .zap-panel-brand { max-width: 0; opacity: 0; padding-inline: 0; pointer-events: none; visibility: hidden; }
  html.zap-panel-collapsed body[data-zap-surface="panel"] #zap-panel-menu .nav-link { gap: 0; }
  html.zap-panel-collapsed #zap-panel-menu-toggle svg { transform: rotate(180deg); }
  html.zap-panel-collapsed body[data-zap-surface="panel"] > .layout-wrapper:has(#zap-panel-menu) > .user-chat { margin-left: 76px; width: calc(100% - 76px) !important; }
  html.zap-panel-collapsed .zap-admin-layout > main, html.zap-panel-collapsed body:has(.zap-admin-layout) .zap-admin-footer { margin-left: 76px; }
}
@media (max-width: 991.98px) { .zap-admin-main { padding: 0 12px 24px; } .zap-panel-brandbar { min-height: 44px; margin-bottom: 8px; } }
@media (prefers-reduced-motion: reduce) {
  html[data-bs-theme] body *, html[data-bs-theme] body *::before, html[data-bs-theme] body *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Editor de fluxo: canvas, ferramentas e inspetor no padrão Zap5. */
.zap-flow-heading { margin-bottom: 20px; }
.zap-flow-heading h1 { font-size: 24px; margin-bottom: 8px; }
.zap-flow-heading p { margin: 0; max-width: 800px; }
.zap-flow-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px; margin-bottom: 12px; background: var(--zap-surface); border: 1px solid var(--zap-border); border-radius: 12px; }
.zap-flow-toolgroup { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.zap-flow-actions { margin-left: auto; }
html[data-bs-theme] #zap-flow .btn { text-transform: none; font-weight: 550; }
#zap-flow-save { color: var(--zap-on-primary); border-color: var(--zap-border); background: var(--zap-primary); }
#zap-flow-zoom { accent-color: var(--zap-action); }
#zap-flow-zoom::-webkit-slider-thumb { background: var(--zap-action); }
#zap-flow-zoom::-moz-range-thumb { background: var(--zap-action); }
#zap-flow-status:empty { display: none; }
#zap-flow-status { color: var(--zap-muted); padding: 0 4px; margin: 8px 0 12px; }
#zap-flow .zap-flow-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
#zap-flow .zap-flow-viewport { height: max(560px, calc(100dvh - 300px)); border-radius: 12px; background-color: var(--zap-complement); background-image: radial-gradient(var(--zap-border) 1px, transparent 1px); background-size: 20px 20px; }
#zap-flow .zap-flow-node { background: var(--zap-surface); color: var(--zap-text); border: 1px solid var(--zap-border); border-radius: 12px; padding: 14px; gap: 8px; box-shadow: var(--zap-shadow-small); }
#zap-flow .zap-flow-node.selected { border-color: var(--zap-accent); box-shadow: 0 0 0 2px var(--zap-primary); }
#zap-flow .zap-flow-node.invalid { border-color: var(--zap-error); }
#zap-flow .zap-flow-node-title { color: var(--zap-text); padding: 0; min-height: 24px; line-height: 1.4; }
#zap-flow .zap-flow-node > small { display: flex; align-items: center; gap: 6px; color: var(--zap-muted); font-size: 11px; }
#zap-flow .zap-flow-node > small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--zap-accent); }
#zap-flow .zap-flow-node .btn { width: 100%; min-height: 32px; font-size: 12px; color: var(--zap-muted); background: var(--zap-complement); }
#zap-flow .zap-flow-edges path { stroke: var(--zap-muted); stroke-width: 1.5; opacity: .5; }
#zap-flow .zap-flow-edges path.is-selected { stroke: var(--zap-accent); stroke-width: 2.5; opacity: 1; }
#zap-flow :is(button,input,textarea,select):focus-visible { outline: 2px solid var(--zap-accent); outline-offset: 2px; }
.zap-flow-inspector { max-height: max(560px, calc(100dvh - 300px)); overflow-y: auto; border-radius: 12px; }
.zap-flow-inspector .card-body { padding: 20px; }
.zap-flow-inspector-heading { border-bottom: 1px solid var(--zap-border); padding-bottom: 16px; margin-bottom: 20px; }
.zap-flow-eyebrow { display: block; color: var(--zap-muted); font-size: 11px; margin-bottom: 6px; }
.zap-flow-inspector-heading h2 { margin: 0; font-size: 18px; }
#zap-flow-properties .form-label { font-size: 12px; font-weight: 550; }
#flow-property-text { min-height: 180px; line-height: 1.6; }
.zap-flow-coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zap-flow-help { border-top: 1px solid var(--zap-border); padding-top: 16px; margin: 20px 0; color: var(--zap-muted); }
@media (max-width: 1199.98px) { .zap-flow-actions { margin-left: 0; } }
@media (max-width: 991.98px) {
  #zap-flow .zap-flow-layout { grid-template-columns: minmax(0, 1fr); }
  #zap-flow .zap-flow-viewport { height: 55dvh; min-height: 360px; }
  .zap-flow-inspector { max-height: none; }
}
@media (max-width: 575.98px) {
  .zap-flow-toolbar { gap: 16px; }
  .zap-flow-toolgroup { width: 100%; }
  .zap-flow-actions .btn { flex: 1 1 auto; }
  .zap-flow-heading h1 { font-size: 21px; }
}

/* Inspetor sobre o canvas, sem reservar coluna na listagem do fluxo. */
#zap-flow .zap-flow-layout { display: block; position: relative; }
#zap-flow .zap-flow-viewport { width: 100%; }
#zap-flow .zap-flow-inspector { position: absolute; top: 12px; right: 12px; width: min(360px, calc(100% - 24px)); max-height: calc(100% - 24px); margin: 0; z-index: 5; box-shadow: var(--zap-shadow); background: var(--zap-surface); }
#zap-flow .zap-flow-inspector[hidden] { display: none !important; }
#zap-flow .zap-flow-inspector-heading { display: flex; align-items: flex-start; gap: 8px; }
#zap-flow .zap-flow-inspector-heading > div { flex: 1; min-width: 0; }
#zap-flow .zap-flow-inspector-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; min-height: 40px; padding: 8px; color: var(--zap-muted); background: transparent; border: 0; }
#zap-flow .zap-flow-inspector-close:hover { color: var(--zap-text); background: var(--zap-complement); }
@media (prefers-reduced-motion: no-preference) {
  #zap-flow .zap-flow-inspector:not([hidden]) { animation: zap-flow-inspector-enter 180ms ease-out; }
  @keyframes zap-flow-inspector-enter { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
}
@media (max-width: 575.98px) { #zap-flow .zap-flow-inspector .card-body { padding: 14px; } }

/* Matrizes oficiais: positivo no claro e negativo no escuro, sem filtros. */
.zap-official-logo { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.zap-official-logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.zap-official-logo-horizontal { width: 180px; }
.zap-official-logo-nome { width: 90px; }
.zap-official-logo .zap-logo-negative { display: none; }
[data-bs-theme="dark"] .zap-official-logo .zap-logo-positive { display: none; }
[data-bs-theme="dark"] .zap-official-logo .zap-logo-negative { display: block; }
.zap-panel-brandbar .zap-panel-brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.zap-panel-brandbar .zap-panel-context { font-size: 10px; line-height: 1.2; }
.zap-rail-brand { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 8px; }
.zap-rail-brand img { width: 32px; height: 32px; object-fit: contain; }
#zap-list-logo[hidden] { display: none; }
@media (max-width: 575.98px) { .zap-auth-header { flex-wrap: wrap; gap: 20px; } }
.zap-panel-symbol { display: none; }
@media (min-width: 992px) {
  html.zap-panel-collapsed #zap-panel-menu .zap-panel-brandbar { flex-wrap: wrap; justify-content: center; }
  html.zap-panel-collapsed #zap-panel-menu .zap-panel-brand { position: absolute; }
  html.zap-panel-collapsed #zap-panel-menu .zap-panel-symbol { display: flex; align-items: center; justify-content: center; flex: 0 0 100%; height: 48px; }
  .zap-panel-symbol img { width: 32px; height: 32px; }
}
#zap-flow-viewport { cursor: grab; }
#zap-flow-viewport.is-panning { cursor: grabbing; user-select: none; scroll-behavior: auto; }
