.icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1.5rem;
    padding: 0.8rem;
}

.icon-wrap i {
    font-size: 20px;
}

.password-toggle-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-ink-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    z-index: 5;
    font-size: 18px;
    color: var(--bs-gray-600);
}

.value-row {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.value-row:hover {
    border-color: #4e73df;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.1);
}

.color-preview {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-preview:hover {
    transform: scale(1.1);
    border-color: #4e73df;
}

.value-row:last-child {
    margin-bottom: 0;
}

.customer-info-card {
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 14px 16px;
    margin-top: 1rem;
    display: none;
}

.customer-info-card.show {
    display: block;
}

.btn-group.customer-type .btn-modern {
    border-radius: 1.5rem;
}

.customer-type .btn-check:checked+.btn-modern {
    background: #002757 !important;
    color: #fff !important;
    border-color: #002757 !important;
}

.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #f0f4ff;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item .item-image-wrapper {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autocomplete-item .item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autocomplete-item .item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 16px;
}

.autocomplete-item .item-info {
    flex: 1;
    min-width: 0;
}

.autocomplete-item .item-name {
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item .item-sub {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.autocomplete-item .item-stock {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
    white-space: nowrap;
}

.autocomplete-item .item-price {
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
    white-space: nowrap;
}

.autocomplete-loading,
.autocomplete-no-results {
    padding: 15px;
    text-align: center;
    color: #6c757d;
}

.autocomplete-highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper .search-loading {
    position: absolute;
    right: 12px;
    top: 41px;
    display: none;
}

.search-wrapper.loading .search-loading {
    display: block;
}

.supplier-info-card {
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 14px 16px;
    margin-top: 1rem;
    display: none;
}

.supplier-info-card.show {
    display: block;
}

tr.variant-row table thead tr {
    color: var(--bs-white);
    background: var(--bs-table-color);
}

tr.variant-row table thead tr th,
tr.variant-row table tbody tr td {
    padding: .4rem !important;
}

.cash-flow-positive {
    border-left: 4px solid #1cc88a;
}

.cash-flow-negative {
    border-left: 4px solid #e74a3b;
}

.item-row {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.item-row:hover {
    border-color: #4e73df;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.1);
}

.item-row.selected {
    border-color: #28a745;
    background: #f0fff4;
}

.item-row.deselected {
    opacity: 0.6;
    background: #f8f9fa;
}

.invoice-items-loading {
    text-align: center;
    padding: 40px;
}

.invoice-items-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

.select-all-checkbox {
    cursor: pointer;
}

.item-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.invoice-summary-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 15px;
}

.invoice-items-count {
    font-size: 12px;
    color: #6c757d;
}

.type-badge-sale {
    background: #17a2b8;
    color: white;
}

.type-badge-purchase {
    background: #fd7e14;
    color: white;
}

/* mobile responsive */
@media (max-width: 991.98px) {
    .icon-wrap {
        padding: .5rem !important;
        border-radius: 1rem !important;
    }

    .icon-wrap i {
        font-size: 12px;
    }
}