.dashboard-hero {
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid #293548;
    border-radius: 16px;
    background:
        radial-gradient(circle at 85% 10%, rgba(37, 99, 235, .24), transparent 38%),
        linear-gradient(135deg, #111827, #172033);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-hero > div > span,
.panel-kicker {
    color: #60a5fa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 7px 0 5px;
    font-size: 27px;
}

.dashboard-hero p {
    margin: 0;
    color: #94a3b8;
}

.dashboard-clock {
    text-align: right;
}

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

.dashboard-clock strong {
    font-size: 36px;
}

.dashboard-clock small {
    color: #64748b;
    font-size: 11px;
}

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

.dashboard-metric {
    min-height: 128px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 3px 11px;
    transition: transform .16s ease, border-color .16s ease;
}

.dashboard-metric:hover {
    transform: translateY(-2px);
    border-color: #475569;
}

.dashboard-metric i {
    grid-row: 1 / 4;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.dashboard-metric span,
.dashboard-metric small {
    color: #94a3b8;
    font-size: 12px;
}

.dashboard-metric strong {
    font-size: 24px;
}

.dashboard-metric.blue i {
    background: rgba(37, 99, 235, .15);
    color: #60a5fa;
}

.dashboard-metric.green i {
    background: rgba(22, 163, 74, .15);
    color: #4ade80;
}

.dashboard-metric.violet i {
    background: rgba(124, 58, 237, .15);
    color: #c4b5fd;
}

.dashboard-metric.red i {
    background: rgba(225, 29, 72, .15);
    color: #fb7185;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
    gap: 16px;
    align-items: start;
}

.dashboard-main-column,
.dashboard-side-column {
    display: grid;
    gap: 16px;
}

.dashboard-panel,
.oldest-order-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}

.dashboard-panel > header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.dashboard-panel h2 {
    margin: 4px 0 0;
    font-size: 17px;
}

.dashboard-panel header > a {
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.workflow-grid {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 9px;
}

.workflow-card {
    min-height: 112px;
    padding: 13px;
    border: 1px solid #334155;
    border-radius: 11px;
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.workflow-card:hover {
    background: rgba(30, 41, 59, .65);
}

.workflow-card i {
    color: #94a3b8;
}

.workflow-card strong {
    margin-top: 10px;
    font-size: 26px;
}

.workflow-card span {
    color: #94a3b8;
    font-size: 11px;
}

.workflow-card.status-waiting_payment strong {
    color: #fb7185;
}

.workflow-card.status-new strong {
    color: #fbbf24;
}

.workflow-card.status-waiting_product strong {
    color: #60a5fa;
}

.workflow-card.status-picking strong {
    color: #c4b5fd;
}

.workflow-card.status-ready_to_ship strong {
    color: #22d3ee;
}

.recent-orders {
    display: grid;
}

.recent-order {
    min-height: 57px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, .6);
    color: var(--text);
    text-decoration: none;
    display: grid;
    grid-template-columns: 78px minmax(130px, 1fr) 54px 84px 120px 14px;
    align-items: center;
    gap: 10px;
}

.recent-order:last-child {
    border-bottom: 0;
}

.recent-order:hover {
    background: rgba(30, 41, 59, .55);
}

.recent-order div b,
.recent-order div small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.recent-order div small {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

.recent-flags {
    color: #38bdf8;
    display: flex;
    gap: 7px;
}

.payment-dot,
.status-pill {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.payment-dot.paid {
    color: #4ade80;
}

.payment-dot.unpaid {
    color: #fb7185;
}

.status-pill {
    padding: 5px 7px;
    border-radius: 999px;
    background: #334155;
    text-align: center;
}

.oldest-order-card {
    padding: 19px;
    position: relative;
    background:
        radial-gradient(circle at 95% 5%, rgba(225, 29, 72, .2), transparent 42%),
        var(--panel);
}

.oldest-order-card > i {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #fb7185;
    font-size: 27px;
}

.oldest-order-card > strong,
.oldest-order-card > b {
    display: block;
}

.oldest-order-card > strong {
    margin-top: 13px;
    font-size: 27px;
}

.oldest-order-card > b {
    margin-top: 3px;
}

.oldest-order-card p {
    color: #fb7185;
    font-weight: 700;
}

.oldest-order-card a {
    min-height: 38px;
    border-radius: 8px;
    background: #e11d48;
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: grid;
    place-items: center;
}

.carrier-bars {
    padding: 15px 18px;
    display: grid;
    gap: 14px;
}

.carrier-bar {
    color: var(--text);
    text-decoration: none;
}

.carrier-bar div {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.carrier-bar i {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #1e293b;
    display: block;
}

.carrier-bar i b {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    display: block;
}

.alert-panel > a {
    min-height: 44px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(51, 65, 85, .6);
    color: #cbd5e1;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-panel > a:last-child {
    border-bottom: 0;
}

.alert-panel > a:hover {
    background: rgba(30, 41, 59, .55);
}

.alert-panel > a strong {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #334155;
    display: grid;
    place-items: center;
}

.dashboard-empty {
    color: #64748b;
    font-size: 12px;
}

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

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

@media (max-width: 760px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .dashboard-clock {
        text-align: left;
    }

    .dashboard-metrics,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .recent-order {
        grid-template-columns: 70px 1fr 14px;
    }

    .recent-flags,
    .recent-order .payment-dot,
    .recent-order .status-pill {
        display: none;
    }
}
