/* Domain history uses the same light surfaces and clear boundaries as the lists. */
#ctrlviewConsole dialog.site-domain-history {
  width: min(1200px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 0;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  box-shadow: 0 12px 40px #3440541a;
}
#ctrlviewConsole dialog.site-domain-history::backdrop { background: #25314d59; }
#ctrlviewConsole .site-domain-history .dialog-card { width: 100%; max-width: none; margin: 0; padding: 0; background: #fff; color: #344054; }
#ctrlviewConsole .site-domain-history .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 20px 24px; border-bottom: 1px solid #e5e7ef; background: #fff; }
#ctrlviewConsole .site-domain-history .dialog-heading h3 { margin: 0; color: #344054; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
#ctrlviewConsole .site-domain-history .icon-button { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid #e5e7ef; border-radius: 6px; background: #fff; color: #526076; box-shadow: none; font-size: 24px; }
#ctrlviewConsole .site-domain-history-body { padding: 20px 24px; color: #344054; font-size: 16px; line-height: 1.6; }
#ctrlviewConsole .site-domain-history-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
#ctrlviewConsole .site-domain-history-filters label { display: grid; min-width: 180px; max-width: 100%; gap: 6px; color: #344054; font-size: 16px; }
#ctrlviewConsole .site-domain-history-filters label:last-child { flex: 1; }
#ctrlviewConsole .site-domain-history-filters select { width: 100%; min-height: 42px; max-width: 100%; padding: 8px 12px; border: 1px solid #d8dce5; border-radius: 6px; background: #fff; color: #344054; box-shadow: none; font-size: 16px; }
#ctrlviewConsole .site-domain-history-note { color: #596579; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#ctrlviewConsole .site-domain-history [data-history-status] { margin: 20px 0; color: #526076; font-size: 16px; }
#ctrlviewConsole .site-domain-history [data-history-error] { margin: 16px 0 0; padding: 14px 16px; border: 1px solid #f1d3d7; border-radius: 6px; background: #fff4f5; color: #9f2536; font-size: 16px; }
#ctrlviewConsole .site-domain-history [data-history-error-message] { margin: 0 0 12px; overflow-wrap: anywhere; }
#ctrlviewConsole .site-domain-history .site-domain-history-table { max-height: min(48dvh, 500px); border: 1px solid #e5e7ef; border-radius: 6px; scrollbar-gutter: stable; }
#ctrlviewConsole .site-domain-history-table table { width: 100%; min-width: 960px; margin: 0; border-collapse: collapse; color: #344054; font-size: 16px; }
#ctrlviewConsole .site-domain-history-table :is(th, td) { padding: 14px 16px; border-bottom: 1px solid #e5e7ef; background: #fff; color: #344054; font-size: 16px; line-height: 1.6; white-space: nowrap; }
#ctrlviewConsole .site-domain-history-table th { position: sticky; top: 0; z-index: 1; background: #f7f8fc; color: #596579; font-weight: 500; }
#ctrlviewConsole .site-domain-history-table :is(th, td):is(:nth-child(2), :nth-child(3), :nth-child(4)) { text-align: right; font-variant-numeric: tabular-nums; }
#ctrlviewConsole .site-domain-history-table :is(th, td):first-child { min-width: 220px; max-width: 340px; white-space: normal; overflow-wrap: anywhere; }
#ctrlviewConsole .site-domain-history-table tbody tr:hover td { background: #f6f5fb; }
#ctrlviewConsole .site-domain-history-table .table-action { width: auto; height: auto; padding: 6px 10px; border: 1px solid #e2dfed; border-radius: 6px; background: #fff; color: #6351a1; box-shadow: none; font-size: 13px; text-decoration: none; }
#ctrlviewConsole .site-domain-history-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 0 0; color: #596579; font-size: 14px; }
#ctrlviewConsole .site-domain-history .dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin: 0; padding: 16px 24px; border-top: 1px solid #e5e7ef; background: #f9faff; }
#ctrlviewConsole .site-domain-history :is(button, select, a):focus-visible { outline: 2px solid #7b61b6; outline-offset: 2px; }
#ctrlviewConsole .site-domain-history :is([hidden], .hidden) { display: none; }
#ctrlviewConsole .site-domain-change-note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e5e7ef; border-radius: 6px; background: #f7f8fc; color: #526076; font-size: 14px; }
