/* This is the custom stylesheet, created to overwrite and add new styles to the Yii framework */

@import url(https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic);

body, button, input, select, textarea, span {
  font-family: 'Merriweather', 'Times New Roman', serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', 'Times New Roman', serif !important;
}

.main-header .logo span img {
  display: inline-block;
  vertical-align: middle;
}

#trial-control-bar {
  width: auto;
  height: 33px;
  display: block;
  overflow: hidden;
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  background: #CCCCCC;
}

.inline-breadcrumbs {
  display: inline-block;
  float: right;
}

#trial-control-bar.affix {
  top: 0px;
  left: 230px;
  right: 0px;
  z-index: 1000;
}
#trial-control-bar.affix-top {
  position: absolute;
  top: 50px;
  left: 230px;
  right: 0px;
  z-index: 1000;
}

#trial-control-bar img {
  width: 100%;
}

#zoom-img {
  width: auto;
  height: 300px;
  display: block;
  overflow: hidden;
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  background: #CCCCCC;
}

.trzoomimg {
  width: auto;
  height: 300px;
  display: block;
  overflow: hidden;
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  background: #CCCCCC;
}

#zoom-img.affix {
/*  top: 0px; */
  top: 33px;
  left: 230px;
  right: 0px;
  z-index: 1000;
}

.trzoomimg.affix {
/*  top: 0px; */
/*  top: 33px; */
  top: 33px;
  left: 230px;
  right: 0px;
  z-index: 1000;
}

#zoom-img.affix-top {
  position: absolute;
  top: 85px;
  left: 230px;
  right: 0px;
  z-index: 1000;
}

.trzoomimg.affix-top {
  position: absolute;
/*  top: 85px; */
  top: 85px;
  left: 230px;
  right: 0px;
  z-index: 1000;
}

#zoom-img img {
  width: 100%;
}

.trzoomimg img {
  width: 100%;
}

.zoom-above {
  margin-top: 300px;
}

.tdzoom-above {
  margin-top: 300px;
}

.show-hide-btn {
  /*
  position: fixed;
  top: 50px;
  right: 0px;
  */
  z-index: 1100;
  margin: 5px;
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  box-shadow: 0 1px 2px rgba(0,0,0,0.175);
  cursor: pointer;
}

.show-hide-btn.affix {
  top: 33px;
  right: 0px;
  z-index: 1000;
}

.show-hide-btn.affix-top {
  position: absolute;
  top: 85px;
  right: 0px;
  z-index: 1000;
}

#zoom-img-show {
  display: none;
}

#trzoom-img-show {
  display: none;
}

.btn-circle {
  width: 20px;
  height: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.42;
  border-radius: 10px !important;
}

/*.create-row {
    display: table;
    margin-right: -30px;
    width: calc(100% + 30px);
}*/

/*.create-row .middle-txt {
    float: none;
    display: table-cell;
    vertical-align: middle;
}*/

/*.create-row [class*="col-"] {
    float: none;
    display: table-cell;
    vertical-align: middle;
}*/

.create-row .form-group{
  width: 100%;
}

.create-row .form-group .control-label {
  min-width: 20%;
}

.create-row .form-group .form-control {
  min-width: calc(80% - 15px);
}

.select2-container .select2-selection--single .select2-selection__rendered {
  margin-top: 0px !important;
}

.kv-grid-table i.fa {
  font-weight:bold;
  margin:.1em;
}

.kv-grid-table .filters input{
  padding:2px 4px;
}
.trial-index .kv-grid-table td.enteredby {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

#search-records-section {
  width: 100%;
  background: #f9f9f9;
  background-color: #f9f9f9;
  /*background-image: url("search-bg.jpg"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;*/
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #CCCCCC;
}

#search-records-section, #search-results-section {
  margin-bottom: 30px;
}

.search-col-left {
  width: 30%;
  float: left;
  padding-bottom: 15px;
}

.search-col-right {
  width: 30%;
  float: right;
  padding-bottom: 15px;
}

@media(max-width: 479px) {
  .search-col-left, .search-col-right {
    float: none;
    width: 100%;
  }
}

.search-row {
  clear: both;
  width: 100%;
  padding-top: 15px;
  border-top: 1px solid #CCCCCC;
}
#search-records-section div[class^="col-"], #search-records-section div[class*=" col-"] {
  padding:0 0 15px 0;
}

#search-records-section label {
  display: block;
}

#search-records-section input[type="text"], #search-records-section select {
  display: block;
  width: 100%;
}

/*
 * Fix input fields from extending beyond the size of the container due to
 * default user agent sizing
 */
#search-records-section input {
  max-width: 100%;
}

#search-records-section input[type="submit"] {
  margin: 0;
  font-family: 'Merriweather', serif;
}

#quick-search, #advanced-search {
  display: none;
}

#search-results-section table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 1em;
  border: 0;
}

#search-results-section table tbody td {
  padding: 5px;

}

#search-results-section table tbody .odd td {
  background-color: #F9F9F9;
}

#search-results-section table tbody .even td {
  background-color: #FFFFFF;
}

#search-results-section table tbody tr:hover td {
  background-color: #f3f3f3;
}

#search-results-section .circle-icon {
  cursor: pointer;
}

.clearfix:after {
   content: " ";
   display: block;
   height: 0;
   clear: both;
}

.public .main-footer {
  margin-left:0;
}
.public .navbar-right {
  margin-right:0;
}
.public .wrap > .container {
  padding-top:3em;
}
label.required:after {
    content: " *";
    color: red;
}
span.error {
  color:red;
  font-style: italic;
}
.tab-pane {
  padding:1em;
}
h4.with-export {
  margin-bottom:.75em;
  display:inline-block;
}
.export-vis {
  float: right;
  line-height: 2em;
  margin: .7em 0 .7em 1em;
  font-size: 0.9em;
}
.export-visualisation-button {
  display: inline-block;
  line-height: 2em;
  margin-right: 1em;
}
.c3 {
  margin-bottom:2em;
}
/*
.trtextarea {
*/
/*
.redactor-box {
    width: 100%;
    height: 80vh !important;
    resize: none;
    overflow-y: scroll;
}
*/
.trzoomimage {
    width: 100%;
    height: 100vh;
}

.trzoomimagedetail {
    width: 100%;
    height: 625px;
}

/*
.redactor-editor,
.redactor-box {
    background: #aaa;
}
*/

/*
.trial-index-container {
    overflow: auto;
    overflow-y: scroll;
    overflow-x: scroll;
    height: auto;
}
*/

.thumbborderstarted {
    border-width: 10px;
    border-color: orange;
    border-style: solid;
}

.thumbbordercompleted {
    border-width: 10px;
    border-color: green;
    border-style: solid;
}

.thumbbordernotstarted {
    border-width: 10px;
    border-color: red;
    border-style: solid;
}

.redactcolorred {
    color: red;
}

.redactcolorblue {
    color: blue;
}

.fa-arrow-circle-left {
    color: red;
}

.fa-arrow-circle-right {
    color: blue;
}
#pseudo-scroll {
  overflow-y: hidden;
  overflow-x: scroll;
}
#pseudo-scroll, #scroller {
  height:15px;
}
.skin-yellow .wrapper {
  background-color: white!important;
}
.loader {
  width:100%;
  height:100%;
  background:rgba(255,255,255,.75);
  text-align: center;
  padding:45% 0 0;
  position: absolute;
  z-index:10000;
}
.select2-container--krajee .select2-selection--multiple .select2-selection__choice {
  font-size:13px;
}
#zoom-img, .show-hide-btn, #trial-control-bar {
  transition: all .3s linear;
}

.trzoomimg, .show-hide-btn, #trial-control-bar {
  transition: all .3s linear;
}

.dynagrid-config-form .sortable-visible .icon-visible-column, .dynagrid-config-form .sortable-hidden .icon-hidden-column {
  cursor:pointer;
}
.dynagrid-config-form .sortable-visible .icon-visible-column:hover, .dynagrid-config-form .sortable-hidden .icon-hidden-column:hover {
  opacity:0.7;
}

/*
 * The whole area that contains the chart in `OffenceProportionTreemapWithTime`
 * component
 */
.offence-proportion-treemap-with-time .chart-wrapper {
  position: relative;
  min-height: 500px;

  /* Make chart area non-selectable */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/*
 * Style for a "No data" message that appears in the
 * `OffenceProportionTreemapWithTime` component
 */
.offence-proportion-treemap-with-time .no-data-message {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 780px) {
  aside.main-sidebar {
    z-index: 1040;
  }
  header.main-header {
    z-index: 1050
  }
    #zoom-img.affix-top {
      left:0;
      top:0;
      position: relative;
    }
    .trzoomimg.affix-top {
      left:0;
      top:0;
      position: relative;
    }
    #zoom-img.affix{
      left:0;
      position:static;
    }
    .trzoomimg.affix{
      left:0;
      position:static;
    }
    .zoom-above {
      margin-top: 0;
  }
  .show-hide-btn.affix-top, .show-hide-btn.affix {
    position: absolute;
    top:100px;
    z-index: 1060;
  }
  #trial-control-bar.affix-top, #trial-control-bar.affix {
    position: relative;
    margin:-1em -1em 2em -1em;
    left:0;
    top:0;
  }
  .sidebar-open #trial-control-bar.affix-top, .sidebar-open #trial-control-bar.affix {
    top:0px;
  }
  .sidebar-open #zoom-img {
    left:230px;
  }
  .sidebar-open .trzoomimg {
    left:230px;
  }
  .sidebar-open .show-hide-btn.affix-top, .sidebar-open .show-hide-btn.affix {
    right:-230px;
  }

}
@media screen and (max-width: 980px) {
  #trial-control-bar {
    height:auto;
  }
}

/* Styles for tiles on index page */
.index-tile-link,
.index-tile-link:hover,
.index-tile-link:focus {
  color: inherit;
}

.index-tile {
  position: relative;
  height: 250px;
  background-color: #ccc;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.index-tile .panel-body {
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.index-tile-link:hover .index-tile .panel-body,
.index-tile-link:focus .index-tile .panel-body {
  background: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* Fix for sidebar bottom padding causing multiple scrollbars due to unexpected overflow */
.main-sidebar > .sidebar {
  padding-bottom: 0;
}

/* Prevent split button group from wrapping inside a table cell */
.pp-trial-index2 .action-button-widget > .btn-group {
  display: inline-flex;
}

.pp-trial-index2 .action-button-widget .dropdown-menu {
  border-color: #367fa9;
}

.pp-trial-index2 .action-button-widget .fa {
  width: 1em;
  margin-right: 0.3ch;
  overflow: visible;
}

.pp-trial-index2 .data-table-widget {
  overflow-x: scroll;
}

.pp-trial-index2 .data-table-widget .grid-view .table thead th,
.pp-trial-index2 .data-table-widget .grid-view .table thead th a {
  background-color: #3c8dbc;
  color: #fff;
  font-weight: inherit;
}

.pp-trial-index2 .data-table-widget .grid-view .table tbody tr:hover,
.pp-trial-index2 .data-table-widget .grid-view .table tbody tr:focus-within {
  background-color: rgba(243, 156, 18, 0.2);
}

.pp-trial-index2 .header-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.pp-trial-index2 .header-block > h1 {
  margin: 0.5em 0;
}

.pp-trial-index2 .controls-widget-block {
  background: #ddd;
  padding: 1.5em;
  margin-bottom: 1em;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pp-trial-index2 .controls-widget-block > h1:first-child,
.pp-trial-index2 .controls-widget-block > h2:first-child,
.pp-trial-index2 .controls-widget-block > h3:first-child,
.pp-trial-index2 .controls-widget-block > h4:first-child {
  margin-top: 0;
}

.pp-trial-index2 .controls-widget-block .footer-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 1em;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1em;
}

.pp-trial-index2 .control-toolbar {
  margin: 0.5em 0;
  margin-left: auto;
  padding-left: 1em;
  text-align: right;
}

.pp-trial-index2 .pagination-widget {
  border-top: 1px solid rgba(100, 100, 100, 0.2);
  background: #ecf0f5;
}

.pp-trial-index2 .pagination-widget .pagination-area {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  bottom: 0;
  z-index: 1000;
  transform: translateY(0);
  will-change: transform;
}


.pp-trial-index2 .pagination-widget .pagination-area > * {
  padding: 1em 0.5em;
}

.pp-trial-index2 .pagination-widget .pagination-area > * > * {
  margin: 0;
  padding: 0;
}

.pp-trial-index2 .hidden {
  display: none;
}

.pp-trial-index2 .table-more-link {
  display: block;
  font-style: italic;
}

.abs-hist-pop-stat-tabs + .tab-content {
  background: #fff;
  border: 1px solid #ddd;
  border-top: 0;
}
