:root {
    --navy: var(--asd-brand-navy);
    --teal: var(--asd-brand-teal);
    --teal-dark: var(--asd-brand-teal-dark);
    --ink: #252829;
    --muted: #707575;
    --line: #e3e5e5;
    --canvas: #f3f4f4;
    --surface: #fff;
    --radius: 12px;
    --shadow: 0 1px 2px #14191e0a, 0 0 0 1px #11161b08
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: var(--asd-font-family);
    color: var(--ink);
    background: var(--canvas);
    font-size: 15px;
    line-height: 1.45;
    font-synthesis: none
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select {
    font: inherit
}

button,
a,
input,
select,
summary {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    cursor: default
}

a,
button,
input,
select,
summary {
    outline-offset: 4px
}

*:focus-visible {
    outline: 2px solid var(--teal)
}

input,
select {
    color: var(--ink)
}

h1,
h2,
h3,
p {
    margin: 0
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.7px;
    font-weight: 700
}

h2 {
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.15px
}

h3 {
    font-size: 15px;
    line-height: 1.4
}

small {
    font-size: 13px
}

.icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round
}

.skip {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 99;
    padding: 10px 20px;
    background: white
}

.skip:focus {
    top: 10px
}

.topbar {
    height: 64px;
    background: #202425;
    color: #e6e9e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 22px 0 18px;
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    box-shadow: 0 1px 0 #0004
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px
}

.brand-logo {
    background: #fff;
    padding: 5px 9px;
    border-radius: 6px;
    display: flex;
    width: 133px;
    height: 40px;
    align-items: center
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto
}

.app-name {
    font-size: 16px;
    font-weight: 700;
    color: #d9dddd;
    letter-spacing: .1px
}

.global-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #4b5051;
    background: #353a3b;
    border-radius: 8px;
    max-width: 560px;
    flex: 1;
    height: 37px;
    padding: 0 12px;
    color: #b7bdbf;
    box-shadow: inset 0 1px 2px #0001
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 14px
}

.global-search input::placeholder {
    color: #bac0c1
}

.global-search kbd {
    font: 12px Assistant;
    border: 1px solid #626767;
    border-radius: 3px;
    padding: 0 5px
}

.account {
    position: relative
}

.account summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700
}

.account summary::-webkit-details-marker {
    display: none
}

.avatar {
    height: 34px;
    width: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700
}

.admin-avatar {
    color: #c6faf2;
    background: #396c67;
    box-shadow: inset 0 0 0 1px #ffffff1a
}

.account-menu {
    position: absolute;
    right: 0;
    top: 45px;
    padding: 7px;
    background: white;
    color: var(--ink);
    width: 265px;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 30px #0002
}

.account-menu>strong {
    display: block;
    padding: 9px 8px 12px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    margin-bottom: 5px
}

.account-menu a,
.account-menu button {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 9px;
    border: 0;
    background: none;
    text-align: left;
    border-radius: 6px;
    font-size: 14px
}

.account-menu a:hover,
.account-menu button:hover {
    background: var(--canvas)
}

.sidebar {
    position: fixed;
    inset: 64px auto 0 0;
    width: 235px;
    background: #ebeded;
    border-right: 1px solid #dfe2e2;
    padding: 18px 13px 14px;
    display: flex;
    flex-direction: column;
    z-index: 20
}

.workspace {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 9px 24px
}

.workspace-icon {
    background: var(--navy);
    color: white;
    font-weight: 700;
    font-size: 21px;
    border-radius: 8px;
    height: 34px;
    width: 34px;
    display: grid;
    place-items: center
}

.workspace strong {
    font-size: 14px
}

.workspace small {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.status-dot {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    display: inline-block;
    background: var(--teal);
    flex-shrink: 0
}

.workspace>.status-dot {
    margin-left: auto
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 3px;
    color: #4d5354
}

.nav-item .icon {
    width: 18px;
    height: 18px;
    color: #747c7d
}

.nav-item:hover {
    background: #e0e4e4
}

.nav-item.active {
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    box-shadow: 0 1px 3px #0000000a
}

.nav-item.active .icon {
    color: var(--navy)
}

.nav-label {
    font-size: 10px;
    letter-spacing: 1.15px;
    color: #8c9393;
    font-weight: 700;
    margin: 25px 10px 8px
}

.nav-count {
    font-size: 11px;
    background: #e3e8e9;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: auto;
    color: #667172
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px
}

.source-status {
    border-top: 1px solid #d8dede;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 7px 18px
}

.source-status strong {
    font-size: 12px;
    display: block
}

.source-status small {
    font-size: 11px;
    color: var(--muted)
}

.source-status>.icon {
    width: 14px;
    color: #82918e;
    margin-left: auto
}

.qb-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #187a42;
    color: white;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -2px;
    padding-right: 2px;
    flex-shrink: 0
}

main#content {
    margin: 64px 0 0 235px;
    padding: 31px 32px 20px;
    max-width: 1860px;
    min-height: calc(100vh - 64px)
}

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

.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.25px;
    color: #828a8c;
    margin-bottom: 8px
}

.eyebrow span {
    margin: 0 8px;
    color: #a4acad
}

.page-description {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #d0d5d5;
    border-radius: 7px;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 1px 1px #00000007;
    line-height: 1.4
}

.button .icon {
    width: 16px;
    height: 16px
}

.button:hover {
    background: #f5f7f7;
    border-color: #adb7b8
}

.button.primary {
    background: var(--navy);
    border-color: #034363;
    color: white;
    box-shadow: inset 0 1px #ffffff1c, 0 1px 2px #002d4620
}

.button.primary:hover {
    background: #004266
}

.button.small {
    min-height: 29px;
    padding: 4px 9px;
    font-size: 12px
}

.report-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap
}

.period-switch {
    display: flex;
    gap: 2px;
    background: #e4e7e7;
    border-radius: 8px;
    padding: 3px
}

.period-switch a {
    font-size: 13px;
    padding: 5px 13px;
    border-radius: 6px;
    color: #677171
}

.period-switch a.selected {
    background: #fff;
    box-shadow: 0 1px 3px #0001;
    font-weight: 700;
    color: #343a3b
}

.date-range {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #737a7b
}

.date-range .icon {
    width: 15px;
    height: 15px
}

.snapshot-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #697372;
    margin-left: auto
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

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

.kpi {
    padding: 18px 19px;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.kpi-label {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px
}

.kpi-label .icon {
    color: #939c9c;
    width: 16px;
    height: 16px
}

.kpi>strong {
    font-size: 29px;
    letter-spacing: -.9px;
    line-height: 1.2;
    margin: 13px 0 12px;
    white-space: nowrap
}

.kpi-note {
    font-size: 11px;
    color: #7c8586;
    display: flex;
    align-items: center;
    gap: 6px
}

.kpi:is(a):hover {
    border-color: #a1b9c0;
    box-shadow: 0 2px 6px #002d460c
}

.mini-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--teal);
    font-style: normal
}

.mini-dot.navy {
    background: var(--navy)
}

.mini-dot.teal {
    background: var(--teal)
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(275px, 1fr);
    gap: 20px;
    margin-bottom: 20px
}

.card-heading {
    padding: 19px 21px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px
}

.card-heading p {
    font-size: 12px;
    color: #838b8b;
    margin-top: 5px
}

.card-heading>.icon {
    color: #98a3a4
}

.legend {
    font-size: 11px;
    color: #757f80;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding-top: 3px
}

.chart-summary {
    padding: 0 21px;
    display: flex;
    align-items: baseline;
    gap: 12px
}

.chart-summary strong {
    font-size: 23px;
    letter-spacing: -.6px
}

.chart-summary>span {
    font-size: 11px;
    color: #899192
}

.chart {
    height: 203px;
    margin: 13px 16px 0;
    position: relative
}

.chart svg {
    width: 100%;
    height: 100%;
    overflow: visible
}

.chart-label {
    font-size: 11px;
    fill: #8b9394
}

.chart-grid {
    stroke: #e9eded;
    stroke-width: 1;
    stroke-dasharray: 3 4
}

.chart-line {
    stroke: var(--teal);
    fill: none;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round
}

.chart-hit {
    fill: transparent;
    stroke: none;
    cursor: crosshair
}

.chart-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    background: #202a2d;
    color: white;
    border-radius: 6px;
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 2px 8px #0002;
    z-index: 2
}

.chart-data {
    padding: 0 21px 10px;
    color: #748183;
    font-size: 11px
}

.chart-data summary {
    cursor: pointer;
    width: max-content
}

.compact-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    margin-top: 8px
}

.compact-table th,
.compact-table td {
    padding: 4px 6px;
    border-bottom: 1px solid var(--line);
    text-align: left
}

.card-foot {
    padding: 11px 21px;
    background: #fafbfb;
    border-top: 1px solid #edf0f0;
    font-size: 11px;
    color: #7a8384;
    display: flex;
    align-items: center;
    gap: 7px
}

.card-foot .icon {
    width: 13px;
    height: 13px
}

.service-number {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 21px;
    margin-top: 4px
}

.service-number>strong {
    font-size: 32px;
    letter-spacing: -1px
}

.service-number>span {
    font-size: 12px;
    color: #838b8b
}

.stack-bar {
    height: 9px;
    border-radius: 4px;
    background: var(--teal);
    margin: 17px 21px 16px;
    overflow: hidden
}

.stack-bar span {
    height: 100%;
    background: var(--navy);
    display: block;
    border-right: 3px solid white
}

.split-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 21px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f2;
    font-size: 12px
}

.split-row>span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1
}

.split-row>.icon {
    width: 13px;
    color: #919c9e
}

.split-row:hover {
    color: var(--teal-dark)
}

.insight-box {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #f1f7f8;
    margin: 16px 21px;
    padding: 11px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.5;
    color: #647d83
}

.insight-box>.icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: #4d7d89
}

.insight-box strong {
    display: block;
    color: #3b6470;
    margin-bottom: 2px
}

.text-link {
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px
}

.text-link:hover {
    text-decoration: underline
}

.text-link .icon {
    width: 14px
}

.service-card>.text-link {
    margin: 0 21px 20px;
    font-size: 12px
}

.table-scroll {
    overflow: auto
}

.data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px
}

.data-table th {
    text-align: left;
    background: #f8f9f9;
    color: #697273;
    font-weight: 400;
    font-size: 11px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f0;
    vertical-align: middle
}

.data-table tbody tr:last-child td {
    border-bottom: 0
}

.data-table tbody tr:hover {
    background: #fafcfc
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 21px
}

.data-table td>small {
    display: block;
    color: #919898;
    margin-top: 3px;
    font-size: 11px
}

.data-table .rank-cell {
    width: 40px;
    color: #9aa3a4;
    font-size: 12px;
    padding-right: 0
}

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

.amount {
    font-weight: 700;
    color: #3d4c51
}

.customer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    max-width: 350px
}

.customer-link>span:last-child {
    min-width: 0
}

.customer-link strong {
    font-size: 12px;
    font-weight: 700;
    display: block;
    line-height: 1.35
}

.customer-link:hover strong {
    color: var(--teal-dark);
    text-decoration: underline
}

.customer-link small {
    display: block;
    font-size: 11px;
    color: #8b9394;
    margin-top: 4px
}

.customer-avatar {
    background: #eaf1f4;
    color: #508093;
    height: 31px;
    width: 31px;
    font-size: 10px;
    border: 1px solid #dbe7ec;
    border-radius: 7px
}

.data-table tr:nth-child(2n) .customer-avatar {
    background: #edf3ee;
    color: #6d8b72;
    border-color: #e0e9e0
}

.data-table tr:nth-child(3n) .customer-avatar {
    background: #f3eef7;
    color: #937ba7;
    border-color: #e9e0f0
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.3;
    border-radius: 5px;
    padding: 4px 7px;
    background: #eef1f3;
    color: #68747b;
    font-weight: 400
}

.badge.teal {
    background: #e1f3ed;
    color: #28755d
}

.badge.amber {
    background: #fff0cf;
    color: #8a650f
}

.badge.quiet {
    background: #f0f1f1;
    color: #8b9393
}

.badge.large {
    padding: 7px 12px;
    font-size: 13px
}

.badge>.icon {
    width: 13px;
    height: 13px
}

.table-arrow {
    display: inline-flex;
    color: #a3adaf;
    padding: 5px
}

.table-arrow:hover {
    color: var(--teal-dark);
    background: #eaf4f5;
    border-radius: 4px
}

.table-arrow .icon {
    width: 15px;
    height: 15px
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 20px;
    margin-top: 20px
}

.ledger {
    padding: 20px 21px
}

.ledger>.muted {
    font-size: 12px;
    margin: 5px 0 12px
}

.ledger>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f2;
    color: #7c8587
}

.ledger>div:last-child {
    border: 0;
    padding-bottom: 0
}

.ledger>div strong {
    color: #40535a;
    font-weight: 400
}

.next-step {
    padding: 22px 24px;
    position: relative;
    background: linear-gradient(120deg, #fff 45%, #f0f7f8)
}

.next-step:after {
    content: '✦';
    position: absolute;
    right: 32px;
    top: 32px;
    font-size: 130px;
    line-height: 1;
    color: #009dae0c;
    pointer-events: none
}

.next-step p {
    font-size: 13px;
    color: #829093;
    max-width: 500px;
    margin: 9px 0 18px
}

.next-step .eyebrow {
    color: #60818d;
    font-size: 9px
}

.page-footer {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 11px;
    color: #96a0a1;
    margin-top: 28px;
    padding-top: 4px
}

.page-footer>span:first-child,
.page-footer>a {
    display: flex;
    align-items: center;
    gap: 5px
}

.page-footer .icon {
    height: 12px;
    width: 12px
}

.page-footer>a {
    margin-left: auto;
    color: #7b8a8d
}

.muted {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6
}

.list-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: #7a8385;
    margin: 5px 0 20px
}

.list-summary strong {
    color: #414f54;
    font-size: 14px
}

.list-summary .subtle {
    margin-left: auto;
    color: #97a0a1;
    font-size: 12px
}

.list-tabs {
    padding: 11px 16px 0;
    display: flex;
    gap: 6px;
    overflow: auto;
    border-bottom: 1px solid var(--line)
}

.list-tabs a {
    font-size: 13px;
    white-space: nowrap;
    padding: 8px 12px 12px;
    color: #858e91;
    border-bottom: 2px solid transparent
}

.list-tabs a.selected {
    color: var(--navy);
    border-color: var(--navy);
    font-weight: 700
}

.table-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    flex-wrap: wrap
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #d9dede;
    border-radius: 7px;
    gap: 8px;
    padding: 7px 10px;
    min-width: 220px;
    height: 36px;
    color: #879497
}

.search-input .icon {
    width: 16px;
    height: 16px
}

.search-input input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 13px;
    background: transparent
}

.search-input:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 1px var(--teal)
}

.search-input input::placeholder {
    color: #9ba4a5
}

.select-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d9dede;
    border-radius: 7px;
    height: 36px;
    padding: 0 6px 0 10px;
    gap: 7px
}

.select-wrap>span {
    font-size: 11px;
    color: #899395
}

.select-wrap select {
    border: 0;
    background: white;
    font-size: 12px;
    padding: 4px 2px;
    max-width: 145px
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #fcfdfd;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: #7c898c;
    gap: 20px
}

.pagination>div {
    display: flex;
    align-items: center;
    gap: 12px
}

.footnote {
    font-size: 11px;
    color: #909b9e;
    margin-top: 14px
}

.nowrap {
    white-space: nowrap
}

.review-column {
    min-width: 240px;
    max-width: 300px;
    font-size: 11px;
    color: #76858a
}

.empty {
    text-align: center !important;
    padding: 50px 25px !important;
    color: #819196
}

.empty h2,
.empty h3 {
    color: #45616b
}

.empty p {
    margin: 8px 0 18px
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    gap: 20px
}

.detail-grid .card {
    margin-bottom: 20px
}

.detail-grid>section.card {
    margin-bottom: 0
}

.card-body {
    padding: 20px 21px
}

.customer-insight .card-body {
    padding-top: 0
}

.lead-comment {
    font-size: 15px;
    color: #52666e;
    line-height: 1.65;
    margin-top: 13px
}

.inline-facts {
    display: flex;
    gap: 42px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 18px
}

.inline-facts small {
    color: #899599;
    display: block;
    font-size: 12px
}

.inline-facts strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    letter-spacing: -.4px
}

.context-list {
    margin: 0;
    padding: 0 21px 20px
}

.context-list dt {
    font-size: 11px;
    color: #8c989b;
    margin-top: 15px
}

.context-list dd {
    margin: 4px 0 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px
}

.small-qb {
    width: 20px;
    height: 20px;
    font-size: 13px
}

.item-table td:first-child {
    max-width: 500px
}

.item-table td>strong {
    font-size: 12px
}

.item-table td>small {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 5px
}

.mix-list {
    padding-top: 0
}

.mix-list>div {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f2;
    font-size: 13px;
    color: #718388
}

.mix-list strong {
    color: #415a66;
    font-weight: 400;
    white-space: nowrap
}

.mix-list>.mix-total {
    border: 0;
    padding-top: 16px;
    font-size: 12px
}

.back-link {
    font-size: 12px;
    color: #748c94;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 9px
}

.back-link .icon {
    width: 14px;
    height: 14px
}

.card-body>h2 {
    margin-bottom: 12px
}

.card-body>.badge {
    margin-top: 4px;
    margin-bottom: 8px
}

.card-body>.button {
    margin-top: 16px
}

.definition-list {
    padding: 0 21px 8px
}

.definition-list>div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid var(--line)
}

.definition-icon {
    color: #96afb7;
    font-size: 12px;
    background: #eff4f5;
    border-radius: 6px;
    padding: 4px 6px;
    flex-shrink: 0
}

.definition-list p {
    font-size: 13px;
    color: #7a898e;
    margin-top: 6px;
    line-height: 1.65
}

.spaced {
    margin-top: 12px
}

.notes-list {
    margin: 12px 0 0;
    padding-left: 17px;
    font-size: 13px;
    color: #7f8e93
}

.notes-list li {
    margin-bottom: 13px;
    padding-left: 2px;
    line-height: 1.55
}

.success-text {
    color: #278268
}

.source-counts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px 21px 20px;
    gap: 20px
}

.source-counts small {
    display: block;
    color: #8e9b9f;
    font-size: 12px
}

.source-counts strong {
    display: block;
    font-size: 23px;
    margin-top: 4px;
    letter-spacing: -.5px
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 20px
}

.upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 30px 20px;
    border: 1px dashed #b3c8ce;
    border-radius: 10px;
    background: #fafcfc;
    text-align: center;
    cursor: pointer
}

.upload-zone>.icon {
    width: 30px;
    height: 30px;
    color: var(--teal)
}

.upload-zone>span {
    color: #8c9c9f;
    font-size: 12px
}

.upload-zone input {
    font-size: 12px;
    max-width: 100%;
    margin-top: 10px
}

.upload-zone input::file-selector-button {
    background: #fff;
    border: 1px solid #cad8dd;
    border-radius: 5px;
    font: 700 12px Assistant;
    padding: 5px 8px;
    margin-right: 10px;
    color: #4c6874;
    cursor: pointer
}

.upload-form>.muted {
    margin-top: 12px
}

.steps {
    padding-left: 23px;
    margin-top: 25px
}

.steps li {
    padding-left: 7px;
    margin-bottom: 22px;
    font-size: 14px
}

.steps span {
    display: block;
    font-size: 13px;
    color: #859497;
    margin-top: 5px
}

.steps li::marker {
    color: var(--teal);
    font-weight: 700
}

.row-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 35px 30px;
    max-width: 1000px
}

.settings-grid>div {
    padding-top: 13px
}

.settings-grid h2 {
    margin-bottom: 8px
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px
}

.profile-row small {
    display: block;
    color: #8a989b;
    margin-top: 3px;
    font-size: 12px
}

.profile-row>.badge {
    margin-left: auto
}

.big-avatar {
    width: 44px;
    height: 44px;
    font-size: 15px;
    background: #e7f2ef;
    color: #426c65
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 16px
}

.setting-row p {
    margin-top: 4px;
    font-size: 12px
}

.setting-row .button {
    font-size: 12px
}

.settings-list {
    margin: 0
}

.settings-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    border-bottom: 1px solid #edf1f2;
    padding: 12px 0
}

.settings-list>div:last-child {
    border: 0
}

.settings-list dt {
    color: #7f9399
}

.settings-list dd {
    margin: 0
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0 0
}

.notice {
    background: #e6f4ef;
    border: 1px solid #baded1;
    padding: 11px 15px;
    border-radius: 8px;
    color: #286d58;
    font-size: 13px;
    margin-bottom: 18px
}

.notice.error {
    color: #9a3136;
    border-color: #eec2c5;
    background: #fff0f0
}

.error-text {
    color: #b54141;
    font-size: 12px
}

.mobile-menu {
    display: none
}

.icon-button {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 4px
}

.login-page {
    background: #f3f5f5;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 35px
}

.login-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    width: min(980px, 100%);
    background: white;
    border: 1px solid #dce3e5;
    border-radius: 20px;
    box-shadow: 0 18px 70px #003c5710;
    overflow: hidden;
    min-height: 590px
}

.login-intro {
    background: #edf4f6;
    padding: 48px 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.login-intro>img {
    width: 185px;
    height: auto;
    background: white;
    border-radius: 7px;
    padding: 10px;
    margin-bottom: 45px
}

.login-intro .eyebrow {
    color: #728d99;
    font-size: 10px;
    letter-spacing: 1.5px
}

.login-intro h1 {
    font-size: 35px;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 8px 0 16px
}

.login-intro>p {
    font-size: 14px;
    color: #7e949d;
    line-height: 1.7
}

.login-decoration {
    background: #ffffffa8;
    border: 1px solid #dbe8ec;
    border-radius: 10px;
    padding: 17px 20px;
    width: 100%;
    margin-top: 38px
}

.login-decoration>div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #688894
}

.login-decoration>span {
    font-size: 10px;
    color: #99abb1
}

.decor-bars {
    height: 50px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 10px 0;
    border-bottom: 1px solid #dbe8ec
}

.decor-bars i {
    height: 30%;
    flex: 1;
    background: #addbdf;
    border-radius: 3px 3px 0 0
}

.decor-bars i:nth-child(2n) {
    height: 50%;
    background: #6ebdc7
}

.decor-bars i:nth-child(3n) {
    height: 42%;
    background: #8dcad2
}

.decor-bars i:nth-child(4n) {
    height: 80%;
    background: #378eaa
}

.decor-bars i:last-child {
    height: 100%;
    background: var(--navy)
}

.login-panel {
    padding: 58px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.login-lock {
    height: 40px;
    width: 40px;
    border: 1px solid #e0e9eb;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--navy);
    margin-bottom: 24px;
    background: #f8fafb
}

.login-panel h2 {
    font-size: 25px;
    letter-spacing: -.5px;
    margin-bottom: 7px
}

.login-form {
    display: flex;
    flex-direction: column;
    margin-top: 29px
}

.login-form label,
.password-form>label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px
}

.login-form input:not([type=hidden]),
.password-form input {
    width: 100%;
    border: 1px solid #cfdadc;
    border-radius: 7px;
    height: 40px;
    padding: 8px 11px;
    font-size: 14px;
    margin-bottom: 19px;
    background: #fff
}

.login-form button {
    margin-top: 6px;
    min-height: 40px;
    font-size: 14px;
    justify-content: space-between;
    padding: 8px 15px
}

.login-help {
    color: #97a5a8;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 20px
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #a8b3b6;
    margin-top: 35px
}

.login-footer .icon {
    width: 13px;
    height: 13px
}

.login-panel .notice {
    margin: 17px 0 -12px
}

.password-card {
    max-width: 540px
}

.password-form {
    display: flex;
    flex-direction: column
}

.password-form input {
    margin-bottom: 8px
}

.password-form>label {
    margin-top: 14px
}

.help-text {
    font-size: 12px;
    color: #8a9ca1
}

.help-text ul {
    padding-left: 17px;
    margin: 2px 0 8px
}

.password-form>.button {
    align-self: flex-start;
    margin-top: 20px
}

@media(min-width:1700px) {
    main#content {
        padding: 36px 46px
    }

    .chart {
        height: 255px
    }

    .kpi>strong {
        font-size: 33px
    }

    .kpi-note {
        font-size: 12px
    }

    .overview-grid {
        grid-template-columns: 2.2fr 1fr
    }

    .service-card .insight-box {
        margin-top: 25px
    }

    .service-card .split-row {
        padding: 14px 0
    }
}

@media(max-width:1250px) {
    main#content {
        padding: 25px 22px
    }

    .sidebar {
        width: 215px;
        padding-inline: 10px
    }

    main#content {
        margin-left: 215px
    }

    .brand-area {
        min-width: 215px
    }

    .kpi {
        padding: 16px 14px
    }

    .kpi>strong {
        font-size: 25px
    }

    .kpi-label {
        font-size: 12px
    }

    .kpi-note {
        font-size: 10px
    }

    .overview-grid {
        gap: 16px;
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr)
    }

    .card-heading {
        padding: 17px
    }

    .chart-summary {
        padding-inline: 17px
    }

    .chart-summary>span {
        display: none
    }

    .data-table td,
    .data-table th {
        padding-left: 13px;
        padding-right: 13px
    }

    .legend {
        display: none
    }

    .select-wrap>span {
        display: none
    }

    .account-label {
        display: none
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1.9fr) 265px
    }
}

@media(max-width:1000px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .kpi>strong {
        font-size: 29px
    }

    .kpi-note {
        font-size: 11px
    }

    .overview-grid {
        grid-template-columns: 1fr
    }

    .chart {
        height: 240px
    }

    .service-card {
        display: block
    }

    .detail-grid {
        grid-template-columns: 1fr
    }

    .detail-grid>aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px
    }

    .detail-grid>aside>.card:first-child {
        grid-row: span 2
    }

    .bottom-grid {
        grid-template-columns: 1fr 1.2fr
    }

    .page-description {
        max-width: 510px
    }

    .page-heading {
        align-items: flex-start
    }

    .heading-actions {
        padding-top: 24px
    }

    .snapshot-tag {
        display: none
    }

    .settings-grid {
        grid-template-columns: 1fr
    }

    .settings-grid>div {
        padding: 0
    }

    .settings-grid {
        gap: 12px
    }

    .settings-grid>.card {
        margin-bottom: 20px
    }

    .admin-grid {
        grid-template-columns: 1fr
    }

    .admin-grid .steps {
        display: flex;
        gap: 30px;
        flex-wrap: wrap
    }

    .admin-grid .steps li {
        max-width: 170px
    }

    .list-summary {
        flex-wrap: wrap;
        gap: 8px 22px
    }

    .list-summary .subtle {
        display: none
    }

    .page-footer>span:nth-child(2) {
        display: none
    }
}

@media(max-width:760px) {
    .topbar {
        padding: 0 14px;
        height: 58px;
        gap: 12px
    }

    .brand-area {
        min-width: auto;
        gap: 9px
    }

    .brand-logo {
        width: 116px;
        height: 35px;
        padding: 5px 7px
    }

    .app-name {
        font-size: 14px
    }

    .global-search {
        display: none
    }

    .mobile-menu {
        display: block
    }

    .account summary>.icon {
        display: none
    }

    .sidebar {
        transform: translateX(-100%);
        inset: 58px auto 0;
        width: 235px;
        transition: transform .18s;
        box-shadow: 3px 0 20px #0001
    }

    .sidebar.open {
        transform: translateX(0)
    }

    main#content {
        margin: 58px 0 0;
        padding: 23px 16px 20px
    }

    h1 {
        font-size: 25px
    }

    .page-heading {
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 18px
    }

    .heading-actions {
        padding: 0
    }

    .heading-actions>.button {
        min-height: 30px;
        font-size: 11px
    }

    .page-description {
        font-size: 13px
    }

    .eyebrow {
        font-size: 9px
    }

    .report-toolbar {
        gap: 9px;
        margin-bottom: 15px
    }

    .period-switch a {
        font-size: 12px;
        padding: 5px 10px
    }

    .date-range {
        font-size: 10px
    }

    .kpi-grid {
        gap: 10px;
        margin-bottom: 15px
    }

    .kpi {
        padding: 14px 12px
    }

    .kpi-label {
        font-size: 12px
    }

    .kpi-label .icon {
        display: none
    }

    .kpi>strong {
        font-size: 25px;
        margin: 10px 0
    }

    .kpi-note {
        font-size: 10px;
        line-height: 1.4;
        min-height: 25px
    }

    .overview-grid {
        margin-bottom: 15px
    }

    .chart {
        margin-inline: 10px
    }

    .card-heading {
        padding: 17px 15px;
        gap: 10px
    }

    .card-heading h2 {
        font-size: 15px
    }

    .card-heading p {
        font-size: 11px
    }

    .card-heading>.button {
        font-size: 10px;
        padding: 4px 7px
    }

    .card-heading>.button .icon {
        display: none
    }

    .card-foot {
        padding-inline: 15px;
        font-size: 10px;
        align-items: flex-start
    }

    .card-foot .icon {
        margin-top: 2px
    }

    .chart-summary {
        padding-inline: 15px
    }

    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px
    }

    .data-table {
        min-width: 650px
    }

    .table-filters {
        padding: 12px;
        gap: 8px
    }

    .search-input {
        flex-basis: 100%
    }

    .select-wrap {
        flex: 1;
        padding-left: 5px
    }

    .select-wrap select {
        max-width: 100%;
        width: 100%
    }

    .table-filters .button {
        font-size: 12px;
        padding: 7px 10px
    }

    .list-tabs {
        padding-inline: 5px
    }

    .list-tabs a {
        font-size: 12px;
        padding-inline: 10px
    }

    .list-summary {
        font-size: 12px;
        margin-bottom: 15px
    }

    .list-summary strong {
        font-size: 13px
    }

    .pagination {
        font-size: 11px;
        padding: 12px;
        gap: 10px
    }

    .pagination>div {
        gap: 8px
    }

    .pagination>div>span {
        display: none
    }

    .footnote {
        font-size: 10px
    }

    .detail-grid>aside {
        display: block
    }

    .item-table {
        min-width: 520px
    }

    .source-counts {
        grid-template-columns: 1fr 1fr;
        gap: 20px
    }

    .settings-grid {
        gap: 10px
    }

    .profile-row {
        font-size: 12px
    }

    .profile-row>.badge {
        display: none
    }

    .setting-row {
        gap: 12px
    }

    .card-body {
        padding: 17px
    }

    .setting-row h3 {
        font-size: 13px
    }

    .setting-row p {
        font-size: 11px
    }

    .setting-row .button {
        font-size: 11px
    }

    .page-footer {
        font-size: 10px;
        gap: 10px;
        flex-wrap: wrap
    }

    .login-page {
        padding: 20px
    }

    .login-layout {
        display: block;
        width: min(460px, 100%);
        min-height: 0
    }

    .login-intro {
        padding: 25px 28px
    }

    .login-intro>img {
        width: 160px;
        margin-bottom: 20px
    }

    .login-intro h1 {
        font-size: 26px;
        margin-bottom: 0
    }

    .login-intro>p,
    .login-decoration {
        display: none
    }

    .login-panel {
        padding: 28px
    }

    .login-lock {
        display: none
    }

    .login-panel h2 {
        font-size: 23px
    }

    .login-form {
        margin-top: 22px
    }

    .login-footer {
        margin-top: 24px
    }

    .inline-facts {
        gap: 25px
    }

    .inline-facts strong {
        font-size: 18px
    }

    .lead-comment {
        font-size: 14px
    }

    .back-link {
        font-size: 11px
    }

    .item-table td>strong {
        font-size: 11px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}

/* Keep secondary text readable against the neutral admin surfaces. */
.kpi-note,
.card-heading p,
.chart-summary>span,
.legend,
.card-foot,
.customer-link small,
.data-table td>small,
.footnote,
.eyebrow,
.nav-label,
.page-footer,
.page-footer>a,
.chart-data,
.date-range,
.snapshot-tag,
.context-list dt,
.inline-facts small,
.source-counts small,
.login-help,
.login-footer,
.upload-zone>span,
.steps span {
    color: #65767c
}

.customer-link strong {
    font-size: 13px
}

.chart-label {
    fill: #65767c
}

@media (max-width:760px) { .kpi > strong {font-size:22px;} }
