﻿/* Product Overrides Management Page Styles */


.aks-overrides-container {
    max-width: 2560px;
    padding: 15px;
}
/* Override status badges */

.aks-badge-source {
    background-color: #4a6da7;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.aks-badge-confidence {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.aks-badge-high {
    background-color: #28a745;
    color: white;
}

.aks-badge-medium {
    background-color: #ffc107;
    color: #212529;
}

.aks-badge-low {
    background-color: #dc3545;
    color: white;
}

.aks-badge-auto-apply {
    background-color: #17a2b8;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.aks-badge-manual {
    background-color: #6c757d;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.aks-badge-count {
    background-color: #343a40;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

/* Filter button active state */
.aks-btn.active {
    background-color: #007bff;
    color: white;
}

/* Truncate long text in cells */
.aks-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Override type indicators */
.aks-override-types {
    display: flex;
    gap: 0.25rem;
}

.aks-override-type {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.aks-override-unit {
    background-color: #4a6da7;
    color: white;
}

.aks-override-price {
    background-color: #28a745;
    color: white;
}

.aks-override-desc {
    background-color: #ffc107;
    color: #212529;
}

.aks-override-content {
    background-color: #17a2b8;
    color: white;
}

/* Small text for details */
.aks-override-details {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Modal for delete confirmation */
.aks-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.aks-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.aks-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

    .aks-modal-header h3 {
        margin: 0;
    }

.aks-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.aks-modal-body {
    margin-bottom: 20px;
}

.aks-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .aks-override-details {
        display: none;
    }

    .aks-truncate {
        max-width: 100px;
    }
}
