/* Copyright (c) 2020 Hubert Naets <hubert.naets@uclouvain.be>,
Centre de traitement automatique du langage,
Université catholique de Louvain

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

/* Material icons */
.material-icons {
  text-align:bottom;
  vertical-align: middle;
}
.material-icons.md-12 { font-size: 12px; }
.material-icons.md-14 { font-size: 14px; }
.material-icons.md-16 { font-size: 16px; }
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }


.sorting,
.sorting_asc,
.sorting_desc{
    padding:4px 10px 4px 0px;
    cursor:pointer;
    margin-right:4px;
}
.sorting{
    background:url(data:image/gif;base64,R0lGODlhCwALAJEAAAAAAP///xUVFf///yH5BAEAAAMALAAAAAALAAsAAAIUnC2nKLnT4or00PvyrQwrPzUZshQAOw==) no-repeat center right;
}
.sorting_asc{
    background:url(data:image/gif;base64,R0lGODlhCwALAJEAAAAAAP///xUVFf///yH5BAEAAAMALAAAAAALAAsAAAIRnC2nKLnT4or00Puy3rx7VQAAOw==) no-repeat center right;
}
.sorting_desc{
    background:url(data:image/gif;base64,R0lGODlhCwALAJEAAAAAAP///xUVFf///yH5BAEAAAMALAAAAAALAAsAAAIPnI+py+0/hJzz0IruwjsVADs=) no-repeat center right;
}

.table-texts {
  margin-bottom: 0px;
}
.table-bordered > thead > tr > th, .table-bordered > thead > tr > td {
  border-bottom-width: 1px;
}

.table-texts > thead > tr > th, .table-texts > thead > tr > td {
  border-bottom-width: 1px;
}

.angucomplete-dropdown {
    overflow-y: auto;
    max-height: 200px;
}


.table-texts td:first-child {
  position:absolute;
  left:14px;
  width:35px;
  background-color: white;
  border-right: 1px solid;
}

.table-texts tr td {
  height: 35px;
}

.table-texts tr td input[type="checkbox"] {
  margin: 0px;
}

.table-texts > thead > tr {
  background-color: #FFF;
/*   color: #2196f3; */
  font-weight: bold;
}

.table-texts > thead > tr > td.success,
.table-texts > tbody > tr > td.success,
.table-texts > tfoot > tr > td.success,
.table-texts > thead > tr > th.success,
.table-texts > tbody > tr > th.success,
.table-texts > tfoot > tr > th.success,
.table-texts > thead > tr.success > td,
.table-texts > tbody > tr.success > td,
.table-texts > tfoot > tr.success > td,
.table-texts > thead > tr.success > th,
.table-texts > tbody > tr.success > th,
.table-texts > tfoot > tr.success > th {

  background-color: #2196f3;
  color: white;
}


/* All
---------------------------------------------------*/
[ng-cloak]
{
  display: none !important;
}

/* Spinner and loader
---------------------------------------------------*/
@keyframes spin {
    from {transform:rotate(360deg);}
    to {transform:rotate(0deg);}
}

.md-spin {
    animation: spin 2s infinite 0s linear;
}


.loading {
   position: absolute;
/*  top: 50%; */
  left: 50%;
}
.loading-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  border-radius: 5px;
  animation: loading 1s ease-in-out infinite;
}
.loading-bar:nth-child(1) {
  background-color: #bbdefb;
  animation-delay: 0;
}
.loading-bar:nth-child(2) {
  background-color: #90caf9;
  animation-delay: 0.09s;
}
.loading-bar:nth-child(3) {
  background-color: #2196f3;
  animation-delay: .18s;
}
.loading-bar:nth-child(4) {
  background-color: #0d47a1;
  animation-delay: .27s;
}

@keyframes loading {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1, 2.2);
  }
  40% {
    transform: scale(1);
  }
}



/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 120px;
  margin-top: 30px;
  color: #000;
}
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 120px;
}

/* navbar
-------------------------------------------------- */
.navbar.navbar-fixed-top {
/*   background-color: white; */
}

/* Nav-tabs
-------------------------------------------------- */
.nav-tabs {
  padding-top: 1em;
  padding-bottom: 1em;
}

.nav-tabs.nav-justified > li {
     border-right: 1px solid;
     border-left: 1px solid;
     border-color: #eeeeee;
   /*  border-radius:5px;*/
     font-size:1.2em;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus {
  background-color: #2196f3;
  color: #FFFFFF;
}

.nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus, .nav-tabs.nav-justified > .active > a:active {
  background-color: #2196f3;
  color: #FFFFFF;
}

.nav-tabs.nav-justified > .active > a:focus:hover {
    color: #FFFFFF;
}

/*.nav-pills {
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: #eeeeee;
}*/

@media (min-width:1200px) and (max-width:1446px) {
  .hidden-md-lg {
    display: none !important;    
  }
}


/* Criterion panels
----------------------------------------------------*/


.panel-inactive {
  border-color: #2196f3;
}
.panel-inactive > .panel-heading {
  color: #ffffff;
  background-color: #2196f3;
  border-color: #2196f3;
}
.panel-inactive > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #2196f3;
}
.panel-inactive > .panel-heading .badge {
  color: #2196f3;
  background-color: #ffffff;
}
.panel-inactive > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #2196f3;
}

.panel-active {
  border-color: #0d47a1;
}
.panel-active > .panel-heading {
  color: #ffffff;
  background-color: #0d47a1;
  border-color: #0d47a1;
}
.panel-active > .panel-heading + .panel-collapse > .panel-body {
  border-top-color: #0d47a1;
}
.panel-active > .panel-heading .badge {
  color: #0d47a1;
  background-color: #ffffff;
}
.panel-active > .panel-footer + .panel-collapse > .panel-body {
  border-bottom-color: #0d47a1;
}



td.texts_number {
  text-align:right;
  /*font-size: 0.8em;*/
  /*vertical-align:middle;*/
}

div.reduce {
  overflow:auto;
  height: 325px;
}

.badge {
  background-color: #9e9e9e;
  padding: 4px 5px 5px
}

canvas {
  width: 100% !important;
  height: 100% !important;
}


/* Concordances
----------------------------------------------------*/

td > strong {
color: #2196f3;
}

.em {
  color: #2196f3;
  text-decoration: underline;
}

.table-extra-condensed > thead > tr > th,
.table-extra-condensed > tbody > tr > th,
.table-extra-condensed > tfoot > tr > th,
.table-extra-condensed > thead > tr > td,
.table-extra-condensed > tbody > tr > td,
.table-extra-condensed > tfoot > tr > td {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 7px;
  padding-right: 7px;
}

.pagination-group {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
}

.pagination-group > .btn {
  margin: 0px;
/*   padding: 6px 8px; */
  padding: 6px 8px;
  margin-left: 0px;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.4);
  float: left;
  background-color: white;
  height: 37px;
  z-index: 0;
}

.pagination-group .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
  border-radius: 0px;
}

.pagination-group > .btn:first-child {


  border-bottom-right-radius: 0px;
  border-top-right-radius: 0px;
}

.pagination-group > .form-control {
  display: inline-block;
  width:80px;
  text-align: center;
  border: medium none;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.4);
  line-height: 1.846;
  float: left;
  background-size: 200% auto;
  background-position: 50% center;
  border-color: transparent;
  background-color: white;
  margin-right: 0px;
  font-size: 13px;
  padding-right:3px;
}

.pagination-group > .form-control:focus {
  display: inline-block;
  width:80px;
  text-align: center;
  border: medium none;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.4);
  line-height: 1.846;
  float: left;
  background-size: 200% auto;
  background-position: 50% center;
  border-color: transparent;
  background-color: white;
  margin-right: 0px;
  font-size: 13px;
}

.pagination-group > .ng-invalid, .pagination-group > .ng-invalid:focus, .pagination-group > .ng-invalid:active {
  color: #FFF;
  background-color: #FF9800;
  border-color: rgba(0, 0, 0, 0);
}

.pagination-group > .btn:last-child {

  border-bottom-left-radius: 0px;
  border-top-left-radius: 0px;
}

.pagination-group > .btn:focus {
/*   z-index: 5; */
}

.pagination-group > .btn:hover {
  z-index: 2;
  background-color: #e6e6e6;
  border-color: rgba(0, 0, 0, 0);
}

.pagination-group > .form-control:focus {
  z-index: 2;
}




/* label button on "order by" widget */
button .label-button {
  position:absolute;
  top:30px;
  background-color:#2196f3;
  height:18px;
  width:18px;
  border-radius:9px;
  color:white;
  margin-left:3px;
}

button .label-button div {
  position:relative;
  top:-2px;
}


.input-group-btn-noborders > .btn {
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: none;
  padding-bottom: 6px;
  box-shadow: #DDD 0px -1px 0px 0px inset;
  border-bottom-right-radius: 0px;
}

input[type="text"]:disabled {
  background: #ddd;
}

.input-style {
  font-size: 16px;
  color: #666;
}

.input-style .label {
  font-size: 100%;
  font-weight: normal;
}

.pull-left-column {
  margin-right:5px;
  text-align:right;
}

.no-margin {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

.neutral {
  background-color: white;
}

.left-bordered {
  border-left:3px solid #DDD;
  margin-left: 3px;
  padding-left: 3px;
}

.table tbody > tr > td.vert-align {
  vertical-align: middle;
}

.overflow-hidden {
  overflow:hidden;
}

/* Query helper
-------------------------------------------------- */
div.query-helper-token {
  margin-top: 8px;
  padding-top:15px;
  padding-left:5px;
  padding-right:15px;
  padding-bottom:2px;
  border-left: 1px solid #bbdefb;
  border-right: 1px solid #bbdefb;
  border-bottom: none;
  border-top: 1px solid #bbdefb;
  box-shadow: #DDD 0px 0px 10px 0px;
  background-color: #bbdefb;
  border-top-right-radius: 2px;
￼  border-top-left-radius: 2px;
/*  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;*/
}

button.btn-noborders {
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: none;
  box-shadow: #DDD 0px 0px 0px 0px inset;
  border-bottom-right-radius: 0px;
}

a.token {
  font-size: 1.3em;
  border-bottom: 1px dotted #333;
  text-decoration: none;
  padding: 5px 5px 5px 5px;
  cursor: pointer;
}

a.token:visited {
  border-bottom: 1px dotted #333;
  text-decoration: none;
  padding: 5px 5px 5px 5px;
  cursor: pointer;
}

a.token:active {
  border-bottom: 1px dotted #333;
  text-decoration: none;
  padding: 5px 5px 5px 5px;
  cursor: pointer;
}

a.token:hover {
  border-bottom: 1px dotted #333;
  text-decoration: none;
  background-color: #DDD;
  border-top-right-radius:5px;
  border-top-left-radius:5px;
  border-bottom-right-radius:0px;
  border-bottom-left-radius:0px;
  padding: 5px 5px 5px 5px;
  cursor: pointer;
}

a.token-current {
  font-size: 1.3em;
  border-bottom: 1px solid #2196F3;
  text-decoration: none;
  background-color: #2196F3;
  border-top-right-radius:5px;
  border-top-left-radius:5px;
  border-bottom-right-radius:0px;
  border-bottom-left-radius:0px;
  padding: 5px 5px 17px 5px;
  margin-bottom: -7px;
  cursor: pointer;
  color:white;
}

.query-helper-string {
  
}

.form-control.form-control-nobackground {
  border:none;
  box-shadow: #0FF 0px 0px 0px 0px inset;
}

/* Autocomplete
-------------------------------------------------- */


.autocomplete {
  position: relative;
  /* display: inline-block; $/
  /*width:50%;*/
}

.autocomplete-items {
  position: absolute;
  /* border: 1px solid #d4d4d4; */
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0px;
  right: 0px;
  overflow-y:auto;
  height:372px;
          /* font-size: 14px; */
}
.autocomplete-items div {
  padding: 5px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
  border-left: 1px solid  #d4d4d4;
  border-right: 1px solid  #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}
.autocomplete-active {
          /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}



/* Main page
-------------------------------------------------- */
#main-page {
  background: url('/img/document_background2.jpg') no-repeat center center fixed;
  background-size: cover;
}

.absolute-center {
  text-align: center;
/*   font-family: 'OpenSansLight'; */
  color: #FFF;
  padding-top: 50px;
}

.btn-nocolor {
  background-color: rgba(0, 0, 0, 0);
  border-top-color: #FFF;
  border-left-color: #FFF;
  border-right-color: #FFF;
  border-bottom-color: #FFF;
  color: #FFF;
  font-weight: 700;
  text-shadow: black 0em 0em 0.2em;
  box-shadow: 0px 0px 5px #aaa;
}

.btn-nocolor:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #FFF;
  font-weight: 700;
}

.btn-nocolor:focus, .btn-nocolor:active:focus, .btn-nocolor.active:focus {
  background-color: rgba(255, 255, 255, 0.3);
  color: #FFF;
  font-weight: 700;
}

.main-title {
/*   font-family: 'OpenSansRegular'; */
  font-size: 2em;
  letter-spacing: -0.05em;
  margin-top: 20px;
  margin-bottom: 20px;
  text-shadow: black 0em 0em 0.2em;
}

.main-title em {
/*    font-family: 'OpenSansLight'; */
   font-style: normal;
}

.main-title strong {
/*   font-family: 'OpenSansExtrabold'; */
  font-weight: 500;
}



/* Catalog Mainpage
---------------------------------------------------*/

.filters_container {
  background-color: #FAFAFA;
  border-bottom-color: #EEE;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-left-color: #EEE;
  border-left-style: solid;
  border-left-width: 1px;
  border-right-color: #EEE;
  border-right-style: solid;
  border-right-width: 0px;
  border-top-color: #E5E5E5;
  border-top-style: solid;
  border-top-width: 1px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 3px 6px 0px inset;
  box-sizing: border-box;
  
  padding-top: 20px;
  padding-bottom: 15px;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 2em;
  
}

.catalog_elem {
  list-style-type: none;
  list-style-position: outside;
  padding-top: 14px;
  padding-bottom: 10px;
  margin-bottom: 15px;
  padding-left: 0px;
  
  /*border-top-style: solid;
  border-top-color: #E5E5E5;
  border-top-width: 1px;*/
  
}

.catalog_elem_thumb {
  width: 8em;
  min-width: 5em;
  float: right;
  padding-top: 10px;
}

.catalog_elem_title {
  font-weight: 700;
  font-size: 1.2em;
  padding-top: 2px;
  padding-bottom: 2px;
}

.catalg_elem_subtitle {
  font-weight: 700;
  padding-top: 2px;
  padding-bottom: 2px;
}

.catalog_elem_link {
  padding-top: 2px;
  padding-bottom: 2px;
}

.catalog_elem_short_description {
  padding-top: 2px;
  padding-bottom: 2px;
  line-height: 160%;
}

.catalg_elem_labels {
  font-size: 1.15em;
  padding-top: 7px;
  padding-bottom: 5px;
}

.catalog_pager {
  text-align: center;
}

/* Catalog Corpus page
---------------------------------------------------*/

.table-corpus-description tr td:nth-child(1) {
  text-align: right;
  font-weight: 700;
}

.corpus-right-panel {
  text-align: center;
}

.corpus-lateral-panel div {
  padding-bottom: 5px;
}

.corpus-lateral-panel .img-responsive {
    margin: 0 auto;
}

/* Archives Dashboard
-------------------------------------------------- */

#dashboard_table tr td:nth-child(2) {
  text-align: center;
}

#dashboard_table tr td:nth-child(3) {
  text-align: center;
}

#dashboard_table tr td:nth-child(4) {
  text-align: center;
}

#dashboard_table tr th:nth-child(2) {
  text-align: center;
}

#dashboard_table tr th:nth-child(3) {
  text-align: center;
}

#dashboard_table tr th:nth-child(4) {
  text-align: center;
}


/* Form
-------------------------------------------------- */
.form-container {
  margin-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
}

.form-group .btn-group {
  display: table;
}

.form-multi {
  padding-bottom: 1.5em;
}

.has-error .control-label:before {
  content: '\26A0 \00A0';
}

.has-success .control-label:before {
/*   content: '\2713 \00A0'; */
  content: '\2714 \00A0';
}

.input-serie {
}

@media (max-width: 1150px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* since 3.1.0 */
    .navbar-collapse.collapse.in { 
        display: block!important;
    }
    .collapsing {
        overflow: hidden!important;
    }
}














