/* src/pages/Anuncios.css */
.anuncios-page {
  min-height: calc(var(--app-dvh, 100vh) - 24px);
  padding: 10px 14px 22px;
  background: #f3f6fa;
  color: #111827;
}
.anuncios-page *,
.anuncios-page *::before,
.anuncios-page *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}
.anuncios-page-head,
.anuncios-section-head,
.anuncios-footer,
.anuncios-head-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.anuncios-page-head {
  justify-content: space-between;
  margin-bottom: 14px;
}
.anuncios-page h1,
.anuncios-page h2,
.anuncios-page h3 {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  line-height: 1.15;
}
.anuncios-page h1 {
  font-size: 1.55rem;
}
.anuncios-page h2 {
  font-size: 1.12rem;
}
.anuncios-page h3 {
  font-size: 0.95rem;
}
.anuncios-page p,
.anuncios-muted {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}
.anuncios-head-status {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.anuncios-flowbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}
.anuncios-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  margin-bottom: 0;
  padding: 3px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
}
.anuncios-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  padding: 0 11px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.anuncios-tabs button.is-active {
  background: #1d4ed8;
  color: #ffffff;
}
.anuncios-tabs span {
  display: inline-grid;
  min-width: 21px;
  min-height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  padding: 0 5px;
  font-size: 0.68rem;
}
.anuncios-tabs button.is-active span {
  background: rgba(255, 255, 255, 0.18);
}
.anuncios-surface {
  padding: 10px 12px 12px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.anuncios-section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}
.anuncios-offers-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  min-height: 32px;
  min-width: 0;
  margin-bottom: 0;
  padding: 0 2px;
}
.anuncios-offers-summary-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-width: 0;
}
.anuncios-offers-title {
  margin-right: 2px;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
}
.anuncios-compact-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.1;
  white-space: nowrap;
}
.anuncios-compact-stat strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 900;
}
.anuncios-rollout-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}
.anuncios-sku-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  vertical-align: baseline;
}
.anuncios-sku-badge.is-mlb {
  border: 1px solid #f59e0b;
  border-radius: 6px;
  background: #fef3c7;
  color: #78350f;
  padding: 1px 5px;
  font-weight: 950;
}
.anuncios-button,
.anuncios-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  padding: 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.anuncios-button.compact-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.anuncios-button:hover:not(:disabled),
.anuncios-icon-button:hover:not(:disabled) {
  border-color: #2563eb;
  color: #1d4ed8;
}
.anuncios-button.primary {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}
.anuncios-button.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}
.anuncios-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.anuncios-icon-button {
  width: 38px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}
.anuncios-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.anuncios-metric {
  min-height: 78px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}
.anuncios-metric span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}
.anuncios-metric strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}
.anuncios-metric small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.74rem;
}
.anuncios-filters {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(170px, 0.75fr) minmax(150px, 0.55fr) minmax(100px, 0.35fr);
  gap: 10px;
  margin-bottom: 8px;
}
.anuncios-filters.compact {
  grid-template-columns: minmax(180px, 260px);
}
.anuncios-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
}
.anuncios-bulk-bar > div,
.anuncios-action-stack {
  display: flex;
  gap: 8px;
}
.anuncios-action-stack {
  flex-direction: column;
}
.anuncios-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 850;
}
.anuncios-filters input,
.anuncios-filters select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  outline: 0;
}
.anuncios-table input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1d4ed8;
}
.anuncios-filters input:focus,
.anuncios-filters select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}
.anuncios-table-shell {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}
.anuncios-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  table-layout: fixed;
}
.anuncios-table.queue {
  min-width: 900px;
  table-layout: auto;
}
.anuncios-table.published {
  min-width: 1320px;
  table-layout: auto;
}
.anuncios-table.published th:nth-child(1),
.anuncios-table.published td:nth-child(1) {
  width: 260px;
  text-align: left;
}
.anuncios-table.published th:nth-child(2),
.anuncios-table.published td:nth-child(2) {
  width: 130px;
}
.anuncios-table.published th:nth-child(3),
.anuncios-table.published td:nth-child(3) {
  width: 180px;
}
.anuncios-table.published th:nth-child(n+4),
.anuncios-table.published td:nth-child(n+4) {
  width: 125px;
  text-align: center;
}
.anuncios-table.published .anuncios-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
}
.anuncios-table-shell.published {
  max-height: calc(var(--app-dvh, 100vh) - 280px);
}
.anuncios-table th,
.anuncios-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 12px 13px;
  text-align: left;
  vertical-align: middle;
}
.anuncios-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #52627a;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}
.anuncios-table td {
  color: #111827;
  font-size: 0.84rem;
}
.anuncios-table tr.is-clickable {
  cursor: pointer;
}
.anuncios-table tr.is-clickable:hover td {
  background: #f8fbff;
}
.anuncios-table td small,
.anuncios-product-cell small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.35;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(1),
.anuncios-table:not(.queue):not(.published) td:nth-child(1) {
  width: 42px;
  text-align: center;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(2),
.anuncios-table:not(.queue):not(.published) td:nth-child(2) {
  width: 78px;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(3),
.anuncios-table:not(.queue):not(.published) td:nth-child(3) {
  width: 220px;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(4),
.anuncios-table:not(.queue):not(.published) td:nth-child(4) {
  width: 95px;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(5),
.anuncios-table:not(.queue):not(.published) td:nth-child(5) {
  width: 110px;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(6),
.anuncios-table:not(.queue):not(.published) td:nth-child(6) {
  width: 110px;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(7),
.anuncios-table:not(.queue):not(.published) td:nth-child(7) {
  width: 104px;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(8),
.anuncios-table:not(.queue):not(.published) td:nth-child(8) {
  width: 145px;
}
.anuncios-table:not(.queue):not(.published) th:nth-child(9),
.anuncios-table:not(.queue):not(.published) td:nth-child(9) {
  width: 150px;
}
.anuncios-table td:last-child .anuncios-button {
  width: 100%;
  min-width: 0;
  max-width: none;
  white-space: normal;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.anuncios-actions-cell {
  width: 110px;
}
.anuncios-button.compact-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}
.anuncios-product-cell {
  min-width: 0;
}
.anuncios-product-cell strong {
  display: block;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.anuncios-product-cell a {
  display: inline-flex;
  margin-top: 7px;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}
.anuncios-thumb-empty,
.anuncios-table img {
  width: 62px;
  height: 62px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f8fafc;
}
.anuncios-table img {
  object-fit: contain;
}
.anuncios-thumb-empty {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 850;
  text-align: center;
}
.anuncios-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.anuncios-badge.tone-success {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}
.anuncios-badge.tone-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}
.anuncios-badge.tone-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}
.anuncios-badge.tone-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.anuncios-badge.tone-muted {
  border-color: #d7e0eb;
  background: #f8fafc;
  color: #475569;
}
.anuncios-alert {
  margin-bottom: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 11px 13px;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.45;
}
.anuncios-alert.tone-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}
.anuncios-alert.tone-warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}
.anuncios-footer {
  justify-content: space-between;
  margin-top: 12px;
  color: #52627a;
  font-size: 0.82rem;
  font-weight: 760;
}
.anuncios-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.anuncios-pagination button {
  min-height: 34px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  padding: 0 11px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}
.anuncios-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.anuncios-empty-cell {
  padding: 30px !important;
  color: #64748b;
  text-align: center;
  font-weight: 850;
}
.anuncios-skeleton-row td span {
  display: block;
  width: 100%;
  height: 18px;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      #eef2f7 0%,
      #f8fafc 42%,
      #eef2f7 100%);
  background-size: 220% 100%;
  animation: anuncios-skeleton 1.15s ease-in-out infinite;
}
@keyframes anuncios-skeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.anuncios-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  padding: 22px;
}
.anuncios-modal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1180px, 100%);
  max-height: min(820px, calc(var(--app-dvh, 100vh) - 44px));
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}
.anuncios-modal.wide {
  width: min(1360px, 100%);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.anuncios-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.anuncios-modal-head h2 {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.anuncios-detail-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.anuncios-detail-tabs button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  padding: 0 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.anuncios-detail-tabs button.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.anuncios-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}
.anuncios-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.anuncios-json-editor {
  display: block;
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf7;
  padding: 12px;
  font:
    650 0.78rem/1.55 ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  outline: 0;
  tab-size: 2;
}
.anuncios-json-editor:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}
.anuncios-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.anuncios-detail-grid section,
.anuncios-history article {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 13px;
}
.anuncios-detail-grid .span-full {
  grid-column: 1 / -1;
}
.anuncios-kv {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 11px 0 0;
}
.anuncios-kv div {
  display: contents;
}
.anuncios-kv dt {
  color: #64748b;
  font-size: 0.77rem;
  font-weight: 850;
}
.anuncios-kv dd {
  min-width: 0;
  margin: 0;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 730;
  overflow-wrap: anywhere;
}
.anuncios-image-diagnostics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.anuncios-image-diagnostics div {
  min-height: 62px;
  border: 1px solid #e4ebf4;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}
.anuncios-image-diagnostics span {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 850;
}
.anuncios-image-diagnostics strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 1rem;
}
.anuncios-image-diagnostics p {
  grid-column: 1 / -1;
}
.anuncios-mini-table {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.anuncios-mini-table div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 9px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 7px;
}
.anuncios-mini-table span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
}
.anuncios-mini-table strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}
.anuncios-clean-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.38;
}
.anuncios-clean-list:empty::before {
  content: "Sem registros.";
  margin-left: -18px;
  color: #64748b;
  font-weight: 760;
}
.anuncios-editorial-panel {
  border-color: #dbeafe;
  background: #f8fbff;
}
.anuncios-editorial-panel.is-blocked {
  border-color: #fed7aa;
  background: #fff7ed;
}
.anuncios-editorial-panel.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.anuncios-editorial-issues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.anuncios-editorial-issues article {
  min-width: 0;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}
.anuncios-editorial-issues strong,
.anuncios-editorial-feedback strong {
  display: block;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 920;
}
.anuncios-editorial-issues span {
  display: inline-block;
  margin-top: 3px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 850;
}
.anuncios-editorial-issues p {
  margin-top: 7px;
  color: #334155;
  font-size: 0.78rem;
}
.anuncios-editorial-feedback {
  margin-top: 10px;
  border-top: 1px solid rgba(251, 146, 60, 0.36);
  padding-top: 10px;
}
.anuncios-editorial-feedback ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.4;
}
.anuncios-editorial-text {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.anuncios-editorial-text article {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}
.anuncios-editorial-text article > span {
  display: block;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.anuncios-editorial-text p {
  margin-top: 6px;
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.anuncios-editorial-mark {
  border: 1px solid #f97316;
  border-radius: 5px;
  background: #fef08a;
  color: #7c2d12;
  padding: 0 3px;
  font-weight: 900;
}
.anuncios-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.anuncios-gallery figure {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}
.anuncios-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}
.anuncios-gallery figcaption {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}
.anuncios-score-box {
  display: grid;
  align-content: center;
  min-height: 150px;
  text-align: center;
}
.anuncios-score-box strong {
  margin: 8px 0;
  color: #0f172a;
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1;
}
.anuncios-criteria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.anuncios-criteria div {
  min-height: 70px;
  border: 1px solid #e4ebf4;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}
.anuncios-criteria span,
.anuncios-criteria small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}
.anuncios-criteria strong {
  display: block;
  margin: 5px 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
}
.anuncios-json {
  max-height: 360px;
  overflow: auto;
  margin: 10px 0 0;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf6;
  padding: 12px;
  font-size: 0.76rem;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.anuncios-history {
  display: grid;
  gap: 10px;
}
.anuncios-history article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.anuncios-history article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #eef3f8;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 900;
}
.anuncios-history strong {
  display: block;
  color: #0f172a;
  font-size: 0.88rem;
}
.anuncios-history small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}
.anuncios-history p {
  margin-top: 5px;
}
.anuncios-history article.is-done {
  border-color: #bbf7d0;
  background: #f7fefb;
}
.anuncios-history article.is-running {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.anuncios-history article.is-warning {
  border-color: #fed7aa;
  background: #fff7ed;
}
.anuncios-history article.is-error {
  border-color: #fecaca;
  background: #fff1f2;
}
@media (max-width: 1100px) {
  .anuncios-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .anuncios-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .anuncios-page {
    padding: 66px 12px 12px;
  }
  .anuncios-page-head,
  .anuncios-section-head,
  .anuncios-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .anuncios-head-status {
    justify-content: flex-start;
  }
  .anuncios-flowbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    width: 100%;
  }
  .anuncios-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .anuncios-tabs button {
    min-width: 0;
    white-space: normal;
  }
  .anuncios-offers-summary {
    align-items: stretch;
    flex: none;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    width: 100%;
  }
  .anuncios-offers-summary-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    width: 100%;
  }
  .anuncios-offers-title,
  .anuncios-rollout-chip {
    grid-column: 1 / -1;
  }
  .anuncios-rollout-chip {
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .anuncios-compact-stat {
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
    white-space: normal;
  }
  .anuncios-button.compact-button {
    justify-content: center;
    width: 100%;
  }
  .anuncios-surface {
    padding: 12px;
  }
  .anuncios-metrics,
  .anuncios-filters,
  .anuncios-filters.compact,
  .anuncios-detail-grid,
  .anuncios-criteria {
    grid-template-columns: 1fr;
  }
  .anuncios-detail-grid .span-full {
    grid-column: auto;
  }
  .anuncios-modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }
  .anuncios-modal {
    max-height: calc(var(--app-dvh, 100vh) - 16px);
  }
  .anuncios-modal-head {
    padding: 12px;
  }
  .anuncios-modal-body {
    padding: 12px;
  }
  .anuncios-kv,
  .anuncios-mini-table div {
    grid-template-columns: 1fr;
  }
  .anuncios-image-diagnostics {
    grid-template-columns: 1fr;
  }
}
