/* Calling tools: page content only. Shared settings navigation/footer remain untouched. */
.calling-tool-page { min-height: 100%; }
.calling-tool-main { min-width: 0; }
.calling-tool-head { margin-bottom: 10px; }
.calling-tool-description {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.calling-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.calling-tool-link svg {
  width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.calling-empty-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  min-height: 250px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  background: var(--surface);
}
.calling-ivr-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  min-height: 0;
}
.calling-empty-card__copy,
.calling-ivr-card__copy { max-width: 620px; }
.calling-empty-card__copy h2,
.calling-ivr-card__copy h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}
.calling-empty-card__copy p,
.calling-ivr-card__copy p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.calling-empty-card__art,
.calling-ivr-card__art {
  flex: 0 0 210px;
  width: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calling-empty-card__art svg,
.calling-ivr-card__art svg { display: block; width: 100%; max-height: 160px; }
.calling-empty-card__art svg rect,
.calling-empty-card__art svg circle,
.calling-empty-card__art svg path,
.calling-ivr-card__art svg rect,
.calling-ivr-card__art svg circle,
.calling-ivr-card__art svg path { vector-effect: non-scaling-stroke; }
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pp-btn--primary { background: var(--brand); color: var(--brand-contrast, #fff); border-color: var(--brand); }
.pp-btn--primary:hover { background: var(--brand-hover, var(--brand)); border-color: var(--brand-hover, var(--brand)); color: var(--brand-contrast, #fff); }
.pp-btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.pp-btn--secondary:hover { background: var(--surface-hover); }
.pp-btn--sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.pp-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calling-tool-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}
.calling-tool-tab {
  min-height: 48px;
  padding: 0 24px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.calling-tool-tab + .calling-tool-tab { border-left: 0; }
.calling-tool-tab:first-child { border-radius: 8px 0 0 0; }
.calling-tool-tab:last-child { border-radius: 0 8px 0 0; }
.calling-tool-tab.is-active { color: var(--text); background: var(--surface); font-weight: 600; }
.calling-tool-panel h2 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.calling-tool-panel > p { margin: 0 0 24px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.calling-profile-table-wrap { width: 100%; overflow: visible;
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
    background: var(--surface); }
.calling-profile-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calling-profile-table th {
  padding: 14px 16px; text-align: left; font-weight: 500; color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong); white-space: nowrap;background:var(--surface-2)
}
.calling-profile-table td { padding: 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.calling-profile-table th:first-child, .calling-profile-table td:first-child { width: 48%; }
.calling-profile-name { border: 0; padding: 0; background: transparent; color: var(--brand); font: inherit; cursor: pointer; }
.calling-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13.5px;
  vertical-align: middle;
  margin-left: 4px;
}
.calling-info--popover {
  position: relative;
  cursor: pointer;
  outline: none;
}
.calling-info--popover:focus-visible {
  outline: 2px solid var(--brand, #2456e6);
  outline-offset: 2px;
  border-radius: 4px;
}
.calling-info__popover {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  white-space: normal;
  text-align: left;
  background: var(--panel, #0e1629);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
  text-transform: none;
  letter-spacing: normal;
}
.calling-info__popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--panel, #0e1629) transparent transparent transparent;
}
.calling-info--popover:hover .calling-info__popover,
.calling-info--popover:focus .calling-info__popover,
.calling-info--popover:focus-within .calling-info__popover,
.calling-info--popover:hover + .calling-info__popover,
.calling-info--popover:focus + .calling-info__popover,
.calling-info--popover:focus-visible + .calling-info__popover,
.calling-info--popover:hover ~ .calling-info__popover,
.calling-info--popover:focus ~ .calling-info__popover,
.calling-info--popover:focus-within ~ .calling-info__popover,
.calling-info__popover:hover,
.crm-popover-wrap:hover > .calling-info__popover,
.crm-popover-wrap:focus > .calling-info__popover,
.crm-popover-wrap:focus-within > .calling-info__popover,
.call-setup-audio-anchor:hover .calling-info__popover,
.call-setup-audio-anchor:focus-within .calling-info__popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Connected To Popover (White Card with Bullets matching Screenshot) */
.calling-info__popover--connected {
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 16px 20px;
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  font-size: 13.5px;
  line-height: 1.5;
}

.calling-info__popover--connected::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: var(--surface, #ffffff) transparent transparent transparent;
  z-index: 2;
}

.calling-info__popover--connected::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-width: 9px 9px 0 9px;
  border-style: solid;
  border-color: var(--border, #cbd5e1) transparent transparent transparent;
  z-index: 1;
}

.calling-popover-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #101828);
  margin-bottom: 14px;
}

.calling-popover-list {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}

.calling-popover-list li {
  margin-bottom: 14px;
  color: var(--text, #101828);
  font-size: 13.5px;
  line-height: 1.55;
}

.calling-popover-list li:last-child {
  margin-bottom: 0;
}

.calling-popover-list strong {
  font-weight: 700;
  color: var(--text, #101828);
}

/* Connected To Popover (White Card with Bullets matching Screenshot) */
.calling-info__popover--connected {
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 16px 20px;
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  font-size: 13.5px;
  line-height: 1.5;
  bottom: calc(100% + 12px);
  pointer-events: auto;
}

.calling-info__popover--connected::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: var(--surface, #ffffff) transparent transparent transparent;
  z-index: 2;
}

.calling-info__popover--connected::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-width: 9px 9px 0 9px;
  border-style: solid;
  border-color: var(--border-strong, #cbd5e1) transparent transparent transparent;
  z-index: 1;
}

.calling-popover-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #101828);
  margin-bottom: 14px;
}

.calling-popover-list {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}

.calling-popover-list li {
  margin-bottom: 14px;
  color: var(--text, #101828);
  font-size: 13.5px;
  line-height: 1.55;
}

.calling-popover-list li:last-child {
  margin-bottom: 0;
}

.calling-popover-list strong {
  font-weight: 700;
  color: var(--text, #101828);
}
.calling-status { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.calling-status svg { width: 16px; height: 16px; fill: none; stroke: var(--text-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.calling-profile-edit { max-width: 560px; margin-top: 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius, 12px); background: var(--surface); }
.calling-profile-edit h3 { margin: 0 0 16px; font-size: 16px; }
.calling-profile-edit label { display: grid; gap: 6px; margin: 0 0 14px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.calling-profile-edit input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.calling-profile-edit__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.calling-empty-card--wide { margin-top: 12px; }
[hidden] { display: none !important; }
@media (max-width: 767.98px) {
  .calling-empty-card, .calling-ivr-card { align-items: flex-start; flex-direction: column; padding: 22px; gap: 18px; }
  .calling-empty-card__art, .calling-ivr-card__art { align-self: center; flex-basis: auto; width: min(220px, 100%); }
  .calling-tool-tab { padding: 0 14px; font-size: 13px; }
  .calling-profile-table-wrap, .calling-phone-table-wrap { overflow-x: auto; }
  .calling-profile-table, .calling-phone-number-table { min-width: 620px; }
}

/* ============================================================================
   CALLING PHONE NUMBER TABLE TOOLBAR & FILTERS
   Matches Screenshots for Search, Country & Assigned to filters
   ============================================================================ */

.calling-phone-table-wrap {
  width: 100%;
  overflow: visible;
  border-top: none;
}

.calling-phone-number-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.calling-phone-number-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted, #475467);
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--surface-2);
  white-space: nowrap;
}

.cpt-th--phone {
  width: 44%;
}

.cpt-th--connected {
  width: 32%;
}

.cpt-th--callerid {
  width: 24%;
}

.cpt-th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.cpt-th-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cpt-sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748b);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  letter-spacing: -1px;
  transition: color 0.15s ease;
}

.cpt-sort-icon:hover {
  color: var(--text, #101828);
}

.calling-phone-number-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  color: var(--text, #101828);
  font-size: 14px;
  vertical-align: middle;
  background: var(--surface, #ffffff);
  transition: background-color 0.15s ease;
}

.calling-phone-number-table tbody tr:hover td {
  background-color: var(--surface-hover, #f8fafc);
}

.calling-phone-number-table tbody tr:last-child td {
  border-bottom: none;
}

.calling-phone-number-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.calling-phone-number-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/* Phone number cell with Actions trigger on row hover */
.cpt-phone-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cpt-phone-val {
  font-weight: 400;
  font-size: 14px;
  color: var(--text, #101828);
  white-space: nowrap;
}

.cpt-actions-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cpt-actions-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #101828);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  white-space: nowrap;
}

.calling-phone-number-table tbody tr:hover .cpt-actions-btn,
.cpt-actions-wrap.is-open .cpt-actions-btn,
.cpt-actions-btn[aria-expanded="true"],
.cpt-actions-btn:focus-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cpt-actions-wrap.is-open {
  z-index: 1010;
}

.cpt-actions-btn:hover {
  background: var(--surface-hover, #f8fafc);
  border-color: var(--border-stronger, #94a3b8);
}

.cpt-actions-caret {
  display: inline-block;
  transition: transform 0.15s ease;
}

.cpt-actions-btn[aria-expanded="true"] .cpt-actions-caret {
  transform: rotate(180deg);
}

/* Actions Menu Popover (Opens on click only) */
.cpt-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1000;
  min-width: 185px;
  padding: 6px 0;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
  animation: addNumbersPopIn 0.15s ease;
}

.cpt-actions-menu[hidden] {
  display: none !important;
}

.cpt-actions-wrap.is-open .cpt-actions-menu {
  display: block !important;
}

.cpt-action-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--text, #101828);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.12s ease;
}

.cpt-action-item:hover {
  background: var(--surface-hover, #f1f5f9);
}

.cpt-action-item--danger {
  color: #ef4444;
}

.cpt-action-item--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.cpt-actions-divider {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Verify to turn on Pill Button */
.cpt-verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #101828);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cpt-verify-btn:hover {
  background: var(--surface-hover, #f8fafc);
  border-color: var(--border-stronger, #94a3b8);
}

.cpt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #ffffff);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  flex-wrap: wrap;
}

.cpt-toolbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Search input pill */
.cpt-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 250px;
}

.cpt-search-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 16px;
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: var(--radius-sm);
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.cpt-search-input:focus {
  border-color: var(--brand, #2456e6);
  box-shadow: 0 0 0 1px var(--brand, #2456e6);
}

.cpt-search-icon {
  position: absolute;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #64748b);
  pointer-events: none;
}

/* Filter Dropdown Wrap & Button */
.cpt-filter-wrap {
  position: relative;
  display: inline-flex;
}

.cpt-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px 4px;
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cpt-filter-btn:hover {
  color: var(--brand, #2456e6);
}

.cpt-caret {
  display: inline-block;
  vertical-align: middle;
  color: var(--text, #101828);
  transition: transform 0.15s ease;
}

.cpt-filter-btn[aria-expanded="true"] .cpt-caret {
  transform: rotate(180deg);
}

/* Filter Popover Menu (Matches Screenshot 1) */
.cpt-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1050;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
  min-width: 270px;
  padding: 8px 0;
  animation: addNumbersPopIn 0.15s ease;
}

.cpt-filter-menu[hidden] {
  display: none !important;
}

/* Popover Arrow pointing up to trigger button */
.cpt-filter-menu::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 28px;
  width: 0;
  height: 0;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--surface, #ffffff) transparent;
  z-index: 2;
}

.cpt-filter-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 27px;
  width: 0;
  height: 0;
  border-width: 0 9px 9px 9px;
  border-style: solid;
  border-color: transparent transparent var(--border, #cbd5e1) transparent;
  z-index: 1;
}

/* Option Row inside Popover */
.cpt-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
  font-size: 14px;
  color: var(--text, #101828);
  font-weight: 400;
}

.cpt-option:hover {
  background: var(--surface-hover, #f1f5f9);
}

/* Native input hidden */
.cpt-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

/* Custom rounded checkbox */
.cpt-checkbox-custom {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong, #94a3b8);
  border-radius: 5px;
  background: var(--surface, #ffffff);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
}

.cpt-checkbox-custom svg {
  opacity: 0;
  color: #ffffff;
  transform: scale(0.7);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.cpt-option:hover .cpt-checkbox-custom {
  border-color: var(--text, #101828);
}

.cpt-checkbox:checked + .cpt-checkbox-custom {
  background: var(--brand, #2456e6);
  border-color: var(--brand, #2456e6);
}

.cpt-checkbox:checked + .cpt-checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.cpt-option-label {
  flex: 1;
  line-height: 1.4;
}

/* Results Count & Clear Button (Matches Screenshot 2) */
.cpt-results-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
}

.cpt-results-wrap[hidden] {
  display: none !important;
}

.cpt-results-count {
  font-size: 13.5px;
  color: var(--text, #101828);
  font-weight: 500;
  white-space: nowrap;
}

.cpt-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cpt-clear-btn:hover {
  background: #111827;
}

.cpt-clear-btn:active {
  transform: translateY(1px);
}

.cpt-empty-cell {
  text-align: center;
  padding: 32px 16px !important;
  color: var(--text-muted, #64748b);
  font-size: 14px;
}

/* ============================================================================
   ADD NUMBERS MODAL (Blocked Numbers List)
   ============================================================================ */
.add-numbers-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  backdrop-filter: blur(2px);
  animation: addNumbersFadeIn 0.15s ease;
  box-sizing: border-box;
}

.add-numbers-modal-backdrop[hidden] {
  display: none !important;
}

.add-numbers-modal {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.2);
  animation: addNumbersPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overflow: hidden;
  color: var(--text, #101828);
}

@keyframes addNumbersFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes addNumbersPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.add-numbers-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border, #e4e7ec);
}

.add-numbers-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #101828);
  margin: 0;
  line-height: 1.3;
}

.add-numbers-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted, #475467);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.add-numbers-modal__close:hover {
  background: var(--surface-hover, #f2f4f7);
  color: var(--text, #101828);
}

.add-numbers-modal__body {
  padding: 22px 28px 26px;
}

.add-numbers-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text, #101828);
  margin: 0 0 16px;
}

.add-numbers-field {
  margin-bottom: 22px;
}

.add-numbers-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #101828);
  margin: 0 0 4px;
}

.add-numbers-subtext {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted, #475467);
  margin: 0 0 10px;
}

.add-numbers-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: 8px;
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}

.add-numbers-textarea:focus {
  border-color: var(--brand, #2456e6);
  box-shadow: 0 0 0 1px var(--brand, #2456e6);
}

.add-numbers-textarea.has-error,
.add-numbers-textarea.is-invalid {
  border-color: #c01048 !important;
}

.add-numbers-textarea.has-error:focus,
.add-numbers-textarea.is-invalid:focus {
  border-color: #c01048 !important;
  box-shadow: 0 0 0 1px #c01048 !important;
}

.add-numbers-error {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 700;
  color: #990000;
}

.add-numbers-modal__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-numbers-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.add-numbers-btn--primary {
  background:  var(--brand);
  color: #ffffff;
  border: 1px solid  var(--brand);
  padding: 8px 24px;
}

.add-numbers-btn--primary:hover {
  background:  var(--brand-hover);
  border-color:  var(--brand-hover);
}

.add-numbers-btn--cancel {
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  border: 1px solid var(--border-strong, #aeb8c6);
  padding: 8px 20px;
}

.add-numbers-btn--cancel:hover {
  background: var(--surface-hover, #f2f4f7);
  border-color: var(--text-muted, #475467);
}

@media (max-width: 600px) {
  .add-numbers-modal {
    margin: 10px;
    border-radius: 12px;
  }
  .add-numbers-modal__header {
    padding: 18px 20px 14px;
  }
  .add-numbers-modal__body {
    padding: 18px 20px 22px;
  }
  .add-numbers-modal__title {
    font-size: 19px;
  }
}

/* ============================================================================
   BLOCKED NUMBERS TABLE & ACTIONS
   Matches Screenshots for Add numbers, Table, and Hover Remove button
   ============================================================================ */

.blocked-toolbar {
  margin: 20px 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.blocked-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 24px;
  border: 1px solid var(--border-strong, #94a3b8);
  border-radius: var(--radius-sm);
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.blocked-add-btn:hover {
  background: var(--surface-hover, #f2f4f7);
  border-color: var(--text-muted, #475467);
}

.blocked-add-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.blocked-numbers-table-card {
  width: 100%;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 4px;
  margin-top: 18px;
  box-sizing: border-box;
}

.blocked-numbers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
  table-layout: auto;
}

.blocked-numbers-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted, #526071);
  border-bottom: 1px solid var(--border, #e2e8f0);
  user-select: none;
  vertical-align: middle;
}

.blocked-th-sort {
  cursor: pointer;
}

.blocked-th-sort:hover {
  color: var(--text, #101828);
}

.blocked-th-sort:focus-visible {
  outline: 2px solid var(--brand, #2456e6);
  outline-offset: -2px;
}

.blocked-th-sort__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blocked-sort-arrows {
  display: inline-block;
  font-size: 13px;
  color: var(--text-subtle, #8a94a6);
}

.blocked-th-actions {
  width: 120px;
  text-align: right;
  vertical-align: middle;
}

.blocked-number-row {
  transition: background-color 0.12s ease;
  height: 60px;
}

.blocked-number-row:hover,
.blocked-number-row:focus-within {
  background-color: var(--surface-hover, #f4f5f7);
}

.blocked-numbers-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
}

.blocked-numbers-table tbody tr:last-child td {
  border-bottom: none;
}

.blocked-number-cell {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text, #101828);
}

.blocked-action-cell {
  text-align: right;
  white-space: nowrap;
}

.blocked-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--text-muted);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.blocked-number-row:hover .blocked-remove-btn,
.blocked-number-row:focus-within .blocked-remove-btn {
  opacity: 1;
  visibility: visible;
}

.blocked-remove-btn:hover {
  background: var(--surface);
  border-color: var(--brand-link);
  color: var(--brand);
}

.blocked-remove-btn:active {
  transform: translateY(1px);
}

.blocked-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted, #475467);
  font-size: 14px;
}

.blocked-empty-state[hidden] {
  display: none !important;
}

/* ============================================================================
   INTERACTIVE VOICE RESPONSE (IVR) PAGE
   ============================================================================ */

/* Switch styles matching settings-notetaker.php */
.hs-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 28px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}

.hs-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.hs-switch__track {
  position: absolute;
  inset: 0;
  background-color: var(--surface-3, #eef1f5);
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.hs-switch input:checked + .hs-switch__track {
  background-color: var(--brand, #2456e6);
  border-color: var(--brand, #2456e6);
}

.hs-switch__label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.hs-switch__label--on {
  left: 9px;
  color: #fff;
  opacity: 0;
}

.hs-switch__label--off {
  right: 8px;
  color: var(--text-muted, #475467);
  opacity: 1;
}

.hs-switch input:checked + .hs-switch__track .hs-switch__label--on {
  opacity: 1;
}

.hs-switch input:checked + .hs-switch__track .hs-switch__label--off {
  opacity: 0;
}

.hs-switch__knob {
  position: absolute;
  left: 4px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface, #ffffff);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.hs-switch input:checked + .hs-switch__track .hs-switch__knob {
  transform: translateX(30px);
}

.hs-switch__check {
  width: 12px;
  height: 12px;
  color: var(--brand, #2456e6);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hs-switch input:checked + .hs-switch__track .hs-switch__check {
  opacity: 1;
}

.hs-switch--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Disabled Switch with side popover from settings-notetaker.php */
.nt-disabled-switch,
.ivr-disabled-switch {
  position: relative;
  display: inline-flex;
  outline: none;
}

.nt-disabled-switch .hs-switch--disabled,
.ivr-disabled-switch .hs-switch--disabled {
  pointer-events: auto;
}

.nt-disabled-switch__popover {
  position: absolute;
  z-index: 1000;
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(4px);
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--panel, #0e1629);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  white-space: normal;
  text-align: left;
  box-sizing: border-box;
}

.nt-disabled-switch__popover::before {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 100%;
}

.nt-disabled-switch__popover::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  left: auto;
  bottom: auto;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--panel, #0e1629);
  border-right: none;
  transform: translateY(-50%);
}

.nt-disabled-switch:hover .nt-disabled-switch__popover,
.nt-disabled-switch:focus .nt-disabled-switch__popover,
.nt-disabled-switch:focus-within .nt-disabled-switch__popover,
.ivr-disabled-switch:hover .nt-disabled-switch__popover,
.ivr-disabled-switch:focus .nt-disabled-switch__popover,
.ivr-disabled-switch:focus-within .nt-disabled-switch__popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* IVR Toolbar */
.ivr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.ivr-toolbar__left,
.ivr-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap:wrap;
}

.ivr-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 18px;
  border: 1px solid var(--border-strong, #aeb8c6);
  border-radius: var(--radius-sm);
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ivr-pill-btn:hover {
  background: var(--surface-hover, #f2f4f7);
}

.ivr-pill-btn.is-active,
.ivr-pill-btn[aria-expanded="true"] {
  border-color: var(--border-strong, #aeb8c6);
  color:var(--text, #101828);
}

.ivr-caret {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

[aria-expanded="true"] .ivr-caret {
  transform: rotate(180deg);
}

/* Add IVR Menu dropdown */
.ivr-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.ivr-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  min-width: 160px;
  padding: 6px 0;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  animation: addNumbersPopIn 0.15s ease;
}

.ivr-menu-dropdown[hidden] {
  display: none !important;
}

.ivr-menu-dropdown__item {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ivr-menu-dropdown__item:hover {
  background: var(--surface-hover, #f2f4f7);
}

/* Edit Audio Messages Popover */
.ivr-popover-anchor {
  position: relative;
  display: inline-flex;
}

.ivr-tooltip-popover {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--panel, #0e1629);
  color: #ffffff;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
  white-space: normal;
  text-align: left;
  box-sizing: border-box;
}

.ivr-tooltip-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--panel, #0e1629) transparent transparent transparent;
}

.ivr-popover-anchor:hover .ivr-tooltip-popover,
.ivr-popover-anchor:focus-within .ivr-tooltip-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Learn more button and dropdown */
.ivr-learn-anchor {
  position: relative;
  display: inline-flex;
}

.ivr-learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.ivr-learn-more-btn:hover {
  color: var(--brand, #2456e6);
}

.ivr-question-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.ivr-learn-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1100;
  width: 440px;
  max-width: calc(100vw - 32px);
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
  padding: 22px 24px;
  animation: addNumbersPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ivr-learn-popover[hidden] {
  display: none !important;
}

.ivr-learn-popover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 18px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent var(--surface, #ffffff) transparent;
}

.ivr-learn-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ivr-learn-popover__title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text, #101828);
  margin: 0;
  line-height: 1.3;
}

.ivr-learn-popover__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted, #475467);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  padding: 0;
}

.ivr-learn-popover__close:hover {
  background: var(--surface-hover, #f2f4f7);
  color: var(--text, #101828);
}

.ivr-video-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, #e4e7ec);
  background: #182026;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}

.ivr-video-mockup {
  width: 100%;
  height: 100%;
  min-height: 210px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.ivr-video-mockup__bar {
  height: 24px;
  background: #0e1629;
  color: #a3adc2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
}

.ivr-mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.ivr-mock-title {
  margin-left: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
}

.ivr-video-mockup__content {
  flex: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  height: 186px;
  background: #f8fafc;
}

.ivr-video-mockup__sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ivr-mock-line {
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  width: 90%;
}

.ivr-video-mockup__main {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ivr-video-mockup__box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 14px;
  text-align: center;
  max-width: 290px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ivr-video-mockup__box h4 {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #101828;
  line-height: 1.3;
}

.ivr-video-mockup__box p {
  margin: 0 0 6px;
  font-size: 9px;
  color: #64748b;
  line-height: 1.35;
}

.ivr-video-mockup__box img {
  display: block;
  margin: 0 auto;
}

.ivr-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(217, 83, 47, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ivr-video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--brand-hover);
}

.ivr-learn-popover__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text, #101828);
  text-align: center;
  margin: 18px 0 16px;
}

.ivr-learn-popover__foot {
  display: flex;
  justify-content: center;
}

.ivr-knowledge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong, #aeb8c6);
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ivr-knowledge-btn:hover {
  background: var(--surface-hover, #f2f4f7);
  border-color: var(--text-muted);
}

/* IVR Table */
.ivr-table-wrap {
  width: 100%;
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: 8px;
  background: var(--surface, #ffffff);
  overflow: visible;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.ivr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ivr-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #475467);
  border-bottom: 1px solid var(--border, #e4e7ec);
  white-space: nowrap;
  user-select: none;
}

.ivr-th-menu {
  width: 48%;
}

.ivr-th-number {
  width: 32%;
}

.ivr-th-status {
  width: 20%;
}

.ivr-sort-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  color: var(--text-subtle, #8a94a6);
}

.ivr-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e4e7ec);
  vertical-align: middle;
  color: var(--text, #101828);
}

.ivr-table tr:last-child td {
  border-bottom: none;
}

.ivr-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ivr-menu-title {
  font-size: 14px;
  font-weight: 700;
  color:  var(--brand);
  text-decoration: none;
}

.ivr-menu-title:hover {
  text-decoration: underline;
}

/* Actions button & dropdown inside table */
.ivr-actions-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.ivr-action-btn {
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: var(--radius-sm);
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ivr-action-btn:hover {
  background: var(--surface-hover, #f2f4f7);
}

.ivr-action-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  min-width: 120px;
  padding: 6px 0;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  animation: addNumbersPopIn 0.15s ease;
}

.ivr-action-menu[hidden] {
  display: none !important;
}

.ivr-action-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--text, #101828);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ivr-action-item:hover {
  background: var(--surface-hover, #f2f4f7);
}

/* .ivr-action-item--delete {
  color: var(--danger, #c01048);
}

.ivr-action-item--delete:hover {
  background: var(--danger-bg, #fff1f3);
} */

.ivr-warning-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  outline: none;
}

#ivrAssignedPopover,
.ivr-assigned-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  right: auto;
  top: auto;
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  white-space: normal;
  text-align: left;
  background: var(--panel, #0e1629);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
}

#ivrAssignedPopover::before,
.ivr-assigned-popover::before {
  display: none;
}

#ivrAssignedPopover::after,
.ivr-assigned-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--panel, #0e1629) transparent transparent transparent;
}

.ivr-warning-badge:hover #ivrAssignedPopover,
.ivr-warning-badge:focus #ivrAssignedPopover,
.ivr-warning-badge:focus-within #ivrAssignedPopover,
.ivr-warning-badge:hover .ivr-assigned-popover,
.ivr-warning-badge:focus .ivr-assigned-popover,
.ivr-warning-badge:focus-within .ivr-assigned-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Delete IVR Confirmation Modal */
.ivr-delete-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: callFadeIn 0.18s ease;
  box-sizing: border-box;
}

.ivr-delete-modal-backdrop[hidden] {
  display: none !important;
}

.ivr-delete-modal {
  position: relative;
  width: 100%;
  max-width: 530px;
  background: var(--surface, #ffffff);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.22);
  padding: 26px 28px 24px;
  animation: addNumbersPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ivr-delete-modal__title {
  font-size: 25px;
  font-weight: 500;
  color: var(--text, #101828);
  margin: 0 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ivr-delete-modal__divider {
  margin: 0 -28px 20px;
  border: 0;
  border-top: 1px solid var(--border, #e4e7ec);
}

.ivr-delete-modal__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted, #344054);
  margin: 0 0 22px;
}

.ivr-delete-modal__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #101828);
  line-height: 1.45;
  margin: 0 0 12px;
}

.ivr-delete-modal__textarea {
  width: 100%;
  min-height: 105px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong, #475467);
  border-radius: 8px;
  font-family: inherit;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text, #101828);
  background: var(--surface, #ffffff);
  resize: none;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ivr-delete-modal__textarea::placeholder {
  color: #667085;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 1;
}

.ivr-delete-modal__textarea:focus {
  border-color: var(--brand, #2456e6);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.15);
}

.ivr-delete-modal__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.ivr-delete-modal__btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.15s ease;
}

.ivr-delete-modal__btn-delete:disabled {
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
}

.ivr-delete-modal__btn-delete:not(:disabled) {
  background: #d92d20;
  color: #ffffff;
  cursor: pointer;
}

.ivr-delete-modal__btn-delete:not(:disabled):hover {
  background: #b42318;
}

.ivr-delete-modal__btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-strong, #d0d5dd);
  color: var(--text, #344054);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ivr-delete-modal__btn-cancel:hover {
  background: var(--surface-hover, #f9fafb);
  border-color: #98a2b3;
}

@media (max-width: 600px) {
  .ivr-delete-modal {
    padding: 20px 18px 18px;
  }
  .ivr-delete-modal__title {
    font-size: 21px;
  }
  .ivr-delete-modal__divider {
    margin: 0 -18px 16px;
  }
  .ivr-delete-modal__textarea,
  .ivr-delete-modal__textarea::placeholder {
    font-size: 18px;
  }
}

/* ============================================================================
   IVR TEMPLATE SELECTION & PREVIEW MODALS (Image 1 & Image 2)
   ============================================================================ */

/* Select a Template Side Drawer (Image 1) */
.ivr-template-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(2px);
  z-index: 10010;
  animation: callFadeIn 0.2s ease;
  box-sizing: border-box;
}

.ivr-template-modal-backdrop[hidden] {
  display: none !important;
}

.ivr-template-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10011;
  width: min(650px, 100vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
  box-shadow: -12px 0 36px rgba(16, 24, 40, 0.18);
  border-left: 1px solid var(--border, #e4e7ec);
  border-radius: 0;
  box-sizing: border-box;
  overflow: hidden;
  animation: ivrDrawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ivrDrawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.ivr-template-modal__header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border, #e4e7ec);
}

.ivr-template-modal__title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text, #101828);
  margin: 0;
  line-height: 1.3;
}

.ivr-template-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted, #475467);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  padding: 0;
}

.ivr-template-modal__close:hover {
  background: var(--surface-hover, #f2f4f7);
  color: var(--text, #101828);
}

.ivr-template-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 28px 36px;
  overflow-y: auto;
}

.ivr-template-modal__intro {
  font-size: 14.5px;
  color: var(--text, #101828);
  margin: 0 0 20px;
  line-height: 1.45;
}

.ivr-template-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ivr-template-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: 16px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.ivr-template-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}

.ivr-template-card__icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #344054;
  flex: none;
}

.ivr-template-card__title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text, #101828);
  line-height: 1.35;
  margin: 0 0 22px;
  min-height: 42px;
}

.ivr-template-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.ivr-btn-use-template {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ivr-btn-use-template:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.ivr-btn-use-template--lg {
  min-height: 42px;
  padding: 8px 24px;
  font-size: 14px;
}

.ivr-btn-preview-template {
  background: transparent;
  border: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ivr-btn-preview-template:hover {
  text-decoration: underline;
}

/* Template Preview Modal (Image 2) */
.ivr-preview-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(2px);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: callFadeIn 0.18s ease;
  box-sizing: border-box;
}

.ivr-preview-modal-backdrop[hidden] {
  display: none !important;
}

.ivr-preview-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: var(--surface, #ffffff);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.24);
  animation: addNumbersPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overflow: hidden;
}

.ivr-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 16px;
}

.ivr-preview-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #101828);
  margin: 0;
  line-height: 1.3;
}

.ivr-preview-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted, #475467);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  padding: 0;
}

.ivr-preview-modal__close:hover {
  background: var(--surface-hover, #f2f4f7);
  color: var(--text, #101828);
}

.ivr-preview-modal__divider {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border, #e4e7ec);
}

.ivr-preview-modal__body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 28px 32px;
  max-height: calc(85vh - 70px);
  overflow-y: auto;
}

.ivr-preview-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #101828);
  margin: 0 0 12px;
}

.ivr-preview-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted, #344054);
  margin: 0 0 24px;
}

/* Right Flow Diagram */
.ivr-flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 6px;
}

.ivr-flow-card {
  box-sizing: border-box;
}

.ivr-flow-card--trigger {
  width: 220px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.ivr-flow-card__head {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  padding: 8px 12px;
  border-bottom: 1.5px solid #bae6fd;
}

.ivr-flow-card__body {
  color: var(--text, #101828);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 10px 14px;
}

.ivr-flow-stem {
  width: 2px;
  height: 18px;
  background: #344054;
}

.ivr-flow-card--action {
  width: 220px;
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text, #101828);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}

.ivr-flow-fork {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ivr-flow-branches-wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.ivr-flow-branches-bar {
  position: absolute;
  top: 0;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: #344054;
}

.ivr-flow-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.ivr-flow-branch-stem {
  width: 2px;
  height: 16px;
  background: #344054;
}

.ivr-flow-pill {
  background: #ffffff;
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text, #101828);
  white-space: nowrap;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

@media (max-width: 680px) {
  .ivr-template-cards-grid {
    grid-template-columns: 1fr;
  }
  .ivr-preview-modal__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767.98px) {
  .ivr-table-wrap {
    overflow-x: auto;
  }
  .ivr-table {
    min-width: 580px;
  }
  .ivr-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .ivr-learn-popover {
    width: calc(100vw - 32px);
    right: auto;
    left: 0;
  }
  .ivr-learn-popover::before {
    right: auto;
    left: 20px;
  }
}

/* -------------------------------------------------------------- popover / tooltip ---- */
/* ============================================================================
   REUSABLE POPOVER / TOOLTIP COMPONENT (.crm-popover-wrap & .crm-popover)
   Dark panel tooltip with multiple directions, responsive sizing, and
   safe viewport clipping (prevents horizontal scrollbars).
   ============================================================================ */

.crm-popover-wrap {
  position: relative;
  display: inline-flex;
  outline: none;
}

.crm-popover {
  position: absolute;
  z-index: 1000;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: var(--radius-sm, 6px);
  background: var(--panel, #0e1629);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  white-space: normal;
  text-align: left;
  box-sizing: border-box;
}

/* Links inside popovers */
.crm-popover a {
  color: var(--panel-accent, #8fb0ff);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  pointer-events: auto;
}
.crm-popover a:hover {
  color: #ffffff;
}

/* Display trigger */
.crm-popover-wrap:hover > .crm-popover,
.crm-popover-wrap:focus > .crm-popover,
.crm-popover-wrap:focus-within > .crm-popover,
.crm-popover.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Position: Top (Default) --- */
.crm-popover,
.crm-popover--top {
  bottom: calc(100% + 9px);
  left: 50%;
  top: auto;
  right: auto;
  transform: translateX(-50%) translateY(4px);
}
.crm-popover-wrap:hover > .crm-popover,
.crm-popover-wrap:focus > .crm-popover,
.crm-popover-wrap:focus-within > .crm-popover,
.crm-popover.is-visible,
.crm-popover-wrap:hover > .crm-popover--top,
.crm-popover-wrap:focus > .crm-popover--top,
.crm-popover-wrap:focus-within > .crm-popover--top {
  transform: translateX(-50%) translateY(0);
}
.crm-popover::after,
.crm-popover--top::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-width: 6px;
  border-style: solid;
  border-color: var(--panel, #0e1629) transparent transparent transparent;
}

/* --- Position: Top-Start (aligned to left edge of trigger) --- */
.crm-popover--top-start,
.crm-popover--start {
  left: 0;
  right: auto;
  transform: translateY(4px);
}
.crm-popover-wrap:hover > .crm-popover--top-start,
.crm-popover-wrap:focus > .crm-popover--top-start,
.crm-popover-wrap:focus-within > .crm-popover--top-start,
.crm-popover-wrap:hover > .crm-popover--start,
.crm-popover-wrap:focus > .crm-popover--start,
.crm-popover-wrap:focus-within > .crm-popover--start {
  transform: translateY(0);
}
.crm-popover--top-start::after,
.crm-popover--start::after {
  left: 32px;
  transform: none;
}

/* --- Position: Top-End (aligned to right edge of trigger) --- */
.crm-popover--top-end,
.crm-popover--end {
  left: auto;
  right: 0;
  transform: translateY(4px);
}
.crm-popover-wrap:hover > .crm-popover--top-end,
.crm-popover-wrap:focus > .crm-popover--top-end,
.crm-popover-wrap:focus-within > .crm-popover--top-end,
.crm-popover-wrap:hover > .crm-popover--end,
.crm-popover-wrap:focus > .crm-popover--end,
.crm-popover-wrap:focus-within > .crm-popover--end {
  transform: translateY(0);
}
.crm-popover--top-end::after,
.crm-popover--end::after {
  left: auto;
  right: 32px;
  transform: none;
}

/* --- Position: Bottom --- */
.crm-popover--bottom {
  top: calc(100% + 9px);
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-4px);
}
.crm-popover-wrap:hover > .crm-popover--bottom,
.crm-popover-wrap:focus > .crm-popover--bottom,
.crm-popover-wrap:focus-within > .crm-popover--bottom {
  transform: translateX(-50%) translateY(0);
}
.crm-popover--bottom::after {
  top: auto;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--panel, #0e1629) transparent;
}

/* --- Position: Left (Side popover, identical to nt-disabled-switch__popover) --- */
.crm-popover--left {
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(4px);
}
.crm-popover-wrap:hover > .crm-popover--left,
.crm-popover-wrap:focus > .crm-popover--left,
.crm-popover-wrap:focus-within > .crm-popover--left {
  transform: translateY(-50%) translateX(0);
}
.crm-popover--left::before {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 100%;
}
.crm-popover--left::after {
  top: 50%;
  right: -8px;
  left: auto;
  bottom: auto;
  width: 0;
  height: 0;
  border-width: 6px 0 6px 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--panel, #0e1629);
  transform: translateY(-50%);
}

/* --- Position: Right (Side popover) --- */
.crm-popover--right {
  left: calc(100% + 12px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(-4px);
}
.crm-popover-wrap:hover > .crm-popover--right,
.crm-popover-wrap:focus > .crm-popover--right,
.crm-popover-wrap:focus-within > .crm-popover--right {
  transform: translateY(-50%) translateX(0);
}
.crm-popover--right::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}
.crm-popover--right::after {
  top: 50%;
  left: -8px;
  right: auto;
  bottom: auto;
  width: 0;
  height: 0;
  border-width: 6px 8px 6px 0;
  border-style: solid;
  border-color: transparent var(--panel, #0e1629) transparent transparent;
  transform: translateY(-50%);
}

/* --- Size modifiers --- */
.crm-popover--sm {
  width: 200px;
}
.crm-popover--lg {
  width: 360px;
}
.crm-popover--auto {
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
}

/* Aliases for backwards compatibility with existing templates */
.nt-disabled-switch,
.ivr-popover-anchor,
.call-setup-audio-anchor {
  position: relative;
  display: inline-flex;
  outline: none;
}
.calls-empty-img {
  width: 100px;
  height: 100px;
  object-fit: scale-down;
  margin: 0 auto;
}