/* The new look on pages that keep their older markup (#582, #584, #586, #587). */

/* ---- Job page ---------------------------------------------------------------------- */
.qcb-jobpage-head {
    align-items: flex-start;
    gap: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.qcb-jobpage-title {
    font-family: var(--qcb-font-body);
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.qcb-jobpage-titlerow {
    gap: 0.625rem;
}

/* The kind and connection badges, one group in the title row (#612): they share a
   centre line and wrap under the title together. The kind badge's hint wrapper is
   centred like the badge beside it, with the group's gap as its only spacing. */
.qcb-jobpage-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    white-space: nowrap;
}

.qcb-kind-badge-wrap {
    display: inline-flex;
    align-items: center;
}

.qcb-jobflow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.qcb-jobflow-seg {
    padding: 0;
    gap: 0.5rem;
}

.qcb-jobflow-icon,
.qcb-jobflow-divider {
    display: none;
}

.qcb-jobflow-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--qcb-text-muted);
}

.qcb-jobflow-name,
.qcb-jobflow-name a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--qcb-text);
}

.qcb-jobflow-note {
    font-size: 0.75rem;
    color: var(--qcb-text-muted);
}

.qcb-jobflow-arrow {
    color: var(--qcb-text-muted);
}

/* On a phone the parts stack. Each starts at the left edge with its logo, the arrow
   under the first logo, rather than all of them centred (#606). */
@media (max-width: 575.98px) {
    .qcb-jobflow {
        align-items: flex-start;
    }

    .qcb-jobflow-arrow {
        padding-left: 0.375rem;
    }
}

/* The status cards become one row of facts between two thin lines, with the job's sentence
   on top, where it reads as the page's description. */
.qcb-jobpage-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
    gap: 0;
    margin-bottom: 1.25rem;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--qcb-border);
}

.qcb-jobpage-stat {
    padding: 0.75rem 1rem 0.875rem 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.qcb-jobpage-stat-k {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--qcb-text-muted);
}

.qcb-jobpage-stat-v {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--qcb-text);
}

.qcb-jobpage-stat-s,
.qcb-jobpage-stat-s a {
    font-size: 0.8125rem;
    color: var(--qcb-text-muted);
}

.qcb-jobpage-sentence {
    max-width: 52rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--qcb-text-muted);
}

.qcb-jobpage-dot {
    width: 0.5rem;
    height: 0.5rem;
}

.qcb-jobpage-dot--ok { background: var(--qcb-quiet-symbol); }
.qcb-jobpage-dot--warn { background: var(--qcb-attention); }
.qcb-jobpage-dot--bad { background: var(--qcb-failure); }
.qcb-jobpage-dot--run { background: var(--qcb-text); }

.qcb-jobpage-checks li.is-ok i { color: var(--qcb-quiet-symbol); }
.qcb-jobpage-checks li.is-warn i { color: var(--qcb-attention); }

/* The Overview tab (#605): where the job sits with its sentence, how it is doing, and
   Related beside About this job. The status row and the sentence used to sit above the
   tabs; inside a card they lose the lines that set them off there. */
.qcb-jobov {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.qcb-jobov-card {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem 1.25rem;
    background: var(--qcb-surface);
    border: 1px solid var(--qcb-border);
    border-radius: var(--qcb-radius-card);
}

.qcb-jobov-k {
    margin: 0;
    font-family: var(--qcb-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qcb-text-muted);
}

.qcb-jobov-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
    gap: 1rem;
    align-items: start;
}

.qcb-jobov .qcb-jobpage-status {
    margin-bottom: 0;
    border-bottom: 0;
}

.qcb-jobov .qcb-jobpage-stat {
    padding: 0 1rem 0 0;
}

.qcb-jobov .qcb-jobpage-facts {
    margin: 0;
}

.qcb-jobov-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background: var(--qcb-attention-surface);
    border: 1px solid var(--qcb-attention-border);
    border-radius: var(--qcb-radius-card);
}

.qcb-jobov-notice > i {
    flex: none;
    font-size: 1rem;
    line-height: 1.25rem;
    color: var(--qcb-attention);
}

.qcb-jobov-notice strong {
    font-weight: 600;
}

.qcb-jobov-notice .qcb-jobpage-checks {
    margin: 0.125rem 0 0;
}

.qcb-jobov-notice .qcb-jobpage-checks li {
    flex-wrap: wrap;
    column-gap: 0.75rem;
}

/* A tab that holds something to change before the job can be saved. */
.qcb-jobpage-problem {
    font-size: 0.875rem;
    line-height: 1;
    color: var(--qcb-attention);
}

/* A switch with its sentence right beside it. BootstrapBlazor's switch takes the whole
   row otherwise, which puts the sentence at the far edge of a wide section. */
.qcb-switch-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qcb-switch-row > .switch {
    flex: 0 0 auto;
    width: auto;
}

/* The shared save bar's other messages (#591), and a changed tab's dot. */
.qcb-savebar-saved {
    color: var(--qcb-quiet-symbol);
}

.qcb-savebar-blocked {
    flex: 1 1 16rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--qcb-attention);
}

.qcb-tab .qcb-savebar-dot {
    display: inline-block;
    margin-left: 0.375rem;
    vertical-align: middle;
}

/* The sections as tabs along the top. */
.qcb-jobpage-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.qcb-jobpage-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.375rem;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--qcb-border);
    border-radius: 0;
}

.qcb-jobpage-navbtn {
    display: inline-flex;
    gap: 0.375rem;
    width: auto;
    padding: 0.5rem 0 0.625rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--qcb-text-muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-left: 0;
    border-radius: 0;
    margin-bottom: -1px;
}

.qcb-jobpage-navbtn:hover {
    color: var(--qcb-text);
    background: none;
}

.qcb-jobpage-navbtn.is-current {
    font-weight: 600;
    color: var(--qcb-text);
    background: none;
    border-bottom-color: var(--qcb-text);
    border-left: 0;
}

.qcb-jobpage-navbtn .qcb-jobpage-navcount {
    font-weight: 400;
    color: var(--qcb-text-muted);
    background: none;
}

.qcb-jobpage-changed {
    background: var(--qcb-attention);
}

.qcb-jobpage-main {
    min-width: 0;
    width: 100%;
}

.qcb-jobpage-section {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.qcb-jobpage-section-title {
    display: none;
}

.qcb-jobpage-section-desc {
    color: var(--qcb-text-muted);
}

/* What a job covers (Everything of these types / Only objects I pick) looks like the
   Which backup cards above it (#620, WhichBackup.razor.css): stacked cards in one column
   of the same width, not two bare radios half a page apart. */
.qcb-choice {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40rem;
}

.qcb-choice-opt {
    padding: 1rem 1.125rem;
    border: 1.5px solid var(--qcb-gray-300);
    border-radius: 10px;
    background: var(--qcb-surface);
    box-shadow: none;
}

.qcb-choice-opt:hover {
    border-color: var(--qcb-teal-500);
}

.qcb-choice-opt:has(input:checked) {
    border-color: var(--qcb-teal-600);
    background: var(--qcb-teal-50);
    box-shadow: inset 0 0 0 1px var(--qcb-teal-600);
}

.qcb-choice-title {
    font-weight: 500;
    color: var(--qcb-text);
}

.qcb-choice-opt:has(input:checked) .qcb-choice-title {
    color: var(--qcb-teal-700);
}

/* The info icon beside Run while there are unsaved changes (#621), centred on the button. */
.qcb-jobpage-run {
    align-items: center;
}

.qcb-jobpage-run-hint {
    display: inline-flex;
    align-items: center;
}

.qcb-choice-opt .qcb-choice-desc {
    color: var(--qcb-text-muted);
}

.qcb-settings > * + * {
    border-top: 1px solid var(--qcb-border);
}

.qcb-setting-label {
    font-weight: 500;
    color: var(--qcb-text);
}

.qcb-setting-desc {
    color: var(--qcb-text-muted);
}

.qcb-linkbtn,
.qcb-link-action {
    color: var(--qcb-text);
}

/* The new job picker and wizard. */
.qcb-wizard-panel {
    background: none;
    border: 0;
    box-shadow: none;
}

/* ---- Activity ----------------------------------------------------------------------- */
.act-job,
.act-job a {
    font-weight: 500;
    color: var(--qcb-text);
}

.act-chip,
.act-chip--err,
.act-chip--wrn {
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--qcb-text-muted);
    background: none;
    border: 0;
}

.act-chip-none {
    color: var(--qcb-text-muted);
}

/* ---- Connections and projects: a card says each thing once --------------------------- */
.qcb-card-header-right .qcb-btn-icon {
    opacity: 0;
    transition: opacity 0.12s ease;
}

.qcb-card:hover .qcb-card-header-right .qcb-btn-icon,
.qcb-card:focus-within .qcb-card-header-right .qcb-btn-icon {
    opacity: 1;
}

@media (hover: none) {
    .qcb-card-header-right .qcb-btn-icon {
        opacity: 1;
    }
}

.qcb-card-footer {
    display: none;
}

.qcb-card-info {
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--qcb-border);
}

.qcb-card-header {
    margin-bottom: 0.75rem;
}

/* ---- Dialog text ---------------------------------------------------------------------- */
.qcb-key-option-text,
.qcb-key-check,
.qcb-key-scope {
    font-weight: 400;
}

.qcb-modal-footer {
    background: none;
}

@media (prefers-reduced-motion: reduce) {
    .qcb-card-header-right .qcb-btn-icon {
        transition: none;
    }
}

/* ---- The log follows the app's theme (#583) ------------------------------------------- */
.lv-root,
.lv-light {
    border-color: var(--qcb-border);
}

.lv-light .lv-toolbar {
    background: none;
    border-bottom-color: var(--qcb-border);
}

.lv-light .lv-body {
    color: var(--qcb-text);
    background: var(--qcb-rail-bg);
    font-family: var(--qcb-font-mono);
}

.lv-light .lv-line:hover {
    background: var(--qcb-hover);
}

.lv-light .lv-chip,
.lv-light .lv-chip:hover {
    font-weight: 400;
    color: var(--qcb-text-muted);
    background: none;
    border-color: var(--qcb-border);
    border-radius: var(--qcb-radius-control);
}

.lv-light .lv-chip--active,
.lv-light .lv-chip--err.lv-chip--active,
.lv-light .lv-chip--wrn.lv-chip--active {
    font-weight: 600;
    color: var(--qcb-text);
    background: var(--qcb-gray-100);
    border-color: var(--qcb-border-strong);
}

.lv-chip-n,
.lv-light .lv-chip-n {
    color: inherit;
    background: none;
}

.lv-light .lv-icon-btn {
    color: var(--qcb-text-muted);
    background: none;
    border-color: var(--qcb-border);
}

.rc-run-err,
.rc-run-wrn {
    font-weight: 400;
    color: var(--qcb-text-muted);
}

/* ---- No coloured pills anywhere: words, and a dot only where something needs a look ---- */
.qcb-card-count,
.qcb-related-count,
.qcb-choice-chip,
.rc-issue-n,
.rp-group-total,
.rp-chip,
.rp-chip--new,
.rp-chip--over,
.rp-chip--conflict,
.rp-pill--new,
.rp-pill--overwrite,
.rp-pill--conflict,
.bv-pill--mismatch,
.bv-pill--missing,
.bv-badge,
.bv-badge--ok,
.bv-badge--fail,
.bv-badge--warn,
.qots-badge,
.qots-type,
.object-summary-chip,
.object-type-filter-chip,
.qcb-badge-kind-backup,
.qcb-badge-kind-restore,
.qcb-badge-kind-drill,
.qcb-badge-kind-promotion,
.qcb-jobtype-badge--restore,
.pricing-badge,
.trial-badge-extended,
.release-counter {
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--qcb-text-muted);
    background: none;
    border: 0;
    border-radius: 0;
}

.rp-pill--overwrite::before,
.rp-pill--conflict::before,
.rp-chip--over::before,
.rp-chip--conflict::before,
.bv-pill--mismatch::before,
.bv-pill--missing::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.375rem;
    border-radius: 50%;
    background: var(--qcb-attention);
}

.rp-pill--conflict::before,
.rp-chip--conflict::before,
.bv-pill--mismatch::before {
    background: var(--qcb-failure);
}

/* Callouts: a line of text between two thin lines. Only the symbol takes colour. */
.qcb-delete-warning,
.qcb-info-box,
.qcb-auth-consequences,
.qcb-coverage-item-gap,
.qcb-rrule-preview,
.qcb-schedule-summary,
.qcb-review-sentence,
.qcb-note,
.qcb-jobpage-fixed,
.wh-secret-callout,
.bv-callout--ok,
.bv-callout--danger,
.bv-callout--info,
.bv-callout--warn,
.rp-callout--danger,
.rp-callout--warn,
.rp-group-note--info,
.appdl-callout--danger,
.appdl-callout--info,
.appdl-callout--warn,
.rc-side-waiting,
.release-summary-box,
.object-selection-box,
.object-selection-box.manual,
.qots-missing {
    color: var(--qcb-text);
    background: none;
    border: 0;
    border-top: 1px solid var(--qcb-border);
    border-bottom: 1px solid var(--qcb-border);
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
}

.bv-callout--warn i,
.rp-callout--warn i,
.appdl-callout--warn i,
.qcb-delete-warning i {
    color: var(--qcb-attention);
}

.bv-callout--danger i,
.rp-callout--danger i,
.appdl-callout--danger i {
    color: var(--qcb-failure);
}

.bv-stat--ok,
.bv-stat--mismatch,
.bv-stat--missing,
.rp-stat--new,
.rp-stat--over,
.rp-stat--conflict {
    color: var(--qcb-text);
    background: none;
    border-color: var(--qcb-border);
}

/* Icons that only decorate go quiet. */
.qcb-asset-link-icon--qlik,
.qcb-asset-link-icon--storage,
.qcb-asset-link-icon--project,
.qcb-asset-link-icon--backup,
.qcb-asset-link-icon--restore,
.qcb-empty-icon,
.object-summary-icon,
.icon-circle,
.trial-header .trial-icon {
    color: var(--qcb-text-muted);
    background: none;
}

.qcb-user-avatar {
    color: var(--qcb-text-muted);
    background: var(--qcb-gray-100);
}

/* Steps in the new job wizard. */
.qcb-step--current {
    background: none;
    border-color: var(--qcb-text);
}

.qcb-step-marker,
.qcb-step--complete .qcb-step-marker {
    color: var(--qcb-text);
    background: var(--qcb-gray-100);
    border-color: var(--qcb-border);
}

/* Switches stay in the action colour: they are controls, not labels. */
.object-type-card.enabled {
    background: none;
    border-color: var(--qcb-border);
}

.object-type-card.enabled .object-type-icon {
    color: var(--qcb-text-muted);
    background: none;
}

.qcb-savebar {
    color: var(--qcb-text);
    background: var(--qcb-surface-raised);
    border-top: 1px solid var(--qcb-border);
    box-shadow: var(--qcb-shadow-pop);
}

.qcb-savebar-dot {
    background: var(--qcb-attention);
}

.qcb-tabs {
    border-bottom: 1px solid var(--qcb-border);
}

/* Release notes and the things that used to sit on the old ground. */
.btn-teal,
.btn-orange,
.bg-teal {
    color: var(--qcb-btn-primary-text);
    background: var(--qcb-action-bg);
    border-color: var(--qcb-action-bg);
}

/* ---- Dialogs from the older sheets: one plain header, no gradients, no tiles --------- */
.object-modal-dialog .qcb-modal-header {
    color: var(--qcb-text);
    background: none;
    border-bottom: 0;
}

.object-modal-icon,
.object-type-icon,
.object-type-toggle,
.object-summary-icon {
    display: none;
}

.object-modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--qcb-text);
}

.object-modal-sub {
    font-size: 0.8125rem;
    color: var(--qcb-text-muted);
}

.object-section-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--qcb-text);
}

.object-types-count {
    font-weight: 400;
    color: var(--qcb-text-muted);
}

.object-types-grid {
    gap: 0 1.5rem;
}

.object-type-card,
.object-type-card.enabled,
.object-type-card.disabled {
    padding: 0.5rem 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--qcb-border);
    border-radius: 0;
    box-shadow: none;
}

.object-type-card.disabled {
    opacity: 0.55;
}

/* The warning circle in a confirmation stays out of the way. */
.qcb-confirm-icon,
.qcb-delete-icon,
.popconfirm-icon {
    color: var(--qcb-failure);
    background: none;
}

/* ---- Banners and the trial dialog from the older sheets ------------------------------ */
.maintenance-info,
.maintenance-warning,
.maintenance-danger {
    color: var(--qcb-text);
    background: var(--qcb-rail-bg);
    border-bottom: 1px solid var(--qcb-border);
}

.authorizing-wrapper {
    background: var(--qcb-page-bg);
}

/* ---- The public landing page keeps its own brand look and stays light (#587) ---------- */
.qcb-lp {
    color-scheme: light;
    --qcb-carbon: #333333;
    --qcb-white: #ffffff;
    --qcb-surface: #ffffff;
    --qcb-text: #333333;
    --qcb-text-muted: #5a626c;
    --qcb-border: #e6e8eb;
    --qcb-font-heading: 'Playfair Display', Georgia, serif;
    --qcb-font-body: 'Lato', 'Segoe UI', system-ui, sans-serif;
}
