.sumoselect p {margin: 0;}
.sumoselect{width: 200px;}

.selectbox {padding: 5px 8px;}

.sumostopscroll{overflow:hidden;}

/* filtering style */
.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;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;border-radius: 5px;}
.sumoselect.open>.search>span, .sumoselect.open>.search>label{visibility:hidden;}

/*this is applied on that hidden select. do not use display:none; or visiblity:hidden; and do not override any of these properties. */
.selectclass,.sumounder { position: absolute; top: 0; left: 0; right: 0; height: 100%; width: 100%; border: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=0)"; filter: alpha(opacity=0); -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; }
.selectclass{z-index: 1;}

    .sumoselect > .optwrapper > .options  li.opt label, .sumoselect > .captioncont,.sumoselect .select-all > label { user-select: none; -o-user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-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:2px;margin:0;}
        .sumoselect > .captioncont > span { display: block; padding-right: 30px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;cursor:default;}
            /*placeholder style*/
            .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: ;
                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; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; 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;
         /*set the height of pop up here (only for desktop mode)*/
            max-height: 250px;
             /*height*/ }
         .sumoselect > .optwrapper.okcancelinmulti > .options { border-radius: 2px 2px 0 0;}
         .sumoselect > .optwrapper.selall > .options { border-radius: 0 0 2px 2px;}
         .sumoselect > .optwrapper.selall.okcancelinmulti > .options { border-radius: 0;}
        .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.selall > .options > li.opt:first-child { border-radius:0; }
            .sumoselect > .optwrapper > .options > li.opt:last-child {border-radius: 0 0 2px 2px; border-bottom: none;}
            .sumoselect > .optwrapper.okcancelinmulti > .options > li.opt:last-child {border-radius: 0;}
            .sumoselect > .optwrapper > .options li.opt:hover { background-color: #e4e4e4; }
            .sumoselect > .optwrapper > .options li.opt.sel, .sumoselect .select-all.sel{background-color: #a1c0e4;}

            .sumoselect > .optwrapper > .options li label { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: block;cursor: pointer;}
            .sumoselect > .optwrapper > .options li span { display: none; }
            .sumoselect > .optwrapper > .options li.group > label {cursor: default;padding: 8px 6px;font-weight: bold;}

        /*floating styles*/
        .sumoselect > .optwrapper.isfloating { position: fixed; top: 0; left: 0; right: 0; width: 90%; bottom: 0; margin: auto; max-height: 90%; }

    /*disabled state*/
    .sumoselect > .optwrapper > .options li.opt.disabled { background-color: inherit;pointer-events: none;}
        .sumoselect > .optwrapper > .options li.opt.disabled * { -ms-filter: "progid:dximagetransform.microsoft.alpha(opacity=50)"; /* ie 5-7 */ filter: alpha(opacity=50); /* netscape */ -moz-opacity: 0.5; /* safari 1.x */ -khtml-opacity: 0.5; /* good browsers */ opacity: 0.5; }


    /*styling for multiple select*/
    .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:0;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.okcancelinmulti > .multicontrols > p:focus {box-shadow: 0 0 2px #a1c0e4;border-color: #a1c0e4;outline: none;background-color: #a1c0e4;}

    .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; }
    /*styling for select on popup mode*/
    .sumoselect > .optwrapper.isfloating > .options li.opt { padding: 12px 6px; }

    /*styling for only multiple select on popup mode*/
    .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);box-shadow: none;border-color: transparent;background-image: ;background-repeat: no-repeat;background-position: center center;}
    /*disabled state*/
    .sumoselect.disabled { opacity: 0.7;cursor: not-allowed;}
     .sumoselect.disabled > .captioncont{border-color:#ccc;box-shadow:none;}

    /**select all button**/
    .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: 20px;cursor: pointer;}
    .sumoselect .select-all > label, .sumoselect .select-all > span i{cursor: pointer;}
    .sumoselect .select-all.partial > span i{background-color:#ccc;}


     /*styling for optgroups*/
    .sumoselect > .optwrapper > .options li.optgroup { padding-left: 5px; text-decoration: underline; }

