/* mwcombinationtable/views/css/grid-table.css */

#mw-combination-table-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    width: 100%;
}

#mw-combination-table {
    width: 100%;
    vertical-align: middle;
}

#mw-combination-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    white-space: nowrap;
}

#mw-combination-table td {
    vertical-align: middle;
}

.mw-qty-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.mw-qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ced4da;
    margin: 0 4px;
}

.mw-qty-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.mw-qty-btn:hover {
    background-color: #e9ecef;
}

.mw-stock-badge {
    font-size: 0.85em;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.mw-stock-badge.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.mw-stock-badge.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.mw-discount-badge {
    font-size: 0.85em;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    background-color: #ffc107;
    color: #856404;
    font-weight: bold;
}

.mw-total-block {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mw-total-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-right: 1rem;
}

.mw-add-btn {
    padding: 0.375rem 0.75rem;
    background-color: #24b9d7;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.mw-add-btn:hover {
    background-color: #21a9c4;
}

.mw-add-btn i {
    margin-right: 0;
}

.hidden-col {
    display: none;
}

/* Toast Notification */
#mw-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.mw-toast {
    background: #fff;
    border-left: 4px solid #28a745;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: mw-slide-in 0.3s ease-out;
    min-width: 250px;
}

.mw-toast.error {
    border-left-color: #dc3545;
}

.mw-toast-icon {
    font-size: 20px;
    color: #28a745;
}

.mw-toast.error .mw-toast-icon {
    color: #dc3545;
}

@keyframes mw-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
