/* Generic PopUps */

#mymodal,
#mymodal2,
#mymodal3,
#popup_upload,
#copy_turns{
    position: fixed;
    /* Stay in place */
    z-index: 100000 !important;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
}
#modal {
    position: fixed;
    /* Stay in place */
    z-index: 500000 !important;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
}
.modal {
    background-color: #fefefe;
    position: absolute;
    top: 40%;
    left: 50%;
    height: auto !important;
    width: 50vw;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -40%);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.8);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
}
#alert-msg{
    width: 500px;
    min-height: 100px !important;
}
#alert-msg .copy{
    padding: 25px 10px !important;
    box-sizing: border-box;
    text-align: center;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    height:100%;
    min-height: 100px !important;

}
#alert-msg .copy p {
    font-size: 18px;
    word-break: break-word;
}

#edit_form-small.modal,
#mymodal_upload.modal{
    position: absolute;
    top: 45%;
}

#view-turns.modal{
    position: absolute;
    top: 45%;
    width: 500px !important;
}


#edit_form_team.modal,
#edit_form_reg.modal,
#edit_form_task {
    position: absolute;
    width: 750px !important;
}

#edit_form,
#mymodal_upload {
    position: absolute;
    top: 43%;
    width: 500px !important;
}

#edit_form_task-spacedout.modal {
    position: absolute;
    top: 35%;
    width: 500px !important;
}

#edit_form_task-spacedout.modal,
#edit_form-merchant.modal,
#edit_form_details.modal,
#edit_form_reg,
#edit_form_registration,
#edit_form_task-edit,
#edit_form_reg {
    width: 930px !important;
}
#edit_form_off_tall,
#edit_form_tall{
    width: 860px !important;
}

#edit_form_lap,
#system-alert-1,
#system-alert-2,
#system-alert-3 {
    width: 600px !important;
}

@media screen and (min-width:480px){
    #edit_form-small {
        width: 470px !important;
    }
}

#edit_form-small #modal-results{
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.required-badge{
    background-color:#f97500;
    padding:3px;
    width:100px;
    color:#fff;
    text-align:center;
    margin-bottom:10px;
}
.modal a.close,
.modal a#close {
    position: absolute;
    top: 8px;
    right: 10px;
}

.modal .modal-header,
.popup-header {
    background-color: #009DDC;
    border-bottom: 1px solid #e7e7e7;
    border-radius: 8px 8px 0 0;
    padding: 10px 15px 10px 40px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: #fff;
    z-index: 50;
}

#system-alert-2 .modal-header,
#system-alert-3 .modal-header{
     background-color: #ff6d28 !important;
}
.alert-type{
    position: absolute;
    width:60px;
    height:60px;
    top:25px;
    left:50%;
    transform: translateX(-50%);
}
.time-stamp{
    text-align: right !important;
    color:#888888;
    font-size:14px  !important;
}

.modal .modal-header h3,
.popup-header h3 {
    margin: 0px;
    font-size: 20px;
    color: #fff;
    line-height: 1.2;
}

.modal .modal-header svg {
    float: right;
}

.modal #modal-name {
    max-width: 90% !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.popup-footer {
    border: none;
    border-top: 1px solid #e7e7e7;
    border-radius: 0 0 8px 8px;
    padding: 10px 20px 5px 30px;
    color: #555;
    background: #dfdfdf;
    min-height: 20px;
}

.popup-footer {
    text-align: center;
}

.modal .modal-footer {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-top: 1px solid #e7e7e7;
    border-radius: 0 0 8px 8px;
    padding: 10px 20px 10px !important;
    color: #555;
    text-align: center;
    background-color: var(--borderColor1);
    min-height: 50px;
}

.modal h3 {
    margin: 0px 0px 5px;
    font-size: 18px;
    color: #009DDC;
}

#cont_btn {
    display: none;
}

.modal .copy,
.popup-copy {
    padding: 20px 40px 20px 40px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    color: var(--primaryText);
    display: table;
    background: var(--brandColorWhite);
    width: 100%;
    min-height: 15vh;
    max-height: 70vh;
    overflow-y: auto;
    font: 14px Arial, Verdana, sans-serif !important;
}
#system-alert-1 .copy,
#system-alert-2 .copy,
#system-alert-3 .copy{
    font-size:16px !important;
    line-height: 20px !important;
    color:#888;
    min-height: 15vh !important;
    max-height: 50vh !important;    
    padding: 20px 40px 40px 40px;
    word-break: keep-all;
}

.popup-copy {
    padding: 20px 30px 10px !important;
}

.modal .copy {
    display: block;
    max-height: 70vh;
    overflow-y: auto;
}

#view-turns .copy {
    display: block;
    height: 230px !important;
    overflow-y: auto;
}

.copy a {
    color: #009DDC;
    text-decoration: none;
    display: inline-block;
}

.modal .copy p {
    margin-bottom: 15px;
}

.modal .copy hr {
    margin: 20px 0px;
}

.modal label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--brandColorGrey);
}

.modal .copy input,
.modal .copy select{
    margin-bottom: 10px !important;
    padding-left: 8px;
}
.modal .copy textarea {
    margin-bottom: 10px !important;
    padding-left: 8px;
    padding-right: 8px;
}
.modal .copy input.file-delete-button {
    margin-top: 1px;
    margin-right: 5px;
    margin-bottom: 0px !important;
}

.modal .copy input[type=checkbox],
.modal .copy input[type=radio] {
    margin-right: 8px;
    margin-bottom: 5px !important;
}

.modal .btn,
.modal input.btn {
    display: inline-block;
    margin-bottom: 5px;
    min-width: 120px !important;
    padding: .4rem 1rem !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.modal-content {
    background: var(--borderColor2);
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 20;
    padding: 10px 10px;
    color: #555;
    margin-bottom: 15px;
}

.modal-content h3 {
    color: inherit;
    line-height: 1.2;
    margin-bottom: 0px;
}
#mymodal2 .modal-content{
    padding: 10px 10px 10px 40px;
    box-sizing: border-box;
    margin-bottom: 0px;
}
#turns-info .turn-details {
    line-height: 1.5 !important;
    margin-bottom: 10px;
}

#turns-info p {
    line-height: 1.5 !important;
    min-height: 35px;
    margin-bottom: 10px;
}

#turns-info p:last-child {
    margin-bottom: 0px !important;
}

#turns-info p span {
    margin-right: 6px;
    display: inline-block;
    line-height: 30px;
}

#turns-info .file-icon {
    width: 30px !important;
    height: 30px !important;
    margin-right: 6px;
}

#turns-info #turn-url {
    margin-bottom: 6px;
}

#turns-info .downloads-only,
#turns-info .links-only {
    text-align: center;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 106px;
}

#turns-info .downloads-only .file-icon,
#turns-info .links-only svg {
    margin-right: 0px;
    margin-top: 5px;
    width: 35px !important;
    height: 35px !important;
}

#turns-info #turn-downloads a span,
#turns-info .downloads-only a span {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    top: 5px;
}
#turns-info #turn-downloads a{
    margin-bottom:5px;
}

#turns-info h4 {
    margin-top: 5px;
    margin-bottom: 3px;
    font-size: 16px;
    text-transform: none;
    font-weight: normal;
}

.modal .overlay {
    background-color: var(--brandColorSolidBlack);
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10
}

.modal .btn.accent-color-3 {
    background-color: var(--brandColorLtGreen) !important;
}

.field-order-list,
.field-order-list-champ {
    list-style-position: outside;
    margin: 10px 0px 0px 30px;
    list-style-type: none;
}

.field-order-list li,
.field-order-list-champ li {
    counter-increment: item;
}

.field-order-list li:before,
.field-order-list-champ li:before {
    position: absolute;
    left: 0px;
    translate: 25% 50%;
    color: var(--brandColorWhite);
    content: counter(item);
    background: var(--brandColorBlue);
    border-radius: 100%;
    width: 1.2em;
    text-align: center;
    display: inline-block;
}

.field-order-list-champ li input:first-child {
    width: 75%;
    margin-right: 5px;
    display: inline-block;
}

.field-order-list-champ li input:last-child {
    display: inline-block;
    width: 20%;
}

.copy input[disabled] {
    background-color: #eee;
    color: #999;
}

.deal-info {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}
.deal-info label{
    font-size: 14px;
    min-width: 120px;
    margin-right: 10px;
}
.deal-info div {
    margin-bottom: 10px;
}

#edit_form_task-spacedout .copy {
    min-height: 50vh !important;
    overflow-y: auto;
}

#edit_form_tall .copy,
#edit_form_off_tall .copy {
    height: 54vh !important;
    overflow-y: auto;
}

#edit_form_task-spacedout.modal {
    max-height: 60vh !important;
}

#edit_form_task .copy {
    padding-top: 30px;
    min-height: 33vh;
}

#edit_form_lap .copy {
    min-height: 34vh;
}

#edit_form_task-edit .copy {
    padding-top: 30px;
    min-height: 62vh;
}

#edit_form_reg .copy {
    min-height: 43vh;
}

#edit_form_task-edit .row-fluid {
    margin-bottom: 5px;
}

#edit_form_task-edit .row-fluid:nth-child(4),
#edit_form_task-edit .row-fluid:nth-child(5) {
    margin-bottom: 0px;
}

#edit_form_task label,
#edit_form_task-edit label {
    line-height: 1.2;
    margin-bottom: 2px;
}

#edit_form_task small,
#edit_form_task-edit small {
    font-size: 12px;
    text-align: center;
}

#edit_form_task .due-date-pill {
    border-radius: 3px;
    box-sizing: border-box;
    font-weight: normal !important;
    background-color: #e0e0e0;
    margin-bottom: 15px;
    text-align: center;
}

#edit_form_task .not-complete-pill,
#edit_form_task-edit .not-complete-pill {
    border-radius: 3px;
    box-sizing: border-box;
    font-weight: normal;
    background-color: #e0e0e0;
    margin-bottom: 15px;
    text-align: center;

}

#edit_form_task .due-date-pill span:first-child {
    white-space: nowrap;
    font-size: 14px;
}

#edit_form_task .due-by-red small.due-by-pill,
#edit_form_task-edit .due-by-red small.due-by-p {
    color: #fff !important;
    background-color: #FF1E00 !important;
}

#edit_form_task .due-by-warning small.due-by-pill,
#edit_form_task-edit .due-by-warning small.due-by-pill {
    color: #fff !important;
    background-color: #FEB139 !important;
}

#edit_form_task .completed-pill small.due-by-pill,
#edit_form_task-edit .completed-pill small.due-by-pill {
    color: #fff !important;
    background-color: #54B948 !important;
}

#edit_form_task .due-by-pill,
#edit_form_task-edit .due-by-pill {
    text-transform: none !important;
    font-weight: normal;
    border-radius: 3px;
    padding: 4px 3px 4px;
    box-sizing: border-box;
    background-color: inherit;
    width: 100%;
}

#edit_form_task-edit .due-by-pill {
    padding: 9px 3px 4px;
}

#edit_form_task small.due-by-pill span,
#edit_form_task-edit small.due-by-pill span {
    font-weight: bold;
}

#edit_form_task .task-type-popup {
    line-height: 1.5em;
}

#edit_form_task .task-type-popup img {
    width: 48px;
    height: 48px;
    margin-top: 3px;
}

#edit_form_task small span,
#edit_form_task-edit small span {
    display: block !important;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: normal;
}

#edit_form_task small.due-by-pill,
#edit_form_task-edit small.due-by-pill {
    display: block;
    line-height: 1.2;
    font-family: Verdana, sans-serif;
}

#edit_form_task p {
    max-height: 100px;
    overflow-y: auto;
}

#edit_form_task hr {
    margin: 15px 0px;
    border-color: transparent;
}

#edit_form_task .span8 .span3 {
    margin-left: -15px;
}

#edit_form_task-edit .completed {
    position: absolute;
    top: 1px;
    color: #54B948;
    margin-left: 10px;
}

#edit_form_task .copy select,
#edit_form_task .copy input {
    margin-bottom: 15px !important;
}

.btn-copy-url {
    font-size: 14px !important;
    margin-right: 0px !important;
}

@media screen and (min-width:2000px){
    #edit_form-small {
        width:25vw;
    }
    #edit_form_lap {
        width: 30vw;
    }
    #edit_form_lap .copy {
      min-height:25vh;
    }
     #edit_form_details .copy {
        min-height: 35vh;
    }
}

@media screen and (min-height: 910px) {

    #edit_form_details .copy {
        min-height: 40vh;
    }
}

@media screen and (max-width: 1700px) {
    .copy .row-fluid.responsive [class*="span"] {
        float: none;
        margin-left: 0px;
        display: block;
        width: 100%;
    }

}

@media screen and (max-width: 1440px),
(max-height: 800px) {
    #edit_form-small .buttons .btn {
        width: 100% !important;
        margin-right: 0px !important;
    }
}

@media screen and (max-width: 1124px) {
    .modal {
        position: absolute;
        top: 30% !important;
        left: 50%;
        transform: translate(-50%, -30%);
    }

    #edit_form_task-spacedout .copy .row-fluid [class*="span"] {
        float: none;
        margin-left: 0px;
        display: block;
        width: 100%;
    }

    #edit_form_details .copy,
    #edit_form_tall .copy,
    #edit_form_off_tall .copy,
    #edit_form_task-edit .copy,
    #edit_form_details .copy,
    #edit_form-merchant .copy {
        min-height: auto;
    }

    #edit_form_reg,
    #edit_form_off_tall,
    #edit_form_tall,
    #edit_form_reg {
        width: 600px;
    }

    #deal-info .hidden {
        display: none;
    }
}


@media screen and (max-width: 979px) {

   #wrap-team .modal,
   #wrap-team  #edit_form_reg.modal,
    #wrap-team #edit_form-small.modal {
        position: absolute;
        top: 20% !important;
        left: 50%;
        transform: translate(-50%, -15%);
    }
   #wrap-team #edit_form_reg,
   #wrap-team #alert-msg {
        max-width: 550px;
    }

    #wrap-team #edit_form_tall .copy,
   #wrap-team  #edit_form_off_tall .copy {
        max-height: 60vh;
    }
    .modal .modal-header, .popup-header{
        padding: 10px 15px 10px 20px;
    }
    #mymodal2 .modal-content{
        padding: 10px 10px 10px 20px;
    }
    .modal .copy{
        padding: 20px 20px 20px 20px;
    }
    #deal-info {
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-align-content: flex-start;
        -ms-flex-line-pack: start;
        align-content: flex-start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    #deal-info div {
        flex: 1 1 auto;
    }

    #deal-info div:nth-child(1),
    #deal-info div:nth-child(2),
    #deal-info div:nth-child(3) {
        -webkit-flex: 1 1 33%;
        -ms-flex: 1 1 33%;
        flex: 1 1 33%;
        -webkit-align-self: auto;
        -ms-flex-item-align: auto;
        align-self: auto;
        margin-bottom: 20px !important;
    }

    #deal-info div:nth-child(4),
    #deal-info div:nth-child(5),
    #deal-info div:nth-child(6) {
        -webkit-flex: 1 1 33%;
        -ms-flex: 1 1 33%;
        flex: 1 1 33%;
        -webkit-align-self: auto;
        -ms-flex-item-align: auto;
        align-self: auto;
    }


}

@media screen and (max-width: 680px) {
    #wrap-team #edit_form .modal .copy .row-fluid [class*="span"],
    #wrap-team #edit_form_tall .modal .copy .row-fluid [class*="span"],
    #wrap-team #edit_form_off_tall .modal .copy .row-fluid [class*="span"],
    #wrap-team #edit_form-small .modal .copy .row-fluid [class*="span"] {
        float: none;
        margin-left: 0px;
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    #wrap-team .modal .hidden {
        display: none !important;
    }

    #wrap-team .content-team #mymodal #edit_form_off_tall .row-fluid [class*="span"],
    #wrap-team .content-team #mymodal #edit_form_tall .row-fluid [class*="span"] {
        margin-bottom: 10px;
    }
   #wrap-team .modal .btn,
   #wrap-team .modal input.btn,
   #wrap-team .modal font input.btn {
        display: block !important;
        margin-bottom: 5px;
        min-width: 100% !important;
        padding: .6rem 1rem !important;
        height: 36px !important;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    #wrap .modal .btn,
    #wrap .modal input.btn,
    .modal font input.btn {
        min-width: 120px !important;
        display: inline-block !important;
    }
    #wrap-team .content-team #mymodal #edit_form_off_tall .row-fluid [class*="span"] {
        margin-bottom: 10px;
    }

    #wrap-team #edit_form_reg,
    #wrap-team #edit_form_off_tall,
    #wrap-team #edit_form_tall,
    #wrap-team #edit_form_reg,
    #wrap-team #view-turns.modal{
        width: 600px;
    }
    #wrap-team #alert-msg,
    #wrap-team #edit_form-small{
        width: 90vw !important;
        max-width: auto;
    }
    #wrap-team #edit_form_tall .copy,
    #wrap-team #edit_form_off_tall .copy {
        max-height: 60vh;
    }

    .modal {
        width: 85vw !important;
    }
}


@media screen and (max-width: 480px) {

    .modal,
    #edit_form_reg.modal,
    #edit_form-small.modal {
        position: absolute;
        top: 20% !important;
        left: 50%;
        transform: translate(-50%, -20%);
    }

    #wrap-team #edit_form_reg,
    #wrap-team #edit_form_off_tall,
    #wrap-team #edit_form_tall,
    #wrap-team #edit_form_reg,
    #wrap-team #edit_form-small,
    #wrap-team #mymodal_upload  {
        max-width: 90vw;
    }

    #wrap-team #edit_form_tall .copy,
    #wrap-team #edit_form_off_tall .copy,
    #wrap-team #mymodal_upload .copy{
        max-height: 45vh;
    }

    #deal-info div:nth-child(1),
    #deal-info div:nth-child(2),
    #deal-info div:nth-child(3),
    #deal-info div:nth-child(4) {
        -webkit-flex: 1 1 48%;
        -ms-flex: 1 1 48%;
        flex: 1 1 48%;
        -webkit-align-self: auto;
        -ms-flex-item-align: auto;
        align-self: auto;
        margin-bottom: 20px !important;
    }

    #deal-info div:nth-child(5),
    #deal-info div:nth-child(6) {
        -webkit-flex: 1 1 48%;
        -ms-flex: 1 1 48%;
        flex: 1 1 48%;
        -webkit-align-self: auto;
        -ms-flex-item-align: auto;
        align-self: auto;
    }    

    #wrap-team #alert-msg .text-center,
    #wrap-team #edit_form-small .text-center{
        text-align: center !important;
    }
}

@media screen and (max-height:665px){
    #edit_form_off_tall,
    #edit_form_tall{
        width: 780px;
    }

}


@media screen and (min-width: 480px) and (max-width: 680px) and (min-height: 665px) {

   #wrap-team .modal,
   #wrap-team #edit_form_reg.modal,
   #wrap-team  #edit_form-small.modal {
        position: absolute;
        top: 20% !important;
        left: 50%;
        transform: translate(-50%, -20%);
    }

    #wrap-team #edit_form_tall .copy,
    #wrap-team #edit_form_off_tall .copy {
        max-height: 70vh;
    }
}
@media screen and (max-width: 480px) and (min-height: 665px) {

    #wrap-team  .modal,
    #wrap-team  #edit_form_reg.modal,
    #wrap-team  #edit_form-small.modal {
        position: absolute;
        top: 20% !important;
        left: 50%;
        transform: translate(-50%, -20%);
    }

    #wrap-team  #edit_form_tall .copy,
    #wrap-team  #edit_form_off_tall .copy {
        max-height: 70vh !important;
    }
}
@media screen and (max-width: 320px) {
    .modal .copy{
        padding:20px;
    }

}
