/* Search Console CRM — small additions on top of the vendored Tabler CSS (loaded first). Colours come from
   Tabler's variables, so light and dark (data-bs-theme on <html>) both work; every state is also written as text. */

.boot { padding: 2rem; color: var(--tblr-secondary); }

/* focus is always visible; the view container takes focus from the skip button without an outline */
:focus-visible { outline: 3px solid var(--tblr-primary); outline-offset: 2px; }
main:focus { outline: none; }
.skip { position: absolute; left: -9999px; top: 0.5rem; z-index: 1100; }
.skip:focus { left: 0.5rem; }

/* sidebar: brand, section header, footer with the user, password, logout and theme */
.navbar-vertical .navbar-brand a { color: inherit; text-decoration: none; font-weight: var(--tblr-font-weight-bold); }
.brand-title { font-size: 1.25rem; font-weight: var(--tblr-font-weight-bold); }
.nav-section { margin-top: 1rem; }
.nav-subheader { display: block; padding: 0.25rem 0.75rem; font-size: 0.7rem; font-weight: var(--tblr-font-weight-semibold);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--tblr-secondary); }
.navbar-vertical .navbar-collapse { flex-direction: column; align-items: stretch; }
.sidebar-nav { width: 100%; }
.sidebar-footer { width: 100%; margin-top: auto; padding: 1rem 0 0.5rem; border-top: 1px solid var(--tblr-border-color); }
.sidebar-user { padding: 0 0.75rem 0.5rem; }
.sidebar-user-name { font-weight: var(--tblr-font-weight-semibold); overflow-wrap: anywhere; }
.sidebar-user-role { font-size: 0.8rem; color: var(--tblr-secondary); }
.navbar-vertical button.nav-link { width: 100%; background: none; border: 0; text-align: start; }

/* the view */
.view { padding-bottom: 3rem; }
.stack-y > * + * { margin-top: 1rem; }
.page-wrapper .page-header { margin: 0 0 1rem; }
.page-title .host, .host { overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 0.5rem; text-decoration: none; }
.back-link .icon { width: 1rem; height: 1rem; }
.narrow { max-width: 32rem; }
.stack { display: flex; flex-direction: column; gap: 0.8rem; }

/* status line (aria-live): the text says it; the colours repeat it */
.live { min-height: 1.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; }
.live:empty { min-height: 0; margin: 0; }
.live-info { color: var(--tblr-secondary); }
.live-error { padding: 0.5rem 0.75rem; border-radius: var(--tblr-border-radius); font-weight: var(--tblr-font-weight-semibold);
  color: var(--tblr-danger-text-emphasis, var(--tblr-danger)); background: var(--tblr-danger-bg-subtle, var(--tblr-red-lt)); }

/* forms: the label wraps the control (no ids) */
.field { display: block; margin: 0; }
.field .form-label { display: block; }
.filters-check, .create-user-submit { padding-bottom: 0.4rem; }
.create-user-submit .btn { width: 100%; }
.temp-password-row { max-width: 28rem; }

/* tables */
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.wrap, td a { overflow-wrap: anywhere; }
/* narrow screens: the table scrolls sideways instead of breaking hosts letter by letter */
.table.domains td:nth-child(2) { min-width: 12rem; }   /* the host (after the tier) */
.banners:empty { display: none; }
.banner { margin-bottom: 0; }
.data-as-of { margin: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.pager .btn .icon:last-child:not(:first-child) { margin-inline: 0.25rem 0; }

/* checklist in miniature: the shape repeats the state written in each dot's label */
.progress-dots { display: inline-flex; gap: 0.25rem; align-items: center; vertical-align: middle; }
.pdot { --pdot: var(--tblr-secondary); display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%;
  border: 2px solid var(--pdot); background: var(--pdot); }
.pdot-done { --pdot: var(--tblr-green); }
.pdot-done_system { --pdot: var(--tblr-green); box-shadow: 0 0 0 2px var(--tblr-green-lt); }
.pdot-todo, .pdot-not_measured, .pdot-unknown { background: transparent; }
.pdot-not_measured, .pdot-unknown { border-style: dotted; }
.pdot-broken { --pdot: var(--tblr-red); border-radius: 2px; }
.pdot-waiting { --pdot: var(--tblr-yellow); background: linear-gradient(90deg, var(--pdot) 50%, transparent 50%); }

.dots-cell { display: inline-flex; gap: 0.4rem; align-items: center; }
.pcount { font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--tblr-secondary); }

/* queue */
.table.queue td.host-cell { min-width: 10rem; }
.table.queue td.next-step { min-width: 15rem; }
.table.queue .badge { white-space: normal; text-align: start; line-height: 1.3; }
.next-step .btn { margin-top: 0.25rem; }
.notices:empty { display: none; }
.notices .alert { margin-bottom: 0; }

/* card */
.back-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.perm-reason { display: flex; gap: 0.35rem; align-items: center; margin-top: 0.5rem; }
.perm-reason .icon { width: 1rem; height: 1rem; flex: none; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-item { padding: 0.5rem 0; border-bottom: 1px solid var(--tblr-border-color); }
.check-item:last-child { border-bottom: 0; }
.check-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.25rem 0 0 1.75rem; }
.check-note { margin: 0.25rem 0 0 1.75rem; font-style: italic; }
.comment { padding-bottom: 0.75rem; border-bottom: 1px solid var(--tblr-border-color); }
.comment:last-child { border-bottom: 0; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 0.25rem; }
.comment-hidden { font-style: italic; margin-top: 0.25rem; overflow-wrap: anywhere; }
.comment-actions { margin-top: 0.25rem; }

/* stage 3: copy buttons, item controls on the card, «Акаунти», evidence, programmer tab */
.stack-tight > * + * { margin-top: 0.35rem; }
.copyable { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.copy-value { overflow-wrap: anywhere; }
.copy-btn .icon { width: 1rem; height: 1rem; }
.item-extra { margin: 0.5rem 0 0 1.75rem; }
.item-extra + .item-extra { margin-top: 0.35rem; }
.item-extra .form-select { max-width: 30rem; }
.item-warn { color: var(--tblr-warning-text-emphasis, var(--tblr-warning)); }
.sa-suggestion, .sa-blockers { margin-top: 0.35rem; }
.sa-blockers ul { padding-left: 1.1rem; }
.account-dialog { background: var(--tblr-bg-surface-secondary); }
.table.accounts-sa td.binding-cell { min-width: 14rem; }
.table.accounts-sa td:first-child { min-width: 10rem; }
.notes-cell { max-width: 18rem; white-space: pre-wrap; }
.sa-hint { margin-top: 0.25rem; }
.sa-evidence .evidence td { overflow-wrap: anywhere; }
.table.programmer td:nth-child(5) { min-width: 13rem; }
.episode-detail > td { background: var(--tblr-bg-surface-secondary); }
.episode-history.nested { padding-left: 0.75rem; border-left: 2px solid var(--tblr-border-color); }

@media (max-width: 991.98px) {
  .sidebar-footer { margin-top: 0.5rem; }
}
@media (min-width: 768px) { .take-col { padding-top: 1.85rem; } }   /* level with the controls under their labels */
