.order-table-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.order-table-row:hover {
    background: #f9fafb;
}

.order-flow-panel {
    margin-bottom: 24px;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.order-flow-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 4px 8px 8px;
}

.order-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 88px;
    max-width: 110px;
    flex: 0 0 auto;
}

.order-flow-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    transition: all 0.2s ease;
}

.order-flow-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.order-flow-step.is-done .order-flow-icon-wrap {
    background: #7c3aed;
    color: #fff;
}

.order-flow-step.is-current .order-flow-icon-wrap {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.14);
}

.order-flow-label {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    color: #98a2b3;
    font-weight: 500;
}

.order-flow-step.is-done .order-flow-label,
.order-flow-step.is-current .order-flow-label {
    color: #101828;
    font-weight: 600;
}

.order-flow-connector {
    flex: 1 1 24px;
    min-width: 16px;
    max-width: 56px;
    height: 2px;
    background: #eaecf0;
    margin-top: 24px;
}

.order-flow-connector.is-done {
    background: #7c3aed;
}

.order-flow-terminal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px;
}

.order-flow-icon-wrap--cancelled {
    background: #fef3f2;
    color: #d92d20;
}

.order-flow-terminal-label {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.order-show-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.order-show-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #101828;
    letter-spacing: -0.02em;
}

.order-show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.order-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 500;
}

.order-meta-chip--time {
    background: #fff4ed;
    color: #c4320a;
}

.order-meta-chip--pickup {
    background: #eff8ff;
    color: #175cd3;
}

.order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    gap: 20px;
}

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

.order-panel {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.order-panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 14px;
    font-weight: 600;
    color: #101828;
}

.order-panel-body {
    padding: 20px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid #f2f4f7;
    font-size: 14px;
}

.order-items-table th {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-items-table td:last-child,
.order-items-table th:last-child {
    text-align: right;
}

.order-total-row td {
    border-bottom: none;
    padding-top: 16px;
    font-weight: 700;
    color: #101828;
}

.order-progress {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.order-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    flex: 1;
    position: relative;
}

.order-progress-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f4f7;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #eaecf0;
    transition: all 0.2s ease;
}

.order-progress-step.is-done .order-progress-dot {
    background: #12b76a;
    border-color: #12b76a;
    color: #fff;
}

.order-progress-step.is-current .order-progress-dot {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
}

.order-progress-label {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    color: #667085;
    max-width: 84px;
}

.order-progress-step.is-current .order-progress-label,
.order-progress-step.is-done .order-progress-label {
    color: #101828;
    font-weight: 600;
}

.order-progress-line {
    flex: 1;
    height: 2px;
    background: #eaecf0;
    margin-top: 20px;
    min-width: 12px;
}

.order-progress-line.is-done {
    background: #12b76a;
}

.order-terminal-state {
    text-align: center;
    padding: 20px 12px;
}

.order-terminal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.order-terminal-icon--cancelled {
    background: #fef3f2;
    color: #d92d20;
}

.order-terminal-icon--pending {
    background: #fffaeb;
    color: #dc6803;
}

.order-timeline {
    display: flex;
    flex-direction: column;
}

.order-timeline-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 0 16px;
    position: relative;
    padding-bottom: 20px;
}

.order-timeline-item:last-child {
    padding-bottom: 0;
}

.order-timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: #eaecf0;
}

.order-timeline-item:last-child::before {
    display: none;
}

.order-timeline-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 4px;
    background: #d0d5dd;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #eaecf0;
    z-index: 1;
}

.order-timeline-marker--created { background: #6941c6; }
.order-timeline-marker--completed { background: #12b76a; }
.order-timeline-marker--cancelled { background: #f04438; }
.order-timeline-marker--delivery { background: #2e90fa; }
.order-timeline-marker--ready { background: #12b76a; }
.order-timeline-marker--making { background: #f79009; }
.order-timeline-marker--status { background: #7c3aed; }
.order-timeline-marker--note { background: #98a2b3; }

.order-timeline-time {
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 4px;
}

.order-timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
}

.order-timeline-desc {
    font-size: 13px;
    color: #667085;
    margin-top: 4px;
    line-height: 1.45;
}

.order-customer-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-customer-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #c4b5fd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.order-customer-name {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.order-customer-sub {
    font-size: 12px;
    color: #667085;
    margin-top: 2px;
}

.order-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-phone-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.order-phone-form .ta-input {
    flex: 1;
    min-width: 0;
}

.order-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.order-stat-box {
    background: #f9fafb;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.order-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.order-stat-label {
    font-size: 11px;
    color: #667085;
    margin-top: 4px;
}

.order-action-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #eaecf0;
    background: #fff;
    color: #101828;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.order-action-link:hover {
    background: #f9fafb;
}

.order-action-link--chat {
    border-color: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
}

.order-note-form {
    display: flex;
    gap: 8px;
}

.order-note-form .ta-input {
    flex: 1;
    min-width: 0;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 700px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }
}

.order-info-block {
    background: #f9fafb;
    border-radius: 14px;
    padding: 14px;
}

.order-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #98a2b3;
    margin-bottom: 6px;
}

.order-info-value {
    font-size: 14px;
    color: #101828;
    line-height: 1.45;
    word-break: break-word;
}

.order-status-form select {
    margin-bottom: 10px;
}

/* ── Order show (ord-*) ─────────────────────────────────────────── */

.ord-show-hero {
    margin-bottom: 16px;
    padding: 20px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ord-show-hero__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.ord-show-hero__info {
    min-width: 0;
    flex: 1 1 280px;
}

.ord-show-hero__number {
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: 0.02em;
}

.ord-show-hero__total {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ord-show-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.ord-show-hero__meta i {
    margin-right: 5px;
    color: #94a3b8;
}

.ord-show-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    flex: 0 1 280px;
}

.ord-show-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ord-show-hero__status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
}

.ord-flow-wrap {
    padding-top: 8px;
    padding-bottom: 8px;
}

.ord-flow-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 4px 4px 8px;
}

.ord-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 88px;
    max-width: 110px;
    flex: 0 0 auto;
}

.ord-flow-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    font-size: 20px;
    transition: all 0.2s ease;
}

.ord-flow-icon svg,
.ord-flow-glyph {
    width: 22px;
    height: 22px;
}

.ord-flow-glyph {
    display: block;
    background-color: currentColor;
    -webkit-mask-image: var(--flow-icon);
    mask-image: var(--flow-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ord-flow-step.is-done .ord-flow-icon,
.ord-flow-step.is-current .ord-flow-icon {
    background: #7c3aed;
    color: #fff;
}

.ord-flow-step.is-current .ord-flow-icon {
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.14);
}

.ord-flow-icon--cancelled {
    background: #fef3f2;
    color: #d92d20;
}

.ord-flow-step__label {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    color: #98a2b3;
    font-weight: 500;
}

.ord-flow-step.is-done .ord-flow-step__label,
.ord-flow-step.is-current .ord-flow-step__label {
    color: #101828;
    font-weight: 600;
}

.ord-flow-connector {
    flex: 1 1 24px;
    min-width: 16px;
    max-width: 56px;
    height: 2px;
    background: #eaecf0;
    margin-top: 24px;
}

.ord-flow-connector.is-done {
    background: #7c3aed;
}

.ord-flow-terminal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
}

.ord-flow-terminal__label {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.ord-info-cell {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.ord-info-cell__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.ord-info-cell__value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}

.ord-info-cell__sub {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
}

.ord-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ord-timeline__item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.ord-timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 22px;
    bottom: -2px;
    width: 2px;
    background: #e2e8f0;
}

.ord-timeline__marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    background: #cbd5e1;
    box-shadow: 0 0 0 3px #f1f5f9;
}

.ord-timeline__marker--created { background: #7c3aed; box-shadow: 0 0 0 3px #ede9fe; }
.ord-timeline__marker--status { background: #6366f1; box-shadow: 0 0 0 3px #e0e7ff; }
.ord-timeline__marker--making { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.ord-timeline__marker--ready { background: #0ea5e9; box-shadow: 0 0 0 3px #e0f2fe; }
.ord-timeline__marker--delivery { background: #8b5cf6; box-shadow: 0 0 0 3px #ede9fe; }
.ord-timeline__marker--completed { background: #12b76a; box-shadow: 0 0 0 3px #d1fadf; }
.ord-timeline__marker--cancelled { background: #f04438; box-shadow: 0 0 0 3px #fee4e2; }
.ord-timeline__marker--failed { background: #f04438; box-shadow: 0 0 0 3px #fee4e2; }
.ord-timeline__marker--note { background: #94a3b8; box-shadow: 0 0 0 3px #f1f5f9; }

.ord-timeline__body { min-width: 0; flex: 1; }

.ord-timeline__time {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 2px;
}

.ord-timeline__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.ord-timeline__desc {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
}

.ord-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ord-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    margin-bottom: 8px;
}

.ord-note:last-child { margin-bottom: 0; }

.ord-note__text {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.ord-note__time {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.ord-client-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ord-phone-link {
    font-size: 14px;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}

.ord-phone-link:hover { text-decoration: underline; }

.ord-mini-stat {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    text-align: center;
}

.ord-mini-stat__val {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ord-mini-stat__lbl {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.ord-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ord-item-row:last-child { border-bottom: none; }

.ord-item-row--edit {
    flex-wrap: wrap;
}

.ord-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ord-item-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 16px;
}

.ord-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.ord-item-new-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.ord-item-qty {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.ord-item-price {
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.ord-item-qty-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.ord-item-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.ord-item-qty-btn:hover { background: #f8fafc; }

.ord-item-qty-input {
    width: 44px;
    height: 28px;
    text-align: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
}

.ord-item-del-btn { flex-shrink: 0; }

.ord-items-add {
    position: relative;
    margin-top: 12px;
    margin-bottom: 12px;
}

.ord-product-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.ord-product-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.ord-product-dropdown__item:last-child { border-bottom: none; }
.ord-product-dropdown__item:hover { background: #f8fafc; }

.ord-product-dropdown__name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.ord-product-dropdown__price {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    white-space: nowrap;
}

.ord-items-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ord-totals {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.ord-totals__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.ord-totals__row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

@media (max-width: 700px) {
    .ord-show-hero__total { font-size: 24px; }
    .ord-show-hero__aside { flex: 1 1 100%; min-width: 0; }
    .ord-item-row--edit .ord-item-qty-ctrl { margin-left: 56px; }
}

/* ===== Заказы: список ===== */
.olst-page .cdir-bar .olst-search {
    flex: 1 1 320px;
    max-width: 440px;
}

#adm-page .olst-dd-icon {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
    color: #7c3aed;
}

.olst-results {
    position: relative;
    transition: opacity 0.15s ease;
}

.olst-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.olst-results.is-loading .olst-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 40%;
    background: #7c3aed;
    border-radius: 0 3px 3px 0;
    animation: cdir-progress 1s ease-in-out infinite;
}

.olst-kpis {
    margin-bottom: 1rem;
}

@media (min-width: 1200px) {
    .skl-kpis.olst-kpis {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .olst-kpis .skl-kpi__value {
        font-size: clamp(1.25rem, 1.6vw, 1.7rem);
    }
}

.olst-kpis .skl-kpi__value {
    white-space: nowrap;
}

.cdir-meter.olst-meter--done i {
    background: #12b76a;
}

.cdir-meter.olst-meter--active i {
    background: #7c3aed;
}

.cdir-meter.olst-meter--lost i {
    background: #f04438;
}

/* Status tones */
.olst-tone--amber { --tone: #b45309; --tone-dot: #f59e0b; --tone-bg: #fffbeb; }
.olst-tone--orange { --tone: #c2410c; --tone-dot: #f97316; --tone-bg: #fff7ed; }
.olst-tone--blue { --tone: #1d4ed8; --tone-dot: #3b82f6; --tone-bg: #eff6ff; }
.olst-tone--violet { --tone: #6d28d9; --tone-dot: #8b5cf6; --tone-bg: #f5f3ff; }
.olst-tone--teal { --tone: #0f766e; --tone-dot: #14b8a6; --tone-bg: #f0fdfa; }
.olst-tone--cyan { --tone: #0e7490; --tone-dot: #06b6d4; --tone-bg: #ecfeff; }
.olst-tone--indigo { --tone: #4338ca; --tone-dot: #6366f1; --tone-bg: #eef2ff; }
.olst-tone--green { --tone: #15803d; --tone-dot: #22c55e; --tone-bg: #f0fdf4; }
.olst-tone--red { --tone: #b91c1c; --tone-dot: #ef4444; --tone-bg: #fef2f2; }
.olst-tone--slate { --tone: #475569; --tone-dot: #94a3b8; --tone-bg: #f1f5f9; }

.olst-dot {
    display: inline-block;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tone-dot, #94a3b8);
}

.olst-st {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: var(--tone-bg);
    color: var(--tone);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status tabs */
.olst-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.olst-tabs::-webkit-scrollbar {
    display: none;
}

#adm-page .olst-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    margin: 0;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#adm-page .olst-tab:hover {
    border-color: #c4b5fd;
    color: #334155;
}

.olst-tab em {
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

#adm-page .olst-tab.is-on {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #fff;
}

.olst-tab.is-on em {
    color: rgba(255, 255, 255, 0.78);
}

.olst-tab.is-on .olst-dot {
    box-shadow: 0 0 0 1.5px #fff;
}

/* Card + rows */
.olst-card {
    position: relative;
    border: 1px solid #eaecf0;
    border-radius: 1.25rem;
    background: #fff;
    overflow: hidden;
}

.olst-table {
    --olst-cols: 18px minmax(112px, 0.8fr) minmax(170px, 1.4fr) minmax(128px, 0.95fr) minmax(150px, 1.3fr) 150px 120px 18px;
}

.olst-row {
    --row-bg: #fff;
    display: grid;
    grid-template-columns: var(--olst-cols);
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    border-bottom: 1px solid #f2f4f7;
    background: var(--row-bg);
    cursor: pointer;
    transition: background 0.12s ease;
}

.olst-row:last-child {
    border-bottom: 0;
}

.olst-row:hover {
    --row-bg: #faf8ff;
}

.olst-row.is-selected {
    --row-bg: #f5f3ff;
}

.olst-row--head,
.olst-row--head:hover {
    --row-bg: #f9fafb;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #98a2b3;
    cursor: default;
}

.olst-row .is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.olst-row:hover .cdir-go {
    color: #7c3aed;
    transform: translateX(2px);
}

/* Checkbox */
#adm-page .olst-check {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

#adm-page .olst-check input.olst-check__input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.olst-check i {
    display: block;
    width: 16px;
    height: 16px;
    margin: 1px;
    box-sizing: border-box;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #fff center / 10px no-repeat;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.olst-check:hover i {
    border-color: #a78bfa;
}

.olst-check__input:checked + i {
    border-color: #7c3aed;
    background-color: #7c3aed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.olst-check__input:indeterminate + i {
    border-color: #7c3aed;
    background-color: #7c3aed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 6h6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.olst-check__input:focus-visible + i {
    outline: 2px solid #c4b5fd;
    outline-offset: 1px;
}

/* Cells */
.olst-order,
.olst-who,
.olst-where {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#adm-page .olst-num {
    align-self: flex-start;
    font-size: 13.5px;
    font-weight: 800;
    color: #101828;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

#adm-page .olst-num:hover {
    color: #7c3aed;
}

.olst-order small,
.olst-who small,
.olst-where small,
.olst-items small {
    overflow: hidden;
    font-size: 11.5px;
    color: #667085;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.olst-order small i {
    margin: 0 2px;
    font-style: normal;
    color: #d0d5dd;
}

.olst-who b,
.olst-where b {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    color: #101828;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.olst-where b {
    font-weight: 600;
}

.olst-items {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.olst-thumbs {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.olst-thumbs img,
.olst-thumbs__empty,
.olst-thumbs__more {
    flex: none;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    border: 2px solid var(--row-bg);
    border-radius: 9px;
    background: #f2f4f7;
    object-fit: cover;
    transition: border-color 0.12s ease;
}

.olst-thumbs > * + * {
    margin-left: -9px;
}

.olst-thumbs__empty,
.olst-thumbs__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.olst-thumbs__empty {
    font-size: 12px;
    color: #98a2b3;
}

.olst-thumbs__more {
    background: #eef2f6;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.olst-sum {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.olst-sum b {
    font-size: 13.5px;
    font-weight: 800;
    color: #101828;
    white-space: nowrap;
}

.olst-express {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #db2777;
    white-space: nowrap;
}

.olst-express i {
    display: inline-flex;
    font-size: 10px;
    line-height: 1;
}

@media (max-width: 1240px) {
    .olst-table {
        --olst-cols: 18px minmax(104px, 0.8fr) minmax(150px, 1.3fr) minmax(112px, 0.9fr) 140px 112px 18px;
    }

    .olst-where,
    .olst-row--head > :nth-child(5) {
        display: none;
    }
}

@media (max-width: 760px) {
    .olst-row--head {
        display: none;
    }

    .olst-row {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        grid-template-areas:
            "chk order sum"
            ". who status"
            ". items items";
        gap: 8px 10px;
        padding: 12px 14px;
    }

    .olst-row > .olst-check { grid-area: chk; align-self: start; }
    .olst-order { grid-area: order; }
    .olst-sum { grid-area: sum; align-self: start; }
    .olst-who { grid-area: who; }
    .olst-status-cell { grid-area: status; justify-self: end; }
    .olst-items { grid-area: items; }

    .olst-row .cdir-go {
        display: none;
    }
}

/* Bulk actions bar */
body.ord-has-bulk-bar {
    padding-bottom: 72px;
}

.ord-bulk-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 8500;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(540px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding: 8px 8px 8px 16px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.ord-bulk-bar.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ord-bulk-bar__count {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ord-bulk-bar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.ord-bulk-dd {
    position: relative;
}

.ord-bulk-bar button {
    margin: 0;
    font-family: inherit;
    line-height: 1;
}

.ord-bulk-bar .ord-bulk-dd__btn,
.ord-bulk-bar .ord-bulk-bar__cancel,
.ord-bulk-bar .ord-bulk-bar__apply,
.ord-bulk-bar .ord-bulk-bar__delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.ord-bulk-bar .ord-bulk-dd__btn {
    min-width: 160px;
    max-width: 220px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
}

.ord-bulk-bar .ord-bulk-dd__btn:hover,
.ord-bulk-dd.is-open .ord-bulk-dd__btn {
    background: rgba(255, 255, 255, 0.2);
}

.ord-bulk-dd__btn-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ord-bulk-dd__btn i {
    font-size: 14px;
    opacity: 0.8;
}

.ord-bulk-dd__menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 8600;
    min-width: 230px;
    max-height: min(320px, calc(100vh - 120px));
    padding: 4px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    scrollbar-width: thin;
}

.ord-bulk-dd__menu[hidden] {
    display: none !important;
}

.ord-bulk-bar .ord-bulk-dd__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.ord-bulk-bar .ord-bulk-dd__item:hover {
    background: #f8fafc;
}

.ord-bulk-bar .ord-bulk-dd__item.is-active {
    background: #f5f3ff;
    color: #6d28d9;
}

.ord-bulk-dd__item-label {
    flex: 1;
    min-width: 0;
}

.ord-bulk-dd__item-check {
    font-size: 11px;
    line-height: 1;
    color: #7c3aed;
    visibility: hidden;
}

.ord-bulk-dd__item.is-active .ord-bulk-dd__item-check {
    visibility: visible;
}

.ord-bulk-bar .ord-bulk-bar__cancel {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-weight: 600;
}

.ord-bulk-bar .ord-bulk-bar__cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ord-bulk-bar .ord-bulk-bar__apply {
    background: #7c3aed;
    color: #fff;
}

.ord-bulk-bar .ord-bulk-bar__apply:hover:not(:disabled) {
    background: #6d28d9;
}

.ord-bulk-bar .ord-bulk-bar__delete {
    background: #dc2626;
    color: #fff;
}

.ord-bulk-bar .ord-bulk-bar__delete:hover:not(:disabled) {
    background: #b91c1c;
}

.ord-bulk-bar .ord-bulk-bar__apply:disabled,
.ord-bulk-bar .ord-bulk-bar__delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .ord-bulk-bar {
        flex-wrap: wrap;
        gap: 10px;
        min-width: calc(100vw - 24px);
        padding: 10px;
    }

    .ord-bulk-bar__actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .ord-bulk-bar .ord-bulk-dd__btn {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
}

/* ===== Заказ: карточка (ordv-*) ===== */
.ordv {
    --ov-ink: #101828;
    --ov-text: #344054;
    --ov-muted: #667085;
    --ov-soft: #98a2b3;
    --ov-line: #eaecf0;
    --ov-bg: #f9fafb;
    --ov-violet: #7c3aed;
    --ov-violet-soft: #f4f0ff;
    --ov-red: #d92d20;
    --ov-red-soft: #fef3f2;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ordv [hidden] {
    display: none !important;
}

.ordv .adm-back-row {
    margin-bottom: 0;
}

.ordv-flash {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
    font-size: 13px;
    font-weight: 600;
    color: #067647;
}

.ordv-flash i {
    display: inline-flex;
    font-size: 14px;
}

.ordv-flash.is-error {
    border-color: #fecdca;
    background: var(--ov-red-soft);
    color: #b42318;
}

/* Cards */
.ordv-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--ov-line);
    border-radius: 16px;
    background: #fff;
}

.ordv-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ordv-card__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ov-ink);
}

.ordv-card__head h2 i {
    display: inline-flex;
    font-size: 14px;
    color: var(--ov-violet);
}

.ordv-count {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ov-violet-soft);
    font-size: 11.5px;
    font-weight: 700;
    color: #6d28d9;
    font-variant-numeric: tabular-nums;
}

.ordv-empty {
    padding: 18px 0;
    font-size: 13px;
    color: var(--ov-soft);
    text-align: center;
    list-style: none;
}

/* Buttons */
.ordv .ordv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.ordv .ordv-btn i {
    display: inline-flex;
    font-size: 13px;
}

.ordv .ordv-btn--primary {
    background: var(--ov-violet);
    color: #fff;
}

.ordv .ordv-btn--primary:hover:not(:disabled) {
    background: #6d28d9;
}

.ordv .ordv-btn--primary:disabled {
    background: #ddd6fe;
    cursor: default;
}

.ordv .ordv-btn--ghost {
    border-color: var(--ov-line);
    background: #fff;
    color: var(--ov-text);
}

.ordv .ordv-btn--ghost:hover {
    border-color: #d6bbfb;
    color: #6d28d9;
}

.ordv .ordv-btn--danger {
    border-color: #fecdca;
    background: #fff;
    color: var(--ov-red);
}

.ordv .ordv-btn--danger:hover,
.ordv .ordv-btn--danger.is-armed {
    border-color: var(--ov-red);
    background: var(--ov-red);
    color: #fff;
}

.ordv .ordv-btn--primary.is-armed {
    background: #5b21b6;
}

.ordv .ordv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ov-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    font-size: 14px;
    color: var(--ov-text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ordv .ordv-icon-btn i {
    display: inline-flex;
    line-height: 1;
}

.ordv .ordv-icon-btn:hover {
    border-color: #d6bbfb;
    color: #6d28d9;
}

.ordv .ordv-icon-btn--sm {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.ordv .ordv-icon-btn--primary {
    border-color: var(--ov-violet);
    background: var(--ov-violet);
    color: #fff;
}

.ordv .ordv-icon-btn--primary:hover {
    background: #6d28d9;
    color: #fff;
}

.ordv .ordv-icon-btn--danger:hover {
    border-color: #fecdca;
    background: var(--ov-red-soft);
    color: var(--ov-red);
}

.ordv-field {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--ov-line);
    border-radius: 999px;
    background: #fff;
    transition: border-color 0.15s ease;
}

.ordv-field:focus-within {
    border-color: var(--ov-violet);
}

.ordv .ordv-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    font-size: 13px;
    color: var(--ov-ink);
}

.ordv-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ov-violet);
    text-decoration: none;
}

.ordv-link:hover {
    color: #5b21b6;
}

.ordv-link i {
    display: inline-flex;
}

/* Head */
.ordv-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--ov-line);
    border-radius: 18px;
    background: #fff;
}

.ordv-head__main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ordv-head__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ordv-head__title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ov-ink);
    font-variant-numeric: tabular-nums;
}

.ordv-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--tone-bg);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tone);
}

.ordv-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tone-dot);
}

.ordv-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ordv-head__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--ov-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--ov-text);
}

.ordv-head__meta span i {
    display: inline-flex;
    font-size: 11px;
    color: var(--ov-soft);
}

.ordv-head__meta span.is-amber {
    background: #fffaeb;
    color: #b54708;
}

.ordv-head__meta span.is-amber i {
    color: #f79009;
}

.ordv-head__meta span.is-violet {
    background: var(--ov-violet-soft);
    color: #6d28d9;
}

.ordv-head__meta span.is-violet i {
    color: var(--ov-violet);
}

.ordv-head__side {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ordv-head__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.ordv-head__total span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ov-muted);
}

.ordv-head__total b {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ov-ink);
    font-variant-numeric: tabular-nums;
}

.ordv-head__actions {
    display: flex;
    gap: 6px;
}

/* Status */
.ordv-status__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.ordv-steps {
    display: grid;
    flex: 1 1 520px;
    grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
    min-width: 0;
}

.ordv .ordv-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 2px;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    cursor: pointer;
}

.ordv .ordv-step::before {
    content: "";
    position: absolute;
    top: 19px;
    right: 50%;
    left: -50%;
    height: 3px;
    border-radius: 3px;
    background: var(--ov-line);
}

.ordv .ordv-step:first-child::before {
    display: none;
}

.ordv .ordv-step.is-done::before,
.ordv .ordv-step.is-current::before {
    background: var(--ov-violet);
}

.ordv-step__dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--ov-line);
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    color: var(--ov-soft);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ordv .ordv-step .ordv-step__dot i {
    display: none;
    font-size: 12px;
    line-height: 1;
}

.ordv-step__dot em {
    font-style: normal;
}

.ordv-step__label {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    color: var(--ov-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ordv .ordv-step:hover .ordv-step__dot {
    border-color: #c4b5fd;
    color: var(--ov-violet);
}

.ordv .ordv-step.is-done .ordv-step__dot {
    border-color: var(--ov-violet);
    background: var(--ov-violet);
    color: #fff;
}

.ordv .ordv-step.is-done .ordv-step__dot i {
    display: inline-flex;
}

.ordv .ordv-step.is-current .ordv-step__dot em {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    font-size: 0;
}

.ordv .ordv-step.is-done .ordv-step__dot em {
    display: none;
}

.ordv .ordv-step.is-current .ordv-step__dot {
    border-color: var(--ov-violet);
    background: var(--ov-violet);
    color: #fff;
    box-shadow: 0 0 0 4px var(--ov-violet-soft);
}

.ordv .ordv-step.is-done .ordv-step__label,
.ordv .ordv-step.is-current .ordv-step__label {
    color: var(--ov-ink);
}

.ordv .ordv-step.is-current .ordv-step__label {
    font-weight: 800;
    color: #6d28d9;
}

.ordv .ordv-step.is-picked .ordv-step__dot {
    border-color: var(--ov-violet);
    border-style: dashed;
    background: var(--ov-violet-soft);
    color: #6d28d9;
}

.ordv .ordv-step.is-picked .ordv-step__label {
    color: #6d28d9;
}

.ordv-status__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.ordv-cancelled {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ordv-cancelled__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ov-red-soft);
    font-size: 20px;
    color: var(--ov-red);
}

.ordv-cancelled__icon i {
    display: inline-flex;
}

.ordv-cancelled__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ordv-cancelled__text b {
    font-size: 15px;
    font-weight: 800;
    color: #b42318;
}

.ordv-cancelled__text span {
    font-size: 12px;
    color: var(--ov-muted);
}

.ordv-cancelled__form {
    margin-left: auto;
}

/* Layout */
.ordv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
    align-items: start;
}

.ordv-main,
.ordv-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Items */
.ordv-items__toggle {
    height: 32px;
    margin-left: auto;
    padding: 0 12px;
    font-size: 12px;
}

.ordv-items.is-editing .ordv-items__toggle {
    display: none;
}

.ordv-items__list {
    display: flex;
    flex-direction: column;
}

.ordv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f2f4f7;
}

.ordv-items__list > .ordv-item:first-child,
#ord-new-items-list > .ordv-item:first-child:not(:only-child) {
    border-top: 0;
}

.ordv-item__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid #f2f4f7;
    border-radius: 12px;
    background: var(--ov-bg);
    object-fit: contain;
}

.ordv-item__thumb.is-empty {
    font-size: 16px;
    color: #d0d5dd;
}

.ordv-item__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ordv-item__info b {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    color: var(--ov-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ordv-item__info span {
    font-size: 12px;
    color: var(--ov-muted);
}

.ordv-item__info em {
    font-style: normal;
    font-weight: 700;
    color: #079455;
}

.ordv-item__qty {
    flex-shrink: 0;
    min-width: 44px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--ov-bg);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ov-text);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.ordv-item__total {
    flex-shrink: 0;
    min-width: 84px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ov-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ordv-item.is-removed {
    opacity: 0.4;
}

.ordv-item.is-removed .ordv-item__info b {
    text-decoration: line-through;
}

.ordv-qty {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 34px;
    border: 1px solid var(--ov-line);
    border-radius: 999px;
    background: #fff;
}

.ordv .ordv-qty button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    box-shadow: none;
    font-size: 14px;
    color: var(--ov-text);
    cursor: pointer;
}

.ordv .ordv-qty button:hover {
    background: var(--ov-violet-soft);
    color: #6d28d9;
}

.ordv .ordv-qty button i {
    display: inline-flex;
}

.ordv .ordv-qty input {
    width: 34px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    color: var(--ov-ink);
    text-align: center;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.ordv-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px dashed #d6bbfb;
    border-radius: 999px;
    background: #fcfaff;
}

.ordv-search > i {
    display: inline-flex;
    font-size: 13px;
    color: var(--ov-violet);
}

.ordv .ordv-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    color: var(--ov-ink);
    outline: none;
}

.ordv-search__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--ov-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px -12px rgba(16, 24, 40, 0.22), 0 2px 6px rgba(16, 24, 40, 0.06);
}

.ordv .ordv-search__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    background: none;
    box-shadow: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ordv .ordv-search__item:hover {
    background: #f6f3ff;
}

.ordv-search__item .ordv-item__thumb {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.ordv-search__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ov-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ordv-search__price {
    font-size: 12.5px;
    font-weight: 800;
    color: #6d28d9;
    white-space: nowrap;
}

.ordv-search__empty {
    padding: 12px;
    font-size: 12.5px;
    color: var(--ov-soft);
    text-align: center;
}

.ordv-items__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* Info */
.ordv-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ordv-info__cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--ov-bg);
}

.ordv-info__cell--wide {
    grid-column: 1 / -1;
}

.ordv-info__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ov-soft);
}

.ordv-info__value {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ov-ink);
    overflow-wrap: anywhere;
}

.ordv-info__value--quote {
    font-weight: 500;
    color: var(--ov-text);
}

.ordv-info__sub {
    font-size: 12px;
    color: var(--ov-muted);
}

.ordv-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.ordv-info__tags span {
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--ov-text);
}

.ordv-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    color: #e4e7ec;
}

.ordv-rating i {
    display: inline-flex;
}

.ordv-rating i.is-on {
    color: #fdb022;
}

.ordv-rating b {
    margin-left: 6px;
    font-size: 13px;
    color: var(--ov-ink);
}

/* Timeline */
.ordv-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ordv-timeline__item {
    --dot: var(--ov-violet);
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
}

.ordv-timeline__item:last-child {
    padding-bottom: 0;
}

.ordv-timeline__item::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: -2px;
    left: 5px;
    width: 2px;
    background: #f2f4f7;
}

.ordv-timeline__item:last-child::before {
    display: none;
}

.ordv-timeline__item--created { --dot: #98a2b3; }
.ordv-timeline__item--making { --dot: #f79009; }
.ordv-timeline__item--ready { --dot: #0e9384; }
.ordv-timeline__item--delivery { --dot: #4f46e5; }
.ordv-timeline__item--completed { --dot: #17b26a; }
.ordv-timeline__item--cancelled { --dot: #f04438; }
.ordv-timeline__item--note { --dot: #d0d5dd; }

.ordv-timeline__dot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 3px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--dot);
    box-shadow: 0 0 0 1.5px var(--dot);
}

.ordv-timeline__body {
    flex: 1;
    min-width: 0;
}

.ordv-timeline__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
}

.ordv-timeline__top b {
    font-size: 13px;
    font-weight: 700;
    color: var(--ov-ink);
}

.ordv-timeline__top time {
    font-size: 11.5px;
    color: var(--ov-soft);
    white-space: nowrap;
}

.ordv-timeline__body p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--ov-muted);
}

/* Client */
.ordv-client {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ordv-client__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.ordv-client__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ordv-client__info b {
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    color: var(--ov-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ordv-client__info span {
    font-size: 12px;
    color: var(--ov-muted);
}

.ordv-phone {
    margin-top: 14px;
}

.ordv-phone__view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
    background: var(--ov-bg);
}

.ordv-phone__view a {
    font-size: 14px;
    font-weight: 700;
    color: var(--ov-ink);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.ordv-phone__view a:hover {
    color: var(--ov-violet);
}

.ordv-phone__view .is-muted {
    font-size: 13px;
    color: var(--ov-soft);
}

.ordv-phone__form {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.ordv-client__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.ordv-client__stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #f2f4f7;
    border-radius: 12px;
}

.ordv-client__stats b {
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ov-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.ordv-client__stats span {
    font-size: 11px;
    color: var(--ov-muted);
}

.ordv-client__links {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.ordv-client__links .ordv-btn {
    flex: 1;
    height: 36px;
    font-size: 12.5px;
}

/* Sum */
.ordv-sum {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
}

.ordv-sum div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.ordv-sum dt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ov-muted);
}

.ordv-sum dt em {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--ov-violet-soft);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    color: #6d28d9;
}

.ordv-sum dd {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ov-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ordv-sum dd small {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ov-violet);
}

.ordv-sum .is-minus dd {
    color: #079455;
}

.ordv-sum .is-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--ov-line);
}

.ordv-sum .is-total dt {
    font-size: 14px;
    font-weight: 700;
    color: var(--ov-ink);
}

.ordv-sum .is-total dd {
    font-size: 19px;
    font-weight: 800;
}

/* Notes */
.ordv-note-form {
    display: flex;
    gap: 6px;
}

.ordv-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.ordv-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fffaeb;
}

.ordv-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ov-ink);
    overflow-wrap: anywhere;
}

.ordv-note time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #b54708;
}

.ordv-notes .ordv-empty {
    padding: 10px 0 2px;
}

@media (max-width: 1100px) {
    .ordv-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .ordv-head {
        padding: 16px;
    }

    .ordv-head__side {
        width: 100%;
        justify-content: space-between;
    }

    .ordv-head__total {
        align-items: flex-start;
    }

    .ordv-steps {
        flex-basis: 100%;
    }

    .ordv-step__label {
        font-size: 10.5px;
        white-space: normal;
        text-align: center;
    }

    .ordv-status__actions,
    .ordv-cancelled__form {
        width: 100%;
        margin-left: 0;
    }

    .ordv-status__actions .ordv-btn,
    .ordv-cancelled__form .ordv-btn {
        flex: 1;
    }

    .ordv-info {
        grid-template-columns: minmax(0, 1fr);
    }

    .ordv-item--edit {
        flex-wrap: wrap;
    }

    .ordv-item--edit .ordv-item__info {
        flex-basis: calc(100% - 58px);
    }
}
