.dropchecklist { 
    position: relative;
    display: inline-block;
    width: 250px; /*width: fit-content;*/
    cursor: pointer;
    user-select: none;
	margin-right: 0px;       /* space between dropdowns 2px */
	margin-top: 0px;
}

.dropchecklistCaption {
    position: relative;      /* 👈 IMPORTANT so the arrow aligns correctly */
    padding: 0.5rem;
    padding-right: 22px;     /* room for arrow */ 
    border: 1px solid #ccc;
    cursor: pointer; 
    background: #fff;
    border-radius: 6px;
    margin: 0;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
   
}


.dropchecklistCaption::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    pointer-events: none;
}
 
.dropchecklistMenu {
    display: none;
    position: absolute;
    top: 100%;       /* sits exactly under caption */
    left: 0;
    right: 0;
    width: 100%;
   
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0 0 6px 6px;
    /*box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
    z-index: 100;

    /* 🔥 remove gap */
    margin: 0;
    padding: 0;   
      
}

.dropchecklistMenu li {
    padding: 12px;
    list-style: none;
    cursor: pointer;
    margin: 0;      /* 🔥 removes possible spacing */
}

.dropchecklistMenu li:hover {
    background-color: #f0f0f0;
}


/* when active, show menu */
.dropchecklist.open .dropchecklistMenu {
    display: block;
}









































