.sidebar-brand-link {
    color: inherit;
    text-decoration: none;
}

.side-nav-dashboard-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #1677ff, #0757df) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.25);
}

.dashboard-page {
    --dashboard-blue: #1769ff;
    --dashboard-navy: #061b43;
    --dashboard-border: #dfe7f2;
    --dashboard-muted: #697994;
    width: 100%;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-metric-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 132px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-top: 3px solid currentColor;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 40, 82, 0.055);
}

.dashboard-metric-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.035;
}

.dashboard-tone-blue { color: #1769ff; }
.dashboard-tone-orange { color: #ff8a00; }
.dashboard-tone-red { color: #ef233c; }
.dashboard-tone-indigo { color: #355cde; }
.dashboard-tone-green { color: #35a824; }

.dashboard-metric-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: currentColor;
    color: inherit;
    box-shadow: inset 0 0 0 1px currentColor;
}

.dashboard-metric-icon::before {
    content: "";
    position: absolute;
}

.dashboard-metric-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #62718b;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-metric-card strong {
    display: block;
    color: var(--dashboard-navy);
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.dashboard-metric-card small {
    display: block;
    margin-top: 7px;
    color: var(--dashboard-muted);
    font-size: 12px;
}

.dashboard-panel {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--dashboard-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 40, 82, 0.045);
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.95fr);
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.dashboard-panel-head h2 {
    margin: 2px 0 0;
    color: var(--dashboard-navy);
    font-size: 18px;
}

.dashboard-kicker {
    color: #8a99b2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.dashboard-range-chip,
.dashboard-panel-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dbe5f3;
    border-radius: 9px;
    color: #47617f;
    background: #f8faff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-panel-link:hover,
.dashboard-panel-link:focus-visible {
    border-color: #9fc1ff;
    color: var(--dashboard-blue);
}

.dashboard-trend-chart {
    width: 100%;
    min-height: 250px;
}

.dashboard-trend-chart svg {
    display: block;
    width: 100%;
    height: 250px;
    overflow: visible;
}

.dashboard-chart-grid {
    stroke: #e8eef7;
    stroke-width: 1;
}

.dashboard-chart-axis,
.dashboard-chart-label {
    fill: #7b8ba5;
    font-size: 11px;
}

.dashboard-chart-value {
    fill: var(--dashboard-blue);
    font-size: 11px;
    font-weight: 800;
}

.dashboard-chart-area {
    fill: url("#dashboard-chart-gradient");
    fill: rgba(23, 105, 255, 0.09);
}

.dashboard-chart-line {
    fill: none;
    stroke: var(--dashboard-blue);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-chart-dot {
    fill: var(--dashboard-blue);
    stroke: #fff;
    stroke-width: 2.5;
}

.dashboard-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-todo-list {
    display: grid;
    gap: 10px;
}

.dashboard-todo-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 52px 74px;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 7px 12px;
    border: 1px solid #e3eaf4;
    border-radius: 11px;
    color: var(--dashboard-navy);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-todo-row:hover,
.dashboard-todo-row:focus-visible {
    transform: translateY(-1px);
    border-color: currentColor;
    box-shadow: 0 7px 18px rgba(17, 53, 106, 0.08);
    outline: none;
}

.dashboard-todo-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: color-mix(in srgb, currentColor 11%, white);
}

.dashboard-todo-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-todo-label {
    color: #293b58;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-todo-row strong {
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: currentColor;
    background: color-mix(in srgb, currentColor 7%, white);
    text-align: center;
    font-size: 13px;
}

.dashboard-todo-action {
    color: var(--dashboard-blue);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.dashboard-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr) minmax(280px, 0.8fr);
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-detail-grid-compact {
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.75fr);
}

.dashboard-status-content {
    display: grid;
    grid-template-columns: 154px minmax(180px, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 205px;
}

.dashboard-donut {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.dashboard-donut-center {
    display: grid;
    place-items: center;
    align-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px #edf1f7;
}

.dashboard-donut-center strong {
    color: var(--dashboard-navy);
    font-size: 28px;
    line-height: 1;
}

.dashboard-donut-center span {
    margin-top: 6px;
    color: var(--dashboard-muted);
    font-size: 12px;
}

.dashboard-status-legend {
    display: grid;
    gap: 10px;
}

.dashboard-legend-row {
    display: grid;
    grid-template-columns: 9px minmax(64px, 1fr) auto 54px;
    align-items: center;
    gap: 8px;
    color: #4c5f7d;
    font-size: 12px;
}

.dashboard-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.dashboard-legend-row strong {
    color: #243958;
    text-align: right;
}

.dashboard-legend-row small {
    color: #8492a9;
    text-align: right;
}

.dashboard-finance-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    border: 1px solid #e5ebf4;
    border-radius: 11px;
    background: #fbfcff;
}

.dashboard-finance-summary > div {
    min-width: 0;
    padding: 13px;
}

.dashboard-finance-summary > div + div {
    border-left: 1px solid #e5ebf4;
}

.dashboard-finance-summary span,
.dashboard-finance-summary small {
    display: block;
    color: #7a899f;
    font-size: 11px;
}

.dashboard-finance-summary strong {
    display: block;
    margin: 5px 0;
    color: var(--dashboard-navy);
    font-size: 17px;
    overflow-wrap: anywhere;
}

.dashboard-finance-bars {
    display: grid;
    gap: 12px;
}

.dashboard-finance-bar-row {
    display: grid;
    grid-template-columns: 58px minmax(80px, 1fr) 74px;
    align-items: center;
    gap: 8px;
    color: #677791;
    font-size: 11px;
}

.dashboard-finance-bar-row > div {
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: #e9edf4;
}

.dashboard-finance-bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--dashboard-blue);
}

.dashboard-finance-bar-row strong {
    color: #51627d;
    font-size: 11px;
    text-align: right;
}

.dashboard-bar-orange i { background: #ff9418; }
.dashboard-bar-green i { background: #42b72a; }

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-shortcuts a {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 88px;
    padding: 10px 6px;
    border: 1px solid #e0e8f3;
    border-radius: 11px;
    color: #29405f;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dashboard-shortcuts a:hover,
.dashboard-shortcuts a:focus-visible {
    transform: translateY(-2px);
    border-color: #a9c8ff;
    background: #f7faff;
    color: var(--dashboard-blue);
    outline: none;
}

.dashboard-shortcuts svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: var(--dashboard-blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-alerts-panel {
    margin-bottom: 0;
}

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

.dashboard-alert-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 12px 14px;
    border: 1px solid #e3eaf4;
    border-radius: 12px;
    color: #29405f;
    text-decoration: none;
}

.dashboard-alert-card:hover,
.dashboard-alert-card:focus-visible {
    border-color: #acc7f3;
    box-shadow: 0 7px 20px rgba(25, 62, 117, 0.07);
    outline: none;
}

.dashboard-alert-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ef334b;
    background: #fff0f2;
}

.dashboard-alert-warning .dashboard-alert-icon {
    color: #ff8a00;
    background: #fff6e8;
}

.dashboard-alert-success .dashboard-alert-icon {
    color: #38a624;
    background: #eef9eb;
}

.dashboard-alert-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-alert-card strong,
.dashboard-alert-card small {
    display: block;
}

.dashboard-alert-card strong {
    margin-bottom: 5px;
    color: #263a59;
    font-size: 13px;
}

.dashboard-alert-card small {
    color: #7a899f;
    font-size: 11px;
}

.dashboard-alert-arrow {
    color: var(--dashboard-blue);
    font-weight: 900;
}

.orders-active-filter {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid #bfd4fb;
    border-radius: 11px;
    color: #436080;
    background: #f4f8ff;
    font-size: 13px;
}

.orders-active-filter strong {
    color: #0b55ce;
}

.orders-active-filter a {
    margin-left: auto;
    color: #1769ff;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1380px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-shortcuts-panel {
        grid-column: 1 / -1;
    }

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

@media (max-width: 1100px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-alerts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-metrics,
    .dashboard-detail-grid,
    .dashboard-detail-grid-compact {
        grid-template-columns: 1fr;
    }

    .dashboard-shortcuts-panel {
        grid-column: auto;
    }

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

    .dashboard-metric-card {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 108px;
        padding: 17px;
    }

    .dashboard-metric-icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .dashboard-metric-icon svg {
        width: 31px;
        height: 31px;
    }

    .dashboard-status-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .dashboard-status-legend {
        width: 100%;
    }

    .dashboard-finance-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-finance-summary > div + div {
        border-top: 1px solid #e5ebf4;
        border-left: 0;
    }

    .dashboard-todo-row {
        grid-template-columns: 36px minmax(0, 1fr) 48px;
    }

    .dashboard-todo-action {
        display: none;
    }

    .dashboard-trend-chart,
    .dashboard-trend-chart svg {
        min-height: 210px;
        height: 210px;
    }

    .dashboard-finance-bar-row {
        grid-template-columns: 52px minmax(70px, 1fr) 66px;
    }
}
