.asynclistry-card-cover {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.asynclistry-card {
    outline: none;
    border-color: transparent;
    transition: outline-width 0.2s ease, outline-color 0.2s ease;
}

/* hover state */
.asynclistry-card:hover {
    outline: 3px solid var(--asynclistry-secondary);
    outline-offset: -3px; /* draws inward */
}

/* active (selected) state */
.asynclistry-card.active {
    outline: 3px solid var(--asynclistry-primary);
    outline-offset: -4px;
}


.asynclistry-card {
    cursor: pointer;
}

.offcanvas {
    z-index: 100000 !important;
}

.offcanvas-backdrop {
    z-index: 100001 !important;
}


.text-justify {
    text-align: justify !important;
}

.lightbox {
    z-index: 100005 !important;
}

.overlay-icon {
    position: absolute;
    bottom: 15px;
    right: 5px;
    color: white;
    mix-blend-mode: difference;
    pointer-events: none;
}

#asynclistry-category .input-tag {
    display: flex;
    flex-wrap: wrap;                  /* allow wrapping */
    align-items: flex-start;          /* top align rows */
    gap: .5rem;
    padding: .25rem .5rem;
    cursor: default;

    min-height: calc(2.25rem + 2px);  /* preserve base height */
    height: auto;                     /* expand naturally */

    border: 1px solid var(--bs-border-color, rgba(0,0,0,.25));
    border-radius: var(--bs-border-radius, .375rem) 0 0 var(--bs-border-radius, .375rem);
    box-shadow: none !important;
    background: var(--bs-body-bg, #fff);

    overflow-x: hidden;               /* prevent horizontal scroll */
    overflow-y: auto;                 /* vertical expansion if needed */

    -ms-overflow-style: none;         /* IE/Edge */
    scrollbar-width: none;            /* Firefox */
}

@media (max-width: 576px) {
  #asynclistry-category .input-tag {
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: calc(2.25rem + 2px);
    align-items: flex-start;
  }
}

#asynclistry-category .input-tag::-webkit-scrollbar {
    display: none;
}
#asynclistry-category .input-tag::-webkit-inner-spin-button,
#asynclistry-category .input-tag::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#asynclistry-category .placeholder {
    color: var(--bs-body-color, #212529);
    font-size: 1rem;
    background: transparent;
    pointer-events: none;
    line-height: 1.25;
}

/* keep HTML exactly as you had it */
#asynclistry-category .dropdown {
  align-self: stretch;   /* override parent's align-items:center */
}

#asynclistry-category .dropdown .btn {
  height: 100%;          /* fill the stretched wrapper */
  line-height: normal;   /* unlock Bootstrap's fixed height */
  display: flex;
  align-items: center;   /* vertical center text */
  padding-top: .25rem;
  padding-bottom: .25rem;
}


#asynclistry-category .input-tag .btn {
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
}


#asynclistry-category .dropdown-menu {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    border: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.15));
    border-radius: var(--bs-border-radius, .375rem);
    box-shadow: var(--bs-box-shadow, 0 .5rem 1rem rgba(0,0,0,.175));
    background-color: var(--bs-body-bg, #fff);
    max-height: 16rem;
    overflow-y: auto;
}

.filter-icon .icon {
    transition: opacity .2s ease;
    opacity: .65;
}

.filter-icon.active .icon {
    opacity: 1 !important;
}

.form-control:focus {
    box-shadow: none !important;
}

.offcanvas-start {
    width: 550px !important;
    overflow-y: auto;  /* make the whole offcanvas scrollable */
    direction: rtl;    /* put scrollbar on the left */
}

.offcanvas-start > * {
    direction: ltr;    /* reset content direction */
    text-align: left;  /* keep text aligned left */
}

.asynclistry-field ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
}

.asynclistry-field ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
}

.asynclistry-field p {
    padding-bottom: 0;
}

