.order-table-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.order-table-row:hover {
    background: #f8fafc;
}

.ord-show-hero {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    overflow: visible;
}
.ord-show-hero__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 16px;
    padding: 18px;
    align-items: start;
}
@media (max-width: 900px) {
    .ord-show-hero__main { grid-template-columns: 1fr; }
}
.ord-show-hero__number {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.ord-show-hero__total {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: -0.03em;
}
.ord-show-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.ord-show-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ord-show-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
}
.ord-show-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ord-show-hero__actions .catmgr-tb { flex: 1; min-width: 120px; justify-content: center; }
.ord-show-hero__status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ord-show-hero__status .catmgr-dd-field { width: 100%; }
.ord-show-hero__status .catmgr-tb { width: 100%; justify-content: center; }

.ord-flow-wrap { padding: 16px 14px; overflow-x: auto; }
.ord-flow-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    min-width: min-content;
}
.ord-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 84px;
    max-width: 108px;
    flex: 0 0 auto;
}
.ord-flow-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ede9fe;
    color: #7c3aed;
    transition: all 0.2s ease;
}
.ord-flow-icon svg { width: 22px; height: 22px; }
.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 5px rgba(124, 58, 237, 0.14);
}
.ord-flow-icon--cancelled {
    background: #fef2f2;
    color: #dc2626;
    font-size: 18px;
}
.ord-flow-step__label {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
}
.ord-flow-step.is-done .ord-flow-step__label,
.ord-flow-step.is-current .ord-flow-step__label {
    color: #0f172a;
    font-weight: 700;
}
.ord-flow-connector {
    flex: 1 1 20px;
    min-width: 14px;
    max-width: 48px;
    height: 2px;
    background: #e2e8f0;
    margin-top: 22px;
}
.ord-flow-connector.is-done { background: #7c3aed; }
.ord-flow-terminal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px;
}
.ord-flow-terminal__label {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.ord-item-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ord-item-row--edit {
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
}
.ord-item-row:last-child { border-bottom: none; }
.ord-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.ord-item-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}
.ord-item-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.ord-item-qty { font-size: 11px; color: #64748b; font-weight: 600; margin-top: 2px; }
.ord-item-price { font-size: 13px; font-weight: 800; color: #0f172a; white-space: nowrap; }
.ord-item-new-tag {
    display: inline-flex;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}
.ord-item-qty-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 4px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.ord-item-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}
.ord-item-qty-btn:hover { background: #ede9fe; color: #7c3aed; }
.ord-item-qty-input {
    width: 36px;
    height: 24px;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    -moz-appearance: textfield;
}
.ord-item-qty-input::-webkit-outer-spin-button,
.ord-item-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ord-items-add { position: relative; margin-top: 12px; }
.ord-product-dropdown {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 4px);
    z-index: 40;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    max-height: 240px;
    overflow: auto;
    padding: 4px;
}
.ord-product-dropdown__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}
.ord-product-dropdown__item:hover { background: #f5f3ff; }
.ord-product-dropdown__name { font-size: 12px; font-weight: 700; color: #0f172a; }
.ord-product-dropdown__price { font-size: 12px; font-weight: 800; color: #7c3aed; white-space: nowrap; }
.ord-items-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.ord-totals {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1.5px solid #f1f5f9;
}
.ord-totals__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.ord-totals__row span:last-child { color: #0f172a; font-weight: 700; }
.ord-totals__row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
}
.ord-totals__row--total span { font-weight: 800; color: #7c3aed; }

.ord-info-cell {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
}
.ord-info-cell__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 4px;
}
.ord-info-cell__value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}
.ord-info-cell__sub {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

.ord-timeline { display: flex; flex-direction: column; }
.ord-timeline__item {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 0 14px;
    position: relative;
    padding-bottom: 18px;
}
.ord-timeline__item:last-child { padding-bottom: 0; }
.ord-timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.ord-timeline__marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    background: #cbd5e1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
    z-index: 1;
}
.ord-timeline__marker--created { background: #7c3aed; }
.ord-timeline__marker--completed { background: #059669; }
.ord-timeline__marker--cancelled { background: #dc2626; }
.ord-timeline__marker--delivery { background: #0284c7; }
.ord-timeline__marker--ready { background: #059669; }
.ord-timeline__marker--making { background: #d97706; }
.ord-timeline__marker--status { background: #7c3aed; }
.ord-timeline__marker--note { background: #94a3b8; }
.ord-timeline__time { font-size: 11px; color: #94a3b8; font-weight: 600; margin-bottom: 2px; }
.ord-timeline__title { font-size: 13px; font-weight: 700; color: #0f172a; }
.ord-timeline__desc { font-size: 12px; color: #64748b; margin-top: 3px; line-height: 1.45; }

.ord-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ord-note {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.ord-note:last-child { border-bottom: none; padding-bottom: 0; }
.ord-note__text { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.45; }
.ord-note__time { font-size: 11px; color: #94a3b8; font-weight: 600; margin-top: 4px; }

.ord-client-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ord-phone-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}
.ord-phone-link:hover { text-decoration: underline; }

.ord-mini-stat {
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    text-align: center;
}
.ord-mini-stat__val {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.ord-mini-stat__lbl {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.adm-stat-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
