/* Product Table Styles */
.product-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.product-row:hover {
    background-color: #f8f9fa;
}

.product-row.table-primary {
    background-color: #cfe2ff !important;
}

.focused-price {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

.quantity-input-group {
    max-width: 150px;
}

.quantity-input {
    text-align: center;
    font-weight: bold;
}

.confirm-btn {
    font-weight: bold;
}

/* Add gradients or other modern touches here */
.table thead th {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
}

/* Narx tugmalarini bir xil o'lchamga keltirish */
.price-cell {
    white-space: nowrap;
    min-width: 330px;
    /* Ikkita tugma uchun joy */
    position: relative;
}

.add-to-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    width: 155px;
    /* Tugmalarning bir xil uzunligi */
    padding: 4px 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.add-to-cart-btn span {
    font-size: 0.7rem !important;
    padding: 2px 5px !important;
    margin-left: 5px;
    border-radius: 4px;
    pointer-events: none;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Aktiv mijozlar ro'yxati stili */
#active-clients-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.active-client-item {
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    padding: 10px 15px !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    background: #fff;
    list-style: none;
    /* Nuqtani olib tashlash */
}

.active-client-item:hover {
    background-color: #f0f7ff !important;
    border-color: #0d6efd !important;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.active-client-item div:first-child {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.active-client-item .text-muted {
    font-size: 0.85rem;
    color: #6c757d !important;
}

/* Asosiy bloklarni (Chap va O'ng) bir xil balandlikka keltirish */
.container .row {
    display: flex;
    align-items: stretch;
}

.container .row>.col-md-9,
.container .row>.col-md-3 {
    display: flex;
    flex-direction: column;
}

.container .row>.col-md-9>.card,
.container .row>.col-md-3>.card {
    flex: 1;
    height: 100% !important;
    margin-bottom: 0;
}

/* Miqdor kiritish oynasi (Popover) */
.popover-input {
    position: absolute;
    top: 100%;
    z-index: 1000;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: slideIn 0.2s ease-out;
    width: 130px !important;
    /* Kenglikni kichraytirdik */
}

.popover-input::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transform: rotate(45deg);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.quantity-input {
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    color: #0d6efd !important;
    text-align: center;
}

.confirm-btn {
    border-radius: 6px !important;
    height: 32px;
    padding: 0 12px !important;
}

/* Savat ro'yxati va Mahsulotlar ro'yxati orasidagi masofani boshqarish */
.card.d-flex.flex-column {
    display: flex;
    flex-direction: column;
}

.card.d-flex.flex-column>.flex-grow-1 {
    flex: 1 1 auto;
}

/* Vertikal ajratgich (Vertical Rule) */
.vr {
    width: 2px !important;
    background: linear-gradient(to bottom, transparent, #0d6efd, #0d6efd, transparent) !important;
    opacity: 0.3 !important;
    margin: 0 20px !important;
    align-self: stretch;
    border: none !important;
}