/* display kartik-v/select2 remove selection icon on the left */
.select2-container--krajee .select2-selection--multiple .select2-selection__choice__remove {
  float: left
}

/* Remove top and bottom margins from help-block class to make fields more compact */
.no-margin-help > .form-group > [class*="col-sm"] > [class="help-block"] {
  margin-top: 0;
  margin-bottom: 0;
}

/* Right border for modal nav-list */
.nav-border {
  border-right: 1px solid rgb(221, 221, 221);
}

/* Set cursor as pointer on hovering a list item */
li :hover {
  cursor: pointer;
}

/* overriding kartik-v/yii2-tree-manager node focus css in order to make the highlighting stand out more */
.kv-node-detail:focus, .kv-focussed {
  background-color: #d9d9d9 !important;
}

/* Making file input prettier */
.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type=file] {
  position:absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  background: white;
  cursor: inherit;
  display: block;
}

/* Decrease form-group element margin inside evaluation form */
.decrease-margin > [class*="col-sm"] > [class*="form-group"] {
  margin-bottom: 0;
}

/* Add padding-top to columns inside rows that have .match-my-col to fix elements stacking on each other */
.add-padding > [class*="col-sm"] {
  padding-top: 5px;
}

/* Make textareas' width static */
textarea {
  max-width: 100%;
  min-width: 100%;
  /*overflow-x: hidden; TODO this should? fix firefox n+1 rows*/
}

/* Remove link text decoration from panel toggle links */
a.collapse-toggle {
  text-decoration: none;
}

/* Make the entire bootstrap panel header clickable */
.panel-heading {
  padding: 0;
}
.panel-heading .panel-title .collapse-toggle{
  display: block;
  padding: 10px;
}

/* Vertical alignment using flexbox */
.vertical-align {
  display: flex;
  align-items: center;
}

/* Set display as inline for element */
.div-inline {
  display: inline;
}

/* Bold font for table labels & table header row */
td.col-sm-3.bg-info, thead tr.bg-info.text-left {
  font-weight: bold;
}

/* Fixed height table with scrollbar */
.table-fixed {
  height: 15em;
}
.table-fixed table {
  display: flex;
  flex-flow: column;
  height: 100%;
  width: 100%;
}
.table-fixed table thead {
  flex: 0 0 auto;
  width: calc(100% - 0.9em);
}
.table-fixed table tbody {
  flex: 1 1 auto;
  display: block;
  overflow-y: scroll;
}
.table-fixed table tbody tr {
  width: 100%;
}
.table-fixed table thead, .table-fixed table tbody tr {
  display: table;
  table-layout: fixed;
}

/* Spacing utilities from Bootstrap 4 */
.mt-0 { margin-top: 0 !important;}
.mr-0 { margin-right: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }

.mt-5 { margin-top: 5px; }
.mr-5 { margin-right: 5px; }
.mb-5 { margin-bottom: 5px; }
.ml-5 { margin-left: 5px; }

.mt-10 { margin-top: 10px; }
.mr-10 { margin-right: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-10 { margin-left: 10px; }

.mt-15 { margin-top: 15px; }
.mr-15 { margin-right: 15px; }
.mb-15 { margin-bottom: 15px; }
.ml-15 { margin-left: 15px; }

/* Added !important due to container-fluid overriding these classes when used with PJAX */
.pt-0 { padding-top: 0 !important; }
.pr-0 { padding-right: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }

.pt-5 { padding-top: 5px; }
.pr-5 { padding-right: 5px; }
.pb-5 { padding-bottom: 5px; }
.pl-5 { padding-left: 5px;}

.pt-10 { padding-top: 10px; }
.pr-10 { padding-right: 10px; }
.pb-10 { padding-bottom: 10px; }
.pl-10 { padding-left: 10px; }

.pt-15 { padding-top: 15px; }
.pr-15 { padding-right: 15px; }
.pb-15 { padding-bottom: 15px; }
.pl-15 { padding-left: 15px; }

/* Row height matching for dynamic-form fields */
.row.match-my-cols {
	overflow: hidden;
}
.row.match-my-cols [class*="col-"] {
	margin-bottom: -99999px;
	padding-bottom: 99999px;
}

.row-fluid.match-my-cols {
  overflow: hidden;
}
.row-fluid.match-my-cols [class*="col-"] {
  margin-bottom: -99999px;
  padding-bottom: 99999px;
}


/* Add to form dynamic rows to fix bottom padding */
.dynamic.col-sm-12 {
  padding-bottom: 15px;
}

input.autocomplete{
  background-color: #ffffe0;
 }
 
.comment input, .comment textarea{
  background-color: #fcf8e3;
  color: #8a6d3b;
 }
 
.form-control[contenteditable="true"] {
  height: auto;
}
 
.custom-file {
  position: relative;
  display: inline-block;
  max-width: 100%;
  height: 2.5rem;
  cursor: pointer;
}

.custom-file-input {
  min-width: 14rem;
  max-width: 100%;
  
  filter: alpha(opacity=0);
  opacity: 0;
  
  color: inherit;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-size: inherit;
  font-size-adjust: inherit;
  font-stretch: inherit;
  font-feature-settings: inherit;
  font-language-override: inherit;
  font-kerning: inherit;
  font-synthesis: inherit;
  font-variant-alternates: inherit;
  font-variant-caps: inherit;
  font-variant-east-asian: inherit;
  font-variant-ligatures: inherit;
  font-variant-numeric: inherit;
  font-variant-position: inherit;
  margin: 0;
  line-height: normal; 
}

.custom-file-control {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  height: 34px;
  padding: 6px 12px;
  line-height: 1.42857;
  font-size: 14px;
  color: #555555;
  font-weight: normal;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-image: none;
  border-image-source: none;
  border-image-slice: 100% 100% 100% 100%;
  border-image-width: 1 1 1 1;
  border-image-outset: 0 0 0 0;
  border-image-repeat: stretch stretch;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;
  transition-property: border-color, box-shadow;
  transition-duration: 0.15s, 0.15s;
  transition-timing-function: ease-in-out, ease-in-out;
  transition-delay: 0s, 0s;
  display: block;
  width: 100%; 
}

.custom-file-control:lang(en)::after {
  content: "Choose file...";
}

.custom-file-control:lang(et)::after {
  content: "Valimata...";
}

.custom-file-control::before {
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  z-index: 6;
  display: block;
  height: 34px;
  padding: 0.5rem 1rem;
  line-height: 1.5;
  color: #337cbb;
  text-decoration-line: none;
  text-decoration-style: solid;
  background-color: #eee;
  border: 1px solid #cccccc;
  border-radius: 0 4px 4px 0;
}

.custom-file-control:hover
{
  color: #333333;
  text-decoration-line: underline;
  text-decoration-style: solid;
}

.custom-file-control:lang(en)::before {
  content: "Browse";
}

.custom-file-control:lang(et)::before {
  content: "Lehitse";
}

.clickable, .more{
  cursor: pointer;   
}

h4.bg-info {
  padding-top: 5pt;
  padding-bottom:  5pt;
  font-weight:bold;     
 }

form h4  {
  font-weight:bold;
 }

.form-group label.bg-info {
    padding-bottom:5pt;      
    padding-top:5pt;      
}  


.row.panel{
  border-width:0;
  margin-top:1px;
  margin-bottom:1px;
  box-shadow: 0 0px 0px rgba(0,0,0,.05);
}

form .panel-body{
    background:#f7f8f9;
}

.kv-detail-container .table-condensed{
    margin-bottom:5pt;      
}  

.kv-detail-container .form-group {
  margin-bottom: 3px;
 }
 
.row.panel .panel-heading{
  padding-bottom:2pt;      
  padding-top:2pt;      
}

.row.panel h4 {
  padding-left:15px;
  margin-top:1px;
  margin-bottom:1px;  
  font-size:18px;
}

.kv-node-label {
  cursor: pointer;   
}

.divider {
  height: 1px;
  width:100%;
  display:block; /* for use on default inline elements like span */
  margin: 9px 0;
  overflow: hidden;
  background-color: #e5e5e5;
}

.required .control-label:after { 
    color: #d00;
    content: "*";
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    top:7px;
}

.no-gutter > [class*='col-'] {
    padding-right:1px;
    padding-left:1px;
    margin-bottom:1px;
} 

.no-gutter-first{
    margin-left:15px;
}

 .form-group-sm .no-gutter .form-control, .input-group-sm .no-gutter .form-control {
    padding-right:1px;
    padding-left:1px;
}



table.detail-view th, table.detail-view td{
  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: #d5e3f5;
  border-right-color: #d5e3f5;
  border-bottom-color: #d5e3f5;
  border-left-color: #d5e3f5;
  border-image-source: none;
  border-image-slice: 100% 100% 100% 100%;
  border-image-width: 1 1 1 1;
  border-image-outset: 0 0 0 0;
  border-image-repeat: stretch stretch;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 5px;
  vertical-align: top;
}

/* Line 21 */
table.detail-view th {
  text-align: right;
  width: 160px;
  font-weight: normal;
  color:grey;
}

/* Line 38 */
table.detail-view tr.odd th {
  background-color: #ebf3fd;
  background-image: none;
  background-repeat: repeat;
  background-attachment: scroll;
  background-position: 0% 0%;
  background-clip: border-box;
  background-origin: padding-box;
  background-size: auto;
}

td.bg-info.text-right {
    border-bottom: solid 2px white
}

.kv-sresults {
  background:none;
  min-height:auto;
}

.detail-heading {
  margin-top: 0px;
  margin-right: -20px;
  margin-bottom: 15px;
  margin-left: -20px;
  padding-top: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-left: 15px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #dddddd;
  background-color: #f5f5f5;
}

.detail-heading.bg-info, .detail-crumbs.bg-info{
  background-color: #d9edf7;
}

.detail-crumbs{
  font-size: 18px;
  color: #333333;
  text-shadow: none;
}

.detail-crumbs h3{
  margin-top: 5px;
  margin-bottom: 0px;
 }

.form-control-file,
.form-control-range {
  display: block;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: #eee;
}