/*!
 * Bootstrap v3.1.1 (http://getbootstrap.com)
 * Custom Build - selected Jquery plugins:
 *	 - Modals
 *	 - Tooltips
 *	 - Popovers
 *	 - Transitions
 *	 
 *	 addtionally
 *	1. removed reset rules
 *	2. removed css transition rules
 *	3. Popover and Modal CSS Has been Customised for PLATFORM
 *	
 *	
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    overflow: auto;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999999999;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    font-size: 14px;
    color: #333;
}

.modal.fade .modal-dialog {
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -moz-transition: -moz-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
    z-index: 9999999999;
}

.modal-content {
    position: relative;
    background-color: #f6f6f6;
    border: 1px solid #999999;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: none;
    overflow: hidden;
}

.modal-content p {
    margin: 0 0 .5em 0;
    line-height: 1.2em;
}

.modal-content .modal-intro {
    font-size: 117%;
    font-weight: normal;
    margin-bottom: 1em;

}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999999999;
    background-color: #000000;
}

.modal-backdrop.fade {
    opacity: 0;
    filter: alpha(opacity=0);
}
.modal-backdrop.in {
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.modal-header {
    padding: 1em 1.5em 0 1.5em;
    min-height: 16.42857143px;
}

.modal-header .close {
    margin-top: 10px;
    float: right;
}

.modal-title {
    margin: 10px 0 0 0;
    line-height: 1em;
    font-size: 216%;
}

.modal-body {
    position: relative;
    padding: 1.5em;
}

.modal-footer {
    padding: 0 1em 1em 1em;
    overflow: auto;
}

.modal-footer .btn + .btn {
    margin-left: 5px;
    margin-bottom: 0;
}

.modal-footer .btn-group .btn + .btn {
    margin-left: -1px;
}

.modal-footer .btn-block + .btn-block {
    margin-left: 0;
}

.modal-footer button.saveModal {
    padding-left: 3em;
    padding-right: 3em;
}

.modal-footer .cancelModal {
    display: inline-block;
    font-weight: normal;
}

.modal-cancel {
    display: block;
}

/* Forms within Modals */

.modal-body .panel__content {
    padding: 0;
}

.modal-body #errorWrapper {
    margin-bottom: 10px;
}

.modal-body .form-row {
    background: #fff;
    padding: 1em;
    margin: 0 0 1em;
    border-radius: 0.5em;
    border: 1px solid #e0e0e0;
}

.modal-body .form-row--yellow {
    background-color: #ffffcc;
}

.modal-body .form-row__item-wrap {
    margin-bottom: 1em;
}

.modal-body ul {
    list-style-type: disc;
}

.modal-body ul li {
    margin: 0 0 0 1.5em;
    line-height: 1.4em;
}

/* Spinners */

.modal-footer span.spinner {
    float: left;
    margin: 1em 0 0 1em;
}

/* Responsive */

@media (max-width: 680px) {
    .popover {
        visibility: hidden;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto;
    }
    .modal-content {
        -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
    .modal-sm {
        width: 300px;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        width: 900px;
    }
}

.popover {
    position: absolute;
    top: 0;
    z-index: 1010;
    display: none;
    left: 300px !important; /* see http://stackoverflow.com/questions/10797912/bootstrap-popover-advanced-positioning */
    max-width: 276px;
    padding: 1px;
    text-align: left;
    background-color: #E4E4E4;
    background-clip: padding-box;
    border-radius: 7px;
    white-space: normal;
    width: 255px;
}

.panel .popover {
   /* background-color: #ffffff;
    border: 3px solid #FF6600;*/
    left: 420px!important; /* see http://stackoverflow.com/questions/10797912/bootstrap-popover-advanced-positioning */
}

.popover.top {
    margin-top: -10px;
}

.popover.right {
    margin-left: 10px;
}

.popover.bottom {
    margin-top: 10px;
}

.popover.left {
    margin-left: -10px;
}

.popover-title {
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #ebebeb;
    border-radius: 5px 5px 0 0;
}

.popover-content {
    padding: 20px;
    line-height: 1.2em;
}

.popover > .arrow,
.popover > .arrow:after {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

.popover > .arrow {
    border-width: 11px;
}

.popover > .arrow:after {
    border-width: 10px;
    content: "";
}

.popover.top > .arrow {
    left: 50%;
    margin-left: -11px;
    border-bottom-width: 0;
    border-top-color: #E4E4E4;
    border-top-color: rgba(0, 0, 0, 0);
    bottom: -11px;
}

.popover.top > .arrow:after {
    content: " ";
    bottom: 1px;
    margin-left: -10px;
    border-bottom-width: 0;
    border-top-color: #E4E4E4;
}

.popover.right > .arrow {
    top: 50%;
    left: -11px;
    margin-top: -11px;
    border-left-width: 0;
    border-right-color: #E4E4E4;
    border-right-color: rgba(0, 0, 0, 0);
}

.popover.right > .arrow:after {
    content: " ";
    left: 1px;
    bottom: -10px;
    border-left-width: 0;
    border-right-color: #E4E4E4;
}

/*.panel .popover.right > .arrow,
.panel .popover.right > .arrow:after {
    border-right-color: #FF6600;
}*/

.popover.bottom > .arrow {
    left: 50%;
    margin-left: -11px;
    border-top-width: 0;
    border-bottom-color: #E4E4E4;
    border-bottom-color: rgba(0, 0, 0, 0);
    top: -11px;
}

.popover.bottom > .arrow:after {
    content: " ";
    top: 1px;
    margin-left: -10px;
    border-top-width: 0;
    border-bottom-color: #E4E4E4;
}

.popover.left > .arrow {
    top: 50%;
    right: -11px;
    margin-top: -11px;
    border-right-width: 0;
    border-left-color: #E4E4E4;
    border-left-color: rgba(0, 0, 0, 0);
}

.popover.left > .arrow:after {
    content: " ";
    right: 1px;
    border-right-width: 0;
    border-left-color: #E4E4E4;
    bottom: -10px;
}

/* Fix to ensure datepickers show on top of modals in FireFox */
#ui-datepicker-div {
    z-index: 99999999999 !important;
}
