/* table {
  font-family: sans-serif;
} */

.table-bordered thead tr th:first-child,
.table-bordered tbody tr td:first-child {
  /*border: none;*/
}

.table-bordered thead tr th {
  font-weight: 400;
}

.field-resize-xs,
.field-resize-xs .form-control {
  width: 80px;
}

.field-resize-sm,
.field-resize-sm .form-control {
  width: 100px;
}

.field-resize-lg,
.field-resize-lg .form-control {
  width: 200px;
}

.field-resize-xl,
.field-resize-xl .form-control {
  width: 400px;
}

.field-resize-xxl,
.field-resize-xxl .form-control {
  min-width: 200px;
  width: 400px;
}

.textarea-table-sm {
  max-height: 300px;
  max-width: 300px;
  min-width: 300px;
  min-height: 34px !important;
}

/* Table fixed con scrolling horizontal */
.scrolling table {
  table-layout: inherit;
  /* *margin-left: -100px; */
  /*ie7*/
}

.scrolling td,
th {
  vertical-align: top;
  padding: 10px;
  /* min-width: 100px; */
}

.scrolling .header-fixed,
.scrolling .column-fixed {
  position: absolute;
  *position: relative;
  /*ie7*/
  left: 0;
  /* top: 53.5%; */
  /* width: 48px; */
  width: 78px;
  border-bottom: 0;
  background-color: white;
}

.scrolling .header-fixed .element-fixed,
.scrolling .column-fixed .element-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateY(50%);
}

.outer {
  position: relative;
}

.inner {
  overflow-x: auto;
  overflow-y: visible;
  /* margin-left: 220px; */
  /* margin-left: 48px; */
  margin-left: 78px;
}

/* Utiles */
.text-nowrap {
  white-space: nowrap;
}

.border-top-0 {
  border-top: none;
}
.border-bottom-0 {
  border-bottom: none;
}

.label-bordered {
  background-color: transparent;
  color: inherit;
  border: 1px solid #ccc;
  font-weight: 400;
}

/* .align-middle {
  vertical-align: middle !important;
} */

/* Form styles */
.checkbox {
  padding-left: 20px;
}

.checkbox label {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  padding-left: 5px;
}

.checkbox label::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 17px;
  height: 17px;
  left: 0;
  margin-left: -20px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background-color: #fff;
  -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
  -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
  transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
}

.checkbox label::after {
  display: inline-block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  top: 0;
  margin-left: -20px;
  padding-left: 1px;
  padding-top: 1px;
  font-size: 11px;
  color: #555555;
}

.checkbox input[type="checkbox"] {
  opacity: 0;
  z-index: 1;
}

.checkbox input[type="checkbox"]:focus+label::before {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.checkbox input[type="checkbox"]:checked+label::after {
  font-family: 'FontAwesome';
  content: "\f00c";
}

.checkbox input[type="checkbox"]:disabled+label {
  opacity: 0.65;
}

.checkbox input[type="checkbox"]:disabled+label::before {
  background-color: #eeeeee;
  cursor: not-allowed;
}

.checkbox.checkbox-circle label::before {
  border-radius: 50%;
}

.checkbox.checkbox-inline {
  margin-top: 0;
}

.checkbox-primary input[type="checkbox"]:checked+label::before {
  background-color: #428bca;
  border-color: #428bca;
}

.checkbox-primary input[type="checkbox"]:checked+label::after {
  color: #fff;
}

.checkbox-danger input[type="checkbox"]:checked+label::before {
  background-color: #d9534f;
  border-color: #d9534f;
}

.checkbox-danger input[type="checkbox"]:checked+label::after {
  color: #fff;
}

.checkbox-info input[type="checkbox"]:checked+label::before {
  background-color: #5bc0de;
  border-color: #5bc0de;
}

.checkbox-info input[type="checkbox"]:checked+label::after {
  color: #fff;
}

.checkbox-warning input[type="checkbox"]:checked+label::before {
  background-color: #f0ad4e;
  border-color: #f0ad4e;
}

.checkbox-warning input[type="checkbox"]:checked+label::after {
  color: #fff;
}

.checkbox-success input[type="checkbox"]:checked+label::before {
  background-color: #5cb85c;
  border-color: #5cb85c;
}

.checkbox-success input[type="checkbox"]:checked+label::after {
  color: #fff;
}

/* Excepciones en listas desactivadas */
.checkbox-inline-disabled label::before {
  left: -2px;
}

.radio {
  padding-left: 20px;
}

.radio label {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  padding-left: 5px;
}

.radio label::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 17px;
  height: 17px;
  left: 0;
  margin-left: -20px;
  border: 1px solid #cccccc;
  border-radius: 50%;
  background-color: #fff;
  -webkit-transition: border 0.15s ease-in-out;
  -o-transition: border 0.15s ease-in-out;
  transition: border 0.15s ease-in-out;
}

.radio label::after {
  display: inline-block;
  position: absolute;
  content: " ";
  width: 11px;
  height: 11px;
  left: 3px;
  top: 3px;
  margin-left: -20px;
  border-radius: 50%;
  background-color: #555555;
  -webkit-transform: scale(0, 0);
  -ms-transform: scale(0, 0);
  -o-transform: scale(0, 0);
  transform: scale(0, 0);
  -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
  transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
}

.radio input[type="radio"] {
  opacity: 0;
  z-index: 1;
}

.radio input[type="radio"]:focus+label::before {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.radio input[type="radio"]:checked+label::after {
  -webkit-transform: scale(1, 1);
  -ms-transform: scale(1, 1);
  -o-transform: scale(1, 1);
  transform: scale(1, 1);
}

.radio input[type="radio"]:disabled+label {
  opacity: 0.65;
}

.radio input[type="radio"]:disabled+label::before {
  cursor: not-allowed;
}

.radio.radio-inline {
  margin-top: 0;
}

.radio-primary input[type="radio"]+label::after {
  background-color: #428bca;
}

.radio-primary input[type="radio"]:checked+label::before {
  border-color: #428bca;
}

.radio-primary input[type="radio"]:checked+label::after {
  background-color: #428bca;
}

.radio-danger input[type="radio"]+label::after {
  background-color: #d9534f;
}

.radio-danger input[type="radio"]:checked+label::before {
  border-color: #d9534f;
}

.radio-danger input[type="radio"]:checked+label::after {
  background-color: #d9534f;
}

.radio-info input[type="radio"]+label::after {
  background-color: #5bc0de;
}

.radio-info input[type="radio"]:checked+label::before {
  border-color: #5bc0de;
}

.radio-info input[type="radio"]:checked+label::after {
  background-color: #5bc0de;
}

.radio-warning input[type="radio"]+label::after {
  background-color: #f0ad4e;
}

.radio-warning input[type="radio"]:checked+label::before {
  border-color: #f0ad4e;
}

.radio-warning input[type="radio"]:checked+label::after {
  background-color: #f0ad4e;
}

.radio-success input[type="radio"]+label::after {
  background-color: #5cb85c;
}

.radio-success input[type="radio"]:checked+label::before {
  border-color: #5cb85c;
}

.radio-success input[type="radio"]:checked+label::after {
  background-color: #5cb85c;
}

/* Sizes */
.mx-1 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-2 {
  margin-left: 2rem;
  margin-right: 2rem;
}
.mt-1-2 {
  margin-top: 0.75rem;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mr-1-2 {
  margin-right: 1.5rem;
}
.pt-1 {
  padding-top: 1rem;
}

.pt-2 {
  padding-top: 2rem;
}

.pt-3 {
  padding-top: 3rem;
}

/* Buttons */
.btn-rounded {
  width: 28px;
  height: 28px;
  line-height: 28px;
  /* adjust line height to align vertically*/
  padding: 0;
  padding-left: 1px;
  /* border-radius: 50%; */
  background-color: transparent;
  /* box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75); */
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: all 0.325s ease-out;
  color: rgba(0, 0, 0, 0.675);
}

.btn-rounded:hover {
  border-color: rgba(0, 0, 0, 0.5);
  /* box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5); */
}

.btn-rounded.btn-rounded-danger {
  color: #d9534f;
  border-color: #d9534f;
}

.btn-rounded.btn-rounded-success {
  color: #5cb85c;
  border-color: #5cb85c;
}

/* Imagenes con checkbox */
.nopad {
  padding-left: 0;
  padding-right: 0;
}

.image-checkbox {
  cursor: pointer;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: 4px solid transparent;
  margin-bottom: 0;
  outline: 0;
  transition: all 0.325s ease-out;
}

.image-checkbox input[type="checkbox"] {
  display: none;
}

.image-checkbox-checked {
  border-color: #5cb85c;
}

.image-checkbox .fa {
  position: absolute;
  color: #ffffff;
  background-color: #5cb85c;
  padding: 0.675rem;
  top: 0;
  right: 0;
}

.image-checkbox-checked .fa {
  display: block !important;
}

/* List group */
.list-group-transparent {
  margin-bottom: 0;
}
.list-group-transparent li {
  border: 0;
  background-color: transparent;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.list-group-transparent li:first-child {
  padding-top: 0;
}
.list-group-transparent li:last-child {
  padding-bottom: 0;
}