.hero {
    background: linear-gradient(135deg, #0d3b66 0%, #1d6fb8 100%);
}

.hero .card {
    color: #212529;
}

.navbar-brand {
    letter-spacing: 0.5px;
}

.req {
    color: #dc3545;
    font-weight: 700;
}

#sectionNav .nav-link {
    color: #495057;
    white-space: nowrap;
}

#sectionNav .nav-link.active {
    background-color: #0d3b66;
    color: #fff;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #0d3b66;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.form-text {
    font-size: 0.78rem;
    color: #6c757d;
}

#sec-coverages .form-label,
.driver-card .form-label,
.vehicle-card .form-label,
.coverage-card .form-label {
    margin-bottom: 0.15rem;
}

.accordion-button .badge {
    margin-left: auto;
    margin-right: 0.5rem;
}

.quote-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.replay-video {
    max-height: 480px;
    background-color: #000;
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.live-view-frame {
    border: 0;
    width: 100%;
    height: 100%;
}

/* Checkbox dropdowns used by the quote-history multi-select filters. */
.filter-multiselect {
    position: relative;
}

.filter-multiselect > summary {
    display: block;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-multiselect > summary::-webkit-details-marker {
    display: none;
}

.filter-multiselect-menu {
    position: absolute;
    z-index: 1040;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(20rem, 90vw);
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.filter-multiselect-actions {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.25rem;
}

.filter-multiselect-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 9rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-multiselect-option:hover {
    background: #f1f5f9;
}

/* Quote history is an operational workspace: keep every carrier on one
   predictable scan line, with exceptions and documents surfaced in place. */
.history-page-container {
    max-width: 1720px;
}

.history-table {
    min-width: 1180px;
}

.history-table > :not(caption) > * > * {
    padding: 1rem 0.75rem;
}

.history-table > thead > tr > th:first-child,
.history-reference-cell {
    width: 10.5rem;
    padding-left: 1rem !important;
}

.history-table > thead > tr > th:nth-child(2) {
    width: 12rem;
}

.history-table > thead > tr > th:nth-child(3) {
    width: 12.5rem;
}

.history-table > thead > tr > th:last-child,
.history-actions-cell {
    width: 7.75rem;
    padding-right: 1rem !important;
}

.history-results-cell {
    min-width: 39rem;
}

.history-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    color: #667487;
    font-size: 0.72rem;
    line-height: 1.25;
}

.history-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.history-summary-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #8c98a8;
}

.history-summary-success .history-summary-dot {
    background: #198754;
}

.history-summary-attention {
    color: #b02a37;
    font-weight: 600;
}

.history-summary-attention .history-summary-dot {
    background: #dc3545;
}

.history-summary-active .history-summary-dot {
    background: #0d6efd;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.12);
}

.history-summary-icon {
    width: 0.68rem;
    height: 0.68rem;
}

.history-carrier-list {
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 0.5rem;
    background: #fff;
}

.history-carrier-grid {
    display: grid;
    grid-template-columns: minmax(9.5rem, 1.2fr) minmax(12rem, 2fr) 3rem 6rem;
    gap: 0.7rem;
    align-items: center;
}

.history-carrier-grid-heading {
    padding: 0 0.55rem 0.35rem;
    color: #8a95a5;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
}

.history-carrier-row {
    min-height: 2.65rem;
    padding: 0.38rem 0.55rem;
    border-left: 3px solid transparent;
    font-size: 0.78rem;
}

.history-carrier-row + .history-carrier-row {
    border-top: 1px solid #edf0f4;
}

.history-carrier-row:hover {
    background: #f8fafc;
}

.history-carrier-failed {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.history-carrier-success {
    border-left-color: #198754;
}

.history-carrier-running,
.history-carrier-retrying {
    border-left-color: #0d6efd;
    background: #f7faff;
}

.history-carrier-has-warning:not(.history-carrier-success):not(.history-carrier-failed) {
    border-left-color: #e6a117;
}

.history-carrier-has-warning:not(.history-carrier-failed) {
    background: #fffdf7;
}

.history-carrier-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
    color: #3e4d60;
    font-weight: 650;
}

.history-carrier-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-status-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.68rem;
    height: 0.68rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #8995a5;
    box-shadow: 0 0 0 1px rgba(76, 88, 104, 0.2);
    cursor: help;
}

.history-status-dot:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 3px;
}

.history-status-dot-success {
    background: #198754;
    box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.25);
}

.history-status-dot-failed {
    background: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25);
}

.history-status-dot-running {
    background: #0d6efd;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25);
}

.history-status-dot-retrying {
    background: #e6a117;
    box-shadow: 0 0 0 1px rgba(230, 161, 23, 0.25);
}

.history-carrier-result {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.75rem;
    overflow: hidden;
}

.history-premium {
    flex: 0 0 auto;
    color: #087a46;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.history-quote-number {
    overflow: hidden;
    color: #677486;
    font-family: var(--bs-font-monospace);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-failure-reason {
    display: block;
    overflow: hidden;
    color: #b02a37;
    cursor: help;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-failure-reason:focus-visible,
.history-alert-button:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
}

.history-carrier-alerts,
.history-carrier-document {
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-carrier-document {
    justify-content: flex-end;
}

.history-alert-button {
    display: inline-flex;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    background: transparent;
}

.history-alert-button svg {
    width: 0.95rem;
    height: 0.95rem;
}

.history-alert-warning {
    border-color: #f0d28b;
    color: #9a6500;
    background: #fff4d7;
    cursor: help;
}

.history-alert-warning:hover {
    color: #704a00;
    background: #ffe9ad;
}

.history-no-alert,
.history-no-document {
    color: #b5bdc8;
}

.history-pdf-button {
    display: inline-flex;
    min-width: 5.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 650;
    white-space: nowrap;
}

.history-pdf-button svg {
    width: 0.72rem;
    height: 0.72rem;
}

.history-empty-carriers {
    padding: 0.85rem;
    color: #6c757d;
    font-size: 0.78rem;
    text-align: center;
}

.history-action-button {
    width: 6.6rem;
}

.history-tooltip .tooltip-inner {
    max-width: 24rem;
    text-align: left;
}

@media (max-width: 1199.98px) {
    .history-table {
        min-width: 1080px;
    }

    .history-results-cell {
        min-width: 34rem;
    }

    .history-carrier-grid {
        grid-template-columns: minmax(8.5rem, 1.1fr) minmax(10rem, 1.7fr) 2.5rem 5.5rem;
        gap: 0.5rem;
    }
}

/* Carrier task header: show the premium right-aligned before the chevron so
   carriers can be compared without expanding each accordion item. */
#taskAccordion .accordion-button::after {
    margin-left: 1rem;
}

/* Danger icon for tasks with notes — visible even when collapsed */
.notes-danger-icon {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    animation: pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-danger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ------------------------------------------------------------------
   Searchable "Submitted By" combobox (progressive enhancement over a
   native <select>). All options are rendered inline and filtered
   client-side — no dynamic/AJAX loading. The real <select> stays in
   the DOM (visually hidden) as the submitted form control.
   ------------------------------------------------------------------ */
.submitter-combo {
    position: relative;
}

/* Hide the native select without removing it from the form/a11y tree
   when JS enhancement is active. */
.submitter-combo.is-enhanced > select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.submitter-list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 1030;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.submitter-option {
    padding: 0.45rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    line-height: 1.2;
}

.submitter-option small {
    display: block;
    color: #6c757d;
    font-size: 0.8em;
}

.submitter-option.is-active,
.submitter-option:hover {
    background: #e7f1ff;
}

.submitter-option.is-selected {
    font-weight: 600;
}

.submitter-empty {
    padding: 0.6rem 0.75rem;
    color: #6c757d;
}

/* ---- Dec-page prefill dropzone ---- */
.border-dashed {
    border-style: dashed !important;
}

#decDropzone {
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

#decDropzone.dragover {
    border-color: #0d6efd !important;
    background-color: #eef4ff !important;
}

/* A field the agent still needs to fill after a dec-page prefill. */
.prefill-missing {
    background-color: #fff8e1 !important;
    border-color: #f0ad4e !important;
    box-shadow: 0 0 0 0.15rem rgba(240, 173, 78, 0.35) !important;
}

/* A field the AI filled from the dec page — purple tint + a sparkle star. */
.ai-filled {
    background-color: #f4efff !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 0.12rem rgba(139, 92, 246, 0.25) !important;
}

.ai-star {
    display: inline-flex;
    align-items: center;
    color: #8b5cf6;
    margin-left: 4px;
    vertical-align: middle;
}

.ai-star svg {
    width: 13px;
    height: 13px;
}

/* Little inline key shown in the prefill banner. */
.ai-swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 3px;
}

/* Carriers that don't operate in the applicant's state: greyed + not-clickable. */
.carrier-item.carrier-disabled .form-check-label {
    cursor: not-allowed;
    opacity: 0.85;
}
.carrier-item .carrier-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
    white-space: nowrap;
}

/* ---- Operations dashboard ---- */
.dashboard-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.25), transparent 28rem),
        linear-gradient(120deg, #0b2341 0%, #103f6d 58%, #0d5c82 100%);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.dashboard-eyebrow,
.section-kicker {
    color: #0a77a8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8de0ff;
}

.live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #46e6a6;
    box-shadow: 0 0 0 0.25rem rgba(70, 230, 166, 0.16);
}

.dashboard-shell {
    min-height: 65vh;
    background:
        linear-gradient(180deg, #eef3f8 0, #f6f8fa 16rem, #f3f6f9 100%);
}

.dashboard-filter,
.dashboard-card,
.metric-card,
.automation-impact {
    border-radius: 0.85rem;
}

.dashboard-label {
    margin-bottom: 0.35rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
}

.automation-impact {
    display: grid;
    grid-template-columns: minmax(15rem, 1.2fr) repeat(2, minmax(12rem, 1fr));
    gap: 1.25rem 2rem;
    align-items: center;
    padding: 1.6rem 1.75rem 1.15rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(13, 110, 253, 0.11), transparent 36%),
        #fff;
}

.automation-impact-copy {
    padding-right: 1rem;
}

.impact-metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 6.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid #e2eaf2;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.82);
}

.impact-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: #0d6efd;
    font-size: 1.25rem;
    font-weight: 800;
}

.impact-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.impact-value-saved .impact-icon {
    background: #e7f8f0;
    color: #13855a;
}

.impact-label,
.impact-detail {
    margin: 0;
}

.impact-label {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.impact-value {
    margin: 0.15rem 0 0.2rem;
    color: #10253f;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.impact-detail,
.impact-assumption {
    color: #7b899a;
    font-size: 0.75rem;
}

.impact-assumption {
    grid-column: 1 / -1;
    padding-top: 0.9rem;
    border-top: 1px solid #e8edf3;
    text-align: right;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 10rem;
    padding: 1.45rem;
    background: #fff;
    border: 1px solid #e6ebf0;
    box-shadow: 0 0.2rem 0.7rem rgba(15, 35, 60, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 35, 60, 0.1) !important;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--metric-color, #5f6b7a);
}

.metric-card-primary { --metric-color: #0d6efd; }
.metric-card-success { --metric-color: #16a36a; }
.metric-card-danger { --metric-color: #dc3f4f; }
.metric-card-warning { --metric-color: #e6a117; }
.metric-card-neutral { --metric-color: #65758b; }

.metric-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.55rem;
    background: color-mix(in srgb, var(--metric-color) 10%, white);
    color: var(--metric-color);
    font-weight: 800;
}

.metric-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.metric-label {
    margin: 0 0 0.45rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.metric-value {
    margin: 0 0 0.25rem;
    color: #10253f;
    font-size: clamp(2.25rem, 3.5vw, 3.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-unit {
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0;
}

.metric-detail {
    margin: 0;
    color: #8491a3;
    font-size: 0.78rem;
}

.dashboard-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ebf0;
    box-shadow: 0 0.3rem 1rem rgba(15, 35, 60, 0.055);
}

.dashboard-card-header {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid #edf1f5;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    color: #64748b;
    font-size: 0.72rem;
}

.legend-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.25rem;
    border-radius: 0.15rem;
}

.legend-active { background: #f3bd3e; }

.trend-chart {
    display: flex;
    height: 18rem;
    align-items: stretch;
    gap: clamp(0.25rem, 1vw, 0.8rem);
    padding: 2rem 1.25rem 1rem;
}

.trend-column {
    display: flex;
    min-width: 1.25rem;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.trend-total {
    min-height: 1.1rem;
    color: #8491a3;
    font-size: 0.66rem;
}

.trend-track {
    display: flex;
    width: min(2rem, 80%);
    flex: 1;
    align-items: end;
    border-bottom: 1px solid #d9e1e8;
}

.trend-stack {
    display: flex;
    width: 100%;
    min-height: 3px;
    flex-direction: column-reverse;
    overflow: hidden;
    border-radius: 0.28rem 0.28rem 0 0;
}

.trend-stack span {
    display: block;
    min-height: 2px;
}

.trend-success { background: #18a875; }
.trend-failed { background: #e24a5a; }
.trend-active { background: #f3bd3e; flex: 1; }

.trend-column time {
    color: #748297;
    font-size: 0.65rem;
    white-space: nowrap;
}

.dashboard-empty {
    display: grid;
    min-height: 18rem;
    place-content: center;
    padding: 2rem;
    text-align: center;
}

.dashboard-empty.compact { min-height: 10rem; }

.empty-symbol {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 auto 0.75rem;
    place-items: center;
    border-radius: 50%;
    background: #edf4fb;
    color: #1676ad;
    font-weight: 800;
}

.empty-symbol.success {
    background: #e9f8f1;
    color: #16845e;
}

.reason-list {
    display: grid;
    gap: 1.35rem;
    padding: 1.35rem 1.25rem;
}

.dashboard-progress {
    height: 0.35rem;
    background: #edf1f5;
}

.dashboard-table > :not(caption) > * > * {
    padding: 0.9rem 1.25rem;
    border-bottom-color: #edf1f5;
}

.dashboard-table thead th {
    color: #718096;
    background: #f9fafb;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table tbody td {
    color: #344256;
    font-size: 0.84rem;
}

.rate-column { min-width: 14rem; }
.rate-value { width: 3.4rem; text-align: right; }

.health-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.55rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 750;
    white-space: nowrap;
}

.health-pill i {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
}

.health-good { color: #137753; background: #e7f7f0; }
.health-warning { color: #9a6500; background: #fff4d7; }
.health-danger { color: #b52b3a; background: #feecee; }
.health-neutral { color: #64748b; background: #eef2f6; }

.ranking-list,
.submitter-list-dashboard {
    padding: 0.35rem 0;
}

.ranking-row,
.submitter-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.25rem;
    color: #2e3c50;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ranking-row:hover,
.submitter-row:hover {
    color: #163c67;
    background: #f7fafc;
}

.ranking-number {
    width: 1.3rem;
    color: #a0aaba;
    font-size: 0.67rem;
    font-weight: 800;
}

.state-avatar,
.person-avatar {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.65rem;
    background: #e9f3fb;
    color: #176796;
    font-size: 0.72rem;
    font-weight: 850;
}

.person-avatar {
    border-radius: 50%;
    background: #eae7fb;
    color: #6247aa;
    font-size: 0.9rem;
}

.ranking-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    font-size: 0.82rem;
}

.ranking-main small,
.submitter-main small {
    color: #8491a3;
    font-size: 0.68rem;
}

.ranking-rate {
    width: 3.2rem;
    color: #153c65;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: right;
}

.submitter-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.25rem;
    color: #344256;
    font-size: 0.8rem;
}

.submitter-track {
    display: block;
    height: 0.22rem;
    overflow: hidden;
    border-radius: 1rem;
    background: #edf1f5;
}

.submitter-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2a75b6, #46a8d7);
}

.failure-message {
    display: inline-block;
    max-width: 28rem;
    color: #5f6f82;
}

.dashboard-footer {
    padding: 0.5rem 0 1rem;
}

.dashboard-footer .form-select {
    width: auto;
}

.refresh-countdown {
    min-width: 1.8rem;
    color: #1676ad;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
    .automation-impact {
        grid-template-columns: 1fr;
        padding: 1.35rem;
    }

    .automation-impact-copy {
        padding-right: 0;
    }

    .impact-assumption {
        text-align: left;
    }

    .dashboard-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .trend-chart {
        gap: 0.25rem;
        overflow-x: auto;
    }

    .trend-column {
        min-width: 2rem;
    }

    .ranking-row .health-pill {
        display: none;
    }

    .dashboard-table > :not(caption) > * > * {
        padding-right: 0.9rem;
        padding-left: 0.9rem;
    }

    .rate-column {
        min-width: 4.75rem;
        text-align: right;
    }

    .rate-column .progress {
        display: none;
    }

    .rate-value {
        width: auto;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .automation-impact {
        grid-template-columns: repeat(2, 1fr);
    }

    .automation-impact-copy {
        grid-column: 1 / -1;
    }
}

/* EZLynx (CRM) pull: a soft panel that spans the prefill card. */
.ezlynx-panel {
    border: 1px solid #e3e6ea;
    border-radius: 0.6rem;
    background: #fafbfd;
    padding: 1rem 1.1rem 1.1rem;
}
.ezlynx-panel .input-group-text {
    background: #fff;
    font-weight: 600;
}
.ezlynx-progress {
    height: 10px;
    border-radius: 999px;
    background: #e9ecf1;
}
.ezlynx-progress .progress-bar {
    background-color: #8b5cf6;
    transition: width 0.4s ease;
}
/* Step chips: equal-width segments across the panel; pending → active (purple) → done (green). */
.ezlynx-steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 6px;
}
.ezlynx-steps li {
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
    padding: 6px 4px;
    border-radius: 0.4rem;
    border: 1px solid #dfe3e8;
    background: #fff;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ezlynx-steps li.active {
    border-color: #8b5cf6;
    background: #f4efff;
    color: #5b21b6;
    font-weight: 600;
    box-shadow: 0 0 0 0.12rem rgba(139, 92, 246, 0.2);
}
.ezlynx-steps li.done {
    border-color: #b7e0c6;
    background: #e9f7ef;
    color: #146c43;
}
.ezlynx-steps li.done::before { content: "✓ "; }
@media (max-width: 767.98px) {
    .ezlynx-steps {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Link back to the EZLynx CRM account a quote was pulled from. */
.ezlynx-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.ezlynx-link:hover { text-decoration: underline; }
.ezlynx-link-logo { height: 14px; width: auto; }

/* ---- Carrier Logins page ------------------------------------------------ */
.cred-tile {
    background: #fff;
    border-radius: 0.9rem;
    padding: 1rem 1.15rem;
    border-left: 0.35rem solid #adb5bd;
    box-shadow: 0 0.25rem 0.75rem rgba(13, 59, 102, 0.06);
}
.cred-tile-danger { border-left-color: #dc3545; }
.cred-tile-success { border-left-color: #198754; }
.cred-tile-warning { border-left-color: #f0ad1e; }
.cred-tile-value { font-size: 2rem; font-weight: 800; line-height: 1; margin: 0 0 0.25rem; }
.cred-tile-label { margin: 0; font-size: 0.8rem; font-weight: 600; color: #6c757d; }
.cred-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
}
.cred-banner-danger { background: #fff1f2; border-color: #f5c2c7; color: #6d1a22; }
.cred-banner-success { background: #eefaf3; border-color: #bfe8cf; color: #14532d; }
.cred-banner-icon {
    flex: 0 0 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
}
.cred-banner-danger .cred-banner-icon { background: #dc3545; }
.cred-banner-success .cred-banner-icon { background: #198754; }
.cred-todo { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cred-todo-link {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    align-items: baseline;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
}
.cred-todo-link:hover { background: #fff; }
.cred-todo-name { font-weight: 700; }
.cred-todo-reason { font-size: 0.82rem; color: #8b2f39; }
.cred-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1.5rem;
}
.cred-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cred-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cred-dot {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 0.2rem;
    background: #ced4da;
}
.cred-dot-ok { background: #2fbf71; }
.cred-dot-fail { background: #f0ad1e; }
.cred-dot-login { background: #dc3545; }
.cred-runs { display: inline-flex; gap: 0.2rem; flex-wrap: wrap; }
.cred-runs-meta { font-size: 0.78rem; color: #6c757d; }
.cred-table-card { border-radius: 1rem; overflow: hidden; }
.cred-table thead th {
    position: sticky;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    top: 0;
    z-index: 1;
    background: #f6f8fb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom: 1px solid #e3e8ef;
    padding: 0.85rem 1rem;
}
.cred-table tbody td { padding: 0.85rem 0.75rem; border-color: #edf1f5; vertical-align: top; }
.cred-row { box-shadow: inset 0.35rem 0 0 #adb5bd; }
.cred-row-danger { box-shadow: inset 0.35rem 0 0 #dc3545; background: #fffafa; }
.cred-row-warning { box-shadow: inset 0.35rem 0 0 #f0ad1e; }
.cred-row-success { box-shadow: inset 0.35rem 0 0 #198754; }
.cred-row:target td { background: #eaf2ff; }
.cred-col-portal { min-width: 9rem; }
.cred-col-status { min-width: 11rem; max-width: 15rem; }
.cred-col-runs { min-width: 10.5rem; }
.cred-col-login { min-width: 15rem; }
.cred-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.cred-tags .badge { font-size: 0.68rem; font-weight: 600; }
.cred-status {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}
.cred-status-danger { background: #fde2e4; color: #9f1d2b; }
.cred-status-warning { background: #fff3cd; color: #7a5300; }
.cred-status-success { background: #d9f5e5; color: #0f6b3b; }
.cred-status-neutral { background: #e9ecef; color: #495057; }
.cred-advice { font-size: 0.78rem; color: #6c757d; margin-top: 0.35rem; }
.cred-linkbtn {
    border: 0;
    background: none;
    padding: 0;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: underline;
}
.cred-creds { display: grid; gap: 0.3rem; margin: 0; }
.cred-creds > div { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.4rem; align-items: baseline; }
.cred-creds dt { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #6c757d; }
.cred-creds dd { margin: 0; min-width: 0; font-size: 0.88rem; }
.cred-url {
    display: inline-block;
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.cred-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; word-break: break-all; }
.cred-secret.is-shown { color: #0d3b66; }
.cred-copy {
    border: 1px solid #ced4da;
    background: #fff;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    color: #0d3b66;
}
.cred-copy:hover { background: #f1f5fb; }
.cred-detail-row td { background: #f6f8fb; padding: 0.75rem 1rem 1rem 1.35rem; }
.cred-editor {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
}
.cred-editor-title { font-weight: 800; margin-bottom: 0.6rem; }
.cred-error-box {
    background: #fff;
    border: 1px solid #ffe08a;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}
.cred-error-box.is-login { border-color: #f5c2c7; }
.cred-error-box pre {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.78rem;
    color: #495057;
}

/* ---- Carrier logos (link with initials fallback) ------------------------ */
.carrier-logo {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: #fff;
    border: 1px solid #e3e8ef;
    overflow: hidden;
    flex: 0 0 auto;
}
.carrier-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.15rem; }
.carrier-logo-initials,
.carrier-logo.is-fallback::before {
    content: attr(data-initials);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0d3b66;
    background: #e7f0fa;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}
.carrier-logo-sm { width: 1.75rem; height: 1.75rem; border-radius: 0.45rem; }
.carrier-logo-sm .carrier-logo-initials, .carrier-logo-sm.is-fallback::before { font-size: 0.6rem; }
.cred-portal-name { display: flex; align-items: center; gap: 0.6rem; }

/* ---- Date fields (MM/DD/YYYY text input + calendar button) -------------- */
.date-field-control { position: relative; }
.date-field-control > .form-control { padding-right: 2.35rem; }
/* Bootstrap's own invalid icon would sit underneath the calendar button. */
.date-field-control > .form-control.is-invalid {
    background-image: none;
    padding-right: 2.35rem;
}
.date-field-btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.2rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0 0.375rem 0.375rem 0;
    background: transparent;
    color: #6b7a90;
    line-height: 1;
    cursor: pointer;
}
.date-field-btn:hover { color: #0d3b66; background: #eef3fa; }
.date-field-control > .form-control-sm ~ .date-field-btn { width: 1.9rem; }
.date-field-control > .form-control-sm ~ .date-field-btn svg {
    width: 13px;
    height: 13px;
}
/* Present only so the browser has a native calendar to open; never shown. */
.date-field-picker {
    position: absolute;
    right: 0.6rem;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.date-field-error {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #dc3545;
}
.date-field.has-error .date-field-error { display: block; }
