body {
    background: #f5f7fb;
}

.card-soft {
    border: 0;
    box-shadow: 0 8px 22px rgba(18, 38, 63, 0.08);
    border-radius: 1rem;
}

.table thead th {
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
}

.product-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: .6rem;
    background: #e9ecef;
}

.small-muted {
    color: #6c757d;
    font-size: .9rem;
}

.login-card {
    max-width: 540px;
    margin: 2rem auto;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    right: auto;
    width: 400px;
    max-width: min(90vw, 520px);
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 14px 34px rgba(18, 38, 63, 0.16);
    border: 1px solid rgba(13, 110, 253, 0.08);
    z-index: 1050;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.autocomplete-item {
    display: block;
    padding: .9rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eef2f7;
}

.autocomplete-item:last-child {
    border-bottom: 0;
}

.autocomplete-item:hover {
    background: #f8fbff;
}

.autocomplete-thumb {
    width: 72px;
    height: 72px;
    border-radius: .8rem;
    overflow: hidden;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autocomplete-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autocomplete-thumb-placeholder {
    font-size: .72rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    padding: .25rem;
}

.autocomplete-meta {
    min-width: 0;
}

.autocomplete-title {
    font-weight: 700;
    margin-bottom: .2rem;
}

.autocomplete-line {
    font-size: .85rem;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-line-muted {
    color: #6c757d;
}

.autocomplete-empty {
    padding: 1rem;
    color: #6c757d;
    font-weight: 600;
}

.autocomplete-loading-state {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.autocomplete-neutral-state {
    font-weight: 500;
}

.autocomplete-loading-state::before {
    content: '';
    width: .85rem;
    height: .85rem;
    border-radius: 999px;
    border: 2px solid #cfe2ff;
    border-top-color: #0d6efd;
    animation: autocomplete-spin .75s linear infinite;
}

@keyframes autocomplete-spin {
    to {
        transform: rotate(360deg);
    }
}

.autocomplete-item-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
    gap: 1rem;
    align-items: center;
}

.autocomplete-col {
    min-width: 0;
}

.autocomplete-col-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: .18rem;
    font-weight: 700;
}

.autocomplete-col-value {
    font-size: .92rem;
    color: #212529;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-inline {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-inline-text {
    display: block;
    font-size: .95rem;
    color: #212529;
    font-weight: 600;
}

@media (max-width: 991px) {
    .autocomplete-results {
        position: static;
        margin-top: .5rem;
    }
}

@media (max-width: 767px) {
    .autocomplete-item-row {
        grid-template-columns: 1fr;
        gap: .45rem;
    }
}
