/* assets/css/admin-order.css */

/* General Container */
.bhcm-order-manage {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    font-family: 'Inter', sans-serif;
}
.kitchen-tab
{
    background: #f39200;
}
/* Header & Filters */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-bar h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-form {
    display: flex;
    gap: 12px;

}

.filter-form select {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    min-width: 160px;
}

.filter-form select:hover {
    border-color: #cbd5e0;
}

.filter-form select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bhcm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    white-space: nowrap;
}

.bhcm-table thead {
    background-color: #f7fafc;
}

.bhcm-table th {
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.bhcm-table td {
    padding: 16px 24px;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.bhcm-table tr:last-child td {
    border-bottom: none;
}

.bhcm-table tr:hover td {
    background-color: #fafbfc;
}

/* Columns specific styling */
.col-id { font-weight: 600; color: #3182ce; }
.col-customer { display: flex; flex-direction: column; gap: 4px; }
.customer-name { font-weight: 500; color: #2d3748; }
.customer-meta { font-size: 12px; color: #718096; }
.col-total { font-weight: 600; font-family: 'Be Vietnam Pro', sans-serif; }

/* Status Badges */
.bhcm-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.badge-wc-completed { background-color: #def7ec; color: #03543f; }
.badge-wc-processing { background-color: #fefcbf; color: #744210; }
.badge-wc-pending { background-color: #edf2f7; color: #2d3748; }
.badge-wc-cancelled, .badge-wc-failed { background-color: #fed7d7; color: #9b2c2c; }
.badge-wc-on-hold { background-color: #e2e8f0; color: #4a5568; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    gap: 6px;
}

.btn-view {
    background-color: #edf2f7;
    color: #4a5568;
}

.btn-view:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

.btn-complete {
    background-color: #3182ce;
    color: white;
}

.btn-complete:hover {
    background-color: #2b6cb0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination .button {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination .button:hover {
    border-color: #cbd5e0;
    background-color: #f7fafc;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 0;
    color: #718096;
}

/* Modal Styles - Critical Fix */
.bhcm-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 99999; /* High z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Backdrop */
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.bhcm-modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pos-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.pos-close:hover {
    color: #e53e3e;
}

/* Modal Content Styling */
#order-modal-body h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 18px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

#order-modal-body table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

#order-modal-body th {
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #edf2f7;
    color: #718096;
    font-size: 13px;
    text-transform: uppercase;
}

#order-modal-body td {
    padding: 12px 8px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

#order-modal-body tfoot tr td {
    border-top: 2px solid #edf2f7;
    border-bottom: none;
    font-size: 16px;
    padding-top: 16px;
}

/* Modal Action Buttons */
#order-modal-body .button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    margin-right: 10px;
}

#order-modal-body .button-primary {
    background-color: #3182ce;
    color: white;
}

#order-modal-body .button-primary:hover {
    background-color: #2b6cb0;
}
