/*********************
    HTML Elements
*********************/
body{
    background: url(/images/site_background.jpg) repeat-x fixed 50% 100%;
    font-family: Arial, Tahoma, Verdana;
    /* override base font size and line height from bootstrap */
    font-size:12px;
    line-height:1;
    
}
a, a:visited{
    color: #337ab7;
    text-decoration:none;
}

h1 {
    font-size:1.5em;
}

label {
    /* override bootstraps bold */
    font-weight:normal;
}

button { 
    /* override bootstrap to give bigger buttons */ 
    padding-top: 6px; 
    padding-bottom: 6px; 
}

/*********************
    Structure
*********************/

.wrapper{ 
    padding:10px;    
}

#header
{
    background-color:white;
}
#header .logo
{
    padding-top: 10px;
}
#header .bannerAdFrame
{
    float: right;
}
.content{
    border: solid 10px #EFEDED;
    background:#fff;
}

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

/* lower bootstraps padding on colums */
[class^="col-"] {
      padding-left:7px;
      padding-right:7px;
}

/* form styles TODO work bootstrap form style in to symfony form theme */
.formComponent {
    display:inline-block;
    vertical-align:middle;
}

.formLabel {
    width:100px;
}

.formExplainText{
    color: silver;    
}
.formError{
    color: red;    
}
.formFieldRow {
    margin:10px 0;
}
.folderName {
    width:350px;
}
.folderComment {
    width:356px;
    height:60px;
}

/* Folder styles */

#folder { 
    position:fixed;
    top:0;
    right:0;
    padding:10px;
    background: #f7f6f0;
    border-left: 5px solid silver;
    border-bottom: 5px solid silver;
    -webkit-box-shadow: -4px 8px 8px rgba(0, 0, 0, .05);
            box-shadow: -4px 8px 8px rgba(0, 0, 0, .05);
    z-index:999;
}
.candidate-message {
  position: fixed;
  top: 40px;
  right: 10px;
  z-index:999;
}

/* Hide candidate IDs in search results - used as a handle for jQuery */
.idContainer{
    display:none;
}

input#keywords{
    width: 340px;
}

/* 
Hint popup 
This shows a hint popup. It is normally hidden and then displayed by javascript when a field gets focus.
*/
.hint {
    background-color: #F0F0F0;    /*IE10 Consumer Preview */ 
    background-image: -ms-linear-gradient(top, #FFFFFF 0%, #888 400%);    /* Mozilla Firefox */ 
    background-image: -moz-linear-gradient(top, #FFFFFF 0%, #888 400%);    /* Opera */ 
    background-image: -o-linear-gradient(top, #FFFFFF 0%, #888 400%);    /* Webkit (Safari/Chrome 10) */ 
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FFFFFF), color-stop(4, #888));    /* Webkit (Chrome 11+) */ 
    background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #888 400%);    /* W3C Markup, IE10 Release Preview */ 
    background-image: linear-gradient(to bottom, #FFFFFF 0%, #888 400%);    
    border: 1px solid #BBB;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 1px 2px 6px #BBB;
    display: none;
    font-weight: normal;
    margin-left: -2px;
    margin-top: 6px;
    padding: 10px 12px;
    position: absolute;
    max-width: 200px;
    z-index: 99999;
}

/* Loading candidates modal styling. Displayed after search buttom is pressed, whilst candidates are loading */
#downloadingCvsModalLimit p, #downloadingCvsModal p, #loadingCandidatesModal p{
    font-size: 1.6em; margin: 40px 20px;
}
/* TODO: Convert all spinning 'glyphicon-refresh' to use spin class (and remove other references)*/
#downloadingCvsModal .glyphicon-refresh, #loadingCandidatesModal .glyphicon-refresh, .spin {
    -animation: loadingSpin .7s infinite linear;
    -webkit-animation: loadingSpinWebkit .7s infinite linear;
    -moz-animation: loadingSpinMoz .7s infinite linear;
}
@-moz-keyframes loadingSpinMoz {
    from { -moz-transform: rotate(0deg);}
    to { -moz-transform: rotate(360deg);}
}
@-webkit-keyframes loadingSpinWebkit {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}
@keyframes loadingSpin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}

/*********************
  Bootstrap overrides
*********************/

/* add to bootstrap panels for ejs style */

.panel-ejs {
  border: 2px solid #405165;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);  
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  margin-bottom:0px;
}
.panel-ejs .panel-heading {
  background: #405165; /* Old browsers */
  background: -moz-linear-gradient(top,  #7188a6 0%, #405165 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7188a6), color-stop(100%,#405165)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #7188a6 0%,#405165 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #7188a6 0%,#405165 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #7188a6 0%,#405165 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #7188a6 0%,#405165 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7188a6', endColorstr='#405165',GradientType=0 ); /* IE6-9 */
  padding: 5px;
  font-weight:bold;
  max-height: 24px;
}
.panel-ejs .panel-title {
  font-size: 12px;
  color: #fff;
}
.panel-ejs .panel-body {
  padding: 0;
}

.panel-body select {
  width:100%;
}

.form-group{
    margin-right: 10px;
    margin-bottom: 7px;
}

.form-group input[type=submit]{
    padding: 6px;
}

.form-group label{
    margin-top: 5px;
}

.form-error{
    color:red;
}

/* Candidate show */
.candidate-show-row {
    padding-top: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid #ddd;
}
.candidate-show-row-bottom {
    border:0;
}
.candidate-header {
    font-weight:bold;
    padding-left:0;
}

.footer{
    margin-top:10px;
    padding-top: 10px;
    background-color: #EFEDED;
}

.results{
    border-top: solid 10px #EFEDED;
}

.popover-title{
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

/* 'Advanced search' styling */
#advancedSearchButton{
    border:none;
}
#advancedSearchButton a{
    border:none;
    padding:6px; 
    background-color:#D3D3D3;
}

#advancedSearchOptions{
    padding: 5px;
    background-color: #D3D3D3;
    border-radius: 0 4px 4px 4px;
}

.modal-body p {
    word-wrap:break-word;
}

/*********************
    Media Queries
*********************/
/* add padding back to ejs panel on smaller screens */
@media screen and (max-width: 768px) {
    .panel-ejs {
        margin-bottom:10px;
    }
    .navbar-nav .open .dropdown-menu > li > a { 
        padding-left: 30px
    }
    .navbar-nav > li > ul.dropdown-menu {
        background: none;
        border: none;
    }
    .navbar-nav > li > ul.dropdown-menu > li{
        padding: 5px 0;
    }
}

@media screen and (max-width: 992px) {
    input#keywords{
        width: 426px;
    }
}

@media (min-width: 768px) {
    .navbar {
        height: 30px;
    }

    .navbar .container-fluid {
        max-height: 30px;
        padding-top: 6px;
    }

    .navbar-collapse {
        padding-left: 0;
    }    
    .navbar-nav > li { 
        border-right: 1px solid white;
        padding: 0 6px;
    }
    .navbar-nav > li.nav-last { 
        border-right: none;
        
    }
    .navbar-nav > li.nav-last > a { 
        padding-right: 0;
    }
    .navbar-nav > li.nav-first > a { 
        padding-left: 0;
    }
    .navbar-nav > li > a {
        padding: 8px 0;
    }
    .navbar-nav > li.nav-first > .dropdown-menu {
        margin-left: -12px;
    }
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        padding-top: 0;
    }
}

.navbar {
    margin-bottom: 0;
    margin-top: 10px;
    min-height: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    background: #405165;
    background: -moz-linear-gradient(top, #7188a6 0%, #405165 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7188a6), color-stop(100%,#405165));
    background: -webkit-linear-gradient(top, #7188a6 0%,#405165 100%);
    background: -o-linear-gradient(top, #7188a6 0%,#405165 100%);
    background: -ms-linear-gradient(top, #7188a6 0%,#405165 100%);
    background: linear-gradient(to bottom, #7188a6 0%,#405165 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7188a6', endColorstr='#405165',GradientType=0 );
}

.navbar-default .navbar-nav > li > a { 
    color: white;
}
nav .dropdown-menu {
    font-size:12px;
    background: #405165;
}
.navbar-nav > li > ul.dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.navbar-nav > li > ul.dropdown-menu > li{
    padding: 2px 0;
}
.dropdown-menu > li > a { 
    color:#fff;
    padding-left:15px;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color:#fff;
}
.navbar-nav .open .dropdown-menu > li > a:hover { 
    color: #bbb;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    color: #dedede;
    background:inherit;
}

.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
    color:#bbb;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
    color:white;
    background:inherit;
}

#submitForm:hover {
    color: #212529 !important;
    background-color: #F8F9FA !important;
    text-decoration: none;
}

label span {
    display: inline-block;
    margin-left: 4px;
}

#advancedSearch {
    color: #555;
    background-color: #D3D3D3;
    padding: 5px 10px !important;
    border-radius: 3px 3px 0 0;
    font-size: 12px;
    margin-right: 5px;
    width: 150px;
}

/* Accordion */
.accordion {
    --bs-accordion-border-width: 0;
}
.accordion .collapsing {
    position: relative;
    height: 0;
    -webkit-transition: height 0.5s ease;
    transition: height 0.5s ease;
}
.accordion-button:focus {
    box-shadow: none;
}

/* Search results */
table > thead > tr > th, table > tbody > tr > td {
    line-height: 1.5em;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

/* Folder candidate browsing page links */
.page-link {
    color: #337ab7; !important;
}

.active > .page-link {
    background-color: #337ab7;
    color: #FFFFFF; !important;
}

.browse-candidate-link {
    font-size: 12px;
}

/* Multi-select resizable dropdowns */
.resizable-select-container {
    width: 100%;
    resize: vertical;
    overflow: hidden;
    border: 1px solid #ccc;
    display: inline-block;
    padding: 1px;
    min-height: 100px;
    max-height: 640px;
}
.resizable-select-container select {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}