.settings-shell,
.management-shell,
.users-shell,
.dashboard-shell,
.module-page {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.manual-shell,
.manual-modal-shell {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.manual-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.manual-hero__copy {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.manual-hero__mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(207, 122, 37, 0.22);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 248, 241, 0.98), rgba(238, 245, 251, 0.9)),
        var(--surface);
    color: var(--copper);
    box-shadow: var(--shadow-sm);
}

.manual-hero__mark .btn__icon-svg {
    width: 34px;
    height: 34px;
}

.manual-start-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manual-layout {
    display: grid;
    grid-template-columns: minmax(190px, 0.23fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
}

.manual-toc {
    position: sticky;
    top: calc(var(--header-offset) + 0.75rem);
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-subtle);
    box-shadow: var(--shadow-sm);
}

.manual-toc strong {
    color: var(--navy);
    font-size: 0.95rem;
}

.manual-toc__links {
    display: grid;
    gap: 0.18rem;
}

.manual-toc__links a {
    padding: 0.5rem 0.55rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.manual-toc__links a:hover,
.manual-toc__links a:focus-visible {
    color: var(--copper);
    border-color: rgba(207, 122, 37, 0.2);
    background: rgba(255, 248, 241, 0.82);
}

.manual-content {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.manual-section {
    display: grid;
    gap: 1rem;
    scroll-margin-top: var(--header-offset);
}

.manual-section__header {
    display: grid;
    gap: 0.45rem;
}

.manual-section__header p {
    color: var(--muted);
    max-width: 92ch;
}

.manual-step-list {
    counter-reset: manual-step;
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.manual-step-list li {
    position: relative;
    min-width: 0;
    padding: 0.75rem 0.85rem 0.75rem 3.05rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    color: var(--ink);
    line-height: 1.48;
}

.manual-step-list li::before {
    counter-increment: manual-step;
    content: counter(manual-step);
    position: absolute;
    left: 0.85rem;
    top: 0.75rem;
    width: 1.48rem;
    height: 1.48rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.manual-note-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.manual-note {
    margin: 0;
    padding: 0.85rem 0 0.85rem 0.85rem;
    border-left: 3px solid rgba(207, 122, 37, 0.55);
    color: var(--muted);
}

.manual-note strong {
    color: var(--navy);
}

.manual-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.manual-link-grid a {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.manual-link-grid a:hover,
.manual-link-grid a:focus-visible {
    background: var(--surface-alt);
}

.manual-link-grid strong {
    color: var(--navy);
    font-size: 0.96rem;
}

.manual-link-grid span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.manual-figure {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.manual-figure img {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
    box-shadow: var(--shadow-sm);
}

.manual-figure figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.manual-safety-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.manual-safety-list p {
    margin: 0;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.manual-safety-list strong {
    color: var(--navy);
}

@media (max-width: 980px) {
    .manual-layout,
    .manual-hero {
        grid-template-columns: 1fr;
    }

    .manual-toc {
        position: static;
    }

    .manual-start-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .manual-start-strip,
    .manual-link-grid,
    .manual-note-list {
        grid-template-columns: 1fr;
    }

    .manual-hero__mark {
        width: 58px;
        height: 58px;
    }

    .manual-hero__mark .btn__icon-svg {
        width: 28px;
        height: 28px;
    }

    .manual-step-list li {
        padding-right: 0.75rem;
    }
}

.settings-shell > *,
.management-shell > *,
.users-shell > *,
.dashboard-shell > *,
.module-page > * {
    min-width: 0;
}

.dashboard-header {
    gap: 1.25rem;
}

.dashboard-header__top {
    margin-bottom: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(360px, 0.92fr);
    gap: 1rem;
    align-items: start;
}

.dashboard-main,
.dashboard-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.dashboard-activity-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dashboard-subpanel {
    display: grid;
    gap: 0.9rem;
    padding-top: 0.25rem;
}

.dashboard-queue-list,
.dashboard-status-list,
.module-index {
    display: grid;
    gap: 0.75rem;
}

.dashboard-queue-item,
.dashboard-status-item,
.module-index__item {
    display: grid;
    gap: 0.22rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.dashboard-queue-item:last-child,
.dashboard-status-item:last-child,
.module-index__item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dashboard-queue-item strong,
.dashboard-status-item strong,
.module-index__item strong {
    color: var(--navy);
    font-size: 0.96rem;
}

.dashboard-queue-item span,
.dashboard-status-item span,
.module-index__item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.dashboard-queue-item__meta,
.module-index__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.module-index__link {
    display: grid;
    gap: 0.22rem;
}

.dashboard-note {
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(3, 47, 87, 0.22);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    color: var(--muted);
}

.dashboard-stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.dashboard-stat-link {
    color: inherit;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.dashboard-stat-link:hover,
.dashboard-stat-link:focus-visible {
    background: var(--surface-alt);
}

.dashboard-attention-grid,
.dashboard-cadence-grid {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

#attention-queue {
    scroll-margin-top: 6rem;
}

.dashboard-attention-grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.dashboard-cadence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-attention-card {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-left: 4px solid rgba(3, 47, 87, 0.18);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.dashboard-attention-card:hover,
.dashboard-attention-card:focus-visible {
    border-color: rgba(207, 122, 37, 0.3);
    background: var(--surface-alt);
    transform: translateY(-1px);
}

.dashboard-attention-card--warning {
    border-left-color: var(--copper);
}

.dashboard-attention-card--attention {
    border-left-color: var(--navy);
}

.dashboard-attention-card__value {
    color: var(--navy);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.dashboard-attention-card strong {
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.2;
}

.dashboard-attention-card span:not(.dashboard-attention-card__value) {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.dashboard-attention-card em {
    color: var(--copper);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
}

.dashboard-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.dashboard-subheader h3 {
    margin: 0;
    color: var(--navy);
    font-size: 0.96rem;
    line-height: 1.2;
}

.dashboard-event-column,
.dashboard-event-list {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.dashboard-event-item {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
    padding: 0.72rem 0.78rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.dashboard-event-item:hover,
.dashboard-event-item:focus-visible,
.dashboard-queue-link:hover,
.dashboard-queue-link:focus-visible,
.dashboard-queue-link.is-active {
    border-color: rgba(207, 122, 37, 0.26);
    background: rgba(255, 248, 241, 0.72);
}

.dashboard-event-item strong {
    color: var(--navy);
    font-size: 0.94rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dashboard-event-item span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.dashboard-event-item__date {
    color: var(--copper) !important;
    font-weight: 800;
}

.dashboard-queue-link {
    min-width: 0;
    padding: 0.62rem 0.68rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.dashboard-queue-link strong,
.dashboard-queue-link span {
    overflow-wrap: anywhere;
}

.dashboard-queue-link.is-active strong {
    color: var(--copper);
}

.settings-grid,
.management-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.9fr);
}

.settings-panel,
.management-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.settings-panel__header,
.management-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-panel__header p,
.management-panel__header p {
    margin-bottom: 0;
}

.settings-sidebar,
.management-sidebar {
    display: grid;
    gap: 1rem;
}

.key-value-list {
    display: grid;
    gap: 0.85rem;
}

.key-value-list__row {
    display: grid;
    gap: 0.18rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.key-value-list__row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.key-value-list dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field-label-row,
.key-value-label-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.field-label-row {
    margin-bottom: 0.35rem;
}

.field-label-row .form-label {
    margin-bottom: 0;
}

.operating-profile-info {
    display: inline-flex;
    flex: 0 0 auto;
    letter-spacing: 0;
    text-transform: none;
}

.operating-profile-info__trigger {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--navy);
}

.operating-profile-info__trigger .btn__icon-svg {
    width: 12px;
    height: 12px;
}

.operating-profile-info__panel {
    min-width: 240px;
    max-width: min(320px, calc(100vw - 2rem));
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.key-value-list dd {
    margin: 0;
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 600;
}

.stats-strip {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stats-strip__card {
    background: var(--surface);
}

.management-link-grid {
    display: grid;
    gap: 0.75rem;
}

.workspace-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.workspace-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.workspace-card.is-current {
    border-color: rgba(207, 122, 37, 0.34);
    box-shadow: var(--shadow-sm);
}

.workspace-card__header,
.workspace-card__actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.workspace-card__actions {
    align-items: center;
    flex-wrap: wrap;
}

.workspace-card__title {
    margin: 0;
    color: var(--navy);
    font-size: 1.02rem;
}

.management-link-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
}

.management-link-card strong {
    color: var(--navy);
}

.management-link-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.24rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.role-pill--owner {
    background: rgba(207, 122, 37, 0.15);
    border-color: rgba(207, 122, 37, 0.18);
    color: var(--copper);
}

.role-pill--admin {
    background: rgba(3, 47, 87, 0.08);
    border-color: rgba(3, 47, 87, 0.12);
    color: var(--navy);
}

.role-pill--analyst {
    background: rgba(40, 111, 167, 0.1);
    border-color: rgba(40, 111, 167, 0.14);
    color: #275f90;
}

.role-pill--guest {
    background: rgba(69, 90, 120, 0.1);
    border-color: rgba(69, 90, 120, 0.14);
    color: #52657f;
}

.role-pill--superuser {
    background: rgba(207, 122, 37, 0.16);
    border-color: rgba(207, 122, 37, 0.28);
    color: #9b5617;
}

.impersonation-banner {
    border-top: 1px solid rgba(207, 122, 37, 0.22);
    border-bottom: 1px solid rgba(207, 122, 37, 0.28);
    background: #fff5e8;
    color: var(--navy);
}

.impersonation-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-weight: 700;
}

.impersonation-banner form {
    margin: 0;
}

.security-password-input,
.security-code-input {
    max-width: 240px;
}

.security-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.security-code-grid code {
    display: inline-flex;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--navy);
    font-weight: 800;
}

.settings-info-tooltip .settings-info-tooltip__panel {
    width: min(560px, calc(100vw - 2rem));
}

.settings-info-tooltip .info-tooltip__item {
    gap: 0.45rem;
}

.legal-shell {
    max-width: min(1120px, 100%);
}

.legal-shell--acceptance {
    max-width: 100%;
}

.legal-section {
    display: grid;
    gap: 0.75rem;
}

.legal-section p {
    margin: 0;
    color: var(--ink);
    line-height: 1.65;
}

.legal-list {
    display: grid;
    gap: 0.44rem;
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ink);
    line-height: 1.55;
}

.legal-meta-row {
    margin-top: 1rem;
}

.legal-acceptance-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.legal-checkpoint-panel {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
}

.legal-checkpoint-panel .section-title {
    margin-bottom: 0;
}

.legal-status-list {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.legal-status-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.58fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.78rem 0.85rem;
    border-bottom: 1px solid var(--line);
}

.legal-status-list > div:last-child {
    border-bottom: none;
}

.legal-status-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-transform: uppercase;
}

.legal-status-list dd {
    display: grid;
    gap: 0.18rem;
    margin: 0;
    min-width: 0;
    color: var(--ink);
    line-height: 1.35;
}

.legal-status-list dd strong {
    color: var(--navy);
    font-weight: 800;
}

.legal-status-list dd span {
    color: var(--muted);
    font-size: 0.9rem;
}

.legal-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
}

.legal-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.legal-action-card:hover,
.legal-action-card:focus-visible {
    border-color: rgba(207, 122, 37, 0.45);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.legal-action-card:focus-visible {
    outline: 2px solid rgba(207, 122, 37, 0.28);
    outline-offset: 2px;
}

.legal-action-card__icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(27, 91, 165, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(27, 91, 165, 0.08);
    color: var(--blue);
}

.legal-action-card strong,
.legal-action-card small {
    display: block;
}

.legal-action-card strong {
    color: var(--navy);
    font-size: 0.98rem;
    line-height: 1.3;
}

.legal-action-card small {
    margin-top: 0.22rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.legal-list--compact {
    gap: 0.36rem;
}

.legal-acceptance-form {
    display: grid;
    gap: 1rem;
}

.legal-acceptance-box {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid rgba(207, 122, 37, 0.32);
    border-radius: var(--radius-sm);
    background: rgba(207, 122, 37, 0.08);
}

.legal-acceptance-box.is-invalid {
    border-color: rgba(181, 48, 48, 0.62);
    background: rgba(181, 48, 48, 0.08);
    box-shadow: 0 0 0 2px rgba(181, 48, 48, 0.08);
}

.legal-acceptance-note {
    width: 100%;
    max-width: none;
}

.form-checkbox--legal-gate {
    width: 100%;
    margin-top: 0;
    gap: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
}

.form-checkbox--legal-gate input {
    width: 1.28rem;
    height: 1.28rem;
    margin-top: 0.13rem;
}

.form-checkbox--legal-gate input:focus-visible {
    outline: 2px solid rgba(27, 91, 165, 0.32);
    outline-offset: 3px;
}

.settings-legal-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .legal-acceptance-layout {
        grid-template-columns: 1fr;
    }

    .legal-status-list > div {
        grid-template-columns: 1fr;
        gap: 0.28rem;
    }
}

.mfa-setup-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.mfa-setup-note__qr {
    width: 164px;
    min-height: 164px;
    display: grid;
    place-items: center;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.mfa-setup-note__qr canvas {
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.mfa-setup-note__qr--fallback {
    align-content: center;
    padding: 0.75rem;
    background: var(--surface-subtle);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
}

.mfa-setup-note__content {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.mfa-secret-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.mfa-secret-row code {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 0.3rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--navy);
    font-weight: 800;
}

.mfa-secret-row--stacked {
    align-items: flex-start;
}

.mfa-secret-row--stacked code {
    flex: 1 1 360px;
    font-weight: 650;
}

.mfa-uri-details {
    display: grid;
    gap: 0.55rem;
}

.mfa-uri-details summary {
    width: fit-content;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.mfa-uri-details[open] summary {
    color: var(--navy);
}

@media (max-width: 720px) {
    .mfa-setup-note {
        grid-template-columns: 1fr;
    }

    .mfa-setup-note__qr {
        width: min(220px, 100%);
    }
}

.settings-security-gate {
    border-color: rgba(207, 122, 37, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 248, 241, 0.08), transparent),
        var(--surface);
}

.settings-security-gate .page-note {
    margin-top: 0.75rem;
}

.table-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-inline-form .form-select {
    min-width: 130px;
}

.table-inline-form .form-checkbox {
    margin-top: 0;
    font-size: 0.88rem;
}

.review-action-buttons {
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-action-buttons form {
    margin: 0;
}

.review-action-buttons .btn {
    min-width: 0;
}

.review-bulk-actions {
    gap: 0.55rem;
}

.review-bulk-actions form {
    margin: 0;
}

.page-note {
    padding: 0.95rem 1rem;
    border: 1px dashed rgba(3, 47, 87, 0.24);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: rgba(245, 247, 250, 0.95);
}

.source-sync-followup {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.source-sync-followup__header {
    display: grid;
    gap: 0.28rem;
}

.source-sync-followup__header h3,
.source-sync-followup__header p {
    margin: 0;
}

.source-sync-followup__header h3 {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.25;
}

.source-sync-followup__header p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 92ch;
}

.table-stack {
    display: grid;
    gap: 0.24rem;
}

.form-panel[hidden] {
    display: none;
}

.form-panel.is-open {
    display: block;
}

.management-form-grid {
    align-items: start;
}

.property-tax-profile-grid {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    width: 100%;
}

.property-tax-profile-grid__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.property-tax-profile-grid__header .form-label {
    margin-bottom: 0;
}

.property-tax-profile-grid__table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 260px;
    overflow: auto;
}

.property-tax-profile-grid__table .data-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.property-tax-profile-grid__table th,
.property-tax-profile-grid__table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.property-tax-profile-grid__table .form-select,
.property-tax-profile-grid__table .form-input {
    min-width: 0;
    min-height: 38px;
    padding: 0.48rem 0.55rem;
    font-size: 0.88rem;
}

.property-tax-profile-grid__table .form-select {
    padding-right: 2rem;
    background-position:
        calc(100% - 0.82rem) 50%,
        calc(100% - 0.58rem) 50%,
        0 0;
}

.property-tax-profile-grid__actions-column {
    width: 72px;
    text-align: center;
}

.property-tax-profile-grid__actions-column .btn--small.btn--icon {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 9px;
}

.property-tax-profile-grid__actions-column .btn__icon-svg {
    width: 13px;
    height: 13px;
}

.property-tax-profile-grid__empty {
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}

.company-profile__header {
    gap: 1.25rem;
}

.company-profile__heading {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.company-profile__heading .page-title {
    margin-bottom: 0;
}

.company-profile__badges {
    gap: 0.6rem;
}

.company-profile__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.company-profile__grid {
    align-items: start;
    gap: 1.25rem;
}

.company-profile__section {
    padding: 1.25rem;
}

.company-profile__section .section-title {
    margin-bottom: 0.95rem;
}

.settings-account-panel__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.settings-summary-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    min-width: 0;
}

.settings-summary-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.settings-summary-card__header p {
    margin-bottom: 0;
}

.settings-company-grid {
    margin-top: 0.25rem;
}

.user-detail-form {
    display: grid;
    gap: 1rem;
}

.user-detail-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
    align-items: start;
}

.user-detail-form__section {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.user-detail-form__section .section-title {
    margin-bottom: 0;
}

.user-detail-form__access {
    margin-top: 0.2rem;
}

.user-detail-form__actions {
    margin-top: 0.15rem;
}

.import-upload-panel__content {
    display: grid;
    gap: 1rem;
}

.import-upload-card {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.import-upload-card--full {
    gap: 1.15rem;
}

.import-upload-card .section-title {
    margin-bottom: 0.35rem;
}

.import-upload-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.import-upload-card__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.import-upload-card__title .section-title {
    margin-bottom: 0;
}

.import-upload-card__tooltip .info-tooltip__panel {
    left: 0;
    right: auto;
    width: min(420px, calc(100vw - 2rem));
    z-index: 12;
}

.import-upload-card__intro {
    margin: 0;
    max-width: 66ch;
}

.import-upload-card .form-group {
    margin: 0;
}

.import-template-selector {
    display: grid;
    gap: 0.45rem;
    width: min(100%, 360px);
    min-width: 260px;
}

.import-template-selector .form-label {
    margin-bottom: 0;
}

.import-source-panel-stack {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.import-source-tile {
    display: grid;
    gap: 1rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 251, 0.98)),
        radial-gradient(circle at 18% 22%, rgba(207, 122, 37, 0.08), transparent 34%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.import-source-tile[hidden] {
    display: none;
}

.import-source-tile__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.import-source-tile__eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--copper);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.import-source-tile__header h4 {
    margin: 0;
    color: var(--navy);
    font-size: 1.02rem;
    line-height: 1.24;
}

.import-source-tile__copy {
    margin: 0;
    color: var(--muted);
}

.import-source-slot-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.import-source-slot {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid rgba(3, 47, 87, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.94);
}

.import-source-slot--stack {
    gap: 0.8rem;
}

.import-source-slot .form-label {
    margin-bottom: 0;
}

.import-file-picker-field {
    display: grid;
    gap: 0.45rem;
}

.import-file-picker {
    position: relative;
    min-width: 0;
}

.import-file-input--native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.import-file-picker__control {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 74px;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border: 1px dashed rgba(3, 47, 87, 0.18);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.import-file-picker__control:hover,
.import-file-input--native:focus + .import-file-picker__control,
.import-file-input--native:focus-visible + .import-file-picker__control {
    border-color: rgba(207, 122, 37, 0.3);
    box-shadow: 0 0 0 3px rgba(207, 122, 37, 0.08);
}

.import-file-picker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(3, 47, 87, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.import-file-picker__name {
    min-width: 0;
    color: var(--ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.import-review-issue .table-inline-pair {
    align-items: center;
    gap: 0.4rem;
}

.import-review-issue__tooltip .info-tooltip__trigger {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.import-upload-form__actions {
    margin-top: 0;
    padding-top: 0.2rem;
}

.import-upload-form__actions .btn {
    min-width: 180px;
}

.module-outline-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
}

.module-outline-stack {
    display: grid;
    gap: 1rem;
}

.module-note-list {
    display: grid;
    gap: 0.8rem;
}

.module-note-item {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.module-note-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.module-note-item strong {
    color: var(--navy);
    font-size: 0.96rem;
}

.module-note-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.module-shell-table .data-table {
    min-width: 680px;
}

.module-shell-table .empty-state {
    margin-top: 0.1rem;
}

.tax-disclaimer {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
    max-width: 1120px;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(207, 122, 37, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(207, 122, 37, 0.07);
    color: var(--ink);
}

.tax-disclaimer > p,
.tax-disclaimer__panel p,
.tax-disclaimer__panel ol {
    margin: 0;
}

.tax-disclaimer > p {
    font-size: 0.92rem;
    line-height: 1.55;
}

.tax-disclaimer__details summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    list-style: none;
}

.tax-disclaimer__details summary::-webkit-details-marker {
    display: none;
}

.tax-disclaimer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(3, 47, 87, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.tax-disclaimer__panel {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(207, 122, 37, 0.22);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.tax-disclaimer__panel ol {
    padding-left: 1.25rem;
}

.pull-tax-selector-cluster {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    margin-left: auto;
    padding-left: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.pull-tax-selector-cluster .selector-strip-option {
    padding-top: 0;
}

.pull-tax-layout {
    display: grid;
    gap: 0.85rem;
    align-items: start;
    width: 100%;
}

.pull-tax-section-heading {
    margin-bottom: 0.65rem;
}

.pull-tax-layout__main,
.pull-tax-layout__income {
    min-width: 0;
}

.pull-tax-table-shell {
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
}

.pull-tax-table-shell.preview-table-shell--rows {
    max-height: none;
    overflow: auto;
}

.pull-tax-table-shell .data-table {
    width: 100%;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
}

.pull-tax-table-shell--compact .data-table {
    min-width: 100%;
}

.pull-tax-table-shell--fit {
    width: fit-content;
    max-width: 100%;
}

.pull-tax-table-shell.preview-table-shell--rows.pull-tax-table-shell--fit {
    width: fit-content;
    max-width: 100%;
    margin-inline: 0;
}

.pull-tax-table-shell--fit .data-table,
.pull-tax-table-shell--fit.pull-tax-table-shell--compact .data-table {
    width: auto;
    min-width: 0;
}

.pull-tax-table-shell.preview-table-shell--rows .pull-tax-table th,
.pull-tax-table th {
    background: var(--navy);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.pull-tax-table th,
.pull-tax-table td {
    padding: 0.42rem 0.5rem;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    font-size: 0.84rem;
    line-height: 1.22;
}

.pull-tax-table th:not(:first-child),
.pull-tax-table td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
}

.pull-tax-table th {
    text-align: center !important;
    font-size: 0.72rem;
    letter-spacing: 0.035em;
    white-space: normal;
    overflow-wrap: break-word;
}

.pull-tax-table th:nth-child(2),
.pull-tax-table td:nth-child(2) {
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    line-height: 1.25;
}

.pull-tax-table tbody td:nth-child(2) {
    white-space: nowrap;
}

.pull-tax-table:not(.pull-tax-table--compact) th:nth-child(2),
.pull-tax-table:not(.pull-tax-table--compact) td:nth-child(2) {
    width: auto;
}

.pull-tax-table th:first-child,
.pull-tax-table td:first-child {
    width: auto;
}

.pull-tax-table__group-cell {
    width: auto;
    padding: 0.42rem 0.5rem !important;
    text-align: center !important;
    vertical-align: middle;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.pull-tax-table__group-cell span {
    display: inline-block;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.pull-tax-table--compact th:first-child,
.pull-tax-table--compact td:first-child {
    width: auto;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.pull-tax-money {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pull-tax-money__amount {
    white-space: nowrap;
}

.pull-tax-table--dense th,
.pull-tax-table--dense td {
    padding-inline: 0.42rem;
    font-size: 0.8rem;
}

.pull-tax-table--dense .pull-tax-money {
    font-size: 0.94em;
}

.pull-tax-table--ultra-compact th,
.pull-tax-table--ultra-compact td {
    padding-inline: 0.34rem;
    font-size: 0.76rem;
}

.pull-tax-table--ultra-compact .pull-tax-money {
    font-size: 0.9em;
}

.pull-tax-table--compact th:nth-child(2),
.pull-tax-table--compact td:nth-child(2) {
    text-align: center;
}

.financial-filter-form {
    margin-top: 1rem;
}

.financial-table-shell.preview-table-shell--rows {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    max-height: 72vh;
    overflow: auto;
}

.financial-table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
    font-variant-numeric: tabular-nums;
}

.financial-table th,
.financial-table td {
    padding: 0.42rem 0.5rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 0.8rem;
    line-height: 1.22;
}

.financial-table thead th {
    position: sticky;
    top: 0;
    z-index: 12;
    background: #f7faf4 !important;
    color: var(--navy) !important;
    border-color: rgba(92, 111, 70, 0.26);
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.financial-table--expenses thead th {
    background: #fff6ee !important;
    border-color: rgba(207, 122, 37, 0.24);
}

.financial-table thead th:first-child,
.financial-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 3;
    width: clamp(150px, 18vw, 220px);
    min-width: clamp(150px, 18vw, 220px);
    max-width: clamp(150px, 18vw, 220px);
    text-align: left;
    white-space: normal;
    border-right: 1px solid rgba(3, 47, 87, 0.18);
    box-shadow:
        inset -1px 0 0 rgba(3, 47, 87, 0.08),
        inset 0 -1px 0 rgba(3, 47, 87, 0.12);
    background-clip: padding-box;
}

.financial-table thead th:first-child {
    z-index: 14;
}

.financial-table tbody th[scope="row"] {
    background: #f8fbf5;
    color: var(--navy);
    font-weight: 400;
    letter-spacing: 0.015em;
    text-transform: none;
}

.financial-table tbody tr:nth-child(even):not(.financial-table__section-row) th[scope="row"],
.financial-table tbody tr:nth-child(even):not(.financial-table__section-row) td {
    background: #edf6e8;
}

.financial-table tbody tr:nth-child(odd):not(.financial-table__section-row) th[scope="row"],
.financial-table tbody tr:nth-child(odd):not(.financial-table__section-row) td {
    background: #fbfdf8;
}

.financial-table tbody tr:not(.financial-table__section-row):hover th[scope="row"],
.financial-table tbody tr:not(.financial-table__section-row):hover td {
    background: #dcebd4;
}

.financial-table--expenses tbody th[scope="row"] {
    background: #fff8f2;
}

.financial-table--expenses tbody tr:nth-child(even):not(.financial-table__section-row) th[scope="row"],
.financial-table--expenses tbody tr:nth-child(even):not(.financial-table__section-row) td {
    background: #fde8d8;
}

.financial-table--expenses tbody tr:nth-child(odd):not(.financial-table__section-row) th[scope="row"],
.financial-table--expenses tbody tr:nth-child(odd):not(.financial-table__section-row) td {
    background: #fffaf6;
}

.financial-table--expenses tbody tr:not(.financial-table__section-row):hover th[scope="row"],
.financial-table--expenses tbody tr:not(.financial-table__section-row):hover td {
    background: #f7dcc8;
}

.financial-table tbody .financial-table__statement-row--emphasis th[scope="row"],
.financial-table__statement-row--emphasis td {
    font-weight: 800;
}

.financial-table tbody .financial-table__statement-row--negative th[scope="row"],
.financial-table__statement-row--negative td {
    background: #fff1f1 !important;
    color: #8c3f3f;
    font-weight: 400;
}

.financial-table tbody .financial-table__statement-row--negative:hover th[scope="row"],
.financial-table__statement-row--negative:hover td {
    background: #ffe4e4 !important;
}

.financial-table tbody .financial-table__statement-row--subtotal th[scope="row"],
.financial-table__statement-row--subtotal td {
    background: #cfe4c2 !important;
    color: var(--navy);
    font-weight: 800;
}

.financial-table tbody .financial-table__statement-row--total th[scope="row"],
.financial-table__statement-row--total td {
    background: #7f9f68 !important;
    color: #fff;
    font-weight: 900;
}

.financial-table tbody .financial-table__statement-row--flow th[scope="row"],
.financial-table__statement-row--flow td {
    background: #9ec28b !important;
    color: var(--navy);
    font-weight: 900;
}

.financial-table--expenses tbody .financial-table__statement-row--subtotal th[scope="row"],
.financial-table--expenses .financial-table__statement-row--subtotal td {
    background: #f6d9c4 !important;
}

.financial-table--expenses tbody .financial-table__statement-row--total th[scope="row"],
.financial-table--expenses .financial-table__statement-row--total td {
    background: #c46f28 !important;
    color: #fff;
    font-weight: 900;
}

.financial-table--expenses tbody .financial-table__statement-row--flow th[scope="row"],
.financial-table--expenses .financial-table__statement-row--flow td {
    background: #e8b58f !important;
    color: var(--navy);
    font-weight: 900;
}

.financial-table tbody .financial-table__statement-row--subtotal:hover th[scope="row"],
.financial-table__statement-row--subtotal:hover td {
    background: #c2dab3 !important;
}

.financial-table tbody .financial-table__statement-row--total:hover th[scope="row"],
.financial-table__statement-row--total:hover td {
    background: #718f5d !important;
}

.financial-table tbody .financial-table__statement-row--flow:hover th[scope="row"],
.financial-table__statement-row--flow:hover td {
    background: #91b87e !important;
}

.financial-table--expenses tbody .financial-table__statement-row--subtotal:hover th[scope="row"],
.financial-table--expenses .financial-table__statement-row--subtotal:hover td {
    background: #efc9ad !important;
}

.financial-table--expenses tbody .financial-table__statement-row--total:hover th[scope="row"],
.financial-table--expenses .financial-table__statement-row--total:hover td {
    background: #b7611e !important;
}

.financial-table--expenses tbody .financial-table__statement-row--flow:hover th[scope="row"],
.financial-table--expenses .financial-table__statement-row--flow:hover td {
    background: #dfa57a !important;
}

.financial-table-shell.preview-table-shell--rows .financial-table__section-row th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    padding: 0.58rem 0.65rem;
    background: #7f9f68 !important;
    color: #fff !important;
    border-top: 2px solid rgba(92, 111, 70, 0.34);
    border-bottom: 2px solid rgba(92, 111, 70, 0.22);
    text-align: left;
    font-size: 0.82rem;
    letter-spacing: 0;
    box-shadow: none;
}

.financial-table-shell.preview-table-shell--rows .financial-table--expenses .financial-table__section-row th {
    background: #c46f28 !important;
    border-top-color: rgba(161, 87, 21, 0.34);
    border-bottom-color: rgba(161, 87, 21, 0.22);
}

.financial-table__total-row th[scope="row"],
.financial-table__total-row td {
    background: #cfe4c2 !important;
    color: var(--navy);
    font-weight: 800;
}

.financial-table--expenses .financial-table__total-row th[scope="row"],
.financial-table--expenses .financial-table__total-row td {
    background: #f6d9c4 !important;
}

.financial-table__total-row:hover th[scope="row"],
.financial-table__total-row:hover td {
    background: #c2dab3 !important;
}

.financial-table--expenses .financial-table__total-row:hover th[scope="row"],
.financial-table--expenses .financial-table__total-row:hover td {
    background: #efc9ad !important;
}

.financial-money {
    display: inline-flex;
    justify-content: flex-end;
    min-width: 5.8rem;
    white-space: nowrap;
}

.data-table--operational-grid tbody tr.pull-tax-group--taxable-income td,
.pull-tax-group--taxable-income .pull-tax-table__group-cell {
    background: #dcefe3;
}

.data-table--operational-grid tbody tr.pull-tax-group--taxable-income:nth-child(odd) td {
    background: #c8e4d4;
}

.data-table--operational-grid tbody tr.pull-tax-group--taxable-income .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--taxable-income.pull-tax-table__total-row td {
    background: #1f6b42;
    color: #fff;
}

.data-table--operational-grid tbody tr.pull-tax-group--county-tax td,
.pull-tax-group--county-tax .pull-tax-table__group-cell {
    background: #fff0d9;
}

.data-table--operational-grid tbody tr.pull-tax-group--county-tax:nth-child(odd) td {
    background: #f8d8aa;
}

.data-table--operational-grid tbody tr.pull-tax-group--county-tax .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--county-tax.pull-tax-table__total-row td {
    background: #b76b17;
    color: #fff;
}

.data-table--operational-grid tbody tr.pull-tax-group--state-sales-tax td,
.pull-tax-group--state-sales-tax .pull-tax-table__group-cell {
    background: #fbe6d3;
}

.data-table--operational-grid tbody tr.pull-tax-group--state-sales-tax:nth-child(odd) td {
    background: #f3cda8;
}

.data-table--operational-grid tbody tr.pull-tax-group--state-sales-tax .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--state-sales-tax.pull-tax-table__total-row td {
    background: #a75612;
    color: #fff;
}

.data-table--operational-grid tbody tr.pull-tax-group--discretionary-sales-surtax td,
.pull-tax-group--discretionary-sales-surtax .pull-tax-table__group-cell {
    background: #e7f1fb;
}

.data-table--operational-grid tbody tr.pull-tax-group--discretionary-sales-surtax:nth-child(odd) td {
    background: #cfe4f5;
}

.data-table--operational-grid tbody tr.pull-tax-group--discretionary-sales-surtax .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--discretionary-sales-surtax.pull-tax-table__total-row td {
    background: #2e6f9e;
    color: #fff;
}

.data-table--operational-grid tbody tr.pull-tax-group--sst-dss td,
.pull-tax-group--sst-dss .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--sst-dss-no-airbnb td,
.pull-tax-group--sst-dss-no-airbnb .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--source-submitted-tax td,
.pull-tax-group--source-submitted-tax .pull-tax-table__group-cell {
    background: #e8eaf6;
}

.data-table--operational-grid tbody tr.pull-tax-group--sst-dss:nth-child(odd) td,
.data-table--operational-grid tbody tr.pull-tax-group--sst-dss-no-airbnb:nth-child(odd) td,
.data-table--operational-grid tbody tr.pull-tax-group--source-submitted-tax:nth-child(odd) td {
    background: #d6dbed;
}

.data-table--operational-grid tbody tr.pull-tax-group--sst-dss .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--sst-dss.pull-tax-table__total-row td,
.data-table--operational-grid tbody tr.pull-tax-group--sst-dss-no-airbnb .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--sst-dss-no-airbnb.pull-tax-table__total-row td,
.data-table--operational-grid tbody tr.pull-tax-group--source-submitted-tax .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--source-submitted-tax.pull-tax-table__total-row td {
    background: #31456f;
    color: #fff;
}

.data-table--operational-grid tbody tr.pull-tax-group--total-taxes td,
.data-table--operational-grid tbody tr.pull-tax-group--total-taxes .pull-tax-table__group-cell,
.data-table--operational-grid tbody tr.pull-tax-group--total-taxes.pull-tax-table__total-row td {
    background: #cf7a25;
    color: #fff;
    font-weight: 800;
}

.pull-tax-table__total-row td {
    border-top: 1px solid rgba(23, 42, 69, 0.22);
    font-weight: 800;
}

.tax-validation-dialog {
    width: min(1120px, calc(100vw - 2rem));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem;
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(8, 31, 59, 0.22);
}

.tax-validation-dialog::backdrop {
    background: rgba(8, 31, 59, 0.42);
}

.tax-validation-dialog__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.pull-tax-validation-shell .data-table {
    min-width: 720px;
}

.pull-tax-validation-table th {
    background: #fff;
    color: var(--navy);
}

.pull-tax-validation-table td,
.pull-tax-validation-table th {
    background: #fff;
}

.pull-tax-validation-table__mismatch {
    background: #f4c7c3 !important;
    color: #5f1611;
}

.forecast-filter-form {
    gap: 0.85rem;
}

.forecast-source-panel {
    display: grid;
    gap: 1rem;
}

.forecast-source-block {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.management-panel > .forecast-source-block + .forecast-source-block {
    margin-top: 1rem;
}

.management-panel > .forecast-source-block + .forecast-table-shell,
.management-panel > .forecast-table-shell + .forecast-table-shell {
    margin-top: 1rem;
}

.forecast-derived-block {
    margin-top: 1rem;
}

.forecast-derived-block .forecast-source-block__header p {
    margin: 0;
    color: var(--muted);
}

.forecast-source-block__header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

.forecast-comparison-grid {
    display: grid;
    gap: 1rem;
}

.forecast-table-shell.preview-table-shell--rows {
    max-width: 100%;
    overflow-x: auto;
}

.forecast-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.forecast-table th,
.forecast-table td {
    padding: 0.42rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
}

.forecast-table-shell.preview-table-shell--rows .forecast-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #06384d;
    color: #fff;
    font-weight: 800;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.24);
    text-transform: uppercase;
}

.forecast-table-shell.preview-table-shell--rows .forecast-table thead th:first-child {
    left: 0;
    z-index: 6;
    background: #075071;
    color: #fff;
}

.forecast-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 10rem;
    max-width: 14rem;
    background: #075071;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.45);
}

.forecast-table tbody td {
    min-width: 5.7rem;
    font-weight: 400;
    text-align: right;
}

.forecast-table tbody tr:nth-child(odd) td {
    background: #e7f1f8;
}

.forecast-table tbody tr:nth-child(even) td {
    background: #cfe2f1;
}

.forecast-table tbody tr:hover td {
    background: #dbeefa;
}

.forecast-table__total,
.forecast-table tbody td.forecast-table__total {
    background: #b8e7aa;
    color: #123516;
    font-weight: 800;
}

.forecast-table__total-row th,
.forecast-table__total-row td,
.forecast-table tbody tr.forecast-table__total-row td {
    background: #ffe08a;
    color: #123516;
    font-weight: 800;
}

.forecast-table tbody tr.forecast-table__total-row th[scope="row"] {
    background: #d9a526;
    color: #10210d;
    font-weight: 800;
}

.forecast-table--inputs td {
    min-width: 6.25rem;
}

.forecast-input {
    width: 5.8rem;
    min-width: 5.8rem;
    padding: 0.32rem 0.38rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.forecast-cell--adjusted,
.forecast-table tbody td.forecast-cell--adjusted {
    background: #f5d2d2;
}

.forecast-input--adjusted {
    border-color: #be6f6f;
    background: #fff7f7;
}

.forecast-table td.forecast-value--positive,
.forecast-table tbody td.forecast-table__total.forecast-value--positive,
.forecast-table tbody tr.forecast-table__total-row td.forecast-value--positive,
.stat-strip__value.forecast-value--positive,
.forecast-value--positive {
    color: #087735;
}

.forecast-table td.forecast-value--negative,
.forecast-table tbody td.forecast-table__total.forecast-value--negative,
.forecast-table tbody tr.forecast-table__total-row td.forecast-value--negative,
.stat-strip__value.forecast-value--negative,
.forecast-value--negative {
    color: #c32121;
}

@media (max-width: 1280px) {
    .pull-tax-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dashboard-grid,
    .dashboard-activity-grid,
    .dashboard-cadence-grid,
    .settings-grid,
    .management-grid,
    .settings-account-panel__grid,
    .user-detail-form__grid,
    .module-outline-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-subheader {
        align-items: flex-start;
    }

    .import-upload-card__header {
        flex-direction: column;
    }

    .import-template-selector {
        width: 100%;
        min-width: 0;
    }

    .import-file-picker__control {
        flex-direction: column;
        align-items: flex-start;
    }

    .import-file-picker__name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .company-profile__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .pull-tax-selector-cluster {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 0;
    }

    .pull-tax-table-shell.preview-table-shell--rows {
        overflow-x: auto;
    }

    .pull-tax-table-shell .data-table {
        width: max-content;
        min-width: 100%;
        max-width: none;
        table-layout: auto;
    }

    .pull-tax-table-shell--compact .data-table {
        min-width: 100%;
    }

    .pull-tax-table-shell--fit .data-table,
    .pull-tax-table-shell--fit.pull-tax-table-shell--compact .data-table {
        width: auto;
        min-width: 0;
    }

    .pull-tax-table th,
    .pull-tax-table td {
        padding: 0.46rem 0.5rem;
        overflow: visible;
    }

    .pull-tax-table th:not(:first-child) {
        white-space: normal;
        overflow-wrap: break-word;
    }

    .pull-tax-table td:not(:first-child) {
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .pull-tax-table th:nth-child(2),
    .pull-tax-table td:nth-child(2) {
        min-width: 8.5rem;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .pull-tax-table--compact th:first-child,
    .pull-tax-table--compact td:first-child {
        min-width: 8.5rem;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .pull-tax-table th:first-child,
    .pull-tax-table__group-cell {
        min-width: 6.5rem;
    }

    .pull-tax-table th:not(:first-child):not(:nth-child(2)),
    .pull-tax-table td:not(:first-child):not(:nth-child(2)) {
        min-width: 5.7rem;
    }

}
