/* === POS THEME - CUSTOM STYLES (v5 - Cập nhật màu theo ảnh) === */
:root {
    --primary-color: #4a55a2;
    --primary-color-dark: #3a437e;
    --secondary-color: #f3f4f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- TỔNG QUAN --- */
#page-content-wrapper { background-color: var(--secondary-color); }
.pos-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

/* --- TIÊU ĐỀ CARD (Header) --- */
.pos-card-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.8rem 1.25rem;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

/* === ▼▼▼ KHU VỰC ĐÃ CẬP NHẬT ▼▼▼ === */
/* --- BẢNG SẢN PHẨM --- */
#order-table thead {
    background-color: #424874; /* Cập nhật màu xanh-tím đậm theo ảnh */
    color: var(--text-light);
}
/* === ▲▲▲ KẾT THÚC KHU VỰC CẬP NHẬT ▲▲▲ === */

#order-table thead th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    padding: 0.75rem;
}
#order-table-body tr:hover { background-color: #eff6ff; }
.btn-remove-item {
    background-color: #fee2e2;
    color: var(--danger-color);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    padding: 0;
    font-weight: bold;
    transition: all 0.2s ease;
}
.btn-remove-item:hover {
    background-color: var(--danger-color);
    color: var(--text-light);
}

/* --- KHỐI THANH TOÁN --- */
.pos-right-column .pos-card .pos-card-body { padding: 1rem; }
.summary-row {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.summary-row span:first-child { color: #6b7280; }
.summary-row span:last-child { font-weight: 600; color: var(--text-dark); }
.summary-row-total {
    background: linear-gradient(to right, #4a55a2, #7882d0);
    color: var(--text-light);
    margin: 1rem -1rem;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 2.25rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(74, 85, 162, 0.3);
}
.summary-row-total span { color: var(--text-light) !important; }
.summary-row:has(#amount-paid),
.summary-row:has(#amount-debt) {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.summary-row label.fw-bold,
.summary-row:has(#amount-debt) > span:first-child {
    font-size: 1.1rem;
    font-weight: 700 !important;
}
#amount-paid {
    font-size: 2rem !important;
    font-weight: bold;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    height: auto;
    padding: 0.5rem;
}
#amount-debt {
    font-size: 2rem !important;
    font-weight: bold;
}

/* --- FOOTER --- */
.pos-card-footer {
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 0 0 12px 12px;
}
.pos-card-footer .mb-3 { margin-bottom: 0.5rem !important; }
.pos-card-footer .btn-group .btn-check + label {
    border-radius: 6px !important;
    font-weight: 500;
    padding: 0.4rem;
    font-size: 0.75rem;
    border-color: #d1d5db;
    transition: all 0.3s ease;
}
.pos-card-footer .btn-group .btn-check:checked + label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 2px 5px rgba(74, 85, 162, 0.4);
}
.pos-card-footer .d-grid, .pos-card-footer .d-flex { gap: 0.25rem !important; }
.pos-card-footer .d-grid .btn, .pos-card-footer .d-flex .btn {
    border-radius: 6px;
    padding: 0.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
#btn-save-print {
    background-color: var(--success-color);
    border-color: var(--success-color);
}
#btn-save-print:hover { background-color: #059669; border-color: #059669; }
#btn-save {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
#btn-save:hover { background-color: var(--primary-color-dark); border-color: var(--primary-color-dark); }