:root {
  --ink: #0b1a34;
  --muted: #587095;
  --line: #c9d4e3;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --accent: #12274e;
  --accent-strong: #0d1f40;
  --accent-soft: #e8eef9;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --app-page-background:
    radial-gradient(1100px 520px at -15% -5%, #dce8fb 0%, rgba(220, 232, 251, 0) 70%),
    radial-gradient(860px 420px at 112% 12%, #e8f0ff 0%, rgba(232, 240, 255, 0) 68%),
    linear-gradient(145deg, #ebf1f8 0%, #f8faff 46%, #edf3fb 100%);
  --app-panel-background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  --app-card-glow: radial-gradient(circle, rgba(209, 224, 248, 0.55), rgba(209, 224, 248, 0));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--app-page-background);
}

body.app-mobile-layer-active {
  overscroll-behavior: contain;
}

body.app-bottom-sheet-open {
  overflow: hidden;
}

.app-bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.app-bottom-sheet.hidden {
  display: none;
}

.app-bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.app-bottom-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(84dvh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e2f0;
  border-radius: 16px 16px 0 0;
  background: var(--app-page-background);
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.24);
}

.app-bottom-sheet-handle {
  width: 42px;
  height: 4px;
  margin: 10px auto 2px;
  border-radius: 999px;
  background: #cbd5e1;
}

.app-bottom-sheet-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  border-bottom: 1px solid #d3dfee;
  background: var(--app-panel-background);
  padding: 0.85rem 1rem 0.9rem;
  box-shadow: 0 10px 24px rgba(12, 33, 64, 0.06);
}

.app-bottom-sheet-head::after {
  content: "";
  position: absolute;
  top: -62px;
  right: -52px;
  width: 145px;
  height: 145px;
  border-radius: 999px;
  background: var(--app-card-glow);
  pointer-events: none;
}

.app-bottom-sheet-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.app-bottom-sheet-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.app-bottom-sheet-subtitle {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.app-bottom-sheet-close {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(12, 33, 64, 0.08);
}

.app-bottom-sheet-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--app-page-background);
  padding: 0.9rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.app-bottom-sheet-mounted-content {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.app-bottom-sheet-body .row-actions-dropdown {
  position: static;
  width: 100%;
  min-width: 0;
  border: 0;
  box-shadow: none;
}

.app-bottom-sheet-action-list,
.app-bottom-sheet-mounted-content > .flex,
.app-bottom-sheet-body .row-actions-dropdown {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.55rem !important;
  justify-items: stretch !important;
}

.app-bottom-sheet-body form {
  width: 100%;
}

.app-bottom-sheet-action,
.app-bottom-sheet-body .row-actions-item,
.app-bottom-sheet-body .btn-ghost,
.app-bottom-sheet-body .btn-dark,
.app-bottom-sheet-body .btn-primary,
.app-bottom-sheet-body .btn-success,
.app-bottom-sheet-body .btn-warning,
.app-bottom-sheet-body .app-soft-danger-btn,
.app-bottom-sheet-body form > button {
  display: flex !important;
  position: relative;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #ffffff;
  color: #173762;
  padding: 0.75rem 0.9rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
}

.app-bottom-sheet-action::after,
.app-bottom-sheet-body a.btn-ghost::after,
.app-bottom-sheet-body a.btn-dark::after,
.app-bottom-sheet-body a.btn-primary::after,
.app-bottom-sheet-body a.btn-success::after,
.app-bottom-sheet-body a.btn-warning::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  color: #94a3b8;
  font-weight: 900;
  pointer-events: none;
}

.app-bottom-sheet-action-danger,
.app-bottom-sheet-body .row-actions-danger,
.app-bottom-sheet-body .app-soft-danger-btn,
.app-bottom-sheet-body .btn-danger {
  border-color: #fecaca !important;
  background: #fff5f5 !important;
  color: #b42318 !important;
}

.app-bottom-sheet-action-success {
  border-color: #b8efd3 !important;
  background: #ecfdf3 !important;
  color: #076c49 !important;
}

.app-bottom-sheet-action-primary {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4f9a !important;
}

.app-bottom-sheet-action-warning {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

.app-bottom-sheet-action-dark {
  border-color: #2a456f !important;
  background: linear-gradient(180deg, #263f65 0%, #152845 100%) !important;
  color: #ffffff !important;
}

.app-bottom-sheet-action[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.app-bottom-sheet-action-success::after {
  color: #0f8a5f;
}

.app-bottom-sheet-action-primary::after {
  color: #2563eb;
}

.app-bottom-sheet-action-warning::after {
  color: #b45309;
}

.app-bottom-sheet-action-dark::after {
  color: rgba(255, 255, 255, 0.76);
}

.app-bottom-sheet-action[disabled]::after {
  color: #94a3b8;
}

.app-topbar {
  border-color: #d8e2f0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 34px rgba(13, 31, 64, 0.09);
}

.app-topbar-row-main {
  border-bottom: 1px solid #dbe6f3;
}

.app-topbar-left {
  min-width: 0;
  flex: 0 0 auto;
}

.app-brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  height: 3.2rem;
  min-width: 0;
  padding: 0 0.4rem 0 0.1rem;
  border-radius: 8px;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

@media (min-width: 1024px) {
  .app-topbar:not(.app-topbar-kiosk) .app-topbar-row-main {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    column-gap: 1rem;
  }

  .app-topbar:not(.app-topbar-kiosk) .app-topbar-left {
    justify-self: start;
  }

  .app-topbar:not(.app-topbar-kiosk) .app-main-nav {
    width: 100%;
    justify-self: center;
  }

  .app-topbar:not(.app-topbar-kiosk) .app-top-actions {
    justify-self: end;
  }
}

.app-brand-logo-link:hover {
  background: #f4f8fd;
  box-shadow: inset 0 0 0 1px #d8e4f2;
}

.app-brand-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.app-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  color: #10284e;
  line-height: 1;
  white-space: nowrap;
}

.app-brand-wordmark-name {
  color: #0f766e;
  font-size: 1.15rem;
  font-weight: 800;
}

.app-brand-wordmark-product {
  color: #173762;
  font-size: 1.06rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .app-topbar-left {
    min-width: auto;
  }

  .app-brand-logo-link {
    min-width: auto;
    width: 3rem;
    padding: 0;
  }

  .app-brand-wordmark {
    display: none;
  }
}

.app-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

.app-top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 2.35rem;
  padding: 0.38rem 0.58rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2a456f;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.app-top-nav-link--with-badge {
  gap: 0.36rem;
}

.app-top-nav-link:hover {
  border-color: #bdd0e8;
  background: #eef4ff;
  color: #16335e;
}

.app-top-nav-link.is-active {
  border-color: transparent;
  background: transparent;
  color: #2a456f;
  box-shadow: none;
}

.app-nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
}

.app-nav-submenu summary {
  list-style: none;
  cursor: pointer;
}

.app-nav-submenu summary::-webkit-details-marker {
  display: none;
}

.app-nav-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #2a456f;
  transition: all 0.16s ease;
}

.app-nav-arrow-btn:hover,
.app-nav-submenu[open] .app-nav-arrow-btn {
  border-color: #bdd0e8;
  background: #eef4ff;
  color: #16335e;
}

.app-nav-chevron {
  width: 0.88rem;
  height: 0.88rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.app-nav-submenu[open] .app-nav-chevron {
  transform: rotate(180deg);
}

.app-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 92;
  min-width: 180px;
  border: 1px solid #cddbec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(12, 33, 64, 0.16);
  padding: 0.45rem;
}

.app-nav-submenu[open] .app-nav-dropdown {
  display: block;
}

.app-nav-dropdown-link {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  border-radius: 7px;
  color: #253f66;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.46rem 0.58rem;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.app-nav-dropdown-link:hover,
.app-nav-dropdown-link.is-active {
  background: #eef4ff;
  color: #10284e;
}

.app-menu-btn {
  position: relative;
  border-color: #b9cce4;
  color: var(--accent);
  background: #f8fbff;
}

.app-menu-btn:hover {
  background: #eef4ff;
}

.app-menu-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.app-nav-badge,
.app-mobile-nav-badge,
.app-menu-attendance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.12rem;
  height: 1.12rem;
  border-radius: 999px;
  background: #11a36a;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0.34rem;
  box-shadow: 0 0 0 2px #ffffff;
}

.app-menu-attendance-badge {
  position: absolute;
  top: -0.34rem;
  right: -0.34rem;
  padding: 0;
}

.app-top-nav-link.has-atendimento-badge,
.app-mobile-nav-link.has-atendimento-badge {
  color: #0f513d;
}

.app-brand-title {
  letter-spacing: -0.02em;
}

.app-brand-subtitle {
  color: #647ca2;
}

.app-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #2f466c;
  border: 1px solid #d8e2f0;
  background: rgba(245, 248, 252, 0.92);
  border-radius: 999px;
  min-height: 2.35rem;
  padding: 0.22rem 0.72rem 0.22rem 0.28rem;
  white-space: nowrap;
}

.app-user-menu {
  position: relative;
}

.app-user-menu summary {
  list-style: none;
  cursor: pointer;
}

.app-user-menu summary::-webkit-details-marker {
  display: none;
}

.app-user-menu[open] .app-user-chip {
  border-color: #b7cbe4;
  background: #eef4fd;
}

.app-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 292px;
  border: 1px solid #cddbec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(12, 33, 64, 0.16);
  padding: 0.7rem;
  z-index: 90;
}

.app-user-tenant-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid #e2e9f3;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
}

.app-tenant-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.app-tenant-logo,
.app-user-tenant-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-user-tenant-logo {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
}

.app-tenant-logo-fallback {
  color: #1f3561;
  font-size: 0.8rem;
  font-weight: 800;
}

.app-user-tenant-name {
  color: #173762;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-user-name {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.app-user-integration-block {
  border-bottom: 1px solid #e2e9f3;
  margin-bottom: 0.55rem;
  padding-bottom: 0.6rem;
}

.app-user-integration-block .app-bling-chip-wrap,
.app-user-integration-block .app-topbar-form {
  display: flex;
  width: 100%;
}

.app-user-integration-block .app-bling-chip {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.45rem;
}

.app-user-dropdown-link {
  display: block;
  width: 100%;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #213f6d;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.45rem;
  transition: all 0.16s ease;
}

.app-user-dropdown-link:hover {
  background: #eef4ff;
  border-color: #b7cbe4;
}

.app-user-dropdown-button {
  cursor: pointer;
  font-family: inherit;
}

.app-user-logout-form {
  margin: 0;
}

.app-user-logout-btn {
  width: 100%;
  border: 1px solid #f2c3c0;
  border-radius: 8px;
  background: #fff4f3;
  color: #9f231d;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  padding: 0.5rem 0.65rem;
  transition: all 0.16s ease;
}

.app-user-logout-btn:hover {
  background: #ffe9e7;
  border-color: #e89f99;
}

.app-soft-danger-btn {
  border: 1px solid #f2c3c0;
  background: #fff4f3;
  color: #9f231d;
  font-weight: 700;
  transition: all 0.16s ease;
}

.app-soft-danger-btn:hover {
  background: #ffe9e7;
  border-color: #e89f99;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(159, 35, 29, 0.12);
}

.app-soft-danger-btn:disabled {
  background: #f2f4f7;
  border-color: #d7dde7;
  color: #8a96ab;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.task-calendar-card {
  transition: all 0.16s ease;
}

.task-calendar-card--open {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1f2937;
}

.task-calendar-card--open:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.task-calendar-card--completed {
  border-color: #a3e4c4;
  background: var(--success-soft);
  color: #06603a;
}

.task-calendar-card--completed:hover {
  border-color: #79d4a8;
  background: #d1fadf;
}

.task-calendar-card--overdue {
  border-color: #f2c3c0;
  background: #fff4f3;
  color: #9f231d;
}

.task-calendar-card--overdue:hover {
  border-color: #e89f99;
  background: #ffe9e7;
}

.task-calendar-card-title {
  color: inherit;
}

.task-calendar-card-meta {
  color: inherit;
  opacity: 0.72;
}

.task-kanban-card {
  transition: all 0.16s ease;
}

.task-kanban-card--open {
  border-color: #e2e8f0;
}

.task-kanban-card--open:hover {
  border-color: #93c5fd;
}

.task-kanban-card--completed {
  border-color: #bbf7d0;
}

.task-kanban-card--completed:hover {
  border-color: #86efac;
}

.task-kanban-card--overdue {
  border-color: #f2c3c0;
}

.task-kanban-card--overdue:hover {
  border-color: #e89f99;
}

.task-owner-avatar {
  border-color: #fff;
  background-color: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.34);
  letter-spacing: 0;
}

.task-owner-avatar--extra {
  background-color: #f8fafc;
  color: #64748b;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.task-push-toggle {
  border-color: #cfe0f4;
  background: rgba(255, 255, 255, 0.78);
  color: #315c91;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.task-push-toggle.btn-primary {
  border-color: #bfd4f1;
  background: #edf5ff;
  color: #173762;
}

.task-footer-form {
  display: flex;
  flex: 0 0 auto;
}

.task-footer-form button {
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.task-title-input {
  display: block;
  min-height: 2.75rem;
  line-height: 1.22;
  overflow-y: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 1024px) {
  .task-page {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 10rem);
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0 !important;
  }

  .task-page > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.65rem;
  }

  .task-page > .page-head {
    flex: 0 0 auto;
    gap: 0.75rem;
  }

  .task-page > .task-view-panel {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .task-page > .task-files-view {
    flex: 1 1 auto;
  }

  .task-files-view > .task-view-panel {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .task-board-scroll {
    padding-bottom: 0.6rem;
  }

  .kanban-lists {
    padding-bottom: 0.25rem;
  }

  .task-view-switcher {
    bottom: 0.75rem;
  }
}

@media (max-width: 640px) {
  .task-page {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom)) !important;
  }

  .task-view-panel {
    margin-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }

  .task-view-panel > .min-h-0.flex-1.overflow-auto,
  .task-view-panel > .min-h-0.flex-1.overflow-y-auto {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }

  .task-board-scroll {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }

  .task-view-switcher {
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .task-view-switcher nav {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem;
  }

  .task-view-switcher a,
  .task-view-switcher button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .task-view-switcher-extra {
    display: none !important;
  }

  .task-view-switcher-more {
    display: inline-flex !important;
  }
}

.app-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.app-bling-chip {
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.32rem 0.66rem;
  white-space: nowrap;
}

.app-bling-chip-connected {
  color: #0f6a47;
  border-color: #a8dfc4;
  background: #ebfbf3;
}

.app-bling-chip-disconnected {
  color: #7e4a08;
  border-color: #f2d7a8;
  background: #fff7e8;
}

.app-bling-chip-unconfigured {
  color: #7d1f1a;
  border-color: #f3c5c0;
  background: #fef3f2;
}

.app-bling-chip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.app-bling-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -6px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid #c8d8ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(12, 33, 64, 0.16);
  color: #23466f;
  font-size: 0.74rem;
  line-height: 1.35;
  padding: 0.48rem 0.62rem;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.app-bling-chip-wrap:hover .app-bling-tooltip,
.app-bling-chip-wrap:focus-within .app-bling-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-topbar-form {
  display: inline-flex;
}

.app-topbar-btn {
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}

.app-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #243f68;
  cursor: pointer;
  transition: all 0.16s ease;
}

.app-icon-btn:hover,
.app-notification-menu[open] .app-icon-btn {
  border-color: #b7cbe4;
  background: #eef4fd;
  color: #10284e;
}

.app-icon-btn svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-mobile-tenant-logo {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #ffffff;
  color: #173762;
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  transition: all 0.16s ease;
}

.app-mobile-tenant-logo:hover {
  border-color: #b7cbe4;
  background: #f8fbff;
}

.app-mobile-tenant-logo img {
  display: block;
  width: 1.72rem;
  height: 1.72rem;
  object-fit: contain;
}

.app-notification-menu {
  position: relative;
}

.app-notification-menu summary {
  list-style: none;
}

.app-notification-menu summary::-webkit-details-marker {
  display: none;
}

.app-notification-badge {
  position: absolute;
  top: -0.32rem;
  right: -0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.12rem;
  height: 1.12rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #e5484d;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.app-notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 91;
  width: min(380px, calc(100vw - 2rem));
  border: 1px solid #cddbec;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(12, 33, 64, 0.18);
  padding: 1rem;
}

.app-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.app-notification-head h2 {
  color: #10213d;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-notification-head span {
  color: #244a80;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.app-notification-tabs-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid #dbe6f2;
  margin-bottom: 0.65rem;
}

.app-notification-tabs {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.app-notification-tabs button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #61758f;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding-bottom: 0.55rem;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.app-notification-tabs button:hover {
  color: #244a80;
}

.app-notification-tabs button.is-active {
  border-bottom-color: #244a80;
  color: #173762;
}

.app-notification-mark-all {
  appearance: none;
  border: 0;
  background: transparent;
  color: #315c91;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 0 0.55rem;
  white-space: nowrap;
}

.app-notification-mark-all:hover {
  color: #0f2e58;
}

.app-notification-list {
  display: flex;
  flex-direction: column;
  max-height: min(430px, calc(100vh - 8rem));
  overflow-y: auto;
}

.app-notification-list--grouped {
  gap: 0.45rem;
}

.app-notification-type-group {
  display: grid;
  gap: 0.35rem;
}

.app-notification-type-group summary {
  list-style: none;
}

.app-notification-type-group summary::-webkit-details-marker {
  display: none;
}

.app-notification-type-group + .app-notification-type-group {
  border-top: 1px solid #dbe4ef;
  margin-top: 0.35rem;
  padding-top: 0.7rem;
}

.app-notification-type-title {
  display: grid;
  align-items: start;
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.75rem;
  color: #173762;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  padding: 0.05rem 0.45rem;
  text-transform: uppercase;
}

.app-notification-type-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.app-notification-type-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-notification-type-title::after {
  align-self: start;
  border-bottom: 2px solid #315c91;
  border-right: 2px solid #315c91;
  content: "";
  height: 0.42rem;
  margin-top: 0.28rem;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  width: 0.42rem;
}

.app-notification-type-group[open] .app-notification-type-title::after {
  transform: rotate(225deg);
}

.app-notification-type-count {
  align-items: center;
  align-self: start;
  background: #edf4ff;
  border: 1px solid #c8dcf5;
  border-radius: 999px;
  color: #244a80;
  display: inline-flex;
  font-size: 0.64rem;
  height: 1.15rem;
  justify-content: center;
  min-width: 1.15rem;
  padding: 0 0.38rem;
}

.app-notification-type-latest {
  color: #49698f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  word-break: normal;
}

.app-notification-type-group[open] .app-notification-type-latest {
  display: none;
}

.app-notification-type-body {
  display: grid;
  gap: 0.25rem;
}

.app-notification-date-group {
  display: grid;
  gap: 0.1rem;
}

.app-notification-date-title {
  color: #6b7f99;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem 0;
  text-transform: uppercase;
}

.app-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: 8px;
  color: inherit;
  padding: 0.68rem 0.45rem;
  transition: background-color 0.16s ease;
}

a.app-notification-item:hover {
  background: #f5f8fc;
}

.app-notification-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #3b82f6;
  flex: 0 0 auto;
  margin-top: 0.34rem;
}

.app-notification-item-warning .app-notification-dot {
  background: #f59e0b;
}

.app-notification-item-danger .app-notification-dot {
  background: #dc2626;
}

.app-notification-item-read .app-notification-dot {
  background: #c5d2e3;
}

.app-notification-item-read .app-notification-title,
.app-notification-item-read .app-notification-body {
  color: #667891;
}

.app-notification-item-compact .app-notification-title {
  color: #4f6684;
  font-size: 0.8rem;
  font-weight: 700;
}

.app-notification-item-compact .app-notification-scope {
  color: #49698f;
  letter-spacing: 0;
  text-transform: none;
}

.app-notification-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.app-notification-title {
  color: #25364f;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}

.app-notification-body {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.app-notification-scope {
  color: #49698f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.app-notification-empty {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 1rem 0.25rem 0.2rem;
}

.app-main {
  position: relative;
}

.app-mobile-menu-open {
  overflow: hidden;
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(8, 24, 48, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.app-sidebar-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar {
  z-index: 50;
  width: min(86vw, 21rem);
  max-width: 21rem;
  background:
    radial-gradient(560px 260px at -15% -20%, rgba(193, 212, 240, 0.58) 0%, rgba(193, 212, 240, 0) 68%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
  border-right: 1px solid #ccdaec;
  box-shadow: 18px 0 42px rgba(9, 27, 55, 0.2);
  will-change: transform;
}

.app-sidebar-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.app-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #d8e4f2;
  padding: calc(0.75rem + env(safe-area-inset-top)) 1rem 0.8rem;
}

.app-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  color: #173762;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.app-sidebar-brand img {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.app-sidebar-brand strong {
  color: #0f766e;
  font-weight: 800;
}

.app-sidebar-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  background: #ffffff;
  color: #1f3561;
  transition: all 0.16s ease;
}

.app-sidebar-close-btn:hover {
  border-color: #9fb8d8;
  background: #eef4ff;
}

.app-sidebar-close-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 0.8rem 1rem;
  scrollbar-width: thin;
}

.app-mobile-nav-link,
.app-mobile-nav-sublink,
.app-sidebar-account-link {
  display: flex;
  align-items: center;
  min-height: 2.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #173762;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.62rem 0.78rem;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.app-mobile-nav-link--with-badge {
  justify-content: space-between;
  gap: 0.75rem;
}

.app-mobile-nav-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.app-mobile-nav-link:hover,
.app-mobile-nav-sublink:hover,
.app-sidebar-account-link:hover {
  border-color: #bdd0e8;
  background: #eaf2ff;
  color: #10284e;
}

.app-mobile-nav-link.is-active {
  border-color: #1f3561;
  background: #1f3561;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 46, 92, 0.16);
}

.app-mobile-nav-link.is-active .app-mobile-nav-badge {
  box-shadow: 0 0 0 2px #1f3561;
}

.app-mobile-nav-group {
  display: grid;
  gap: 0.18rem;
}

.app-mobile-nav-sublink {
  position: relative;
  min-height: 2.35rem;
  margin-left: 0.7rem;
  padding-left: 1rem;
  color: #2d4a73;
  font-size: 0.86rem;
}

.app-mobile-nav-sublink::before {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.62rem;
  bottom: 0.62rem;
  width: 2px;
  border-radius: 999px;
  background: #c4d5ec;
}

.app-mobile-nav-sublink.is-active {
  border-color: #bfd3ee;
  background: #eef4ff;
  color: #10284e;
}

.app-mobile-nav-sublink.is-active::before {
  background: #1f3561;
}

.app-sidebar-foot {
  border-top: 1px solid #d8e4f2;
  background: rgba(248, 251, 255, 0.88);
  padding: 0.75rem 0.8rem calc(0.85rem + env(safe-area-inset-bottom));
}

.app-sidebar-user {
  display: flex;
  align-items: center;
  min-height: 2.1rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 0.12rem 0.45rem;
}

.app-sidebar-account-link {
  min-height: 2.45rem;
  margin-bottom: 0.42rem;
}

.app-sidebar-account-link.is-active {
  border-color: #bdd0e8;
  background: #eaf2ff;
  color: #10284e;
}

.app-sidebar-logout-form {
  margin: 0;
}

.app-sidebar-logout-btn {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid #f2c3c0;
  border-radius: 8px;
  background: #fff4f3;
  color: #9f231d;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  padding: 0.6rem 0.78rem;
  transition: all 0.16s ease;
}

.app-sidebar-logout-btn:hover {
  background: #ffe9e7;
  border-color: #e89f99;
}

.app-nav-link {
  border: 1px solid transparent;
  color: #173762;
  transition: all 0.2s ease;
}

.app-nav-link:hover {
  border-color: #b8cce6;
  background: #eaf2ff;
  transform: translateX(2px);
}

.app-nav-link.is-active {
  border-color: #1f3561;
  background: #1f3561;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 46, 92, 0.14);
}

.app-nav-link.is-active:hover {
  background: #1f3561;
  border-color: #1f3561;
  transform: none;
}

.app-nav-sub-link {
  display: block;
  border-left: 2px solid #c9d8eb;
  color: #2d4a73;
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 0.9rem;
  padding: 0.42rem 0.7rem;
  transition: all 0.16s ease;
}

.app-nav-sub-link:hover,
.app-nav-sub-link.is-active {
  border-left-color: #1f3561;
  color: #10284e;
  background: #eef4ff;
}

.app-logout-btn,
.app-close-menu {
  transition: all 0.2s ease;
}

.app-close-menu {
  color: #1e3d67;
  border-color: #bdd0e8;
}

.page-head {
  margin-bottom: 1.15rem;
}

.page-title {
  color: var(--ink);
  letter-spacing: -0.025em;
}

.page-subtitle {
  color: var(--muted);
}

.panel,
.bg-white.border.border-slate-200.rounded-xl,
.bg-white.border.border-slate-200.rounded {
  border-color: #d3dfee;
  background: var(--app-panel-background);
  box-shadow: 0 16px 36px rgba(12, 33, 64, 0.08);
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  top: -62px;
  right: -52px;
  width: 145px;
  height: 145px;
  border-radius: 999px;
  background: var(--app-card-glow);
  pointer-events: none;
}

.metric-label {
  color: #5e759a;
}

.metric-value {
  letter-spacing: -0.02em;
}

.table-shell {
  border-color: #cfdbeb;
}

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

.table-core thead,
.table-core thead th {
  background: #eff4fb;
  color: #2a4872;
}

.table-core tbody tr {
  transition: background-color 0.16s ease;
}

.table-core tbody tr:hover {
  background: #f8fbff;
}

.table-core tbody tr td,
.table-core thead tr th {
  border-color: #dbe6f2;
}

label,
.field-label {
  color: #324d76;
}

input,
select,
textarea,
.input-field {
  border-color: #c4d4e7;
  background: #ffffff;
  color: #0c1f3f;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.input-field {
  border: 1px solid #c4d4e7;
  border-radius: 0.5rem;
}

input::placeholder,
textarea::placeholder {
  color: #7b93b7;
}

input:focus,
select:focus,
textarea:focus,
.input-field:focus {
  outline: none;
  border-color: #739ad1;
  box-shadow: 0 0 0 4px rgba(115, 154, 209, 0.18);
}

textarea {
  resize: vertical;
}

.btn-primary,
.btn-dark,
.btn-ghost,
.btn-danger,
.btn-warning,
.btn-success,
.btn-soft {
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-primary {
  border-color: #173367;
  background: linear-gradient(180deg, #1f4388 0%, #122b57 100%);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 43, 87, 0.24);
}

.btn-dark {
  border-color: #2a456f;
  background: linear-gradient(180deg, #263f65 0%, #152845 100%);
  color: #ffffff;
}

.btn-dark:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: #c5d4e6;
  background: #ffffff;
  color: #1c3b67;
}

.btn-ghost:hover {
  background: #f2f7ff;
  border-color: #b3c8e1;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 59, 103, 0.12);
}

.btn-soft {
  border-color: #c7d8ee;
  background: #edf4ff;
  color: #1f4e89;
}

.btn-soft:hover {
  background: #e1edff;
}

/* WhatsApp atendimento workspace */
body.app-route-atendimento {
  overflow: hidden;
}

body.app-route-atendimento .app-main {
  height: 100dvh;
  overflow: hidden;
  padding-top: calc(4rem + 0.75rem);
  padding-bottom: 0.75rem;
}

.wa-workspace {
  --wa-green: #00a884;
  --wa-green-dark: #008069;
  --wa-panel: #ffffff;
  --wa-border: #d8e1ea;
  --wa-muted: #667781;
  --wa-text: #111b21;
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100dvh - 6.7rem);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--wa-border);
  border-radius: 8px;
  background: var(--wa-panel);
  box-shadow: 0 16px 36px rgba(15, 35, 58, 0.12);
}

body.app-route-atendimento .wa-workspace {
  height: 100%;
  min-height: 0;
}

.wa-sidebar {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid var(--wa-border);
}

.wa-sidebar-head,
.wa-chat-head {
  min-height: 64px;
  background: #f0f2f5;
  border-bottom: 1px solid #dbe2e8;
}

.wa-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.wa-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.wa-brand-mark,
.wa-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(145deg, #dce8f0 0%, #f4f7f9 100%);
  color: #46616d;
  font-weight: 700;
}

.wa-brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, var(--wa-green) 0%, #0a7867 100%);
  color: #ffffff;
  overflow: hidden;
}

.wa-brand-mark.has-image {
  background: #e7eef3;
  color: transparent;
}

.wa-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.wa-brand h1,
.wa-chat-contact h2 {
  margin: 0;
  color: var(--wa-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.wa-brand p,
.wa-chat-contact p {
  margin: 0.1rem 0 0;
  color: var(--wa-muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.wa-sidebar-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.wa-push-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #cad6df;
  border-radius: 999px;
  background: #ffffff;
  color: #3b4a54;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.wa-push-toggle:hover {
  border-color: #9fd5c7;
  background: #edf8f5;
  color: #02735e;
}

.wa-push-toggle.is-active {
  border-color: #9fe3d0;
  background: #d9fdd3;
  color: #02735e;
}

.wa-push-toggle.is-disabled {
  opacity: 0.65;
}

.wa-push-toggle [data-app-push-text] {
  display: none;
}

.wa-push-toggle svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-live-pill {
  border-radius: 999px;
  background: #d9fdd3;
  color: #02735e;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.wa-search {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem 0.35rem;
}

.wa-search svg {
  position: absolute;
  left: 1.5rem;
  width: 18px;
  height: 18px;
  fill: #667781;
  pointer-events: none;
}

.wa-search input[type="search"] {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f0f2f5;
  color: var(--wa-text);
  padding: 0 1rem 0 2.7rem;
  font-size: 0.92rem;
  box-shadow: none;
}

.wa-search input[type="search"]:focus {
  box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.18);
}

.wa-filter-chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.45rem 0.75rem 0.85rem;
  scrollbar-color: #b7c5cf transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.wa-filter-chips::-webkit-scrollbar {
  height: 8px;
}

.wa-filter-chips::-webkit-scrollbar-track {
  background: transparent;
}

.wa-filter-chips::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #b7c5cf;
  background-clip: padding-box;
}

.wa-filter-chips a,
.wa-filter-chip-button {
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  border: 1px solid #d5dde4;
  border-radius: 999px;
  background: #ffffff;
  color: #3b4a54;
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  user-select: none;
  white-space: nowrap;
}

.wa-filter-chips a {
  display: inline-flex;
  gap: 0.35rem;
}

.wa-filter-count {
  display: inline-flex;
  min-width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #11a36a;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0.32rem;
}

.wa-filter-count.hidden {
  display: none;
}

.wa-filter-chip-button {
  display: inline-flex;
  min-width: 2.15rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wa-filter-chips a.is-active {
  border-color: #9fe3d0;
  background: #d9fdd3;
  color: #02735e;
}

.wa-filter-chip-button:hover {
  border-color: #9fd5c7;
  background: #edf8f5;
  color: #02735e;
}

.wa-list-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  padding: 0 0.75rem 0.75rem;
}

.wa-list-create[hidden] {
  display: none;
}

.wa-list-create input {
  min-width: 0;
  height: 36px;
  border: 1px solid #cfd9e2;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 0.8rem;
  font-size: 0.86rem;
}

.wa-list-create button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--wa-green-dark);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 0.9rem;
}

.wa-conversation-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.wa-conversation-selection-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid #dbe2e8;
  background: #ffffff;
  padding: 0.38rem 0.58rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.wa-conversation-selection-bar[hidden] {
  display: none;
}

.wa-conversation-selection-bar strong {
  flex: 1;
  min-width: 0;
  color: #111b21;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-conversation-selection-bar .wa-selection-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111b21;
  cursor: pointer;
}

.wa-conversation-selection-bar .wa-selection-btn:hover,
.wa-conversation-selection-bar .wa-selection-btn:focus-visible {
  background: #f0f2f5;
  outline: 0;
}

.wa-conversation-selection-bar .wa-selection-btn:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.wa-conversation-selection-bar .wa-selection-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.wa-thread-shell {
  position: relative;
}

.wa-thread {
  position: relative;
  display: flex;
  gap: 0.75rem;
  min-height: 76px;
  padding: 0.75rem 2.25rem 0.75rem 0.8rem;
  color: inherit;
  border-top: 1px solid #eef2f5;
  transition: background-color 0.14s ease;
}

.wa-thread:hover,
.wa-thread.is-active {
  background: #f0f2f5;
}

.wa-thread.is-pinned {
  background: #f7fbf9;
}

.wa-thread.is-pinned:hover,
.wa-thread.is-pinned.is-active {
  background: #eef8f4;
}

.wa-thread.is-followup-due {
  background: #fff7ed;
}

.wa-thread.is-followup-due:hover,
.wa-thread.is-followup-due.is-active {
  background: #ffedd5;
}

.wa-thread.has-followup {
  min-height: 92px;
}

.wa-thread.has-followup-actions {
  min-height: 112px;
  padding-bottom: 2.7rem;
}

.wa-thread-shell.is-selected .wa-thread,
.wa-thread-shell.is-selected .wa-thread.is-pinned {
  background: #e7f8ef;
}

.wa-avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
  overflow: hidden;
}

.wa-avatar.has-image {
  background: #e7eef3;
  color: transparent;
}

.wa-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.wa-avatar-large {
  width: 42px;
  height: 42px;
}

.wa-thread-main {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.15rem;
}

.wa-thread-row,
.wa-thread-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.wa-thread-row strong,
.wa-thread-preview,
.wa-thread-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-thread-row strong {
  color: var(--wa-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.wa-thread-row time {
  flex: 0 0 auto;
  color: var(--wa-muted);
  font-size: 0.74rem;
}

.wa-thread-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
}

.wa-thread-pin {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: #667781;
}

.wa-thread-pin svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.wa-thread-preview {
  color: #3b4a54;
  font-size: 0.84rem;
}

.wa-sent-prefix {
  color: var(--wa-muted);
}

.wa-thread-meta {
  color: #7a8a94;
  font-size: 0.72rem;
}

.wa-followup-section {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.48rem 0.85rem 0.38rem;
  border-top: 1px solid #eef2f5;
  border-bottom: 1px solid #eef2f5;
  background: rgba(248, 250, 252, 0.96);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wa-thread-followup {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  color: #334155;
  background: #f8fafc;
  font-size: 0.68rem;
  line-height: 1.25;
}

.wa-thread-followup span,
.wa-thread-followup strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-thread-followup span {
  font-weight: 700;
}

.wa-thread-followup strong {
  font-weight: 800;
}

.wa-thread-followup.is-due {
  border-color: #f97316;
  background: #ffedd5;
  color: #9a3412;
}

.wa-thread-followup.is-today {
  border-color: #34d399;
  background: #ecfdf5;
  color: #047857;
}

.wa-thread-followup.is-upcoming,
.wa-thread-followup.is-scheduled {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.wa-thread-followup-actions {
  position: absolute;
  left: 4.55rem;
  right: 2.65rem;
  bottom: 0.55rem;
  z-index: 3;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4rem;
}

.wa-thread-followup-actions button {
  min-width: 0;
  height: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 0.62rem;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.wa-thread-followup-actions button:first-child {
  border-color: #00a884;
  background: #00a884;
  color: #ffffff;
}

.wa-thread-followup-actions button:hover,
.wa-thread-followup-actions button:focus-visible {
  background: #f8fafc;
  border-color: #94a3b8;
  outline: 0;
}

.wa-thread-followup-actions button:first-child:hover,
.wa-thread-followup-actions button:first-child:focus-visible {
  background: #008f72;
  border-color: #008f72;
}

.wa-thread-followup-actions button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.wa-workspace.is-conversation-selecting .wa-thread-followup-actions {
  display: none;
}

.wa-unread {
  position: absolute;
  right: 0.85rem;
  bottom: 0.72rem;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.wa-thread-menu-trigger,
.wa-thread-select-control {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 999px;
  background: #ffffff;
  color: #54656f;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.wa-thread-menu-trigger {
  top: 0.48rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.14s ease, transform 0.14s ease, background-color 0.14s ease;
}

.wa-thread-menu-trigger svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.wa-thread-shell:hover .wa-thread-menu-trigger,
.wa-thread-menu-trigger:focus-visible,
.wa-thread-shell.is-selected .wa-thread-menu-trigger {
  opacity: 1;
  transform: translateY(0);
}

.wa-thread-menu-trigger:hover,
.wa-thread-menu-trigger:focus-visible,
.wa-thread-select-control:hover,
.wa-thread-select-control:focus-visible {
  background: #f0f2f5;
  outline: 0;
}

.wa-thread-select-control {
  left: 0.45rem;
  bottom: 0.52rem;
  width: 24px;
  height: 24px;
  display: none;
  background: #ffffff;
  color: #ffffff;
}

.wa-thread-select-control svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.wa-workspace.is-conversation-selecting .wa-thread-select-control,
.wa-thread-shell.is-selected .wa-thread-select-control {
  display: inline-flex;
}

.wa-thread-shell.is-selected .wa-thread-select-control {
  border-color: #00a884;
  background: #00a884;
}

.wa-empty-list {
  color: var(--wa-muted);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.wa-chat {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 0;
  background: #efeae2;
  overflow: hidden;
}

.wa-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(17, 27, 33, 0.06) 1.4px, transparent 1.5px),
    radial-gradient(circle at 44px 42px, rgba(17, 27, 33, 0.045) 1px, transparent 1.1px);
  background-size: 68px 68px;
  pointer-events: none;
}

.wa-chat-shell {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.wa-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.95rem;
}

.wa-message-selection-toolbar {
  display: none;
}

.wa-message-selection-toolbar[hidden] {
  display: none;
}

.wa-pinned-message {
  border-top: 1px solid #dbe2e8;
  border-bottom: 1px solid #dbe2e8;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.42rem 0.95rem;
  position: relative;
}

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

.wa-pinned-message-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}

.wa-pinned-message-main,
.wa-pinned-message-toggle,
.wa-pinned-message-item {
  border: 0;
  background: transparent;
  color: #3b4a54;
  cursor: pointer;
  text-align: left;
}

.wa-pinned-message-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.65rem;
  border-radius: 8px;
  padding: 0.28rem 0.36rem;
}

.wa-pinned-message-main:hover,
.wa-pinned-message-main:focus-visible,
.wa-pinned-message-toggle:hover,
.wa-pinned-message-toggle:focus-visible,
.wa-pinned-message-item:hover,
.wa-pinned-message-item:focus-visible {
  background: #f0f2f5;
  outline: 0;
}

.wa-pinned-message-main svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #008069;
}

.wa-pinned-message-main > span {
  display: grid;
  min-width: 0;
  gap: 0.04rem;
}

.wa-pinned-message strong,
.wa-pinned-message-main > span > span,
.wa-pinned-message-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-pinned-message strong {
  color: #008069;
  font-size: 0.75rem;
  font-weight: 800;
}

.wa-pinned-message-main > span > span,
.wa-pinned-message-item span {
  font-size: 0.82rem;
}

.wa-pinned-message-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.22rem;
  border-radius: 999px;
  color: #54656f;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.36rem 0.48rem;
}

.wa-pinned-message-toggle[hidden] {
  display: none;
}

.wa-pinned-message-toggle svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.16s ease;
}

.wa-pinned-message.is-open .wa-pinned-message-toggle svg {
  transform: rotate(180deg);
}

.wa-pinned-message-list {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.34rem;
  max-height: min(34vh, 260px);
  overflow: auto;
  padding: 0.15rem 0 0;
}

.wa-pinned-message-list[hidden] {
  display: none;
}

.wa-pinned-message-item {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0.06rem;
  border-left: 3px solid #53bdeb;
  border-radius: 8px;
  padding: 0.38rem 0.55rem;
}

.wa-chat-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.wa-chat-contact > div {
  min-width: 0;
}

.wa-chat-contact h2,
.wa-chat-contact p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-chat-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.wa-mobile-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #54656f;
  cursor: pointer;
}

.wa-mobile-back:hover {
  background: #e3e8ec;
}

.wa-mobile-back svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.wa-icon-btn,
.wa-composer-btn,
.wa-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.wa-icon-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  color: #54656f;
}

.wa-icon-btn:hover {
  background: #e3e8ec;
}

.wa-icon-btn.is-active {
  background: rgba(0, 168, 132, 0.12);
  color: #008069;
}

.wa-icon-btn.wa-chat-actions-menu-trigger {
  display: none;
}

.wa-icon-btn svg,
.wa-composer-btn svg,
.wa-send-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.wa-stroke-icon,
.wa-icon-btn svg.wa-stroke-icon,
.wa-composer-btn svg.wa-stroke-icon,
.wa-send-btn svg.wa-stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wa-chat-action-sheet-button {
  justify-content: flex-start !important;
  gap: 0.75rem;
  text-align: left;
}

.wa-chat-action-sheet-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.wa-chat-action-sheet-button span {
  min-width: 0;
}

.wa-message-pane {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 1rem 3.7rem 1.25rem;
}

.wa-message-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
}

.wa-day-marker {
  align-self: center;
  margin: 0.35rem 0 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #54656f;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

.wa-unread-marker {
  align-self: center;
  margin: 0.4rem 0 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: #111b21;
  padding: 0.42rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1);
}

.wa-scroll-bottom-btn {
  position: absolute;
  right: 1.35rem;
  bottom: 5.45rem;
  z-index: 3;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #54656f;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(11, 20, 26, 0.18);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.wa-scroll-bottom-btn[hidden] {
  display: none;
}

.wa-scroll-bottom-btn:hover,
.wa-scroll-bottom-btn:focus-visible {
  background: #f0f2f5;
  color: #111b21;
  outline: 0;
  transform: translateY(-1px);
}

.wa-scroll-bottom-btn svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.wa-message {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.wa-message.is-inbound {
  justify-content: flex-start;
}

.wa-message.is-outbound {
  justify-content: flex-end;
}

.wa-message.has-reactions {
  margin-bottom: 0.55rem;
}

.wa-message-select {
  display: none;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d2da;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #008069;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.12);
}

.wa-workspace.is-forwarding .wa-message-select {
  display: inline-flex;
}

.wa-message-select span {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.wa-message-select[aria-pressed="true"] {
  border-color: #00a884;
  background: #d9fdd3;
}

.wa-message-select[aria-pressed="true"] span {
  border-color: #00a884;
  background: #00a884;
  box-shadow: inset 0 0 0 2px #d9fdd3;
}

.wa-message-menu-trigger {
  position: absolute;
  top: 0.2rem;
  right: 0.22rem;
  z-index: 2;
  display: inline-flex;
  width: 28px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #54656f;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.wa-message:hover .wa-message-menu-trigger,
.wa-message:focus-within .wa-message-menu-trigger {
  opacity: 1;
  pointer-events: auto;
}

.wa-message-menu-trigger:hover,
.wa-message-menu-trigger:focus-visible {
  background: #f0f2f5;
  color: #008069;
  outline: 0;
}

.wa-message-menu-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.wa-message.is-forward-selected .wa-bubble {
  outline: 2px solid rgba(0, 168, 132, 0.36);
  outline-offset: 2px;
}

.wa-message.is-reply-target .wa-bubble {
  animation: wa-reply-target-pulse 1.35s ease;
}

.wa-message.is-pinned .wa-bubble {
  outline: 2px solid rgba(0, 168, 132, 0.18);
  outline-offset: 2px;
}

@keyframes wa-reply-target-pulse {
  0%,
  100% {
    outline: 0 solid rgba(0, 168, 132, 0);
  }
  18%,
  70% {
    outline: 3px solid rgba(0, 168, 132, 0.28);
    outline-offset: 3px;
  }
}

.wa-workspace.is-forwarding .wa-composer {
  display: none;
}

.wa-workspace.is-forwarding .wa-message {
  position: relative;
  min-height: 38px;
  padding-left: 2.7rem;
  cursor: pointer;
}

.wa-workspace.is-forwarding .wa-message:hover {
  border-radius: 8px;
  background: rgba(0, 168, 132, 0.08);
}

.wa-workspace.is-forwarding .wa-message:hover .wa-message-select {
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.wa-workspace.is-forwarding .wa-message-select {
  position: absolute;
  left: 0.35rem;
  top: 50%;
  display: inline-flex;
  transform: translateY(-50%);
}

.wa-bubble {
  position: relative;
  max-width: min(68%, 720px);
  border-radius: 8px;
  padding: 0.45rem 1.85rem 0.32rem 0.55rem;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
}

.wa-message.is-inbound .wa-bubble {
  background: #ffffff;
  color: var(--wa-text);
  border-top-left-radius: 2px;
}

.wa-message.is-outbound .wa-bubble {
  background: #d9fdd3;
  color: var(--wa-text);
  border-top-right-radius: 2px;
}

.wa-bubble p {
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wa-quoted-message {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0.08rem;
  margin-bottom: 0.36rem;
  border: 0;
  border-left: 4px solid #53bdeb;
  border-radius: 6px;
  background: rgba(11, 20, 26, 0.055);
  color: #3b4a54;
  padding: 0.34rem 0.5rem;
  font: inherit;
  text-align: left;
}

button.wa-quoted-message {
  cursor: pointer;
}

button.wa-quoted-message:hover {
  background: rgba(11, 20, 26, 0.09);
}

.wa-quoted-message strong,
.wa-quoted-message span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-quoted-message strong {
  color: #008069;
  font-size: 0.76rem;
  font-weight: 800;
}

.wa-quoted-message span {
  color: #54656f;
  font-size: 0.78rem;
}

.wa-message-action-menu {
  position: absolute;
  z-index: 9;
  display: grid;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(11, 20, 26, 0.22);
  padding: 0.32rem;
}

.wa-message-action-menu[hidden] {
  display: none;
}

.wa-message-action-menu button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111b21;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0.56rem 0.68rem;
  text-align: left;
}

.wa-message-action-menu button:hover,
.wa-message-action-menu button:focus-visible {
  background: #f0f2f5;
  outline: 0;
}

.wa-message-action-menu button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.wa-message-action-menu svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.wa-message-action-menu svg.wa-stroke-icon,
.wa-selection-btn svg.wa-stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wa-conversation-action-menu,
.wa-conversation-bulk-menu {
  position: absolute;
  z-index: 12;
  display: grid;
  min-width: 210px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(11, 20, 26, 0.22);
  padding: 0.32rem;
}

.wa-conversation-action-menu[hidden],
.wa-conversation-bulk-menu[hidden] {
  display: none;
}

.wa-conversation-action-menu button,
.wa-conversation-bulk-menu button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111b21;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0.56rem 0.68rem;
  text-align: left;
}

.wa-conversation-action-menu button:hover,
.wa-conversation-action-menu button:focus-visible,
.wa-conversation-bulk-menu button:hover,
.wa-conversation-bulk-menu button:focus-visible {
  background: #f0f2f5;
  outline: 0;
}

.wa-conversation-action-menu button:disabled,
.wa-conversation-bulk-menu button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.wa-conversation-action-menu svg,
.wa-conversation-bulk-menu svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.wa-conversation-action-menu svg.wa-stroke-icon,
.wa-conversation-bulk-menu svg.wa-stroke-icon,
.wa-conversation-selection-bar .wa-stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wa-reaction-picker {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.34rem 0.5rem;
  box-shadow: 0 14px 36px rgba(11, 20, 26, 0.2);
}

.wa-reaction-picker[hidden] {
  display: none;
}

.wa-reaction-picker button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: "TwemojiFlags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Noto Emoji", sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.12s ease, transform 0.12s ease;
}

.wa-reaction-picker button:hover,
.wa-reaction-picker button:focus-visible {
  background: #f0f2f5;
  outline: 0;
  transform: translateY(-2px);
}

.wa-message-link {
  color: #005c4b;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.wa-message-link:hover {
  color: #003f33;
}

.wa-bubble .wa-message-meta {
  display: block;
  margin-top: 0.18rem;
  color: #667781;
  font-size: 0.68rem;
  text-align: right;
}

.wa-reaction-badges {
  position: absolute;
  bottom: -0.72rem;
  display: inline-flex;
  max-width: calc(100% - 1rem);
  align-items: center;
  gap: 0.12rem;
  border: 1px solid rgba(218, 225, 231, 0.92);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.08rem 0.28rem;
  box-shadow: 0 1px 3px rgba(11, 20, 26, 0.16);
}

.wa-message.is-inbound .wa-reaction-badges {
  left: 0.45rem;
}

.wa-message.is-outbound .wa-reaction-badges {
  right: 0.45rem;
}

.wa-reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  font-family: "TwemojiFlags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Noto Emoji", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
}

.wa-reaction-badge small {
  color: #667781;
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 800;
}

.wa-muted-message {
  color: #667781;
  font-style: italic;
}

.wa-attachment-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.65rem;
  width: min(330px, 100%);
  margin-bottom: 0.32rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0.45rem;
}

.wa-message.is-inbound .wa-attachment-card {
  background: #f0f2f5;
}

.wa-message.is-outbound .wa-attachment-card {
  background: rgba(255, 255, 255, 0.55);
}

.wa-attachment-preview {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe5e7;
}

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

.wa-attachment-preview span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #54656f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.wa-attachment-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
}

.wa-attachment-name {
  overflow: hidden;
  color: var(--wa-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-attachment-meta,
.wa-attachment-unavailable {
  color: #667781;
  font-size: 0.72rem;
  line-height: 1.25;
}

.wa-attachment-open {
  width: max-content;
  color: #008069;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.wa-attachment-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-align: left;
}

.wa-attachment-open:hover {
  text-decoration: underline;
}

.wa-attachment-video {
  display: block;
  width: fit-content;
  max-width: min(300px, 100%);
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  padding: 0.18rem;
  text-align: left;
}

.wa-message.is-inbound .wa-attachment-video,
.wa-message.is-outbound .wa-attachment-video {
  background: transparent;
}

.wa-video-preview {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 7px;
  background: #0f172a;
}

.wa-video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.18);
  color: #ffffff;
}

.wa-video-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(292px, 68vw);
  max-height: 360px;
  object-fit: contain;
}

.wa-video-preview > span:not(.wa-video-play-badge):not(.wa-video-duration) {
  display: flex;
  width: 220px;
  max-width: 68vw;
  height: 170px;
  align-items: center;
  justify-content: center;
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.wa-video-play-badge svg {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.62);
  fill: currentColor;
  padding: 0.38rem;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.28);
}

.wa-video-duration {
  position: absolute;
  right: 0.38rem;
  bottom: 0.34rem;
  border-radius: 4px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  padding: 0.18rem 0.28rem;
}

.wa-attachment-document {
  display: grid;
  width: min(320px, 100%);
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  color: inherit;
  padding: 0;
  text-decoration: none;
}

.wa-attachment-document:hover .wa-attachment-name {
  text-decoration: underline;
}

.wa-document-preview {
  display: block;
  height: 112px;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #e6ebef;
}

.wa-document-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.wa-document-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.62rem 0.7rem;
}

.wa-document-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
}

.wa-document-body {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.wa-attachment-image {
  display: block;
  width: fit-content;
  max-width: min(300px, 100%);
  overflow: hidden;
  background: transparent;
  padding: 0.18rem;
}

.wa-message.is-inbound .wa-attachment-image,
.wa-message.is-outbound .wa-attachment-image {
  background: transparent;
}

.wa-image-preview {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #dfe5e7;
  cursor: pointer;
  padding: 0;
}

.wa-image-preview img {
  display: block;
  width: auto;
  max-width: min(292px, 68vw);
  max-height: 360px;
  object-fit: contain;
}

.wa-image-preview span {
  display: flex;
  width: 220px;
  max-width: 68vw;
  height: 170px;
  align-items: center;
  justify-content: center;
  color: #54656f;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.wa-attachment-audio {
  display: flex;
  width: min(330px, 100%);
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.58rem 0.7rem 0.5rem;
}

.wa-message.is-inbound .wa-attachment-audio {
  background: #ffffff;
}

.wa-message.is-outbound .wa-attachment-audio {
  background: rgba(255, 255, 255, 0.62);
}

.wa-audio-play {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #111b21;
  color: #ffffff;
  cursor: pointer;
}

.wa-audio-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.wa-audio-track {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.2rem;
}

.wa-audio-progress {
  width: 100%;
  min-width: 155px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  accent-color: #008069;
  background: repeating-linear-gradient(90deg, #d0d7dc 0 3px, transparent 3px 6px);
  cursor: pointer;
}

.wa-audio-progress::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.wa-audio-progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

.wa-audio-progress:disabled {
  cursor: default;
  opacity: 0.45;
}

.wa-audio-times {
  display: flex;
  justify-content: space-between;
  color: #667781;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wa-attachment-audio audio {
  display: none;
}

.wa-location-card {
  display: grid;
  width: min(300px, 100%);
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--wa-text);
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

.wa-message.is-inbound .wa-location-card {
  background: #ffffff;
}

.wa-message.is-outbound .wa-location-card {
  background: rgba(255, 255, 255, 0.62);
}

.wa-location-map {
  position: relative;
  display: block;
  height: 134px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, rgba(34, 197, 94, 0.22) 0 22%, transparent 22% 100%),
    linear-gradient(0deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.18)),
    #dbeafe;
}

.wa-location-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-location-road {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.22);
}

.wa-location-road.is-one {
  top: 34px;
  left: -18px;
  width: 220px;
  height: 16px;
  transform: rotate(-18deg);
}

.wa-location-road.is-two {
  right: -28px;
  bottom: 30px;
  width: 210px;
  height: 15px;
  transform: rotate(24deg);
}

.wa-location-road.is-three {
  top: -12px;
  left: 128px;
  width: 15px;
  height: 170px;
  transform: rotate(12deg);
}

.wa-location-pin {
  position: absolute;
  top: 46px;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: #ef4444;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
  transform: translateX(-50%) rotate(-45deg);
}

.wa-location-pin::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.wa-location-body {
  display: grid;
  gap: 0.08rem;
  padding: 0.62rem 0.7rem;
}

.wa-location-body strong,
.wa-location-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-location-body strong {
  font-size: 0.86rem;
  font-weight: 800;
}

.wa-location-body span {
  color: #667781;
  font-size: 0.74rem;
}

.wa-media-modal {
  position: fixed;
  z-index: 1300;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wa-media-modal[hidden] {
  display: none;
}

.wa-media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
}

.wa-media-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(900px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
}

.wa-media-modal-dialog img,
.wa-media-modal-dialog video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 9rem);
  min-height: 0;
  object-fit: contain;
  background: #ffffff;
}

.wa-media-modal-dialog video {
  background: #000000;
}

.wa-media-modal-dialog img[hidden],
.wa-media-modal-dialog video[hidden] {
  display: none;
}

.wa-media-modal-close {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #173153;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.wa-media-modal-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.wa-media-modal-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
}

.wa-media-modal-info {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.wa-media-modal-info strong,
.wa-media-modal-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-media-modal-info strong {
  color: #173153;
  font-size: 0.95rem;
}

.wa-media-modal-info span {
  color: #6b7d91;
  font-size: 0.8rem;
}

.wa-media-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.wa-media-modal-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd7e3;
  border-radius: 7px;
  color: #173153;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.wa-media-modal-actions a:hover {
  background: #f4f7fb;
}

body.wa-media-modal-open {
  overflow: hidden;
}

.wa-modal {
  position: fixed;
  z-index: 1290;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
}

.wa-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(780px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d7e1ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.32);
}

.wa-products-modal-dialog {
  width: min(1040px, calc(100vw - 2rem));
}

.wa-products-catalog-modal-dialog {
  width: min(1180px, calc(100vw - 2rem));
  height: min(860px, calc(100vh - 0.75rem));
}

.wa-forward-modal-dialog {
  width: min(560px, calc(100vw - 2rem));
}

.wa-modal-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dbe2e8;
  background: #f7f9fb;
  padding: 0 1rem;
}

.wa-modal-head h3 {
  margin: 0;
  color: #111b21;
  font-size: 1rem;
  font-weight: 800;
}

.wa-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}

.wa-client-modal-grid {
  display: grid;
  gap: 1rem;
}

.wa-client-modal-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
}

.wa-client-modal-column {
  display: grid;
  min-width: 0;
  gap: 0.7rem;
}

.wa-client-modal-column h4 {
  margin: 0;
  color: #111b21;
  font-size: 0.94rem;
  font-weight: 800;
}

.wa-modal label {
  color: #3b4a54;
  font-size: 0.78rem;
  font-weight: 800;
}

.wa-modal input,
.wa-modal select {
  width: 100%;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--wa-text);
  padding: 0.65rem 0.75rem;
}

.wa-client-results {
  max-height: min(430px, calc(100vh - 265px));
}

.wa-client-modal-dialog .wa-result-main strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.wa-products-catalog-body {
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto minmax(0, auto) auto;
  gap: 0.55rem;
  overflow: hidden;
  background: #f6f8fb;
  padding: 0.75rem;
}

.wa-products-catalog-toolbar {
  display: grid;
  gap: 0.5rem;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.65rem 0.75rem;
}

.wa-products-catalog-top-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 360px);
  gap: 0.65rem;
}

.wa-products-catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.wa-products-mobile-filter-btn {
  display: none;
}

.wa-products-filter-sheet-content {
  display: contents;
}

.wa-products-catalog-category {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.wa-products-catalog-category select {
  min-height: 42px;
}

.wa-products-mobile-filter-label {
  display: none;
}

.wa-products-catalog-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.wa-products-catalog-filters label {
  display: inline-grid;
  min-width: 128px;
  gap: 0;
}

.wa-products-catalog-filters label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.wa-products-catalog-filters .btn-dark,
.wa-products-catalog-filters .btn-ghost {
  min-height: 38px;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
}

.wa-products-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.wa-products-catalog-total {
  border-bottom: 2px solid #173153;
  color: #111b21;
  padding: 0.12rem 0.45rem 0.3rem;
  font-size: 0.86rem;
  font-weight: 900;
}

.wa-products-catalog-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.28rem;
}

.wa-products-catalog-chips span {
  border: 1px solid #c7d9f1;
  border-radius: 999px;
  background: #f3f8ff;
  color: #24476f;
  padding: 0.26rem 0.58rem;
  font-size: 0.72rem;
}

.wa-products-catalog-table-wrap {
  align-self: stretch;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.wa-products-catalog-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #09203f;
  font-size: 0.86rem;
}

.wa-products-catalog-table th,
.wa-products-catalog-table td {
  border-top: 1px solid #edf2f7;
  padding: 0.82rem;
  vertical-align: middle;
}

.wa-products-catalog-table thead th {
  border-top: 0;
  background: #edf3fa;
  color: #173153;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.wa-products-catalog-table tbody tr:hover {
  background: #f8fbff;
}

.wa-products-catalog-table tbody tr.is-selected {
  background: #eef8f3;
}

.wa-products-catalog-table tbody tr.is-disabled {
  opacity: 0.62;
}

.wa-products-catalog-select {
  width: 46px;
  text-align: center !important;
}

.wa-products-catalog-select input {
  width: 16px;
  height: 16px;
}

.wa-products-catalog-price,
.wa-products-catalog-stock {
  width: 132px;
  text-align: right !important;
  white-space: nowrap;
}

.wa-products-catalog-product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.wa-products-catalog-product .wa-result-main strong {
  white-space: normal;
}

.wa-products-catalog-product small {
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 800;
}

.wa-products-mobile-metric-label {
  display: none;
}

.wa-products-mobile-metric-value {
  display: inline;
}

.wa-products-catalog-empty {
  color: #667781;
  padding: 2rem !important;
  text-align: center;
}

.wa-products-catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0.15rem 0;
}

.wa-products-catalog-pagination button,
.wa-products-catalog-pagination span {
  border: 1px solid #cbd7e3;
  border-radius: 999px;
  background: #ffffff;
  color: #173153;
  padding: 0.3rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.wa-products-catalog-pagination button {
  cursor: pointer;
}

.wa-products-catalog-pagination button.is-current {
  border-color: #173153;
  background: #173153;
  color: #ffffff;
}

.wa-products-catalog-pagination span.is-dots,
.wa-products-catalog-pagination span.is-state {
  border: 0;
  background: transparent;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.wa-products-catalog-pagination span.is-state {
  color: #49647f;
  font-weight: 700;
}

.wa-products-catalog-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wa-products-send-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.55rem;
  min-height: 0;
  max-height: min(315px, 38vh);
  overflow: hidden;
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.55rem;
}

.wa-products-send-panel[hidden] {
  display: none;
}

.wa-products-send-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.wa-products-send-actions .btn-dark,
.wa-products-send-actions .btn-ghost {
  min-height: 38px;
  border-radius: 7px;
  padding: 0.48rem 0.9rem;
}

.wa-payment-box {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  background: #ffffff;
}

.wa-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e5eaef;
  padding: 0.5rem 0.65rem;
}

.wa-payment-head strong {
  color: #111b21;
  font-size: 0.88rem;
}

.wa-payment-head .btn-dark {
  min-height: 34px;
  padding: 0.42rem 0.65rem;
}

.wa-payment-table-wrap {
  overflow: auto;
}

.wa-payment-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  color: #26343d;
  font-size: 0.78rem;
}

.wa-payment-table th,
.wa-payment-table td {
  border-top: 1px solid #edf2f6;
  padding: 0.52rem;
  text-align: left;
  vertical-align: middle;
}

.wa-payment-table thead th {
  border-top: 0;
  background: #edf3fa;
  color: #334e68;
  font-weight: 900;
}

.wa-payment-table .option-index {
  width: 34px;
}

.wa-payment-table .option-preview {
  color: #667781;
  min-width: 210px;
}

.wa-payment-table input,
.wa-payment-table select {
  min-height: 34px;
  border-radius: 7px;
  padding: 0.35rem 0.45rem;
}

.wa-payment-remove {
  border: 1px solid #f0bbb6;
  border-radius: 7px;
  background: #fff5f5;
  color: #b42318;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.38rem 0.52rem;
}

.wa-products-quote-modal-dialog {
  width: min(1040px, calc(100vw - 2rem));
  height: min(760px, calc(100vh - 1.25rem));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.wa-products-quote-modal-dialog .wa-modal-head {
  align-items: stretch;
  padding: 0.7rem 1rem;
}

.wa-products-quote-modal-dialog .wa-modal-head > div {
  display: grid;
  align-content: center;
  gap: 0.45rem;
}

.wa-products-steps {
  display: inline-flex;
  width: max-content;
  overflow: hidden;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  background: #ffffff;
}

.wa-products-steps button {
  min-width: 108px;
  border: 0;
  border-right: 1px solid #dbe5ef;
  background: transparent;
  color: #49647f;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.42rem 0.8rem;
}

.wa-products-steps button:last-child {
  border-right: 0;
}

.wa-products-steps button.is-active {
  background: #173153;
  color: #ffffff;
}

.wa-products-quote-body {
  display: grid;
  min-height: 0;
  overflow: hidden;
  background: #f6f8fb;
  padding: 0.75rem;
}

.wa-products-step-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.65rem;
}

.wa-products-step-panel[hidden] {
  display: none;
}

.wa-products-add-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 150px 150px;
  align-items: end;
  gap: 0.65rem;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem;
}

.wa-products-add-form > div,
.wa-products-add-form label {
  min-width: 0;
}

.wa-products-add-search {
  position: relative;
}

.wa-product-search-results {
  position: absolute;
  z-index: 4;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow: auto;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.wa-product-search-results[hidden] {
  display: none;
}

.wa-products-search-result {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
  color: #10243d;
  cursor: pointer;
  padding: 0.58rem 0.7rem;
  text-align: left;
}

.wa-products-search-result:hover,
.wa-products-search-result:focus-visible,
.wa-products-search-result.is-active {
  background: #f3f7fb;
  outline: none;
}

.wa-products-search-empty {
  color: #667781;
  font-size: 0.86rem;
  padding: 0.85rem;
}

.wa-products-items-shell {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #ffffff;
}

.wa-products-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e7edf4;
  padding: 0.65rem 0.8rem;
}

.wa-products-items-head strong {
  color: #111b21;
  font-size: 0.92rem;
}

.wa-products-items-head span {
  color: #667781;
  font-size: 0.76rem;
  font-weight: 800;
}

.wa-products-items-list {
  min-height: 0;
  overflow: auto;
  padding: 0.55rem;
}

.wa-products-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: #667781;
  font-size: 0.9rem;
  text-align: center;
}

.wa-product-item {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1fr) 84px 132px 132px auto;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid #edf2f7;
  padding: 0.68rem 0.25rem;
}

.wa-product-item:last-child {
  border-bottom: 0;
}

.wa-product-item-media {
  display: flex;
  justify-content: center;
}

.wa-product-item-thumb {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  color: #66819e;
  cursor: zoom-in;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0;
}

.wa-product-item-thumb.is-empty {
  cursor: default;
}

.wa-product-item-thumb img,
.wa-products-search-result .wa-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wa-product-item-main {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.wa-product-item-main strong {
  color: #10243d;
  font-size: 0.88rem;
  line-height: 1.28;
}

.wa-product-item-main span,
.wa-product-item-subtotal span,
.wa-product-item label span {
  color: #667781;
  font-size: 0.72rem;
  font-weight: 800;
}

.wa-product-item label {
  display: grid;
  gap: 0.25rem;
}

.wa-product-item input {
  min-height: 38px;
  padding: 0.45rem 0.55rem;
}

.wa-product-item-subtotal {
  display: grid;
  gap: 0.16rem;
}

.wa-product-item-subtotal strong {
  color: #10243d;
  font-size: 0.9rem;
  white-space: nowrap;
}

.wa-product-item-mobile-summary {
  display: none;
}

.wa-product-item-mobile-actions {
  display: none;
}

.wa-product-item-edit {
  display: none;
  border: 1px solid #cbd7e3;
  border-radius: 7px;
  background: #ffffff;
  color: #173153;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.48rem 0.58rem;
}

.wa-product-item-edit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.wa-product-item-remove {
  border: 1px solid #f0bbb6;
  border-radius: 7px;
  background: #fff5f5;
  color: #b42318;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.48rem 0.58rem;
}

.wa-product-item-row-remove > span[aria-hidden] {
  display: none;
}

.wa-products-primary-action {
  min-width: 150px;
  min-height: 42px;
  border-radius: 7px;
  padding: 0.55rem 1rem;
}

.wa-action-icon {
  display: none;
  line-height: 1;
}

.wa-products-quote-footer {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid #dbe2e8;
  background: #ffffff;
  padding: 0.75rem 1rem;
}

.wa-products-quote-footer [data-wa-products-back] {
  grid-column: 1;
}

.wa-products-total {
  display: grid;
  grid-column: 2;
  justify-items: start;
  gap: 0.1rem;
}

.wa-products-quote-footer[data-wa-products-step="payment"] .wa-products-total {
  display: none;
}

.wa-products-total span {
  color: #667781;
  font-size: 0.78rem;
  font-weight: 800;
}

.wa-products-total strong {
  color: #111b21;
  font-size: 1.55rem;
  line-height: 1;
}

.wa-products-quote-footer .btn-dark,
.wa-products-quote-footer .btn-ghost {
  min-height: 42px;
  border-radius: 7px;
  padding: 0.55rem 1rem;
}

.wa-products-quote-footer .wa-products-primary-action {
  grid-column: 3;
  justify-self: end;
}

body.wa-modal-open {
  overflow: hidden;
}

.wa-composer {
  position: relative;
  z-index: 2;
  background: #f0f2f5;
  border-top: 1px solid #dbe2e8;
  padding: 0.65rem 0.85rem;
}

.wa-attach-menu,
.wa-emoji-panel,
.wa-quick-reply-panel {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 0.45rem);
  border: 1px solid #d7dee5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(11, 20, 26, 0.18);
}

.wa-attach-menu[hidden],
.wa-emoji-panel[hidden],
.wa-quick-reply-panel[hidden],
.wa-recorder[hidden] {
  display: none;
}

.wa-attach-menu {
  left: 0.85rem;
  width: 220px;
  padding: 0.35rem;
}

.wa-attach-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111b21;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.65rem 0.7rem;
  text-align: left;
}

.wa-attach-menu button:hover {
  background: #f0f2f5;
}

.wa-attach-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
}

.wa-attach-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.wa-attach-icon.is-document {
  background: #6c5ce7;
}

.wa-attach-icon.is-photo {
  background: #0984e3;
}

.wa-attach-icon.is-camera {
  background: #e84393;
}

.wa-attach-icon.is-audio {
  background: #ff7f50;
}

.wa-emoji-panel {
  left: 4.5rem;
  width: min(430px, calc(100% - 5.4rem));
  max-height: min(360px, calc(100vh - 11rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.45rem;
  overflow: hidden;
  padding: 0.55rem;
  font-family: "TwemojiFlags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Noto Emoji", sans-serif;
}

.wa-emoji-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  border-radius: 999px;
  background: #f0f2f5;
  padding: 0.18rem;
}

.wa-emoji-tabs button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #54656f;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.42rem 0.5rem;
}

.wa-emoji-tabs button.is-active {
  background: #ffffff;
  color: #008069;
  box-shadow: 0 1px 4px rgba(11, 20, 26, 0.12);
}

.wa-emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.28rem;
  overflow-y: auto;
  padding-right: 0.1rem;
}

.wa-emoji-grid[hidden],
.wa-sticker-panel[hidden] {
  display: none;
}

.wa-emoji-grid button {
  display: inline-flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 1.22rem;
}

.wa-emoji-grid button:hover,
.wa-emoji-tabs button:hover,
.wa-sticker-actions button:hover,
.wa-sticker-item button:hover {
  background: #f0f2f5;
}

.wa-sticker-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(110px, 1fr) auto;
  gap: 0.45rem;
  overflow: hidden;
}

.wa-sticker-actions {
  display: flex;
  justify-content: flex-end;
}

.wa-sticker-actions button {
  border: 0;
  border-radius: 999px;
  background: #e7fce3;
  color: #008069;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.45rem 0.7rem;
}

.wa-sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.1rem;
}

.wa-sticker-item {
  position: relative;
  min-width: 0;
}

.wa-sticker-item > button:first-child {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f7f8fa;
  cursor: pointer;
  overflow: hidden;
  padding: 0.28rem;
}

.wa-sticker-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wa-sticker-item span {
  position: absolute;
  right: 0.24rem;
  bottom: 0.22rem;
  border-radius: 999px;
  background: rgba(17, 27, 33, 0.66);
  color: #ffffff;
  font-family: var(--font-sans, Arial, sans-serif);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.14rem 0.22rem;
}

.wa-sticker-delete {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dee5;
  border-radius: 50%;
  background: #ffffff;
  color: #54656f;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(11, 20, 26, 0.16);
}

.wa-attachment-sticker {
  display: inline-flex;
  width: fit-content;
  max-width: min(180px, 58vw);
  min-width: 88px;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

.wa-message.is-inbound .wa-attachment-sticker,
.wa-message.is-outbound .wa-attachment-sticker {
  background: transparent;
}

.wa-attachment-sticker img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 58vw);
  max-height: 180px;
  object-fit: contain;
}

.wa-message.is-sticker-message .wa-bubble {
  max-width: min(220px, 64vw);
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.wa-message.is-sticker-message .wa-message-menu-trigger {
  top: 0.12rem;
  right: 0.12rem;
  background: rgba(255, 255, 255, 0.86);
  opacity: 0;
}

.wa-message.is-sticker-message .wa-bubble:hover .wa-message-menu-trigger,
.wa-message.is-sticker-message .wa-message-menu-trigger:focus-visible {
  opacity: 1;
}

.wa-message.is-sticker-message .wa-message-meta {
  display: inline-flex;
  width: max-content;
  margin-top: -0.15rem;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #667781;
  padding: 0.12rem 0.36rem;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.08);
}

.wa-attachment-sticker span {
  display: inline-flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f0f2f5;
  color: #54656f;
  font-size: 0.78rem;
  font-weight: 900;
}

.wa-quick-reply-panel {
  left: 4.5rem;
  width: min(560px, calc(100% - 5.4rem));
  max-height: min(500px, calc(100vh - 10rem));
  display: grid;
  grid-template-rows: auto minmax(96px, 1fr) auto;
  overflow: hidden;
}

.wa-quick-reply-panel[data-mode="insert"] {
  grid-template-rows: minmax(0, 1fr);
  width: min(440px, calc(100% - 5.4rem));
}

.wa-quick-reply-panel[data-mode="insert"] .wa-quick-reply-head,
.wa-quick-reply-panel[data-mode="insert"] .wa-quick-reply-remove,
.wa-quick-reply-panel[data-mode="insert"] .wa-quick-reply-form {
  display: none;
}

.wa-quick-reply-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  border-bottom: 1px solid #e3e8ee;
  padding: 0.55rem;
}

.wa-quick-reply-head input,
.wa-quick-reply-form input,
.wa-quick-reply-form textarea {
  min-width: 0;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  background: #ffffff;
  color: var(--wa-text);
  font-size: 0.86rem;
  padding: 0.55rem 0.65rem;
}

.wa-quick-reply-head button,
.wa-quick-reply-form button {
  min-height: 36px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
}

.wa-quick-reply-head button {
  border: 0;
  background: var(--wa-green-dark);
  color: #ffffff;
  cursor: pointer;
  padding: 0 0.8rem;
}

.wa-quick-reply-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem;
}

.wa-quick-reply-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem;
  border-radius: 7px;
}

.wa-quick-reply-item:hover {
  background: #f0f2f5;
}

.wa-quick-reply-item > button:first-child {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
  border: 0;
  background: transparent;
  color: #111b21;
  cursor: pointer;
  font-family: inherit;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.wa-quick-reply-item > button:first-child > span:first-child {
  color: #008069;
  font-size: 0.76rem;
  font-weight: 800;
}

.wa-quick-reply-text {
  color: var(--wa-text);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.wa-quick-reply-text strong,
.wa-format-preview strong {
  font-weight: 700;
}

.wa-quick-reply-text code,
.wa-format-preview code {
  border-radius: 4px;
  background: rgba(11, 20, 26, 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 0.05rem 0.22rem;
}

.wa-render-list {
  display: grid;
  gap: 0.14rem;
  margin: 0.12rem 0;
}

.wa-render-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.42rem;
  align-items: start;
}

.wa-render-list-marker {
  min-width: 1.35rem;
  text-align: right;
  font-weight: 750;
}

.wa-render-list-content {
  min-width: 0;
}

.wa-quick-reply-remove,
.wa-list-remove {
  width: 32px;
  height: 32px;
  align-self: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
}

.wa-quick-reply-remove:hover,
.wa-list-remove:hover {
  background: #fee2e2;
  color: #b42318;
}

.wa-quick-reply-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border-top: 1px solid #e3e8ee;
  padding: 0.6rem;
}

.wa-quick-reply-form[hidden] {
  display: none;
}

.wa-quick-reply-text-shell {
  position: relative;
  grid-column: 1 / -1;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  background: #ffffff;
}

.wa-quick-reply-text-shell:focus-within {
  border-color: #9fc5f8;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.wa-quick-reply-editor {
  min-height: 96px;
  max-height: 150px;
  border-radius: 7px;
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.38;
}

.wa-quick-reply-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 0.45rem;
}

.wa-quick-reply-form .wa-panel-feedback {
  grid-column: 1 / -1;
}

.wa-format-help-link {
  width: 38px;
  min-height: 34px;
  justify-self: start;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  background: #ffffff;
  color: #3b4a54;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 850;
}

.wa-format-help-link:hover {
  border-color: #a9d8ce;
  color: #008069;
}

.wa-format-preview {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wa-format-preview[hidden] {
  display: none;
}

.wa-quick-reply-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  max-height: 110px;
  overflow: hidden;
  border-radius: 7px;
  background: transparent;
  color: var(--wa-text);
  font-size: 0.86rem;
  line-height: normal;
  padding: 0.55rem 0.65rem;
  pointer-events: none;
}

.wa-recorder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.6rem;
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.65rem;
}

.wa-recorder-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  color: #3b4a54;
  font-size: 0.84rem;
}

.wa-recorder-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-recorder-main time {
  color: #667781;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.wa-recorder-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.wa-recorder.is-recording .wa-recorder-dot {
  background: #e11d48;
  box-shadow: 0 0 0 5px rgba(225, 29, 72, 0.12);
}

.wa-recorder audio {
  grid-column: 1 / -1;
  width: 100%;
}

.wa-recorder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.wa-recorder-btn {
  min-height: 34px;
  border: 1px solid #cbd7e3;
  border-radius: 7px;
  background: #ffffff;
  color: #26343d;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.65rem;
}

.wa-recorder-btn.is-primary {
  border-color: #a7f3d0;
  background: #dcfce7;
  color: #047857;
}

.wa-recorder-btn.is-send {
  border-color: var(--wa-green-dark);
  background: var(--wa-green-dark);
  color: #ffffff;
}

.wa-recorder-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wa-composer form[data-wa-send-form] {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
}

.wa-composer-shortcuts,
.wa-composer-message-row {
  display: contents;
}

.wa-format-help {
  position: absolute;
  left: 8.4rem;
  bottom: calc(100% + 0.45rem);
  z-index: 6;
  display: grid;
  width: min(250px, calc(100% - 9.2rem));
  gap: 0.24rem;
  border: 1px solid #d7dee5;
  border-radius: 8px;
  background: #ffffff;
  color: #111b21;
  box-shadow: 0 18px 45px rgba(11, 20, 26, 0.18);
  font-size: 0.82rem;
  line-height: 1.34;
  padding: 0.65rem 0.75rem;
}

.wa-format-help[hidden] {
  display: none;
}

.wa-format-help strong {
  font-size: 0.83rem;
}

.wa-format-help span {
  color: #3b4a54;
}

.wa-format-help code {
  border-radius: 4px;
  background: #eef2f6;
  padding: 0.05rem 0.22rem;
}

.wa-format-help-toggle span {
  font-size: 0.82rem;
  font-weight: 900;
}

.wa-composer-input-shell {
  position: relative;
  min-width: 0;
  flex: 1;
  border-radius: 22px;
  background: #ffffff;
}

.wa-composer-input-shell:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 168, 132, 0.18);
}

.wa-composer-editor {
  width: 100%;
  min-height: 44px;
  max-height: 132px;
  overflow-y: auto;
  outline: 0;
  border-radius: 22px;
  color: var(--wa-text);
  padding: 0.72rem 1rem;
  font-size: 0.94rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.wa-composer-editor:empty::before {
  content: attr(data-placeholder);
  color: #9aa6b2;
  pointer-events: none;
}

.wa-composer-line {
  min-height: 1.35em;
}

.wa-composer-line.is-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.42rem;
}

.wa-composer-list-marker {
  min-width: 1.35rem;
  color: var(--wa-text);
  font-weight: 750;
  text-align: right;
  user-select: none;
}

.wa-composer-line-content {
  min-width: 0;
}

.wa-composer-editor code {
  border-radius: 4px;
  background: rgba(11, 20, 26, 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 0.05rem 0.22rem;
}

.wa-reply-preview {
  flex: 1 0 100%;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.45rem;
  border-left: 4px solid #53bdeb;
  border-radius: 8px;
  background: #ffffff;
  color: #3b4a54;
  padding: 0.48rem 0.5rem 0.48rem 0.7rem;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.08);
}

.wa-reply-preview[hidden] {
  display: none;
}

.wa-reply-preview div {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.wa-reply-preview strong,
.wa-reply-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-reply-preview strong {
  color: #008069;
  font-size: 0.8rem;
  font-weight: 800;
}

.wa-reply-preview span {
  color: #54656f;
  font-size: 0.84rem;
}

.wa-reply-preview button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #54656f;
  cursor: pointer;
}

.wa-reply-preview button:hover {
  background: #edf2f7;
  color: #111b21;
}

.wa-reply-preview svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.wa-paste-preview {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.65rem;
}

.wa-paste-preview[hidden] {
  display: none;
}

.wa-paste-preview-main {
  position: relative;
  display: flex;
  min-height: 180px;
  max-height: min(360px, 46vh);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f7fafc;
}

.wa-paste-preview-main img {
  max-width: 100%;
  max-height: min(340px, 42vh);
  object-fit: contain;
}

.wa-paste-preview-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.wa-paste-preview-close:hover {
  background: #fee2e2;
  color: #b42318;
}

.wa-paste-preview-footer {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.wa-paste-preview-meta {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  color: #3b4a54;
}

.wa-paste-preview-meta strong,
.wa-paste-preview-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-paste-preview-meta strong {
  font-size: 0.86rem;
}

.wa-paste-preview-meta span {
  color: #667781;
  font-size: 0.76rem;
}

.wa-paste-preview textarea {
  min-height: 44px;
  max-height: 120px;
  min-width: 0;
  resize: none;
  border: 0;
  border-radius: 22px;
  background: #f0f2f5;
  color: var(--wa-text);
  padding: 0.72rem 1rem;
  font-size: 0.94rem;
  line-height: 1.35;
}

.wa-paste-preview textarea:focus {
  background: #ffffff;
}

.wa-composer-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: transparent;
  color: #54656f;
}

.wa-composer-btn:hover {
  background: #e3e8ec;
}

.wa-send-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--wa-green-dark);
  color: #ffffff;
}

.wa-send-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.wa-composer-error {
  margin: 0.45rem 3.2rem 0 6.5rem;
  color: #b42318;
  font-size: 0.78rem;
}

.wa-forward-selection-bar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #dbe2e8;
  background: #ffffff;
  padding: 0.65rem 1rem;
}

.wa-forward-selection-bar[hidden] {
  display: none;
}

.wa-forward-selection-bar strong {
  flex: 1;
  color: #111b21;
  font-size: 0.95rem;
}

.wa-forward-cancel,
.wa-forward-next {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.wa-forward-cancel {
  background: transparent;
  color: #111b21;
}

.wa-forward-cancel:hover {
  background: #f0f2f5;
}

.wa-forward-next {
  background: var(--wa-green-dark);
  color: #ffffff;
}

.wa-forward-next:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.wa-forward-cancel svg,
.wa-forward-next svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.wa-chat-empty {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f8f9fa;
  color: #54656f;
  text-align: center;
}

.wa-empty-illustration {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f3ef;
  color: var(--wa-green-dark);
}

.wa-empty-illustration svg {
  width: 78px;
  height: 78px;
  fill: currentColor;
}

.wa-chat-empty h2 {
  margin: 1rem 0 0;
  color: #3b4a54;
  font-size: 1.2rem;
}

.wa-action-drawer {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 92vw);
  background: #ffffff;
  border-left: 1px solid var(--wa-border);
  box-shadow: -18px 0 36px rgba(11, 20, 26, 0.18);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.18s ease;
}

.wa-action-drawer.is-open {
  transform: translateX(0);
}

.wa-action-drawer > header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: #f0f2f5;
  border-bottom: 1px solid #dbe2e8;
}

.wa-action-drawer h3 {
  margin: 0;
  color: var(--wa-text);
  font-size: 1rem;
  font-weight: 700;
}

.wa-action-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.wa-action-panel[hidden],
.wa-action-drawer[hidden],
.wa-sidebar-action-drawer[hidden],
.wa-chat-shell.hidden,
.wa-chat-empty.hidden {
  display: none;
}

.wa-sidebar-action-drawer {
  position: absolute;
  z-index: 14;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--wa-border);
  background: #ffffff;
  box-shadow: 18px 0 36px rgba(11, 20, 26, 0.16);
  transform: translateX(-100%);
  transition: transform 0.18s ease;
}

.wa-sidebar-action-drawer.is-open {
  transform: translateX(0);
}

.wa-sidebar-action-drawer > header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f0f2f5;
  border-bottom: 1px solid #dbe2e8;
}

.wa-sidebar-action-drawer h3,
.wa-sidebar-action-drawer p {
  margin: 0;
}

.wa-sidebar-action-drawer h3 {
  color: var(--wa-text);
  font-size: 1rem;
  font-weight: 800;
}

.wa-sidebar-action-drawer p {
  max-width: 270px;
  overflow: hidden;
  color: var(--wa-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-sidebar-action-drawer .wa-action-panel {
  min-height: 0;
  overflow-y: auto;
}

.wa-action-panel label {
  color: #3b4a54;
  font-size: 0.78rem;
  font-weight: 700;
}

.wa-action-panel input,
.wa-action-panel select {
  width: 100%;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--wa-text);
  padding: 0.65rem 0.75rem;
}

.wa-action-panel select[multiple] {
  min-height: 98px;
}

.wa-action-panel .btn-dark {
  border-radius: 8px;
  padding: 0.72rem 1rem;
}

.wa-list-membership {
  display: grid;
  gap: 0.45rem;
}

.wa-list-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.55rem 0.65rem;
}

.wa-list-check input {
  width: auto;
  padding: 0;
}

.wa-list-check span {
  min-width: 0;
  overflow: hidden;
  color: #111b21;
  font-size: 0.9rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-inline-create-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.wa-inline-create-list .btn-ghost {
  border-radius: 8px;
  padding-inline: 0.85rem;
}

.wa-panel-current {
  display: grid;
  gap: 0.12rem;
  border: 1px solid #d9e7ef;
  border-radius: 8px;
  background: #f7fafc;
  padding: 0.75rem;
}

.wa-panel-current strong {
  color: #111b21;
  font-size: 0.92rem;
}

.wa-panel-current span {
  color: #667781;
  font-size: 0.78rem;
  line-height: 1.35;
}

.wa-panel-separator {
  height: 1px;
  background: #e5eaef;
  margin: 0.15rem 0;
}

.wa-panel-results {
  display: grid;
  min-height: 120px;
  max-height: min(310px, calc(100vh - 390px));
  overflow-y: auto;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #ffffff;
}

.wa-panel-result {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-top: 1px solid #eef2f5;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  padding: 0.7rem;
  text-align: left;
}

.wa-panel-result:first-child {
  border-top: 0;
}

.wa-panel-result:hover,
.wa-panel-result.is-selected {
  background: #f0f2f5;
}

.wa-result-main {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.12rem;
}

.wa-result-main strong,
.wa-result-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-result-main strong {
  color: #111b21;
  font-size: 0.88rem;
  font-weight: 800;
}

.wa-result-main span {
  color: #667781;
  font-size: 0.76rem;
}

.wa-result-extra {
  color: #7a8a94 !important;
}

.wa-product-thumb {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #e7eef4;
  color: #46616d;
  font-size: 0.82rem;
  font-weight: 900;
}

.wa-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-products-search-result .wa-product-thumb img {
  object-fit: contain;
}

.wa-products-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  border: 1px solid #d9e7ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.45rem 0.65rem;
}

.wa-products-selected strong {
  color: #26343d;
  font-size: 0.88rem;
}

.wa-products-selected .row-actions-menu {
  margin-left: auto;
}

.wa-panel-feedback {
  margin: 0;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.wa-panel-feedback.is-error {
  color: #b42318;
}

.wa-forward-panel {
  min-height: calc(100% - 64px);
}

.wa-forward-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #e5eaef;
  padding-bottom: 0.75rem;
}

.wa-forward-summary strong {
  color: #26343d;
  font-size: 0.9rem;
}

.wa-forward-summary button {
  border: 1px solid #cbd7e3;
  border-radius: 999px;
  background: #ffffff;
  color: #173153;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
}

.wa-forward-summary button:hover {
  background: #f4f7fb;
}

.wa-forward-targets {
  display: grid;
  max-height: calc(100vh - 250px);
  min-height: 180px;
  overflow-y: auto;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #ffffff;
}

.wa-forward-target {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.wa-forward-target:hover {
  background: #f0f2f5;
}

.wa-forward-target.is-group .wa-avatar {
  background: #e7f3ef;
  color: #008069;
}

.wa-forward-target:disabled {
  cursor: wait;
  opacity: 0.65;
}

.wa-forward-feedback {
  margin: 0;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
}

.wa-forward-feedback.is-error {
  color: #b42318;
}

.wa-linked-tasks {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid #e5eaef;
  padding-top: 0.75rem;
}

.wa-linked-tasks a {
  border: 1px solid #dce5ed;
  border-radius: 8px;
  color: #1d4f7a;
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
}

@media (max-width: 920px) {
  body.app-route-atendimento .app-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 0.65rem;
  }

  .wa-workspace {
    display: block;
    height: 100%;
    min-height: 0;
  }

  .wa-sidebar {
    height: 100%;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 0;
  }

  .wa-chat {
    display: none;
    height: 100%;
    min-height: 0;
  }

  .wa-workspace.is-mobile-chat-open .wa-sidebar {
    display: none;
  }

  .wa-workspace.is-mobile-chat-open .wa-chat {
    display: block;
  }

  .wa-message-pane {
    padding: 0.85rem 0.8rem 1rem;
  }

  .wa-scroll-bottom-btn {
    right: 0.85rem;
    bottom: 5.35rem;
    width: 42px;
    height: 42px;
  }

  .wa-bubble {
    max-width: 88%;
    padding-right: 0.55rem;
  }

  .wa-message-menu-trigger {
    display: none;
  }

  .wa-message-action-menu,
  .wa-conversation-action-menu,
  .wa-conversation-bulk-menu {
    display: none;
  }

  .wa-conversation-selection-bar {
    min-height: 58px;
    padding: 0.4rem 0.45rem;
  }

  .wa-conversation-selection-bar strong {
    font-size: 1.05rem;
  }

  .wa-thread-menu-trigger {
    opacity: 0;
    pointer-events: none;
  }

  .wa-thread.has-followup-actions {
    min-height: 118px;
  }

  .wa-thread-followup-actions {
    left: 4.35rem;
    right: 0.85rem;
  }

  .wa-thread-followup-actions button {
    height: 30px;
    padding: 0 0.72rem;
  }

  .wa-workspace.is-conversation-selecting .wa-thread-menu-trigger {
    opacity: 1;
    pointer-events: auto;
  }

  .wa-message-selection-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 0.3rem;
    border-bottom: 1px solid #dbe2e8;
    background: #ffffff;
    color: #111b21;
    padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 0.45rem 0.35rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
  }

  .wa-message-selection-toolbar[hidden] {
    display: none;
  }

  .wa-message-selection-toolbar strong {
    flex: 1;
    font-size: 1.05rem;
  }

  .wa-selection-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111b21;
    cursor: pointer;
  }

  .wa-selection-btn:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
  }

  .wa-selection-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .wa-message.is-mobile-selected .wa-bubble {
    outline: 3px solid rgba(0, 168, 132, 0.3);
    outline-offset: 3px;
  }

  .wa-attachment-card {
    width: min(330px, 100%);
  }

  .wa-attachment-audio {
    width: 100%;
  }

  .wa-attachment-document,
  .wa-location-card {
    width: min(300px, 100%);
  }

  .wa-document-preview {
    height: 96px;
  }

  .wa-location-map {
    height: 122px;
  }

  .wa-image-preview img {
    max-width: min(292px, 76vw);
    max-height: 320px;
  }

  .wa-video-preview img {
    max-width: min(292px, 76vw);
    max-height: 320px;
  }

  .wa-video-preview > span:not(.wa-video-play-badge):not(.wa-video-duration) {
    max-width: 76vw;
  }

  .wa-media-modal {
    padding: 0.55rem;
  }

  .wa-media-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 1.1rem);
  }

  .wa-media-modal-dialog img,
  .wa-media-modal-dialog video {
    max-height: calc(100vh - 10.5rem);
  }

  .wa-modal {
    padding: 0.55rem;
  }

  .wa-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 1.1rem);
  }

  .wa-products-catalog-modal-dialog {
    height: calc(100vh - 1.1rem);
    max-height: calc(100vh - 1.1rem);
  }

  .wa-modal-head {
    min-height: 58px;
    padding: 0 0.75rem;
  }

  .wa-modal-body {
    padding: 0.75rem;
  }

  .wa-client-modal-grid {
    grid-template-columns: 1fr;
  }

  .wa-products-catalog-top-row {
    grid-template-columns: 1fr;
  }

  .wa-products-catalog-category {
    grid-column: 1;
    grid-row: auto;
  }

  .wa-products-catalog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wa-products-catalog-filters label {
    min-width: 0;
  }

  .wa-products-catalog-filters .btn-dark,
  .wa-products-catalog-filters .btn-ghost {
    width: 100%;
  }

  .wa-products-catalog-table {
    min-width: 700px;
  }

  .wa-products-selected {
    align-items: stretch;
    flex-direction: column;
  }

  .wa-products-selected .row-actions-menu {
    margin-left: 0;
  }

  .wa-products-send-actions {
    flex-direction: column-reverse;
  }

  .wa-client-results,
  .wa-forward-targets {
    max-height: 260px;
  }

  .wa-payment-table {
    min-width: 580px;
  }

  .wa-workspace.is-forwarding .wa-message {
    padding-left: 2.45rem;
  }

  .wa-forward-selection-bar {
    min-height: 60px;
    padding: 0.55rem 0.75rem;
  }

  .wa-media-modal-caption {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .wa-media-modal-actions {
    justify-content: stretch;
  }

  .wa-media-modal-actions a {
    flex: 1 1 0;
  }

  .wa-chat-head {
    align-items: center;
    gap: 0.45rem;
    min-height: 60px;
    padding: 0.5rem 0.55rem;
  }

  .wa-chat-contact {
    flex: 1 1 auto;
    gap: 0.5rem;
  }

  .wa-chat-contact h2 {
    font-size: 0.95rem;
  }

  .wa-chat-contact p {
    font-size: 0.74rem;
  }

  .wa-mobile-back {
    display: inline-flex;
  }

  .wa-avatar-large {
    width: 38px;
    height: 38px;
  }

  .wa-chat-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.1rem;
    max-width: none;
    overflow: visible;
    scrollbar-width: none;
  }

  .wa-chat-actions > :not(.wa-chat-actions-menu-trigger) {
    display: none !important;
  }

  .wa-icon-btn.wa-chat-actions-menu-trigger {
    display: inline-flex;
  }

  .wa-chat-actions::-webkit-scrollbar {
    display: none;
  }

  .wa-icon-btn {
    width: 36px;
    height: 36px;
  }

  .wa-icon-btn svg,
  .wa-composer-btn svg,
  .wa-send-btn svg {
    width: 20px;
    height: 20px;
  }

  .wa-composer {
    padding: 0.5rem 0.55rem;
  }

  .wa-composer form[data-wa-send-form] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    align-items: stretch;
  }

  .wa-composer-shortcuts {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .wa-composer-message-row {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    gap: 0.45rem;
  }

  .wa-composer-message-row .wa-composer-input-shell {
    flex: 1 1 auto;
  }

  .wa-format-help {
    left: 0.65rem;
    width: calc(100% - 1.3rem);
  }

  .wa-composer-editor {
    min-height: 42px;
    padding: 0.65rem 0.85rem;
  }

  .wa-paste-preview {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
  }

  .wa-paste-preview-main {
    min-height: 150px;
    max-height: min(300px, 42vh);
  }

  .wa-paste-preview-main img {
    max-height: min(280px, 38vh);
  }

  .wa-paste-preview-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .wa-paste-preview-meta {
    grid-column: 1 / -1;
  }

  .wa-paste-preview textarea {
    min-height: 42px;
    padding: 0.65rem 0.85rem;
  }

  .wa-composer-btn,
  .wa-send-btn {
    width: 42px;
    height: 42px;
  }

  .wa-attach-menu {
    left: 0.65rem;
    width: min(230px, calc(100% - 1.3rem));
  }

  .wa-emoji-panel {
    left: 0.65rem;
    width: calc(100% - 1.3rem);
    max-height: min(290px, calc(100vh - 9rem));
  }

  .wa-emoji-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

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

  .wa-quick-reply-panel {
    left: 0.65rem;
    width: calc(100% - 1.3rem);
    max-height: min(460px, calc(100vh - 8rem));
  }

  .wa-quick-reply-head {
    grid-template-columns: 1fr auto;
  }

  .wa-quick-reply-form {
    grid-template-columns: 1fr;
  }

  .wa-recorder {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .wa-recorder-actions {
    justify-content: stretch;
  }

  .wa-recorder-btn {
    flex: 1 1 calc(50% - 0.35rem);
  }

  .wa-composer-error {
    margin-left: 0;
    margin-right: 0;
  }

}

@media (max-width: 760px) {
  .wa-products-catalog-shell {
    align-items: stretch;
    padding: 0;
  }

  .wa-products-catalog-modal-dialog {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .wa-products-catalog-body {
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    padding: 0.75rem;
  }

  .wa-products-catalog-toolbar {
    padding: 0.75rem;
  }

  .wa-products-catalog-top-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .wa-products-catalog-search {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .wa-products-mobile-filter-btn {
    display: inline-flex;
    position: relative;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0;
    color: #17375f;
  }

  .wa-products-mobile-filter-btn .catalog-filter-icon {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }

  .wa-products-mobile-filter-btn strong {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    display: inline-flex;
    min-width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #17375f;
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1;
  }

  .wa-products-filter-sheet-content {
    display: none;
  }

  .app-bottom-sheet-body .wa-products-filter-sheet-content {
    display: grid;
    gap: 0.75rem;
  }

  .app-bottom-sheet-body .wa-products-catalog-category,
  .app-bottom-sheet-body .wa-products-catalog-filters {
    grid-column: auto;
    grid-row: auto;
  }

  .app-bottom-sheet-body .wa-products-mobile-filter-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #314869;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .app-bottom-sheet-body .wa-products-catalog-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .app-bottom-sheet-body .wa-products-catalog-filters label {
    min-width: 0;
  }

  .app-bottom-sheet-body .wa-products-catalog-filters label span {
    position: static;
    width: max-content;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .app-bottom-sheet-body .wa-products-catalog-filters .btn-dark,
  .app-bottom-sheet-body .wa-products-catalog-filters .btn-ghost {
    width: 100%;
    min-height: 42px;
  }

  .wa-products-catalog-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .wa-products-catalog-chips {
    justify-content: flex-start;
    max-width: 100%;
  }

  .wa-products-catalog-chips span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wa-products-catalog-table-wrap {
    min-height: 0;
    overflow-x: hidden;
  }

  .wa-products-catalog-table,
  .wa-products-catalog-table thead,
  .wa-products-catalog-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .wa-products-catalog-table thead tr {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas: "select product";
    align-items: center;
    column-gap: 0.6rem;
    width: 100%;
    padding: 0.42rem 0;
  }

  .wa-products-catalog-table tbody > tr.wa-products-catalog-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas:
      "select product"
      ". price"
      ". stock";
    align-items: center;
    column-gap: 0.6rem;
    row-gap: 0.32rem;
    width: 100%;
    border-top: 1px solid #edf2f7;
    padding: 0.42rem 0;
  }

  .wa-products-catalog-table th,
  .wa-products-catalog-table td {
    display: block;
    border-top: 0;
    padding: 0.32rem 0.55rem;
  }

  .wa-products-catalog-table thead .wa-products-catalog-price,
  .wa-products-catalog-table thead .wa-products-catalog-stock {
    display: none;
  }

  .wa-products-catalog-select {
    grid-area: select;
    width: auto;
    justify-self: start;
    padding-left: 0.75rem !important;
    padding-right: 0 !important;
  }

  .wa-products-catalog-name-cell {
    grid-area: product;
    min-width: 0;
  }

  .wa-products-catalog-price,
  .wa-products-catalog-stock {
    width: auto;
    min-width: 0;
    text-align: left !important;
    white-space: normal;
  }

  .wa-products-catalog-price {
    grid-area: price;
  }

  .wa-products-catalog-stock {
    grid-area: stock;
    padding-bottom: 0.68rem !important;
  }

  .wa-products-mobile-metric-label {
    display: block;
    margin-bottom: 0.08rem;
    color: #5d789f;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .wa-products-mobile-metric-value {
    display: block;
    color: #17375f;
    font-weight: 800;
  }

  .wa-products-catalog-empty {
    display: block;
    width: 100%;
  }

  .wa-products-selected {
    gap: 0.65rem;
  }

  .wa-payment-head {
    align-items: stretch;
    flex-direction: column;
  }

  .wa-payment-head .btn-dark {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .wa-products-add-form {
    grid-template-columns: minmax(0, 1fr) 96px 132px;
  }

  .wa-products-add-form .btn-dark {
    grid-column: 1 / -1;
    width: 100%;
  }

  .wa-product-item {
    grid-template-columns: 58px minmax(0, 1fr) 86px 124px;
    grid-template-areas:
      "media main main main"
      "media qty price subtotal"
      "media remove remove remove";
    align-items: end;
  }

  .wa-product-item-media {
    grid-area: media;
    align-self: start;
  }

  .wa-product-item-main {
    grid-area: main;
  }

  .wa-product-item label:first-of-type {
    grid-area: qty;
  }

  .wa-product-item label:last-of-type {
    grid-area: price;
  }

  .wa-product-item-subtotal {
    grid-area: subtotal;
  }

  .wa-product-item-remove {
    grid-area: remove;
    width: max-content;
  }
}

@media (max-width: 760px) {
  .wa-products-quote-shell {
    align-items: stretch;
    padding: 0;
  }

  .wa-products-quote-modal-dialog {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .wa-products-quote-modal-dialog .wa-modal-head {
    min-height: 78px;
    padding: 0.58rem 0.7rem;
  }

  .wa-products-steps {
    width: 100%;
  }

  .wa-products-steps button {
    flex: 1 1 0;
    min-width: 0;
  }

  .wa-products-quote-body {
    padding: 0.6rem;
  }

  .wa-products-add-form {
    grid-template-columns: 72px minmax(0, 1fr) 48px;
    gap: 0.5rem;
    padding: 0.62rem;
  }

  .wa-products-add-form > div > label {
    display: none;
  }

  .wa-products-add-search {
    grid-column: 1 / -1;
  }

  .wa-products-add-form > div:nth-of-type(2) {
    grid-column: 1;
  }

  .wa-products-add-form > div:nth-of-type(3) {
    grid-column: 2;
  }

  .wa-products-add-form .btn-dark {
    grid-column: 3;
    justify-self: end;
    width: 48px;
    min-width: 48px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .wa-products-add-form .wa-action-icon {
    display: inline;
    font-size: 1.35rem;
    font-weight: 900;
  }

  .wa-products-add-form .wa-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .wa-products-add-form input {
    min-height: 40px;
    padding: 0.52rem 0.62rem;
  }

  .wa-product-search-results {
    max-height: 245px;
  }

  .wa-products-items-list {
    padding: 0.35rem 0.45rem;
  }

  .wa-product-item {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "media main"
      "summary summary";
    gap: 0.48rem;
    padding: 0.72rem 0.1rem;
  }

  .wa-product-item label,
  .wa-product-item-subtotal {
    display: none;
  }

  .wa-product-item-mobile-summary {
    grid-area: summary;
    display: flex;
    flex-wrap: wrap;
    gap: 0.24rem 0.7rem;
    color: #526b84;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .wa-product-item-mobile-bottom {
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .wa-product-item-mobile-bottom strong {
    min-width: 0;
    color: #10243d;
    font-size: 0.88rem;
  }

  .wa-product-item-mobile-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.35rem;
  }

  .wa-product-item-mobile-actions .wa-product-item-icon-btn {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .wa-product-item-mobile-actions .wa-product-item-icon-btn > span:not([aria-hidden]) {
    display: none;
  }

  .wa-product-item > .wa-product-item-row-edit,
  .wa-product-item > .wa-product-item-row-remove {
    display: none;
  }

  .wa-products-quote-footer {
    grid-template-columns: 1fr auto;
    padding: 0.65rem calc(0.7rem + env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) calc(0.7rem + env(safe-area-inset-left));
  }

  .wa-products-total {
    grid-column: 1;
    justify-items: start;
  }

  .wa-products-quote-footer [data-wa-products-back] {
    grid-column: 1;
    grid-row: 2;
  }

  .wa-products-quote-footer[data-wa-products-step="payment"] [data-wa-products-back] {
    grid-row: 1;
  }

  .wa-products-quote-footer .wa-products-primary-action {
    grid-column: 2;
    grid-row: 1;
  }

  .wa-products-total strong {
    font-size: 1.42rem;
  }

  .wa-products-quote-footer .btn-ghost,
  .wa-products-quote-footer .btn-dark {
    width: min(152px, 42vw);
  }

  .wa-products-quote-footer .btn-dark {
    justify-self: end;
  }

  .wa-payment-table-wrap {
    overflow: visible;
  }

  .wa-payment-table,
  .wa-payment-table tbody,
  .wa-payment-table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .wa-payment-table thead {
    display: none;
  }

  .wa-payment-table tr {
    display: grid;
    grid-template-columns: 28px minmax(0, 0.85fr) minmax(0, 1fr) auto;
    grid-template-areas:
      "idx method value remove"
      ". preview preview preview";
    align-items: center;
    gap: 0.42rem;
    border-top: 1px solid #edf2f6;
    padding: 0.55rem 0.45rem;
  }

  .wa-payment-table td {
    display: block;
    border-top: 0;
    min-width: 0;
    padding: 0;
  }

  .wa-payment-table td:nth-child(1) {
    grid-area: idx;
  }

  .wa-payment-table td:nth-child(2) {
    grid-area: method;
  }

  .wa-payment-table td:nth-child(3) {
    grid-area: value;
  }

  .wa-payment-table td:nth-child(4) {
    grid-area: preview;
  }

  .wa-payment-table td:nth-child(5) {
    grid-area: remove;
  }

  .wa-payment-table .option-preview {
    min-width: 0;
    color: #526b84;
    font-size: 0.82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .wa-payment-table input,
  .wa-payment-table select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
  }

  .wa-payment-remove {
    width: 38px;
    min-width: 38px;
    height: 38px;
    overflow: hidden;
    padding: 0;
    color: transparent;
    position: relative;
  }

  .wa-payment-remove::before {
    content: "X";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #b42318;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 760px) {
    .wa-products-catalog-modal-dialog {
      height: 100dvh;
      max-height: 100dvh;
    }

    .wa-products-quote-modal-dialog {
      height: 100dvh;
      max-height: 100dvh;
    }
  }
}

.btn-danger {
  border-color: #f3c3bf;
  background: linear-gradient(180deg, #d8483f 0%, #ad241c 100%);
  color: #ffffff;
}

.btn-danger:hover {
  filter: brightness(1.03);
}

.btn-warning {
  border-color: #f5d29f;
  background: linear-gradient(180deg, #e39b23 0%, #ba6a11 100%);
  color: #ffffff;
}

.btn-warning:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(186, 106, 17, 0.22);
}

.btn-success {
  border-color: #9dd9bc;
  background: linear-gradient(180deg, #18a365 0%, #0f7b4c 100%);
  color: #ffffff;
}

.btn-success:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 123, 76, 0.22);
}

.meli-tabs {
  width: 100%;
}

.meli-tabs-mobile {
  display: none;
}

.meli-tabs-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.meli-tabs-mobile-actions.has-more {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.75rem;
}

.meli-tabs-mobile-link,
.meli-tabs-more-btn {
  min-height: 2.5rem;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.6rem 0.72rem;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meli-tabs-more-btn {
  width: 2.75rem;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.meli-tabs-dry-run {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3d18b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.meli-tabs-sheet-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.meli-accounts-stock-form {
  min-width: 0;
}

.meli-accounts-mobile-trigger {
  display: none;
}

@media (max-width: 760px) {
  .meli-tabs-desktop {
    display: none !important;
  }

  .meli-tabs-mobile {
    display: grid;
    gap: 0.55rem;
  }

  .meli-accounts-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.65rem;
  }

  .meli-accounts-stock-form {
    width: 100%;
  }

  .meli-accounts-stock-select {
    width: 100%;
    max-width: none !important;
    min-height: 2.75rem;
  }

  .meli-accounts-desktop-action {
    display: none !important;
  }

  .meli-accounts-mobile-trigger {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .meli-tabs-mobile-actions.has-more {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.5rem;
  }

  .meli-tabs-mobile-link {
    font-size: 0.78rem;
    padding-inline: 0.5rem;
  }

  .meli-tabs-more-btn {
    width: 2.5rem;
  }

  .meli-accounts-actions {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
  }
}

.btn-sm {
  font-size: 0.8rem;
}

[data-commission-pagination].hidden {
  display: none;
}

[data-commission-pagination]:not(.hidden) {
  display: flex;
}

[data-reconciliation-pagination].hidden {
  display: none;
}

[data-reconciliation-pagination]:not(.hidden) {
  display: flex;
}

@font-face {
  font-family: "TwemojiFlags";
  src: url("https://cdn.jsdelivr.net/npm/twemoji-colr-font/twemoji.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF;
}

.app-emoji-font {
  font-family: "TwemojiFlags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Noto Emoji", sans-serif;
  font-weight: 400;
}

.history-link {
  border-color: #d4e0ef;
}

.history-link:hover {
  border-color: #bacce3;
}

.app-alert {
  border-width: 1px;
  box-shadow: 0 10px 24px rgba(12, 33, 64, 0.08);
}

.app-alert-error {
  color: #8d1e17;
  border-color: #f5c4bf;
  background: var(--danger-soft);
}

.app-alert-success {
  color: #06603a;
  border-color: #a3e4c4;
  background: var(--success-soft);
}

.login-page {
  background:
    radial-gradient(760px 360px at 10% 12%, rgba(185, 209, 246, 0.52) 0%, rgba(185, 209, 246, 0) 68%),
    radial-gradient(580px 300px at 90% 82%, rgba(208, 224, 248, 0.56) 0%, rgba(208, 224, 248, 0) 66%),
    linear-gradient(145deg, #eaf1f9 0%, #f8faff 55%, #edf3fb 100%);
}

.login-card {
  border: 1px solid #d3e0ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 50px rgba(10, 30, 61, 0.14);
}

.table-actions form {
  display: inline;
}

@media (max-width: 1023px) {
  .app-bling-chip-wrap {
    display: none;
  }

  .app-topbar-btn {
    font-size: 0.72rem;
    padding: 0.36rem 0.66rem;
  }

  .app-user-chip {
    display: none;
  }

  .app-mobile-tenant-logo {
    display: inline-flex;
  }

  .app-topbar-row-main {
    border-bottom: 0;
  }

  .app-notification-menu {
    position: static;
  }

  .app-notification-dropdown {
    position: fixed;
    top: calc(4rem + 0.65rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 5.4rem);
    overflow: hidden;
    padding: 0.9rem;
  }

  .app-notification-head {
    gap: 0.75rem;
    margin-bottom: 0.7rem;
  }

  .app-notification-head h2 {
    font-size: 0.98rem;
  }

  .app-notification-tabs-shell {
    gap: 0.5rem;
  }

  .app-notification-tabs {
    gap: 1rem;
    min-width: 0;
  }

  .app-notification-tabs button {
    font-size: 0.78rem;
  }

  .app-notification-mark-all {
    font-size: 0.72rem;
  }

  .app-notification-list {
    max-height: calc(100dvh - 13rem);
  }

  .app-notification-item {
    gap: 0.55rem;
    padding: 0.65rem 0.2rem;
  }
}

.app-toast-stack {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: auto;
  max-width: calc(100vw - 28px);
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(11, 30, 56, 0.18);
  background: #ffffff;
  color: #0b1a34;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  width: fit-content;
  min-width: min(230px, calc(100vw - 28px));
  max-width: min(340px, calc(100vw - 28px));
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast-alert {
  pointer-events: auto;
  width: fit-content;
  min-width: min(230px, calc(100vw - 28px));
  max-width: min(340px, calc(100vw - 28px));
  overflow-wrap: anywhere;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast-message {
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.app-toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  opacity: 0.75;
}

.app-toast-close:hover {
  opacity: 1;
}

.app-toast-error {
  border-color: #f3c5c0;
  background: #fff5f4;
  color: #8d1e17;
}

.app-toast-success {
  border-color: #a3e4c4;
  background: #edfbf3;
  color: #06603a;
}

.app-toast-warning {
  border-color: #f5d29f;
  background: #fff8ee;
  color: #8f4e0f;
}

.app-toast-info {
  border-color: #c7d8ee;
  background: #f4f8ff;
  color: #1f4e89;
}

.app-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 26, 52, 0.48);
}

.app-confirm-backdrop.is-visible {
  display: flex;
}

.app-confirm-dialog {
  width: min(460px, 100%);
  border: 1px solid #cfdbeb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(11, 30, 56, 0.24);
  padding: 18px;
}

.app-confirm-title {
  margin: 0;
  color: #0b1a34;
  font-size: 1.05rem;
  font-weight: 700;
}

.app-confirm-message {
  margin: 10px 0 0;
  color: #324d76;
  font-size: 0.92rem;
  line-height: 1.45;
}

.app-confirm-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.app-confirm-actions button {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.cost-marker {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

.cost-marker-faturamento {
  background: #d8d8d8;
}

.cost-marker-frete {
  background: #f08c73;
}

.cost-marker-comissao {
  background: #e8a4cf;
}

.cost-marker-liquido {
  background: #5ab87a;
}

.ecommerce-overview-card .text-3xl {
  font-size: 1.9rem;
  line-height: 1.1;
}

.ecommerce-overview-link {
  color: #5f7497;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ecommerce-overview-link:hover {
  color: #2f4f7b;
}

.checkout-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-topbar {
  border: 1px solid #cfdbeb;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  box-shadow: 0 12px 30px rgba(12, 33, 64, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}


.checkout-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-title {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}

.checkout-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf3fc;
  border: 1px solid #d3dff0;
  border-radius: 999px;
  padding: 4px;
}

.checkout-tab {
  border-radius: 999px;
  padding: 6px 14px;
  color: #2b456f;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.checkout-tab:hover {
  color: #17355f;
  background: #e4ecf9;
}

.checkout-tab.is-active {
  background: #143463;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(14, 35, 68, 0.2);
}

.checkout-top-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-filter-group {
  position: relative;
}

.checkout-filter-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8d6ea;
  background: #f7faff;
  color: #2f4a72;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

a.checkout-filter-pill:hover {
  border-color: #acc3df;
  background: #ebf2fc;
  color: #1f406f;
}

.checkout-filter-pill-toggle {
  cursor: pointer;
  font-family: inherit;
}

.checkout-filter-pill-toggle[aria-expanded="true"] {
  border-color: #9fb8d8;
  background: #e9f1fb;
}

.checkout-filter-pill-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 8px;
}

.checkout-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #c8d6ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(26, 58, 98, 0.18);
  z-index: 35;
  padding: 6px;
}

.checkout-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  color: #28476f;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.checkout-filter-option:hover {
  background: #edf4ff;
}

.checkout-filter-option input[type='checkbox'] {
  width: 15px;
  height: 15px;
  margin: 0;
}

.checkout-filter-option-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}

.checkout-filter-option-btn.is-selected {
  background: #e7f1ff;
  color: #153e72;
  font-weight: 700;
}

.checkout-filter-option-btn:focus-visible {
  outline: 2px solid #8fb0d8;
  outline-offset: -2px;
}

.checkout-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-small-btn {
  border-color: #c6d6ea;
  background: #f6faff;
  color: #1f406f;
}

.checkout-small-btn:hover {
  border-color: #acc3df;
  background: #ebf2fc;
}

.checkout-mobile-actions-btn {
  display: none;
}

.checkout-workspace {
  display: grid;
  gap: 12px;
}

.checkout-order-layout {
  grid-template-columns: 160px minmax(0, 1fr) 340px;
}

.checkout-single-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.checkout-panel {
  border: 1px solid #d3deed;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(12, 33, 64, 0.1);
  min-height: 120px;
}


.checkout-panel-title {
  margin: 0 0 10px;
  color: #183a67;
  font-size: 1.1rem;
  font-weight: 800;
}

.checkout-sales-panel {
  padding: 12px;
}

.checkout-sales-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-sale-chip {
  width: 100%;
  border: 1px solid #d2ddef;
  border-radius: 10px;
  background: #f8fbff;
  color: #27466e;
  padding: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}

.checkout-sale-chip:hover {
  border-color: #a9c0dd;
  background: #eef4fd;
}

.checkout-sale-chip.is-active {
  border-color: #2c8f61;
  background: #ebfbf3;
  color: #0e6644;
}

.checkout-sale-chip-order {
  font-size: 1.35rem;
  line-height: 1;
}

.checkout-sale-chip-status {
  font-size: 0.85rem;
}

.checkout-main-panel {
  padding: 12px;
}

.checkout-fields-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.checkout-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-label {
  color: #48648b;
  font-size: 0.92rem;
  font-weight: 700;
}

.checkout-input.input-field {
  border-color: #c8d5e8;
  background: #ffffff;
  color: #1d355b;
  box-shadow: none;
}

.checkout-input.input-field[readonly] {
  color: #5f7598;
  background: #f1f5fb;
}

.checkout-qty-box {
  max-width: 210px;
}

.checkout-items-block {
  margin-top: 12px;
  border: 1px solid #d0ddeb;
  border-radius: 10px;
  overflow: hidden;
}

.checkout-section-title {
  margin: 0;
  padding: 10px 12px;
  font-size: 1.05rem;
  font-weight: 800;
  background: #f3f7fd;
  color: #1f3f6b;
  border-bottom: 1px solid #d5e0ee;
}

.checkout-items-table-wrap {
  overflow: auto;
}

.checkout-items-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.checkout-items-table th,
.checkout-items-table td {
  border-top: 1px solid #dee6f2;
  padding: 10px 12px;
  font-size: 0.95rem;
  text-align: left;
  vertical-align: middle;
  color: #1f3a61;
}

.checkout-items-table th {
  background: #f5f8fd;
  color: #50698d;
  font-weight: 700;
  border-top: 0;
}

.checkout-items-table .checkout-col-product {
  width: 52%;
}

.checkout-items-table .checkout-col-location {
  width: 14%;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.checkout-items-table .checkout-col-checked,
.checkout-items-table .checkout-col-total,
.checkout-items-table .checkout-col-stock {
  width: 11%;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.checkout-items-table .checkout-col-ean {
  width: 15%;
}

.checkout-items-table .checkout-col-qty {
  width: 10%;
  text-align: center;
}

.checkout-items-table .checkout-col-orders {
  width: 16%;
  text-align: center;
}

.checkout-item-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-kit-parent-row td {
  border-bottom: 0;
}

.checkout-kit-component-row td {
  border-top: 0;
}

.checkout-kit-component-row .checkout-col-product {
  position: relative;
  padding-left: 28px;
}

.checkout-kit-component-row .checkout-col-product::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: #24c766;
}

.checkout-item-product--component {
  gap: 8px;
}

.checkout-item-product--component .checkout-product-thumb-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.checkout-kit-parent-empty {
  color: transparent;
}

.checkout-product-thumb-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.checkout-single-product-card .checkout-product-thumb-btn {
  width: 48px;
  height: 48px;
}

.checkout-item-name {
  color: #1b3c67;
  font-weight: 500;
  line-height: 1.2;
}

.checkout-item-meta {
  color: #60799d;
  font-size: 0.84rem;
}

.checkout-item-sep {
  margin: 0 5px;
}

.checkout-item-ean {
  color: #173d6d;
  font-weight: 800;
}

.checkout-side-panel {
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 420px;
}

.checkout-side-active-order {
  border: 1px solid #d2ddef;
  background: #f7faff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.checkout-side-active-order-title {
  margin: 0 0 8px;
  color: #21466f;
  font-weight: 700;
  font-size: 0.84rem;
}

.checkout-side-active-order-grid {
  display: grid;
  gap: 6px;
}

.checkout-side-active-order-label {
  margin: 0;
  color: #6780a4;
  font-size: 0.74rem;
  font-weight: 700;
}

.checkout-side-active-order-value {
  margin: -4px 0 0;
  color: #183a67;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}

.checkout-side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.checkout-side-item {
  border: 1px solid #d2ddef;
  background: #f7faff;
  border-radius: 10px;
  padding: 8px 10px;
}

.checkout-side-item.is-done {
  border-color: #8fd6b0;
  background: #ecfdf3;
}

.checkout-side-item-title {
  margin: 0;
  color: #21466f;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.checkout-side-item-meta {
  margin: 4px 0 0;
  color: #6780a4;
  font-size: 0.81rem;
}

.checkout-side-actions {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe5f2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-side-total {
  margin: 0;
  color: #183a67;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
}

.checkout-side-btn {
  width: 100%;
}

.checkout-empty-note {
  margin: 0;
  color: #6a81a3;
  font-size: 0.9rem;
}

.checkout-single-search {
  border: 1px solid #cfdced;
  border-radius: 10px;
  padding: 12px;
  background: #f7faff;
}

.checkout-single-products {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-single-product-card {
  border: 1px solid #d2ddef;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.checkout-single-product-main h4 {
  margin: 0;
  color: #153862;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
}

.checkout-single-product-main p,
.checkout-single-product-meta p {
  margin: 2px 0;
  color: #5f789b;
  font-size: 0.9rem;
}

.checkout-single-product-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
}

.checkout-single-product-meta strong {
  color: #1e416f;
  margin-right: 4px;
}

.checkout-single-counter {
  min-width: 64px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #79c99d;
  background: #ffffff;
  color: #127d47;
  font-weight: 800;
  padding: 8px 10px;
}

.checkout-single-counter.is-done {
  border-color: #93d8b2;
  background: #ecfdf3;
  color: #0d6c48;
}

.checkout-orders-preview {
  color: #1f3f6b;
}

.checkout-orders-more-btn {
  margin-left: 4px;
  border: 1px solid #b9cae2;
  background: #f4f8fd;
  color: #1e4c80;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px 2px;
}

.checkout-orders-more-btn:hover {
  background: #e9f1fc;
}

.checkout-orders-count {
  margin-left: 4px;
  color: #5f789b;
  font-size: 0.82rem;
}

.checkout-orders-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-orders-modal.hidden {
  display: none;
}

.checkout-orders-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 42, 0.54);
}

.checkout-orders-modal-dialog {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid #d2ddef;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(5, 23, 48, 0.28);
  padding: 14px 16px 16px;
}

.checkout-orders-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #c8d5e8;
  background: #f6f9fe;
  color: #365a87;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.checkout-orders-modal-title {
  margin: 0 30px 12px 0;
  font-size: 1.05rem;
  color: #143860;
}

.checkout-orders-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-orders-modal-list li {
  border: 1px solid #d5e1f1;
  border-radius: 8px;
  padding: 8px 10px;
  color: #294a75;
  background: #f8fbff;
}

.checkout-success-note {
  margin: 2px 0 0;
  color: #0f7a4f;
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 1240px) {
  .checkout-order-layout {
    grid-template-columns: 1fr;
  }

  .checkout-single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .checkout-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-mobile-actions-btn {
    display: inline-flex;
  }

  .checkout-title {
    font-size: 1.8rem;
  }

  .checkout-fields-grid {
    grid-template-columns: 1fr;
  }

  .checkout-single-product-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .checkout-single-product-meta {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }
}
