/*
 *	This file is for custom css that is designed
 *	to overwrite bootstraps css file
 */

/*******************************
Loris color palette v.0.1

@accent-color: #064785 (blue), #246EB6 (lighter blue)
@accent-color-hover: #E89A0C (orange)

Note: other colors are currenly inherited from Bootstrap default color palette
      See: http://getbootstrap.com/css/#less-variables-colors

****************************************/

/*
 *	Styling for the navbar dropdowns
 */
.navbar-nav > li > .dropdown-menu {
    margin-top: -1px;
    margin-left: -1px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    background-color: white;
    border: 1px solid #064785;
}

.navbar-nav > li > .dropdown-menu > li > a,
.navbar-nav > li > .dropdown-menu > li > a:focus {
    color: #064785;
    padding: 3px 19px;
}

.navbar-nav > li > .dropdown-menu > li > a:hover {
    color: #E89A0C;
}
/* For mobile and tablet, repeat the above styling */
@media (max-width: 991px) {
  .navbar-default .navbar-nav .open .dropdown-menu >li>a,
  .navbar-default .navbar-nav .open .dropdown-menu >li>a:focus {
    color: #064785;
    background-color: white;
  }
  .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover {
    color: #E89A0C;
    background-color: white;
  }
}

.navbar-brand {
    padding: 16px 15px;
}

.navbar-default {
    background-color: #064785;
    border: none !important;
    box-shadow: 6px 8px 8px 1px rgba(0,0,0,0.175);
}

.navbar-default a {
    /*
    -webkit-transition: background-color 0.2s ease-in;
    transition: background-color 0.2s ease-in;
    */
}

/* Show submenu when hovering on menu item */
/* If hover functionality exists and window size larger than tablet */
@media (hover: hover) and (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Loris logo */
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: white;
    background-color: #246EB6;
}

/* Menu items */
.navbar-default .navbar-nav > li > a {
    margin-top: 4px;
    padding: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
/* Styling for clicking on menu items */
.navbar-default .navbar-nav > li.dropdown > a:focus,
.navbar-default .navbar-nav > li.dropdown > a:active {
    background-color: transparent;
}
/* Styling for opened submenu dropdowns - order matters */
.navbar-default .navbar-nav > li.open > a,
.navbar-default .navbar-nav > li.open > a:focus,
.navbar-default .navbar-nav > li.open > a:active {
    color: #064785;
    background-color: white;
}
@media (hover: hover) {
  /* Styling for hovering over menu items - order matters */
  .navbar-default .navbar-nav > li.dropdown:hover > a,
  .navbar-default .navbar-nav > li.dropdown > a:hover {
      color: #064785;
      background-color: white;
  }
}
/* Styling for chevron icon to toggle collapsible navigation bar */
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #064785;
}

/* Submenu items */
.dropdown-menu {
    padding: 5px 1px;
    border-top-color: transparent !important;
    box-shadow: 6px 8px 8px 1px rgba(0,0,0,0.175);
}

/* For mobile and tablet, submenu items */
@media (max-width: 991px) {
  .dropdown-menu {
      padding: 0px;
      border-top-color: transparent !important;
  }
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover {
    color: #246EB6;
    text-decoration: none;
    outline: 0;
    background-color: white;
}

.dropdown-menu > li > a:hover {
    text-decoration: none;
    color: #246EB6;
    background-color: white;
    cursor: pointer;
}

/* Styling for right hand side of nav bar */

/* Question mark */
.nav > li > a > img {
    padding-bottom: 3px;
}

/* Site Affiliations Tooltip */
.tooltip-inner {
    padding: 5px 8px;
}

/* Styling for clicking on menu items */
.navbar-default .navbar-right > li > a:focus,
.navbar-default .navbar-right > li > a:active {
  background-color: transparent;
}

/* Styling for clicking on Question mark - order matters */
.help-button {
    color: white;
    background-color: #246EB6;
    border: none;
    margin-top: 4px;
    padding: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.help-container.navbar-toggle {
    padding: 0;
    margin: 0;
}

/* Styling for hovering over menu items - order matters */
.navbar-default .navbar-right > li:hover > a,
.navbar-default .navbar-right > li > a:hover {
    color: white;
    background-color: #246EB6;
}

/*
 *	Making the table header font colour white
 */
table th {
    color: #064785;
    background-color: #E4EBF2;
}

.table > thead > tr > th > a {
    color: #064785;
}

.table > thead:first-child > tr:first-child > th {
    border-top: 1px solid #C3D5DB;
}

/*
 *	CSS for the tables
 */
.static-col.pis {
    padding-bottom: 71px;
}

.pis {
    height: 80px;
}

.table-scroll {
    overflow-x: auto;
    padding-bottom: 1px;
}

.table-scroll-static {
    overflow-x: auto;
    margin-left: 7em;
    padding-bottom: 1px;
}

.scrollable {
    margin-right: 50px;
    margin-left: 50px;
}

.scrollableStat {
    margin-right: 50px;
    margin-left: 10em;
}

.static-col {
    position: absolute;
    width: 7em;
    left: 0;
    top: auto;
    word-wrap: break-word;
    border-right: 0 none black;
    border-top-width: 3px; /*only relevant for first row*/
}

.colm-static {
    left: 3em;
    background: white;
}

.frozenHeader {
    position: absolute;
    overflow-x: hidden;
}

.headerColm {
    background: #246EB6;
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    color: white;
    font-weight: bold;
}

/*
 *	CSS for the footer
 */
#footer {
    position: relative;
    margin-top: -100px; /* negative value of footer height */
    height: 100px;
    clear: both;
}

html, body {
    height: 100%;
}

#wrap {
    min-height: 100%;
}

#page {
    overflow: auto;
    padding-bottom: 100px; /* must be same height as the footer */
}

/*
 *	CSS for instrument forms
 */
.has-error .form-control {
    border: 3px solid #b94a48;
}

.has-error, .form-error {
    color: #b94a48;
}

.has-warning .form-control {
    border: 3px solid #c09853;
}

.warning {
    color: #c09853;
}

/*
 *  CSS for Loris footer
 */
.LorisFooter {
    bottom: 0;
    clear: both;
    width: 100%;
    font-size: 0.9em;
    color: black;
    text-align: center;
    vertical-align: bottom;
}

ul#navlist {
    margin-left: 0;
    padding-left: 0;
}

#navlist li {
    display: inline;
    list-style-type: none;
}

/*
 *  Styling for modals
 */
.modal-header {
    background-color: #064785;
    color: white;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

.close {
    color: white;
    opacity: 1;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    background: none repeat scroll 0 0 transparent;
    cursor: inherit;
    display: block;
}

div.navbar div.container div.navbar-brand {
    background: inherit;
    text-align: center;
}

.controlPanelSection {
    padding-bottom: 6px;
}

.glyphicon-refresh-animate {
    -animation: spin .7s infinite linear;
    -webkit-animation: spin2 .7s infinite linear;
}

@-webkit-keyframes spin2 {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: scale(1) rotate(0deg);
    }
    to {
        transform: scale(1) rotate(360deg);
    }
}

/*
 *      CSS for alert div
 */
.no-result-found-panel {
    color: #064785;
    background-color: #E4EBF2;
    border-color: #E4EBF2;
    margin: 0 14px;
}

/*
 * Styling for the breadcrumbs
 */

.btn-breadcrumb {
    width: 100%;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 20px;
}

/*
 * Breadcrumbs from http://bootsnipp.com/snippets/featured/triangle-breadcrumbs-arrows
 */
.btn-breadcrumb .btn:not(:last-child):after {
    content: " ";
    display: block;
    width: 0;
    height: 0;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 10px solid white;
    position: absolute;
    top: 50%;
    margin-top: -17px;
    left: 100%;
    z-index: 3;
}

.btn-breadcrumb .btn:not(:last-child):before {
    content: " ";
    display: block;
    width: 0;
    height: 0;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 10px solid rgb(173, 173, 173);
    position: absolute;
    top: 50%;
    margin-top: -17px;
    margin-left: 2px;
    left: 100%;
    z-index: 3;
}

/** Open dropdown toggle styling **/
.open > .dropdown-toggle.btn-default {
    color: #064785;
    background-color: white;
    border-color: #064785;
}

/** Ellipsis styling **/
.ellipsis > .dropdown-toggle {
    border: none;
    padding: 0;
    background: inherit;
}

.ellipsis:hover .dropdown-menu {
    display: block;
}

/** The Spacing **/
.btn-breadcrumb .btn {
    padding: 6px 12px 6px 24px;
}

.btn-breadcrumb .btn:first-child {
    padding: 6px 6px 6px 10px;
}

.btn-breadcrumb .btn:last-child {
    padding: 6px 18px 6px 24px;
}
.btn-inline {
    margin-right: 3px;
    margin-bottom: 3px;
}
.btn-add-tag {
    margin-top: 3px;
}

/** Primary button **/
.btn-breadcrumb .btn.btn-primary:not(:last-child):after {
    border-left: 10px solid #064785;
    -webkit-transition: border-color 0.2s ease-in; /* Safari */
    transition: border-color 0.2s ease-in;
}

.btn-breadcrumb .btn.btn-primary:not(:last-child):before {
    border-left: 10px solid #042d54;
    -webkit-transition: border-color 0.2s ease-in; /* Safari */
    transition: border-color 0.2s ease-in;
}

.btn-breadcrumb .btn.btn-primary:not(:last-child):after {
    border-left: 10px solid white;
}

.btn-breadcrumb .btn.btn-primary:hover:not(:last-child):before {
    border-left: 10px solid #042d54;
}

.btn {
    font-size: 14px;
    margin-right: 5px;
}

.btn-default:not(.disabled) {
    border-color: #246EB6;
    color: #246EB6;
    background-color: white;
}
.btn-default:hover {
    background-color: #246EB6;
    color: white;
    border-color: #246EB6;
}
.btn-primary {
    color: #246EB6;
    background-color: white;
    border-color: #246EB6;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: white;
    background-color: #246EB6;
    border-color: #246EB6;
}
.btn-primary[disabled] {
    background-color: #E4EBF2;
    border-color: #ccc;
}
.btn-primary.btn-file {
    color: #246EB6;
    background-color: #fff;
    border-color: #246EB6;
}
.btn-primary.btn-file:hover {
    color: #fff;
    background-color: #246EB6;
    border-color: #246EB6;
}

a.btn.btn-primary:not(.download, .split-nav) {
    color: #064785;
    border-color: transparent;
    background-color: white;
    -webkit-transition: background-color 0.2s ease-in; /* Safari */
    transition: background-color 0.2s ease-in;
}

a.btn.btn-primary:hover:not(.download, .split-nav) {
  color: #E89A0C;
  border-color: transparent;
  background-color: white;
  -webkit-transition: background-color 0.2s ease-in; /* Safari */
  transition: background-color 0.2s ease-in;
}

.btn-success {
    color: #4cae4c;
    border-color: #4cae4c;
    background-color: #fff;
}

.btn-success:hover {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

/* The responsive part */

.btn-breadcrumb > * > div {
    /* With less: .text-overflow(); */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* For phones */
@media (max-width: 767px) {
    .btn-breadcrumb > * div {
        max-width: 60px;
    }

    #bc2 > a:last-child > div {
        max-width: 100%
    }
}

/* For tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .btn-breadcrumb > * div {
        max-width: 100px;
    }

    #bc2 > a:last-child > div {
        max-width: 100%
    }
}

/* For desktops  */
@media (min-width: 992px) and (max-width: 1199px) {
    .btn-breadcrumb > * div {
        max-width: 170px;
    }

    #bc2 > a:last-child > div {
        max-width: 100%
    }
}

/* For desktops */
@media (min-width: 1200px) {
    .btn-breadcrumb > * div:not(:last-child) {
        max-width: 170px;
    }

    .btn-breadcrumb > * div:last-child {
        width: 100%;
    }
}

/*
 *  CSS for static table
 *  Styling for the staticTable component
 */
.table-bordered > thead > tr > th {
    border: 1px solid #C3D5DB;
}

.table-bordered > tbody > tr > td {
    border: 1px solid #C3D5DB;
}

.table-hover > tbody > tr:hover {
    background-color: #F9F9F9;
}

.panel > .table-header {
    background-color: #F2F2F2;
}

.perPage {
    width: 75px;
    color: black;
}

.table-footer {
    background-color: #E4EBF2;
}

#dynamictable {
    margin-bottom: 0;
}

.rowsPerPage {
    color: black;
}

.pagination-table {
    margin: 0;
}

.left.carousel-control {
    margin-left: 15px;
}

.right.carousel-control {
    margin-right: 15px;
}

.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
    color: #064785;
    background-color: #E4EBF2;
    border: 1px solid #C3D5DB;
}
.table-hover > tbody > tr.info:hover > th {
    background-color: #E4EBF2;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #246EB6;
    border-color: #246EB6;
}

/*
 * Styling for dropdown headers
 */
.dropdown-header {
    color: #064785;
}

/*
 *  CSS for Select Dropdown
 */
.dropdownSearch {
    padding: 10px;
}

/* Style login navbar and logo */
.navbar {
    border-radius: 0;
}

.navbar-brand {
    height: auto;
}

.navbar-brand .study-logo {
    width: 64px;
    height: 57px;
    margin-bottom: 10px;
}

/* Sweetalert customizations */

/* Break long strings to fit them in the popup */
.sweet-alert p {
    word-wrap: break-word;
}

/* Loader customizations */

.loader {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: auto;
    border: 8px solid #FFFFFF; /* White */
    border-top: 8px solid #A6D3F5; /* Blue */
    border-left: 8px solid #A6D3F5; /* Blue */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*
 *  Styling for panels
 */
.panel {
    margin-bottom: 20px;
    background-color: white;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 2px 3px 4px 1px rgba(0,0,0,0.175);
    box-shadow: 2px 3px 4px 1px rgba(0,0,0,0.175);
}

.panel-heading {
    display: flex;
    align-items: center;
}

.panel-title {
    width: 100%;
    padding-right: 10px;
}

.panel-default {
    border-color: #C3D5DB;
}

.panel-default > .panel-heading {
    color: #064785;
    background-color: #E4EBF2;
    border-color: #C3D5DB;
    font-size: 16px;
}

.panel-primary {
    border-color: #C3D5DB;
}

.panel-primary > .panel-heading {
    color: #064785;
    background-color: #E4EBF2;
    border-color: #C3D5DB;
}

.panel-title > a:hover {
    color: inherit;
}

.panel-footer {
    background-color: #E4EBF2;
    border-top: 1px solid #C3D5DB;
}

/*
 *  Styling for text
 */
h3 {
    font-size: 24px;
    color: #064785;
}

a:hover {
    color: #E89A0C;
}

/*
 * Styling for list group
 */
.list-group-item.active,
.list-group-item.active:hover {
    z-index: 2;
    color: black;
    background-color: #E4EBF2;
    border-color: #E4EBF2;
}

.list-group-item:hover {
    background-color: #fff;
}

a.list-group-item:hover,
a.list-group-item:focus {
    text-decoration:none;
    color:#555;
    background-color: #E4EBF2;
}

/*
 * Styling for tabs
 */
.nav > li > a:hover,
.nav > li > a:focus {
    text-decoration:none;
    background-color: #eee;
    color: #246EB6;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover {
    color: #246EB6;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    color: #246EB6;
    background-color: #E4EBF2;
}

/* Necessary formatting for swal2 while still with bootstrap v3 */
.swal2-container .swal2-popup {
  font-size: 1.6rem
}

/* Places swal above all other divs */
.swal2-container {
  z-index: 9999
}

/* Loader customizations */

.loader {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: auto;
    border: 8px solid #FFFFFF; /* White */
    border-top: 8px solid #A6D3F5; /* Blue */
    border-left: 8px solid #A6D3F5; /* Blue */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styling for fieldset */
fieldset {
    display: block;
    margin: 6px 15px 15px 15px;
    padding-top: 0.35em;
    padding-bottom: 0.625em;
    padding-left: 0.75em;
    padding-right: 0.75em;
    border: 1px solid #C3D5DB;
    border-radius: 6px;
}

legend {
    padding-inline-start: 6px;
    padding-inline-end: 6px;
    width: auto;
    border-bottom: 0px;
    font-size: 14px;
    color: #064785;
}

@keyframes highlight {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: #FEF2CA;
    }
    100% {
        background-color: transparent;
    }
}

.highlighted {
    animation: highlight ease 3s;
}

select[multiple].input-sm.resizable {
    height: 100px;
    resize: both;
}
