/* ============================================ */
/*  Dine360 Online Orders Screen - POS          */
/* ============================================ */

.online-orders-screen {
    background: #171422;
    color: #eee;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Header */
.online-orders-header {
    background: #171422;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
}

.online-orders-title {
    color: #fff;
    font-size: 1.4rem;
}

.order-count-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.btn-back {
    border-radius: 10px;
    font-weight: 600;
}

.btn-refresh {
    border-radius: 10px;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Body */
.online-orders-body {
    background: #171422;
}

/* Left Panel - Orders List */
.online-orders-list {
    width: 380px;
    min-width: 380px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

/* Order Card */
.order-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.order-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.order-card.selected {
    background: rgba(214, 17, 30, 0.1);
    border-color: #d6111e;
    box-shadow: 0 0 15px rgba(214, 17, 30, 0.2);
}

.order-ref {
    color: #fff;
    font-size: 0.95rem;
}

.order-total {
    color: #53cf8a;
    font-size: 1.1rem;
}

.order-customer {
    color: #ccc;
    font-size: 0.9rem;
}

.order-date {
    font-size: 0.8rem;
}

/* Action Buttons in Card */
.btn-confirm-order {
    border-radius: 8px;
    font-weight: 600;
    background: #27ae60;
    border: none;
    padding: 8px 0;
}

.btn-confirm-order:hover {
    background: #2ecc71;
}

.btn-reject-order {
    border-radius: 8px;
    font-weight: 600;
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 0;
}

.btn-reject-order:hover {
    background: #e74c3c;
    color: #fff;
}

/* Right Panel - Order Detail */
.online-order-detail {
    overflow-y: auto;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    height: 100%;
}

.detail-section {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-section:last-of-type {
    border-bottom: none;
}

/* Customer Avatar */
.customer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d6111e, #1a1d23);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

/* Note Box */
.note-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #ffc107;
    font-style: italic;
}

/* Order Lines Table */
.order-lines-table {
    color: #ddd;
}

.order-lines-table thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
}

.order-lines-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 8px;
    vertical-align: middle;
}

.order-lines-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.total-row td {
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
    padding-top: 14px;
    font-size: 1.15rem;
}

.order-total-amount {
    color: #53cf8a;
    font-size: 1.3rem !important;
}

/* Kitchen Badge */
.kitchen-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
}

.kitchen-badge.active {
    background: rgba(214, 17, 30, 0.2);
    color: #d6111e;
}

/* Detail Action Buttons */
.btn-confirm-detail {
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    padding: 14px 24px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-confirm-detail:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-reject-detail {
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 24px;
}

/* Empty State */
.empty-state .empty-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.15);
    display: block;
}

/* Navbar Button */
.online-orders-nav-btn {
    background: rgba(214, 17, 30, 0.15);
    border: 1px solid rgba(214, 17, 30, 0.3);
    color: #d6111e;
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.online-orders-nav-btn:hover {
    background: #d6111e;
    color: #fff;
    border-color: #d6111e;
}

/* Scrollbar */
.online-orders-list::-webkit-scrollbar,
.online-order-detail::-webkit-scrollbar {
    width: 6px;
}

.online-orders-list::-webkit-scrollbar-thumb,
.online-order-detail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.online-orders-list::-webkit-scrollbar-track,
.online-order-detail::-webkit-scrollbar-track {
    background: transparent;
}

/* Spinner */
.spinner-border {
    color: #d6111e !important;
}

/* Responsive */
@media (max-width: 768px) {
    .online-orders-list {
        width: 100%;
        min-width: 100%;
    }

    .online-order-detail {
        display: none;
    }

    .order-card.selected+.online-order-detail {
        display: block;
    }
}