:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #eef4f8;
  --text: #142033;
  --muted: #65758b;
  --line: #dce5ef;
  --brand: #1957a6;
  --accent: #16856a;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(20, 32, 51, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  color: var(--text);
  background: var(--bg);
}

[hidden] {
  display: none !important;
}

.admin-booting .admin-shell,
.admin-booting .admin-login {
  visibility: hidden;
}

.admin-login {
  height: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(20px, 5vw, 56px);
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 87, 166, 0.10), transparent 32%),
    linear-gradient(135deg, #f7f9fc 0%, #eef4f8 48%, #f8fafc 100%);
}

.admin-login[hidden] {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-section-head,
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}

.admin-section-head {
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin: 0;
}

.admin-section-head > .section-tabs {
  margin: 0;
  flex: 0 1 auto;
}

.admin-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

h3 {
  margin-bottom: 0;
}

.admin-api-field,
.admin-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-api-field input,
.admin-search input {
  width: min(360px, 54vw);
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #ffffff;
}

.admin-translation-field {
  display: none !important;
}

.whatsapp-actions-menu {
  position: relative;
  flex: 0 0 auto;
}

.whatsapp-new-conversation-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 14px;
  font-weight: 500;
}

.whatsapp-actions-trigger {
  list-style: none;
}

.whatsapp-actions-trigger::-webkit-details-marker {
  display: none;
}

.whatsapp-actions-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  width: 230px;
  max-width: min(230px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.whatsapp-actions-menu[open] .whatsapp-actions-popover {
  position: fixed;
  left: var(--whatsapp-actions-left, auto);
  right: auto;
  top: var(--whatsapp-actions-top, 72px);
  z-index: 720;
  max-height: min(420px, calc(100vh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.whatsapp-action-item {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.whatsapp-action-item:hover,
.whatsapp-action-item:focus-visible {
  background: var(--soft);
}

.whatsapp-library-list {
  display: grid;
  column-gap: 12px;
  row-gap: 0;
  margin-top: 0;
  background: transparent;
}

[data-whatsapp-saved-messages],
[data-whatsapp-templates],
[data-whatsapp-catalogs],
[data-whatsapp-media-list],
[data-whatsapp-interactive-list] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.whatsapp-library-form {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

[data-whatsapp-saved-message-form] {
  padding-right: 4px;
  padding-bottom: 24px;
}

.whatsapp-saved-text-field textarea {
  min-height: 150px;
  resize: vertical;
  white-space: pre-wrap;
}

.whatsapp-library-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
  padding-top: 2px;
  overflow: visible;
}

.whatsapp-library-search {
  width: min(390px, 100%);
}

.whatsapp-library-filter {
  width: 180px;
}

.whatsapp-library-filter select {
  max-width: 100%;
}

.whatsapp-library-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.whatsapp-library-card strong,
.whatsapp-library-card span,
.whatsapp-library-card p {
  display: block;
}

.whatsapp-library-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
}

.whatsapp-library-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.whatsapp-library-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid #d6e4f5;
  border-bottom: 1px solid #d6e4f5;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.whatsapp-library-row:has(.whatsapp-row-menu[open]) {
  z-index: 25;
}

.whatsapp-library-row:nth-last-child(-n + 2) {
  border-bottom: 1px solid #d6e4f5;
}

.whatsapp-library-row:nth-child(odd) {
  border-right: 1px solid #d6e4f5;
}

.whatsapp-library-row:nth-child(1),
.whatsapp-library-row:nth-child(2) {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.whatsapp-library-row:nth-last-child(1),
.whatsapp-library-row:nth-last-child(2):nth-child(odd) {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.whatsapp-template-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

[data-whatsapp-catalogs] {
  grid-template-columns: 1fr;
}

[data-whatsapp-interactive-list] {
  grid-template-columns: 1fr;
}

.whatsapp-catalog-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.whatsapp-catalog-orders-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.whatsapp-catalog-orders {
  display: grid;
  gap: 10px;
}

.whatsapp-catalog-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #f8fbff;
}

.whatsapp-catalog-order strong,
.whatsapp-catalog-order span {
  display: block;
}

.whatsapp-catalog-order span,
.whatsapp-catalog-order small {
  color: var(--muted);
  font-size: .84rem;
}

[data-whatsapp-media-list] {
  grid-template-columns: 1fr;
}

.whatsapp-media-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.whatsapp-media-thumb {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e5f6;
  border-radius: 8px;
  background: #f4f8fd;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.whatsapp-media-thumb[data-type="video"] {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.whatsapp-media-thumb[data-type="audio"] {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.whatsapp-media-thumb[data-type="sticker"] {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

[data-whatsapp-saved-messages] .empty-state,
[data-whatsapp-templates] .empty-state,
[data-whatsapp-catalogs] .empty-state,
[data-whatsapp-media-list] .empty-state,
[data-whatsapp-interactive-list] .empty-state {
  grid-column: 1 / -1;
}

.whatsapp-library-row-main {
  min-width: 0;
}

.whatsapp-library-row-main strong,
.whatsapp-library-row-main span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-library-row-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .86rem;
}

.whatsapp-library-row-main .whatsapp-saved-preview {
  display: -webkit-box;
  max-width: 100%;
  max-height: 3.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.whatsapp-composer-saved-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.whatsapp-template-meta {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  min-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #d8e6f7;
  border-radius: 999px;
  padding: 5px 10px;
  color: #365f91;
  background: #f6faff;
  font-size: .82rem;
  font-weight: 700;
}

.whatsapp-library-icon-button {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.whatsapp-library-icon-button:hover,
.whatsapp-library-icon-button:focus-visible {
  color: var(--brand);
  border-color: #9cc7f2;
  background: #edf5ff;
  outline: none;
}

.whatsapp-library-icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-library-row-actions {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.whatsapp-row-menu .billing-actions-popover {
  z-index: 70;
  width: 260px;
}

.billing-action-item.danger {
  color: #b42318;
}

.whatsapp-template-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.38);
}

.whatsapp-template-modal[hidden] {
  display: none;
}

.whatsapp-template-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(76vh, 720px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.whatsapp-template-modal-card h3 {
  margin: 2px 0 8px;
}

.whatsapp-template-modal-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.whatsapp-template-modal-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}

.whatsapp-template-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-new-conversation-modal {
  position: absolute;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(244, 247, 251, 0.62);
}

.whatsapp-new-conversation-modal[hidden] {
  display: none;
}

.whatsapp-new-conversation-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(720px, calc(100% - 36px));
  max-height: min(620px, calc(100% - 36px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.whatsapp-new-conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.whatsapp-new-conversation-head h3 {
  margin: 2px 0 0;
  font-weight: 560;
}

.whatsapp-new-conversation-head button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-new-conversation-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.whatsapp-new-conversation-filters .whatsapp-conversation-search {
  flex: 1 1 360px;
}

.whatsapp-new-conversation-list {
  position: relative;
  min-height: 0;
  overflow-y: auto;
}

.whatsapp-new-person-row {
  border-bottom: 1px solid var(--line);
}

.whatsapp-new-person-row button {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.whatsapp-new-person-row:hover,
.whatsapp-new-person-row.is-selected {
  background: #edf5ff;
}

.whatsapp-new-person-row:hover .whatsapp-conversation-checkbox,
.whatsapp-new-person-row.is-selecting .whatsapp-conversation-checkbox,
.whatsapp-new-person-row.is-selected .whatsapp-conversation-checkbox {
  opacity: 1;
}

.whatsapp-new-person-row.is-selected .whatsapp-conversation-checkbox {
  inset: 0;
  border-color: #ffffff;
  color: #ffffff;
  background: #1f5faa;
}

.whatsapp-new-person-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.whatsapp-new-person-content strong,
.whatsapp-new-person-content span,
.whatsapp-new-person-content small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-new-person-content span,
.whatsapp-new-person-content small {
  color: var(--muted);
  font-size: .86rem;
}

.whatsapp-template-title-row {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.whatsapp-template-status {
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.74rem !important;
  font-weight: 700;
  line-height: 1;
}

.whatsapp-template-status[data-status="approved"] {
  background: #dcfce7;
  color: #166534;
}

.whatsapp-template-status[data-status="rejected"] {
  background: #fee2e2;
  color: #991b1b;
}

.whatsapp-template-status[data-status="pending"],
.whatsapp-template-status[data-status="submitted"],
.whatsapp-template-status[data-status="success"] {
  background: #dbeafe;
  color: #1d4ed8;
}

.whatsapp-template-status[data-status="deactivated"],
.whatsapp-template-status[data-status="disabled"],
.whatsapp-template-status[data-status="paused"] {
  background: #e5e7eb;
  color: #374151;
}

.whatsapp-template-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

[data-whatsapp-saved-panel],
[data-whatsapp-template-panel],
[data-whatsapp-catalog-panel],
[data-whatsapp-media-panel],
[data-whatsapp-interactive-panel],
[data-whatsapp-conversational-panel],
[data-whatsapp-operations-panel],
[data-whatsapp-partner-api-panel],
[data-whatsapp-ai-panel],
[data-whatsapp-reports-panel],
[data-whatsapp-accounts-panel] {
  max-height: min(68vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 14px;
}

[data-whatsapp-saved-panel] .product-form-head,
[data-whatsapp-template-panel] .product-form-head,
[data-whatsapp-catalog-panel] .product-form-head,
[data-whatsapp-media-panel] .product-form-head,
[data-whatsapp-interactive-panel] .product-form-head,
[data-whatsapp-conversational-panel] .product-form-head,
[data-whatsapp-operations-panel] .product-form-head,
[data-whatsapp-partner-api-panel] .product-form-head,
[data-whatsapp-ai-panel] .product-form-head,
[data-whatsapp-reports-panel] .product-form-head,
[data-whatsapp-accounts-panel] .product-form-head {
  position: static;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
}

[data-whatsapp-ai-panel] form {
  min-height: 0;
}

[data-whatsapp-conversational-panel] form {
  min-height: 0;
  padding-bottom: 24px;
}

[data-whatsapp-operations-panel] form {
  min-height: 0;
}

[data-whatsapp-partner-api-panel] form {
  min-height: 0;
}

.whatsapp-media-form input[type="file"] {
  padding: 10px;
  min-height: 44px;
}

.whatsapp-media-limits {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px dashed #c8d9ee;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--muted);
  font-size: .88rem;
}

.whatsapp-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.whatsapp-report-card,
.whatsapp-report-types article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.whatsapp-report-card span,
.whatsapp-report-types span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.whatsapp-report-card strong,
.whatsapp-report-types strong {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 760;
}

.whatsapp-report-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.whatsapp-report-section h4 {
  margin: 0;
  font-size: 0.98rem;
}

.whatsapp-report-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.whatsapp-report-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.whatsapp-report-table-head,
.whatsapp-report-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(120px, 0.8fr) minmax(90px, 0.6fr) minmax(130px, 0.8fr);
  gap: 10px;
  min-width: 620px;
  padding: 10px 12px;
}

.whatsapp-report-table-head {
  color: var(--muted);
  background: #f5f8fc;
  font-size: 0.78rem;
  font-weight: 800;
}

.whatsapp-report-table-row + .whatsapp-report-table-row {
  border-top: 1px solid var(--line);
}

.whatsapp-report-table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-ai-products-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.whatsapp-ai-products {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.whatsapp-ai-product-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  min-height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text) !important;
  background: #f8fbff;
}

.whatsapp-ai-product-check input {
  width: 16px !important;
  min-height: 16px !important;
  flex: 0 0 auto;
}

.whatsapp-ai-product-check span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-button.is-saving {
  position: relative;
  opacity: 0.78;
  cursor: wait;
}

.admin-button.is-saved {
  border-color: #0d8a55;
  color: #ffffff;
  background: #0d8a55;
}

.admin-button-danger:hover {
  border-color: var(--danger);
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

.admin-view[data-view="comunicacao"].is-active {
  gap: 10px;
  margin-top: -8px;
  grid-template-rows: auto minmax(0, 1fr);
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.admin-hero,
.admin-panel,
.admin-metric,
.person-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
}

.admin-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.admin-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.billing-form-panel {
  margin-bottom: 18px;
}

.billing-config-list-panel {
  margin-bottom: 18px;
}

.billing-hero-panel {
  margin-bottom: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.billing-hero-panel h2 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.billing-hero-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.billing-hero-actions {
  align-items: center;
}

.billing-config-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.billing-config-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0f3f76;
  background: #eaf4ff;
  font-weight: 900;
}

.billing-config-body {
  min-width: 0;
}

.billing-config-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.billing-config-head span,
.billing-config-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.billing-config-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.billing-config-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.billing-config-remove {
  width: 36px;
  height: 36px;
  color: #b91c1c;
}

.billing-documents-panel {
  min-width: 0;
  padding-top: 0;
}

.billing-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.billing-documents-head {
  margin-bottom: 18px;
  padding-inline: 2px;
}

.billing-documents-head .admin-kicker {
  margin-bottom: 8px;
}

.billing-documents-head h3 {
  font-size: 1.28rem;
  line-height: 1.25;
}

.billing-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.billing-filters input,
.billing-filters select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font-weight: 750;
}

.billing-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.billing-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.billing-table th,
.billing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.billing-table td {
  padding-block: 16px;
}

.billing-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  background: #f8fafc;
}

.billing-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.billing-table tbody tr:last-child td {
  border-bottom: 0;
}

.billing-table tbody tr:hover td {
  background: #fbfdff;
}

.billing-status-pill {
  display: inline-flex !important;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.82rem !important;
  font-weight: 900;
}

.billing-status-pill[data-status="issued"] {
  color: #075985;
  background: #e0f2fe;
}

.billing-status-pill[data-status="draft"] {
  color: #6b4e16;
  background: #fef3c7;
}

.billing-status-pill[data-status="credited"] {
  color: #166534;
  background: #dcfce7;
}

.billing-status-pill[data-status="canceled"] {
  color: #991b1b;
  background: #fee2e2;
}

.billing-status-pill[data-status="receipt_canceled"] {
  color: #7c2d12;
  background: #ffedd5;
}

.billing-row-actions {
  justify-content: flex-start;
}

.billing-actions-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.billing-actions-trigger {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #0f3f76;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  list-style: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.billing-actions-trigger:hover,
.billing-actions-menu[open] .billing-actions-trigger {
  border-color: #9cc7f2;
  background: #edf5ff;
}

.billing-actions-trigger::-webkit-details-marker {
  display: none;
}

.billing-actions-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 240px;
  max-width: min(240px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.billing-actions-menu[open] > .billing-actions-popover {
  position: fixed;
  left: var(--billing-actions-left, auto);
  right: auto;
  top: var(--billing-actions-top, 72px);
  bottom: auto;
  z-index: 760;
  width: min(260px, calc(100vw - 24px));
  max-height: min(440px, calc(100vh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.billing-actions-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.billing-actions-close:hover,
.billing-actions-close:focus-visible {
  background: var(--soft);
  color: var(--text);
}

.billing-action-item {
  width: 100%;
  min-height: 36px;
  padding: 8px 34px 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.billing-action-item:hover,
.billing-action-item:focus-visible {
  background: var(--soft);
}

.billing-action-item.is-danger {
  color: #b91c1c;
}

.admin-metric {
  padding: 22px;
}

.admin-metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.admin-metric strong {
  font-size: 2.2rem;
}

.admin-panel {
  padding: 22px;
}

.admin-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d59f0f;
}

.admin-status[data-state="online"] .admin-status-dot {
  background: var(--accent);
}

.admin-status[data-state="offline"] .admin-status-dot {
  background: var(--danger);
}

.admin-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f2c2bd;
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--danger);
  background: #fff4f2;
}

.admin-message[hidden] {
  display: none;
}

.admin-message span {
  min-width: 0;
}

.admin-message-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.admin-message-close:hover,
.admin-message-close:focus-visible {
  background: rgba(255, 255, 255, 0.65);
  outline: none;
}

.admin-message.is-success {
  border-color: #b7e4c7;
  color: #166534;
  background: #f0fdf4;
}

.admin-message.is-info {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.admin-message.is-error {
  border-color: #f2c2bd;
  color: var(--danger);
  background: #fff4f2;
}

[data-tab-panel="whatsapp"] > .admin-message.is-whatsapp-floating {
  position: absolute;
  top: 58px;
  right: 16px;
  z-index: 130;
  width: min(360px, calc(100% - 32px));
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}

.people-list,
.products-list {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.admin-view.is-person-detail-open .admin-section-head,
.admin-view.is-person-detail-open .people-list {
  display: none;
}

.resources-categories {
  display: grid;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.resource-category {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.resource-category + .resource-category {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.resource-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.resource-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #eef3f9;
}

.resource-preview.is-document span {
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 54px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.resource-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.resource-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.resource-add-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 260px;
  min-width: 0;
  max-width: 100%;
  border: 1px dashed #a9bfdc;
  border-radius: 8px;
  padding: 18px;
  color: var(--brand);
  background: #f8fbff;
  cursor: pointer;
}

.resource-add-card:hover {
  border-color: var(--brand);
  background: #eef6ff;
}

.resource-add-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.resource-add-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.person-card,
.product-admin-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 20px;
}

.person-identity {
  min-width: 0;
}

.person-name {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 800;
}

.person-name-button {
  display: inline;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.person-name-button:hover {
  color: var(--brand);
  text-decoration: underline;
}

.person-email,
.person-meta,
.empty-state {
  color: var(--muted);
}

.person-email {
  overflow-wrap: anywhere;
}

.person-meta {
  margin-top: 10px;
  font-size: 0.88rem;
}

.person-detail {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.person-detail[hidden] {
  display: none;
}

.person-detail-head,
.person-detail-grid,
.person-history-grid,
.person-contact-grid {
  display: grid;
  gap: 14px;
}

.person-detail-toolbar {
  display: flex;
  justify-content: flex-start;
}

.admin-detail-back-button {
  width: fit-content;
}

.admin-detail-back-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.person-detail-head {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.person-detail-back {
  margin-top: 2px;
}

.person-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  overflow: hidden;
  border-radius: 999px;
  color: #061b46;
  background: var(--conversation-avatar-bg, var(--person-avatar-color, #dbeafe));
  font-weight: 900;
  line-height: 1;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-detail-avatar {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(6, 27, 70, 0.08);
}

.person-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person-detail-wide {
  grid-column: 1 / -1;
}

.person-detail-panel,
.person-contact-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.person-contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person-detail-tabs,
.person-contact-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.person-detail-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.person-detail-tab,
.person-contact-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.person-detail-tab.is-active,
.person-detail-tab:hover,
.person-contact-tab.is-active,
.person-contact-tab:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.person-detail-tab-panel,
.person-contact-panel {
  display: grid;
  gap: 14px;
}

.person-payments-panel {
  align-content: start;
}

.person-payment-reservation-layout,
.person-payment-reservation-panels,
.person-payment-reservation-panel {
  display: grid;
  gap: 12px;
}

.person-payment-reservation-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.person-payment-reservation-card-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.person-payment-reservation-card-main {
  min-width: 0;
}

.person-payment-reservation-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.person-payment-reservation-card-shell:hover,
.person-payment-reservation-card-shell.is-active {
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(21, 78, 160, 0.12);
}

.person-payment-reservation-card-shell.is-active {
  background: #f5f9ff;
}

.person-payment-reservation-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(207, 224, 244, 0.7);
}

.person-payment-history-remove {
  justify-self: end;
  border-color: rgba(185, 28, 28, 0.2);
  color: #9f1239 !important;
  font-size: 0.82rem;
}

.person-payment-history-remove:hover {
  background: #ffe4e6;
}

.person-payment-reservation-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--brand);
  font-weight: 900;
}

.person-payment-reservation-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.person-payment-reservation-main strong,
.person-payment-reservation-main small,
.person-payment-reservation-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-payment-reservation-main strong {
  color: var(--brand-dark);
  font-size: 0.98rem;
}

.person-payment-reservation-main small,
.person-payment-reservation-meta {
  color: var(--muted);
  font-weight: 800;
}

.person-payment-reservation-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal !important;
}

.person-payment-reservation-stats span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #17324f;
  background: #eef4fb;
  font-size: 0.72rem;
  font-weight: 850;
}

.person-payment-reservation-meta {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef4fb;
  font-size: 0.78rem;
  max-width: 160px;
}

.person-payment-reservation-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.person-payment-reservation-summary div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.person-payment-reservation-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.person-payment-reservation-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

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

.person-payment-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.35fr) minmax(120px, 0.55fr) minmax(100px, 0.55fr) minmax(150px, 0.85fr) minmax(100px, 0.45fr) minmax(160px, 0.8fr);
  gap: 10px;
  align-items: center;
}

.person-payment-row div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.person-payment-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.person-payment-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.person-payment-row .admin-table-main-cell > strong {
  display: grid;
  gap: 2px;
}

.person-payment-row .admin-list-item-title-text {
  display: grid;
  min-width: 0;
  white-space: normal;
}

.person-payment-row-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.person-payment-row-media {
  background: #eef5ff;
  color: var(--brand);
}

.person-payment-row-amount {
  color: var(--text);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 900;
}

.person-payment-row-reference {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.person-payment-status {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.person-payment-status.is-pago {
  background: #dcfce7;
  color: #166534;
}

.person-payment-status.is-previsto,
.person-payment-status.is-pagamento-pendente,
.person-payment-status.is-vence-hoje {
  background: #eef2ff;
  color: #1e3a8a;
}

.person-payment-status.is-em-atraso,
.person-payment-status.is-falhou {
  background: #ffedd5;
  color: #9a3412;
}

.person-payment-status.is-reembolsado {
  background: #f3e8ff;
  color: #6b21a8;
}

.person-payment-status.is-cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.person-contact-card {
  grid-template-rows: auto minmax(220px, 1fr) auto auto auto;
  min-height: 520px;
}

.person-contact-card[data-person-chat-form] {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: end;
}

.person-contact-card[data-person-chat-form] .person-section-title,
.person-contact-card[data-person-chat-form] .person-history-list,
.person-contact-card[data-person-chat-form] textarea {
  grid-column: 1 / -1;
}

.person-contact-card-wide {
  min-height: 640px;
}

.person-contact-card textarea {
  min-height: 96px;
  max-height: 280px;
  line-height: 1.45;
  overflow-y: auto;
  resize: vertical;
}

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

.person-history-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f5f8fc;
}

.person-history-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.person-history-item.is-admin {
  background: #f4f8ff;
}

.person-history-item p,
.person-history-item small {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.person-section-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 10px;
  color: #17324f;
  background: var(--panel-soft);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.chip.is-favorite {
  color: #114735;
  background: #dff5ec;
}

.product-form {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 42px rgba(15, 35, 65, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.product-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f8;
}

.communication-shell {
  --communication-sidebar-width: 300px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

.communication-shell-head {
  align-items: center;
  margin-bottom: 8px;
}

.communication-shell-head h3 {
  margin: 0;
}

.communication-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 12px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

.communication-toolbar > * {
  flex: 0 0 auto;
}

.communication-workspace {
  min-height: 0;
}

.communication-list,
.communication-detail {
  min-width: 0;
  min-height: 0;
}

[data-tab-panel="chat"].communication-shell {
  overflow: hidden;
}

.product-form-head.section-divider {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-section .product-form-head {
  margin-bottom: 14px;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #f7faff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.section-tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  cursor: pointer;
}

.section-tab:hover,
.section-tab.is-active {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 6px 14px rgba(31, 95, 170, 0.08), inset 0 0 0 1px rgba(31, 75, 153, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-view="comunicacao"] > .admin-section-head {
  align-items: center;
  margin-bottom: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f6fbff);
}

[data-view="comunicacao"] > .admin-section-head .section-tabs {
  gap: 4px;
  padding: 4px;
  border-color: #d6e6f8;
  background: #f8fbff;
}

[data-view="comunicacao"] > .admin-section-head .section-tab {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 34px;
  padding: 0;
  font-weight: 540;
}

[data-view="comunicacao"] > .admin-section-head .section-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

[data-view="comunicacao"] > .admin-section-head .section-tab-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-view="comunicacao"] > .admin-section-head .section-tab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #f8fbff;
  border-radius: 999px;
  padding: 0 4px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

[data-view="comunicacao"] > .admin-section-head .section-tab:hover .section-tab-badge,
[data-view="comunicacao"] > .admin-section-head .section-tab.is-active .section-tab-badge {
  border-color: #eaf2ff;
}

[data-view="comunicacao"] > .product-form {
  min-height: 0;
  padding: 8px;
}

[data-view="comunicacao"] > [data-tab-panel="telefone"]:not(.is-section-tab-inactive) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

[data-view="comunicacao"] > [data-tab-panel="sms"]:not(.is-section-tab-inactive) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-self: stretch;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

[data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: stretch;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

[data-view="comunicacao"] > [data-tab-panel="whatsapp"] > .whatsapp-workspace {
  align-self: stretch;
  grid-row: 2;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

[data-view="comunicacao"] > .product-form > .product-form-head {
  align-items: center;
  margin-bottom: 6px;
}

[data-tab-panel="whatsapp"] > .product-form-head > div:first-child {
  flex: 1 1 auto;
  min-width: 280px;
}

[data-view="comunicacao"] .product-form-head h3 {
  margin: 0;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.2;
}

[data-view="comunicacao"] .product-admin-actions {
  gap: 8px;
}

.is-section-tab-inactive {
  display: none !important;
}

.section-tabs.is-section-tab-inactive {
  display: flex !important;
}

.product-moloni-tabs {
  margin-top: 8px;
}

.product-moloni-panel {
  min-width: 0;
  max-width: 100%;
}

.product-moloni-panel .form-grid {
  margin-top: 0;
}

.admin-checkbox {
  align-content: center;
  display: flex !important;
  flex-direction: row;
  gap: 10px !important;
  min-height: 40px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dbe6f3;
  border-radius: 7px;
  padding: 9px 11px;
  background: #fbfdff;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 720;
}

.admin-checkbox input {
  width: auto !important;
  min-height: auto !important;
  accent-color: var(--brand);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  align-items: end;
  justify-content: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.website-language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 460px;
  overflow: auto;
  padding-right: 6px;
}

.website-language-option {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 54px;
}

.website-language-option input {
  height: 18px;
  width: 18px;
}

.website-language-option span {
  display: grid;
  gap: 3px;
}

.website-language-option small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-form label {
  display: grid;
  gap: 6px;
  justify-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.product-form input,
.product-form select,
.product-form textarea {
  width: min(100%, 260px);
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid #d8e4f2;
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 620;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.product-form input:hover,
.product-form select:hover,
.product-form textarea:hover {
  border-color: #bfd2e8;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
  border-color: #6aa4e8;
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 95, 170, 0.12), 0 8px 18px rgba(31, 95, 170, 0.08);
}

.product-form select,
.person-billing-form select,
.billing-line-card select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-form select[name="tax_choice"] {
  width: min(100%, 420px);
}

.product-form textarea {
  width: min(100%, 560px);
  min-height: 86px;
  resize: vertical;
}

.payment-link-summary {
  align-self: end;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbe6f3;
  border-radius: 7px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.payment-link-summary.is-warning {
  border-color: #fecaca;
  background: #fff7ed;
  color: #9a3412;
}

.payment-link-quick {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(120px, 0.5fr) minmax(90px, 0.35fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px dashed #cbd9e8;
  border-radius: 8px;
  background: #fbfdff;
}

.payment-link-quick span {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.payment-link-quick p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .payment-link-quick {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .payment-link-quick {
    grid-template-columns: 1fr;
  }
}

.form-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-top: 22px;
}

.form-check input {
  width: 18px;
  min-height: 18px;
}

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

.full-row {
  grid-column: 1 / -1;
}

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

.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.admin-help {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.product-admin-card {
  grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1fr);
}

.product-admin-image {
  width: 96px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-soft);
}

.product-admin-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid var(--line);
}

.hero-media-upload-label {
  justify-content: end;
}

.hero-media-upload-label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--brand);
  cursor: pointer;
}

.hero-media-upload-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-ai-tools {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.hero-ai-tools-head,
.hero-ai-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-ai-tools-head > div {
  display: grid;
  gap: 4px;
}

.hero-ai-tools-head strong {
  color: var(--text);
}

.hero-ai-tools-head span,
.hero-ai-preview-card span {
  color: var(--muted);
  line-height: 1.5;
}

.hero-ai-tools label {
  display: grid;
  gap: 6px;
}

.hero-ai-preview-card {
  display: grid;
  gap: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px;
  background: #eff6ff;
}

.hero-ai-preview-card strong {
  color: var(--text);
  font-size: 1.1rem;
}

.hero-ai-preview-card img {
  width: 100%;
  max-height: 280px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-soft);
}

.product-admin-title {
  margin-bottom: 6px;
  font-weight: 900;
}

.product-admin-description {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.product-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.blog-category-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.blog-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.blog-category-head h3 {
  margin-bottom: 8px;
}

.blog-category-head p:not(.admin-kicker) {
  margin-bottom: 0;
  color: var(--muted);
}

.blog-category-articles {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.blog-article-row,
.blog-article-card {
  align-items: start;
}

.blog-article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.field-builder {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-fields-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.form-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.collapsible-row {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.collapsible-row-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.collapsible-row-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.collapsible-row-summary strong {
  color: var(--text);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapsible-row-summary span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapsible-row-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.collapsible-row-body[hidden] {
  display: none;
}

.collapsible-row.is-expanded {
  background: #ffffff;
}

.logo-collapsible-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.home-collapsible-row .collapsible-row-body {
  grid-template-columns: 1fr;
}

.home-inner-collapsible-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.home-inner-collapsible-row .collapsible-row-body {
  grid-template-columns: 1fr;
}

.form-count {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
}

.form-count img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.logo-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.logo-preview:empty {
  display: none;
}

.logo-preview img {
  display: block;
  max-width: 72px;
  max-height: 56px;
  object-fit: contain;
}

.logo-preview strong {
  color: var(--text);
  font-size: 0.95rem;
}

.admin-chat-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  height: 100%;
}

.admin-chat-users,
.admin-chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-chat-users {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.chat-user {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  background: #f8fbff;
  cursor: pointer;
}

.chat-user.is-active,
.chat-user:hover {
  border-color: var(--brand);
  background: #edf5ff;
}

.chat-user span {
  color: var(--muted);
  font-size: 0.84rem;
}

.chat-user .chat-user-unread-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.admin-chat-panel {
  display: grid;
  grid-template-rows: minmax(320px, 56vh) auto;
}

.admin-chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 16px;
  background: #f5f8fc;
}

.chat-bubble {
  display: grid;
  gap: 6px;
  justify-self: start;
  max-width: min(620px, 82%);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 26, 55, 0.06);
}

.chat-bubble.is-admin {
  justify-self: end;
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 18px 18px 6px 18px;
}

.chat-bubble.is-user {
  justify-self: start;
  background: #ffffff;
  border-color: #d6e2f1;
}

.whatsapp-date-separator {
  display: flex;
  justify-content: center;
  margin: 4px 0 2px;
  pointer-events: none;
}

.whatsapp-date-separator span {
  padding: 6px 12px;
  border: 1px solid #d6e2f1;
  border-radius: 999px;
  color: #526987;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(14, 42, 71, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-bubble p,
.chat-bubble small {
  margin: 0;
}

.chat-bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.admin-chat-form textarea,
.person-contact-card textarea {
  unicode-bidi: plaintext;
}

.chat-bubble strong {
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.78;
}

.whatsapp-message-signature-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  max-width: 100%;
  margin-top: 1px;
  color: inherit;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
  opacity: 0.66;
}

.whatsapp-message-signature-name::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.42;
}

.whatsapp-message-signature-name span {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-bubble small {
  justify-self: end;
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.72;
}

.chat-bubble small.whatsapp-message-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0.82;
}

.whatsapp-message-meta > span {
  min-width: 35px;
  text-align: right;
}

.whatsapp-message-status {
  display: inline-flex;
  width: 18px;
  height: 14px;
  color: rgba(255, 255, 255, 0.78);
  flex: 0 0 auto;
}

.whatsapp-message-status[data-status="delivered"] {
  color: rgba(255, 255, 255, 0.86);
}

.whatsapp-message-status[data-status="read"] {
  color: #25d366 !important;
}

.whatsapp-message-status[data-status="failed"] {
  color: #ffb4b4 !important;
}

.chat-bubble.is-user .whatsapp-message-status {
  color: #7c8da4;
}

.whatsapp-message-status svg {
  width: 18px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-bubble a {
  color: inherit;
  font-weight: 800;
}

.whatsapp-message-failure {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 9px;
  color: #fff5f5;
  font-size: 0.76rem;
  line-height: 1.35;
}

.whatsapp-message-meta button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  padding: 3px 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.whatsapp-message-meta button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.admin-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.admin-chat-form[data-chat-form] {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.admin-chat-form textarea {
  min-height: 48px;
  resize: vertical;
}

.admin-chat-form[data-chat-form] textarea {
  grid-column: 1 / -1;
  min-height: 50px;
  max-height: 112px;
  line-height: 1.3;
  overflow-y: hidden;
  resize: none;
}

.admin-chat-form[data-chat-form] input[type="file"],
.person-contact-card[data-person-chat-form] input[type="file"] {
  min-width: 0;
}

@media (max-width: 760px) {
  .admin-chat-form[data-chat-form],
  .person-contact-card[data-person-chat-form] {
    grid-template-columns: 1fr;
  }
}

.admin-nested-form {
  margin-bottom: 18px;
  box-shadow: none;
}

[data-phone-account-form] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 8px 2px 0;
  padding: 20px 24px 0;
}

[data-phone-account-form][hidden] {
  display: none !important;
}

[data-phone-account-form] .form-grid {
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  padding: 0 8px 18px 0;
}

[data-phone-account-form] .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -24px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

[data-phone-main-panel][hidden] {
  display: none !important;
}

.email-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  height: 100%;
}

.phone-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.sms-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.sms-sidebar,
.sms-panel {
  min-height: 0;
}

.sms-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.sms-account-select select {
  width: 100%;
}

.sms-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.sms-compose-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #d8e6f8;
  border-radius: 8px;
  background: #f8fbff;
}

.sms-compose-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.sms-compose-form input,
.sms-compose-form textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
}

.sms-compose-form textarea {
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
}

.sms-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}

.sms-message-card {
  display: grid;
  gap: 8px;
  border: 1px solid #d8e6f8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.sms-message-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.phone-call-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

.phone-call-toolbar[hidden] {
  display: none !important;
}

.phone-filter-select {
  flex: 0 0 auto;
}

.phone-filter-select select {
  min-width: 168px;
}

[data-tab-panel="telefone"] .phone-call-toolbar {
  min-width: 0;
}

[data-tab-panel="telefone"] .phone-call-toolbar > .admin-button,
[data-tab-panel="telefone"] .phone-call-toolbar > .whatsapp-actions-menu {
  flex: 0 0 auto;
}

[data-phone-main-panel][hidden],
[data-phone-accounts-panel][hidden] {
  display: none !important;
}

.phone-accounts-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: stretch;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 8px 2px 0;
}

.phone-accounts-scroll {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 14px;
}

.phone-account-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: visible;
  padding: 2px 4px 12px;
}

.phone-account-pill {
  min-height: 72px;
}

.phone-call-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.phone-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-call-sidebar-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
}

.phone-call-thread {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  background: #f8fbff;
  cursor: pointer;
}

.phone-call-thread:hover,
.phone-call-thread.is-active {
  border-color: var(--brand);
  background: #edf5ff;
}

.phone-call-thread > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.phone-call-thread strong,
.phone-call-thread small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-call-thread small {
  color: var(--muted);
  font-size: 0.78rem;
}

.phone-call-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #175cd3;
  background: #dbeafe;
  font-size: 0.7rem;
  font-weight: 900;
}

.phone-contact-detail {
  display: grid;
  gap: 14px;
  border: 1px solid #d8e6f8;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.phone-contact-empty {
  display: grid;
  gap: 6px;
  min-height: 180px;
  place-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cfe0f5;
  border-radius: 8px;
  background: #fbfdff;
}

.phone-contact-empty strong {
  color: var(--text);
}

.phone-contact-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.phone-contact-head h4 {
  margin: 2px 0;
  font-size: 1.15rem;
}

.phone-contact-head span {
  color: var(--muted);
}

.phone-contact-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.phone-contact-summary article {
  display: grid;
  gap: 3px;
  border: 1px solid #edf3fb;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
}

.phone-contact-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-contact-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.phone-call-card.is-active {
  border-color: var(--brand);
  background: #edf5ff;
}

.phone-actions-menu .whatsapp-actions-popover a {
  text-decoration: none;
}

.phone-head-actions {
  align-items: center;
}

.phone-new-call-modal {
  z-index: 82;
}

.phone-new-call-card {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  width: min(820px, calc(100% - 36px));
  max-height: min(720px, calc(100% - 36px));
}

.phone-new-call-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.phone-new-call-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.phone-new-call-form label:nth-child(3) {
  grid-column: 1 / 3;
}

.phone-new-call-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.phone-new-call-people-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 0;
}

.phone-new-call-people-head small {
  color: var(--muted);
}

.phone-new-call-filters {
  padding-top: 10px;
}

.phone-new-person-row button {
  grid-template-columns: 46px minmax(0, 1fr);
}

[data-tab-panel="telefone"] .email-panel,
[data-tab-panel="telefone"] .email-sidebar,
.phone-accounts-scroll,
.phone-call-sidebar-list {
  min-height: 0;
  overflow-y: auto;
}

.email-sidebar,
.email-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.email-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.email-account-button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  background: #f8fbff;
  cursor: pointer;
}

.email-account-button.is-active,
.email-account-button:hover {
  border-color: var(--brand);
  background: #edf5ff;
}

.email-account-button span,
.email-message-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.email-panel {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  padding: 16px;
}

.email-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.email-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.email-controls select,
.email-controls input {
  min-height: 38px;
}

.email-compose {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.email-compose h4 {
  margin-bottom: 12px;
}

.email-advanced {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.admin-advanced-fields {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.admin-advanced-fields summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.admin-advanced-fields .form-grid {
  margin-top: 14px;
}

.email-advanced summary {
  color: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.email-advanced .form-grid {
  margin-top: 14px;
}

.email-list {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  max-height: 650px;
}

.email-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  min-height: 420px;
}

.email-list-items {
  min-height: 0;
  overflow-y: auto;
}

.email-message-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  min-height: 86px;
}

.email-message-card.is-outbound {
  background: #f4f8ff;
}

.email-message-card.is-active,
.email-message-card:hover {
  background: #edf5ff;
}

.email-message-card.is-unread .email-message-subject {
  color: var(--brand);
}

.email-message-card.is-read {
  color: #566981;
}

.email-message-subject {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-unread-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand);
}

.email-message-flag {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  color: #0d5132;
  background: #dff7ec;
  font-size: 0.78rem;
  font-weight: 800;
}

.email-message-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
}

.email-pagination .admin-button {
  padding: 10px 12px;
}

.email-reader {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  overflow: auto;
  max-height: 650px;
}

.email-reader-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.email-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.email-reader-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.email-reader-body {
  color: var(--text);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.email-reader-text {
  white-space: pre-wrap;
}

.email-reader-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.phone-dialer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.softphone-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(238, 246, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #f8fbff;
}

.softphone-panel h4 {
  margin: 0;
}

.softphone-panel small {
  display: block;
  max-width: 520px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.softphone-password {
  display: grid;
  gap: 4px;
  min-width: 190px;
  color: var(--muted);
  font-weight: 800;
}

.softphone-password input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.phone-dialer label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.phone-dialer input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

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

.phone-call-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe8f6;
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 20px rgba(15, 41, 76, 0.04);
}

.phone-call-card-main {
  display: grid;
  grid-template-columns: auto minmax(104px, 1.1fr) minmax(130px, 1.3fr) minmax(90px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.phone-call-card-main strong,
.phone-call-route,
.phone-call-note {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-call-direction,
.phone-call-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.phone-call-direction {
  color: #1f4b99;
  background: #eef5ff;
}

.phone-call-status {
  color: #52657d;
  background: #f1f5f9;
}

.phone-call-status[data-status="completed"] {
  color: #0c6b48;
  background: #e8f8ef;
}

.phone-call-status[data-status="failed"],
.phone-call-status[data-status="cancelled"] {
  color: #b42318;
  background: #fff0ee;
}

.phone-call-status[data-status="ringing"],
.phone-call-status[data-status="in_progress"] {
  color: #8a5a00;
  background: #fff5d7;
}

.phone-call-card-main time,
.phone-call-route,
.phone-call-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.phone-call-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.phone-call-card-actions .admin-button {
  margin: 0;
}

.telnyx-setup-card {
  display: grid;
  gap: 5px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  padding: 12px 14px;
  color: #425b78;
  background: #fbfdff;
}

.telnyx-setup-card strong {
  color: #10243d;
}

.telnyx-setup-card span {
  color: var(--muted);
  line-height: 1.45;
}

.telnyx-control-center {
  display: grid;
  gap: 14px;
  border: 1px solid #d8e6f8;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.telnyx-empty {
  display: grid;
  gap: 4px;
  min-height: 96px;
  place-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #cfe0f5;
  border-radius: 8px;
  background: #fbfdff;
}

.telnyx-empty strong {
  color: var(--text);
}

.telnyx-center-head,
.telnyx-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.telnyx-center-head h4 {
  margin: 2px 0;
  font-size: 1.1rem;
}

.telnyx-center-head span,
.telnyx-panel-head span,
.telnyx-check small,
.telnyx-feature-grid small {
  color: var(--muted);
}

.telnyx-health-pill {
  display: grid;
  min-width: 96px;
  gap: 2px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  color: #9a3412;
  background: #fff7ed;
}

.telnyx-health-pill.is-ok {
  border-color: #bbf7d0;
  color: #047857;
  background: #ecfdf5;
}

.telnyx-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.telnyx-tabs button {
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  padding: 9px 12px;
  white-space: nowrap;
  color: #38577d;
  background: #ffffff;
  cursor: pointer;
}

.telnyx-tabs button.is-active,
.telnyx-tabs button:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.telnyx-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.telnyx-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #d8e6f8;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.telnyx-check-list,
.telnyx-feature-grid,
.telnyx-action-grid {
  display: grid;
  gap: 10px;
}

.telnyx-check {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e5eefb;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.telnyx-check > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.telnyx-check.is-ok > span {
  color: #047857;
  background: #d1fae5;
}

.telnyx-check.is-warning > span {
  color: #b45309;
  background: #fef3c7;
}

.telnyx-check div,
.telnyx-feature-grid article {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.telnyx-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.telnyx-feature-grid article {
  border: 1px solid #edf3fb;
  border-radius: 8px;
  padding: 11px;
  background: #f8fbff;
}

.telnyx-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.telnyx-actions-panel .admin-button {
  justify-content: center;
}

.whatsapp-webhook-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #eefaf3;
  color: #0d5132;
}

.whatsapp-webhook-box span {
  overflow-wrap: anywhere;
  color: var(--text);
}

.automation-cart-list {
  display: grid;
  gap: 12px;
}

.automation-cart-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.automation-cart-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.automation-cart-card p,
.automation-cart-card small,
.automation-cart-card span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.insights-list,
.insights-events {
  display: grid;
  gap: 10px;
}

.insights-list-item,
.insights-event {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.insights-list-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.insights-list-item span,
.insights-event p,
.insights-event small,
.insights-event span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.insights-event div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.insights-event p {
  margin: 0;
}

.whatsapp-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 0;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.whatsapp-workspace.has-whatsapp-details {
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr) minmax(320px, 0.38fr);
}

.whatsapp-conversations {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  border-right: 1px solid var(--line);
  overflow-x: hidden;
  overflow-y: hidden;
  background: #ffffff;
}

.whatsapp-conversation-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.whatsapp-conversation-pager {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  border-top: 1px solid #dce8f5;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.whatsapp-conversation-pager[hidden] {
  display: none;
}

.whatsapp-conversation-page-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.whatsapp-conversation-page-nav,
.whatsapp-conversation-page-dot {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #58718e;
  background: transparent;
  cursor: pointer;
}

.whatsapp-conversation-page-nav {
  width: 28px;
  height: 28px;
}

.whatsapp-conversation-page-nav svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-conversation-page-dot {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  font-size: .74rem;
  font-weight: 760;
}

.whatsapp-conversation-page-nav:hover:not(:disabled),
.whatsapp-conversation-page-dot:hover,
.whatsapp-conversation-page-dot.is-active {
  border-color: #bed6f2;
  color: #1f5faa;
  background: #edf5ff;
}

.whatsapp-conversation-page-nav:disabled {
  opacity: .34;
  cursor: default;
}

.whatsapp-conversation-page-gap,
.whatsapp-conversation-page-label {
  color: #7b8fa7;
  font-size: .72rem;
  font-weight: 760;
}

.whatsapp-conversation-page-label {
  min-width: 36px;
  text-align: center;
}

.whatsapp-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  overflow: visible;
}

.whatsapp-conversation-search {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 360px;
  min-width: 0;
  width: 360px;
  max-width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.product-form .whatsapp-conversation-search,
label.whatsapp-conversation-search {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 360px;
  max-width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.whatsapp-conversation-search:focus-within {
  border-color: color-mix(in srgb, var(--brand) 72%, #ffffff);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(34, 113, 209, 0.12);
}

.whatsapp-conversation-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

.whatsapp-conversation-search input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 0;
  height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  outline: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.product-form .whatsapp-conversation-search input,
label.whatsapp-conversation-search input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.whatsapp-conversation-search input::-webkit-search-decoration,
.whatsapp-conversation-search input::-webkit-search-cancel-button,
.whatsapp-conversation-search input::-webkit-search-results-button,
.whatsapp-conversation-search input::-webkit-search-results-decoration {
  display: none;
}

.whatsapp-conversation-search input::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, #ffffff);
  opacity: 1;
}

.whatsapp-filter-pill,
.whatsapp-clear-filters,
.whatsapp-product-filter select {
  min-height: 38px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  color: #55708f;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(30, 69, 120, 0.07);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
}

.whatsapp-filter-pill,
.whatsapp-clear-filters {
  flex: 0 0 auto;
  padding: 0 12px;
  cursor: pointer;
}

.whatsapp-filter-pill:hover,
.whatsapp-filter-pill:focus-visible,
.whatsapp-filter-pill.is-active,
.whatsapp-clear-filters:hover,
.whatsapp-clear-filters:focus-visible {
  border-color: #8db8ea;
  color: var(--brand);
  background: #edf5ff;
  outline: none;
}

.whatsapp-clear-filters:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.whatsapp-clear-filters[hidden] {
  display: none;
}

.whatsapp-product-filter {
  flex: 0 0 172px;
  min-width: 0;
}

.whatsapp-product-filter select {
  width: 100%;
  padding: 0 10px;
  outline: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-product-filter select:focus {
  border-color: #8db8ea;
  box-shadow: 0 0 0 4px rgba(41, 109, 198, 0.12);
}

.whatsapp-conversation-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.whatsapp-conversation-card:hover,
.whatsapp-conversation-card.is-active {
  background: #edf5ff;
}

.whatsapp-conversation-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 72px;
  border: 0;
  padding: 10px 8px 10px 14px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.whatsapp-conversation-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.whatsapp-conversation-avatar,
.whatsapp-chat-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #17324f;
  background: var(--whatsapp-avatar-bg, #dff7ec);
  font-weight: 800;
  letter-spacing: 0;
  object-fit: cover;
}

.whatsapp-conversation-avatar {
  width: 44px;
  height: 44px;
  font-size: 0.88rem;
}

.whatsapp-conversation-checkbox {
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  border: 2px solid #1f5faa;
  border-radius: 999px;
  color: #1f5faa;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  cursor: pointer;
}

.whatsapp-conversation-card:hover .whatsapp-conversation-checkbox,
.whatsapp-conversation-card.is-selecting .whatsapp-conversation-checkbox,
.whatsapp-conversation-card.is-selected .whatsapp-conversation-checkbox {
  opacity: 1;
}

.whatsapp-conversation-card.is-selected .whatsapp-conversation-checkbox {
  inset: 0;
  border-color: #ffffff;
  color: #ffffff;
  background: #1f5faa;
}

.whatsapp-conversation-checkbox svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-chat-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.78rem;
}

.whatsapp-conversation-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.whatsapp-conversation-head,
.whatsapp-conversation-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.whatsapp-conversation-head strong,
.whatsapp-conversation-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-conversation-head strong {
  font-size: 0.96rem;
  font-weight: 650;
}

.whatsapp-conversation-head time {
  align-self: start;
  min-width: 42px;
  justify-self: end;
  text-align: right;
  color: #71839a;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
}

.whatsapp-conversation-card.is-unread .whatsapp-conversation-head strong,
.whatsapp-conversation-card.is-unread .whatsapp-conversation-head time {
  color: #128c7e;
  font-weight: 800;
}

.whatsapp-conversation-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7d93;
  font-size: 0.86rem;
}

.whatsapp-conversation-preview > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-conversation-sender {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 0;
  max-width: 64px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid #d8e6f7;
  border-radius: 999px;
  color: #315f96;
  background: #f4f8ff;
  font-size: 0.72rem;
  font-weight: 560;
  line-height: 1;
}

.whatsapp-conversation-sender[data-sender="contact"] {
  border-color: #cdebdc;
  color: #128c7e;
  background: #f1fbf6;
}

.whatsapp-unread-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  color: #ffffff;
  background: #25d366;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.whatsapp-bulk-layer {
  position: absolute;
  inset: 0;
  z-index: 35;
  overflow: hidden;
  pointer-events: none;
}

.whatsapp-selection-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.whatsapp-selection-menu {
  z-index: 90;
}

.whatsapp-selection-clear {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-selection-clear:hover,
.whatsapp-selection-clear:focus-visible {
  color: var(--text);
  background: var(--soft);
  outline: none;
}

.whatsapp-selection-bar strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: .94rem;
}

.whatsapp-selection-menu .billing-actions-popover {
  z-index: 100;
  width: min(280px, calc(100vw - 48px));
  max-height: 360px;
  overflow-y: auto;
}

.whatsapp-selection-menu-title,
.whatsapp-selection-menu-empty {
  display: block;
  padding: 8px 10px 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.whatsapp-selection-menu-empty {
  font-weight: 600;
}

.whatsapp-bulk-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(244, 247, 251, 0.56);
  pointer-events: auto;
}

.whatsapp-bulk-modal-card {
  width: min(520px, calc(100% - 36px));
  max-height: min(420px, calc(100vh - 240px));
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.whatsapp-bulk-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.whatsapp-bulk-modal-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-bulk-modal-head button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-bulk-options {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px;
}

.whatsapp-bulk-options button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.whatsapp-bulk-options button:hover,
.whatsapp-bulk-options button:focus-visible {
  background: #edf5ff;
  outline: none;
}

.whatsapp-bulk-options strong,
.whatsapp-bulk-options span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-bulk-options span {
  color: var(--muted);
  font-size: .84rem;
}

.whatsapp-conversation-menu {
  position: relative;
  align-self: center;
  margin-right: 6px;
  opacity: 0;
  pointer-events: none;
}

.whatsapp-conversation-card:hover .whatsapp-conversation-menu,
.whatsapp-conversation-menu[open] {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-conversation-menu summary {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #60748d;
  cursor: pointer;
  list-style: none;
}

.whatsapp-conversation-menu summary::-webkit-details-marker {
  display: none;
}

.whatsapp-conversation-menu summary:hover {
  background: #dcecff;
  color: #17324f;
}

.whatsapp-conversation-menu svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-conversation-menu div {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 25;
  width: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.whatsapp-conversation-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  color: #b42318;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.whatsapp-conversation-menu button:hover {
  background: #fff1f0;
}

.whatsapp-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.whatsapp-layout .email-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 6px;
}

.whatsapp-account-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  overflow: visible;
  padding: 2px 0 4px;
}

.whatsapp-account-inline-form {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 16px 24px;
  background: #ffffff;
}

.whatsapp-account-inline-form .product-form-head {
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
}

.whatsapp-account-inline-form .form-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.whatsapp-account-strip .empty-state {
  width: 100%;
  grid-column: 1 / -1;
}

.whatsapp-account-pill {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 58px;
  overflow: visible;
}

.whatsapp-account-pill.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 91, 191, 0.1);
}

.whatsapp-account-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.whatsapp-account-main:hover strong,
.whatsapp-account-main:focus-visible strong {
  color: var(--brand);
}

.whatsapp-account-pill .whatsapp-library-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.whatsapp-account-pill .whatsapp-library-row-main strong,
.whatsapp-account-pill .whatsapp-library-row-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-account-pill .whatsapp-library-row-main span {
  color: var(--muted);
  font-size: 0.82rem;
}

.whatsapp-account-menu {
  position: relative;
  justify-self: end;
  align-self: center;
}

.whatsapp-account-menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: #ffffff;
  cursor: pointer;
  list-style: none;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
}

.whatsapp-account-menu summary::-webkit-details-marker {
  display: none;
}

.whatsapp-account-menu summary:hover,
.whatsapp-account-menu[open] summary {
  border-color: var(--brand);
  background: #edf5ff;
}

.whatsapp-account-menu div {
  position: absolute;
  right: 0;
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 80;
  width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.whatsapp-account-menu [data-delete-whatsapp-account],
.whatsapp-account-menu [data-configure-whatsapp-account],
.whatsapp-account-menu [data-delete-phone-account],
.whatsapp-account-menu [data-edit-phone-account] {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

.whatsapp-account-menu [data-delete-whatsapp-account],
.whatsapp-account-menu [data-delete-phone-account] {
  color: #b42318;
}

.whatsapp-account-menu [data-delete-whatsapp-account]:hover,
.whatsapp-account-menu [data-delete-whatsapp-account]:focus-visible,
.whatsapp-account-menu [data-delete-phone-account]:hover,
.whatsapp-account-menu [data-delete-phone-account]:focus-visible {
  background: #fff1f0;
  outline: none;
}

.whatsapp-account-menu [data-configure-whatsapp-account]:hover,
.whatsapp-account-menu [data-configure-whatsapp-account]:focus-visible,
.whatsapp-account-menu [data-edit-phone-account]:hover,
.whatsapp-account-menu [data-edit-phone-account]:focus-visible {
  background: var(--soft);
  outline: none;
}

.whatsapp-account-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.whatsapp-account-profile-summary img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.whatsapp-account-profile-summary strong,
.whatsapp-account-profile-summary span {
  display: block;
}

.whatsapp-account-profile-summary span,
.whatsapp-account-profile-summary p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.whatsapp-account-profile-summary p strong {
  display: inline;
  margin-right: 4px;
  color: var(--text);
}

.whatsapp-account-profile-summary p {
  margin-top: 4px;
}

.whatsapp-profile-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.whatsapp-profile-status-row span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #d7e4f5;
  border-radius: 999px;
  background: #ffffff;
  padding: 4px 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
}

.whatsapp-profile-status-row span[data-profile-status="approved"],
.whatsapp-profile-status-row span[data-profile-status="verified"] {
  border-color: #b8ead3;
  background: #ecfff6;
  color: #087443;
}

.whatsapp-profile-status-row span[data-profile-status="rejected"],
.whatsapp-profile-status-row span[data-profile-status="failed"] {
  border-color: #ffd0d0;
  background: #fff1f1;
  color: #b42318;
}

.whatsapp-component-overview,
.whatsapp-operations-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .whatsapp-component-overview,
  .whatsapp-operations-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.whatsapp-component-overview article,
.whatsapp-operations-overview article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.whatsapp-component-overview span,
.whatsapp-operations-overview span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 760;
}

.whatsapp-component-overview strong,
.whatsapp-operations-overview strong {
  color: var(--text);
  font-size: 1.05rem;
}

.whatsapp-component-overview p,
.whatsapp-operations-overview p {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid #ffd0d0;
  border-radius: 8px;
  background: #fff7f7;
  padding: 9px 10px;
  color: #b42318;
  font-size: .86rem;
}

.whatsapp-operations-contacts {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.whatsapp-operations-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.whatsapp-coverage-table,
.whatsapp-contract-log {
  display: grid;
  gap: 9px;
}

.whatsapp-coverage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.whatsapp-coverage-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.whatsapp-coverage-row span,
.whatsapp-coverage-row small {
  color: var(--muted);
  font-size: .82rem;
}

.whatsapp-coverage-row[data-status="passed"] > span {
  color: #067647;
  font-weight: 800;
}

.whatsapp-coverage-row[data-status="failed"] > span {
  color: #b42318;
  font-weight: 800;
}

.whatsapp-coverage-row[data-status="skipped"] > span {
  color: #a15c00;
  font-weight: 800;
}

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

.whatsapp-operation-contact {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.whatsapp-operation-contact span,
.whatsapp-operation-contact p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

[data-view="comunicacao"] .email-message-subject,
[data-view="comunicacao"] .whatsapp-account-pill strong {
  font-weight: 560;
  letter-spacing: 0;
}

[data-view="comunicacao"] .email-message-body,
[data-view="comunicacao"] .email-message-meta,
[data-view="comunicacao"] .whatsapp-account-pill span {
  font-weight: 400;
}

[data-view="comunicacao"] .admin-button {
  font-weight: 500;
}

@media (max-width: 820px) {
  .whatsapp-account-strip {
    grid-template-columns: 1fr;
  }
}

.whatsapp-workspace .admin-chat-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
}

.whatsapp-workspace .admin-chat-panel.is-whatsapp-empty {
  grid-template-rows: minmax(0, 1fr);
}

.whatsapp-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.whatsapp-chat-header[hidden] {
  display: none !important;
}

.whatsapp-chat-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 10px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.whatsapp-chat-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #17324f;
  background: var(--whatsapp-avatar-bg, #dff7ec);
  font-weight: 650;
  object-fit: cover;
}

.whatsapp-chat-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.whatsapp-chat-number {
  display: block;
}

.whatsapp-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.whatsapp-chat-info-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  color: #5e7594;
  background: #ffffff;
  cursor: pointer;
}

.whatsapp-chat-info-button:hover {
  color: #1d5bbf;
  border-color: #bdd2f2;
  background: #f5f9ff;
}

.whatsapp-chat-info-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-ai-status {
  border: 1px solid #d6dee8;
  border-radius: 999px;
  padding: 5px 10px;
  color: #667085;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.whatsapp-ai-status.is-active {
  border-color: #b7e4c7;
  color: #146c43;
  background: #eefbf3;
}

.whatsapp-chat-header strong,
.whatsapp-chat-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-chat-header strong {
  font-weight: 560;
}

.whatsapp-chat-title span {
  color: var(--muted);
  font-size: 0.82rem;
}

.whatsapp-chat-header .whatsapp-ai-status {
  color: #667085;
  font-size: 0.78rem;
}

.whatsapp-chat-header .whatsapp-ai-status.is-active {
  color: #146c43;
}

.whatsapp-details-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  border-left: 1px solid #dce6f2;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.whatsapp-details-panel[hidden] {
  display: none !important;
}

.whatsapp-detail-head {
  display: grid;
  justify-items: center;
  gap: 7px;
  position: relative;
  padding: 14px 8px 10px;
  text-align: center;
}

.whatsapp-detail-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  color: #607792;
  background: #ffffff;
  cursor: pointer;
}

.whatsapp-detail-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.whatsapp-detail-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  color: #17324f;
  background: var(--whatsapp-avatar-bg, #dff7ec);
  font-weight: 800;
  object-fit: cover;
}

.whatsapp-detail-head strong {
  max-width: 100%;
  overflow: hidden;
  color: #10243d;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-detail-head > span {
  max-width: 100%;
  overflow: hidden;
  color: #65758b;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-detail-tags,
.whatsapp-detail-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.whatsapp-detail-tags span,
.whatsapp-detail-chips span {
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #425b78;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
}

.whatsapp-detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.whatsapp-detail-actions button {
  min-height: 36px;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  color: #1d4f91;
  background: #ffffff;
  font-weight: 760;
  cursor: pointer;
}

.whatsapp-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.whatsapp-detail-stat,
.whatsapp-detail-section {
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 38, 64, 0.06);
}

.whatsapp-detail-stat {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.whatsapp-detail-stat span,
.whatsapp-detail-stat small,
.whatsapp-detail-empty,
.whatsapp-detail-list dt,
.whatsapp-detail-list dd {
  color: #63748a;
  font-size: 0.78rem;
}

.whatsapp-detail-stat strong {
  color: #10243d;
  font-size: 1rem;
}

.whatsapp-detail-section {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.whatsapp-detail-section h4 {
  margin: 0;
  color: #10243d;
  font-size: 0.9rem;
}

.whatsapp-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.whatsapp-detail-list div {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
}

.whatsapp-detail-list dt {
  margin: 0;
  font-weight: 760;
}

.whatsapp-detail-list dd {
  margin: 0;
  overflow: hidden;
  color: #253b55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-detail-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  color: inherit;
  background: #fbfdff;
  text-decoration: none;
}

.whatsapp-detail-item:hover {
  border-color: #bdd2f2;
  background: #f5f9ff;
}

.whatsapp-detail-item-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #1d5bbf;
  background: #eaf2ff;
  font-size: 0.68rem;
  font-weight: 900;
}

.whatsapp-detail-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.whatsapp-detail-item-copy strong,
.whatsapp-detail-item-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-detail-item-copy strong {
  color: #17324f;
  font-size: 0.86rem;
}

.whatsapp-detail-item-copy small {
  color: #677990;
  font-size: 0.76rem;
}

.whatsapp-detail-empty {
  margin: 0;
}

.whatsapp-workspace .admin-chat-thread {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.whatsapp-workspace .admin-chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 13px;
  background: #ffffff;
  position: sticky;
  bottom: 0;
  z-index: 160;
}

.whatsapp-message-composer {
  position: relative;
  min-width: 0;
}

.whatsapp-message-composer textarea {
  width: 100%;
}

.whatsapp-freeform-panel {
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.whatsapp-freeform-panel[hidden] {
  display: none;
}

.whatsapp-freeform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.whatsapp-freeform-head strong {
  color: var(--text);
  font-size: 0.88rem;
}

.whatsapp-freeform-head button {
  width: 26px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
}

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

.whatsapp-freeform-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.whatsapp-freeform-grid label.full-row {
  grid-column: 1 / -1;
}

.whatsapp-freeform-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.whatsapp-freeform-grid input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.whatsapp-freeform-popover {
  right: 0;
  left: auto;
}

.whatsapp-composer-all-popover {
  width: min(420px, calc(100vw - 96px));
}

.whatsapp-composer-library {
  position: absolute;
  top: 50%;
  left: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: -17px;
}

.whatsapp-composer-menu {
  position: relative;
}

.whatsapp-composer-library-trigger {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.whatsapp-composer-library-trigger::-webkit-details-marker {
  display: none;
}

.whatsapp-composer-library-trigger:hover,
.whatsapp-composer-menu[open] .whatsapp-composer-library-trigger,
.whatsapp-composer-menu[data-communication-composer-open="true"] .whatsapp-composer-library-trigger {
  color: var(--brand);
  background: #edf5ff;
}

.whatsapp-composer-library-trigger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-composer-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 35;
  width: min(320px, calc(100vw - 96px));
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.communication-composer-add-menu:not([open]):not([data-communication-composer-open="true"]) > .whatsapp-composer-popover {
  display: none;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover {
  position: fixed;
  left: var(--whatsapp-composer-popover-left, 50vw);
  top: var(--whatsapp-composer-popover-top, 50vh);
  bottom: auto;
  z-index: 420;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  width: min(var(--whatsapp-composer-popover-width, 940px), calc(100vw - 32px));
  max-height: var(--whatsapp-composer-popover-max-height, min(520px, calc(100vh - 32px)));
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-color: #cfe0f4;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.92), rgba(255, 255, 255, 0.98) 38%),
    #ffffff;
  box-shadow: 0 34px 96px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
}

.whatsapp-composer-menu[hidden] {
  display: block !important;
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.whatsapp-composer-menu[hidden] > summary {
  display: none;
}

.whatsapp-composer-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover .whatsapp-composer-popover-head,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover .whatsapp-composer-popover-head {
  position: sticky;
  top: -16px;
  z-index: 2;
  grid-column: 1 / -1;
  margin: -16px -16px 4px;
  padding: 18px 18px 13px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.whatsapp-composer-popover-head strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: .98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-composer-popover-head button {
  flex: 0 0 22px;
  width: 22px;
  min-height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.whatsapp-composer-popover-head button:hover,
.whatsapp-composer-popover-head button:focus-visible {
  color: var(--text);
  background: var(--soft);
}

.whatsapp-composer-popover button {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #dbe8f6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.whatsapp-composer-popover button:hover,
.whatsapp-composer-popover button:focus-visible {
  background: #edf5ff;
  outline: none;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button:hover,
.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button:focus-visible,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button:hover,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button:focus-visible {
  border-color: #9fc2ec;
  background: #f3f8ff;
  box-shadow: 0 16px 34px rgba(29, 91, 191, 0.13);
  transform: translateY(-1px);
}

.whatsapp-composer-popover strong,
.whatsapp-composer-popover span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-composer-popover span,
.whatsapp-composer-empty {
  color: var(--muted);
  font-size: .84rem;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button strong,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button strong {
  margin-bottom: 5px;
  font-size: .96rem;
  font-weight: 760;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button span,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button span {
  line-height: 1.35;
  white-space: normal;
}

.whatsapp-composer-option-icon {
  display: grid !important;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d5e5f7;
  border-radius: 12px;
  color: #1d5bbf;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 255, 0.96)),
    #eef6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.whatsapp-composer-option-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-composer-option-copy {
  display: grid !important;
  gap: 4px;
  min-width: 0;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button:hover .whatsapp-composer-option-icon,
.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button:focus-visible .whatsapp-composer-option-icon,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button:hover .whatsapp-composer-option-icon,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button:focus-visible .whatsapp-composer-option-icon {
  color: #0d8f61;
  border-color: #bde7d4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 252, 243, 0.98)),
    #effbf5;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover > button .whatsapp-composer-saved-preview,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button .whatsapp-composer-saved-preview {
  display: -webkit-box;
  max-height: 4.1em;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.whatsapp-composer-menu[open] > .whatsapp-composer-popover > .whatsapp-composer-empty,
.whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > .whatsapp-composer-empty {
  grid-column: 1 / -1;
  border: 1px dashed #cfdded;
  border-radius: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

@media (max-width: 760px) {
  .whatsapp-emoji-group div {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .whatsapp-composer-menu[open] > .whatsapp-composer-popover,
  .whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    max-height: min(78vh, var(--whatsapp-composer-popover-max-height, 640px));
    padding: 12px;
    border-radius: 14px;
  }

  .whatsapp-composer-menu[open] > .whatsapp-composer-popover > button,
  .whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover > button {
    min-height: 74px;
  }

  .whatsapp-composer-menu[open] > .whatsapp-composer-popover .whatsapp-composer-popover-head,
  .whatsapp-composer-menu[data-communication-composer-open="true"] > .whatsapp-composer-popover .whatsapp-composer-popover-head {
    top: -12px;
    margin: -12px -12px 2px;
    padding: 14px 14px 10px;
  }
}

.whatsapp-composer-empty {
  display: block;
  padding: 10px;
}

.whatsapp-composer-actions {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateY(-50%);
}

.whatsapp-composer-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.whatsapp-composer-icon:hover,
.whatsapp-composer-icon:focus-visible {
  color: var(--brand);
  background: #edf5ff;
  outline: none;
}

.whatsapp-composer-icon.is-recording {
  color: #ffffff;
  background: #d92d20;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.14);
}

.whatsapp-composer-icon.is-improved {
  color: var(--brand);
  background: #edf5ff;
}

.whatsapp-composer-icon.is-loading {
  opacity: 0.62;
  cursor: progress;
}

.whatsapp-composer-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-ai-undo-icon,
.whatsapp-composer-icon.is-improved .whatsapp-ai-improve-icon {
  display: none;
}

.whatsapp-composer-icon.is-improved .whatsapp-ai-undo-icon {
  display: block;
}

.whatsapp-composer-icon input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.whatsapp-emoji-popover {
  position: fixed;
  left: var(--whatsapp-emoji-left, 16px);
  top: var(--whatsapp-emoji-top, 16px);
  bottom: auto;
  z-index: 520;
  display: grid;
  gap: 10px;
  width: min(var(--whatsapp-emoji-width, 620px), calc(100vw - 32px));
  max-height: var(--whatsapp-emoji-max-height, min(520px, calc(100vh - 32px)));
  overflow-y: auto;
  border: 1px solid #cfe0f4;
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(255, 255, 255, 0.98) 34%),
    #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
}

.whatsapp-emoji-head {
  position: sticky;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -12px -12px 0;
  padding: 13px 14px 10px;
  border-bottom: 1px solid #dbe8f6;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.whatsapp-emoji-head strong {
  color: var(--text);
  font-size: .96rem;
  font-weight: 760;
}

.whatsapp-emoji-head button {
  width: 26px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-emoji-head button:hover,
.whatsapp-emoji-head button:focus-visible {
  background: var(--soft);
  color: var(--text);
  outline: none;
}

.whatsapp-emoji-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #d8e6f7;
  border-radius: 10px;
  padding: 0 11px;
  background: #ffffff;
  color: var(--muted);
}

.whatsapp-emoji-search svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-emoji-search input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.whatsapp-emoji-shortcuts,
.whatsapp-emoji-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 2px;
}

.whatsapp-emoji-shortcuts button {
  flex: 0 0 34px;
  min-height: 34px;
  border: 1px solid #dbe8f6;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  font-size: 1.16rem;
}

.whatsapp-emoji-tabs button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid #dbe8f6;
  border-radius: 999px;
  padding: 0 10px;
  background: #ffffff;
  color: #365f91;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 760;
}

.whatsapp-emoji-shortcuts button:hover,
.whatsapp-emoji-shortcuts button:focus-visible,
.whatsapp-emoji-tabs button:hover,
.whatsapp-emoji-tabs button:focus-visible {
  border-color: #9fc2ec;
  background: #edf5ff;
  outline: none;
}

.whatsapp-emoji-results {
  display: grid;
  gap: 14px;
}

.whatsapp-emoji-group {
  display: grid;
  gap: 8px;
}

.whatsapp-emoji-group + .whatsapp-emoji-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.whatsapp-emoji-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.whatsapp-emoji-group div {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
}

.whatsapp-emoji-group button {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font-size: 1.25rem;
}

.whatsapp-emoji-group button:hover,
.whatsapp-emoji-group button:focus-visible {
  border-color: #c9ddf3;
  background: #edf5ff;
  outline: none;
}

.whatsapp-emoji-empty {
  border: 1px dashed #cfdded;
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.whatsapp-workspace .admin-chat-form textarea {
  height: 50px;
  min-height: 50px;
  max-height: 112px;
  resize: none;
  line-height: 1.3;
}

.whatsapp-workspace .chat-bubble audio {
  width: min(280px, 72vw);
  height: 38px;
}

.whatsapp-message-media {
  display: block;
  max-width: min(360px, 72vw);
  max-height: 340px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.16);
}

.whatsapp-message-sticker {
  display: block;
  width: min(180px, 48vw);
  max-height: 180px;
  object-fit: contain;
}

.whatsapp-message-file,
.whatsapp-message-location,
.whatsapp-message-contact {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: min(300px, 68vw);
  border-radius: 8px;
  padding: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.chat-bubble.is-user .whatsapp-message-file,
.chat-bubble.is-user .whatsapp-message-location,
.chat-bubble.is-user .whatsapp-message-contact {
  background: #f5f8fc;
}

.whatsapp-message-file svg,
.whatsapp-message-location svg,
.whatsapp-message-contact svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
}

.whatsapp-message-file span,
.whatsapp-message-location span,
.whatsapp-message-contact span {
  display: grid;
  min-width: 0;
}

.whatsapp-message-location small,
.whatsapp-message-contact small {
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-empty-thread {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.whatsapp-empty-thread h3,
.whatsapp-empty-thread p {
  margin: 0;
}

.whatsapp-empty-thread h3 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: 0;
}

.whatsapp-empty-thread > p:last-child {
  max-width: 460px;
  line-height: 1.55;
}

.whatsapp-empty-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border: 1px solid #cfe8dc;
  border-radius: 34px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(145deg, #e9fbf1 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 18px 42px rgba(31, 88, 65, 0.08);
}

.whatsapp-empty-visual::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 56px;
  border: 3px solid #0d8f61;
  border-radius: 20px;
  background:
    linear-gradient(#0d8f61, #0d8f61) 22px 25px / 34px 7px no-repeat,
    linear-gradient(rgba(13, 143, 97, 0.18), rgba(13, 143, 97, 0.18)) 48px 38px / 16px 7px no-repeat,
    #ffffff;
  box-shadow: 0 18px 36px rgba(13, 143, 97, 0.14);
}

.whatsapp-empty-visual::after {
  content: "";
  position: absolute;
  left: 49px;
  bottom: 39px;
  width: 18px;
  height: 18px;
  border-left: 3px solid #0d8f61;
  border-bottom: 3px solid #0d8f61;
  border-bottom-left-radius: 3px;
  background: #ffffff;
  transform: skew(-14deg) rotate(-9deg);
  box-shadow: -3px 3px 0 #ffffff;
}

.whatsapp-empty-visual span {
  position: absolute;
  right: 28px;
  bottom: 29px;
  width: 36px;
  height: 36px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #0d8f61;
  box-shadow: 0 10px 24px rgba(13, 143, 97, 0.22);
}

.whatsapp-empty-visual span::before,
.whatsapp-empty-visual span::after {
  content: "";
  position: absolute;
}

.whatsapp-empty-visual span::before {
  left: 11px;
  top: 9px;
  width: 13px;
  height: 13px;
  border: 4px solid #ffffff;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 9px;
  transform: rotate(-42deg);
  transform-origin: center;
}

.whatsapp-empty-visual span::after {
  left: 9px;
  top: 8px;
  width: 7px;
  height: 5px;
  border-radius: 4px 4px 2px 2px;
  background: #ffffff;
  box-shadow: 12px 12px 0 #ffffff;
  transform: rotate(-42deg);
}

.chip.is-clickable {
  border: 0;
  cursor: pointer;
}

.chip small {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 0.72rem;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.46);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  min-width: 0;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
}

.submission-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.submission-data {
  display: grid;
  gap: 10px;
  margin: 0;
}

.submission-data div {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 12px;
}

.submission-data dt {
  color: var(--muted);
  font-weight: 800;
}

.submission-data dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.permission-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.permission-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.permission-actions {
  display: grid;
  gap: 10px;
}

.permission-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.permission-check input {
  width: auto;
}

.is-permission-disabled {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 960px) {
  .billing-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-shell {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .admin-shell:not(.is-sidebar-collapsed) {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  .admin-sidebar {
    z-index: 10;
    height: 100%;
    padding: 14px 10px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-main {
    height: 100%;
    padding: 20px 16px;
  }

  .admin-topbar {
    padding: 14px 16px;
  }

  .admin-topbar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-topbar,
  .admin-section-head,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-section-head > .section-tabs {
    width: 100%;
  }

  .admin-topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  [data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) {
    min-height: 620px;
  }

  .whatsapp-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(170px, 0.34fr) minmax(0, 1fr);
    height: 100%;
  }

  .whatsapp-workspace.has-whatsapp-details {
    grid-template-columns: 1fr;
  }

  .whatsapp-details-panel {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 240;
    width: min(390px, 94vw);
    max-width: 100%;
    border-left: 1px solid #dce6f2;
    box-shadow: -18px 0 36px rgba(17, 38, 64, 0.16);
  }

  .whatsapp-conversations {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .phone-call-card {
    grid-template-columns: 1fr;
  }

  .phone-call-card-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .phone-call-route,
  .phone-call-note {
    grid-column: 1 / -1;
  }

  .phone-call-card-actions {
    justify-content: flex-start;
  }

  .whatsapp-conversation-pager {
    min-height: 38px;
    padding: 6px 8px;
  }

  .admin-profile-trigger {
    width: 44px;
    justify-content: center;
  }

  .admin-profile-popover {
    right: auto;
    left: 0;
    width: min(280px, 100%);
  }

  .admin-api-field input,
  .admin-search input {
    width: 100%;
  }

  .admin-metrics,
  .admin-two-columns,
    .admin-chat-layout,
    .email-layout,
    .phone-layout,
    .sms-layout,
    .email-workspace,
    .phone-dialer,
    .sms-compose-form,
    .phone-new-call-form,
    .phone-contact-head,
    .phone-contact-summary,
    .softphone-panel,
    .telnyx-dashboard-grid,
    .telnyx-action-grid,
    .telnyx-feature-grid,
    .whatsapp-workspace,
  .person-detail-head,
  .person-detail-grid,
  .person-history-grid,
  .person-contact-grid,
  .person-payment-reservation-card,
  .person-payment-reservation-card-shell,
  .person-payment-reservation-summary,
  .person-payment-row,
    .person-card,
    .product-admin-card,
    .blog-category-head,
    .blog-article-row,
    .form-field-row,
    .collapsible-row-body,
  .permission-matrix,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .billing-filters {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 18px 14px;
  }

  .admin-topbar {
    padding-inline: 14px;
  }

  .admin-hero,
  .admin-panel,
  .admin-metric,
  .person-card {
    padding: 18px;
  }
}

.admin-login-card {
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(220, 229, 239, 0.92);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    #ffffff;
  box-shadow:
    0 28px 70px rgba(20, 32, 51, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.admin-login-card h1 {
  margin: -4px 0 4px;
  color: #10233f;
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 850;
  line-height: 1.05;
}

.admin-login-card .admin-kicker {
  margin: 2px 0 0;
  color: #1957a6;
  font-size: 0.76rem;
  font-weight: 850;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-login-card .admin-input {
  min-height: 50px;
  border-color: #d6e1ed;
  background: #fbfdff;
  font-size: 0.96rem;
}

.admin-login-card .admin-input:focus {
  background: #ffffff;
}

.admin-login-card .admin-button {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  justify-content: center;
  font-weight: 850;
}

.admin-brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #dbe6f1;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #10233f, #1957a6);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(25, 87, 166, 0.22);
}

@media (max-width: 420px) {
  .admin-login-card {
    gap: 16px;
    padding: 22px;
  }

  .admin-brand-mark {
    width: 48px;
    height: 48px;
  }
}

:where(
  .admin-button,
  .admin-icon-button,
  .modal-close,
  .admin-profile-menu-item,
  .admin-sidebar-toggle,
  .admin-nav-group-title,
  .section-tab,
  .whatsapp-action-item,
  .whatsapp-filter-pill,
  .whatsapp-clear-filters,
  .whatsapp-composer-icon,
  .whatsapp-composer-library-trigger,
  .whatsapp-template-modal-close,
  .admin-actions-menu-trigger,
  .admin-actions-menu-item
) {
  font: inherit;
}

:where(
  .admin-button,
  .admin-icon-button,
  .modal-close,
  .admin-profile-menu-item,
  .admin-sidebar-toggle,
  .admin-nav-group-title,
  .section-tab,
  .whatsapp-action-item,
  .whatsapp-filter-pill,
  .whatsapp-clear-filters,
  .whatsapp-composer-icon,
  .whatsapp-composer-library-trigger,
  .whatsapp-template-modal-close,
  .admin-actions-menu-trigger,
  .admin-actions-menu-item
):disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.c-button,
.admin-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
}

.c-button:hover,
.admin-button:hover {
  border-color: var(--brand);
}

.c-button--primary,
.admin-button-primary {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.admin-button-new {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.admin-button-new:hover,
.admin-button-new:focus-visible {
  border-color: #164c91;
  background: #1a5aae;
}

.c-button--danger,
.admin-button-danger {
  border-color: #f2c2bd;
  color: var(--danger);
  background: #fff4f2;
}

.c-button--danger:hover,
.admin-button-danger:hover {
  border-color: var(--danger);
}

.c-button--compact,
.admin-button-compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.85rem;
}

.c-button--icon,
.admin-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand);
  background: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
}

.c-button--icon:hover,
.admin-icon-button:hover {
  border-color: var(--brand);
  background: #edf5ff;
}

.modal-close {
  position: static;
  top: auto;
  right: auto;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.admin-modal-head .modal-close,
.admin-popover-head .modal-close,
.whatsapp-new-conversation-head .modal-close,
.whatsapp-bulk-modal-head .modal-close,
.whatsapp-template-modal-head .modal-close,
.whatsapp-emoji-head .modal-close,
.modal-close.whatsapp-template-modal-close {
  position: static;
  top: auto;
  right: auto;
  display: inline-grid;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible,
.admin-modal-head .modal-close:hover,
.admin-modal-head .modal-close:focus-visible,
.admin-popover-head .modal-close:hover,
.admin-popover-head .modal-close:focus-visible,
.whatsapp-new-conversation-head .modal-close:hover,
.whatsapp-new-conversation-head .modal-close:focus-visible,
.whatsapp-bulk-modal-head .modal-close:hover,
.whatsapp-bulk-modal-head .modal-close:focus-visible,
.whatsapp-template-modal-head .modal-close:hover,
.whatsapp-template-modal-head .modal-close:focus-visible,
.whatsapp-emoji-head .modal-close:hover,
.whatsapp-emoji-head .modal-close:focus-visible,
.modal-close.whatsapp-template-modal-close:hover,
.modal-close.whatsapp-template-modal-close:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: #ffffff;
  outline: none;
}

.admin-profile-trigger {
  width: 36px;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  list-style: none;
}

.admin-profile-trigger::-webkit-details-marker {
  display: none;
}

.admin-profile-trigger::marker {
  content: "";
}

.admin-profile-trigger:hover,
.admin-profile-trigger:focus-visible,
.admin-profile-menu[open] .admin-profile-trigger {
  border-color: rgba(31, 75, 153, 0.26);
  background: #ffffff;
  outline: none;
}

.admin-profile-menu[open] .admin-profile-trigger {
  box-shadow: 0 10px 22px rgba(16, 32, 56, 0.1);
}

.admin-profile-avatar {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #1f4b99;
}

.admin-profile-avatar svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar-toggle {
  display: grid;
  align-self: flex-end;
  width: 28px;
  height: 28px;
  margin: 0 -6px 2px 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  position: relative;
}

.admin-sidebar-toggle:hover,
.admin-sidebar-toggle:focus-visible {
  color: #e0f2fe;
  background: transparent;
  box-shadow: none;
  outline: none;
  transform: translateX(-1px);
}

.admin-sidebar-toggle-glyph {
  display: grid;
  place-items: center;
}

.admin-sidebar-toggle-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-sidebar-toggle-icon-closed,
.admin-shell.is-sidebar-collapsed .admin-sidebar-toggle-icon-open {
  display: none;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-toggle-icon-closed {
  display: block;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-toggle {
  margin-right: -4px;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-toggle:hover,
.admin-shell.is-sidebar-collapsed .admin-sidebar-toggle:focus-visible {
  transform: translateX(1px);
}

.admin-nav-group-title {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-nav-group-title:hover,
.admin-nav-group-title:focus-visible {
  color: var(--text);
  background: #f6f8fb;
}

.section-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.section-tab:hover,
.section-tab.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: #edf5ff;
}

.communication-unread-filter {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 42px;
  height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--muted);
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.communication-unread-filter:hover,
.communication-unread-filter:focus-visible,
.communication-unread-filter.is-active,
.communication-unread-filter[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--brand);
  background: #edf5ff;
}

.whatsapp-action-item {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.whatsapp-action-item:hover,
.whatsapp-action-item:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.whatsapp-filter-pill {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.whatsapp-filter-pill:hover,
.whatsapp-filter-pill:focus-visible,
.whatsapp-filter-pill.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: #edf5ff;
}

.whatsapp-clear-filters {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.whatsapp-clear-filters:hover,
.whatsapp-clear-filters:focus-visible {
  border-color: var(--line);
  color: var(--brand);
  background: #ffffff;
}

.whatsapp-clear-filters[hidden] {
  display: none;
}

.whatsapp-composer-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.whatsapp-composer-icon:hover,
.whatsapp-composer-icon:focus-visible,
.whatsapp-composer-icon.is-improved {
  border-color: var(--brand);
  color: var(--brand);
}

.whatsapp-composer-icon svg {
  width: 20px;
  height: 20px;
}

.whatsapp-composer-library-trigger {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.whatsapp-composer-library-trigger:hover,
.whatsapp-composer-library-trigger:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.whatsapp-template-modal-close {
  position: static;
  top: auto;
  right: auto;
}

.whatsapp-template-modal-close:hover,
.whatsapp-template-modal-close:focus-visible {
  outline: none;
}

button:not([class]) {
  font: inherit;
}

.admin-icon {
  display: inline-grid;
  place-items: center;
}

.admin-icon svg {
  display: block;
}

.admin-nav {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-shell.is-sidebar-collapsed .admin-nav,
.admin-shell.is-sidebar-collapsed .admin-nav-group,
.admin-shell.is-sidebar-collapsed .admin-nav-link,
.admin-shell.is-sidebar-collapsed .admin-nav-group-title {
  width: 100%;
}

.admin-shell.is-sidebar-collapsed .admin-nav-link,
.admin-shell.is-sidebar-collapsed .admin-nav-group-title {
  justify-content: center;
  padding-inline: 8px;
}

.admin-shell.is-sidebar-collapsed .admin-nav-link > span:not(.admin-nav-icon),
.admin-shell.is-sidebar-collapsed .admin-nav-group-title > span:not(.admin-nav-icon):not(.admin-nav-group-caret),
.admin-shell.is-sidebar-collapsed .admin-nav-group-caret {
  display: none;
}

.admin-shell.is-sidebar-collapsed .admin-nav-submenu {
  padding-left: 0;
}

.admin-nav-link {
  color: inherit;
  text-decoration: none;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  position: relative;
  white-space: nowrap;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  color: #ffffff;
  transform: translateX(1px);
}

.admin-nav-link:focus-visible,
.admin-nav-group-title:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.46);
  outline-offset: 2px;
}

.admin-nav-link.is-active {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}

.admin-nav-link.is-active::before {
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  border-radius: 999px;
  content: "";
  height: 24px;
  left: -5px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
}

.admin-nav-group {
  display: grid;
  gap: 5px;
}

.admin-nav-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 0;
  margin: 8px 0 0;
  padding: 8px 9px;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  text-align: left;
  cursor: pointer;
  letter-spacing: 0;
  white-space: nowrap;
}

.admin-nav-group-title:hover,
.admin-nav-group.is-open .admin-nav-group-title,
.admin-nav-group.is-active .admin-nav-group-title {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.admin-nav-group-title:hover {
  transform: translateX(1px);
}

.admin-nav-submenu {
  display: grid;
  gap: 3px;
  padding: 3px 0 5px 42px;
  position: relative;
}

.admin-nav-submenu::before {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.34), rgba(255, 255, 255, 0.06));
  border-radius: 999px;
  content: "";
  left: 23px;
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 1px;
}

.admin-nav-group:not(.is-open) .admin-nav-submenu {
  display: none;
}

.admin-nav-group-caret {
  display: grid;
  height: 18px;
  margin-left: auto;
  opacity: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(-3px);
  width: 18px;
}

.admin-nav-group-caret svg {
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.admin-nav-group.is-open .admin-nav-group-caret {
  opacity: 1;
  transform: rotate(90deg);
}

.admin-nav-group-title:hover .admin-nav-group-caret,
.admin-nav-group-title:focus-visible .admin-nav-group-caret,
.admin-nav-group.is-active .admin-nav-group-caret {
  opacity: 1;
  transform: translateX(0);
}

.admin-nav-group.is-open .admin-nav-group-title:hover .admin-nav-group-caret,
.admin-nav-group.is-open .admin-nav-group-title:focus-visible .admin-nav-group-caret,
.admin-nav-group.is-open.is-active .admin-nav-group-caret {
  transform: rotate(90deg);
}

.admin-nav-icon {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  min-width: 27px;
  max-width: 27px;
  height: 27px;
  min-height: 27px;
  max-height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 238, 255, 0.86);
}

.admin-nav-icon svg {
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 15px;
}

.admin-nav-link:hover .admin-nav-icon,
.admin-nav-link:focus-visible .admin-nav-icon,
.admin-nav-group-title:hover .admin-nav-icon,
.admin-nav-group-title:focus-visible .admin-nav-icon,
.admin-nav-group.is-open .admin-nav-icon,
.admin-nav-group.is-active .admin-nav-icon {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(125, 211, 252, 0.24);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.045);
  color: #e0f2fe;
}

.admin-nav-sublink {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12.5px;
  font-weight: 720;
  letter-spacing: 0;
}

.admin-nav-sublink:hover {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
}

.admin-nav-sublink.is-active {
  color: #ffffff;
}

.admin-nav-sublink span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-profile-menu-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  color: #9f1d1d;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
}

.admin-profile-menu-item:hover,
.admin-profile-menu-item:focus-visible {
  border-color: rgba(185, 28, 28, 0.12);
  background: linear-gradient(180deg, #fff8f8, #fff1f1);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.admin-profile-menu-item:active {
  transform: translateY(0);
}

.admin-profile-menu-item-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.admin-profile-menu-item-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-profile-menu-item-copy {
  min-width: 0;
  line-height: 1;
}

.admin-input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
}

.admin-input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(34, 113, 209, 0.16);
  outline-offset: 1px;
}

.admin-input::placeholder {
  color: color-mix(in srgb, var(--muted) 76%, #ffffff);
}

.admin-input:disabled,
.admin-input[readonly] {
  cursor: not-allowed;
  background: #f8fafc;
}

.admin-input-text {
  letter-spacing: 0;
}

.admin-input-email {
  letter-spacing: 0;
}

.admin-input-password {
  letter-spacing: 0;
}

.admin-select-field {
  display: grid;
  min-width: 0;
}

.admin-select-field-control {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-select-field-control:focus {
  border-color: #8db8ea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 95, 170, 0.1);
}

.admin-search-field {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 360px;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.product-form .admin-search-field,
label.admin-search-field {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 360px;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.admin-search-field svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-search-field:focus-within {
  border-color: color-mix(in srgb, var(--brand) 72%, #ffffff);
  box-shadow: 0 0 0 3px rgba(34, 113, 209, 0.12);
  color: var(--brand);
}

.admin-search-field .admin-search-field-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 0;
  height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0;
  outline: 0;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.admin-search-field-clear {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: color-mix(in srgb, var(--muted) 10%, #ffffff);
  color: color-mix(in srgb, var(--muted) 88%, #071a36);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-search-field-clear:hover,
.admin-search-field-clear:focus-visible {
  background: color-mix(in srgb, var(--brand) 12%, #ffffff);
  color: var(--brand);
}

.admin-search-field-clear:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 42%, transparent);
  outline-offset: 2px;
}

.admin-search-field-clear:active {
  transform: scale(0.94);
}

.admin-search-field-clear[hidden] {
  display: none;
}

.admin-search-field-clear svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.product-form .admin-search-field .admin-search-field-input,
label.admin-search-field .admin-search-field-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0;
  outline: 0;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.admin-search-field .admin-search-field-input::-webkit-search-decoration,
.admin-search-field .admin-search-field-input::-webkit-search-cancel-button,
.admin-search-field .admin-search-field-input::-webkit-search-results-button,
.admin-search-field .admin-search-field-input::-webkit-search-results-decoration {
  display: none;
}

.admin-search-field .admin-search-field-input:-webkit-autofill,
.admin-search-field .admin-search-field-input:-webkit-autofill:hover,
.admin-search-field .admin-search-field-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.admin-search-field .admin-search-field-input[readonly] {
  cursor: text;
}

.admin-search-field .admin-search-field-input::placeholder {
  color: color-mix(in srgb, var(--muted) 82%, #ffffff);
  opacity: 1;
  font: inherit;
}

.admin-search-field--communication {
  flex: 0 0 360px;
  width: 360px;
  max-width: min(100%, 360px);
}

.communication-toolbar .admin-search-field--communication {
  margin-right: 0;
}

@media (max-width: 720px) {
  .admin-search-field--communication {
    flex-basis: 100%;
    max-width: none;
    width: 100%;
  }
}

.admin-form-field {
  --admin-field-width: minmax(min(100%, 220px), max-content);
  display: grid;
  gap: 6px;
  grid-column: span 1;
  justify-self: start;
  width: fit-content;
  min-width: min(100%, 180px);
  max-width: min(100%, var(--admin-form-field-max, 320px));
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.admin-form-control {
  width: min(100%, var(--admin-control-width, 260px));
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid #d8e4f2;
  border-radius: 7px;
  padding: 9px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 620;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-form-control::placeholder {
  color: #8ea0b8;
  opacity: 0.86;
  font-weight: 560;
}

.admin-form-control:hover {
  border-color: #bfd2e8;
}

.admin-form-control:focus {
  border-color: #6aa4e8;
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 95, 170, 0.12), 0 8px 18px rgba(31, 95, 170, 0.08);
}

.admin-form-control:disabled,
.admin-form-control[readonly] {
  cursor: not-allowed;
  border-color: #e1e8f2;
  background: #f7f9fc;
  color: #6b7c91;
}

.admin-form-help {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.admin-form-help.is-tooltip-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-form-label-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.admin-form-help-tooltip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  background: #f4f8fe;
  color: #13366f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  flex: 0 0 auto;
}

.admin-form-help-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: max-content;
  max-width: min(300px, 72vw);
  padding: 9px 11px;
  border-radius: 8px;
  background: #071b33;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 26px rgba(7, 27, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-form-help-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 41;
  width: 10px;
  height: 10px;
  background: #071b33;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-form-help-tooltip:hover::after,
.admin-form-help-tooltip:focus-visible::after,
.admin-form-help-tooltip:hover::before,
.admin-form-help-tooltip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-form-field-text {
  --admin-control-width: 260px;
}

.admin-form-field-number {
  --admin-control-width: 132px;
  min-width: min(100%, 116px);
}

.admin-form-field-select {
  --admin-control-width: 230px;
}

.admin-form-field-checkbox {
  width: fit-content;
  min-width: min(100%, 180px);
}

.admin-form-field-full,
.admin-form-field:has([data-field-width="full"]) {
  width: 100%;
  max-width: 100%;
}

.admin-form-field-full .admin-form-control,
.admin-form-field:has([data-field-width="full"]) .admin-form-control {
  width: 100%;
}

.admin-form-control-text {
  appearance: none;
}

.admin-form-control-number {
  width: min(100%, 132px);
  appearance: textfield;
}

.admin-form-control-textarea {
  width: min(100%, 560px);
  min-height: 86px;
  resize: vertical;
}

.admin-form-field:has(.admin-form-control-textarea) {
  width: min(100%, 560px);
  max-width: min(100%, 560px);
}

.admin-form-control-select {
  width: min(100%, 230px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-image-upload-control {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  cursor: pointer;
}

.admin-image-upload-control .admin-image-upload-input,
.admin-image-upload-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-image-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  min-height: 44px;
  height: 44px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.admin-image-upload-control:hover .admin-image-upload-button,
.admin-image-upload-control:focus-within .admin-image-upload-button {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(31, 95, 170, 0.16);
}

.admin-form-field-video-upload {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.admin-video-upload-head {
  display: grid;
  gap: 3px;
}

.admin-video-upload-head > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-video-upload-head small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.admin-video-upload-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-video-upload-preview {
  min-height: 188px;
  overflow: hidden;
  border: 1px solid #d8e4f0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 87, 166, 0.08), rgba(22, 133, 106, 0.06)),
    #eef4f8;
}

.admin-video-upload-preview:empty::before {
  content: "Preview do video";
  display: grid;
  width: 100%;
  min-height: 188px;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-video-upload-preview.has-video::before {
  content: none;
}

.admin-video-upload-preview video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 188px;
  border-radius: inherit;
  object-fit: cover;
}

.admin-video-upload-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.admin-video-upload-control {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.admin-video-upload-control .admin-form-control {
  width: 100%;
}

.admin-video-upload-button-control {
  align-self: end;
}

@media (max-width: 860px) {
  .admin-video-upload-body,
  .admin-video-upload-controls {
    grid-template-columns: 1fr;
  }
}

.admin-form-field-media-manager {
  display: grid;
  gap: 10px;
  justify-self: stretch;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-media-manager-head {
  display: grid;
  gap: 3px;
}

.admin-media-manager-head > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-media-manager-head small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.admin-media-manager-body {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-media-manager-preview {
  min-height: 172px;
  height: 100%;
  border: 1px solid #d8e4f0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 87, 166, 0.08), rgba(22, 133, 106, 0.06)),
    #eef4f8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.admin-media-manager-preview:empty::before {
  content: "Preview";
  display: grid;
  width: 100%;
  min-height: 172px;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-media-manager-preview.has-image::before {
  content: none;
}

.admin-media-manager-preview.has-video {
  overflow: hidden;
  background-image: none !important;
  background-color: #102d57;
}

.admin-media-manager-preview img,
.admin-media-manager-preview video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 172px;
  border-radius: inherit;
}

.admin-media-manager-preview img {
  object-fit: fill;
}

.admin-media-manager-preview video {
  object-fit: cover;
}

.admin-media-manager-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.admin-media-manager-controls > * {
  min-width: 0;
  width: 100%;
}

.admin-media-manager-path-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: end;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.admin-media-manager-path-control,
.hero-media-library-label {
  min-width: 0;
}

.admin-media-manager-path-control .admin-form-control,
.hero-media-library-label .admin-form-control {
  width: 100%;
  min-width: 0;
}

.admin-media-manager-alt-control .admin-form-field-control-with-ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.admin-media-manager-alt-control .admin-form-control {
  width: 100%;
}

.admin-media-manager-control {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.admin-media-manager-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: end;
  gap: 10px;
}

.admin-media-manager-video-grid .admin-form-control {
  width: 100%;
}

.admin-media-manager-upload,
.admin-media-manager-video-upload {
  align-self: end;
  width: 100%;
  min-width: 0;
}

.admin-media-manager-upload .admin-button,
.admin-media-manager-video-upload .admin-button {
  width: 100%;
  justify-content: center;
}

.admin-media-manager-ai-prompt,
.admin-media-manager-ai-prompt textarea {
  width: 100%;
}

.admin-media-manager-ai-prompt textarea {
  resize: vertical;
  height: auto;
  min-height: 78px;
}

.admin-media-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-media-manager-actions .admin-button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.86;
  padding-left: 36px;
}

.admin-media-manager-actions .admin-button.is-loading::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: admin-media-manager-spin 0.72s linear infinite;
}

.admin-media-manager-status {
  display: grid;
  gap: 4px;
  min-height: 38px;
  align-items: center;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  padding: 10px 12px 10px 38px;
  color: #17416f;
  background:
    linear-gradient(180deg, rgba(236, 246, 255, 0.96), rgba(246, 251, 255, 0.96));
  font-size: 0.86rem;
  font-weight: 780;
  position: relative;
}

.admin-media-manager-status::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid #b9cce4;
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: admin-media-manager-spin 0.78s linear infinite;
}

.admin-media-manager-status.is-success {
  color: #155a42;
  border-color: #b9e4d1;
  background: #effbf6;
  padding-left: 12px;
}

.admin-media-manager-status.is-success::before {
  content: none;
}

.admin-media-manager-status.is-error {
  color: #a62222;
  border-color: #f2c1c1;
  background: #fff6f6;
  padding-left: 12px;
}

.admin-media-manager-status.is-error::before {
  content: none;
}

.admin-media-manager-ai-preview {
  min-width: 0;
}

.admin-media-manager-ai-preview.is-loading {
  display: grid;
  gap: 8px;
  min-height: 84px;
  place-items: center;
  border: 1px dashed #c8d8eb;
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: #f7fbff;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 760;
}

.admin-media-manager-ai-preview.is-loading::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #c9d8ea;
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: admin-media-manager-spin 0.78s linear infinite;
}

.admin-media-manager-ai-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  object-fit: cover;
}

@keyframes admin-media-manager-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  .admin-media-manager-body {
    grid-template-columns: 1fr;
  }

  .admin-media-manager-path-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }

  .admin-media-manager-path-row .admin-image-upload-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .admin-media-manager-body,
  .admin-media-manager-video-grid {
    grid-template-columns: 1fr;
  }

  .admin-media-manager-path-row {
    grid-template-columns: 1fr;
  }
}

.admin-form-field-hero-image {
  grid-column: 1 / -1;
  justify-self: stretch;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.admin-form-field-hero-image .admin-media-manager-body {
  width: 100%;
}

[data-home-content-form] .admin-form-field-hero-image,
[data-page-editor] .admin-form-field-hero-image {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

.admin-form {
  min-width: 0;
  --admin-form-field-min: 180px;
  --admin-form-field-max: 320px;
  --admin-form-gap: 12px;
}

.admin-form-close {
  flex: 0 0 auto;
}

.admin-generated-id-field {
  display: none !important;
}

.admin-form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 18px;
  overflow-x: auto;
}

.admin-form-panels {
  min-width: 0;
}

.admin-form-panel {
  min-width: 0;
}

.admin-form-panel[hidden] {
  display: none;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--admin-form-field-min)), 1fr));
  gap: var(--admin-form-gap);
  align-items: end;
  justify-content: start;
  width: 100%;
  min-width: 0;
}

.admin-form-span {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 680px) {
  .admin-form-tabs {
    flex-wrap: nowrap;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-actions-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.admin-actions-menu-trigger {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #0f3f76;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  list-style: none;
}

.admin-actions-menu-trigger:hover,
.admin-actions-menu[open] .admin-actions-menu-trigger {
  border-color: #9cc7f2;
  background: #edf5ff;
}

.admin-actions-menu-trigger::-webkit-details-marker {
  display: none;
}

.admin-actions-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 240px;
  max-width: min(240px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.admin-actions-menu[open] > .admin-actions-menu-popover {
  position: fixed;
  left: var(--billing-actions-left, auto);
  right: auto;
  top: var(--billing-actions-top, 72px);
  bottom: auto;
  z-index: 760;
  width: min(260px, calc(100vw - 24px));
  max-height: min(440px, calc(100vh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-actions-menu-item {
  width: 100%;
  min-height: 36px;
  padding: 8px 34px 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.admin-actions-menu-item:hover,
.admin-actions-menu-item:focus-visible {
  background: var(--soft);
  outline: none;
}

.admin-actions-menu-item.is-danger {
  color: #b91c1c;
}

.admin-actions-menu-list {
  justify-self: end;
}

.admin-actions-menu-list-popover {
  width: 220px;
}


.admin-table {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.admin-table-row {
  min-width: 0;
}

.admin-table-cell {
  min-width: 0;
}

.admin-table-cell > strong,
.admin-table-cell > span {
  min-width: 0;
}

.admin-table-empty {
  width: 100%;
}

.admin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.admin-table-toolbar-controls,
.admin-table-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-table-toolbar-controls {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.admin-table-toolbar-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.admin-table-toolbar-search {
  width: min(450px, 100%);
  flex: 1 1 260px;
}

.admin-table-body {
  display: grid;
  gap: 0;
  min-width: 0;
}

@media (max-width: 680px) {
  .admin-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table-toolbar-controls,
  .admin-table-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table-toolbar-search {
    width: 100%;
  }
}

.admin-table-list {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.admin-table-list .admin-table-body {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-table-list-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.admin-table-list-row:last-child {
  border-bottom: 0;
}

.admin-table-list-empty {
  margin: 0;
}

.admin-table-main-cell {
  min-width: 0;
}

.admin-table-main-cell > strong,
.admin-table-main-cell > span,
.admin-table-chip-cell,
.admin-table-meta-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-main-cell > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #071a36;
  font-size: 1rem;
  font-weight: 800;
}

.admin-list-item-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-main-cell > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-table-chip-cell,
.admin-table-meta-cell {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-table-chip-cell {
  justify-self: start;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: #17324f;
}

.product-category-badge {
  border: 1px solid transparent;
}

.product-category-badge-color-blue {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.product-category-badge-color-green {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.product-category-badge-color-red {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.product-category-badge-color-yellow {
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.admin-table-actions-cell {
  justify-self: end;
}


.admin-price-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  background: #f7fafc;
  color: #48627f;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.admin-list-media {
  display: grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  border-radius: 8px;
  object-fit: cover;
  overflow: hidden;
  background: var(--panel-soft);
  color: #17324f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.admin-list-media-placeholder {
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-list-media-default {
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-list-media-count {
  background: #eff6ff;
  color: #0f376f;
}

.admin-list-item {
  min-width: 0;
}

.admin-list-item-leading {
  min-width: 0;
}

.admin-list-item-main {
  min-width: 0;
}

.admin-list-item-actions {
  justify-self: end;
}

.admin-list-title-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #0f3d75;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.admin-list-title-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-title-link-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #bfd4ec;
  border-radius: 5px;
  color: #0f3d75;
  background: #eef6ff;
}

.admin-list-title-link-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-list-title-link:hover,
.admin-list-title-link:focus-visible {
  color: #071a36;
  text-decoration: underline;
  outline: none;
}

.admin-popover {
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfe0f4;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

.admin-popover--has-search {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-popover-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 12px 14px;
  border-bottom: 1px solid #dce8f6;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.admin-popup-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.admin-popover-close {
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 0;
}

.admin-popover-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}

.admin-popover > .admin-popup-search,
.admin-popover-surface > .admin-popup-search,
.admin-modal-panel > .admin-popup-search {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
}

.admin-popover > .admin-popup-search,
.admin-popover-surface > .admin-popup-search {
  margin: 0 0 2px;
}

.admin-modal-panel > .admin-popup-search {
  width: calc(100% - 36px);
  margin: 0 18px;
}

.admin-popover-surface {
  box-sizing: border-box;
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal {
  box-sizing: border-box;
  position: fixed;
  top: var(--admin-popup-area-top, 0);
  right: auto;
  bottom: auto;
  left: var(--admin-popup-area-left, 0);
  z-index: 2147483640;
  display: grid;
  place-items: center;
  width: var(--admin-popup-area-width, 100vw);
  height: var(--admin-popup-area-height, 100vh);
  min-width: 0;
  padding: 24px;
  background: transparent;
  pointer-events: none;
}

.admin-modal-panel {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(var(--admin-modal-width, 720px), calc(100vw - 48px));
  max-height: min(var(--admin-modal-max-height, 76vh), calc(100vh - 48px));
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfe0f4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  pointer-events: auto;
}

.admin-modal-panel--has-search {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.admin-modal-panel.modal-panel {
  padding: 0;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  border-bottom: 1px solid #dce8f6;
  background: #ffffff;
}

.admin-modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

.admin-modal-close {
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 0;
}

.admin-popover-head strong,
.admin-modal-head strong,
.admin-modal-head h3,
.whatsapp-new-conversation-head h3,
.whatsapp-bulk-modal-head strong,
.whatsapp-template-modal-head strong,
.whatsapp-template-modal-head h3,
.whatsapp-composer-popover-head strong,
.whatsapp-emoji-head strong {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.admin-popover--communication {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.92), rgba(255, 255, 255, 0.98) 38%),
    #ffffff;
  box-shadow: 0 34px 96px rgba(15, 23, 42, 0.24);
}

.admin-popover--communication .admin-popover-head {
  padding: 18px 18px 13px;
}

.admin-popover--communication .admin-popover-body {
  display: grid;
  grid-template-columns: var(--admin-popover-columns, repeat(3, minmax(0, 1fr)));
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.admin-popover--communication .whatsapp-composer-popover-head {
  display: none;
}

.admin-modal--communication {
  background: transparent;
}

.admin-modal-panel--communication {
  border-radius: 16px;
}

.admin-modal-body--communication {
  padding: 16px;
}

.whatsapp-new-conversation-modal.admin-modal,
.phone-new-call-modal.admin-modal {
  --admin-modal-width: 760px;
  --admin-modal-max-height: 78vh;
}

.whatsapp-new-conversation-card.admin-modal-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(var(--admin-modal-width, 760px), calc(100vw - 48px));
  max-height: min(var(--admin-modal-max-height, 78vh), calc(100vh - 48px));
  padding: 0;
}

.phone-new-call-card.admin-modal-panel {
  --admin-modal-width: 820px;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

@media (max-width: 760px) {
  .admin-popover--communication .admin-popover-body {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

.admin-scrollbar {
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.admin-scrollbar:hover,
.admin-scrollbar:focus,
.admin-scrollbar:focus-within,
.admin-scrollbar.is-scrollbar-active {
  scrollbar-color: rgba(63, 91, 128, 0.34) transparent;
}

.admin-scrollbar::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.admin-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-scrollbar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
}

.admin-scrollbar:hover::-webkit-scrollbar-thumb,
.admin-scrollbar:focus::-webkit-scrollbar-thumb,
.admin-scrollbar:focus-within::-webkit-scrollbar-thumb,
.admin-scrollbar.is-scrollbar-active::-webkit-scrollbar-thumb {
  background-color: rgba(63, 91, 128, 0.34);
}

.admin-scrollbar:hover::-webkit-scrollbar-thumb:hover,
.admin-scrollbar:focus::-webkit-scrollbar-thumb:hover,
.admin-scrollbar:focus-within::-webkit-scrollbar-thumb:hover,
.admin-scrollbar.is-scrollbar-active::-webkit-scrollbar-thumb:hover {
  background-color: rgba(29, 91, 191, 0.48);
}

.admin-page-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.15;
}

.admin-page-header-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d7e4f4;
  border-radius: 8px;
  background: #f8fbff;
}

.admin-page-header-menu-item {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  border: 1px solid #d7e4f4;
  border-radius: 8px;
  background: #ffffff;
  color: #59708e;
  cursor: pointer;
  font: inherit;
}

.admin-page-header-menu-item.is-active {
  border-color: #1d64bd;
  background: #eaf3ff;
  color: #0f4d9f;
  box-shadow: inset 0 0 0 1px rgba(29, 100, 189, 0.16);
}

.admin-page-header-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-page-header-menu-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  display: inline-grid;
  min-width: 20px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

@media (max-width: 680px) {
  .admin-page-header-menu {
    align-self: flex-start;
  }
}

.admin-page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f6fbff);
}

.admin-page-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-page-header > div:first-child {
  min-width: 0;
}

.admin-page-header p:not(.admin-kicker) {
  display: none;
}

.admin-page-header.is-topbar-source,
.admin-hero.is-topbar-source {
  display: none !important;
}

@media (max-width: 680px) {
  .admin-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.admin-page-content-block {
  min-width: 0;
  max-width: 100%;
}

.admin-page-content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-page-content-card:not(.product-form, .admin-card, .admin-panel, .admin-hero, .admin-metric, .person-card) {
  padding: 20px;
}

.admin-card-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-card-header-options {
  justify-self: end;
}

.admin-list-count-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.admin-list-count-title-row > .admin-kicker {
  flex: 0 0 100%;
}

.admin-list-count-title-row > :is(h1, h2, h3) {
  order: 2;
}

.admin-list-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  width: fit-content;
  margin-left: 0;
  padding: 4px 10px;
  border: 1px solid rgba(19, 54, 111, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.98), rgba(226, 239, 255, 0.88));
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  order: 1;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 680px) {
  .admin-card-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.admin-page-shell {
  align-content: stretch;
  min-height: 0;
}

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

.admin-page-shell.is-create-page-open {
  align-content: start;
  gap: 0;
  min-height: 0;
  overflow: visible;
}

.admin-page-shell.is-create-page-open [data-admin-create-page].is-active-create-page {
  align-self: start;
  margin-top: 0;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.admin-page-shell.is-create-page-open > .is-create-page-hidden,
.admin-page-shell.is-create-page-open .is-active-create-page > .is-create-page-hidden {
  display: none !important;
}

.admin-page-shell[data-view="comunicacao"].is-active {
  gap: 10px;
  margin-top: -8px;
}

.communication-shell {
  --communication-list-width: 360px;
  --communication-workspace-radius: 8px;
  position: relative;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow-anchor: none;
  scrollbar-gutter: stable;
}

.communication-shell *,
.communication-shell *::before,
.communication-shell *::after {
}

.communication-shell :focus,
.communication-shell :focus-visible,
.communication-shell :active {
  outline: 0;
}

.communication-shell button,
.communication-shell summary,
.communication-shell select,
.communication-shell input,
.communication-shell textarea {
  transform: none;
}

.communication-shell > .admin-message {
  position: absolute;
  top: 50px;
  right: 16px;
  z-index: 130;
  width: min(360px, calc(100% - 32px));
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}

.communication-channel-head {
  gap: 12px;
}

.communication-channel-title {
  min-width: 0;
}

.communication-channel-name {
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.communication-actions-menu {
  margin-left: auto;
}

.communication-toolbar {
  --communication-control-height: 42px;
  --communication-control-radius: 8px;
  --communication-control-font-size: 14px;
  --communication-control-font-weight: 600;
  --communication-control-line-height: 1.2;
  --communication-control-color: var(--muted);
  --communication-toolbar-inline-padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
  max-height: var(--communication-control-height);
  margin: 0 0 12px;
  padding: 0 var(--communication-toolbar-inline-padding);
  overflow-x: clip;
  overflow-y: visible;
  scroll-padding-inline: var(--communication-toolbar-inline-padding);
  scrollbar-width: none;
  overflow-anchor: none;
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
  color: var(--communication-control-color);
}

.communication-toolbar::-webkit-scrollbar {
  display: none;
}

.communication-channel-head > .communication-toolbar,
.communication-channel-head > .whatsapp-title-row.communication-toolbar {
  margin-bottom: 0;
}

.communication-toolbar > * {
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: center;
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
  max-height: var(--communication-control-height);
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
  color: var(--communication-control-color);
}

.communication-toolbar > :first-child {
  margin-left: 0;
}

.communication-toolbar > .admin-search-field,
.communication-toolbar > .admin-search-field--communication {
  display: inline-flex;
  align-items: center;
  flex: 0 0 var(--communication-list-width);
  width: var(--communication-list-width);
  max-width: min(100%, var(--communication-list-width));
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
  border-radius: var(--communication-control-radius);
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
  color: var(--communication-control-color);
}

.communication-toolbar > .admin-search-field .admin-search-field-input {
  height: calc(var(--communication-control-height) - 2px);
  min-height: 0;
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
  color: var(--communication-control-color);
}

.communication-toolbar > .admin-search-field .admin-search-field-input::placeholder {
  color: var(--communication-control-color);
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
}

.communication-toolbar > .admin-button,
.communication-toolbar > .communication-unread-filter,
.communication-toolbar > .communication-clear-filter,
.communication-toolbar > .communication-new-action,
.communication-toolbar > .whatsapp-filter-pill,
.communication-toolbar > .whatsapp-clear-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
  border-radius: var(--communication-control-radius);
  padding-top: 0;
  padding-bottom: 0;
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
  color: var(--communication-control-color);
  white-space: nowrap;
}

.communication-toolbar > .whatsapp-product-filter,
.communication-toolbar > .communication-product-filter {
  display: inline-flex;
  align-items: center;
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
}

.communication-toolbar > .whatsapp-product-filter select,
.communication-toolbar > .communication-product-filter select {
  box-sizing: border-box;
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
  border-radius: var(--communication-control-radius);
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
  color: var(--communication-control-color);
}

.communication-toolbar > .whatsapp-product-filter select option,
.communication-toolbar > .communication-product-filter select option {
  color: var(--communication-control-color);
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
}

.communication-toolbar > .communication-new-action {
  color: #ffffff;
}

.communication-toolbar > .communication-actions-menu,
.communication-toolbar > [data-phone-actions-menu],
.communication-toolbar > [data-whatsapp-actions-menu] {
  display: inline-flex;
  align-items: center;
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: var(--communication-control-line-height);
  color: var(--communication-control-color);
}

.communication-toolbar > .communication-actions-menu > summary,
.communication-toolbar > [data-phone-actions-menu] > summary,
.communication-toolbar > [data-whatsapp-actions-menu] > summary {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--communication-control-height);
  height: var(--communication-control-height);
  min-height: var(--communication-control-height);
  border-radius: var(--communication-control-radius);
  font-family: inherit;
  font-size: var(--communication-control-font-size);
  font-weight: var(--communication-control-font-weight);
  line-height: 1;
  color: var(--communication-control-color);
}

[data-tab-panel="whatsapp"] > .communication-channel-head {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

[data-tab-panel="whatsapp"] > .communication-channel-head > .communication-channel-title {
  align-self: flex-start;
  width: 100%;
  text-align: left;
}

[data-tab-panel="whatsapp"] > .communication-channel-head > .whatsapp-title-row {
  --communication-toolbar-inline-padding: 8px;
  width: 100%;
  margin: 0;
}

[data-tab-panel="whatsapp"] > .communication-channel-head > .communication-toolbar {
  margin-bottom: 0;
}

.communication-new-action {
  height: 42px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
}

.communication-new-action + .communication-actions-menu,
.communication-new-action + [data-phone-actions-menu],
.communication-new-action + [data-whatsapp-actions-menu] {
  margin-left: 0;
}

.communication-product-filter {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 188px;
  height: 42px;
  min-height: 42px;
  margin: 0;
}

.communication-product-filter select {
  width: 100%;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 36px 0 14px;
  background-color: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.communication-clear-filter {
  height: 42px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.communication-channel-workspace,
.communication-channel-list-workspace {
  contain: inline-size;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  column-gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--communication-workspace-radius);
  background: #f6faff;
  overflow: hidden;
  overflow-anchor: none;
  scrollbar-gutter: stable;
}

.communication-channel-list-workspace {
  grid-template-columns: var(--communication-list-width) minmax(0, 1fr) !important;
}

.communication-channel-list-workspace.whatsapp-workspace.has-whatsapp-details {
  grid-template-columns: var(--communication-list-width) minmax(0, 1fr) minmax(320px, 0.38fr) !important;
}

.communication-channel-list {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: stretch;
  align-self: stretch;
  justify-self: stretch;
  flex: 0 0 var(--communication-list-width) !important;
  width: var(--communication-list-width) !important;
  min-width: var(--communication-list-width) !important;
  max-width: var(--communication-list-width) !important;
  gap: 0 !important;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 !important;
  background: #ffffff;
  box-shadow: none;
  overflow-x: hidden;
  overflow-anchor: none;
  scrollbar-gutter: stable both-edges;
}

.communication-channel-list > .communication-conversation-list {
  width: 100%;
  min-width: 100%;
}

.communication-channel-list.phone-call-sidebar,
.communication-channel-list.sms-sidebar {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.communication-channel-list.email-list,
.communication-channel-list .communication-conversation-list {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.communication-channel-detail {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f4f8fd;
  box-shadow: none;
  overflow: visible;
  overflow-anchor: none;
}

.communication-channel-detail.is-communication-detail-empty {
  display: grid;
  grid-template-rows: minmax(0, 1fr) !important;
  align-content: stretch;
}

.communication-channel-detail.is-communication-detail-empty > .communication-message-composer-form,
.communication-channel-detail.is-communication-detail-empty > [data-chat-form],
.communication-channel-detail.is-communication-detail-empty > [data-whatsapp-form],
.communication-channel-detail.is-communication-detail-empty > [data-sms-form] {
  display: none !important;
}

.communication-channel-detail.is-communication-detail-empty > .communication-detail-empty-host {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.communication-channel-detail.sms-panel {
  gap: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.communication-channel-detail > .sms-compose-form {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
}

.communication-channel-detail > .sms-thread {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 24px 28px;
  background: transparent;
}

.communication-channel-detail > .phone-contact-detail {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 24px 28px;
  background: transparent;
  box-shadow: none;
}

.communication-channel-detail > .phone-contact-empty,
.communication-channel-detail .phone-contact-detail > .phone-contact-empty {
  min-height: 240px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 760px) {
  .communication-channel-list-workspace,
  .communication-channel-list-workspace.whatsapp-workspace.has-whatsapp-details {
    grid-template-columns: 1fr !important;
  }

  .communication-channel-list {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.communication-detail-empty {
  box-sizing: border-box;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  min-height: 100%;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: #f4f8fd;
}

.communication-detail-empty-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 4px;
  border: 1px solid #d7e4f4;
  border-radius: 24px;
  color: #5f7696;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.communication-detail-empty-visual::before,
.communication-detail-empty-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #dbeafe;
}

.communication-detail-empty-visual::before {
  right: -8px;
  top: 12px;
  width: 18px;
  height: 18px;
}

.communication-detail-empty-visual::after {
  left: -10px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  background: #e8f5ee;
}

.communication-detail-empty-visual svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.communication-detail-empty h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.communication-detail-empty p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.55;
}

.communication-composer-add-button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  gap: 0;
  width: var(--communication-message-composer-button-size);
  height: var(--communication-message-composer-button-size);
  min-height: var(--communication-message-composer-button-size);
  border: 1px solid #d6e2f0;
  border-radius: 8px;
  color: #5f7696;
  background: #ffffff;
  cursor: pointer;
}

.communication-composer-add-button:hover,
.communication-composer-add-button:focus-visible,
.communication-composer-add-menu[open] .communication-composer-add-button,
.communication-composer-add-menu[data-communication-composer-open="true"] .communication-composer-add-button {
  border-color: #bed3ef;
  color: var(--brand);
  background: #edf5ff;
  outline: none;
}

.communication-composer-add-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.communication-composer-add-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.communication-composer-add-popover {
  min-width: 270px;
}

.communication-composer-add-option {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  border: 1px solid #dce8f6;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.communication-composer-add-option:hover,
.communication-composer-add-option:focus-visible {
  border-color: #9fc2ec;
  background: #f3f8ff;
  box-shadow: 0 16px 34px rgba(29, 91, 191, 0.13);
  outline: none;
}

.communication-composer-add-option input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.communication-composer-add-option .whatsapp-composer-option-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  color: var(--brand);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
}

.communication-composer-add-option:hover .whatsapp-composer-option-icon,
.communication-composer-add-option:focus-visible .whatsapp-composer-option-icon {
  color: #0d8f61;
  border-color: #bde7d4;
  background: linear-gradient(180deg, #ffffff, #eefbf5);
}

.communication-composer-add-option .whatsapp-composer-option-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.communication-composer-add-option .whatsapp-composer-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.communication-composer-add-option .whatsapp-composer-option-copy strong {
  display: block;
  min-width: 0;
  margin-bottom: 1px;
  overflow: hidden;
  color: var(--text);
  font-size: .96rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-composer-add-option .whatsapp-composer-option-copy span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.communication-composer-emoji-button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--communication-message-composer-button-size);
  height: var(--communication-message-composer-button-size);
  min-height: var(--communication-message-composer-button-size);
  border: 1px solid #d6e2f0;
  border-radius: 8px;
  color: #5f7696;
  background: #ffffff;
  cursor: pointer;
}

.communication-composer-emoji-button:hover,
.communication-composer-emoji-button:focus-visible {
  border-color: #bed3ef;
  color: var(--brand);
  background: #edf5ff;
  outline: none;
}

.communication-composer-emoji-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.communication-composer-ai-button,
.admin-ai-improve-button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--communication-message-composer-button-size);
  height: var(--communication-message-composer-button-size);
  min-height: var(--communication-message-composer-button-size);
  border: 1px solid #d6e2f0;
  border-radius: 8px;
  color: #5f7696;
  background: #ffffff;
  cursor: pointer;
}

.communication-composer-ai-button:hover,
.communication-composer-ai-button:focus-visible,
.communication-composer-ai-button.is-improved,
.admin-ai-improve-button:hover,
.admin-ai-improve-button:focus-visible,
.admin-ai-improve-button.is-improved {
  border-color: #bed3ef;
  color: var(--brand);
  background: #edf5ff;
  outline: none;
}

.communication-composer-ai-button svg,
.admin-ai-improve-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-form-field-control-with-ai {
  position: relative;
  width: 100%;
}

.admin-form-field-control-with-ai .admin-form-control {
  width: 100%;
  padding-right: calc(var(--communication-message-composer-button-size, 42px) + 14px);
}

.admin-form-field-control-with-ai textarea.admin-form-control {
  padding-right: calc(var(--communication-message-composer-button-size, 42px) + 16px);
}

.admin-form-field-control-with-ai .admin-ai-improve-button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.admin-form-field-control-with-ai .admin-ai-improve-button svg {
  width: 16px;
  height: 16px;
}

.admin-ai-improve-button.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.communication-message-composer-form {
  --ds-communication-composer-control-height: 50px;
  align-items: center;
  min-width: 0;
}

.communication-message-composer-form > [data-button-component],
.communication-message-composer-form > .admin-button,
.communication-message-composer-form > .c-button {
  align-self: center;
}

.communication-message-composer-form > .communication-message-textarea {
  align-self: center;
}

.communication-message-composer-submit,
.communication-message-composer-form > .communication-message-composer-submit,
.communication-message-composer-form > button.communication-message-composer-submit {
  --communication-message-composer-submit-height: var(--ds-communication-composer-control-height);
  box-sizing: border-box;
  height: var(--communication-message-composer-submit-height) !important;
  min-height: var(--communication-message-composer-submit-height) !important;
  max-height: var(--communication-message-composer-submit-height) !important;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
  line-height: 1;
}

.communication-message-composer-form--sms {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
}

.communication-message-composer-recipient {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.communication-message-textarea {
  --communication-message-textarea-height: var(--ds-communication-composer-control-height);
  --communication-message-composer-button-size: 34px;
  --communication-message-composer-inner-gap: 22px;
  --communication-message-composer-control-gap: 6px;
  position: relative;
  min-width: 0;
}

.communication-message-textarea textarea {
  box-sizing: border-box;
  width: 100%;
  height: var(--communication-message-textarea-height) !important;
  min-height: var(--communication-message-textarea-height) !important;
  max-height: var(--communication-message-textarea-height) !important;
  padding-left: calc((var(--communication-message-composer-inner-gap) * 2) + (var(--communication-message-composer-button-size) * 2) + var(--communication-message-composer-control-gap));
  padding-right: calc((var(--communication-message-composer-inner-gap) * 2) + var(--communication-message-composer-button-size));
  resize: none;
  overflow-y: hidden;
}

.communication-message-textarea-library {
  position: absolute;
  left: var(--communication-message-composer-inner-gap);
  top: calc(var(--communication-message-textarea-height) / 2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--communication-message-composer-control-gap);
  margin-top: 0;
  transform: translateY(-50%);
}

.communication-message-textarea-actions {
  position: absolute;
  right: var(--communication-message-composer-inner-gap);
  top: calc(var(--communication-message-textarea-height) / 2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--communication-message-composer-control-gap);
  margin-top: 0;
  transform: translateY(-50%);
}

.admin-popover-body > .whatsapp-composer-library-popover,
.whatsapp-composer-library-popover {
  position: static;
  display: grid;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.communication-conversation-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #061b46;
  background: var(--conversation-avatar-bg, #dbeafe);
  font-weight: 900;
}

.communication-conversation-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.communication-conversation-checkbox {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #1d4ed8;
  box-shadow: 0 5px 12px rgba(15, 41, 76, 0.18);
  opacity: 0;
}

.communication-conversation-checkbox svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.communication-conversation-item:hover .communication-conversation-checkbox,
.communication-conversation-item.is-selected .communication-conversation-checkbox {
  opacity: 1;
}

.communication-conversation-time {
  justify-self: end;
  min-width: max-content;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.communication-conversation-notification {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 7px;
  color: #ffffff;
  background: #16a34a;
  font-size: 0.72rem;
  font-weight: 900;
}

.communication-conversation-menu {
  position: relative;
  align-self: center;
  margin-right: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.communication-conversation-item:hover .communication-conversation-menu,
.communication-conversation-item:focus-within .communication-conversation-menu,
.communication-conversation-menu[open] {
  opacity: 1;
  pointer-events: auto;
}

.communication-conversation-menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.communication-conversation-menu summary::-webkit-details-marker {
  display: none;
}

.communication-conversation-menu[open] summary,
.communication-conversation-menu summary:hover {
  color: var(--brand);
  background: #edf5ff;
}

.communication-conversation-menu .communication-conversation-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 9999;
  display: grid;
  min-width: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.communication-conversation-menu span {
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.communication-conversation-menu span:hover {
  background: #edf5ff;
}

.communication-conversation-menu span.is-danger {
  color: #b42318;
}

.communication-conversation-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.communication-conversation-item:has(.communication-conversation-menu[open]) {
  z-index: 30;
}

.communication-conversation-item.is-active {
  background: #edf5ff;
}

.communication-conversation-main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 12px 12px 12px 16px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.communication-conversation-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.communication-conversation-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.communication-conversation-title-row strong,
.communication-conversation-body small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-conversation-title-row strong {
  color: var(--text);
  font-size: 0.95rem;
}

.communication-conversation-title-row .communication-conversation-time,
.communication-conversation-body small {
  color: var(--muted);
  font-size: 0.78rem;
}

.communication-conversation-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.communication-conversation-preview-row > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.communication-conversation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.communication-conversation-badges span {
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  padding: 2px 8px;
  color: #175cd3;
  background: #f3f8ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.communication-conversation-item--chat .communication-conversation-badges span {
  color: #175cd3;
  background: #eaf3ff;
}

.communication-conversation-item--chat .communication-chat-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.communication-conversation-item--chat .communication-chat-preview-label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  color: #1f3f68;
  background: #e8f1ff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
}

.communication-conversation-item--chat .communication-chat-preview.is-admin .communication-chat-preview-label {
  color: #ffffff;
  background: #1d5fb8;
}

.communication-conversation-item--chat .communication-chat-preview.is-contact .communication-chat-preview-label {
  color: #14532d;
  background: #dcfce7;
}

.communication-conversation-item--chat .communication-chat-preview-text {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-tab-panel="email"] .communication-conversation-item--email .communication-conversation-preview-row > span {
  gap: 2px;
}

[data-tab-panel="email"] .communication-conversation-item--email .communication-conversation-preview-row small + small {
  color: #60738d;
  font-weight: 520;
}

[data-tab-panel="email"] .communication-conversation-item--email.is-unread .communication-conversation-title-row strong {
  font-weight: 850;
}

[data-tab-panel="email"] .communication-conversation-item--email.is-read {
  opacity: 0.88;
}

[data-tab-panel="email"] .communication-conversation-item--email.is-outbound .communication-conversation-avatar {
  color: #1557a8;
}

.communication-conversation-item--whatsapp.is-unread .communication-conversation-title-row strong {
  font-weight: 950;
}

.communication-conversation-item--whatsapp.is-selecting .communication-conversation-checkbox {
  opacity: 1;
}

.communication-conversation-item--whatsapp .communication-whatsapp-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.communication-conversation-item--whatsapp .communication-whatsapp-preview-label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  color: #1f3f68;
  background: #e8f1ff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
}

.communication-conversation-item--whatsapp .communication-whatsapp-preview.is-admin .communication-whatsapp-preview-label {
  color: #ffffff;
  background: #1d5fb8;
}

.communication-conversation-item--whatsapp .communication-whatsapp-preview.is-contact .communication-whatsapp-preview-label {
  color: #14532d;
  background: #dcfce7;
}

.communication-conversation-item--whatsapp .communication-whatsapp-preview-text {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-conversation-item--phone .communication-conversation-avatar {
  color: #175cd3;
}

.communication-conversation-item--sms .communication-conversation-avatar {
  color: #075985;
}

.communication-conversation-item--new-contact {
  min-height: 74px;
}

.communication-conversation-item--new-contact:hover,
.communication-conversation-item--new-contact.is-selected {
  background: #edf5ff;
}

.communication-conversation-item--new-contact .communication-conversation-main {
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 74px;
  padding: 12px 14px;
}

.communication-conversation-item--new-contact .communication-conversation-avatar,
.communication-conversation-item--new-contact .communication-conversation-avatar-wrap {
  width: 44px;
  height: 44px;
}

.communication-conversation-item--new-contact.is-selecting .communication-conversation-checkbox,
.communication-conversation-item--new-contact.is-selected .communication-conversation-checkbox {
  opacity: 1;
}

.communication-conversation-item--new-contact.is-selected .communication-conversation-checkbox {
  border-color: #ffffff;
  color: #ffffff;
  background: #1f5faa;
}

.communication-selection-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  box-sizing: border-box;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-self: stretch;
  align-self: start;
  gap: 10px;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.communication-selection-bar strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: .94rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.communication-selection-bar-clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.communication-selection-bar-clear:hover,
.communication-selection-bar-clear:focus-visible {
  color: var(--text);
  background: var(--soft);
  outline: none;
}

.communication-selection-bar-action {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  text-align: left;
}

.communication-selection-bar-action:hover,
.communication-selection-bar-action:focus-visible {
  background: #edf5ff;
  outline: none;
}

.communication-selection-bar-action.is-danger {
  color: #b42318;
}

.communication-selection-bar > .communication-selection-bar-action {
  width: auto;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #ffffff;
  text-align: center;
}

.communication-selection-bar-menu {
  position: relative;
  z-index: 90;
  flex: 0 0 auto;
}

.communication-selection-bar-trigger {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  list-style: none;
}

.communication-selection-bar-trigger::-webkit-details-marker {
  display: none;
}

.communication-selection-bar-menu[open] .communication-selection-bar-trigger,
.communication-selection-bar-trigger:hover {
  color: var(--brand);
  background: #edf5ff;
}

.communication-selection-bar-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 100;
  display: grid;
  width: min(280px, calc(100vw - 48px));
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.communication-conversation-pagination {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.communication-conversation-pagination[hidden] {
  display: none;
}

.communication-conversation-pagination--pages {
  grid-template-columns: 34px minmax(0, 1fr) auto 34px;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  border-top-color: #dce8f5;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.06);
}

.communication-conversation-pagination-nav {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.communication-conversation-pagination-nav.is-icon {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border-color: transparent;
  border-radius: 999px;
  padding: 0;
  color: #58718e;
  background: transparent;
}

.communication-conversation-pagination-nav svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.communication-conversation-pagination-nav:disabled {
  opacity: .45;
  cursor: default;
}

.communication-conversation-pagination-nav.is-icon:disabled {
  opacity: .34;
}

.communication-conversation-pagination-label {
  min-width: 0;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.communication-conversation-pagination--pages .communication-conversation-pagination-label {
  min-width: 36px;
  color: #7b8fa7;
  font-size: 12px;
  font-weight: 700;
}

.communication-conversation-pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.communication-conversation-pagination-page {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 7px;
  color: #58718e;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.communication-conversation-pagination-gap {
  color: #7b8fa7;
  font-size: 12px;
  font-weight: 700;
}

.communication-conversation-pagination-nav.is-icon:hover:not(:disabled),
.communication-conversation-pagination-page:hover,
.communication-conversation-pagination-page.is-active {
  border-color: #bed6f2;
  color: #1f5faa;
  background: #edf5ff;
}

@media (max-width: 760px) {
  .communication-conversation-pagination {
    min-height: 52px;
    padding: 8px;
  }

  .communication-conversation-pagination-nav {
    padding: 0 12px;
  }

  .communication-conversation-pagination--pages {
    min-height: 38px;
    padding: 6px 8px;
  }
}

.communication-conversation-list {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  width: 100%;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

.communication-conversation-list *,
.communication-conversation-list *::before,
.communication-conversation-list *::after {
}

.communication-conversation-list button,
.communication-conversation-list summary,
.communication-conversation-list [tabindex] {
  transform: none !important;
}

.communication-conversation-list button:focus,
.communication-conversation-list button:focus-visible,
.communication-conversation-list button:active,
.communication-conversation-list summary:focus,
.communication-conversation-list summary:focus-visible,
.communication-conversation-list summary:active,
.communication-conversation-list [tabindex]:focus,
.communication-conversation-list [tabindex]:focus-visible,
.communication-conversation-list [tabindex]:active {
  outline: 0;
  transform: none !important;
}

.communication-conversation-list > .empty-state {
  margin: 12px;
}

/* Variant styles intentionally inherit the shared conversation list width. */

[data-tab-panel="email"] .communication-conversation-list--email {
  align-content: start;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  background: #ffffff;
}

[data-tab-panel="email"] .communication-conversation-list--email .communication-conversation-item {
  border-radius: 0;
}

[data-tab-panel="email"] .communication-conversation-list--email .communication-conversation-item + .communication-conversation-item {
  border-top: 1px solid var(--line);
}

/* Variant styles intentionally inherit the shared conversation list width. */

/* Variant styles intentionally inherit the shared conversation list width. */

/* Variant styles intentionally inherit the shared conversation list width. */

[data-tab-panel="chat"].communication-shell {
  min-width: 0;
}

[data-tab-panel="chat"] .admin-chat-layout {
  min-height: 0;
}

[data-tab-panel="email"].communication-shell {
  min-width: 0;
}

[data-tab-panel="email"] .email-layout,
[data-tab-panel="email"] .email-workspace {
  min-height: 0;
}

[data-tab-panel="email"] .email-layout {
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

[data-tab-panel="email"] .email-panel {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  background: transparent;
  gap: 0;
}

[data-tab-panel="email"] .email-workspace {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

[data-tab-panel="email"] .email-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

[data-tab-panel="email"] .email-top-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
}

[data-tab-panel="email"] .email-list {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
}

[data-tab-panel="email"] .email-reader {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 24px 28px;
  background: #f4f8fd;
  box-shadow: none;
}

[data-tab-panel="email"] .email-reader > .communication-detail-empty {
  min-height: 100%;
  margin: -24px -28px;
  width: calc(100% + 56px);
}

[data-tab-panel="email"] .email-list > .empty-state {
  align-self: center;
}

[data-tab-panel="email"] .email-account-panel,
[data-tab-panel="email"] .email-template-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

[data-tab-panel="email"] .email-account-panel[hidden],
[data-tab-panel="email"] .email-template-panel[hidden] {
  display: none;
}

[data-tab-panel="email"] .email-account-panel-head,
[data-tab-panel="email"] .email-template-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

[data-tab-panel="email"] .email-account-panel-head h3,
[data-tab-panel="email"] .email-account-panel-head p,
[data-tab-panel="email"] .email-template-panel-head h3,
[data-tab-panel="email"] .email-template-panel-head p {
  margin: 0;
}

[data-tab-panel="email"] .email-account-form,
[data-tab-panel="email"] .email-template-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
}

[data-tab-panel="email"] .email-account-form[hidden],
[data-tab-panel="email"] .email-template-form[hidden] {
  display: none;
}

[data-tab-panel="email"] .email-account-form .form-grid,
[data-tab-panel="email"] .email-template-form .form-grid {
  gap: 10px;
}

[data-tab-panel="email"] .email-account-form textarea,
[data-tab-panel="email"] .email-template-form textarea {
  min-height: 88px;
}

[data-tab-panel="email"] .email-account-list,
[data-tab-panel="email"] .email-template-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

[data-tab-panel="email"] .email-account-list {
  max-height: 260px;
}

[data-tab-panel="email"] .email-template-list .automation-cart-card {
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
}

[data-tab-panel="email"] .email-template-list .automation-cart-card p {
  margin: 0;
}

@media (max-width: 860px) {
  [data-tab-panel="email"] .email-workspace {
    grid-template-columns: 1fr;
  }

  [data-tab-panel="email"] .email-top-controls {
    align-items: stretch;
    flex-direction: column;
  }

  [data-tab-panel="email"] .email-top-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
}

[data-tab-panel="whatsapp"].communication-shell {
  min-width: 0;
}

[data-tab-panel="whatsapp"] .whatsapp-title-row,
[data-tab-panel="whatsapp"] .whatsapp-workspace {
  min-width: 0;
}

[data-tab-panel="whatsapp"] .whatsapp-workspace {
  align-items: stretch;
  background: #f4f8fd;
}

[data-tab-panel="whatsapp"] .whatsapp-layout > .email-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-tab-panel="whatsapp"] .whatsapp-conversations,
[data-tab-panel="whatsapp"] .admin-chat-panel,
[data-tab-panel="whatsapp"] .admin-chat-thread,
[data-tab-panel="whatsapp"] .whatsapp-empty-thread,
[data-tab-panel="whatsapp"] .communication-conversation-list--whatsapp {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

[data-tab-panel="whatsapp"] .whatsapp-conversations {
  align-self: stretch;
  background: #ffffff;
}

[data-tab-panel="whatsapp"] .admin-chat-panel,
[data-tab-panel="whatsapp"] .admin-chat-thread,
[data-tab-panel="whatsapp"] .whatsapp-empty-thread {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

[data-tab-panel="whatsapp"] .admin-chat-panel.is-whatsapp-empty,
[data-tab-panel="whatsapp"] .admin-chat-panel.is-whatsapp-empty .admin-chat-thread {
  display: grid;
  align-content: stretch;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  background: #f4f8fd;
  overflow: hidden;
}

[data-tab-panel="whatsapp"] .admin-chat-panel.is-whatsapp-empty .whatsapp-empty-thread {
  box-sizing: border-box;
  min-height: 100%;
  padding: 0 22px;
  background: #f4f8fd;
}

[data-tab-panel="telefone"].communication-shell {
  min-width: 0;
}

[data-tab-panel="telefone"] .phone-layout,
[data-tab-panel="telefone"] .phone-call-toolbar {
  min-width: 0;
}

[data-tab-panel="sms"].communication-shell {
  min-width: 0;
}

[data-tab-panel="sms"] .sms-layout,
[data-tab-panel="sms"] .sms-toolbar {
  min-width: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
}

.admin-shell.is-sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
}

.admin-main {
  box-sizing: border-box;
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px;
}

body:has(.admin-shell) {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.admin-topbar {
  grid-column: 2;
  grid-row: 1;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.96);
  backdrop-filter: blur(14px);
}

.admin-topbar-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.admin-topbar-kicker {
  margin-bottom: 2px;
}

.admin-topbar-title {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.admin-brand-header {
  color: var(--text);
}

.admin-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #10233f, #1f3d63);
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.16);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-topbar-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.admin-profile-menu {
  position: relative;
}

.admin-profile-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 32, 56, 0.16);
}

.admin-sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
  padding: 16px 10px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(18, 43, 76, 0.96), rgba(11, 28, 53, 0.98)),
    #10233f;
  color: #ffffff;
}

.admin-sidebar-head {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-width: 0;
  padding-left: 8px;
}

.admin-sidebar .admin-brand-mark {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: none;
  color: #ffffff;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar {
  align-items: center;
  padding-inline: 8px;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-head {
  align-items: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-left: 0;
}

.access-view {
  display: none;
  gap: 20px;
}

.access-view.is-active {
  display: grid;
}

.access-hero {
  align-items: stretch;
  gap: 18px;
}

.access-hero-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

.access-provider-badge {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  justify-content: start;
  min-width: 240px;
  padding: 16px;
}

.access-provider-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.access-provider-badge strong {
  color: var(--ink);
  font-size: 15px;
}

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

.access-kpi,
.access-card,
.access-automation,
.access-integration {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.access-kpi {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.access-kpi span,
.access-kpi small {
  color: var(--muted);
}

.access-kpi span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.access-kpi strong {
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

.access-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.access-card {
  padding: 18px;
}

.access-status-pill {
  align-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 12px;
}

.access-status-pill.is-muted {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
  color: #92400e;
}

.access-monitor-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.access-monitor-row {
  align-items: center;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px;
}

.access-monitor-row div {
  display: grid;
  gap: 4px;
}

.access-monitor-row strong {
  color: var(--ink);
  font-size: 14px;
}

.access-monitor-row span,
.access-monitor-row small {
  color: var(--muted);
  font-size: 12px;
}

.access-automation,
.access-integration {
  padding: 18px;
}

.access-automation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.access-automation-grid article {
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.access-automation-grid span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.access-automation-grid strong {
  color: var(--ink);
}

.access-automation-grid p,
.access-integration li {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.access-integration {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
}

.access-integration ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.access-integration strong {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .access-layout,
  .access-integration {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .access-kpis,
  .access-automation-grid {
    grid-template-columns: 1fr;
  }

  .access-hero {
    align-items: start;
  }

  .access-provider-badge {
    min-width: 0;
    width: 100%;
  }

  .access-monitor-row {
    align-items: start;
    display: grid;
  }
}

/* Bloco: automatizacao. Mover para aqui estilos especificos da view quando forem isolados. */

.blog-settings-view {
  display: none;
  gap: 20px;
}

.blog-settings-view.is-active {
  display: grid;
}

.blog-settings-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

.blog-settings-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.blog-insights-view {
  display: none;
  gap: 20px;
}

.blog-insights-view.is-active {
  display: grid;
}

.blog-insights-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

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

.blog-insights-grid article,
.blog-insights-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.blog-insights-grid span,
.blog-insights-grid small,
.blog-insights-empty {
  color: var(--muted);
}

.blog-insights-grid span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-insights-grid strong {
  color: var(--ink);
  display: block;
  font-size: 32px;
  line-height: 1.1;
  margin: 6px 0;
}

.blog-insights-empty {
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  margin-top: 16px;
  padding: 18px;
}

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

/* Bloco: blogue. Mover para aqui estilos especificos da view quando forem isolados. */

.calendario-view {
  display: none;
  gap: 20px;
}

.calendario-view.is-active {
  display: grid;
}

.calendario-products-section {
  display: grid;
  gap: 12px;
}

.calendario-products-list {
  min-width: 0;
}

.calendario-template-editor[hidden],
[data-calendar-template-home][hidden] {
  display: none;
}

.calendario-template-editor {
  width: 100%;
}

.calendario-products-table .admin-table-toolbar {
  align-items: center;
}

.calendario-products-row {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.32fr) minmax(150px, 0.34fr) minmax(150px, 0.34fr) minmax(140px, 0.3fr) minmax(110px, 0.24fr) auto;
}

.calendario-products-actions-menu .billing-actions-popover {
  width: 240px;
}

@media (max-width: 980px) {
  .calendario-products-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.product-categories-admin-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-categories-admin-list-section {
  display: grid;
  gap: 12px;
}

.product-categories-admin-row {
  grid-template-columns: 54px minmax(180px, 1fr) minmax(95px, 0.18fr) minmax(110px, 0.22fr) minmax(120px, 0.24fr) auto;
}

.product-categories-admin-count {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.product-categories-admin-actions-menu {
  justify-self: end;
}

@media (max-width: 860px) {
  .product-categories-admin-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .product-categories-admin-row-chip,
  .product-categories-admin-row-meta {
    display: none;
  }
}

.checkin-view {
  display: none;
  gap: 20px;
}

.checkin-view.is-active {
  display: grid;
}

.checkin-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

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

.checkin-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.checkin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.checkin-list article {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.checkin-list span {
  color: var(--muted);
}

@media (max-width: 860px) {
  .checkin-columns {
    grid-template-columns: 1fr;
  }
}

[data-view="comunicacao"].is-active {
  contain: inline-size;
  overflow-anchor: none;
  scroll-behavior: auto !important;
}

.admin-shell:has([data-view="comunicacao"].is-active),
.admin-shell:has([data-view="comunicacao"].is-active) .admin-main {
  overflow-anchor: none;
  scroll-behavior: auto !important;
  scrollbar-gutter: stable;
}

.admin-shell:has([data-view="comunicacao"].is-active) .admin-main {
  overflow-y: scroll;
}

.admin-topbar-page-actions [data-section-tabs-nav][data-topbar-source-view="comunicacao"] {
  gap: 6px;
  margin: 0;
  padding: 4px;
  border-color: #d6e6f8;
  background: #f8fbff;
}

.admin-topbar-page-actions [data-section-tabs-nav][data-topbar-source-view="comunicacao"] .section-tab {
  position: relative;
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  color: #5b7698;
  background: #ffffff;
  box-shadow: none;
}

.admin-topbar-page-actions [data-section-tabs-nav][data-topbar-source-view="comunicacao"] .section-tab:hover,
.admin-topbar-page-actions [data-section-tabs-nav][data-topbar-source-view="comunicacao"] .section-tab.is-active {
  border-color: #1f5faa;
  color: #1f5faa;
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(31, 95, 170, 0.16);
}

.admin-topbar-page-actions [data-section-tabs-nav][data-topbar-source-view="comunicacao"] .section-tab-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.admin-topbar-page-actions [data-section-tabs-nav][data-topbar-source-view="comunicacao"] .section-tab-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-topbar-page-actions [data-section-tabs-nav][data-topbar-source-view="comunicacao"] .section-tab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #f8fbff;
  border-radius: 999px;
  color: #ffffff;
  background: #1f5faa;
  box-shadow: 0 5px 12px rgba(31, 95, 170, 0.18);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

[data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) > .whatsapp-layout {
  grid-row: 2;
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

[data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) > .whatsapp-layout > .email-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

[data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) .whatsapp-workspace {
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

[data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) .admin-chat-panel.is-whatsapp-empty,
[data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) .admin-chat-panel.is-whatsapp-empty .admin-chat-thread,
[data-view="comunicacao"] > [data-tab-panel="whatsapp"]:not(.is-section-tab-inactive) .admin-chat-panel.is-whatsapp-empty .communication-detail-empty-host {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

[data-view="comunicacao"] .communication-shell,
[data-view="comunicacao"] .communication-channel-head,
[data-view="comunicacao"] .communication-toolbar,
[data-view="comunicacao"] .communication-channel-workspace,
[data-view="comunicacao"] .communication-channel-list-workspace,
[data-view="comunicacao"] .communication-channel-list,
[data-view="comunicacao"] .communication-channel-detail,
[data-view="comunicacao"] .communication-conversation-list,
[data-view="comunicacao"] .admin-chat-thread,
[data-view="comunicacao"] .email-list,
[data-view="comunicacao"] .email-reader,
[data-view="comunicacao"] .sms-thread,
[data-view="comunicacao"] .phone-call-sidebar-list {
  overflow-anchor: none;
  scrollbar-gutter: stable;
}

[data-view="comunicacao"] .communication-toolbar :where(button, summary, select, input, .admin-button, [role="button"]),
[data-view="comunicacao"] .communication-channel-list :where(button, summary, .admin-button, [role="button"], [tabindex]),
[data-view="comunicacao"] .communication-conversation-item,
[data-view="comunicacao"] .communication-conversation-selection,
[data-view="comunicacao"] .communication-conversation-options {
  transform: none !important;
}

[data-view="comunicacao"] .communication-toolbar :where(button, summary, select, input, .admin-button, [role="button"]):hover,
[data-view="comunicacao"] .communication-toolbar :where(button, summary, select, input, .admin-button, [role="button"]):focus,
[data-view="comunicacao"] .communication-toolbar :where(button, summary, select, input, .admin-button, [role="button"]):focus-visible,
[data-view="comunicacao"] .communication-toolbar :where(button, summary, select, input, .admin-button, [role="button"]):active,
[data-view="comunicacao"] .communication-channel-list :where(button, summary, .admin-button, [role="button"], [tabindex]):hover,
[data-view="comunicacao"] .communication-channel-list :where(button, summary, .admin-button, [role="button"], [tabindex]):focus,
[data-view="comunicacao"] .communication-channel-list :where(button, summary, .admin-button, [role="button"], [tabindex]):focus-visible,
[data-view="comunicacao"] .communication-channel-list :where(button, summary, .admin-button, [role="button"], [tabindex]):active {
  outline: 0 !important;
  transform: none !important;
}

[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field, .whatsapp-conversation-search),
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field, .whatsapp-conversation-search):hover,
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field, .whatsapp-conversation-search):focus,
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field, .whatsapp-conversation-search):focus-within,
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field, .whatsapp-conversation-search):active {
  border-color: var(--line) !important;
  box-shadow: none !important;
  background: #ffffff !important;
  color: var(--muted) !important;
  transform: none !important;
}

[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field-input, .whatsapp-conversation-search input),
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field-input, .whatsapp-conversation-search input):hover,
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field-input, .whatsapp-conversation-search input):focus,
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field-input, .whatsapp-conversation-search input):focus-visible,
[data-view="comunicacao"] .communication-toolbar :where(.admin-search-field-input, .whatsapp-conversation-search input):active {
  outline: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-view="comunicacao"] .communication-toolbar :where(.whatsapp-product-filter, .communication-product-filter),
[data-view="comunicacao"] .communication-toolbar :where(.whatsapp-product-filter select, .communication-product-filter select) {
  contain: layout paint style;
}

[data-view="comunicacao"] .communication-toolbar :where(.whatsapp-product-filter select, .communication-product-filter select),
[data-view="comunicacao"] .communication-toolbar :where(.whatsapp-product-filter select, .communication-product-filter select):hover,
[data-view="comunicacao"] .communication-toolbar :where(.whatsapp-product-filter select, .communication-product-filter select):focus,
[data-view="comunicacao"] .communication-toolbar :where(.whatsapp-product-filter select, .communication-product-filter select):focus-visible,
[data-view="comunicacao"] .communication-toolbar :where(.whatsapp-product-filter select, .communication-product-filter select):active {
  appearance: none;
  -webkit-appearance: none;
  border-color: var(--line) !important;
  box-shadow: none !important;
  background-color: #ffffff !important;
  color: var(--communication-control-color, var(--muted)) !important;
  outline: 0 !important;
  transform: none !important;
}

[data-view="comunicacao"] .communication-channel-list :where(.communication-conversation-item, .whatsapp-conversation-card, .chat-user, .email-message-card, .phone-call-thread),
[data-view="comunicacao"] .communication-channel-list :where(.communication-conversation-item, .whatsapp-conversation-card, .chat-user, .email-message-card, .phone-call-thread):hover {
  transform: none !important;
  box-shadow: none !important;
}

[data-view="comunicacao"] .communication-channel-list :where(.communication-conversation-item:not(.is-active):not(.is-selected), .whatsapp-conversation-card:not(.is-active):not(.is-selected), .chat-user:not(.is-active), .email-message-card:not(.is-active), .phone-call-thread:not(.is-active)):hover {
  background: #ffffff !important;
}

[data-view="comunicacao"] .communication-channel-list :where(.communication-conversation-checkbox, .whatsapp-conversation-checkbox) {
  transform: none !important;
  box-shadow: none !important;
}

.settings-title-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.settings-support-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.settings-help-tooltip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  background: #f4f8fe;
  color: #13366f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  flex: 0 0 auto;
}

.settings-help-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: min(300px, 72vw);
  padding: 9px 11px;
  border-radius: 8px;
  background: #071b33;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 26px rgba(7, 27, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.settings-help-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 21;
  width: 10px;
  height: 10px;
  background: #071b33;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.settings-help-tooltip:hover::after,
.settings-help-tooltip:focus-visible::after,
.settings-help-tooltip:hover::before,
.settings-help-tooltip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.content-pages-card-header {
  align-items: center;
}

.content-pages-card-header h3,
.content-header-card-header h3 {
  margin: 0;
}

.content-header-card-controls,
.content-header-card-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.content-header-card-header {
  align-items: center;
  gap: 16px;
}

.content-header-card-controls {
  justify-content: flex-end;
}

.content-header-card-tabs {
  margin: 0;
  flex-wrap: wrap;
}

.content-logo-card-head {
  margin-top: 18px;
}

.content-header-tab-card,
.content-announcement-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.content-header-tab-card > .product-form-head,
.content-announcement-card-header {
  align-items: center;
}

.content-header-list,
.content-announcement-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.content-header-menu-card {
  gap: 14px;
}

.content-header-menu-advanced[hidden] {
  display: none;
}

.content-header-menu-advanced {
  margin-top: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-header-menu-advanced > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-900);
}

.content-header-menu-table .admin-table-body,
.content-header-simple-menu-table .admin-table-body,
.content-header-cta-table .admin-table-body,
.content-announcements-table .admin-table-body {
  gap: 10px;
}

.content-header-list-row {
  grid-template-columns: minmax(220px, 1fr) minmax(96px, 0.22fr) minmax(160px, 0.38fr) auto;
  align-items: center;
}

.content-logo-row,
.content-logo-row .content-logo-row-summary {
  min-width: 0;
}

.content-logo-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(96px, 0.22fr) minmax(160px, 0.38fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.content-logo-row:first-of-type {
  border-top: 1px solid var(--line);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.content-logo-row:last-of-type {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.content-logo-row .content-logo-row-summary {
  display: contents;
}

.content-logo-row .collapsible-row-body {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.content-announcement-row {
  grid-template-columns: minmax(220px, 1fr) minmax(96px, 0.2fr) minmax(150px, 0.32fr) minmax(110px, 0.24fr) auto;
}

.content-header-list-row .admin-table-cell {
  align-self: center;
}

.content-header-list-row .admin-list-item-actions,
.content-header-list-row .admin-table-actions-cell {
  justify-self: end;
}

.content-announcement-row {
  align-items: center;
}

.content-header-list-row .collapsible-row-body,
.content-announcement-row .content-announcement-editor {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.content-header-editor-mode > .admin-table-toolbar,
[data-logo-content-form].content-header-editor-mode > .content-logo-card-head {
  display: none;
}

.content-header-editor-mode .content-header-list-row:not(.is-header-editor-active),
.content-header-editor-mode .content-logo-row:not(.is-header-editor-active) {
  display: none;
}

.content-header-list-row.is-header-editor-active,
.content-logo-row.is-header-editor-active {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.content-header-list-row.is-header-editor-active > :not(.collapsible-row-body),
.content-logo-row.is-header-editor-active > .content-logo-row-summary {
  display: none;
}

.content-header-list-row.is-header-editor-active .collapsible-row-body,
.content-logo-row.is-header-editor-active .collapsible-row-body,
.content-announcement-row.is-header-editor-active .content-announcement-editor,
.content-header-cta-row.is-header-editor-active .content-header-cta-editor {
  display: block;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.content-header-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.content-header-editor-head h3,
.content-header-editor-head p {
  margin: 0;
}

.content-header-editor-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.content-header-cta-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

[data-header-content-form] > .form-actions {
  display: none;
}

.content-header-cta-row {
  align-items: center;
}

.content-header-cta-row .content-header-cta-editor {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.content-pages-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

[data-pages-list].admin-table,
[data-pages-list].admin-table-list {
  display: grid;
  gap: 10px;
}

.content-page-list-row {
  grid-template-columns: auto minmax(220px, 1fr) minmax(160px, 0.6fr) auto;
}

.content-page-avatar {
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  object-fit: cover;
}

.content-page-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-page-create-head {
  align-items: center;
}

.content-page-create-head h3 {
  margin: 0;
}

.product-page-section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f8fbff;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-page-section-tabs .admin-section-tab {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.product-page-section-tabs .admin-section-tab:hover,
.product-page-section-tabs .admin-section-tab:focus-visible,
.product-page-section-tabs .admin-section-tab.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: #edf5ff;
}

.product-page-section-tabs .admin-section-tab:focus-visible {
  outline: 2px solid rgba(29, 96, 184, 0.24);
  outline-offset: 2px;
}

.product-page-section-editor {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.product-page-section-editor[hidden] {
  display: none;
}

.product-page-section-editor .collapsible-row-summary {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .content-pages-card-header,
  .content-header-card-header,
  .content-header-tab-card > .product-form-head,
  .content-announcement-card-header,
  .content-header-card-controls,
  .content-header-card-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .content-page-list-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .content-header-list-row,
  .content-announcement-row,
  .content-logo-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .content-header-list-row .admin-table-chip-cell,
  .content-header-list-row .admin-table-meta-cell,
  .content-logo-row .admin-table-chip-cell,
  .content-logo-row .admin-table-meta-cell {
    display: none;
  }

  .content-header-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-page-section-tabs {
    flex-wrap: nowrap;
    margin-right: -4px;
    margin-left: -4px;
  }
}

.contracts-admin-view {
  display: grid;
  gap: 16px;
}

.contracts-admin-list-section {
  display: grid;
  gap: 12px;
}

.contracts-admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contracts-admin-list-head h3 {
  margin: 0;
  color: #071a36;
  font-size: 1.05rem;
}

.contracts-admin-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.contracts-admin-row {
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 0.24fr) minmax(160px, 0.36fr) minmax(90px, 0.18fr) auto;
}

.contracts-admin-provider-row {
  grid-template-columns: 54px minmax(180px, 1fr) minmax(110px, 0.24fr) auto;
}

.contracts-admin-template-row {
  grid-template-columns: minmax(180px, 1fr) minmax(100px, 0.2fr) minmax(100px, 0.2fr) minmax(160px, 0.36fr) auto;
}

.contracts-admin-actions-menu {
  justify-self: end;
}

.contracts-admin-actions-menu .billing-actions-popover {
  width: 240px;
}

@media (max-width: 920px) {
  .contracts-admin-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .contracts-admin-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contracts-admin-provider-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .contracts-admin-row-chip,
  .contracts-admin-row-meta {
    display: none;
  }
}

/* Bloco: faturacao. Mover para aqui estilos especificos da view quando forem isolados. */

.financeiro-view {
  display: none;
  gap: 20px;
}

.financeiro-view.is-active {
  display: grid;
}

.financeiro-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 780px;
}

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

.financeiro-kpis article,
.financeiro-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.financeiro-kpis span,
.financeiro-kpis small,
.financeiro-table span {
  color: var(--muted);
}

.financeiro-kpis strong {
  color: var(--ink);
  display: block;
  font-size: 30px;
  line-height: 1.1;
  margin: 6px 0;
}

.financeiro-table {
  display: grid;
  margin-top: 16px;
  overflow-x: auto;
}

.financeiro-table > div {
  display: grid;
  gap: 12px;
  grid-template-columns: 130px minmax(220px, 1fr) 120px 160px;
  min-width: 720px;
  padding: 12px;
}

.financeiro-table > div:first-child {
  background: rgba(248, 250, 252, 0.9);
  border-radius: 8px;
}

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

.forms-admin-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.forms-admin-head {
  align-items: center;
}

.forms-admin-list-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.forms-admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forms-admin-list-head h3 {
  margin: 0;
  color: #071a36;
  font-size: 1.05rem;
}

.forms-admin-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.forms-admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.38fr) minmax(160px, 0.32fr) auto;
  align-items: center;
  gap: 10px;
}

.forms-admin-search,
.forms-admin-filter {
  display: grid;
  min-width: 0;
}

.forms-admin-search input,
.forms-admin-filter select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
}

.forms-admin-search input::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.forms-admin-search input:focus,
.forms-admin-filter select:focus {
  border-color: #8db8ea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 95, 170, 0.1);
}

.forms-admin-row {
  grid-template-columns: 54px minmax(180px, 1fr) minmax(140px, 0.45fr) minmax(150px, 0.45fr) auto;
}

.forms-admin-count {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.forms-admin-actions-menu {
  justify-self: end;
}

.forms-admin-actions-menu .billing-actions-popover {
  width: 220px;
}

.forms-admin-builder {
  margin-top: 0;
}

.forms-admin-builder[hidden] {
  display: none;
}

.forms-admin-view.is-builder-open .forms-admin-head,
.forms-admin-view.is-builder-open .forms-admin-list-section {
  display: none;
}

.forms-admin-view.is-builder-open {
  gap: 0;
}

.forms-admin-builder-head {
  align-items: center;
}

@media (max-width: 860px) {
  .forms-admin-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .forms-admin-filters {
    grid-template-columns: 1fr;
  }

  .forms-admin-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .forms-admin-row-chip,
  .forms-admin-row-meta {
    display: none;
  }
}

/* Bloco: ia. Mover para aqui estilos especificos da view quando forem isolados. */

.incidentes-view {
  display: none;
  gap: 20px;
}

.incidentes-view.is-active {
  display: grid;
}

.incidentes-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

.incidentes-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.incidentes-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.incidentes-empty {
  background: rgba(254, 242, 242, 0.62);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: var(--muted);
  margin-top: 16px;
  padding: 18px;
}

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

/* Bloco: inicio. Mover para aqui estilos especificos da view quando forem isolados. */

/* Bloco: insights. Mover para aqui estilos especificos da view quando forem isolados. */

.limpeza-view {
  display: none;
  gap: 20px;
}

.limpeza-view.is-active {
  display: grid;
}

.limpeza-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

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

.limpeza-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
}

.limpeza-card span,
.limpeza-card small {
  color: var(--muted);
  line-height: 1.55;
}

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

@media (max-width: 640px) {
  .limpeza-board {
    grid-template-columns: 1fr;
  }
}

.manutencao-view {
  display: none;
  gap: 20px;
}

.manutencao-view.is-active {
  display: grid;
}

.manutencao-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

.manutencao-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.manutencao-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.manutencao-empty {
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  color: var(--muted);
  margin-top: 16px;
  padding: 18px;
}

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

.payments-admin-view {
  display: grid;
  gap: 16px;
}

.payments-admin-form[hidden],
.payments-admin-list-section[hidden] {
  display: none;
}

.payments-admin-list-section {
  display: grid;
  gap: 14px;
}

.payments-admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.payments-admin-row {
  grid-template-columns: 54px minmax(190px, 1fr) minmax(120px, 0.24fr) minmax(140px, 0.28fr) minmax(130px, 0.26fr) minmax(130px, 0.26fr) auto;
}

.payments-admin-config-row {
  grid-template-columns: 54px minmax(190px, 1fr) minmax(110px, 0.22fr) minmax(180px, 0.36fr) minmax(180px, 0.36fr) auto;
}

.payments-admin-provider-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  background: #eef6ff;
  color: #0f3d75;
  font-weight: 900;
}

.payments-admin-row-meta {
  color: var(--muted);
  font-weight: 800;
}

.payments-admin-actions-menu {
  justify-self: end;
}

.payments-admin-options-menu {
  position: relative;
  justify-self: end;
}

.payments-admin-options-menu .whatsapp-actions-popover {
  width: 210px;
}

@media (max-width: 980px) {
  .payments-admin-row,
  .payments-admin-config-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .payments-admin-row-meta,
  .payments-admin-row .admin-table-chip-cell,
  .payments-admin-config-row .admin-table-chip-cell {
    display: none;
  }
}

@media (max-width: 680px) {
  .payments-admin-head-actions {
    justify-content: stretch;
  }
}

[data-view="perfil"] {
  display: none;
  gap: 22px;
}

[data-view="perfil"].is-active {
  display: grid;
}

.profile-settings-hero {
  align-items: start;
  border: 1px solid rgba(220, 229, 239, 0.88);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 32px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    #ffffff;
  box-shadow: 0 22px 55px rgba(20, 32, 51, 0.08);
}

.profile-settings-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1.05;
}

.profile-settings-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-settings-badge {
  display: grid;
  gap: 4px;
  min-width: 180px;
  border: 1px solid #dce7f3;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f8fbff;
}

.profile-settings-badge span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.profile-settings-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 32, 51, 0.06);
}

.profile-settings-panel-primary {
  grid-row: span 2;
  align-content: start;
}

.profile-settings-panel h3 {
  margin-bottom: 8px;
}

.profile-settings-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.profile-market-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.profile-market-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #fbfdff;
  font-weight: 850;
}

.profile-market-field select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(25, 87, 166, 0.14);
  outline-offset: 1px;
}

.profile-settings-note {
  border: 1px solid #dce7f3;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: #f8fbff;
  line-height: 1.5;
}

.profile-settings-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-settings-list li {
  display: grid;
  gap: 4px;
  border-top: 1px solid #edf2f7;
  padding-top: 12px;
}

.profile-settings-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-settings-list span {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-settings-panel-primary {
    grid-row: auto;
  }
}

.people-admin-row {
  grid-template-columns: 54px minmax(230px, 1fr) minmax(96px, 0.18fr) minmax(140px, 0.26fr) minmax(110px, 0.2fr) minmax(92px, 0.16fr) 46px;
  align-items: center;
  min-height: 72px;
}

.people-admin-row .admin-table-cell,
.people-admin-row-main,
.people-admin-row-meta,
.people-admin-row-chip {
  min-width: 0;
}

.people-admin-row-main .admin-list-item-title-row,
.people-admin-row-main .admin-list-item-title-text,
.people-admin-row-main > span,
.people-admin-row-meta,
.people-admin-row-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-admin-row-main .admin-list-item-title-row {
  display: block;
}

.people-admin-row-chip {
  justify-self: start;
}

.people-admin-row-actions {
  justify-self: end;
  width: 46px;
}

.people-admin-row .people-admin-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--conversation-avatar-bg, var(--person-avatar-color, #dbeafe));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  object-fit: cover;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
}

@media (max-width: 1180px) {
  .people-admin-row {
    grid-template-columns: 50px minmax(220px, 1fr) minmax(96px, auto) minmax(120px, 0.25fr) 46px;
  }

  .people-admin-row-meta:nth-of-type(5),
  .people-admin-row-meta:nth-of-type(6) {
    display: none;
  }
}

@media (max-width: 720px) {
  .people-admin-row {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .people-admin-row-chip,
  .people-admin-row-meta {
    display: none;
  }
}

.products-admin-list-section {
  display: grid;
  gap: 12px;
}

.products-admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.products-admin-list-head h3 {
  margin: 0;
  color: #071a36;
  font-size: 1.05rem;
}

.products-admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.28fr) minmax(170px, 0.34fr) minmax(170px, 0.34fr) auto;
  align-items: center;
  gap: 10px;
}

.products-admin-search,
.products-admin-filter {
  display: grid;
  min-width: 0;
}

.products-admin-search input,
.products-admin-filter select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
}

.products-admin-search input::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.products-admin-search input:focus,
.products-admin-filter select:focus {
  border-color: #8db8ea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 95, 170, 0.1);
}

.products-admin-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.products-admin-row {
  grid-template-columns: 54px minmax(180px, 1fr) minmax(140px, 0.34fr) minmax(150px, 0.34fr) minmax(120px, 0.28fr) auto;
}

.products-admin-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.products-admin-thumb.product-admin-image-placeholder {
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  color: #17324f;
  font-weight: 800;
}

.products-admin-actions-menu {
  justify-self: end;
}

.products-admin-actions-menu .billing-actions-popover {
  width: 220px;
}

.products-admin-title-link {
  max-width: 100%;
}

.product-detail-page {
  display: grid;
  gap: 18px;
}

.product-detail-page[hidden] {
  display: none;
}

.product-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-detail-back,
.product-detail-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-detail-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.product-detail-hero > img,
.product-detail-image-placeholder {
  width: 100%;
  min-height: 260px;
  border-radius: 8px;
  object-fit: cover;
}

.product-detail-image-placeholder {
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  color: #17324f;
  font-size: 3rem;
  font-weight: 900;
}

.product-detail-hero h3 {
  margin: 0;
  color: #071a36;
  font-size: 1.75rem;
  line-height: 1.15;
}

.product-detail-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0;
  color: #071a36;
  font-size: 1.3rem;
  font-weight: 900;
}

.product-detail-price span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.product-detail-info {
  min-width: 0;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
}

.product-detail-info dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-detail-info dd {
  margin: 0;
  color: #071a36;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-detail-muted {
  color: #7b8797;
  font-weight: 700;
}

.product-detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-detail-content.has-product-detail-tabs {
  grid-template-columns: 1fr;
}

.product-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 0;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  padding: 8px;
  background: #f7faff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.product-detail-tab {
  appearance: none;
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.product-detail-tab:hover,
.product-detail-tab:focus-visible,
.product-detail-tab.is-active {
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(31, 95, 170, 0.08), inset 0 0 0 1px rgba(31, 75, 153, 0.18);
}

.product-detail-tab:focus-visible {
  outline: 2px solid rgba(29, 96, 184, 0.24);
  outline-offset: 2px;
}

.product-detail-tab.is-active {
  color: #071a36;
}

.product-detail-tab:focus:not(:focus-visible) {
  outline: none;
}

.product-detail-section[hidden] {
  display: none;
}

.product-detail-section {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.product-detail-section h4 {
  margin: 0;
  color: #071a36;
  font-size: 1rem;
}

.product-detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #17324f;
}

.product-detail-stack {
  display: grid;
  gap: 10px;
}

.product-detail-stack article {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #edf2f8;
  padding-bottom: 10px;
}

.product-detail-stack article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-detail-stack strong {
  color: #071a36;
}

.product-detail-stack span,
.product-detail-stack small {
  color: var(--muted);
  line-height: 1.45;
}

.product-detail-gallery-section {
  grid-column: 1 / -1;
}

.product-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.product-detail-link {
  color: #0f3d75;
  font-weight: 800;
}

.product-detail-calendar-head {
  display: grid;
  gap: 12px;
}

.product-detail-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-detail-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.product-detail-calendar-legend i {
  width: 14px;
  height: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
}

.product-detail-calendar-legend .is-free {
  background: #e7f8ee;
  border-color: #b7e5c9;
}

.product-detail-calendar-legend .is-occupied {
  background: #ffe5df;
  border-color: #f2b4a8;
}

.product-detail-calendar-legend .is-unavailable {
  background: #edf2f8;
  border-color: #d4deeb;
}

.product-detail-calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.product-detail-calendar-month {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.product-detail-calendar-month h5 {
  margin: 0;
  color: #071a36;
  font-size: 1rem;
}

.product-detail-calendar-weekdays,
.product-detail-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.product-detail-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.product-detail-calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #064e3b;
  background: #e7f8ee;
  font-size: 0.9rem;
  font-weight: 900;
}

.product-detail-calendar-day.is-empty {
  visibility: hidden;
}

.product-detail-calendar-day.is-occupied {
  color: #9f1d12;
  background: #ffe5df;
}

.product-detail-calendar-day.is-unavailable {
  color: #5f6f84;
  background: #edf2f8;
}

.product-detail-calendar-day.is-today {
  border-color: #0f766e;
  box-shadow: inset 0 0 0 1px #0f766e;
}

.product-detail-calendar-month-reservations {
  min-height: 42px;
}

.product-detail-calendar-avatars {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  padding: 6px 8px;
  background: #f8fbff;
}

.product-detail-day-avatars {
  position: absolute;
  top: -8px;
  right: 4px;
  z-index: 2;
  display: inline-flex;
}

.product-reservation-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0;
  color: #071a36;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.product-reservation-avatar:not(button) {
  cursor: default;
}

.product-reservation-avatar-image {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: var(--reservation-avatar-color, #0f766e);
  box-shadow: 0 6px 14px rgba(16, 32, 56, 0.16);
}

.product-reservation-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-reservation-avatar-image span {
  font-size: 0.68rem;
  line-height: 1;
}

.product-reservation-avatar-badge {
  border: 1px solid #dce6f2;
  padding: 4px 10px 4px 4px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 32, 56, 0.08);
}

.product-reservation-avatar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-form-tabs {
  margin: 6px 0 18px;
  overflow-x: auto;
}

.product-site-tabs {
  margin: 0 0 16px;
  overflow-x: auto;
}

.product-form-panels {
  min-width: 0;
}

.product-form-panel {
  min-width: 0;
}

.product-form-panel[hidden],
.product-site-panel[hidden] {
  display: none;
}

.product-site-panels,
.product-site-panel {
  min-width: 0;
}

.product-general-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.product-general-grid > .admin-form-field {
  grid-column: span 2;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
}

.product-general-grid > .admin-form-field-full,
.product-general-grid > .admin-form-field:has([data-field-width="full"]) {
  grid-column: 1 / -1;
}

.product-general-grid > .product-general-description,
.product-general-grid > .product-general-image {
  grid-column: 1 / -1;
  align-self: stretch;
}

.product-general-description {
  min-height: 0;
}

.product-general-description .admin-form-field-control-with-ai {
  min-height: 0;
}

.product-general-description .admin-form-control-textarea {
  width: 100%;
  min-height: 92px;
  max-height: 120px;
}

.product-general-image.admin-form-field-media-manager,
.admin-form-field-media-hero.admin-form-field-media-manager {
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

.product-general-image.admin-form-field-media-manager {
  min-height: 336px;
}

.product-general-image .admin-media-manager-preview,
.product-general-image .admin-media-manager-preview:empty::before {
  min-height: 148px;
}

.product-general-image .admin-media-manager-body {
  gap: 10px;
  padding: 10px;
  min-height: 0;
}

.product-general-image .admin-media-manager-controls {
  gap: 7px;
}

.product-general-image .admin-media-manager-control {
  gap: 4px;
}

.product-general-image .admin-image-upload-control,
.product-general-image .admin-image-upload-button {
  min-height: 38px;
}

.product-general-image .admin-media-manager-ai-prompt textarea {
  min-height: 54px;
}

.product-gallery-source-field {
  display: none;
}

.product-gallery-upload-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-gallery-upload-card .product-gallery-upload-control,
.product-gallery-upload-card .admin-image-upload-button {
  width: 100%;
}

.product-gallery-admin-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.product-gallery-admin-preview[hidden] {
  display: none;
}

.product-gallery-admin-preview figure {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 95, 170, 0.14);
  border-radius: 12px;
  background: #ffffff;
  cursor: grab;
  box-shadow: 0 10px 24px rgba(19, 54, 111, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-gallery-admin-preview figure:active {
  cursor: grabbing;
}

.product-gallery-admin-preview figure.is-dragging {
  opacity: 0.55;
}

.product-gallery-admin-preview figure.is-drop-target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 95, 170, 0.14);
  transform: translateY(-2px);
}

.product-gallery-admin-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-admin-preview figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 2px;
  overflow: hidden;
  padding: 32px 10px 10px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(5, 14, 30, 0), rgba(5, 14, 30, 0.72));
  font-size: 0.75rem;
  font-weight: 900;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.product-gallery-admin-preview figcaption small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-gallery-remove-button,
.product-gallery-edit-button {
  position: absolute;
  top: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(13, 27, 49, 0.78);
  cursor: pointer;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.product-gallery-remove-button {
  right: 8px;
}

.product-gallery-edit-button {
  right: 44px;
  background: rgba(31, 95, 170, 0.84);
}

.product-gallery-admin-preview figure:hover .product-gallery-remove-button,
.product-gallery-admin-preview figure:focus-within .product-gallery-remove-button,
.product-gallery-admin-preview figure:hover .product-gallery-edit-button,
.product-gallery-admin-preview figure:focus-within .product-gallery-edit-button {
  opacity: 1;
  transform: translateY(0);
}

.product-gallery-remove-button:hover,
.product-gallery-remove-button:focus-visible {
  background: #c62828;
}

.product-gallery-edit-button:hover,
.product-gallery-edit-button:focus-visible {
  background: var(--brand);
}

.product-gallery-add-card {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  min-height: 0;
  place-items: center;
  border: 1px dashed rgba(31, 95, 170, 0.42);
  border-radius: 12px;
  color: var(--brand);
  background: #f8fbff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(19, 54, 111, 0.06);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.product-gallery-add-card span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.product-gallery-add-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.product-gallery-add-card:hover,
.product-gallery-add-card:focus-within {
  border-color: var(--brand);
  background: #eef5ff;
  transform: translateY(-2px);
}

.product-gallery-text-modal {
  background: rgba(8, 22, 42, 0.42);
}

.product-gallery-text-modal-panel {
  --admin-modal-width: 560px;
}

.product-gallery-text-modal-title,
.product-gallery-text-modal-panel .admin-modal-head > div {
  display: grid;
  gap: 3px;
}

.product-gallery-text-modal-panel .admin-kicker {
  margin: 0;
}

.product-gallery-text-form {
  display: grid;
  gap: 14px;
}

.product-gallery-text-form .admin-form-control-textarea {
  min-height: 112px;
  resize: vertical;
}

@media (max-width: 760px) {
  .product-gallery-upload-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .product-gallery-upload-card .product-gallery-upload-control {
    max-width: none;
  }
}

@media (max-width: 1120px) {
  .product-general-grid > .admin-form-field {
    grid-column: span 3;
  }

  .product-general-grid > .admin-form-field-full,
  .product-general-grid > .admin-form-field:has([data-field-width="full"]),
  .product-general-grid > .product-general-description,
  .product-general-grid > .product-general-image {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .products-admin-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .products-admin-filters {
    grid-template-columns: 1fr 1fr;
  }

  .products-admin-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .product-detail-hero,
  .product-detail-content {
    grid-template-columns: 1fr;
  }

  .product-detail-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .products-admin-row-meta,
  .products-admin-row-chip {
    display: none;
  }
}

@media (max-width: 680px) {
  .products-admin-filters {
    grid-template-columns: 1fr;
  }

  .product-general-grid {
    grid-template-columns: 1fr;
  }

  .product-general-grid > .admin-form-field {
    grid-column: 1 / -1;
  }

  .product-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .product-detail-toolbar-actions {
    justify-content: space-between;
  }

  .product-detail-gallery {
    grid-template-columns: 1fr;
  }
}

.owners-admin-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.owners-admin-list-section,
.owners-admin-list {
  display: grid;
  gap: 12px;
}

.owners-admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.owners-admin-list-head h3 {
  margin: 0;
  color: #071a36;
  font-size: 1.05rem;
}

.owners-admin-row {
  grid-template-columns: 54px minmax(180px, 1fr) minmax(140px, 0.36fr) minmax(150px, 0.38fr) minmax(120px, 0.28fr) auto;
}

.owners-admin-actions-menu {
  justify-self: end;
}

.owners-admin-actions-menu .billing-actions-popover {
  width: 220px;
}

@media (max-width: 860px) {
  .owners-admin-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .owners-admin-row-meta,
  .owners-admin-row-chip {
    display: none;
  }
}

/* Bloco: recursos. Mover para aqui estilos especificos da view quando forem isolados. */

.relatorios-view {
  display: none;
  gap: 20px;
}

.relatorios-view.is-active {
  display: grid;
}

.relatorios-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

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

.relatorios-grid article {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
}

.relatorios-grid span,
.relatorios-grid small {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .relatorios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .relatorios-grid {
    grid-template-columns: 1fr;
  }
}

.reputacao-view {
  display: none;
  gap: 20px;
}

.reputacao-view.is-active {
  display: grid;
}

.reputacao-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

.reputacao-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
}

.reputacao-score,
.reputacao-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.reputacao-score {
  display: grid;
  gap: 10px;
}

.reputacao-score span,
.reputacao-score small,
.reputacao-empty {
  color: var(--muted);
}

.reputacao-score strong {
  color: var(--ink);
  font-size: 48px;
  line-height: 1;
}

.reputacao-empty {
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  margin-top: 16px;
  padding: 18px;
}

@media (max-width: 860px) {
  .reputacao-layout {
    grid-template-columns: 1fr;
  }
}

.reservas-view {
  display: none;
  gap: 20px;
}

.reservas-view.is-active {
  display: grid;
}

.reservas-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

.reservas-kpis,
.reservas-layout {
  display: grid;
  gap: 14px;
}

.reservas-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reservas-kpis article,
.reservas-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.reservas-kpis span,
.reservas-kpis small,
.reservas-list span {
  color: var(--muted);
}

.reservas-kpis span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reservas-kpis strong {
  color: var(--ink);
  display: block;
  font-size: 32px;
  line-height: 1.1;
  margin: 6px 0;
}

.reservas-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.reservas-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.reservas-list article {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

@media (max-width: 980px) {
  .reservas-kpis,
  .reservas-layout {
    grid-template-columns: 1fr;
  }
}

/* Bloco: utilizadores. Mover para aqui estilos especificos da view quando forem isolados. */

.workflows-admin-row {
  grid-template-columns: 54px minmax(220px, 1fr) minmax(74px, 0.16fr) minmax(150px, 0.34fr) minmax(130px, 0.28fr) minmax(82px, 0.16fr) 46px;
  align-items: center;
}

.workflows-admin-row .admin-table-cell,
.workflows-admin-row .products-admin-row-meta,
.workflows-admin-row .products-admin-row-chip {
  min-width: 0;
}

.workflows-admin-row .products-admin-row-meta,
.workflows-admin-row .products-admin-row-chip,
.workflows-admin-row .products-admin-row-actions {
  white-space: nowrap;
}

.workflows-admin-row .products-admin-row-main,
.workflows-admin-row .products-admin-row-main span,
.workflows-admin-row .products-admin-title-link {
  min-width: 0;
}

.workflows-admin-row .products-admin-row-main > span,
.workflows-admin-row .products-admin-row-meta {
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflows-admin-row .products-admin-title-link > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflows-admin-row .products-admin-row-actions {
  justify-self: end;
  width: 46px;
}

.workflows-admin-actions-menu {
  justify-self: end;
}

@media (max-width: 1100px) {
  .workflows-admin-row {
    grid-template-columns: 42px minmax(0, 1fr) minmax(74px, auto) 46px;
  }

  .workflows-admin-row .products-admin-row-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  .workflows-admin-row {
    grid-template-columns: 42px minmax(0, 1fr) 46px;
  }

  .workflows-admin-row .products-admin-row-chip {
    display: none;
  }
}

*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

