.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;
}
