/* Force SumoSelect to use site's default font */
.SumoSelect,
.SumoSelect * {
    font-family: inherit !important;
}

.SumoSelect p {
    margin: 0;
}

.SumoSelect {
    width: 100%;
}

.SelectBox {
    padding: 5px 8px 6px;
}

.sumoStopScroll {
    overflow: hidden;
}

.SumoSelect .hidden {
    display: none;
}

.SumoSelect .search-txt {
    display: none;
    outline: none;
}

.SumoSelect .no-match {
    display: none;
    padding: 6px;
}

.SumoSelect.open .search-txt {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 5px 8px;
    border: none;
    box-sizing: border-box;
    border-radius: 5px;
}

.SumoSelect.open > .search > span,
.SumoSelect.open > .search > label {
    visibility: hidden;
}

.SelectClass,
.SumoUnder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    border: none;
    box-sizing: border-box;
    opacity: 0;
    filter: alpha(opacity=0);
}

.SelectClass {
    z-index: 1;
}

.SumoSelect > .optWrapper > .options li.opt label,
.SumoSelect > .CaptionCont,
.SumoSelect .select-all > label {
    user-select: none;
}

.SumoSelect {
    display: inline-block;
    position: relative;
    outline: none;
}

.SumoSelect:focus > .CaptionCont,
.SumoSelect:hover > .CaptionCont,
.SumoSelect.open > .CaptionCont {
    box-shadow: 0 0 2px #7799D0;
    border-color: #7799D0;
}

.SumoSelect > .CaptionCont {
    position: relative;
    border: 1px solid #A4A4A4;
    min-height: 14px;
    background-color: #fff;
    border-radius: 0px;
    margin: 0;
}

.SumoSelect > .CaptionCont > span {
    display: block;
    padding-right: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
}

.SumoSelect > .CaptionCont > span.placeholder {
    color: #ccc;
    font-style: italic;
}

.SumoSelect > .CaptionCont > label {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
}

.SumoSelect > .CaptionCont > label > i {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMdBhAJ/fwnjwAAAGFJREFUKM9jYBh+gBFKuzEwMKQwMDB8xaOWlYGB4T4DA0MrsuapDAwM//HgNwwMDDbYTJuGQ8MHBgYGJ1xOYGNgYJiBpuEpAwODHSF/siDZ+ISBgcGClEDqZ2Bg8B6CkQsAPRga0cpRtDEAAAAASUVORK5CYII=');
    background-position: center center;
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.SumoSelect > .optWrapper {
    display: none;
    z-index: 1000;
    top: 30px;
    width: 100%;
    position: absolute;
    left: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.11);
    border-radius: 3px;
    overflow: hidden;
}

.SumoSelect.open > .optWrapper {
    top: 35px;
    display: block;
}

.SumoSelect.open > .optWrapper.up {
    top: auto;
    bottom: 100%;
    margin-bottom: 5px;
}

.SumoSelect > .optWrapper ul {
    list-style: none;
    display: block;
    padding: 0;
    margin: 0;
    overflow: auto;
}

.SumoSelect > .optWrapper > .options {
    border-radius: 2px;
    position: relative;
    max-height: 250px;
}

.SumoSelect > .optWrapper > .options li.group.disabled > label {
    opacity: 0.5;
}

.SumoSelect > .optWrapper > .options li ul li.opt {
    padding-left: 22px;
}

.SumoSelect > .optWrapper.multiple > .options li ul li.opt {
    padding-left: 50px;
}

.SumoSelect > .optWrapper.isFloating > .options {
    max-height: 100%;
    box-shadow: 0 0 100px #595959;
}

.SumoSelect > .optWrapper > .options li.opt {
    padding: 6px 6px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.SumoSelect > .optWrapper > .options > li.opt:first-child {
    border-radius: 2px 2px 0 0;
}

.SumoSelect > .optWrapper > .options > li.opt:last-child {
    border-bottom: none;
    border-radius: 0 0 2px 2px;
}

.SumoSelect > .optWrapper > .options li.opt:hover {
    background-color: #E4E4E4;
}

.SumoSelect > .optWrapper > .options li.opt.sel {
    background-color: #a1c0e4;
    border-bottom: 1px solid #a1c0e4;
}

.SumoSelect > .optWrapper > .options li label {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    cursor: pointer;
    font-size: 100%;
}

.SumoSelect > .optWrapper > .options li span {
    display: none;
}

.SumoSelect > .optWrapper > .options li.group > label {
    background-color: #e8f4f8;
    border-top: 0px dashed #7799d0;
    border-bottom: 0px dashed #7799d0;
    cursor: default;
    padding: 8px 6px;
    font-weight: bold;
    cursor: pointer;
}

.SumoSelect > .optWrapper.isFloating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 90%;
    bottom: 0;
    margin: auto;
    max-height: 90%;
}

.SumoSelect > .optWrapper > .options li.opt.disabled {
    background-color: inherit;
    pointer-events: none;
}

.SumoSelect > .optWrapper > .options li.opt.disabled * {
    opacity: 0.5;
}

.SumoSelect > .optWrapper.multiple > .options li.opt {
    padding-left: 35px;
    cursor: pointer;
}

.SumoSelect > .optWrapper.multiple > .options li.opt span,
.SumoSelect .select-all > span {
    position: absolute;
    display: block;
    width: 30px;
    top: -4px;
    bottom: 0;
    margin-left: -35px;
}

.SumoSelect > .optWrapper.multiple > .options li.opt span i,
.SumoSelect .select-all > span i {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    border: 1px solid #AEAEAE;
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
    background-color: #fff;
}

.SumoSelect > .optWrapper > .MultiControls {
    display: none;
    border-top: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.13);
    border-radius: 0 0 3px 3px;
}

.SumoSelect > .optWrapper.multiple.isFloating > .MultiControls {
    display: block;
    margin-top: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls {
    display: block;
}

.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls > p {
    padding: 6px;
}

.SumoSelect > .optWrapper.multiple > .MultiControls > p {
    display: inline-block;
    cursor: pointer;
    padding: 12px;
    width: 50%;
    box-sizing: border-box;
    text-align: center;
}

.SumoSelect > .optWrapper.multiple > .MultiControls > p:hover {
    background-color: #f1f1f1;
}

.SumoSelect > .optWrapper.multiple > .MultiControls > p.btnOk {
    border-right: 1px solid #DBDBDB;
    border-radius: 0 0 0 3px;
}

.SumoSelect > .optWrapper.multiple > .MultiControls > p.btnCancel {
    border-radius: 0 0 3px 0;
}

.SumoSelect > .optWrapper.isFloating > .options li.opt {
    padding: 12px 6px;
}

.SumoSelect > .optWrapper.multiple.isFloating > .options li.opt {
    padding-left: 35px;
}

.SumoSelect > .optWrapper.multiple.isFloating {
    padding-bottom: 43px;
}

.SumoSelect > .optWrapper.multiple > .options li.opt.selected span i,
.SumoSelect .select-all.selected > span i,
.SumoSelect .select-all.partial > span i {
    background-color: rgb(17, 169, 17);
    border-color: transparent;
    box-shadow: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAABMSURBVAiZfc0xDkAAFIPhd2Kr1WRjcAExuIgzGUTIZ/AkImjSofnbNBAfHvzAHjOKNzhiQ42IDFXCDivaaxAJd0xYshT3QqBxqnxeHvhunpu23xnmAAAAAElFTkSuQmCC');
}

.SumoSelect.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.SumoSelect.disabled > .CaptionCont {
    border-color: #ccc;
    box-shadow: none;
}

.SumoSelect .select-all {
    border-radius: 3px 3px 0 0;
    position: relative;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    padding: 8px 0 3px 35px;
    height: 40px;
    cursor: pointer;
}

.SumoSelect .select-all > label,
.SumoSelect .select-all > span i {
    cursor: pointer;
}

.SumoSelect .select-all.partial > span i {
    background-color: #ccc;
}

.SumoSelect > .optWrapper > .options li.optGroup {
    padding-left: 5px;
    text-decoration: underline;
}




















/**
 * ============================================
 * SUMOSELECT FIX - CORRECTED
 * For: Nested OptGroups + Android + Mobile
 * Fixed: Removed duplicate select button issue
 * ============================================
 */

/* ============================================
   CRITICAL ANDROID FIXES
   ============================================ */

/* Fix transparent overlay blocking touches */
.SelectClass,
.SumoUnder {
    pointer-events: none !important;
}

/* Make interactive elements touchable */
.SumoSelect > .CaptionCont,
.SumoSelect > .optWrapper,
.SumoSelect > .optWrapper > .options li.opt,
.SumoSelect > .optWrapper > .options li.group,
.SumoSelect .select-all,
.SumoSelect > .optWrapper > .MultiControls > p {
    pointer-events: auto !important;
}

/* Enable touch manipulation */
.SumoSelect,
.SumoSelect *,
.SumoSelect > .CaptionCont,
.SumoSelect > .optWrapper,
.SumoSelect > .optWrapper > .options li {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */

/* Increase touch targets for mobile */
.SumoSelect > .CaptionCont {
    min-height: 40px;
    padding: 10px 8px;
}

.SumoSelect > .optWrapper > .options li.opt,
.SumoSelect > .optWrapper > .options li.group {
    min-height: 44px;
    padding: 12px 6px;
}

/* Better checkbox touch area for mobile */
.SumoSelect > .optWrapper.multiple > .options li.opt span {
    width: 44px;
    height: 44px;
    margin-left: -44px;
}

.SumoSelect > .optWrapper.multiple > .options li.opt {
    padding-left: 50px;
}

/* Prevent zoom on Android when focusing search */
.SumoSelect .search-txt {
    font-size: 16px !important;
}

/* Better scrolling on mobile */
.SumoSelect > .optWrapper > .options {
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   OPTGROUP SELECTION FEATURE
   ============================================ */

/* Make all optgroups clickable */
.SumoSelect > .optWrapper > .options li.group {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
}

.SumoSelect > .optWrapper > .options li.group > label {
    cursor: pointer !important;
}

/* Parent optgroups (main groups) */
.SumoSelect > .optWrapper > .options > li.group {
    background-color: #e8f4f8;
    border-bottom: 2px solid #7799d0;
    padding: 5px 6px;
}

.SumoSelect > .optWrapper > .options > li.group > label {
    color: #2c5aa0;
    font-size: 105%;
}

/* Child optgroups (sub-groups) */
.SumoSelect > .optWrapper > .options li.group li.group {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    padding: 8px 6px 8px 20px;
    font-weight: normal;
}

.SumoSelect > .optWrapper > .options li.group li.group > label {
    color: #333;
    font-size: 100%;
}

/* Hover effects */
.SumoSelect > .optWrapper > .options li.group:hover {
    background-color: #d0e9f5;
}

.SumoSelect > .optWrapper > .options li.group li.group:hover {
    background-color: #e0e0e0;
}

/* Active/pressed state for mobile */
.SumoSelect > .optWrapper > .options li.group:active {
    opacity: 0.8;
}

/* Add checkbox indicator for optgroups in multiple mode */
.SumoSelect > .optWrapper.multiple > .options li.group > label {
    padding-left: 35px;
    position: relative;
}

/* All items selected state */
.SumoSelect > .optWrapper.multiple > .options li.group.all-selected::before {
    background-color: #11a911;
    border-color: #11a911;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAABMSURBVAiZfc0xDkAAFIPhd2Kr1WRjcAExuIgzGUTIZ/AkImjSofnbNBAfHvzAHjOKNzhiQ42IDFXCDivaaxAJd0xYshT3QqBxqnxeHvhunpu23xnmAAAAAElFTkSuQmCC');
    background-repeat: no-repeat;
    background-position: center center;
}

/* Some items selected state */
.SumoSelect > .optWrapper.multiple > .options li.group.partial-selected::before {
    background-color: #ccc;
    border-color: #ccc;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAYAAABllJ3tAAAABHNCSVQICAgIfAhkiAAAABBJREFUCJlj+M/A8J+BgQEABPgB/376rGwAAAAASUVORK5CYII=');
    background-repeat: no-repeat;
    background-position: center center;
}

/* Indent child optgroup options */
.SumoSelect > .optWrapper > .options li.group ul {
    padding-left: 0;
}

.SumoSelect > .optWrapper > .options li.group ul li.opt {
    padding-left: 30px;
    background-color: #fafafa;
}

.SumoSelect > .optWrapper.multiple > .options li.group ul li.opt {
    padding-left: 60px;
}

/* Nested child optgroups */
.SumoSelect > .optWrapper.multiple > .options li.group li.group > label {
    padding-left: 45px;
}

.SumoSelect > .optWrapper.multiple > .options li.group li.group::before {
    left: 16px;
}

/* Disabled optgroups */
.SumoSelect > .optWrapper > .options li.group.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.SumoSelect > .optWrapper > .options li.group.disabled::before {
    border-color: #ccc;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Larger touch targets on mobile */
    .SumoSelect > .CaptionCont {
        min-height: 48px;
        padding: 14px 8px;
    }
    
    .SumoSelect > .optWrapper > .options li.opt,
    .SumoSelect > .optWrapper > .options li.group {
        min-height: 48px;
        padding: 14px 6px;
    }
    
    .SumoSelect > .optWrapper.multiple > .options li.opt span {
        width: 48px;
        height: 48px;
        margin-left: -48px;
    }
    
    .SumoSelect > .optWrapper.multiple > .options li.opt {
        padding-left: 54px;
    }
    
    /* Larger optgroup checkboxes on mobile */
    .SumoSelect > .optWrapper.multiple > .options li.group::before {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Z-INDEX FIXES FOR ANDROID
   ============================================ */

.SumoSelect.open {
    z-index: 9999;
}

.SumoSelect > .optWrapper {
    z-index: 10000 !important;
}

/* ============================================
   VISUAL FEEDBACK
   ============================================ */

.SumoSelect > .CaptionCont:active,
.SumoSelect > .optWrapper > .options li.opt:active,
.SumoSelect .select-all:active,
.SumoSelect > .optWrapper > .MultiControls > p:active {
    opacity: 0.8;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.SumoSelect > .optWrapper > .options li.group:focus {
    outline: 2px solid #7799d0;
    outline-offset: -2px;
}