.toggle-container {
    background-color: #eaedf0;
    padding: 4px;
    border-radius: 12px;
    display: flex;
}

.toggle-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    width: 50%;
    position: relative;
}

.toggle-btn:hover {
    color: #1e293b;
}

.toggle-btn:focus {
    outline: none;
}

.toggle-btn.active {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-btn i {
    margin-right: 10px;
    font-size: 0.8rem;
}

#autocomplete-results {
    max-height: 12rem;
    overflow-y: auto !important;
    overflow-x: hidden;
    display: block;
    padding-right: 4px;
    margin-top: 5px;
}

#autocomplete-results::-webkit-scrollbar {
    width: 5px;
}

#autocomplete-results::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 10px;
}

.custom-list-item {
    border-radius: 12px !important;
    margin-bottom: 8px;
    border: 1px solid #dee2e6 !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-list-item:hover {
    background-color: #f2faf5 !important;
    border-color: #d1e7dd !important;
}

.custom-badge {
    background-color: #f0f4f1;
    color: #5a8d6e;
    font-weight: 500;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
}

.text-address {
    color: #6c757d;
    font-size: 0.9rem;
}

.selected-client-card {
    background-color: #f2faf5 !important;
    border: 1px solid #d1e7dd !important;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-client-content .detail-text {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.btn-close-custom {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a8d6e;
    transition: all 0.2s ease-in-out;
    margin-left: 10px;
}

.btn-close-custom:hover {
    background-color: #d1e7dd;
    color: #2c4f3b;
}

.btn-close-custom i {
    font-size: 1.1rem;
    line-height: 1;
}

.bi-geo-alt, .bi-geo-alt-fill {
    margin-right: 5px;
}

.btn-cancel:hover {
    background-color: #e9f7ef;
    color: #1e7e34 !important;
}

.btn-add {
    background-color: #1B9849FF;
    border-radius: 8px;
    color: white;
}

.btn-add:hover {
    background-color: #1B9849E5 !important;
    color: white;
}

.send-invoice-label {
  cursor: pointer;
  background-color: #f0faf4;
  color: #212529;
}

.send-invoice-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #1a9848;
  border-radius: 50%;
  color: transparent;
}

#id_send_invoice:checked + .send-invoice-label .send-invoice-checkbox {
  background-color: #1a9848;
  color: #fff;
}

#id_send_invoice:disabled + .send-invoice-label {
  opacity: 0.5;
  cursor: not-allowed;
}
