html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.35rem 0 2rem;
}

.dashboard-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.eyebrow {
    color: #576a7c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.dashboard-header h1 {
    color: #1f2933;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.dashboard-header-action {
    margin-top: 1.55rem;
    min-width: 280px;
}

.dashboard-subtitle {
    color: #627386;
    margin: 0.35rem 0 0;
}

.dashboard-status {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    color: #334e68;
    display: grid;
    gap: 0.25rem 0.5rem;
    grid-template-columns: auto 1fr;
    min-width: 280px;
    padding: 0.8rem 0.9rem;
}

.dashboard-status small {
    color: #6b7c8f;
    grid-column: 2;
}

.status-dot {
    background: #2f9e44;
    border-radius: 50%;
    display: inline-block;
    height: 0.7rem;
    width: 0.7rem;
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.metric-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 1.1rem;
    position: relative;
}

.metric-card-link {
    color: inherit;
    text-decoration: none;
}

.metric-card-link:hover,
.metric-card-link:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.metric-card::before {
    border-radius: 8px 8px 0 0;
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.metric-card span {
    color: #52616f;
    font-size: 0.88rem;
    font-weight: 700;
}

.metric-card strong {
    color: #17202a;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-top: 0.85rem;
}

.metric-card small {
    color: #718096;
    margin-top: auto;
}

.accent-jobs::before {
    background: #2563eb;
}

.accent-quotes::before {
    background: #0891b2;
}

.accent-expired::before {
    background: #d97706;
}

.accent-expenses::before {
    background: #dc2626;
}

.accent-revenue::before {
    background: #16a34a;
}

.activity-panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 1.25rem;
}

.local-entity-panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 1.25rem;
}

.local-entity-panel h2 {
    color: #1f2933;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

.local-entity-panel p {
    color: #627386;
    margin: 0.25rem 0 1rem;
}

.local-entity-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.local-entity-card {
    background: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.local-entity-card:hover,
.local-entity-card:focus {
    border-color: #2563eb;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    color: inherit;
    transform: translateY(-1px);
}

.local-entity-card strong {
    color: #1f2933;
    display: block;
    font-size: 1.05rem;
}

.local-entity-card span {
    color: #64748b;
}

.local-entity-card dl {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.local-entity-card div {
    min-width: 0;
}

.local-entity-card dt {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.local-entity-card dd {
    color: #17202a;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0.1rem 0 0;
}

.back-link {
    align-self: flex-start;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus {
    color: #1e40af;
    text-decoration: underline;
}

.activity-panel h2 {
    color: #1f2933;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

.activity-panel p {
    color: #627386;
    margin: 0.25rem 0 1rem;
}

.job-progress-panel { border-top: 3px solid #0d6efd; }
.job-risk-panel { border-top: 3px solid #dc3545; }
.progress-entry-box { background: #f8fafc; border: 1px solid #dbe4ee; border-radius: .65rem; padding: .75rem; margin-left: 0; margin-right: 0; }
.progress-metric-text { font-size: clamp(1.15rem, 2vw, 1.7rem) !important; line-height: 1.15; }
.blocker-item { border-left: 4px solid #0dcaf0; padding-left: .85rem; }
.blocker-warning { border-left-color: #ffc107; background: #fff9e6; }
.blocker-critical { border-left-color: #dc3545; background: #fff0f1; }
.risk-row-Critical { background: #fff0f1; }
.risk-row-Warning { background: #fff9e6; }

.pricing-workspace {
    border-top: 4px solid #2563eb;
}

.job-cost-panel {
    background: linear-gradient(180deg, #f8fbff 0, #fff 150px);
}

.customer-price-panel {
    border-top: 4px solid #16a34a;
    background: linear-gradient(180deg, #f6fff8 0, #fff 150px);
}

.job-economics-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
    gap: 1rem;
}

.pricing-value-card,
.pricing-input-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 155px;
    padding: 1.2rem;
    border: 1px solid #dbe4ef;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.pricing-value-card span,
.pricing-input-card label {
    color: #475569;
    font-weight: 700;
}

.pricing-value-card strong {
    margin: 0.35rem 0;
    color: #0f172a;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

.pricing-value-card small,
.pricing-input-card small {
    color: #64748b;
}

.pricing-value-card.cost-value {
    border-left: 5px solid #0f172a;
}

.pricing-value-card.sell-value {
    border-left: 5px solid #2563eb;
}

.pricing-input-card {
    border: 2px solid #93c5fd;
    background: #eff6ff;
}

.customer-price-controls {
    margin: 1rem 0;
    padding: 1rem 0.25rem;
    border-top: 1px solid #dcfce7;
    border-bottom: 1px solid #dcfce7;
}

.address-tax-rate {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
}

.centcom-analysis-disclosure,
.vendor-analysis-disclosure {
    overflow: hidden;
    background: #fff;
}

.centcom-analysis-summary,
.vendor-analysis-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.centcom-analysis-summary::-webkit-details-marker,
.vendor-analysis-summary::-webkit-details-marker {
    display: none;
}

.centcom-analysis-summary:hover,
.vendor-analysis-summary:hover {
    background: #f8fafc;
}

.centcom-analysis-summary:focus-visible,
.vendor-analysis-summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: -3px;
}

.centcom-analysis-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.vendor-analysis-summary {
    padding: 0.8rem 1rem;
    background: #f8fafc;
}

.vendor-analysis-summary small {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
}

.vendor-analysis-body {
    padding: 0 0.75rem 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.analysis-note-disclosure {
    overflow: hidden;
    background: #f8fafc;
}

.analysis-note-disclosure.assumption-notes {
    border-left: 4px solid #3b82f6 !important;
}

.analysis-note-disclosure.warning-notes {
    border-left: 4px solid #f59e0b !important;
    background: #fffbeb;
}

.analysis-note-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
}

.analysis-note-summary::-webkit-details-marker {
    display: none;
}

.analysis-note-summary > span:first-child {
    flex: 1;
}

.analysis-note-summary strong,
.analysis-note-summary small {
    display: block;
}

.analysis-note-summary small {
    margin-top: 0.15rem;
    color: #64748b;
}

.analysis-note-body {
    padding: 0.9rem 1.25rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.analysis-note-list {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.35rem;
}

.analysis-note-list li {
    padding-left: 0.25rem;
}

.analysis-note-list li::marker {
    color: #64748b;
    font-weight: 700;
}

.analysis-note-list p {
    margin: 0.15rem 0 0;
    color: #334155;
    line-height: 1.5;
}

.analysis-review-grid {
    display: grid;
    gap: 1rem;
}

.analysis-review-card {
    padding: 1rem;
    border: 1px solid #f5c451;
    border-radius: 0.65rem;
    background: #fff;
}

.analysis-review-card.resolved {
    border-color: #86efac;
    background: #f0fdf4;
}

.analysis-review-card p {
    margin: 0.25rem 0 0;
    color: #334155;
    line-height: 1.45;
}

.resolution-action-panel {
    padding-top: 0.15rem;
    border-top: 1px solid #e2e8f0;
}

.resolution-action-panel > summary {
    cursor: pointer;
    color: #1d4ed8;
    font-weight: 600;
}

.disclosure-chevron {
    display: inline-block;
    color: #64748b;
    font-size: 1.25rem;
    font-weight: 800;
    transition: transform 0.15s ease;
}

details[open] > summary .disclosure-chevron {
    transform: rotate(180deg);
}

.disclosure-chevron.expanded {
    transform: rotate(180deg);
}

.customer-total-card strong {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.pricing-section-title {
    margin: 1.75rem 0 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #475569;
}

.pricing-primary-metrics .metric-card {
    min-height: 138px;
}

.pricing-primary-metrics .cost-metric::before {
    background: #0f172a;
}

.pricing-bridge {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1.35fr;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    background: #f8fbff;
}

.pricing-bridge div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pricing-bridge span {
    color: #64748b;
    font-size: 0.78rem;
}

.pricing-bridge strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.pricing-bridge .pricing-bridge-arrow {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2563eb;
}

.pricing-controls {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.effective-margin-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    background: #f0fdf4;
    color: #166534;
}

.effective-margin-banner div {
    display: flex;
    flex-direction: column;
}

.effective-margin-banner strong {
    font-size: 1.35rem;
}

.effective-margin-banner.below-margin {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 767.98px) {
    .job-economics-grid {
        grid-template-columns: 1fr;
    }

    .pricing-bridge {
        grid-template-columns: 1fr;
    }

    .pricing-bridge .pricing-bridge-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .effective-margin-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

.notification-panel {
    padding: 0;
}

.notification-panel summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 1rem 1.25rem;
}

.notification-panel summary::-webkit-details-marker {
    display: none;
}

.notification-panel summary > span:first-child {
    display: grid;
    gap: 0.15rem;
}

.notification-panel summary strong {
    color: #1f2933;
    font-size: 1.1rem;
}

.notification-panel summary small,
.notification-panel-hint {
    color: #64748b;
}

.notification-panel-hint::before {
    content: "+ ";
    font-weight: 800;
}

.notification-panel[open] .notification-panel-hint::before {
    content: "− ";
}

.notification-panel[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.notification-panel-content {
    padding: 1rem 1.25rem 1.25rem;
}

.empty-state {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    min-height: 92px;
    padding: 1rem;
}

.activity-list {
    display: grid;
    gap: 0.65rem;
}

.activity-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.activity-item div {
    display: grid;
    gap: 0.15rem;
}

.activity-item strong {
    color: #1f2933;
}

.activity-item span,
.activity-item time {
    color: #64748b;
}

@media (max-width: 1200px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .local-entity-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 780px) {
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-status {
        min-width: 0;
        width: 100%;
    }

    .dashboard-header-action {
        margin-top: 0;
        min-width: 0;
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .local-entity-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 130px;
    }
}

.notification-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.notification-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
}

.notification-form-panel,
.recipient-list-panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 1.25rem;
}

.notification-form-panel h2,
.recipient-list-panel h2 {
    color: #1f2933;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.form-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label,
.preference-group span {
    color: #334e68;
    font-size: 0.9rem;
    font-weight: 700;
}

.preference-group {
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.preference-group span {
    flex-basis: 100%;
}

.preference-group label {
    align-items: center;
    color: #425466;
    display: inline-flex;
    gap: 0.4rem;
}

.form-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.recipient-list {
    display: grid;
    gap: 0.75rem;
}

.recipient-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.recipient-card div:first-child {
    display: grid;
    gap: 0.15rem;
}

.recipient-card strong {
    color: #1f2933;
}

.recipient-card span {
    color: #64748b;
}

.recipient-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.recipient-badges span {
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
}

.recipient-badges .muted {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.recipient-actions {
    display: flex;
    gap: 0.5rem;
}

.finance-shell {
    padding-bottom: 3rem;
}

.finance-metric-grid .metric-card strong {
    font-size: 1.75rem;
}

.finance-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.finance-panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 1.25rem;
}

.finance-panel h2 {
    color: #1f2933;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.finance-definition-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.finance-definition-list div {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.65rem;
}

.finance-definition-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.finance-definition-list dt {
    color: #52616f;
    font-weight: 700;
}

.finance-definition-list dd {
    color: #17202a;
    font-weight: 800;
    margin: 0;
}

.finance-table-wrap {
    overflow-x: auto;
}

.finance-table {
    border-collapse: collapse;
    min-width: 100%;
}

.finance-table th,
.finance-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 0.7rem;
    text-align: left;
    white-space: nowrap;
}

.finance-table th {
    background: #f8fafc;
    color: #334e68;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.finance-table td {
    color: #425466;
}

.finance-table td:nth-child(n+3) {
    text-align: right;
}

.receivables-aging-table {
    min-width: 0;
    width: auto;
}

.receivables-aging-table .aging-jobs-column {
    width: 6rem;
}

.receivables-aging-table .aging-balance-column {
    width: 14rem;
}

.status-pill {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
}

.status-pass {
    background: #dcfce7;
    color: #166534;
}

.status-fail {
    background: #fee2e2;
    color: #991b1b;
}

.status-muted {
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 980px) {
    .notification-layout {
        grid-template-columns: 1fr;
    }

    .finance-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.estimate-form-header {
    border-bottom: 3px solid #1f2937;
    padding-bottom: 1rem;
}

.estimate-customer-panel {
    border-top: 5px solid #1f2937;
}

.estimate-notes-input {
    min-height: 16rem;
    font-size: 1.05rem;
    line-height: 1.55;
    padding-bottom: 3.5rem;
    padding-right: 4rem;
}

.project-overview-notes {
    font-size: 1.05rem;
    line-height: 1.55;
    min-height: 10rem;
    padding-bottom: 3.5rem;
    padding-right: 4rem;
}

.dictation-input-wrapper {
    position: relative;
}

.dictation-toggle {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #b9cdf8;
    border-radius: 50%;
    bottom: 1rem;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.75rem;
    justify-content: center;
    position: absolute;
    right: 1rem;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
    width: 2.75rem;
}

.dictation-toggle:hover {
    background: #dfeaff;
    transform: translateY(-1px);
}

.dictation-toggle.active {
    animation: dictation-pulse 1.5s infinite;
    background: #dc2626;
    border-color: #b91c1c;
    box-shadow: 0 0 0 .25rem rgba(220, 38, 38, .16);
    color: #fff;
}

@keyframes dictation-pulse {
    0%, 100% { box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .12); }
    50% { box-shadow: 0 0 0 .5rem rgba(220, 38, 38, .22); }
}

.estimate-save-bar {
    display: flex;
    justify-content: flex-end;
    padding: .5rem 0 1rem;
}

.activity-panel.project-tasks-disclosure {
    overflow: hidden;
    padding: 0;
}

.project-tasks-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.project-tasks-summary::-webkit-details-marker {
    display: none;
}

.project-tasks-summary:hover {
    background: #f8fafc;
}

.project-tasks-summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: -3px;
}

.project-tasks-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #d8e1ec;
    background: #f8fafc;
}

.project-task-add-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-task-add-controls .form-select {
    max-width: 290px;
}

.project-tasks-body .project-task-panel {
    margin-bottom: 1rem;
}

.project-tasks-body .project-task-panel:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .project-tasks-summary {
        align-items: flex-start;
    }

    .project-task-add-controls {
        flex-direction: column;
    }

    .project-task-add-controls .form-select {
        max-width: none;
    }
}

.project-task-panel {
    border-left: 5px solid #2563eb;
    overflow: hidden;
    padding: 0;
}

.project-task-toggle {
    align-items: center;
    background: #fff;
    border: 0;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    padding: 1.15rem 1.4rem;
    text-align: left;
    width: 100%;
}

.project-task-toggle:hover {
    background: #f7f9fc;
}

.project-task-toggle-title small {
    color: #64748b;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.project-task-toggle-title h2 {
    margin: 0;
}

.project-task-chevron {
    align-items: center;
    background: #eaf1ff;
    border-radius: 50%;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 1.3rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.project-task-body {
    border-top: 1px solid #d8e1ec;
    padding: 1.4rem;
}

.project-task-actions {
    border-top: 1px solid #d8e1ec;
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.picture-capture-panel {
    border-top: 1px solid #d8e1ec;
    padding-top: 1.25rem;
}

.project-photo-list {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.project-photo-item {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #d8e1ec;
    border-radius: .6rem;
    display: flex;
    gap: .75rem;
    padding: .85rem;
}

.project-photo-item small {
    color: #64748b;
    display: block;
}

.photo-requirement-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.photo-requirement-card {
    background: #f7f9fc;
    border: 1px solid #d8e1ec;
    border-radius: .65rem;
    padding: 1rem;
}

.photo-requirement-card p {
    color: #64748b;
    min-height: 3.5rem;
}

.photo-guide-preview {
    background-image: url("/images/photo-guides/project-photo-guide-sprite.png");
    background-repeat: no-repeat;
    background-size: 400% 400%;
    border-radius: .6rem;
    display: flex;
    min-height: 220px;
    overflow: hidden;
    margin-bottom: .85rem;
}

.photo-guide-overlay {
    align-self: flex-end;
    background: linear-gradient(180deg, rgba(9, 20, 35, .12), rgba(9, 20, 35, .92));
    color: #fff;
    padding: 2.75rem 1rem 1rem;
    width: 100%;
}

.photo-guide-overlay strong {
    font-size: 1rem;
}

.photo-guide-overlay p {
    color: #fff;
    font-size: .88rem;
    line-height: 1.4;
    margin: .45rem 0 0;
    min-height: 0;
}

.photo-guide-panel-1 { background-position: 0 0; }
.photo-guide-panel-2 { background-position: 33.333% 0; }
.photo-guide-panel-3 { background-position: 66.666% 0; }
.photo-guide-panel-4 { background-position: 100% 0; }
.photo-guide-panel-5 { background-position: 0 33.333%; }
.photo-guide-panel-6 { background-position: 33.333% 33.333%; }
.photo-guide-panel-7 { background-position: 66.666% 33.333%; }
.photo-guide-panel-8 { background-position: 100% 33.333%; }
.photo-guide-panel-9 { background-position: 0 66.666%; }
.photo-guide-panel-10 { background-position: 33.333% 66.666%; }
.photo-guide-panel-11 { background-position: 66.666% 66.666%; }
.photo-guide-panel-12 { background-position: 100% 66.666%; }
.photo-guide-panel-13 { background-position: 0 100%; }
.photo-guide-panel-14 { background-position: 33.333% 100%; }
.photo-guide-panel-15 { background-position: 66.666% 100%; }
.photo-guide-panel-16 { background-position: 100% 100%; }

.centcom-chat-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    min-height: 65vh;
}

.centcom-session-panel,
.centcom-conversation-panel {
    background: #fff;
    border: 1px solid #d8e1ec;
    border-radius: .75rem;
    padding: 1rem;
}

.centcom-session-button {
    background: transparent;
    border: 0;
    border-radius: .5rem;
    display: block;
    margin-bottom: .4rem;
    padding: .75rem;
    text-align: left;
    width: 100%;
}

.centcom-session-button:hover,
.centcom-session-button.active {
    background: #eaf1ff;
}

.centcom-session-button small,
.centcom-message time {
    color: #64748b;
    display: block;
    font-size: .75rem;
}

.centcom-conversation-panel {
    display: flex;
    flex-direction: column;
}

.centcom-message-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding: 1rem 0;
}

.centcom-message {
    background: #f1f5f9;
    border-radius: .8rem;
    max-width: 82%;
    padding: .9rem 1rem;
}

.centcom-message.user {
    align-self: flex-end;
    background: #dbeafe;
}

.centcom-message p {
    margin: .35rem 0;
    white-space: pre-wrap;
}

.centcom-composer {
    display: flex;
    gap: .75rem;
}

.centcom-composer textarea {
    flex: 1;
}

.centcom-empty-state {
    margin: auto;
    text-align: center;
}

@media (max-width: 800px) {
    .centcom-chat-layout {
        grid-template-columns: 1fr;
    }
}
.dashboard-header h1 .powered-by-centcom {
    color: #64748b;
    display: inline-block;
    font-size: .3em;
    font-weight: 500;
    letter-spacing: .01em;
    margin-left: .65rem;
    vertical-align: middle;
}
.password-visibility-toggle {
    display: inline-flex;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #526173;
}

.password-visibility-toggle:hover {
    background: #eef3f8;
    color: #172334;
}

/* Responsive estimator workspace: phone, tablet portrait, and touch sizing. */
.dashboard-shell h1 {
    font-size: clamp(1.75rem, 4vw, 2.2rem);
}

.dashboard-shell h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

@media (max-width: 1200px) {
    .dashboard-shell small,
    .dashboard-shell .eyebrow,
    .dashboard-shell .badge {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .dashboard-shell .btn,
    .dashboard-shell .form-control,
    .dashboard-shell .form-select,
    .dashboard-shell summary {
        min-height: 44px;
    }

    .dashboard-shell input,
    .dashboard-shell select,
    .dashboard-shell textarea {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .dashboard-shell {
        gap: 1rem;
    }

    .customer-price-controls > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .customer-price-controls {
        padding-left: 0;
        padding-right: 0;
    }

    .policy-audit-panel .table-responsive,
    .job-cost-panel .table-responsive {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .policy-audit-table,
    .job-cost-panel table {
        min-width: 900px;
    }
}

@media (max-width: 560px) {
    .content.px-4 {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .activity-panel,
    .estimate-customer-panel {
        padding: 1rem;
    }

    .centcom-analysis-body {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .vendor-analysis-body {
        padding: 0.4rem;
    }

    .material-analysis-table,
    .material-analysis-table tbody,
    .material-analysis-table tr,
    .material-analysis-table td {
        display: block;
        width: 100%;
    }

    .material-analysis-table thead {
        display: none;
    }

    .material-analysis-table tbody tr {
        margin: 0.65rem 0;
        padding: 0.45rem 0.65rem;
        border: 1px solid #d8e1ec;
        border-radius: 0.65rem;
        background: #fff;
    }

    .material-analysis-table tbody tr.table-warning {
        background: #fff8db;
    }

    .material-analysis-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 0.42fr) minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.65rem 0.25rem;
        border-bottom: 1px solid #e5eaf1;
        text-align: left !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .material-analysis-table td:last-child {
        border-bottom: 0;
    }

    .material-analysis-table td::before {
        content: attr(data-label);
        color: #52616f;
        font-size: 0.875rem;
        font-weight: 800;
    }

    .material-analysis-table td[data-label="Actions"] {
        grid-template-columns: 1fr;
    }

    .material-analysis-table td[data-label="Actions"]::before {
        margin-bottom: 0.15rem;
    }

    .material-analysis-table .btn,
    .material-analysis-table .form-select,
    .material-analysis-table .form-control {
        width: 100%;
    }
}

.password-visibility-toggle:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.3);
    outline-offset: 1px;
}

.password-eye {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.password-eye-hide,
.password-visibility-toggle[aria-pressed="true"] .password-eye-show {
    display: none;
}

.password-visibility-toggle[aria-pressed="true"] .password-eye-hide {
    display: block;
}

/* Keep the forecast table inside the available viewport instead of widening the page. */
.revenue-forecast-panel {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    contain: inline-size;
}

.forecast-jobs-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: scroll;
    padding-bottom: 0.5rem;
    scrollbar-width: auto;
    scrollbar-color: #65758b #edf2f7;
}

.forecast-jobs-scroll::-webkit-scrollbar {
    height: 14px;
}

.forecast-jobs-scroll::-webkit-scrollbar-track {
    background: #edf2f7;
}

.forecast-jobs-scroll::-webkit-scrollbar-thumb {
    background: #65758b;
    border: 3px solid #edf2f7;
    border-radius: 7px;
}

.forecast-jobs-scroll:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 2px;
}
