:root {
    --cxth-dark: #111827;
    --cxth-bg: #f3f4f6;
    --cxth-purple: #7c3aed;
}

body {
    background: var(--cxth-bg);
    color: #111827;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
}

.sidebar .nav-link {
    color: #374151;
    border-radius: .75rem;
    padding: .8rem 1rem;
    font-weight: 600;
}

.sidebar .nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.metric-card {
    display: block;
    min-height: 115px;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .25rem 1rem rgba(17, 24, 39, .06);
    color: #111827;
}

.metric-card span {
    color: #6b7280;
    font-weight: 600;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    margin-top: .5rem;
}

.metric-card .money {
    font-size: 1.25rem;
}

.order-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 .25rem 1rem rgba(17, 24, 39, .06);
}

.attention-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: .9rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.status-purple {
    background: var(--cxth-purple);
    color: #fff;
}

.status-secondary { background: #6b7280; color: #fff; }
.status-warning { background: #f59e0b; color: #111827; }
.status-primary { background: #2563eb; color: #fff; }
.status-success { background: #16a34a; color: #fff; }
.status-danger { background: #dc2626; color: #fff; }

.flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .5rem;
}

.flow-step {
    text-align: center;
    color: #9ca3af;
}

.flow-step span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 50%;
    background: #e5e7eb;
    font-weight: 800;
}

.flow-step small {
    display: block;
    margin-top: .4rem;
    font-weight: 600;
}

.flow-step.done {
    color: #166534;
}

.flow-step.done span {
    background: #22c55e;
    color: #fff;
}

.timeline-item {
    position: relative;
    padding: 0 0 1.2rem 1.3rem;
    border-left: 3px solid #d1d5db;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 2px;
    width: 11px;
    height: 11px;
    background: #111827;
    border-radius: 50%;
}

.mobile-nav {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: .55rem .3rem calc(.55rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -.2rem 1rem rgba(17, 24, 39, .08);
}

.mobile-nav a {
    text-align: center;
    color: #374151;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 700;
}

.mobile-nav .new-order {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: -1.5rem auto 0;
    background: #111827;
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
}

.pb-mobile-nav {
    padding-bottom: 6rem !important;
}

@media (max-width: 767.98px) {
    .order-card {
        align-items: stretch;
        flex-direction: column;
    }

    .order-card form,
    .order-card form button {
        width: 100%;
    }

    .flow {
        overflow-x: auto;
        grid-template-columns: repeat(5, minmax(85px, 1fr));
    }
}
