/* The Modal (background) */

.popup-modal {
   display: none;
   /* Hidden by default */
   position: fixed;
   /* Stay in place */
   z-index: 1031;
   /* Sit on top */
   padding-top: 180px;
   /* Location of the box */
   left: 0;
   top: 0;
   width: 100%;
   /* Full width */
   height: 100vh;
   /* Full height */
   overflow: auto;
   /* Enable scroll if needed */
   background-color: rgb(0, 0, 0);
   /* Fallback color */
   background-color: rgba(0, 0, 0, 0.4);
   /* Black w/ opacity */
}

@media screen and (max-width: 600px) {
   .popup-modal {
      padding-top: 80px;
   }
}

/* Modal Content */

.popup-modal-content {
   background-color: #fefefe;
   margin: auto;
   padding: 20px;
   padding-top: 10px;
   border: 1px solid #888;
   width: 80%;
   max-width: 300px;
   text-align: right;
   border-radius: 6px;
   max-height: calc(100% - 18px);
   overflow: auto;
}

#popynname, #popdivname {
   text-align: left;
   font-size: 20px;
   letter-spacing: 1px;
   font-weight: 600;
   word-break: break-all;
}

/* The Close Button */

.popup-close, .popup-cancel {
   height: 20px;
   width: 74px;
   color: #E4007F;
   font-size: 16px;
   font-weight: 500;
   letter-spacing: 1.14px;
   line-height: 20px;
   text-align: center;
   padding: 12px;
}

.popup-close:hover, .popup-close:focus, .popup-cancel:hover, .popup-cancel:focus {
   text-decoration: none;
   cursor: pointer;
   background-color: #cccccc;
}

.poplist {
   background-color: #fefefe;
   margin: auto;
   border: 1px solid #ccc;
   position: absolute;
   height: auto;
   overflow-y: auto;
   z-index: 2;
   max-height: 200px;
   display: none;
   width: 240px;
}

.poplist ul {
   list-style-type: none;
   padding: 0;
   margin: 0;
   width: 100%;
}

.poplist li {
   margin-top: -1px;
   text-decoration: none;
   font-size: 18px;
   color: black;
   display: block;
   padding: 0;
   padding-left: 5px;
   line-height: 30px;
   cursor: pointer;
   text-align-last: left !important;
}

.poplist li:hover:not(.header) {
   background-color: #eee;
}

.poplist li[disabled] {
   opacity: 0.2;
   cursor: not-allowed;
}

[name=poplist].readonly {
   cursor: default;
}

[name=poplist]:not(:disabled), .popmulti>input {
   background: url("/Lib/Images/DownArrow.svg") transparent;
   background-repeat: no-repeat;
   background-position: right 0px center;
   background-attachment: scroll;
   background-size: 1.8rem 1.8rem;
   padding-right: 25px;
}

[name=poplist] {
   box-sizing: border-box;
   padding: 8px;
   display: block;
   width: 100%;
   height: 39px;
   border: none;
   border: 1px solid #ccc;
}

.popmulti>input {
   cursor: pointer;
   background-color: white;
}

.popmulti ul li {
   list-style-type: none;
}

.popmulti .poplist>ul>li>ul {
   padding-left: 20px;
}

.popmulti .poplist ul label {
   cursor: pointer;
   padding: 0 8px;
   display: inline-block;
   width: 100%;
}

.popmulti .poplist ul label:hover {
   background-color: #418EFF;
   color: white
}

.popmulti .poplist input {
   height: unset;
}

.popmulti .poplist ul input {
   margin: 0px 4px 0px 0px;
}

.popmulti .poplist {
   max-height: unset;
}

.popmulti .poplist>ul {
   max-height: 200px;
   overflow-y: auto;
   margin-top: 1px;
}