/* ===== BASE ===== */
.orders-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    background: #f7f7f8;
}

/* ===== HEADER ===== */
.orders-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.orders-subtitle {
    color: #8a8a8a;
    font-size: 14px;
    margin-bottom: 18px;
}

/* ===== LIST ===== */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== CARD ===== */
.order-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: 0.2s ease;
}

.order-card:active {
    transform: scale(0.98);
}

/* ===== HEADER ROW ===== */
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-id {
    font-weight: 600;
}

/* ===== STATUS BADGE (Stripe style) ===== */
.status-badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
}

/* 🟡 processing */
.status-FM {
    background: #fff4cc;
    color: #b7791f;
}

/* 🟢 done */
.status-DONE {
    background: #dcfce7;
    color: #166534;
}

/* 🔴 cancelled */
.status-CANCEL {
    background: #fee2e2;
    color: #991b1b;
}

/* default */
.status-default {
    background: #f3f4f6;
    color: #374151;
}

/* ===== INFO ===== */
.order-info {
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
}

/* ===== ACTIONS ===== */
.order-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.order-actions a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* buttons */
.btn-success {
    background: #22c55e;
    color: white;
}

.btn-outline-primary {
    border: 1px solid #2563eb;
    color: #2563eb;
    background: transparent;
}

.btn-outline-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
    background: transparent;
}

/* ===== BOTTOM ===== */
.orders-bottom {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.orders-bottom a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===== EMPTY ===== */
.orders-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {

    .orders-page {
        padding: 12px;
    }

    .order-actions {
        flex-direction: column;
    }

    .orders-bottom {
        position: sticky;
        bottom: 10px;
        background: #f7f7f8;
        padding-top: 10px;
    }
}
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* базовые кнопки */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

/* COLORS (Stripe style) */
.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

/* mobile */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
/* карточка действий */
.actions-card {
    margin-top: 16px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* PRIMARY BUTTON (главное действие) */
.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* secondary block */
.secondary-actions {
    display: flex;
    gap: 10px;
}

/* delete button */
.btn-danger {
    flex: 1;
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

/* bottom navigation buttons */
.btn-secondary {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

/* second block spacing */
.actions-card.secondary {
    flex-direction: row;
}

/* MOBILE APP STYLE */
@media (max-width: 600px) {

    .actions-card.secondary {
        flex-direction: column;
    }

    .secondary-actions {
        flex-direction: column;
    }
}
