/**==================invoice styles==================================*/
#id_invoice_container.inactive .quantity-modifier {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

#id_invoice_container.inactive .invoice-items-list {
    filter: grayscale(1);
}


/*===================agent select styles==============================*/
.subtitle {
    color: #747c7c;
    margin-bottom: 10px;
}

.subtitle span {
    margin-left: 5px;
    color: red;
}

.agent-selector {
    position: relative;
    width: 100%;
}

.selected-agent {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.selected-agent:hover {
    border-color: #3498db;
}

.selected-agent.open {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.agent-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: fill;
    margin-right: 15px;
    border: 2px solid #f1f1f1;
}

.agent-info {
    flex: 1;
}

.agent-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.agent-email {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.dropdown-arrow {
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.agents-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
}

.agents-list.open {
    max-height: 250px;
    overflow-y: auto;
}

.agent-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.agent-option:last-child {
    border-bottom: none;
}

.agent-option:hover {
    background-color: #f8f9fa;
}

.agent-option.selected {
    background-color: #e8f4fd;
}

.agent-option .agent-image {
    width: 40px;
    height: 40px;
}

.agent-option .agent-info {
    flex: 1;
}

.agent-option .agent-name {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.agent-option .agent-email {
    font-size: 0.8rem;
}

.selected-indicator {
    color: #3498db;
    font-size: 1.2rem;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.agent-option.selected .selected-indicator {
    opacity: 1;
}

.no-agents {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
}

@media (max-width: 600px) {


    .selected-agent {
        padding: 12px;
    }

    .agent-image {
        width: 45px;
        height: 45px;
    }

    .agent-option {
        padding: 10px 12px;
    }
}