/* Ads tab (admin) */

#adsPanel {
  min-width: 0;
  overflow: hidden;
}

/* Host apenas de montagem: o modal é `position: fixed`, então o wrapper não
 * deve gerar caixa nem participar do fluxo do #viewHost. */
#adsAccountsModalMount {
  display: contents;
}

.lv--ads {
  --ads-divider: rgba(55, 53, 47, 0.10);
  --ads-row-radius: 10px;
  width: 100%;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
}

.lv--ads :is(.lv-head, .ads-table-row, .ads-table-total) {
  overflow: visible;
  isolation: isolate;
}

.lv--ads .lv-head {
  background: #f5f5f7;
}

.lv--ads .ads-table-row {
  background: #fff;
  cursor: pointer;
}

.lv--ads .ads-table-row:hover {
  background: #f7f7f8;
}

.lv--ads .ads-table-row.is-selected,
.lv--ads .ads-table-row.is-selected:hover {
  background: #f2f2f3;
  border-color: rgba(55, 53, 47, 0.16);
}

.lv--ads .ads-table-total {
  background: #f5f5f4;
}

.lv--ads :is(.lv-head, .ads-table-row, .ads-table-total) > div {
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
  border-right: 1px solid var(--ads-divider);
  background: inherit;
  background-clip: border-box;
}

.lv--ads :is(.lv-head, .ads-table-row, .ads-table-total) > div:last-child {
  border-right: none;
  border-top-right-radius: var(--ads-row-radius);
  border-bottom-right-radius: var(--ads-row-radius);
}

.lv--ads :is(.lv-head, .ads-table-row, .ads-table-total) > div:first-child {
  border-top-left-radius: var(--ads-row-radius);
  border-bottom-left-radius: var(--ads-row-radius);
}

.lv--ads.is-hscrolling .lv-column-frozen-edge {
  box-shadow:
    inset -1px 0 0 var(--ads-divider),
    10px 0 16px -12px rgba(15, 23, 42, 0.35);
}

.ads-head-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.ads-col-name {
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
}

.ads-col-metric {
  justify-content: flex-start;
  text-align: left;
  overflow: visible;
}

.ads-cell-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}

.ads-title,
.ads-sub {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ads-title {
  font-size: var(--admin-fs-lg);
  font-weight: var(--admin-fw-semibold);
  line-height: var(--admin-lh-normal);
}

.ads-sub {
  font-size: var(--admin-fs-sm);
  color: var(--admin-muted);
  font-weight: var(--admin-fw-medium);
  line-height: var(--admin-lh-normal);
}

.lv--ads .lv-empty {
  padding: 12px;
}

@media (max-width: 980px) {
  .ads-date {
    min-width: 0;
  }
}

.ads-accounts-modal-body { min-width: 0; max-height: 72vh; overflow-y: auto; overflow-x: hidden; }
.ads-accounts-lv { font-size: 12.5px; overflow-x: hidden; }
.ads-accounts-lv .lv-row { align-items: stretch; }
.ads-accounts-lv .lv-row > div, .ads-accounts-lv .lv-cell-button, .ads-accounts-lv .lv-inline-cell { min-height: 100%; }
.ads-accounts-products-editor { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
