body {
    background: #f6f8fa;
    color: #17212b;
}

/* Corporate language selector */
.app-language-switcher {
    align-items: center;
    border: 1px solid rgba(23, 66, 63, .18);
    border-radius: .65rem;
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: .85rem;
    min-height: 2.35rem;
    padding: 0 .2rem;
}

.app-language-select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #29413f;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .055em;
    outline: 0;
    padding: .45rem 1.25rem .45rem .35rem;
    text-align: center;
}

.app-language-switcher:has(.app-language-select:focus-visible) {
    border-color: #16877d;
    box-shadow: 0 0 0 .2rem rgba(22, 135, 125, .12);
}

@media (max-width: 991.98px) {
    .app-language-switcher {
        margin: .85rem 0 .25rem;
    }
}

/* Team performance */
.team-performance-page {
    background:
        radial-gradient(circle at 88% 3%, rgba(22, 135, 125, .07), transparent 28rem),
        #f5f7f8;
    min-height: calc(100vh - 90px);
}

.team-performance-heading {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.team-performance-eyebrow,
.team-chart-heading span,
.team-performance-table-heading > div > span {
    color: #16877d;
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: .35rem;
}

.team-performance-heading h1 {
    color: #17242d;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 750;
    letter-spacing: -.035em;
    margin: 0 0 .35rem;
}

.team-performance-heading p {
    color: #6b7981;
    margin: 0;
}

.team-performance-period-label {
    border-left: 1px solid #d9e2e4;
    display: grid;
    min-width: 12rem;
    padding-left: 1.25rem;
}

.team-performance-period-label span {
    color: #7d8b92;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.team-performance-period-label strong {
    color: #33434c;
    font-size: .95rem;
    margin-top: .2rem;
}

.team-performance-filter-panel {
    padding: 1.25rem;
}

.team-performance-periods {
    border-bottom: 1px solid #e4eaeb;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
}

.team-performance-periods .btn {
    border-radius: .65rem;
    font-weight: 700;
    padding: .52rem .9rem;
}

.team-performance-filter-form {
    align-items: end;
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(7rem, .6fr) auto;
}

.team-performance-filter-field {
    min-width: 0;
}

.team-performance-filter-field label {
    color: #52636c;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.team-performance-filter-field .form-control,
.team-performance-filter-field .form-select {
    border-color: #d7e0e2;
    border-radius: .65rem;
    min-height: 2.75rem;
}

.team-performance-filter-field .form-control:focus,
.team-performance-filter-field .form-select:focus {
    border-color: #16877d;
    box-shadow: 0 0 0 .2rem rgba(22, 135, 125, .1);
}

.team-performance-filter-submit {
    border-radius: .65rem;
    font-weight: 700;
    min-height: 2.75rem;
    padding-inline: 1.25rem;
    white-space: nowrap;
}

.team-performance-warning {
    border-radius: .8rem;
    margin: 1.25rem 0 0;
}

.team-performance-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 1.25rem 0;
}

.team-summary-card {
    background: #fff;
    border: 1px solid #dce5e6;
    border-radius: .95rem;
    box-shadow: 0 .65rem 1.6rem rgba(30, 52, 61, .045);
    display: flex;
    flex-direction: column;
    min-height: 10.7rem;
    padding: 1rem;
}

.team-summary-icon {
    align-items: center;
    background: #e9f5f3;
    border-radius: .65rem;
    color: #16877d;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2.35rem;
}

.team-summary-icon svg {
    height: 1.28rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.28rem;
}

.team-summary-card > span {
    color: #718088;
    font-size: .78rem;
    font-weight: 700;
}

.team-summary-card > strong,
.team-summary-revenue-values strong {
    color: #1e2d35;
    display: block;
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.2;
    margin-top: .2rem;
}

.team-summary-card small {
    color: #87939a;
    font-size: .7rem;
    line-height: 1.35;
    margin-top: auto;
    padding-top: .65rem;
}

.team-summary-card-success {
    border-top: 3px solid #16877d;
}

.team-summary-card-neutral .team-summary-icon {
    background: #edf2f3;
    color: #526a73;
}

.team-summary-card-revenue {
    background: linear-gradient(145deg, #173b3a, #1a5a54);
    border-color: transparent;
}

.team-summary-card-revenue .team-summary-icon {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.team-summary-card-revenue > span,
.team-summary-card-revenue small {
    color: rgba(255, 255, 255, .7);
}

.team-summary-card-revenue .team-summary-revenue-values strong {
    color: #fff;
    font-size: 1rem;
    margin-top: .3rem;
}

.team-performance-chart-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-chart-panel {
    overflow: hidden;
    padding: 1.25rem;
}

.team-chart-heading,
.team-performance-table-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.team-chart-heading h2,
.team-performance-table-heading h2 {
    color: #22323a;
    font-size: 1.08rem;
    font-weight: 750;
    margin: 0;
}

.team-chart-heading > small,
.team-performance-table-heading > small {
    color: #8a969c;
    font-size: .7rem;
    max-width: 10rem;
    text-align: right;
}

.team-horizontal-chart {
    min-height: 18rem;
    position: relative;
}

.team-trend-panel,
.team-performance-table-panel {
    margin-top: 1rem;
}

.team-trend-chart {
    height: 21rem;
    position: relative;
}

.team-performance-table-panel {
    padding: 0;
}

.team-performance-table-heading {
    border-bottom: 1px solid #e4eaeb;
    margin: 0;
    padding: 1.25rem;
}

.team-performance-table {
    min-width: 71rem;
}

.team-performance-table thead th {
    background: #f8fafb;
    border-bottom-color: #dce4e6;
    color: #6d7c84;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .055em;
    padding: .9rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.team-performance-table tbody td {
    border-bottom-color: #e8edef;
    color: #40515a;
    font-size: .88rem;
    padding: 1rem;
}

.team-performance-table tbody tr:last-child td {
    border-bottom: 0;
}

.team-user-cell,
.team-revenue-cell {
    display: grid;
    gap: .2rem;
}

.team-user-cell strong,
.team-revenue-cell strong {
    color: #25353e;
}

.team-user-cell span {
    color: #87949a;
    font-size: .72rem;
}

.team-result-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    justify-content: center;
    min-width: 2rem;
    padding: .3rem .55rem;
}

.team-result-pill-success {
    background: #e7f5f1;
    color: #11766d;
}

.team-performance-empty {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 3rem 1rem;
    text-align: center;
}

.team-performance-empty span {
    color: #7c898f;
    font-size: .85rem;
}

.team-competition-panel {
    background:
        radial-gradient(circle at 96% 0, rgba(108, 99, 168, .11), transparent 22rem),
        linear-gradient(180deg, #fff, #fbfcfd);
    border: 1px solid #dbe5e6;
    box-shadow: 0 1.2rem 3rem rgba(31, 55, 64, .07);
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

.team-competition-panel::before {
    background: linear-gradient(90deg, #16877d, #6c63a8, #c28732);
    content: "";
    height: 3px;
    inset: 0 0 auto;
    position: absolute;
}

.team-competition-header {
    align-items: flex-start;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.team-competition-header h2 {
    color: #172a33;
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
    font-weight: 780;
    letter-spacing: -.03em;
    margin: 0 0 .35rem;
}

.team-competition-header p {
    color: #74838a;
    font-size: .9rem;
    margin: 0;
}

.team-competition-period {
    background: rgba(245, 248, 249, .9);
    border: 1px solid #e0e8e9;
    border-radius: .8rem;
    display: grid;
    min-width: 13.5rem;
    padding: .7rem .9rem;
}

.team-competition-period span,
.team-total-badge span {
    color: #849198;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.team-competition-period strong {
    color: #354750;
    font-size: .82rem;
    margin-top: .12rem;
}

.team-metric-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.4rem 0 .75rem;
}

.team-metric-tab {
    align-items: center;
    background: #f4f7f8;
    border: 1px solid #e0e7e8;
    border-radius: 999px;
    color: #66767e;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 750;
    gap: .45rem;
    padding: .52rem .78rem;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.team-metric-tab > span {
    border-radius: 50%;
    height: .48rem;
    width: .48rem;
}

.team-metric-tab:hover:not(:disabled) {
    border-color: #afc7c9;
    color: #263b44;
    transform: translateY(-1px);
}

.team-metric-tab.is-active {
    background: #fff;
    border-color: #16877d;
    box-shadow: 0 .35rem 1rem rgba(22, 135, 125, .12);
    color: #126f67;
}

.team-metric-tab:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.team-competition-currency-note {
    color: #8a672d;
    font-size: .72rem;
    margin-bottom: .75rem;
}

.team-competition-overview {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .85fr);
    margin-top: 1rem;
}

.team-contribution-card,
.team-share-spotlight,
.team-highlight-card,
.team-member-detail {
    background: #fff;
    border: 1px solid #e2e9ea;
    border-radius: 1rem;
}

.team-contribution-card {
    min-width: 0;
    padding: 1.1rem;
}

.team-competition-subheading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.team-competition-subheading > div > span,
.team-member-identity > div > span,
.team-section-divider span {
    color: #16877d;
    display: block;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .1em;
    margin-bottom: .25rem;
}

.team-competition-subheading h3 {
    color: #24363f;
    font-size: 1rem;
    font-weight: 760;
    margin: 0;
}

.team-total-badge {
    display: grid;
    text-align: right;
}

.team-total-badge strong {
    color: #263a43;
    font-size: 1.15rem;
}

.team-contribution-list {
    display: grid;
    gap: .72rem;
    margin-top: 1.15rem;
}

.team-contribution-row {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .75rem;
    color: inherit;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(9.5rem, 1fr) minmax(9rem, 1.35fr) minmax(5rem, .55fr);
    padding: .45rem;
    text-align: left;
    transition: background .18s ease, transform .18s ease;
    width: 100%;
}

.team-contribution-row:hover {
    background: #f6f9f9;
    transform: translateX(2px);
}

.team-contribution-user,
.team-member-identity {
    align-items: center;
    display: flex;
    gap: .65rem;
    min-width: 0;
}

.team-contribution-user > div {
    display: grid;
    min-width: 0;
}

.team-contribution-user strong {
    color: #2c3e47;
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-contribution-user small {
    color: #8b979d;
    font-size: .66rem;
}

.team-user-avatar {
    align-items: center;
    background: linear-gradient(145deg, #e9f5f3, #eef0fb);
    border: 1px solid #dce9e8;
    border-radius: .7rem;
    color: #237d75;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .68rem;
    font-weight: 850;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.team-rank-badge {
    align-items: center;
    background: #edf2f3;
    border-radius: .55rem;
    color: #66767d;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 850;
    height: 1.8rem;
    justify-content: center;
    width: 1.8rem;
}

.team-rank-badge.is-top-1 {
    background: #fff1c9;
    color: #966d10;
}

.team-rank-badge.is-top-2 {
    background: #eaf0f2;
    color: #536a73;
}

.team-rank-badge.is-top-3 {
    background: #f6e4d8;
    color: #9a6040;
}

.team-contribution-bar-area {
    align-items: center;
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(5rem, 1fr) auto;
}

.team-contribution-bar-area > div {
    background: #edf2f3;
    border-radius: 999px;
    height: .58rem;
    overflow: hidden;
}

.team-contribution-bar-area > div > span {
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .45s ease;
}

.team-contribution-bar-area small {
    color: #78888f;
    font-size: .67rem;
    white-space: nowrap;
}

.team-contribution-value {
    display: grid;
    justify-items: end;
}

.team-contribution-value strong {
    color: #263a43;
    font-size: .9rem;
}

.team-period-change,
.team-rank-movement {
    border-radius: 999px;
    display: inline-flex;
    font-size: .62rem;
    font-weight: 800;
    margin-top: .18rem;
    padding: .16rem .4rem;
    white-space: nowrap;
}

.team-period-change.is-positive,
.team-period-change.is-new,
.team-rank-movement.is-up {
    background: #e7f6ef;
    color: #14805f;
}

.team-period-change.is-negative,
.team-rank-movement.is-down {
    background: #fff0ed;
    color: #b65343;
}

.team-period-change.is-neutral,
.team-rank-movement.is-stable {
    background: #f1f4f5;
    color: #78878e;
}

.team-competition-side {
    display: grid;
    gap: .8rem;
}

.team-share-spotlight {
    align-items: center;
    background: linear-gradient(145deg, #173b3a, #194f4b);
    border: 0;
    color: #fff;
    display: flex;
    gap: 1rem;
    min-height: 9rem;
    padding: 1rem;
}

.team-share-chart-wrap {
    flex: 0 0 auto;
    height: 6.3rem;
    position: relative;
    width: 6.3rem;
}

.team-share-chart-center {
    display: grid;
    inset: 50% auto auto 50%;
    position: absolute;
    text-align: center;
    transform: translate(-50%, -50%);
}

.team-share-chart-center strong {
    font-size: 1.1rem;
}

.team-share-chart-center span {
    color: rgba(255, 255, 255, .62);
    font-size: .57rem;
}

.team-highlight-kicker {
    color: rgba(255, 255, 255, .58);
    display: block;
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .3rem;
}

.team-share-spotlight > div:last-child {
    display: grid;
    min-width: 0;
}

.team-share-spotlight > div:last-child > strong {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-share-spotlight > div:last-child > small {
    color: rgba(255, 255, 255, .68);
    font-size: .68rem;
    margin-top: .22rem;
}

.team-highlight-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: 1fr;
}

.team-highlight-card {
    align-items: flex-start;
    display: flex;
    gap: .55rem;
    min-height: 4.2rem;
    padding: .75rem;
}

.team-highlight-icon {
    align-items: center;
    background: #eef3fb;
    border-radius: .55rem;
    color: #6c63a8;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .75rem;
    font-weight: 900;
    height: 1.7rem;
    justify-content: center;
    width: 1.7rem;
}

.team-highlight-card-akys .team-highlight-icon {
    background: #e7f6ef;
    color: #16877d;
}

.team-highlight-card-paid .team-highlight-icon {
    background: #fff4df;
    color: #b17926;
}

.team-highlight-card > div {
    display: grid;
    min-width: 0;
}

.team-highlight-card small {
    color: #87949a;
    font-size: .59rem;
    line-height: 1.25;
}

.team-highlight-card strong {
    color: #2c3e46;
    font-size: .74rem;
    margin-top: .2rem;
    white-space: normal;
}

.team-highlight-card > div > span {
    color: #64747b;
    font-size: .62rem;
    margin-top: .15rem;
}

.team-detail-close {
    align-items: center;
    background: #eef5f4;
    border: 0;
    border-radius: .55rem;
    color: #16877d;
    display: inline-flex;
    font-weight: 850;
    height: 1.9rem;
    justify-content: center;
    width: 1.9rem;
}

.team-member-detail {
    box-shadow: 0 .8rem 2rem rgba(28, 56, 64, .06);
    margin-top: 1rem;
    padding: 1.1rem;
}

.team-member-detail-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.team-member-identity .team-user-avatar {
    font-size: .85rem;
    height: 2.8rem;
    width: 2.8rem;
}

.team-member-identity h3 {
    color: #24363f;
    font-size: 1.05rem;
    margin: 0;
}

.team-member-identity small {
    color: #819097;
    font-size: .68rem;
}

.team-member-raw-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 1rem;
}

.team-member-raw-stat {
    background: #f7f9fa;
    border: 1px solid #e5ecee;
    border-radius: .8rem;
    display: grid;
    min-width: 0;
    padding: .8rem;
    position: relative;
}

.team-member-raw-dot {
    border-radius: 50%;
    height: .45rem;
    position: absolute;
    right: .7rem;
    top: .7rem;
    width: .45rem;
}

.team-member-raw-stat small {
    color: #7d8b92;
    font-size: .63rem;
    font-weight: 750;
    padding-right: .65rem;
}

.team-member-raw-stat strong {
    color: #263a43;
    font-size: 1.25rem;
    margin: .25rem 0 .4rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-member-raw-stat > span:last-child {
    color: #95a0a5;
    font-size: .58rem;
}

.team-member-context {
    align-items: center;
    background: linear-gradient(135deg, #f0f7f6, #f5f4fa);
    border: 1px solid #dfe9e8;
    border-radius: .8rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: .8rem;
    padding: .8rem;
}

.team-member-context > div {
    border-right: 1px solid #dce6e5;
    display: grid;
    padding: 0 .55rem;
}

.team-member-context > div:last-child {
    border-right: 0;
}

.team-member-context span {
    color: #819097;
    font-size: .6rem;
}

.team-member-context strong {
    color: #30464e;
    font-size: .82rem;
    margin-top: .14rem;
}

.team-competition-empty {
    color: #7b898f;
    font-size: .8rem;
    padding: 2.5rem 1rem;
    text-align: center;
}

.team-section-divider {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin: 2rem 0 1rem;
}

.team-section-divider h2 {
    color: #263942;
    font-size: 1.25rem;
    font-weight: 760;
    margin: 0;
}

.team-section-divider p {
    color: #7b898f;
    font-size: .78rem;
    margin: 0;
    max-width: 26rem;
    text-align: right;
}

@media (max-width: 1199.98px) {
    .team-performance-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-performance-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-competition-overview {
        grid-template-columns: 1fr;
    }

    .team-competition-side {
        grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 991.98px) {
    .team-performance-chart-grid {
        grid-template-columns: 1fr;
    }

    .team-performance-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-competition-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-highlight-grid {
        grid-column: 1 / -1;
    }

    .team-member-raw-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .team-performance-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .team-performance-period-label {
        border-left: 0;
        border-top: 1px solid #d9e2e4;
        padding-left: 0;
        padding-top: .75rem;
        width: 100%;
    }

    .team-performance-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-performance-filter-form {
        grid-template-columns: 1fr;
    }

    .team-performance-filter-submit {
        width: 100%;
    }

    .team-chart-heading,
    .team-performance-table-heading {
        flex-direction: column;
    }

    .team-chart-heading > small,
    .team-performance-table-heading > small {
        max-width: none;
        text-align: left;
    }

    .team-competition-header,
    .team-section-divider {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-competition-period {
        min-width: 0;
        width: 100%;
    }

    .team-contribution-row {
        gap: .65rem;
        grid-template-columns: 1fr auto;
    }

    .team-contribution-bar-area {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .team-contribution-value {
        grid-column: 2;
        grid-row: 1;
    }

    .team-competition-side {
        grid-template-columns: 1fr;
    }

    .team-member-raw-grid,
    .team-member-context {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-member-context > div:nth-child(2) {
        border-right: 0;
    }

    .team-section-divider p {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 479.98px) {
    .team-performance-summary-grid {
        grid-template-columns: 1fr;
    }

    .team-competition-panel {
        padding: 1rem;
    }

    .team-highlight-card {
        min-height: 0;
    }

    .team-member-raw-grid,
    .team-member-context {
        grid-template-columns: 1fr;
    }

    .team-member-context > div {
        border-bottom: 1px solid #dce6e5;
        border-right: 0;
        padding: .35rem 0;
    }

    .team-member-context > div:last-child {
        border-bottom: 0;
    }
}

img {
    max-width: 100%;
}

a {
    color: #0f766e;
}

a:hover {
    color: #115e59;
}

.btn-primary {
    --bs-btn-bg: #16877d;
    --bs-btn-border-color: #16877d;
    --bs-btn-hover-bg: #0f756d;
    --bs-btn-hover-border-color: #0f756d;
    --bs-btn-active-bg: #0b655f;
    --bs-btn-active-border-color: #0b655f;
    --bs-btn-disabled-bg: #8ebdb8;
    --bs-btn-disabled-border-color: #8ebdb8;
}

.btn-outline-primary {
    --bs-btn-color: #16877d;
    --bs-btn-border-color: #16877d;
    --bs-btn-hover-bg: #eef8f7;
    --bs-btn-hover-border-color: #0f756d;
    --bs-btn-hover-color: #0f756d;
    --bs-btn-active-bg: #dff1ef;
    --bs-btn-active-border-color: #0f756d;
    --bs-btn-active-color: #0f756d;
}

.page-section {
    padding: 48px 0;
}

.navbar-brand,
.nav-link,
.referral-box a {
    overflow-wrap: anywhere;
}

.surface-panel,
.metric-box {
    background: #ffffff;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(24, 32, 38, 0.05);
}

.surface-panel {
    padding: 28px;
}

.auth-panel {
    padding: 38px 40px;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-eyebrow {
    color: #16877d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.auth-page-section {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 57px);
    padding: 42px 0;
}

.auth-login-column {
    max-width: 500px;
}

.register-column {
    max-width: 600px;
}

.register-column-wide {
    max-width: 860px;
}

.register-panel {
    border-color: #dde5ea;
    box-shadow: 0 20px 50px rgba(23, 33, 43, 0.09);
}

.register-nav-action {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 0.9rem;
    gap: 12px;
}

.register-nav-button {
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 38px;
    padding: 7px 14px;
}

.auth-login-panel {
    border-color: #dde5ea;
    box-shadow: 0 20px 50px rgba(23, 33, 43, 0.09);
}

.auth-title {
    color: #17212b;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
}

.auth-description {
    color: #667085;
    line-height: 1.6;
    margin: 0;
}

.auth-panel .form-label {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.auth-panel .form-control {
    background: #ffffff;
    border: 1px solid #dde5ea;
    border-radius: 11px;
    color: #17212b;
    min-height: 52px;
    padding: 12px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-panel .form-control::placeholder {
    color: #98a2b3;
}

.auth-panel .form-control:hover {
    border-color: #bdcbd2;
}

.auth-panel .form-control:focus {
    background: #ffffff;
    border-color: #16877d;
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.12);
    color: #17212b;
}

.auth-panel .form-control:-webkit-autofill,
.auth-panel .form-control:-webkit-autofill:hover,
.auth-panel .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: #17212b;
    caret-color: #17212b;
}

.auth-label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.auth-help-link {
    color: #16877d;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-help-link:hover {
    color: #0f756d;
    text-decoration: underline;
}

.password-field {
    position: relative;
}

.auth-password-input {
    padding-right: 52px !important;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #667085;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
}

.password-toggle:hover {
    background: #eef8f7;
    color: #16877d;
}

.password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(22, 135, 125, 0.18);
    outline: 0;
}

.password-toggle svg {
    height: 18px;
    stroke-width: 1.8;
    width: 18px;
}

.auth-primary-button,
.auth-secondary-button {
    align-items: center;
    border-radius: 11px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
}

.auth-primary-button {
    box-shadow: 0 8px 18px rgba(22, 135, 125, 0.2);
}

.auth-primary-button:hover {
    box-shadow: 0 10px 22px rgba(15, 117, 109, 0.24);
}

.auth-primary-button:disabled {
    box-shadow: none;
    cursor: not-allowed;
}

.auth-primary-button:focus-visible,
.auth-secondary-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.16);
    outline: 0;
}

.auth-footer {
    border-top: 1px solid #e3e9eb;
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
}

.auth-divider {
    align-items: center;
    color: #7a8b93;
    display: flex;
    font-size: 0.85rem;
    gap: 12px;
    margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
    background: #dce4e7;
    content: "";
    flex: 1;
    height: 1px;
}

.password-help ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.application-steps {
    background: #f7faf9;
    border: 1px solid #dce9e7;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 26px;
    padding: 14px;
}

.application-step {
    align-items: center;
    color: #53636c;
    display: flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 8px;
    min-width: 0;
}

.application-step-number {
    align-items: center;
    background: #dff1ef;
    border-radius: 50%;
    color: #0f756d;
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 0.75rem;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.password-rules {
    background: #f8fafb;
    border: 1px solid #e3e9ec;
    border-radius: 11px;
    margin: 4px 0 18px;
    padding: 14px 16px;
}

.password-rules-title {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 9px;
}

.password-rules ul {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-rules li {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 0.8rem;
    gap: 8px;
}

.password-rules svg {
    color: #16877d;
    flex: 0 0 15px;
    height: 15px;
    stroke-width: 2.2;
    width: 15px;
}

.password-match-message {
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 20px;
    padding-top: 5px;
}

.password-match-message.is-valid {
    color: #16877d;
}

.password-match-message.is-invalid {
    color: #b42318;
}

.register-auth-footer {
    color: #667085;
    margin-top: 20px;
}

.register-auth-footer a {
    font-weight: 600;
}

.register-form-section {
    border-top: 1px solid #e7ecef;
    padding: 28px 0;
}

.register-section-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.register-section-heading > span {
    align-items: center;
    background: #dff1ef;
    border-radius: 50%;
    color: #0f756d;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 0.82rem;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.register-section-heading h2 {
    color: #17212b;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1px 0 4px;
}

.register-section-heading p {
    color: #667085;
    font-size: 0.86rem;
    margin: 0;
}

.register-form-grid {
    display: grid;
    gap: 18px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-grid-full {
    grid-column: 1 / -1;
}

.register-form-grid textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.registration-model-fieldset {
    margin: 0;
    min-width: 0;
}

.registration-model-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.registration-model-card {
    --model-accent: #16877d;
    --model-soft: #e8f5f3;
    --model-selected-bg: #f2faf8;
    background: #ffffff;
    border: 1px solid #d8e1e6;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.06);
    color: #17212b;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 292px;
    padding: 22px 20px 20px;
    position: relative;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.registration-model-card::before {
    background: var(--model-accent);
    border-radius: 8px 8px 0 0;
    content: "";
    height: 4px;
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

.registration-model-card:hover {
    border-color: var(--model-accent);
    box-shadow: 0 16px 34px rgba(23, 33, 43, 0.1);
    transform: translateY(-2px);
}

.registration-model-card.is-selected {
    background: var(--model-selected-bg);
    border-color: var(--model-accent);
    box-shadow:
        0 0 0 3px var(--model-accent),
        0 18px 40px rgba(23, 33, 43, 0.16);
    transform: translateY(-3px);
}

.registration-model-card.is-selected::before {
    height: 7px;
}

.registration-model-card-two {
    --model-accent: #2f76a8;
    --model-soft: #eaf3fa;
    --model-selected-bg: #f2f8fc;
}

.registration-model-card-three {
    --model-accent: #a96d18;
    --model-soft: #fbf1e4;
    --model-selected-bg: #fff9f1;
}

.registration-model-radio {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.registration-model-card:has(.registration-model-radio:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--model-accent) 24%, transparent);
    outline-offset: 4px;
}

.registration-model-card-topline {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.registration-model-number {
    color: var(--model-accent);
    font-size: 0.79rem;
    font-weight: 800;
    text-transform: uppercase;
}

.registration-model-type {
    background: var(--model-soft);
    border-radius: 999px;
    color: var(--model-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 10px;
}

.registration-model-title {
    color: #17212b;
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 13px;
}

.registration-model-description {
    color: #667085;
    font-size: 0.84rem;
    line-height: 1.6;
}

.registration-model-flow {
    align-items: center;
    background: #f8fafb;
    border: 1px solid #e5eaed;
    border-radius: 6px;
    color: #475467;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.71rem;
    gap: 5px;
    margin-top: auto;
    min-height: 48px;
    padding: 10px 11px;
}

.registration-model-flow strong:last-of-type {
    color: var(--model-accent);
}

.registration-model-flow svg {
    color: var(--model-accent);
    height: 13px;
    width: 13px;
}

.registration-model-select-action {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--model-accent);
    border-radius: 6px;
    color: var(--model-accent);
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 8px;
    height: 40px;
    justify-content: center;
    margin-top: 12px;
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        color 140ms ease;
    width: 100%;
}

.registration-model-select-dot {
    border: 2px solid currentColor;
    border-radius: 50%;
    height: 16px;
    position: relative;
    width: 16px;
}

.registration-model-card.is-selected .registration-model-select-action {
    background: var(--model-accent);
    color: #ffffff;
}

.registration-model-card.is-selected .registration-model-select-dot::after {
    background: #ffffff;
    border-radius: 50%;
    content: "";
    inset: 3px;
    position: absolute;
}

.registration-model-select-selected {
    display: none;
}

.registration-model-card.is-selected .registration-model-select-default {
    display: none;
}

.registration-model-card.is-selected .registration-model-select-selected {
    display: inline;
}

.registration-model-fieldset > .errorlist {
    margin-top: 12px;
}

.register-dependent-panel {
    border-left: 3px solid #16877d;
    margin-top: 24px;
    padding: 4px 0 2px 20px;
}

.register-dependent-heading {
    margin-bottom: 16px;
}

.register-dependent-heading h3 {
    color: #17212b;
    font-size: 0.96rem;
    font-weight: 750;
    margin: 0 0 4px;
}

.register-dependent-heading p {
    color: #667085;
    font-size: 0.84rem;
    margin: 0;
}

.registration-model-summary {
    align-items: center;
    background: #f2f8f7;
    border: 1px solid #cfe3e0;
    border-radius: 8px;
    color: #475467;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px 16px;
}

.registration-model-summary span {
    font-size: 0.84rem;
}

.registration-model-summary strong {
    color: #0f756d;
    font-size: 0.88rem;
}

.treatment-fieldset > div {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.treatment-fieldset > div > div:first-child {
    grid-column: 1 / -1;
}

.treatment-fieldset label {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde5ea;
    border-radius: 10px;
    color: #475467;
    cursor: pointer;
    display: flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.treatment-fieldset label:hover {
    border-color: #8dbcb7;
}

.treatment-fieldset label:has(input:checked) {
    background: #eef8f7;
    border-color: #16877d;
    color: #0f756d;
}

.treatment-fieldset input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    border: 2px solid #98a2b3;
    border-radius: 5px;
    display: grid;
    flex: 0 0 18px;
    height: 18px;
    margin: 0;
    place-content: center;
    width: 18px;
}

.treatment-fieldset input[type="checkbox"]::before {
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    content: "";
    height: 5px;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 120ms ease-in-out;
    width: 9px;
}

.treatment-fieldset input[type="checkbox"]:checked {
    background: #16877d;
    border-color: #16877d;
}

.treatment-fieldset input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.treatment-fieldset input:focus-visible {
    box-shadow: 0 0 0 3px rgba(22, 135, 125, 0.16);
    outline: 0;
}

.treatment-fieldset input:disabled {
    opacity: 0.75;
}

.contract-preview-summary {
    background: #f5f9f8;
    border: 1px solid #d8e8e5;
    border-radius: 11px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 14px;
    padding: 14px 16px;
}

.contract-preview-summary div {
    display: grid;
    gap: 3px;
}

.contract-preview-summary span {
    color: #667085;
    font-size: 0.76rem;
}

.contract-preview-summary strong {
    color: #344054;
    font-size: 0.86rem;
}

.contract-scroll {
    background: #ffffff;
    border: 1px solid #dde5ea;
    border-radius: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding: 20px 22px;
    scroll-behavior: smooth;
}

.contract-scroll:focus-visible {
    border-color: #16877d;
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.12);
    outline: 0;
}

.partner-contract-document {
    color: #344054;
    font-size: 0.86rem;
    line-height: 1.65;
}

.partner-contract-document h2 {
    color: #17212b;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 22px;
    text-align: center;
}

.partner-contract-document h3 {
    color: #17212b;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 24px 0 9px;
}

.partner-contract-document h3 span {
    color: #16877d;
    margin-right: 3px;
}

.partner-contract-document p {
    margin: 0 0 9px;
}

.partner-contract-document ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.partner-contract-document [data-contract-target] {
    background: #eef8f7;
    border-radius: 3px;
    color: #0f756d;
    font-weight: 700;
    padding: 0 2px;
}

.contract-acceptance {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.contract-check {
    align-items: flex-start;
    background: #f8fafb;
    border: 1px solid #e3e9ec;
    border-radius: 11px;
    display: grid;
    gap: 0 10px;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 14px;
}

.contract-check .form-check-input {
    border-color: #b9c6cc;
    height: 18px;
    margin: 2px 0 0;
    width: 18px;
}

.contract-check .form-check-input:checked {
    background-color: #16877d;
    border-color: #16877d;
}

.contract-check .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.12);
}

.contract-check label {
    color: #475467;
    cursor: pointer;
    font-size: 0.86rem;
    line-height: 1.5;
}

.contract-check .errorlist {
    grid-column: 2;
}

.contract-check.has-error {
    border-color: #d92d20;
}

.contract-dashboard-panel {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.contract-dashboard-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.contract-status-panel {
    display: grid;
    gap: 22px;
}

.contract-date-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contract-date-grid > div {
    background: #f8fafb;
    border: 1px solid #e3e9ec;
    border-radius: 10px;
    display: grid;
    gap: 5px;
    padding: 14px;
}

.contract-date-grid span {
    color: #667085;
    font-size: 0.78rem;
}

.contract-date-grid strong {
    color: #344054;
    font-size: 0.9rem;
}

.contract-renewal-action {
    align-items: center;
    border-top: 1px solid #e7ecef;
    display: flex;
    gap: 14px;
    padding-top: 20px;
}

.metric-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 142px;
    padding: 22px;
    width: 100%;
}

.metric-label {
    color: #667781;
    font-size: 0.9rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 8px;
}

.metric-detail {
    font-size: 0.875rem;
    line-height: 1.35;
    margin-top: auto;
}

.period-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-identity-header {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) minmax(130px, 1fr);
}

.dashboard-partner-avatar {
    align-items: center;
    background: #dff1ef;
    border: 1px solid #c7e5e2;
    border-radius: 8px;
    color: #0f756d;
    display: flex;
    font-size: 1.15rem;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    justify-self: start;
    overflow: hidden;
    width: 48px;
}

.dashboard-partner-avatar:hover {
    border-color: #16877d;
    color: #0f756d;
}

.dashboard-partner-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.dashboard-partner-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

.dashboard-customer-add {
    justify-self: end;
}

.dashboard-reporting-heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.dashboard-reporting-controls {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-date-range {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
}

.dashboard-date-field {
    display: grid;
    gap: 5px;
}

.dashboard-date-field label {
    color: #667781;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-date-field .form-control {
    min-height: 34px;
}

.dashboard-date-submit {
    min-height: 34px;
}

.dashboard-chart-heading {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.dashboard-chart-total {
    border-left: 1px solid #dfe7e8;
    display: grid;
    min-width: 120px;
    padding-left: 18px;
    text-align: right;
}

.dashboard-chart-total span {
    color: #748189;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-chart-total strong {
    color: #1f353d;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 3px;
}

.dashboard-lead-detail-link {
    align-items: center;
    color: #53646c;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 800;
    gap: 6px;
    padding: 8px 0 8px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-lead-detail-link:hover {
    color: #14746b;
}

.dashboard-lead-detail-link svg {
    flex: 0 0 auto;
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 17px;
}

.table.dashboard-recent-leads-table {
    min-width: 100%;
    table-layout: fixed;
}

.dashboard-recent-leads-table th:nth-child(1) {
    width: 23%;
}

.dashboard-recent-leads-table th:nth-child(2) {
    width: 23%;
}

.dashboard-recent-leads-table th:nth-child(3),
.dashboard-recent-leads-table th:nth-child(4) {
    width: 17%;
}

.dashboard-recent-leads-table th:nth-child(5) {
    width: 20%;
}

.dashboard-recent-leads-table td {
    overflow-wrap: anywhere;
}

.dashboard-recent-leads-table td:last-child {
    overflow-wrap: normal;
    white-space: nowrap;
}

.dashboard-recent-leads-table .badge {
    line-height: 1.25;
    white-space: normal;
}

.chart-wrap {
    height: 320px;
    min-height: 260px;
    position: relative;
}

.conversion-pill {
    align-self: flex-start;
    background: #e8f5ec;
    border: 1px solid #b9dfc5;
    border-radius: 999px;
    color: #166534;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 10px;
    white-space: nowrap;
}

.lead-filter-panel {
    padding: 18px 20px;
}

.lead-workspace-tabs {
    flex-wrap: wrap;
    max-width: 100%;
}

.all-notes-filter-grid,
.all-appointments-filter-grid {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(155px, 1fr)) auto;
}

.all-notes-search-control {
    position: relative;
}

.all-notes-search-control > svg {
    color: #728087;
    height: 18px;
    left: 14px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    z-index: 2;
}

.all-notes-search-control .form-control {
    padding-left: 42px;
}

.all-notes-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.all-notes-filter-errors {
    background: #fff6f5;
    border: 1px solid #f0c9c5;
    border-radius: 9px;
    color: #b42318;
    font-size: 0.84rem;
    margin-top: 14px;
    padding: 10px 12px;
}

.all-notes-filter-errors p {
    margin: 0;
}

.all-notes-filter-errors p + p {
    margin-top: 4px;
}

.all-notes-list,
.all-leads-list {
    display: grid;
    gap: 14px;
}

.all-note-card {
    background: #ffffff;
    border: 1px solid #dce5e7;
    border-radius: 14px;
    box-shadow: 0 7px 24px rgba(26, 48, 56, 0.045);
    overflow: hidden;
}

.all-note-card-header {
    align-items: flex-start;
    border-bottom: 1px solid #edf1f2;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px 20px 16px;
}

.all-note-lead {
    min-width: 0;
}

.all-note-lead-name-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.all-note-lead h2 {
    color: #1f2d35;
    font-size: 0.96rem;
    font-weight: 850;
    margin: 0;
    overflow-wrap: anywhere;
}

.all-note-lead-id {
    align-items: center;
    color: #748189;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
}

.all-note-lead-meta {
    align-items: center;
    color: #748189;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    gap: 8px;
    margin-top: 5px;
}

.all-note-card-side {
    align-items: flex-end;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 2px;
}

.all-lead-card-header {
    min-height: 112px;
}

.all-lead-card .all-note-lead h2 {
    font-size: 1.05rem;
}

.all-lead-phone {
    align-items: center;
    color: #4d5f67;
    display: flex;
    font-size: 0.82rem;
    font-weight: 750;
    gap: 6px;
    margin-top: 7px;
}

.all-note-detail-link {
    align-items: center;
    border-radius: 8px;
    color: #53646c;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 5px;
    padding: 7px 9px;
    text-decoration: none;
}

.all-note-detail-link:hover {
    background: #eef7f6;
    color: #14746b;
}

.all-note-detail-link svg {
    height: 15px;
    width: 15px;
}

.all-note-content {
    color: #2e3d45;
    font-size: 0.94rem;
    line-height: 1.7;
    min-height: 72px;
    padding: 20px;
}

.all-note-content p {
    margin: 0;
    overflow-wrap: anywhere;
}

.all-note-card-footer {
    align-items: center;
    background: #fbfcfc;
    border-top: 1px solid #edf1f2;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-height: 54px;
    padding: 10px 20px;
}

.all-note-card-footer.all-lead-card-footer {
    border-top: 0;
    flex-wrap: wrap;
    padding: 12px 20px;
}

.note-card-system-meta {
    align-items: center;
    display: grid;
    grid-template-columns: 220px max-content;
    min-width: 0;
}

.note-card-system-item {
    align-items: center;
    color: #6d7b82;
    display: inline-flex;
    flex-wrap: nowrap;
    font-size: 0.75rem;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.note-card-system-item--author {
    padding-right: 18px;
    width: 220px;
}

.note-card-system-item--author strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-card-system-item--created {
    border-left: 1px solid #dfe7e8;
    padding-left: 18px;
    white-space: nowrap;
}

.note-card-system-item svg {
    color: #268077;
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 15px;
}

.note-card-system-item strong {
    color: #35454d;
    font-weight: 800;
}

.all-note-attachment-button {
    margin: 0;
}

.all-appointments-list {
    display: grid;
    gap: 14px;
}

.all-appointment-card {
    background: #ffffff;
    border: 1px solid #dce5e7;
    border-radius: 14px;
    box-shadow: 0 7px 24px rgba(26, 48, 56, 0.045);
    overflow: hidden;
}

.all-appointment-card-header {
    align-items: flex-start;
    border-bottom: 1px solid #edf1f2;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px 20px 16px;
}

.all-appointment-card-header h2 {
    color: #1f2d35;
    font-size: 0.96rem;
    font-weight: 850;
    margin: 0;
    overflow-wrap: anywhere;
}

.all-appointment-lead-meta {
    align-items: center;
    color: #748189;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 7px 14px;
    margin-top: 5px;
}

.all-appointment-card-side {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.all-appointment-card-side .badge {
    font-size: 0.7rem;
    padding: 6px 9px;
}

.all-appointment-card-body {
    display: grid;
    gap: 18px 24px;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.6fr);
    padding: 20px;
}

.all-appointment-primary-info {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.all-appointment-info-icon {
    align-items: center;
    background: #eaf5f3;
    border-radius: 10px;
    color: #14746b;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.all-appointment-info-icon svg {
    height: 20px;
    width: 20px;
}

.all-appointment-primary-info > div,
.all-appointment-secondary-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.all-appointment-primary-info span:not(.all-appointment-info-icon):not(.appointment-time-separator),
.all-appointment-secondary-info > span,
.all-appointment-description > span {
    color: #7a8992;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.all-appointment-primary-info strong,
.all-appointment-secondary-info strong {
    color: #26343d;
    font-size: 0.88rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.all-appointment-primary-info strong {
    color: #0f6f68;
}

.all-appointment-description {
    background: #f7f9fa;
    border-radius: 9px;
    grid-column: 1 / -1;
    padding: 12px 14px;
}

.all-appointment-description--system {
    background: #f2f7f6;
}

.all-appointment-description p {
    color: #34434c;
    font-size: 0.86rem;
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.all-appointment-card-footer {
    align-items: center;
    background: #fbfcfc;
    border-top: 1px solid #edf1f2;
    display: flex;
    min-height: 54px;
    padding: 10px 20px;
}

.all-notes-empty,
.all-appointments-placeholder {
    align-items: center;
    color: #67777f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: 42px 24px;
    text-align: center;
}

.all-notes-empty {
    background: #ffffff;
    border: 1px dashed #cfdbdd;
    border-radius: 14px;
}

.all-notes-empty > span,
.all-appointments-placeholder-icon {
    align-items: center;
    background: #eaf5f3;
    border-radius: 14px;
    color: #14746b;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    margin-bottom: 14px;
    width: 52px;
}

.all-notes-empty svg,
.all-appointments-placeholder-icon svg {
    height: 24px;
    width: 24px;
}

.all-notes-empty h2,
.all-appointments-placeholder h2 {
    color: #25343c;
    font-size: 1rem;
    font-weight: 850;
    margin: 0 0 6px;
}

.all-notes-empty p,
.all-appointments-placeholder p {
    font-size: 0.86rem;
    margin: 0;
}

.all-notes-pagination {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.all-notes-pagination .btn {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}

.all-notes-pagination .btn svg {
    height: 15px;
    width: 15px;
}

.all-notes-pagination > span {
    color: #66767e;
    font-size: 0.78rem;
    font-weight: 800;
}

.payment-tabs {
    background: #ffffff;
    border: 1px solid #dbe3e6;
    border-radius: 10px;
    display: inline-flex;
    gap: 6px;
    padding: 5px;
}

.payment-tab {
    align-items: center;
    border-radius: 8px;
    color: #53636c;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    text-decoration: none;
}

.payment-tab:hover {
    background: #eef8f7;
    color: #0f756d;
}

.payment-tab.is-active {
    background: #16877d;
    color: #ffffff;
}

.payment-tab span {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    justify-content: center;
    min-width: 24px;
    padding: 2px 7px;
}

.payment-tab:not(.is-active) span {
    background: #e8f3f1;
    color: #0f756d;
}

.payment-panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.payment-panel-heading h2 {
    color: #17212b;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.payment-panel-heading p {
    color: #667085;
    font-size: 0.9rem;
    margin: 0;
}

.payment-table th {
    color: #53636c;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.payment-row-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.all-lead-card-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
}

.all-lead-card-actions .btn {
    align-items: center;
    display: inline-flex;
    flex: 0 0 124px;
    gap: 7px;
    justify-content: center;
    min-height: 36px;
    white-space: nowrap;
    width: 124px;
}

.all-lead-card-actions .btn svg {
    height: 17px;
    stroke-width: 2;
    width: 17px;
}

.finance-page-heading {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.finance-contract-model {
    border-left: 2px solid #b9d8d3;
    min-width: 240px;
    padding-left: 14px;
    text-align: right;
}

.finance-contract-model span {
    color: #667085;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 2px;
}

.finance-contract-model strong {
    color: #17212b;
    display: block;
    font-size: 0.95rem;
}

.finance-filter-panel {
    padding: 20px;
}

.finance-filter-grid {
    align-items: end;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 2fr) minmax(170px, 1fr) minmax(155px, 0.8fr) minmax(155px, 0.8fr) auto;
}

.finance-filter-action .btn {
    min-width: 120px;
}

.finance-summary-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-model-summary-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.finance-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 0 12px;
}

.finance-panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.finance-currency-totals {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.finance-currency-totals span {
    background: #eef8f7;
    border: 1px solid #c9e3df;
    border-radius: 8px;
    color: #0f665f;
    font-size: 0.82rem;
    padding: 7px 10px;
    white-space: nowrap;
}

.finance-chart-wrap {
    height: 340px;
    min-height: 280px;
    position: relative;
}

.finance-tabs {
    background: #ffffff;
    border: 1px solid #dbe3e6;
    border-radius: 8px;
    display: inline-flex;
    gap: 6px;
    padding: 5px;
}

.finance-tab {
    align-items: center;
    border-radius: 6px;
    color: #53636c;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    text-decoration: none;
}

.finance-tab:hover {
    background: #eef8f7;
    color: #0f756d;
}

.finance-tab.is-active {
    background: #16877d;
    color: #ffffff;
}

.finance-tab span {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    justify-content: center;
    min-width: 24px;
    padding: 2px 7px;
}

.finance-tab:not(.is-active) span {
    background: #e8f3f1;
    color: #0f756d;
}

.finance-table-panel {
    padding-bottom: 18px;
}

.finance-tab-panels {
    display: grid;
}

.finance-tab-panel {
    grid-area: 1 / 1;
    min-width: 0;
    pointer-events: none;
    visibility: hidden;
}

.finance-tab-panel.is-active {
    pointer-events: auto;
    visibility: visible;
}

.finance-table {
    min-width: 980px;
}

.finance-table th {
    color: #53636c;
    font-size: 0.76rem;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.finance-table td {
    font-size: 0.88rem;
    vertical-align: middle;
}

.finance-number {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.finance-cell-note {
    color: #667781;
    display: block;
    font-size: 0.76rem;
    margin-top: 3px;
}

.finance-detail-row > td {
    background: #f8fafb;
    border-top: 0;
    padding: 0;
}

.finance-detail-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 16px;
}

.finance-detail-grid > div {
    border-bottom: 1px solid #e5eaed;
    min-width: 0;
    padding: 10px 12px;
}

.finance-detail-grid dt {
    color: #667781;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.finance-detail-grid dd {
    font-size: 0.84rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.finance-detail-wide {
    grid-column: span 2;
}

.payment-mini-status {
    background: #eef8f7;
    border: 1px solid #d4e9e6;
    border-radius: 999px;
    color: #0f756d;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 9px;
}

.payment-link-container {
    max-width: 1180px;
}

.lead-detail-heading {
    margin-bottom: 22px;
}

.lead-detail-title {
    color: #17212b;
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0;
    overflow-wrap: anywhere;
}

.lead-detail-meta {
    display: grid;
    gap: 6px;
    margin-top: 11px;
}

.lead-detail-creator,
.lead-detail-id {
    align-items: center;
    color: #66727a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 6px;
    min-height: 28px;
}

.lead-detail-creator > span,
.lead-detail-id > span {
    font-weight: 700;
}

.lead-detail-creator > strong,
.lead-detail-id strong {
    color: #3e4b53;
    font-weight: 750;
}

.lead-creator-edit-button {
    align-items: center;
    background: #fff;
    border: 1px solid #b9d8d4;
    border-radius: 8px;
    color: #16877d;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    flex: 0 0 28px;
    margin-left: 2px;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    width: 28px;
}

.lead-creator-edit-button:hover {
    background: #e5f4f2;
    border-color: #16877d;
}

.lead-creator-edit-button svg {
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 15px;
}

.lead-creator-modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(20, 45, 49, 0.2);
    overflow: hidden;
}

.lead-creator-modal-content .modal-header,
.lead-creator-modal-content .modal-footer {
    border-color: #e3eceb;
    padding: 20px 24px;
}

.lead-creator-modal-content .modal-body {
    padding: 24px;
}

.lead-creator-current {
    background: #f4f7f7;
    border-radius: 10px;
    display: grid;
    gap: 3px;
    margin-bottom: 20px;
    padding: 13px 15px;
}

.lead-creator-current span {
    color: #748087;
    font-size: 0.76rem;
    font-weight: 700;
}

.lead-creator-current strong {
    color: #203039;
    font-size: 0.95rem;
}

.lead-detail-tabs {
    border-bottom: 1px solid #dbe3e6;
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
}

.lead-detail-tab {
    border-bottom: 3px solid transparent;
    color: #53636c;
    font-weight: 800;
    padding: 11px 2px 12px;
    text-decoration: none;
}

.lead-detail-tab:hover {
    color: #0f756d;
}

.lead-detail-tab.is-active {
    border-bottom-color: #16877d;
    color: #0f756d;
}

.lead-payment-heading {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.surface-panel.lead-notes-panel {
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

.app-close-button {
    align-items: center;
    appearance: none;
    background: #e9f5f3;
    border: 1px solid #cbe3df;
    border-radius: 9px;
    color: #126e66;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    width: 36px;
}

.app-close-button:hover {
    background: #dff0ed;
    border-color: #94c9c2;
    color: #0f625b;
}

.app-close-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(22, 135, 125, 0.18);
    outline: 0;
}

.app-close-button svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 18px;
}

.modal-header > .app-close-button {
    margin-left: auto;
}

.lead-note-create-button svg,
.lead-note-upload svg,
.lead-note-action-button svg,
.lead-note-file-action svg,
.lead-detail-empty-icon svg {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.lead-note-form-header h3,
.lead-note-history-heading h3 {
    color: #17252d;
    margin: 0;
}

.lead-note-create-button {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
}

.lead-note-create-button svg {
    height: 18px;
    width: 18px;
}

.lead-note-composer {
    background: #f3f7f7;
    border-bottom: 1px solid #e1e9e9;
    padding: 24px;
}

.lead-note-form {
    background: #ffffff;
    border: 1px solid #d9e4e4;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(24, 46, 50, 0.06);
    overflow: hidden;
}

.lead-note-form-header {
    align-items: center;
    border-bottom: 1px solid #e5ecec;
    display: flex;
    justify-content: space-between;
    padding: 17px 20px;
}

.lead-note-form-header h3,
.lead-note-history-heading h3 {
    font-size: 1rem;
    font-weight: 850;
}

.lead-note-form-close {
    flex: 0 0 36px;
}

.lead-note-form-body {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
}

.lead-note-form .form-label {
    color: #34434b;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.required-mark {
    color: #d92d20;
}

.lead-note-form textarea {
    background: #fbfcfc;
    border-color: #cfdadb;
    border-radius: 10px;
    min-height: 120px;
    padding: 13px 14px;
    resize: vertical;
}

.lead-note-form textarea:focus {
    background: #ffffff;
    border-color: #16877d;
    box-shadow: 0 0 0 3px rgba(22, 135, 125, 0.12);
}

.lead-note-attachment-field {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: flex-end;
    min-width: 0;
}

.lead-note-upload {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd9d8;
    border-radius: 8px;
    color: #126e66;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.lead-note-upload:hover {
    background: #f0f8f6;
    border-color: #16877d;
}

.lead-note-upload.is-selected {
    background: #edf8f6;
    border-color: #4ca89f;
}

.lead-note-upload svg {
    height: 16px;
    width: 16px;
}

.lead-note-attachment-field > small {
    color: #66757d;
    font-size: 0.7rem;
    line-height: 1.35;
    max-width: min(100%, 360px);
    overflow-wrap: anywhere;
    text-align: right;
}

.lead-note-form-error {
    border-radius: 9px;
    margin: 0 20px 18px;
}

.lead-note-form-actions {
    align-items: center;
    background: #fafcfc;
    border-top: 1px solid #e5ecec;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px 20px;
}

.lead-note-form-actions .btn {
    border-radius: 9px;
    font-weight: 750;
    min-width: 110px;
}

.lead-notes-error-shell {
    padding: 24px;
}

.lead-notes-error-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.lead-notes-error {
    margin: 0;
}

.lead-note-history {
    padding: 24px;
}

.lead-note-history-heading {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.lead-note-history-actions {
    align-items: center;
    display: flex;
}

.lead-note-list {
    display: grid;
    gap: 12px;
}

.lead-note-item {
    background: #ffffff;
    border: 1px solid #e0e7e9;
    border-radius: 13px;
    box-shadow: 0 4px 14px rgba(22, 40, 47, 0.035);
    overflow: hidden;
}

.lead-note-card-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 12px 16px 0;
}

.lead-note-content {
    color: #34434b;
    font-size: 0.91rem;
    line-height: 1.65;
    min-height: 72px;
    padding: 20px;
}

.lead-note-card-header + .lead-note-content {
    padding-top: 8px;
}

.lead-note-content p {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.lead-note-item-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.lead-note-item-actions form {
    margin: 0;
}

.lead-note-action-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #66757d;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 750;
    gap: 5px;
    min-height: 34px;
    padding: 6px 8px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lead-note-action-button:hover {
    background: #eef4f4;
    border-color: #dbe5e5;
    color: #1e665f;
}

.lead-note-action-button.is-danger:hover {
    background: #fff1f0;
    border-color: #f2c7c3;
    color: #b42318;
}

.lead-note-action-button svg {
    height: 15px;
    width: 15px;
}

.lead-note-attachment-button {
    align-items: center;
    background: #f5faf9;
    border: 1px solid #d5e5e2;
    border-radius: 8px;
    color: #34434b;
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 9px;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    width: fit-content;
}

.lead-note-card-footer {
    align-items: center;
    background: #fbfcfc;
    border-top: 1px solid #edf1f2;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-height: 54px;
    padding: 10px 20px;
}

.lead-note-attachment-button:hover {
    background: #eaf6f4;
    border-color: #a9d1cc;
    box-shadow: 0 3px 9px rgba(22, 91, 84, 0.06);
}

.lead-note-file-action {
    align-items: center;
    color: #14746b;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 850;
    gap: 5px;
}

.lead-note-file-action svg {
    height: 16px;
    width: 16px;
}

.lead-detail-empty {
    align-items: center;
    background: #fafcfc;
    border: 1px dashed #d7e2e2;
    border-radius: 12px;
    color: #66757d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    padding: 28px;
    text-align: center;
}

.lead-detail-empty-icon {
    align-items: center;
    background: #edf4f3;
    border-radius: 12px;
    color: #397b74;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    margin-bottom: 11px;
    width: 46px;
}

.lead-detail-empty-icon svg {
    height: 23px;
    width: 23px;
}

.lead-detail-empty strong {
    color: #34434b;
    font-size: 0.9rem;
}

.lead-detail-empty > span:last-child {
    font-size: 0.78rem;
    margin-top: 4px;
}

.note-edit-modal .modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(16, 41, 48, 0.24);
    overflow: hidden;
}

.note-edit-modal .modal-header,
.note-edit-modal .modal-footer {
    border-color: #e1e9e8;
    padding: 18px 22px;
}

.note-edit-modal .modal-body {
    padding: 22px;
}

.note-edit-modal textarea {
    min-height: 150px;
    resize: vertical;
}

.note-attachment-preview-modal .modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(16, 41, 48, 0.24);
    overflow: hidden;
}

.note-attachment-preview-modal .modal-header {
    align-items: center;
    border-bottom-color: #e1e9e8;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 22px;
    width: 100%;
}

.note-attachment-preview-heading {
    min-width: 0;
}

.note-attachment-preview-heading .modal-title {
    font-size: 1rem !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.note-attachment-preview-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
}

.note-attachment-header-action {
    align-items: center;
    background: #e9f5f3;
    border: 1px solid #cbe3df;
    border-radius: 9px;
    color: #126e66;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    transition: background-color 160ms ease, border-color 160ms ease;
    width: 36px;
}

.note-attachment-header-action:hover {
    background: #dff0ed;
    border-color: #94c9c2;
    color: #0f625b;
}

.note-attachment-header-action svg {
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 18px;
}

.note-attachment-header-download {
    text-decoration: none;
}

.note-attachment-header-close {
    cursor: pointer;
    padding: 0;
}

.note-attachment-preview-eyebrow {
    color: #16877d;
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.note-attachment-preview-modal .modal-body {
    background: #eef3f3;
    min-height: min(72vh, 760px);
    padding: 16px;
}

.note-attachment-preview-frame,
.note-attachment-preview-image {
    background: #fff;
    border: 0;
    border-radius: 10px;
    height: min(68vh, 720px);
    width: 100%;
}

.note-attachment-preview-image {
    display: block;
    object-fit: contain;
}

.note-attachment-preview-frame[hidden],
.note-attachment-preview-image[hidden] {
    display: none;
}

.note-attachment-download-state {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e5e3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(62vh, 620px);
    padding: 32px;
    text-align: center;
}

.note-attachment-download-state[hidden] {
    display: none;
}

.note-attachment-download-state strong {
    color: #26343d;
    font-size: 1.05rem;
}

.note-attachment-download-state p {
    color: #667085;
    margin: 8px 0 18px;
}

.lead-activities-panel {
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

.appointment-panel-heading {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 28px 30px;
}

.appointment-panel-title {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.appointment-panel-icon,
.appointment-empty-icon {
    align-items: center;
    background: #eaf7f5;
    border: 1px solid #cce9e5;
    border-radius: 12px;
    color: #0f766e;
    display: inline-flex;
    flex: 0 0 auto;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.appointment-panel-icon svg,
.appointment-empty-icon svg {
    height: 23px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    width: 23px;
}

.appointment-panel-heading h2 {
    color: #17212b;
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0 0 5px;
}

.appointment-panel-heading p {
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

.appointment-new-button,
.appointment-submit-button {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    white-space: nowrap;
}

.appointment-new-button svg {
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
    width: 18px;
}

.appointment-form-shell {
    background: #f6f9fa;
    border-bottom: 1px solid #dfe7e9;
    border-top: 1px solid #dfe7e9;
    padding: 28px 30px 30px;
}

.appointment-form-heading {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.appointment-form-eyebrow {
    color: #0f766e;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.appointment-form-heading h3 {
    color: #17212b;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 5px;
}

.appointment-form-heading p {
    color: #667085;
    font-size: 0.82rem;
    margin: 0;
}

.form-required {
    color: #d92d20;
    font-weight: 800;
}

.appointment-form-close {
    flex: 0 0 36px;
}

.appointment-request-form {
    display: grid;
    gap: 22px;
}

.appointment-form-alert {
    margin: 0;
}

.appointment-field {
    min-width: 0;
}

.appointment-field-label {
    color: #344054;
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.appointment-request-form .form-control,
.appointment-request-form .form-select {
    background-color: #ffffff;
    border-color: #cfdadd;
    border-radius: 10px;
    color: #17212b;
    min-height: 48px;
    padding: 10px 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.appointment-request-form .form-control:hover,
.appointment-request-form .form-select:hover {
    border-color: #aebfc4;
}

.appointment-request-form .form-control:focus,
.appointment-request-form .form-select:focus {
    border-color: #16877d;
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.11);
}

.appointment-request-form textarea.form-control {
    min-height: 104px;
    resize: vertical;
}

.appointment-date-input {
    position: relative;
}

.appointment-date-control {
    padding-right: 46px !important;
}

.appointment-date-control::placeholder {
    color: #667085;
    opacity: 1;
}

.appointment-native-date-picker {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: calc(50% - 1px);
    width: 1px;
}

.appointment-calendar-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #344054;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 160ms ease, color 160ms ease;
    width: 34px;
}

.appointment-calendar-button:hover {
    background: #eef8f7;
    color: #0f766e;
}

.appointment-calendar-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(22, 135, 125, 0.14);
    outline: 0;
}

.appointment-calendar-button svg {
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    width: 18px;
}

.appointment-field-help {
    color: #7a8992;
    display: block;
    font-size: 0.74rem;
    margin-top: 6px;
}

.appointment-schedule-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-time-card {
    background: #ffffff;
    border: 1px solid #d9e3e6;
    border-radius: 12px;
    margin: 0;
    min-width: 0;
    padding: 18px;
}

.appointment-time-card.has-error {
    border-color: #f0a39d;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.06);
}

.appointment-time-card legend {
    align-items: center;
    display: flex;
    float: none;
    gap: 10px;
    margin: 0 0 17px;
    padding: 0;
    width: 100%;
}

.appointment-time-card legend > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.appointment-time-card legend strong {
    color: #26343d;
    font-size: 0.88rem;
    font-weight: 800;
}

.appointment-time-card legend small {
    color: #7a8992;
    font-size: 0.73rem;
    line-height: 1.35;
}

.appointment-step {
    align-items: center;
    background: #e9f5f3;
    border-radius: 999px;
    color: #0f766e;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.appointment-date-time-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.35fr) minmax(110px, 0.65fr);
}

.appointment-time-input {
    position: relative;
}

.appointment-time-control {
    background-image: none !important;
    padding-right: 42px;
}

.appointment-time-icon {
    height: 19px;
    pointer-events: none;
    position: absolute;
    right: 13px;
    stroke: #344054;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
}

.appointment-request-form .appointment-locked-control,
.appointment-request-form .appointment-locked-control:hover,
.appointment-request-form .appointment-locked-control:focus {
    background-color: #f2f6f6;
    border-color: #d9e3e6;
    box-shadow: none;
    color: #53666e;
    cursor: default;
}

.appointment-time-card .form-control.is-invalid {
    background-image: none;
    padding-right: 13px;
}

.appointment-request-form-actions {
    align-items: center;
    border-top: 1px solid #dfe7e9;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding-top: 22px;
}

.appointment-submit-note {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: 0.78rem;
    gap: 8px;
    line-height: 1.4;
}

.appointment-submit-note svg {
    flex: 0 0 auto;
    height: 17px;
    stroke: #7a8992;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 17px;
}

.appointment-request-list {
    display: grid;
    gap: 14px;
    padding: 24px 30px 30px;
}

.appointment-request-item {
    background: #ffffff;
    border: 1px solid #dfe7e9;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(24, 32, 38, 0.03);
    padding: 20px;
}

.appointment-request-heading {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 12px 20px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.appointment-request-heading > div:first-child {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.appointment-request-number {
    color: #53636c;
    font-weight: 700;
}

.appointment-created-at {
    align-items: flex-end;
    display: grid;
    gap: 1px;
    text-align: right;
}

.appointment-created-at span {
    color: #98a2b3;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.appointment-created-at time {
    color: #53636c;
    font-weight: 650;
}

.appointment-request-details {
    display: grid;
    gap: 14px 24px;
    grid-template-columns: 1.35fr 1fr 1fr;
    margin: 0;
}

.appointment-request-details div {
    min-width: 0;
}

.appointment-request-details dt,
.appointment-request-description > span {
    color: #7a8992;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.appointment-request-details dd {
    color: #26343d;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.appointment-primary-detail dd {
    color: #0f6f68;
}

.appointment-time-separator {
    color: #98a2b3;
    margin: 0 4px;
}

.appointment-request-description {
    background: #f7f9fa;
    border-radius: 9px;
    margin-top: 16px;
    padding: 12px 14px;
}

.appointment-request-description p {
    color: #34434c;
    font-size: 0.86rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.appointment-cancel-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.appointment-empty-state {
    align-items: center;
    border: 1px dashed #cfdadd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 34px 20px;
    text-align: center;
}

.appointment-empty-icon {
    height: 48px;
    margin-bottom: 13px;
    width: 48px;
}

.appointment-empty-state strong {
    color: #26343d;
    font-size: 0.92rem;
    margin-bottom: 5px;
}

.appointment-empty-state p {
    color: #7a8992;
    font-size: 0.82rem;
    margin: 0;
    max-width: 440px;
}

.payment-detail-customer {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.payment-detail-customer span {
    color: #667085;
    font-size: 0.86rem;
    font-weight: 700;
}

.payment-detail-customer strong {
    color: #17212b;
    font-size: 1.04rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.payment-detail-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.payment-info-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-info-grid > div {
    background: #f8fafb;
    border: 1px solid #e3e9ec;
    border-radius: 10px;
    min-width: 0;
    padding: 13px 14px;
}

.payment-info-grid span,
.payment-active-card > span {
    color: #667085;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 5px;
}

.payment-info-grid strong,
.payment-active-card strong {
    color: #17212b;
    display: block;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.payment-active-card {
    align-content: start;
    background: #f7fbfa;
    border-color: #cfe5e1;
    display: grid;
    gap: 12px;
}

.payment-active-card strong {
    color: #0f756d;
    font-size: 1.55rem;
    font-weight: 800;
}

.payment-active-card a {
    background: #ffffff;
    border: 1px solid #d9e8e5;
    border-radius: 9px;
    color: #0f756d;
    font-weight: 700;
    overflow-wrap: anywhere;
    padding: 10px 12px;
    text-decoration: none;
}

.payment-active-actions,
.payment-send-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-send-actions form {
    margin: 0;
}

.payment-copy-button {
    white-space: nowrap;
}

.payment-form-panel .form-label {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 700;
}

.payment-form-grid {
    display: grid;
    gap: 16px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-grid-full {
    grid-column: 1 / -1;
}

.payment-link-input-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.payment-link-input {
    border-color: #16877d;
    color: #0f756d;
    font-weight: 700;
}

.payment-control-locked:disabled,
.payment-form-panel .form-select:disabled {
    background-color: #eef1f3;
    border-color: #d5dde1;
    color: #667085;
    opacity: 1;
}

.payment-modal-dialog {
    --bs-modal-width: 980px;
}

.payment-modal-content {
    border: 1px solid #dbe3e6;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(23, 33, 43, 0.18);
}

.payment-card-modal {
    border-radius: 14px;
    overflow: hidden;
}

.payment-card-modal .modal-header {
    background: #16877d;
    border-bottom: 0;
    color: #ffffff;
    justify-content: center;
    min-height: 64px;
    padding: 16px 64px;
    position: relative;
    text-align: center;
}

.payment-card-modal .modal-title {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.payment-card-modal .app-close-button {
    margin: 0;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.payment-card-modal .modal-body {
    padding: 0;
}

.payment-card-modal .modal-footer {
    border-top: 1px solid #e3e9ec;
    padding: 16px 28px;
}

.payment-modal-lead-focus {
    border-bottom: 1px solid #e3e9ec;
    padding: 22px 28px 24px;
}

.payment-modal-lead-focus span {
    color: #667085;
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.payment-modal-lead-focus strong {
    color: #17212b;
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.payment-modal-lead-focus small {
    color: #667085;
    display: block;
    font-size: 0.84rem;
    margin-top: 8px;
}

.payment-modal-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-card-modal .payment-modal-summary {
    margin: 24px 28px 0;
}

.payment-modal-summary-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-modal-summary > div {
    background: #f8fafb;
    border: 1px solid #e3e9ec;
    border-radius: 9px;
    min-width: 0;
    padding: 12px 13px;
}

.payment-modal-summary span,
.payment-modal-summary label {
    color: #667085;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 5px;
}

.payment-modal-summary strong {
    color: #17212b;
    display: block;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.payment-card-modal .payment-form-panel {
    padding: 0 28px 28px;
}

.payment-create-modal .payment-modal-summary {
    gap: 16px 18px;
    margin: 40px 28px 0;
}

.payment-create-modal .payment-form-panel {
    margin-top: 42px;
}

.payment-create-modal .payment-form-grid {
    gap: 24px 22px;
}

.payment-create-modal .payment-link-input-row {
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 260px;
}

.payment-create-modal .payment-send-actions {
    gap: 12px;
}

.qr-image {
    width: min(280px, 100%);
    height: auto;
}

.referral-box {
    overflow-wrap: anywhere;
    background: #eef5f4;
    border: 1px solid #cfe1de;
    border-radius: 8px;
    padding: 12px;
}

.status-mark {
    align-items: center;
    background: #0f766e;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.5rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.app-navbar:not(.landing-navbar) {
    background: #f3faf8;
    border-bottom: 1px solid #d3e5e1;
    box-shadow: 0 8px 24px rgba(23, 33, 43, 0.04);
    min-height: 84px;
}

.app-navbar:not(.landing-navbar) .container {
    min-height: 84px;
}

.app-navbar:not(.landing-navbar) .navbar-nav {
    align-items: center;
    gap: 4px;
}

.app-navbar:not(.landing-navbar) .nav-link {
    color: #475467;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 10px 12px;
}

.app-navbar:not(.landing-navbar) .nav-link:hover {
    color: #0f756d;
}

.app-brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    margin-right: 24px;
    min-width: 0;
    padding-bottom: 0;
    padding-top: 0;
}

.app-brand-logo {
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(22, 135, 125, 0.22);
    flex: 0 0 44px;
    height: 44px;
    object-fit: cover;
    width: 44px;
}

.app-brand-text {
    align-items: baseline;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding-top: 14px;
}

.app-brand-main {
    color: #10201d;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.app-brand-identity {
    border-left: 1px solid #c6d9d5;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-left: 12px;
}

.app-brand-company,
.app-brand-user {
    display: block;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-brand-company {
    color: #53636c;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.app-brand-user {
    color: #74818a;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.15;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .app-navbar:not(.landing-navbar) .nav-link {
        font-size: 0.68rem;
    }

    .app-navbar:not(.landing-navbar) .app-brand-main {
        font-size: 0.86rem;
    }

    .app-navbar:not(.landing-navbar) .app-brand-company {
        font-size: 0.70rem;
    }

    .app-navbar:not(.landing-navbar) .app-brand-user {
        font-size: 0.62rem;
    }
}

.landing-navbar {
    background: #ffffff !important;
    min-height: 72px;
}

.landing-navbar .container {
    max-width: 1240px;
    padding-left: 24px;
    padding-right: 24px;
}

.landing-brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    margin-right: 72px;
    padding: 0;
}

.landing-brand:hover {
    color: #122520;
}

.landing-brand-mark {
    align-items: center;
    background: #16877d;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(22, 135, 125, 0.28);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 42px;
}

.landing-brand-mark img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.landing-brand-mark span {
    font-family: "Sora", system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.landing-brand-mark small {
    bottom: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    position: absolute;
    right: 6px;
}

.landing-brand-copy {
    display: grid;
    gap: 1px;
}

.landing-brand-copy strong,
.landing-brand-copy small {
    display: block;
}

.landing-brand-copy strong {
    color: #17212b;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.1;
}

.landing-brand-copy small {
    color: #7a8a86;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
}

.landing-nav {
    align-items: center;
    gap: 28px;
}

.landing-nav .nav-link {
    color: #52615d;
    font-size: 0.9rem;
    font-weight: 600;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.landing-nav .nav-link:hover {
    color: #16877d;
}

.landing-nav-button {
    align-items: center;
    border-radius: 11px;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    min-width: 132px;
    padding: 10px 18px;
}

.landing-nav-button-outline {
    background: #ffffff;
    min-width: 132px;
}

.landing-page {
    background: #ffffff;
    color: #152420;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    overflow-x: hidden;
}

.landing-container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 24px;
}

.landing-hero {
    background:
        radial-gradient(circle, rgba(22, 135, 125, 0.1) 1px, transparent 1.6px) 0 0 / 22px 22px,
        #ffffff;
    border-bottom: 1px solid #eef2f1;
    position: relative;
}

.landing-hero-grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr);
    min-height: 0;
    padding-bottom: 96px;
    padding-top: 84px;
}

.landing-hero-copy {
    min-width: 0;
}

.landing-eyebrow,
.landing-support-note {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.landing-eyebrow {
    background: #eaf4f2;
    border: 1px solid #d3e7e3;
    border-radius: 999px;
    color: #10665e;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 28px;
    padding: 7px 14px;
}

.landing-eyebrow span,
.landing-support-note span {
    background: #16877d;
    border-radius: 50%;
    display: inline-block;
}

.landing-eyebrow span {
    height: 7px;
    width: 7px;
}

.landing-hero h1 {
    color: #122520;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.4px;
    line-height: 1.08;
    margin: 0 0 20px;
    max-width: 650px;
    text-wrap: balance;
}

.landing-hero h1 span {
    color: #16877d;
    display: inline;
}

.landing-hero p {
    color: #53635d;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 520px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.landing-actions-center {
    justify-content: center;
}

.landing-cta {
    align-items: center;
    border-radius: 11px;
    display: inline-flex;
    font-size: 15.5px;
    font-weight: 700;
    justify-content: center;
    min-height: 50px;
    min-width: 0;
    padding-left: 26px;
    padding-right: 26px;
}

.landing-support-note {
    color: #7a8a86;
    gap: 9px;
    font-size: 13.5px;
}

.landing-support-note span {
    align-items: center;
    background: transparent;
    border: 1.5px solid #16877d;
    border-radius: 50%;
    display: inline-flex;
    height: 18px;
    justify-content: center;
    margin-left: 0;
    width: 18px;
}

.landing-support-note span::before {
    background: #16877d;
    border-radius: 50%;
    content: "";
    height: 6px;
    width: 6px;
}

.landing-product-visual {
    min-width: 0;
    position: relative;
    transform: none;
}

.landing-dashboard {
    background: #ffffff;
    border: 1px solid #e2e9e7;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(18, 40, 36, 0.14);
    margin-left: 0;
    max-width: none;
    overflow: hidden;
}

.landing-window-bar {
    align-items: center;
    background: #f6f9f8;
    border-bottom: 1px solid #ebf0ee;
    display: flex;
    gap: 7px;
    padding: 11px 15px;
}

.landing-window-bar > span {
    border-radius: 50%;
    height: 11px;
    width: 11px;
}

.landing-window-bar > span:nth-child(1) {
    background: #e2706a;
}

.landing-window-bar > span:nth-child(2) {
    background: #e6b35a;
}

.landing-window-bar > span:nth-child(3) {
    background: #5bbd8f;
}

.landing-window-bar div {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e6ebe9;
    border-radius: 6px;
    color: #8b9995;
    display: flex;
    flex: 1;
    font-size: 10.5px;
    height: 20px;
    margin-left: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 0 9px;
    white-space: nowrap;
}

.landing-dashboard-body {
    min-height: 390px;
}

.landing-dashboard-appbar {
    align-items: center;
    background: #fbfdfc;
    border-bottom: 1px solid #eef2f1;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 10px 15px;
}

.landing-mini-brand {
    align-items: center;
    color: #152420;
    display: flex;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    gap: 8px;
    min-width: 0;
}

.landing-mini-brand span {
    align-items: center;
    background: #16877d;
    border-radius: 7px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    flex: 0 0 23px;
    height: 23px;
    justify-content: center;
    width: 23px;
}

.landing-dashboard-nav {
    align-items: center;
    display: flex;
    gap: 3px;
}

.landing-dashboard-nav span {
    border-radius: 6px;
    color: #6b7a75;
    font-size: 9px;
    padding: 5px 7px;
}

.landing-dashboard-nav .is-active {
    background: #eaf4f2;
    color: #0f665e;
    font-weight: 700;
}

.landing-dashboard-content {
    padding: 14px 16px 16px;
}

.landing-dashboard-identity {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    margin-bottom: 13px;
}

.landing-dashboard-avatar {
    align-items: center;
    background: #16877d;
    border-radius: 7px;
    color: #ffffff;
    display: inline-flex;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.landing-dashboard-identity > strong {
    color: #152420;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 10.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-dashboard-add {
    background: #16877d;
    border-radius: 6px;
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 700;
    padding: 5px 8px;
}

.landing-dashboard-heading,
.landing-lead-list p {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.landing-dashboard-heading {
    gap: 10px;
    margin-bottom: 13px;
}

.landing-dashboard-heading strong {
    color: #152420;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.landing-period-filter {
    align-items: center;
    display: flex;
    gap: 4px;
}

.landing-period-filter span {
    border: 1px solid #8fc5c0;
    border-radius: 5px;
    color: #16877d;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 5px;
}

.landing-period-filter .is-active {
    background: #16877d;
    border-color: #16877d;
    color: #ffffff;
}

.landing-stat-grid {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.landing-stat-grid > div {
    border: 1px solid #ebf0ee;
    border-radius: 8px;
    min-height: 0;
    padding: 9px;
}

.landing-stat-grid span,
.landing-float-card span {
    color: #7a8a86;
    display: block;
    font-size: 0.56rem;
    margin-bottom: 4px;
}

.landing-stat-grid strong {
    color: #152420;
    display: block;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.landing-stat-grid .is-green {
    color: #16877d;
}

.landing-stat-grid small {
    color: #7a8a86;
    display: block;
    font-size: 0.5rem;
    margin-top: 3px;
    white-space: nowrap;
}

.landing-dashboard-detail-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.landing-mini-chart {
    border: 1px solid #ebf0ee;
    border-radius: 10px;
    padding: 9px 10px 7px;
}

.landing-mini-chart > div:first-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.landing-mini-chart > div:first-child strong {
    color: #152420;
    font-size: 9.5px;
}

.landing-mini-chart > div:first-child span {
    background: #e8f6ec;
    border-radius: 999px;
    color: #277a45;
    font-size: 7px;
    font-weight: 700;
    padding: 3px 6px;
}

.landing-chart-bars {
    align-items: end;
    border-bottom: 1px solid #dce5e2;
    display: flex;
    gap: 6px;
    height: 63px;
    justify-content: space-around;
    margin-top: 5px;
    padding: 0 4px;
}

.landing-chart-bars i {
    align-items: end;
    display: flex;
    gap: 2px;
    height: 100%;
    width: 10px;
}

.landing-chart-bars i::before,
.landing-chart-bars i::after {
    border-radius: 2px 2px 0 0;
    content: "";
    display: block;
    width: 4px;
}

.landing-chart-bars i::before {
    background: #2474a6;
    height: var(--appointments);
}

.landing-chart-bars i::after {
    background: #15803d;
    height: var(--sales);
}

.landing-chart-legend {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 5px;
}

.landing-chart-legend span {
    align-items: center;
    color: #7a8a86;
    display: inline-flex;
    font-size: 7px;
    gap: 4px;
}

.landing-chart-legend span::before {
    background: #2474a6;
    border-radius: 2px;
    content: "";
    height: 5px;
    width: 5px;
}

.landing-chart-legend span:last-child::before {
    background: #15803d;
}

.landing-lead-list {
    border: 1px solid #ebf0ee;
    border-radius: 10px;
    overflow: hidden;
}

.landing-lead-list > div {
    border-bottom: 1px solid #f0f3f2;
    color: #152420;
    font-size: 11.5px;
    font-weight: 700;
    padding: 9px 12px;
}

.landing-lead-list p {
    border-bottom: 1px solid #f3f6f5;
    margin: 0;
    min-height: 0;
    padding: 8px 12px;
}

.landing-lead-list p:last-child {
    border-bottom: 0;
}

.landing-lead-list span {
    color: #3f4d48;
    font-size: 11.5px;
}

.landing-lead-list strong {
    background: #eaf4f2;
    border-radius: 5px;
    color: #16877d;
    font-size: 0.64rem;
    padding: 2px 7px;
}

.landing-lead-list .is-warm {
    background: #faf1e3;
    color: #a06a16;
}

.landing-lead-list .is-success {
    background: #e8f6ec;
    color: #277a45;
}

.landing-float-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e6ebe9;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(18, 40, 36, 0.16);
    display: flex;
    gap: 11px;
    padding: 12px;
    position: absolute;
}

.landing-float-card strong {
    color: #152420;
    display: block;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
}

.landing-qr-card {
    left: -26px;
    top: -22px;
}

.landing-link-card {
    bottom: 46px;
    left: -34px;
    max-width: 212px;
}

.landing-link-card strong {
    color: #16877d;
    max-width: 152px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-points-card {
    bottom: -22px;
    right: -26px;
}

.landing-qr {
    border: 1px solid #eef2f1;
    border-radius: 8px;
    background-color: #ffffff;
    display: block;
    height: 60px;
    padding: 4px;
    width: 60px;
}

.landing-qr::before {
    background: #152420;
    border-radius: 1px;
    box-shadow:
        4px 0 #152420,
        8px 0 #152420,
        12px 0 #152420,
        16px 0 #152420,
        20px 0 #152420,
        24px 0 #152420,
        32px 0 #152420,
        36px 0 #152420,
        40px 0 #152420,
        44px 0 #152420,
        48px 0 #152420,
        0 4px #152420,
        24px 4px #152420,
        32px 4px #152420,
        48px 4px #152420,
        0 8px #152420,
        8px 8px #152420,
        12px 8px #152420,
        16px 8px #152420,
        24px 8px #152420,
        32px 8px #152420,
        40px 8px #152420,
        44px 8px #152420,
        48px 8px #152420,
        0 12px #152420,
        8px 12px #152420,
        16px 12px #152420,
        24px 12px #152420,
        32px 12px #152420,
        40px 12px #152420,
        48px 12px #152420,
        0 16px #152420,
        8px 16px #152420,
        12px 16px #152420,
        16px 16px #152420,
        24px 16px #152420,
        28px 16px #152420,
        32px 16px #152420,
        40px 16px #152420,
        44px 16px #152420,
        48px 16px #152420,
        0 20px #152420,
        24px 20px #152420,
        48px 20px #152420,
        0 24px #152420,
        4px 24px #152420,
        8px 24px #152420,
        12px 24px #152420,
        16px 24px #152420,
        20px 24px #152420,
        24px 24px #152420,
        32px 24px #152420,
        36px 24px #152420,
        40px 24px #152420,
        44px 24px #152420,
        48px 24px #152420,
        0 32px #152420,
        4px 32px #152420,
        8px 32px #152420,
        16px 32px #152420,
        24px 32px #152420,
        28px 32px #152420,
        32px 32px #152420,
        40px 32px #152420,
        48px 32px #152420,
        8px 36px #152420,
        12px 36px #152420,
        16px 36px #152420,
        32px 36px #152420,
        36px 36px #152420,
        40px 36px #152420,
        0 40px #152420,
        8px 40px #152420,
        16px 40px #152420,
        20px 40px #152420,
        24px 40px #152420,
        32px 40px #152420,
        40px 40px #152420,
        48px 40px #152420,
        0 44px #152420,
        16px 44px #152420,
        32px 44px #152420,
        40px 44px #152420,
        44px 44px #152420,
        48px 44px #152420,
        0 48px #152420,
        4px 48px #152420,
        8px 48px #152420,
        16px 48px #152420,
        20px 48px #152420,
        24px 48px #152420,
        28px 48px #152420,
        32px 48px #152420,
        40px 48px #152420,
        48px 48px #152420;
    content: "";
    display: block;
    height: 3px;
    width: 3px;
}

.landing-qr::before {
    display: none;
}

.landing-qr img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.landing-link-icon {
    align-items: center;
    background: #eaf4f2;
    border-radius: 9px;
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.landing-link-icon::before {
    border: 2px solid #16877d;
    border-radius: 6px;
    content: "";
    height: 9px;
    transform: rotate(-30deg);
    width: 16px;
}

.landing-points-icon,
.landing-points-large,
.landing-pp-icon {
    align-items: center;
    background: transparent;
    display: inline-flex;
    justify-content: center;
    overflow: hidden;
}

.landing-points-icon img,
.landing-points-large img,
.landing-pp-icon img {
    display: block;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.34);
    transform-origin: center;
    width: 100%;
}

.landing-points-icon {
    border-radius: 10px;
    flex: 0 0 42px;
    height: 42px;
    width: 42px;
}

.landing-section {
    background: #ffffff;
    padding: 92px 0;
}

.landing-section-muted {
    background: #f7faf9;
    border-bottom: 1px solid #eef2f1;
    border-top: 1px solid #eef2f1;
}

.landing-section-heading {
    margin-bottom: 48px;
    max-width: 640px;
}

.landing-section-heading-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.landing-section-heading span {
    color: #16877d;
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.landing-section-heading h2,
.landing-points-band h2,
.landing-final-cta h2 {
    color: #122520;
    font-family: "Sora", system-ui, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

.landing-card-grid,
.landing-mini-grid {
    display: grid;
    gap: 20px;
}

.landing-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-feature-card,
.landing-mini-grid article {
    background: #ffffff;
    border: 1px solid #e6ebe9;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(18, 40, 36, 0.04);
    padding: 26px 24px;
    position: relative;
}

.landing-mini-grid article {
    border-radius: 14px;
    padding: 22px;
}

.landing-feature-card h3,
.landing-mini-grid h3,
.landing-steps h3 {
    color: #152420;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 9px;
}

.landing-mini-grid h3 {
    font-size: 0.98rem;
}

.landing-feature-card p,
.landing-mini-grid p,
.landing-steps p,
.landing-points-band p,
.landing-final-cta p {
    color: #5b6a64;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

.landing-feature-icon {
    align-items: center;
    background: #eaf4f2;
    border-radius: 13px;
    display: flex;
    height: 46px;
    justify-content: center;
    margin-bottom: 18px;
    width: 46px;
}

.landing-mini-grid .landing-feature-icon {
    border-radius: 11px;
    height: 38px;
    margin-bottom: 14px;
    width: 38px;
}

.landing-qr-icon::before,
.landing-list-icon::before,
.landing-card-icon::before,
.landing-profile-icon::before,
.landing-contract-icon::before {
    content: "";
    display: block;
}

.landing-qr-icon::before {
    background:
        linear-gradient(#16877d 0 0) 0 0 / 8px 8px,
        linear-gradient(#16877d 0 0) 12px 0 / 8px 8px,
        linear-gradient(#16877d 0 0) 0 12px / 8px 8px,
        linear-gradient(#7cc0b8 0 0) 12px 12px / 8px 8px;
    background-repeat: no-repeat;
    height: 20px;
    width: 20px;
}

.landing-list-icon::before {
    background:
        linear-gradient(#16877d 0 0) 0 0 / 20px 3px,
        linear-gradient(#16877d 0 0) 0 7px / 20px 3px,
        linear-gradient(#7cc0b8 0 0) 0 14px / 13px 3px;
    background-repeat: no-repeat;
    height: 18px;
    width: 22px;
}

.landing-card-icon::before {
    border: 2px solid #16877d;
    border-radius: 4px;
    height: 17px;
    width: 24px;
}

.landing-profile-icon::before {
    background:
        radial-gradient(circle at 50% 34%, #16877d 0 5px, transparent 5.5px),
        radial-gradient(ellipse at 50% 100%, #16877d 0 11px, transparent 11.5px);
    height: 24px;
    width: 24px;
}

.landing-contract-icon::before {
    border: 2px solid #16877d;
    border-radius: 4px;
    height: 24px;
    width: 18px;
}

.landing-pp-icon {
    border-radius: 13px;
}

.landing-feature-icon.landing-pp-icon {
    background: transparent;
    border-radius: 13px;
}

.landing-badge {
    background: #faf1e3;
    border: 1px solid #f0e2c8;
    border-radius: 999px;
    color: #a06a16;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    position: absolute;
    right: 18px;
    top: 18px;
}

.landing-models-section {
    background: #f4f8f7;
    border-bottom: 1px solid #e3ece9;
    border-top: 1px solid #e3ece9;
}

.landing-models-heading {
    align-items: end;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    margin-bottom: 44px;
}

.landing-models-heading .landing-section-heading {
    margin-bottom: 0;
}

.landing-models-heading > p {
    color: #5b6a64;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 2px;
}

.landing-model-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-model-card {
    --model-accent: #16877d;
    --model-soft: #e8f4f2;
    background: #ffffff;
    border: 1px solid #dce7e4;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(18, 40, 36, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 30px 28px 26px;
    position: relative;
}

.landing-model-card::before {
    background: var(--model-accent);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.landing-model-card-lead {
    --model-accent: #39719c;
    --model-soft: #edf4f9;
}

.landing-model-card-staged {
    --model-accent: #a36b23;
    --model-soft: #faf2e7;
}

.landing-model-card-topline {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.landing-model-number {
    color: var(--model-accent);
    font-family: "Sora", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-model-type {
    background: var(--model-soft);
    border-radius: 999px;
    color: var(--model-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
}

.landing-model-card h3 {
    color: #152420;
    font-family: "Sora", system-ui, sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px;
    min-height: 3.35em;
}

.landing-model-card > p {
    color: #5b6a64;
    font-size: 0.92rem;
    line-height: 1.72;
    margin: 0 0 26px;
}

.landing-model-flow {
    align-items: center;
    background: #f8faf9;
    border: 1px solid #e5ecea;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    min-height: 54px;
    padding: 12px 14px;
}

.landing-model-flow span,
.landing-model-flow strong {
    color: #43554e;
    font-size: 0.75rem;
    font-weight: 700;
}

.landing-model-flow strong {
    color: var(--model-accent);
}

.landing-model-flow i {
    background: var(--model-accent);
    height: 1px;
    opacity: 0.55;
    position: relative;
    width: 14px;
}

.landing-model-flow i::after {
    border-right: 1px solid var(--model-accent);
    border-top: 1px solid var(--model-accent);
    content: "";
    height: 5px;
    position: absolute;
    right: 0;
    top: -2px;
    transform: rotate(45deg);
    width: 5px;
}

.landing-steps {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
}

.landing-steps::before {
    background: repeating-linear-gradient(90deg, #cfe1de 0 8px, transparent 8px 16px);
    content: "";
    height: 2px;
    left: 14%;
    position: absolute;
    right: 14%;
    top: 25px;
}

.landing-steps article {
    background: #ffffff;
    padding: 0 8px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.landing-steps article > span {
    align-items: center;
    background: #16877d;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(22, 135, 125, 0.28);
    color: #ffffff;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 800;
    height: 52px;
    justify-content: center;
    margin-bottom: 20px;
    width: 52px;
}

.landing-points-band {
    align-items: center;
    background: #eaf4f2;
    border: 1px solid #d3e7e3;
    border-radius: 24px;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    padding: 48px 44px;
}

.landing-points-copy {
    align-items: flex-start;
    display: flex;
    gap: 22px;
}

.landing-points-large {
    border-radius: 18px;
    box-shadow: none;
    flex: 0 0 76px;
    height: 76px;
    width: 76px;
}

.landing-points-band h2 {
    color: #0f3b36;
    margin-bottom: 14px;
}

.landing-points-list {
    display: grid;
    gap: 12px;
}

.landing-points-list p {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e8e5;
    border-radius: 12px;
    color: #274a45;
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

.landing-points-list p::before {
    background: #16877d;
    border-radius: 50%;
    content: "";
    flex: 0 0 9px;
    height: 9px;
    width: 9px;
}

.landing-final-cta {
    background: #0e524b;
    padding: 80px 0;
    text-align: center;
}

.landing-final-cta h2 {
    color: #ffffff;
    margin: 0 auto 16px;
    max-width: 820px;
}

.landing-final-cta p {
    color: #bfe0db;
    font-size: 1.05rem;
    margin: 0 auto 32px;
    max-width: 560px;
}

.landing-footer {
    background: #10201d;
    color: #aeb9b5;
    padding: 38px 0;
}

.landing-footer .landing-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.landing-footer-brand {
    align-items: center;
    display: flex;
    gap: 11px;
}

.landing-footer-brand > span {
    align-items: center;
    background: #16877d;
    border-radius: 11px;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    width: 40px;
}

.landing-footer-brand > span img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.landing-footer-brand strong,
.landing-footer-brand small {
    display: block;
}

.landing-footer-brand strong {
    color: #ffffff;
}

.landing-footer-brand small,
.landing-footer p,
.landing-footer-links a {
    color: #8a9893;
    font-size: 0.84rem;
}

.landing-footer p {
    margin: 0;
}

.landing-footer-links {
    display: flex;
    gap: 20px;
}

.landing-footer-links a {
    text-decoration: none;
}

.landing-footer-links a:hover {
    color: #ffffff;
}

.errorlist {
    color: #b42318;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    font-size: 0.9rem;
}

.customer-page-section {
    background: linear-gradient(180deg, #f8fafb 0%, #f3f6f7 100%);
    min-height: calc(100vh - 57px);
}

.customer-form-panel {
    border-color: #dde5ea;
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(23, 33, 43, 0.09);
    padding: 38px 42px;
}

.customer-form-header {
    border-bottom: 1px solid #e7ecef;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
    margin-bottom: 30px;
    padding-bottom: 24px;
}

.customer-form-header h1 {
    color: #17212b;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}

.customer-form-header p {
    color: #667085;
    line-height: 1.6;
    margin: 0;
}

.customer-trust-note {
    align-self: center;
    background: #f2f8f7;
    border: 1px solid #d6e9e6;
    border-radius: 12px;
    color: #52636b;
    font-size: 0.82rem;
    line-height: 1.55;
    padding: 13px 15px;
}

.customer-form-section {
    border-bottom: 1px solid #edf1f3;
    margin-bottom: 26px;
    padding-bottom: 26px;
}

.customer-section-title {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.customer-form-grid {
    display: grid;
    gap: 20px 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-form-field {
    min-width: 0;
}

.customer-field-full {
    grid-column: 1 / -1;
}

.customer-label {
    color: #344054;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.required-mark {
    color: #d92d20;
    font-size: 0.82rem;
    margin-left: 2px;
}

.customer-control {
    min-width: 0;
}

.customer-input,
.customer-select {
    background-color: #ffffff;
    border: 1px solid #dde5ea;
    border-radius: 11px;
    color: #17212b;
    font-size: 0.96rem;
    min-height: 52px;
    padding: 12px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.customer-select {
    padding-right: 42px;
}

.customer-input::placeholder {
    color: #98a2b3;
    opacity: 1;
}

.customer-input:hover,
.customer-select:hover {
    border-color: #bdcbd2;
}

.customer-input:focus,
.customer-select:focus {
    background-color: #ffffff;
    border-color: #16877d;
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.12);
    color: #17212b;
}

.customer-input:-webkit-autofill,
.customer-input:-webkit-autofill:hover,
.customer-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: #17212b;
    caret-color: #17212b;
}

.customer-select:disabled {
    background-color: #f1f5f7;
    border-color: #dde5ea;
    box-shadow: none;
    color: #667085;
    cursor: not-allowed;
    opacity: 1;
}

.customer-select-locked:disabled {
    color: #344054;
    font-weight: 600;
}

.customer-form-field.has-error .customer-input,
.customer-form-field.has-error .customer-select {
    border-color: #d92d20;
}

.customer-form-field.has-error .customer-input:focus,
.customer-form-field.has-error .customer-select:focus {
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.customer-consents {
    background: #f8fafb;
    border: 1px solid #e3e9ec;
    border-radius: 14px;
    padding: 20px;
}

.customer-consent-item {
    align-items: flex-start;
    display: grid;
    gap: 0 10px;
    grid-template-columns: 20px minmax(0, 1fr);
    margin-bottom: 14px;
}

.customer-consent-item .form-check-input {
    border-color: #b9c6cc;
    height: 19px;
    margin: 2px 0 0;
    width: 19px;
}

.customer-consent-item .form-check-input:checked {
    background-color: #16877d;
    border-color: #16877d;
}

.customer-consent-item .form-check-input:focus {
    border-color: #16877d;
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.12);
}

.customer-consent-item .form-check-label {
    color: #475467;
    font-size: 0.9rem;
    line-height: 1.5;
}

.customer-consent-item .errorlist {
    grid-column: 2;
}

.customer-consent-item.has-error .form-check-input {
    border-color: #d92d20;
}

.customer-submit {
    border-radius: 11px;
    box-shadow: 0 8px 18px rgba(22, 135, 125, 0.2);
    font-weight: 700;
    margin-top: 8px;
    min-height: 52px;
    width: 100%;
}

.customer-submit:hover {
    box-shadow: 0 10px 22px rgba(15, 117, 109, 0.24);
}

.customer-submit:disabled {
    box-shadow: none;
    cursor: wait;
}

.table {
    min-width: 680px;
}

.profile-container {
    max-width: 960px;
    transition: max-width 0.2s ease;
}

.profile-container.profile-container-wide {
    max-width: 1320px;
}

.profile-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.profile-identity {
    align-items: center;
    display: flex;
    gap: 16px;
    min-width: 0;
}

.profile-logo {
    align-items: center;
    background: #dff1ef;
    border: 1px solid #c7e5e2;
    border-radius: 8px;
    color: #0f756d;
    display: flex;
    flex: 0 0 68px;
    font-size: 1.65rem;
    font-weight: 700;
    height: 68px;
    justify-content: center;
    overflow: hidden;
    width: 68px;
}

.profile-logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-photo-editor {
    align-items: center;
    display: flex;
    gap: 18px;
}

.profile-photo-preview {
    align-items: center;
    background: #dff1ef;
    border: 1px solid #c7e5e2;
    border-radius: 8px;
    color: #0f756d;
    display: flex;
    flex: 0 0 88px;
    font-size: 1.75rem;
    font-weight: 700;
    height: 88px;
    justify-content: center;
    overflow: hidden;
    width: 88px;
}

.profile-photo-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-photo-control {
    max-width: 440px;
    min-width: 0;
    width: 100%;
}

.profile-photo-control .form-label {
    align-items: center;
    display: flex;
    gap: 7px;
}

.profile-photo-control .form-label svg {
    height: 18px;
    width: 18px;
}

.localized-file-input {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.localized-file-input input[type="file"] {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.localized-file-input span {
    color: #667085;
    font-size: 0.86rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.localized-file-input input[type="file"]:focus-visible + label {
    box-shadow: 0 0 0 0.25rem rgba(95, 46, 234, 0.2);
}

.profile-membership {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.profile-membership span,
.profile-contract-grid span {
    color: #667085;
    font-size: 0.82rem;
}

.profile-tabs {
    border-bottom-color: #dbe3e6;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.profile-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    color: #53636c;
    font-weight: 600;
    min-height: 46px;
    white-space: nowrap;
}

.profile-tabs .nav-link:hover {
    border-color: #e1e9e8 #e1e9e8 #dbe3e6;
    color: #0f756d;
}

.profile-tabs .nav-link.active {
    border-color: #dbe3e6 #dbe3e6 #ffffff;
    color: #0f756d;
}

.profile-section {
    scroll-margin-top: 20px;
}

.profile-section-heading {
    border-bottom: 1px solid #e7ecef;
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.profile-section .form-control {
    border-color: #d7e0e4;
    border-radius: 8px;
    min-height: 46px;
}

.profile-section .form-control:focus {
    border-color: #16877d;
    box-shadow: 0 0 0 4px rgba(22, 135, 125, 0.12);
}

.profile-section .profile-locked-field:disabled {
    background: #edf1f2;
    border-color: #d7e0e4;
    color: #667781;
    cursor: not-allowed;
    opacity: 1;
}

.profile-section textarea.form-control {
    min-height: 100px;
}

.profile-contract-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-users-heading,
.profile-user-editor-heading,
.profile-user-editor-actions {
    display: flex;
    align-items: center;
}

.profile-users-heading {
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e7ecef;
    margin-bottom: 8px;
    padding-bottom: 20px;
}

.profile-users-heading .btn,
.profile-user-editor-actions .btn,
.portal-user-modal .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}

.profile-users-heading svg,
.profile-user-editor-actions svg,
.portal-user-modal .btn svg {
    height: 18px;
    width: 18px;
}

.profile-users-table {
    min-width: 1000px;
    width: 100%;
}

.profile-users-table th,
.profile-users-table td {
    padding-left: 14px;
    padding-right: 14px;
}

.profile-users-table-wrap {
    overflow-x: auto;
    scrollbar-gutter: stable;
}

.profile-users-table th {
    color: #52606a;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.profile-users-table td {
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.profile-user-row.is-editing td {
    background: #f2f8f7;
}

.profile-user-action {
    text-align: right;
    white-space: nowrap;
}

.profile-user-edit-button {
    align-items: center;
    border: 1px solid #bfd4d1;
    color: #147e74;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    width: 38px;
}

.profile-user-edit-button {
    border-radius: 6px;
}

.profile-user-edit-button:hover {
    background: #e9f5f3;
    border-color: #147e74;
    color: #0f665e;
}

.profile-user-edit-button svg {
    height: 18px;
    width: 18px;
}

.profile-user-editor-close {
    flex: 0 0 36px;
}

.profile-user-edit-fallback {
    font-size: 22px;
    line-height: 1;
    transform: translateY(-1px);
}

.lucide-ready .profile-user-edit-fallback {
    display: none;
}

.profile-user-editor-row > td {
    background: #f7faf9;
    padding: 0 !important;
}

.profile-user-editor {
    border-bottom: 1px solid #c9dcda;
    border-top: 2px solid #16877d;
    padding: 24px;
}

.profile-user-editor-heading {
    color: #667085;
    justify-content: space-between;
    margin-bottom: 20px;
}

.profile-user-editor-heading h3 {
    color: #18232f;
}

.portal-user-form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-user-form-field .form-control,
.portal-user-form-field .form-select {
    min-height: 46px;
}

.portal-user-form-field .form-label {
    color: #273340;
    margin-bottom: 8px;
}

.form-required-mark {
    color: #b42318;
    margin-left: 2px;
}

.portal-user-form-field .form-control:disabled,
.portal-user-form-field .form-select:disabled {
    background: #edf1f2;
    color: #667781;
    cursor: not-allowed;
    opacity: 1;
}

.profile-user-editor-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.portal-user-modal {
    border: 0;
    border-radius: 8px;
}

.portal-user-modal .modal-header {
    align-items: flex-start;
}

.portal-user-modal .modal-title {
    color: #18232f;
}

.portal-user-modal .modal-body {
    padding: 24px;
}

@media (max-width: 991.98px) {
    .portal-user-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .profile-users-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-users-heading .btn {
        width: 100%;
    }

    .profile-users-table-wrap {
        overflow: visible;
    }

    .profile-users-table {
        min-width: 0;
    }

    .profile-users-table thead {
        display: none;
    }

    .profile-users-table tbody,
    .profile-users-table tr,
    .profile-users-table td {
        display: block;
        width: 100%;
    }

    .profile-users-table .profile-user-row {
        border-bottom: 1px solid #dfe7e9;
        padding: 14px 48px 14px 0;
        position: relative;
    }

    .profile-users-table .profile-user-row td {
        border: 0;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(100px, 0.45fr) minmax(0, 1fr);
        padding: 7px 0;
        text-align: left;
    }

    .profile-users-table .profile-user-row td::before {
        color: #667781;
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .profile-users-table .profile-user-row .profile-user-action {
        display: block;
        padding: 0;
        position: absolute;
        right: 0;
        top: 14px;
        width: auto;
    }

    .profile-users-table .profile-user-row .profile-user-action::before {
        content: none;
    }

    .profile-user-editor-row > td {
        display: block;
    }

    .profile-user-editor {
        padding: 20px 0;
    }

    .portal-user-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-user-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-user-editor-actions .btn,
    .profile-user-editor-actions .ms-lg-auto {
        margin-left: 0 !important;
        width: 100%;
    }

    .portal-user-modal .modal-body {
        padding: 20px;
    }
}

.profile-contract-grid > div {
    background: #f7faf9;
    border: 1px solid #e1e9e8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px;
}

.profile-contract-grid strong {
    overflow-wrap: anywhere;
}

.profile-contract-grid small {
    color: #667085;
    font-size: 0.75rem;
}

.profile-password-form {
    max-width: 560px;
}

@media (max-width: 991.98px) {
    .finance-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-filter-action .btn {
        width: 100%;
    }

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

    .finance-detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-navbar:not(.landing-navbar) .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .app-navbar:not(.landing-navbar) .app-brand {
        margin-right: 12px;
        overflow: hidden;
    }

    .app-navbar:not(.landing-navbar) .app-brand-text {
        overflow: hidden;
    }

    .app-navbar:not(.landing-navbar) .app-brand-identity,
    .app-navbar:not(.landing-navbar) .app-brand-company,
    .app-navbar:not(.landing-navbar) .app-brand-user {
        max-width: 100%;
    }

    .app-navbar:not(.landing-navbar) .navbar-toggler {
        grid-column: 2;
        justify-self: end;
    }

    .app-navbar:not(.landing-navbar) .navbar-collapse {
        grid-column: 1 / -1;
    }

    .landing-brand {
        margin-right: 0;
    }

    .landing-nav {
        align-items: stretch;
        gap: 4px;
        padding-top: 12px;
    }

    .landing-nav-button {
        width: 100%;
    }

    .landing-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding-bottom: 72px;
        padding-top: 62px;
    }

    .landing-product-visual {
        margin: 0 auto;
        max-width: 680px;
        transform: none;
        width: 100%;
    }

    .landing-dashboard {
        width: 100%;
    }

    .landing-card-grid,
    .landing-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-models-heading {
        align-items: start;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .landing-model-grid {
        grid-template-columns: 1fr;
    }

    .landing-model-card h3 {
        min-height: 0;
    }

    .landing-points-band {
        grid-template-columns: 1fr;
    }

    .register-nav-action span {
        display: none;
    }

    .customer-form-panel {
        padding: 32px;
    }

    .customer-form-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .finance-page-heading,
    .finance-panel-heading {
        display: grid;
    }

    .finance-contract-model {
        border-left: 0;
        border-top: 2px solid #b9d8d3;
        min-width: 0;
        padding-left: 0;
        padding-top: 10px;
        text-align: left;
    }

    .finance-currency-totals {
        justify-content: flex-start;
    }

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

    .dashboard-reporting-heading,
    .dashboard-reporting-controls {
        align-items: stretch;
    }

    .dashboard-reporting-heading {
        flex-direction: column;
    }

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

    .landing-section {
        padding: 64px 0;
    }

    .landing-product-visual {
        display: grid;
        gap: 12px;
    }

    .landing-float-card {
        position: static;
    }

    .landing-link-card,
    .landing-points-card,
    .landing-qr-card {
        max-width: none;
    }

    .landing-link-card strong {
        max-width: min(260px, 70vw);
    }

    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-steps::before {
        display: none;
    }

    .landing-points-copy {
        flex-direction: column;
    }

    .landing-footer .landing-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-form-grid,
    .registration-model-grid,
    .treatment-fieldset > div,
    .contract-preview-summary {
        grid-template-columns: 1fr;
    }

    .register-grid-full,
    .treatment-fieldset > div > div:first-child {
        grid-column: auto;
    }

    .contract-dashboard-panel,
    .contract-renewal-action {
        align-items: stretch;
        flex-direction: column;
    }

    .contract-dashboard-panel .btn {
        width: 100%;
    }

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

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

    .payment-detail-grid,
    .payment-info-grid,
    .payment-modal-summary,
    .payment-modal-summary-compact {
        grid-template-columns: 1fr;
    }

    .customer-form-grid {
        grid-template-columns: 1fr;
    }

    .customer-field-full {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .finance-filter-grid,
    .finance-summary-grid,
    .finance-model-summary-grid,
    .finance-detail-grid {
        grid-template-columns: 1fr;
    }

    .finance-search-field,
    .finance-detail-wide {
        grid-column: auto;
    }

    .finance-tabs {
        display: grid;
        width: 100%;
    }

    .finance-tab {
        justify-content: center;
    }

    .finance-chart-wrap {
        height: 280px;
    }

    .dashboard-identity-header {
        gap: 12px;
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .dashboard-partner-name {
        font-size: 1.1rem;
        text-align: left;
    }

    .dashboard-customer-add {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
    }

    .profile-photo-editor {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-container {
        padding-left: 18px;
        padding-right: 18px;
        width: 100%;
    }

    .landing-hero-grid {
        display: block;
        gap: 38px;
        padding-bottom: 30px;
        padding-top: 28px;
    }

    .landing-hero-copy,
    .landing-hero h1,
    .landing-hero p,
    .landing-actions,
    .landing-support-note,
    .landing-product-visual,
    .landing-dashboard {
        max-width: calc(100vw - 36px);
        width: 100%;
    }

    .landing-product-visual {
        margin-top: 24px;
    }

    .landing-eyebrow {
        margin-bottom: 16px;
    }

    .landing-hero h1 {
        font-size: 1.75rem;
        line-height: 1.12;
        margin-bottom: 14px;
        overflow-wrap: anywhere;
    }

    .landing-hero p {
        font-size: 0.98rem;
        margin-bottom: 20px;
        overflow-wrap: break-word;
    }

    .landing-actions {
        margin-bottom: 14px;
    }

    .landing-actions .btn {
        width: 100%;
    }

    .landing-card-grid,
    .landing-mini-grid {
        grid-template-columns: 1fr;
    }

    .landing-models-heading {
        margin-bottom: 30px;
    }

    .landing-model-card {
        padding: 26px 22px 22px;
    }

    .landing-model-card-topline {
        margin-bottom: 18px;
    }

    .landing-model-flow {
        align-items: flex-start;
    }

    .landing-dashboard-content {
        padding: 14px;
    }

    .landing-dashboard-body {
        min-height: 0;
    }

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

    .landing-dashboard-detail-grid {
        display: none;
    }

    .landing-dashboard-nav span:nth-child(n + 3) {
        display: none;
    }

    .landing-float-card {
        display: none;
    }

    .landing-points-band {
        border-radius: 18px;
        padding: 30px 20px;
    }

    .landing-final-cta {
        padding: 60px 0;
    }

    .landing-footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .page-section {
        padding: 28px 0;
    }

    .surface-panel {
        padding: 20px 16px;
    }

    .auth-panel {
        padding: 28px 22px;
    }

    .auth-page-section {
        min-height: calc(100vh - 57px);
        padding: 24px 0;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-description {
        font-size: 0.94rem;
    }

    .register-page-section {
        align-items: flex-start;
    }

    .application-steps {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .application-step {
        font-size: 0.82rem;
    }

    .register-form-section {
        padding: 24px 0;
    }

    .registration-model-card {
        min-height: 0;
        padding: 22px 18px 18px;
    }

    .registration-model-flow {
        margin-top: 20px;
    }

    .registration-model-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-dependent-panel {
        padding-left: 14px;
    }

    .contract-scroll {
        max-height: 320px;
        padding: 17px 15px;
    }

    .register-nav-action {
        margin-top: 12px;
        width: 100%;
    }

    .register-nav-button {
        width: 100%;
    }

    .metric-box {
        padding: 18px;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .period-filter {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .dashboard-date-range {
        grid-template-columns: 1fr;
    }

    .dashboard-date-submit {
        width: 100%;
    }

    .dashboard-chart-heading {
        align-items: stretch;
    }

    .dashboard-chart-total {
        min-width: 96px;
    }

    .period-filter .btn {
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .payment-tabs {
        display: grid;
        width: 100%;
    }

    .payment-tab {
        justify-content: center;
    }

    .payment-panel-heading {
        display: grid;
    }

    .payment-form-grid,
    .payment-link-input-row,
    .payment-create-modal .payment-link-input-row {
        grid-template-columns: 1fr;
    }

    .payment-create-modal .payment-link-input-row {
        gap: 12px;
    }

    .payment-link-input {
        min-width: 0;
        width: 100%;
    }

    .payment-row-actions,
    .payment-send-actions,
    .payment-active-actions {
        display: grid;
        width: 100%;
    }

    .payment-row-actions .btn,
    .payment-send-actions .btn,
    .payment-active-actions .btn {
        width: 100%;
    }

    .payment-send-actions form {
        width: 100%;
    }

    .lead-detail-tabs {
        display: grid;
        gap: 0;
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }

    .lead-detail-tab {
        text-align: center;
    }

    .lead-detail-title {
        font-size: 1.45rem;
    }

    .lead-payment-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .lead-payment-heading .btn,
    .lead-note-form-actions .btn,
    .appointment-request-form-actions .btn {
        width: 100%;
    }

    .lead-note-create-button {
        justify-content: center;
    }

    .lead-note-composer {
        padding: 16px;
    }

    .lead-note-form-body {
        grid-template-columns: 1fr;
        padding: 18px 16px;
    }

    .lead-note-attachment-field {
        align-items: flex-end;
        flex-direction: column;
    }

    .lead-note-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 15px 16px;
    }

    .lead-note-history {
        padding: 20px 16px;
    }

    .lead-note-history-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .lead-note-history-actions {
        justify-content: flex-end;
    }

    .lead-notes-error-shell {
        padding: 20px 16px;
    }

    .lead-notes-error-actions .lead-note-create-button {
        width: 100%;
    }

    .lead-note-item {
        padding: 0;
    }

    .lead-note-card-header {
        padding: 12px 14px 0;
    }

    .lead-note-item-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        padding-left: 0;
    }

    .lead-note-content {
        padding: 16px;
    }

    .lead-note-card-header + .lead-note-content {
        padding-top: 8px;
    }

    .lead-note-card-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 16px;
    }

    .lead-note-attachment-button {
        justify-content: center;
        width: 100%;
    }

    .appointment-panel-heading {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 18px;
    }

    .appointment-new-button {
        width: 100%;
    }

    .appointment-form-shell {
        padding: 24px 18px;
    }

    .appointment-schedule-grid,
    .appointment-date-time-fields,
    .appointment-request-details {
        grid-template-columns: 1fr;
    }

    .appointment-request-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .appointment-submit-note {
        align-items: flex-start;
    }

    .appointment-request-list {
        padding: 20px 18px 24px;
    }

    .appointment-request-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .appointment-created-at {
        align-items: flex-start;
        text-align: left;
    }

    .appointment-cancel-form .btn {
        width: 100%;
    }

    .chart-wrap {
        height: 280px;
    }

    .btn {
        min-height: 44px;
    }

    .customer-form-panel {
        border-radius: 16px;
        padding: 24px 18px;
    }

    .customer-form-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .customer-form-header h1 {
        font-size: 1.5rem;
    }

    .customer-form-section {
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .customer-consents {
        padding: 17px 15px;
    }

    .customer-submit {
        width: 100%;
    }

    .contract-date-grid {
        grid-template-columns: 1fr;
    }

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

    .profile-membership {
        align-items: flex-start;
    }

    .profile-contract-grid {
        grid-template-columns: 1fr;
    }
}
.partner-passive-alert {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: baseline;
}

@media (max-width: 1199.98px) {
    .all-notes-filter-grid,
    .all-appointments-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .all-notes-filter-search,
    .all-appointments-filter-search,
    .all-notes-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .all-notes-filter-grid,
    .all-appointments-filter-grid,
    .all-appointment-card-body {
        grid-template-columns: 1fr;
    }

    .all-notes-filter-search,
    .all-appointments-filter-search,
    .all-notes-filter-actions {
        grid-column: auto;
    }

    .all-notes-filter-actions {
        display: grid;
    }

    .all-note-card-header,
    .all-note-card-footer,
    .all-appointment-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .all-appointment-card-side {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .note-card-system-meta {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .note-card-system-item--author {
        padding-right: 0;
        width: 100%;
    }

    .note-card-system-item--created {
        border-left: 0;
        padding-left: 0;
    }

    .all-note-card-side {
        align-items: flex-start;
    }

    .all-note-card-header.all-lead-card-header {
        align-items: flex-start;
        flex-direction: row;
    }

    .all-lead-card-side {
        align-items: flex-end;
    }

    .all-lead-card-footer {
        gap: 14px;
    }

    .all-lead-card-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .all-lead-card-actions .btn {
        width: 100%;
    }

    .all-lead-payment-action {
        grid-column: 1 / -1;
    }

    .all-note-detail-link {
        padding-left: 0;
    }

    .all-note-attachment-button {
        justify-content: center;
        width: 100%;
    }
}
