﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap");

:root {
  --bg: #e7eeea;
  --panel: #0d1511;
  --panel-soft: #16231d;
  --card: #ffffff;
  --line: #cdd9d1;
  --text: #122018;
  --muted: #55685d;
  --brand: #1f9d55;
  --brand-dark: #167c42;
  --brand-soft: #e4f5ea;
  --accent: #ff9a5c;
  --danger: #b12634;
  --shadow: 0 12px 30px rgba(15, 36, 65, 0.12);
  --shadow-soft: 0 6px 16px rgba(16, 34, 58, 0.07);
  --focus-ring: 0 0 0 3px rgba(31, 157, 85, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #cfe8d8 0%, transparent 45%),
    radial-gradient(circle at 100% 100%, #cde6d6 0%, transparent 34%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
}

main {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px;
  font-size: 0.74rem;
}

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

.small {
  font-size: 0.9rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  backdrop-filter: saturate(105%);
}

.sidebar {
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(68, 194, 111, 0.16) 0%, transparent 36%),
    linear-gradient(160deg, #0b1711 0%, #12261b 100%);
  color: #ecf8ef;
  padding: 8px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 16px;
  max-height: none;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(138, 186, 156, 0.22);
  box-shadow: 0 6px 18px rgba(6, 16, 11, 0.3);
}

.sidebar .eyebrow {
  color: #9fd7b3;
}

.sidebar .muted {
  color: #b9d0c0;
}

.sidebar h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.sidebar-brand {
  margin-bottom: 0;
  line-height: 0;
  height: auto;
  flex: 0 0 auto;
}

.sidebar-brand img {
  width: clamp(72px, 7.5vw, 104px);
  height: auto;
  display: block;
}

.sidebar .eyebrow {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  overflow-x: visible;
  max-width: calc(100% - 160px);
  padding-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-dropdown {
  position: relative;
}

.nav-trigger {
  min-width: 132px;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-width: min(calc(100vw - 24px), 280px);
  padding: 8px;
  border-radius: 12px;
  background: #12261b;
  border: 1px solid rgba(175, 225, 194, 0.3);
  box-shadow: 0 12px 24px rgba(5, 14, 10, 0.46);
  z-index: 60;
}

.nav-dropdown:last-child .nav-menu {
  left: auto;
  right: 0;
}

.nav-option {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-width: 0;
}

.menu-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #1a2d23;
  color: #e4f5ea;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  min-width: 126px;
  min-height: 38px;
  white-space: nowrap;
  font-size: 0.92rem;
  transition: transform 0.16s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
  background: #224132;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(6, 15, 26, 0.3);
}

.menu-item.active {
  background: linear-gradient(120deg, #1f9d55 0%, #44c26f 100%);
  border-color: rgba(198, 241, 213, 0.55);
  box-shadow: 0 6px 14px rgba(17, 86, 47, 0.32);
}

.menu-item.danger {
  background: #5a1f28;
  color: #ffe6eb;
}

.menu-item.danger:hover {
  background: #6d222d;
}

.menu-item.disabled {
  opacity: 0.65;
}

.user-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.user-menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(23, 57, 38, 0.85);
  color: #e9f8ee;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
}

.user-menu-btn:hover {
  background: rgba(33, 80, 53, 0.95);
}

.user-icon {
  width: 32px;
  background-color: #1f9d55;
  border-radius: 18px;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  padding: 12px;
  border-radius: 12px;
  background: #12261b;
  border: 1px solid rgba(175, 225, 194, 0.3);
  box-shadow: 0 12px 24px rgba(5, 14, 10, 0.46);
  z-index: 60;
}

.user-menu-panel .eyebrow {
  margin-bottom: 6px;
}

.user-menu-panel h2 {
  margin-bottom: 6px;
  color: #f0fbf3;
}

.user-menu-panel .muted {
  color: #bfd8c8;
  margin: 0 0 10px;
  display: block;
}

.user-logout-btn {
  width: 100%;
}

.user-users-btn {
  width: 100%;
  margin-bottom: 8px;
}

.workspace {
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
  width: min(99vw, 2200px);
  max-width: 2200px;
  margin: 0 auto;
  min-width: 0;
}

.workspace > * {
  width: 100%;
}

.workspace-header h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.workspace-header p {
  margin: 8px 0 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  max-width: 100%;
}

.card h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

input,
textarea,
select {
  border: 1px solid var(--line);
  background: #fbfdfb;
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6ec08f;
  box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.16);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.menu-item:focus-visible,
.page-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.actions {
  display: flex;
  margin-top: 10px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.table-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compact-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-btn {
  min-width: 0;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill.ok {
  background: #e4f5ea;
  color: #156b3a;
  border-color: #b9e7ca;
}

.status-pill.warn {
  background: #f6efe1;
  color: #8a5d1d;
  border-color: #ebd6a9;
}

.status-pill.error {
  background: #fbe8ea;
  color: #8b2330;
  border-color: #f1bdc4;
}

.status-pill.neutral {
  background: #edf2ef;
  color: #47584f;
  border-color: #d6e0da;
}

.inline-label-help {
  display: flex;
  align-items: center;
  gap: 8px;
}

#whatsappCampaignForm label {
  align-content: start;
}

#whatsappCampaignForm input,
#whatsappCampaignForm select,
#whatsappCampaignForm .multi-check-list {
  width: 100%;
  min-height: 44px;
}

#whatsappCampaignForm .multi-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  margin: 0;
}

#whatsappCampaignForm .inline-label-help select {
  flex: 1 1 auto;
}

#whatsappCampaignForm .actions {
  min-height: 0;
  align-content: end;
  margin-top: 0;
}

.help-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #104d2a;
  background: #d9f1e2;
  border: 1px solid #a8d8bb;
  cursor: help;
  user-select: none;
}

.help-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 420px;
  background: #102218;
  color: #e7f5ec;
  border: 1px solid rgba(175, 225, 194, 0.3);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(5, 14, 10, 0.42);
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 40;
}

.help-icon:hover .help-tooltip {
  opacity: 1;
}

.multi-check-list {
  display: grid;
  gap: 4px;
  min-height: 120px;
  max-height: 160px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fbfdfb;
  border-radius: 10px;
  padding: 8px;
}

.multi-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
  color: #1b2b22;
  padding: 2px 0;
}

.multi-check-item input[type="checkbox"] {
  accent-color: var(--brand);
}

.results-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 44px;
}

.results-pane {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
  padding: 6px;
}

.results-pane-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5b6d63;
  margin-bottom: 6px;
}

.results-list {
  min-height: 44px;
  max-height: 44px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.results-chip {
  min-height: 26px;
  min-width: 0;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  line-height: 1.15;
  border: 1px solid #bcd7c7;
  background: #eef7f1;
  color: #1f4f35;
}

.results-chip:hover {
  background: #ddf0e4;
  transform: none;
  box-shadow: none;
}

.results-empty {
  font-size: 0.78rem;
  color: #677a6f;
}

.dropdown-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fcfa;
  overflow: hidden;
}

.dropdown-card + .dropdown-card {
  margin-top: 10px;
}

.dropdown-card-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #eef6f1;
  border-bottom: 1px solid transparent;
}

.dropdown-card[open] .dropdown-card-summary {
  border-bottom-color: var(--line);
}

.dropdown-card-summary::-webkit-details-marker {
  display: none;
}

.dropdown-card-summary::after {
  content: "▾";
  font-size: 0.92rem;
  color: #1d6b3e;
  transition: transform 0.16s ease;
  margin-left: 10px;
}

.dropdown-card[open] .dropdown-card-summary::after {
  transform: rotate(180deg);
}

.dropdown-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #163c27;
}

.dropdown-card-content {
  margin-top: 0;
  padding: 12px;
}

#webhookHotView .table-wrap,
#webhookColdView .table-wrap {
  margin-top: 10px;
}

.webhook-leads-table {
  table-layout: auto;
  min-width: 1820px;
}

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

.webhook-leads-table th {
  font-size: 13px;
}

.webhook-leads-table .inline-select {
  min-width: 160px;
  width: 160px;
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
}

.webhook-leads-table .col-webhook-seller,
.webhook-leads-table .col-webhook-result {
  min-width: 170px;
  width: 170px;
  white-space: nowrap;
}

.webhook-leads-table .compact-actions {
  flex-wrap: nowrap;
  align-items: center;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(17, 86, 47, 0.28);
}

button.secondary {
  background: var(--brand-soft);
  color: #1a5e34;
  border: 1px solid #bfe4ca;
}

button.secondary:hover {
  background: #d4f0dd;
}

.output {
  margin: 10px 0 0;
  background: #0f1b14;
  color: #deefe5;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(154, 206, 174, 0.2);
  overflow: auto;
  max-height: 260px;
  white-space: pre-wrap;
}

.output.compact {
  max-height: 140px;
}

.upload-progress {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #c7e4d2;
  border-radius: 12px;
  background: #f2faf5;
}

.upload-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #21563a;
  font-size: 0.9rem;
}

.upload-progress-bar {
  width: 100%;
  height: 10px;
  background: #d8ebdf;
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f9d55 0%, #44c26f 100%);
  transition: width 0.35s ease;
}

.billing-sync-panel {
  margin-top: 12px;
  border: 1px solid #c7e4d2;
  border-radius: 12px;
  background: #f2faf5;
  padding: 10px 12px;
}

.billing-sync-title {
  margin: 0 0 6px;
  color: #21563a;
  font-weight: 700;
  font-size: 0.92rem;
}

.billing-sync-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #2b6b47;
}

.billing-sync-stats strong {
  color: #1b5535;
}

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
  border: 1px solid #cfddd4;
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.clients-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.clients-table .col-select {
  width: 38px;
  text-align: center;
}

.clients-table .col-id {
  width: 60px;
}

.clients-table .col-name {
  width: 170px;
}

.clients-table .col-cpf {
  width: 125px;
}

.clients-table .col-contact {
  width: 145px;
}

.clients-table .col-status {
  width: 95px;
}

.clients-table .col-value {
  width: 80px;
}

.clients-table .col-operators {
  width: 180px;
}

.clients-table .col-address {
  width: 140px;
}

.clients-table .col-base {
  width: 120px;
}

.clients-table .col-result {
  width: 130px;
}

.clients-table .col-seller {
  width: 120px;
}

.clients-table .col-action {
  width: 220px;
}

.clients-table .col-mailing-updated,
.clients-table .col-updated-at {
  width: 145px;
}

.table-wrap-clients {
  height: clamp(420px, calc(100dvh - 300px), 78dvh);
  max-height: clamp(420px, calc(100dvh - 300px), 78dvh);
}

.clients-sheet {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}

.page-btn {
  background: #eef8f1;
  color: #22382a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 36px;
  font-weight: 700;
}

.page-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.page-gap {
  color: var(--muted);
  padding: 0 2px;
}

.bulk-toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #d6e6dc;
  border-radius: 12px;
  background: #f7fcf8;
}

.compact-field {
  min-width: 180px;
}

.bulk-select-all {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d2e5d9;
  border-radius: 999px;
  background: #f1faf4;
  font-size: 0.85rem;
  font-weight: 700;
  color: #275b3c;
  line-height: 1.2;
}

.bulk-select-all input[type="checkbox"] {
  min-height: 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
  flex: 0 0 18px;
}

.bulk-select-all span {
  display: inline-block;
}

.compact-field.action-field {
  flex: 1 1 260px;
}

.icon-btn {
  padding: 6px 8px;
  line-height: 1;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
}

.action-cell {
  min-width: 0;
  vertical-align: middle;
}

.action-content {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 6px 8px;
}

.clients-table .inline-result,
.clients-table .inline-seller,
.clients-table .action-input {
  width: 100%;
  max-width: 100%;
}

.action-input[readonly] {
  background: #f2f7f3;
  color: #4f6458;
  cursor: default;
}

.action-edit {
  margin-left: auto;
  flex: 0 0 auto;
}

.action-confirm,
.action-cancel {
  flex: 0 0 auto;
}

.clients-table td.col-action {
  vertical-align: middle;
  padding-top: 4px;
  padding-bottom: 4px;
}

.clients-table td.col-action .icon-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
}

.clients-table td.col-mailing-updated,
.clients-table td.col-updated-at {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.action-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 13, 0.5);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 16px;
}

.action-editor-modal {
  width: min(680px, 96vw);
  background: #ffffff;
  border: 1px solid #cfddd4;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(7, 18, 12, 0.28);
  padding: 14px;
}

.action-editor-modal h4 {
  margin: 0 0 8px;
}

.action-editor-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

th,
td {
  border: 1px solid #d6e3da;
  padding: 6px 6px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.clients-table .col-id,
.clients-table .col-name,
.clients-table .col-cpf,
.clients-table .col-contact,
.clients-table .col-status,
.clients-table .col-value,
.clients-table .col-operators,
.clients-table .col-address,
.clients-table .col-base,
.clients-table .col-result,
.clients-table .col-seller,
.clients-table .col-action,
.clients-table .col-mailing-updated,
.clients-table .col-updated-at {
  width: auto !important;
}

th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #edf7f0;
  align-items: center;
  color: #244631;
  border: 1px solid #d0dfd6;
  font-weight: 800;
  font-size: 16px;
  vertical-align: center;
}

tbody tr:nth-child(even) {
  background: #fbfdfb;
}

tbody tr:hover {
  background: #f0f8f3;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .sidebar {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
  }

  .menu {
    max-width: calc(100% - 130px);
    gap: 6px;
  }

  .menu-item {
    min-width: 112px;
    font-size: 0.84rem;
    padding: 8px 10px;
  }

  .nav-menu {
    min-width: 200px;
    max-width: min(88vw, 240px);
  }

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

  .bulk-toolbar {
    align-items: stretch;
  }

  .workspace {
    width: 97vw;
    max-width: 97vw;
    padding: 10px;
  }

  .table-wrap-clients {
    max-height: clamp(360px, calc(100dvh - 330px), 72dvh);
  }

  .clients-table .col-name {
    width: 140px;
  }

  .clients-table .col-address {
    width: 120px;
  }

  .clients-table .col-action {
    width: 190px;
  }
}

@media (max-width: 640px) {
  .workspace {
    width: 98vw;
    max-width: 98vw;
    padding: 10px;
  }

  .login-card {
    padding: 18px;
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100% - 120px);
  }

  .menu-item {
    width: auto;
    min-width: 148px;
  }

  .nav-dropdown {
    position: static;
  }

  .nav-menu {
    left: auto;
    right: 0;
    min-width: 220px;
    max-width: min(92vw, 260px);
  }

  .user-menu-panel {
    right: -6px;
    min-width: 230px;
  }

  .three-cols {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 14px;
  }

  .bulk-toolbar {
    padding: 8px;
    gap: 8px;
  }

  table {
    font-size: 0.76rem;
  }

  .clients-table .col-mailing-updated,
  .clients-table .col-updated-at {
    width: 120px;
  }

  .clients-table .col-action {
    width: 170px;
  }

  .table-wrap-clients {
    max-height: clamp(300px, calc(100dvh - 360px), 65dvh);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
