:root {
    --bg: #f5f6f8;
    --white: #fff;
    --ink: #252738;
    --muted: #6c7083;
    --line: #e9eaf0;
    --purple: #6674df;
    --purple-light: #eef0fe;
    --green: #367d60;
    --lime: #e3edc0;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font:
        13px/1.5 'DM Sans',
        sans-serif;
    -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    font: inherit;
}
button {
    cursor: pointer;
}
button,
a,
input,
select {
    touch-action: manipulation;
}
:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 4px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    background: var(--ink);
    color: white;
    padding: 10px;
    z-index: 100;
}
.skip:focus {
    top: 20px;
}
.header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 1510px;
    padding: 0 48px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 70px;
    height: 86px;
}
.brand {
    display: flex;
    gap: 9px;
    align-items: center;
    font:
        800 30px Manrope,
        sans-serif;
    letter-spacing: -1.9px;
}
.brand-symbol {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--purple);
    color: white;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    transform: rotate(-9deg);
    padding-bottom: 4px;
}
.brand-sub {
    font:
        600 8px 'DM Sans',
        sans-serif;
    letter-spacing: 1.8px;
    align-self: end;
    margin-bottom: 7px;
    margin-left: 1px;
}
.header nav {
    display: flex;
    gap: 32px;
    height: 100%;
    font-size: 12px;
    color: var(--muted);
}
.header nav a {
    display: flex;
    align-items: center;
    position: relative;
}
.header nav .active {
    color: var(--purple);
    font-weight: 600;
}
.header nav .active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple);
    border-radius: 3px;
}
.header-right {
    margin-left: auto;
    display: flex;
    gap: 20px;
    align-items: center;
}
.workspace-label {
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 1.3px;
}
.help-button {
    border: 1px solid var(--line);
    background: white;
    color: var(--muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
}
.avatar {
    background: #f3e9dc;
    color: #846244;
    width: 35px;
    height: 35px;
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 600;
}
.wrap {
    max-width: 1510px;
    margin: auto;
    padding: 38px 48px 0;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}
.eyebrow {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--muted);
}
h1 {
    font:
        600 29px/1.2 Manrope,
        sans-serif;
    letter-spacing: -1.2px;
    margin: 11px 0 10px;
}
.wave {
    display: inline-block;
    color: #a5b063;
    font-size: 30px;
    margin-left: 8px;
    font-weight: 400;
}
.page-heading > div > p:last-child {
    font-size: 12px;
    color: var(--muted);
}
.heading-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.button {
    border: 0;
    background: var(--purple);
    color: white;
    border-radius: 7px;
    padding: 10px 15px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
}
.button:hover {
    background: #535fc0;
}
.button.secondary {
    border: 1px solid #dfe1e9;
    background: white;
    color: var(--ink);
}
.heading-actions select {
    background: var(--white);
    border: 1px solid #dfe1e9;
    color: var(--ink);
    border-radius: 7px;
    padding: 10px 34px 10px 13px;
    font-size: 11px;
    line-height: 1.2;
    /* Custom chevron: the native arrow ignores padding and hugs the right edge */
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23252738' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    cursor: pointer;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}
.metric {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 19px 21px;
    overflow: hidden;
}
.metric-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
}
.metric-icon {
    height: 25px;
    width: 25px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #f7f8fc;
    color: #9297b3;
    font-size: 15px;
}
.metric > strong {
    display: block;
    font:
        700 28px Manrope,
        sans-serif;
    letter-spacing: -1px;
    margin: 10px 0 17px;
}
.metric-foot {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 9px;
    position: relative;
    z-index: 1;
}
.comparison {
    color: var(--green);
    font-weight: 500;
}
.metric-foot a {
    color: var(--ink);
}
.action-tag {
    background: #f5eddc;
    color: #997331;
    border-radius: 4px;
    padding: 3px 6px;
}
.sparkline {
    position: absolute;
    width: 110px;
    height: 40px;
    right: 20px;
    top: 55px;
    opacity: 0.45;
}
.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
}
.main-column,
.insights {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 11px;
    min-width: 0;
}
.panel-heading {
    padding: 23px 23px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.panel h2 {
    font:
        700 13px Manrope,
        sans-serif;
    letter-spacing: -0.25px;
}
.panel-heading p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
}
.chart-view {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
}
.chart-view button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 4px;
}
.chart-view .selected {
    background: var(--purple-light);
    color: var(--purple);
}
.revenue-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 23px;
}
.revenue-summary strong {
    font:
        700 24px Manrope,
        sans-serif;
    letter-spacing: -1px;
}
.revenue-summary > span {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 9px;
    color: var(--muted);
}
.key-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
}
.revenue-chart {
    height: 265px;
    padding: 20px 20px 10px;
}
.data-details {
    font-size: 10px;
    color: var(--muted);
    padding: 0 23px 18px;
}
.data-details summary {
    cursor: pointer;
    list-style: none;
    display: inline-block;
    border-bottom: 1px dashed #c6c8d5;
    padding-bottom: 2px;
}
.data-table-scroll {
    max-height: 210px;
    overflow: auto;
    margin-top: 15px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
th {
    text-align: left;
    font-size: 9px;
    font-weight: 500;
    color: var(--muted);
    background: #fafbfc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    white-space: nowrap;
}
td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f1f5;
}
.count {
    font:
        500 9px 'DM Sans',
        sans-serif;
    color: var(--muted);
    padding: 3px 6px;
    background: #f3f4f8;
    border-radius: 4px;
    margin-left: 5px;
}
.search {
    display: flex;
    gap: 6px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--muted);
}
.search input {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 0;
    width: 135px;
    font-size: 10px;
    color: var(--ink);
}
.search:focus-within {
    outline: 2px solid var(--purple);
}
.table-filters {
    display: flex;
    gap: 18px;
    padding: 0 23px;
    overflow: auto;
    scrollbar-width: thin;
}
.table-filters button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    padding: 5px 0 14px;
    white-space: nowrap;
}
.table-filters .selected {
    color: var(--purple);
    border-bottom-color: var(--purple);
    font-weight: 600;
}
.table-filters span {
    font-size: 8px;
    background: var(--purple-light);
    border-radius: 4px;
    padding: 2px 4px;
    margin-left: 4px;
}
.order-table-scroll {
    overflow: auto;
}
th button {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0;
    display: flex;
    gap: 7px;
}
.order-id {
    font-weight: 600;
    color: var(--purple);
    font-size: 10px;
}
.customer {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}
.customer-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f1edf7;
    color: #8e78b3;
    font-size: 8px;
    font-weight: 600;
}
.customer small {
    color: var(--muted);
    display: block;
    font-size: 8px;
    margin-top: 2px;
}
.order-date {
    color: var(--muted);
    white-space: nowrap;
    font-size: 10px;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 8px;
    white-space: nowrap;
}
.status:before {
    content: '';
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
}
.status.Processing {
    background: #fff4e0;
    color: #a77c29;
}
.status.Ready {
    background: #f0edfd;
    color: #8271bd;
}
.status.Shipped {
    background: #edf7f2;
    color: #4e9275;
}
.amount {
    text-align: right;
    white-space: nowrap;
    font-size: 10px;
}
.details-button {
    border: 1px solid var(--line);
    background: white;
    color: var(--muted);
    border-radius: 5px;
    padding: 3px 7px;
}
.details-button:hover {
    color: var(--purple);
    border-color: var(--purple);
}
.table-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 9px;
    padding: 16px 23px;
}
.empty-cell {
    text-align: center;
    padding: 35px;
    color: var(--muted);
}
.small-icon {
    color: #a4a7b4;
}
.donut-wrap {
    height: 184px;
    position: relative;
    margin: 3px 28px 17px;
}
.donut-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.donut-label strong {
    font:
        700 29px Manrope,
        sans-serif;
    letter-spacing: -1px;
}
.donut-label span {
    font-size: 7px;
    color: var(--muted);
    letter-spacing: 1px;
    margin-top: 4px;
}
.status-legend {
    display: grid;
    gap: 14px;
    padding: 0 23px 23px;
}
.legend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
}
.legend-row > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.legend-row i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}
.legend-row strong {
    font-weight: 500;
}
.legend-row small {
    color: var(--muted);
    font-size: 9px;
    margin-left: 8px;
}
.dispatch-note {
    background: var(--lime);
    border-radius: 11px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.note-icon {
    display: grid;
    place-items: center;
    background: #ffffff60;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    font-size: 18px;
    margin-bottom: 18px;
    color: #6b7540;
}
.dispatch-note .eyebrow {
    color: #74804e;
    font-size: 7px;
    letter-spacing: 1.4px;
}
.dispatch-note h2 {
    font:
        600 24px/1.25 Manrope,
        sans-serif;
    letter-spacing: -0.8px;
    margin: 12px 0;
}
.dispatch-note > p:not(.eyebrow) {
    font-size: 10px;
    color: #707c4e;
    max-width: 220px;
    line-height: 1.8;
}
.note-link {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #71834425;
    padding-top: 17px;
    margin-top: 23px;
    font-size: 10px;
    font-weight: 600;
}
.channels {
    padding: 3px 23px 24px;
    display: grid;
    gap: 20px;
}
.channels > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    font-size: 10px;
}
.channels > div > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.channels b {
    font-weight: 500;
}
.channel-mark {
    font-style: normal;
    color: #a4a9bf;
}
.channel-track {
    grid-column: 1/-1;
    height: 4px;
    background: #f0f1f6;
    border-radius: 10px;
}
.channel-track i {
    display: block;
    height: 100%;
    background: #b1b8ef;
    border-radius: 10px;
}
.channels > div:nth-child(2) .channel-track i {
    background: #bdc5a2;
}
.channels > div:nth-child(3) .channel-track i {
    background: #dbc6ae;
}
footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 9px;
    color: var(--muted);
    padding: 30px 0;
}
footer a:hover {
    color: var(--purple);
}
section[id] {
    scroll-margin-top: 24px;
}
dialog {
    width: min(490px, calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    color: var(--ink);
    box-shadow: 0 25px 100px #1f254130;
}
dialog::backdrop {
    background: #25273855;
    backdrop-filter: blur(3px);
}
.dialog-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 24px;
}
.dialog-heading h2 {
    font:
        600 21px Manrope,
        sans-serif;
    letter-spacing: -0.7px;
}
.dialog-heading .eyebrow {
    margin-bottom: 8px;
}
.dialog-close {
    background: #f5f6f8;
    border: 0;
    border-radius: 50%;
    width: 29px;
    height: 29px;
    color: var(--muted);
    font-size: 20px;
    flex-shrink: 0;
}
#dialog-content dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    font-size: 12px;
}
#dialog-content dt {
    color: var(--muted);
}
#dialog-content dd {
    margin: 0;
    text-align: right;
}
.dialog-note {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 10px;
    color: var(--muted);
}
#help-dialog > p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
}
@media (min-width: 1650px) {
    .revenue-chart {
        height: 300px;
    }
}
@media (max-width: 1200px) {
    .header-inner {
        padding: 0 30px;
        gap: 45px;
    }
    .wrap {
        padding: 32px 30px 0;
    }
    .workspace-grid {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 20px;
    }
    .metrics {
        gap: 14px;
    }
    .metric {
        padding: 17px;
    }
    .metric > strong {
        font-size: 24px;
    }
    .sparkline {
        display: none;
    }
    .metric-foot {
        font-size: 8px;
    }
    .workspace-label {
        display: none;
    }
    .panel-heading {
        padding: 20px 18px 16px;
    }
    .revenue-summary {
        padding: 0 18px;
    }
    .search input {
        width: 100px;
    }
    td {
        padding: 14px 15px;
    }
    th {
        padding: 12px 15px;
    }
    .table-filters {
        padding: 0 18px;
        gap: 15px;
    }
}
@media (max-width: 1000px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .insights {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
    .channel-panel {
        grid-column: 1/-1;
    }
    .channels {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    .revenue-chart {
        height: 280px;
    }
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .metric > strong {
        font-size: 27px;
    }
    .metric-foot {
        font-size: 9px;
    }
    .dispatch-note {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .dispatch-note .note-link {
        margin-top: auto;
    }
    .dispatch-note > p:not(.eyebrow) {
        margin-bottom: 20px;
        max-width: none;
    }
    .page-heading {
        align-items: start;
    }
    h1 {
        font-size: 26px;
    }
    .heading-actions {
        flex-wrap: wrap;
        justify-content: end;
    }
    .header-inner {
        gap: 35px;
    }
    .header nav {
        gap: 25px;
    }
    .help-button {
        display: none;
    }
}
@media (max-width: 600px) {
    .header-inner {
        padding: 16px 18px 0;
        height: auto;
        flex-wrap: wrap;
        gap: 15px;
    }
    .brand {
        font-size: 27px;
    }
    .brand-sub {
        font-size: 7px;
    }
    .header-right {
        gap: 10px;
    }
    .header nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 20px;
        height: 44px;
        font-size: 11px;
    }
    .wrap {
        padding: 27px 18px 0;
    }
    .page-heading {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
    }
    h1 {
        font-size: 25px;
        letter-spacing: -1px;
    }
    .wave {
        font-size: 24px;
        margin-left: 3px;
    }
    .heading-actions {
        justify-content: start;
        width: 100%;
    }
    .heading-actions select {
        flex: 1;
    }
    .metrics {
        gap: 10px;
        margin-bottom: 20px;
    }
    .metric {
        padding: 15px 13px;
    }
    .metric-label {
        font-size: 9px;
    }
    .metric-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    .metric > strong {
        font-size: 23px;
        margin: 10px 0 13px;
    }
    .metric-foot {
        font-size: 8px;
        gap: 6px;
    }
    .metric-foot .comparison {
        font-size: 8px;
    }
    .workspace-grid,
    .main-column {
        gap: 20px;
    }
    .panel-heading {
        padding: 20px 16px 14px;
    }
    .panel h2 {
        font-size: 12px;
    }
    .panel-heading p {
        font-size: 9px;
    }
    .chart-view button {
        font-size: 8px;
        padding: 5px 7px;
    }
    .revenue-summary {
        padding: 0 16px;
    }
    .revenue-summary strong {
        font-size: 22px;
    }
    .revenue-summary > span {
        font-size: 8px;
    }
    .revenue-chart {
        height: 240px;
        padding: 18px 10px 8px;
    }
    .data-details {
        padding: 0 16px 16px;
    }
    .orders .panel-heading {
        flex-direction: column;
        align-items: start;
    }
    .search {
        width: 100%;
    }
    .search input {
        width: 100%;
    }
    .table-filters {
        gap: 17px;
        padding: 0 16px;
    }
    .order-table-scroll > table {
        min-width: 670px;
    }
    .table-bottom {
        padding: 14px 16px;
        font-size: 8px;
    }
    .insights {
        grid-template-columns: 1fr;
    }
    .channel-panel {
        grid-column: auto;
    }
    .channels {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .donut-wrap {
        height: 200px;
    }
    .dispatch-note h2 br {
        display: none;
    }
    .dispatch-note .note-link {
        margin-top: 20px;
    }
    footer {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 8px;
    }
    footer p {
        order: 3;
        width: 100%;
    }
    .count {
        font-size: 8px;
    }
    .data-table-scroll th,
    .data-table-scroll td {
        font-size: 10px;
    }
    .metric-foot a {
        font-size: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
.pagination {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.pagination button {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: white;
    color: var(--ink);
    padding: 2px 8px;
}
.pagination button:disabled {
    opacity: 0.35;
    cursor: default;
}
.table-bottom {
    align-items: center;
}
.brand {
    white-space: nowrap;
}
.order-table-scroll {
    position: relative;
}
.sr-only {
    left: 0;
    top: 0;
}
