/**********************************************************************************************
  General  color principal: 006461 (mas oscuro 00514d, aun más oscuro 003130) color secundario: 00a486 (mas oscuro 
 **********************************************************************************************/

body {
  color: #006461;
  font-family: 'Roboto', sans-serif;
}

.h1 .small,
.h1 small,
.h2 .small,
.h2 small,
.h3 .small,
.h3 small,
.h4 .small,
.h4 small,
.h5 .small,
.h5 small,
.h6 .small,
.h6 small,
h1 .small,
h1 small,
h2 .small,
h2 small,
h3 .small,
h3 small,
h4 .small,
h4 small,
h5 .small,
h5 small,
h6 .small,
h6 small {
  font-weight: 400;
  line-height: 1;
  color: #006461;
}

.highlight,
highlight,
h3 .highlight,
h3 highlight,
h3 highlight small {
  color: #FF0000;	
}

a,
.dropdown-menu>li>a,
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:focus,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>li>a {
  color: #00a486;
}

a:hover,
a:focus,
.dropdown-menu>li>a:hover,
.navbar-default .navbar-nav>li>a:hover {
  color: #006461;
}

.panel-default>.panel-heading {
  color: #006461;
}

i.fa.right-icon {
  margin-left: 0.6rem;
}

/* Button */

/* Botonera en los show, por ejemplo de actividades de residuos*/
.btn-toolbar {
  margin: 10px 0px 10px -5px;
}

.btn span.fa {
  font-size: 17px;
}

.btn:focus,
.btn:hover {
  border-color: #003130;
}

.btn-primary.active,
.btn-primary:active,
.open>.dropdown-toggle.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.active.focus,
.btn-primary.active:focus,
.btn-primary.active:hover,
.btn-primary:active.focus,
.btn-primary:active:focus,
.btn-primary:active:hover,
.open>.dropdown-toggle.btn-primary.focus,
.open>.dropdown-toggle.btn-primary:focus,
.open>.dropdown-toggle.btn-primary:hover {
  background-color: #00514d;
  border-color: #003130;
}

.btn-primary.disabled.focus,
.btn-primary.disabled:focus,
.btn-primary.disabled:hover,
.btn-primary[disabled].focus,
.btn-primary[disabled]:focus,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary.focus,
fieldset[disabled] .btn-primary:focus,
fieldset[disabled] .btn-primary:hover {
  background-color: #89a49f;
  border-color: #536463;
}

.btn-primary {
  background-color: #00a486;
  border-color: #006461;
}

/* Para solucionar el problema del espacio tras los formularios inline */

.form-inline {
  padding: 10px;
}

.form-inline>* {
  margin: 15px 3px !important;
}

/*Columnas centradas al medio, para que queden alineadas con las celdas que tienen mucha info*/

.table>tbody>tr>td {
  vertical-align: middle;
}

body.angular {
  /*display:none;*/
}

#select-master-label {
  margin-left: 12px;
}

div.sg-alert {
  margin-top: 0px;
  margin-bottom: 20px;
}

.list-group-item .disabled {
  background-color: #EEE;
}

.maxwidth {
  width: 100%;
}

/* Engloba a un elemento para poder poner tooltips si el elemento está deshabilitado */

.disabled-tooltip-div {
  display: inline-block;
}

a.disabled {
  color: grey;
  cursor: not-allowed;
}

.required-field-mark {
  color: #FF0000;
}

.smallMarginBottom {
  margin-bottom: 2px;
}

.tab-content {
  padding: 10px 15px;
}

.table-icon {
  font-size: 1.2em;
}

.panel-group .panel,
.navbar-toggle,
.thumbnail,
.list-group-item,
.list-group-item:first-child,
.list-group-item:last-child,
.panel,
.panel-default>.panel-heading,
.panel-footer,
.input-group,
.input-group-addon,
.form-control,
.select2-container-multi .select2-choices .select2-search-choice,
.label,
.btn,
.nav-pills>li>a,
.btn-group-vertical>.btn:last-child:not(:first-child) {
  border-radius: 0px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.form-control:focus {
  border-color: #00a486;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 135, 100, .6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 135, 100, .6);
}

/*Tamaño checkbox*/
input[type=checkbox] {
  transform: scale(1.5);
  margin-top: 10px;
}

.select2-container--bootstrap .select2-selection,
.select2-container--bootstrap .select2-search--dropdown .select2-search__field,
.select2-dropdown {
  border-radius: 0px;
}

.select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--bootstrap.select2-container--open .select2-selection,
.select2-container--bootstrap .select2-dropdown {
  border-color: #00a486;
}

.select2-container--bootstrap .select2-selection:focus,
.select2-container--bootstrap .select2-search--dropdown .select2-search__field:focus,
.select2-dropdown:focus {
  border-color: #00a486;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 135, 100, .6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 135, 100, .6);
}

.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
  background-color: #00a486;
}

.alert {
  border-radius: 0px;
}

ul.home-ul {
  list-style-type: none;
  margin-left: 20px;
  padding: 0;
}

ul.home-ul li a:hover {
  text-decoration: none;
}

/**********************************************************************************************
  Select2
 **********************************************************************************************/

.form-control .select2-choice {
  height: 100%;
  border: 0;
  border-radius: 0px;
}

.form-control .select2-choice .select2-arrow {
  border-radius: 0px;
}

.form-control.select2-container {
  min-height: 34px !important;
  /*De esta forma tiene la misma altura que un input de bootstrap.*/
  height: auto !important;
  padding: 0px;
}

.select2 {
  width: 100% !important;
}

.select2-dropdown {
  background-color: white;
  border: 1px solid #aaa;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051
}

.select2-search--dropdown .select2-search__field {
  padding: 4px;
  width: 100%;
  box-sizing: border-box
}

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0)
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0 5px;
  width: 100%
}

.form-control.select2-container-active {
  border-color: #00a486;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 164, 134, .6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(0, 164, 134, .6);
}

.select2-chosen {
  padding-top: 3px;
  min-height: 34px;
}

.form-control.select2-container.select2-dropdown-open {
  border-radius: 0px;
}

.form-control .select2-container.select2-dropdown-open .select2-choices {
  border-radius: 0px;
}

.form-control.select2-container .select2-choices {
  border: 0 !important;
  border-radius: 0px;
}

/**********************************************************************************************
  Logos
 **********************************************************************************************/

.navbar-singer {
  padding: 4px;
}

.navbar-header {
    min-height: 110px;
    width: 100%;
}

.navbar-brand {
  height: 60px;
}

a.navbar-brand img.logo {
  margin-top: -30px;
  width: 180px;
}

.navbar-header {
  width: 100%;
}

.navbar-header .version {
  font-size: 10px;
}

a.navbar-brand img.logoCAIB {
  margin-top: -10px;
  width: 80px;
}

a.navbar-brand img.logo-eResiduos {
  display: inherit;
}

.title {
  font-size: x-large;
}

.navbar-text {
  margin-top: 6px;
  margin-bottom: 7px;
}

nav .navbar-nav>li>a {
  padding-top: 5px;
  padding-bottom: 5px;
}

/**********************************************************************************************
  Validaciones
  Temporal, lo suyo es usar las de bootstrap
 **********************************************************************************************/

.error {
  color: red;
}

/**********************************************************************************************
  Nuestros estilos
 **********************************************************************************************/

/* Show */

.cc-show dt {
  font-weight: inherit;
}

.cc-show dd {
  /*font-size: large;*/
  padding-left: 10px;
  /*background: #f5f5f5;*/
  font-weight: bold;
}

.cc-state {
  padding-bottom: 10px;
}

.cc-state-label {
  font-size: x-large;
}

/* Estilo de los elementos e Select2 en tabla */

.select2-result-label table,
.select2-search table {
  /*width: 100%;*/
}

.select2-result-label td,
.select2-search td,
.select2-drop td {
  /*background-color: #EEE;*/
  padding-left: 5px;
  padding-right: 5px;
  border: 1px solid #DDD;
  text-align: center;
}

li.select2-search-choice div {
  padding: 2px;
  line-height: normal;
}

/* para los dd que muestran emails muy largos */

dd#email-label {
  word-wrap: break-word;
}

/* Para las NTs no seleccionables para hacer dcs. */

.not_nt_owner {
  background-color: #f2dede;
}

.panel .panel {
  border: 0;
}

.ui-match {
  background: yellow;
}

/**********************************************************************************************
  UI Bootstrap
 **********************************************************************************************/

.nav,
.pagination,
.carousel,
.panel-title a {
  cursor: pointer;
}

.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
  background-color: #006461;
  border-color: #006461;
}

.pagination>li>a,
.pagination>li>span {
  color: #006461;
}

/**********************************************************************************************
  Footer
 **********************************************************************************************/

html,
body {
  height: 100%;
  /* The html and body elements cannot have any padding or margin. */
}

/* Wrapper for page content to push down footer */

#wrap {
  height: auto !important;
  margin: 0 auto 46px;
  padding-bottom: 50px;
}

#footer {
  width: 100%;
  float: left;
  color: white;
  font-size: smaller;
  height: 46px;
  bottom: 0px;
  position: fixed;
  z-index: 100;
}

#footer .footer-bottom {
  float: left;
  width: 100%;
  background-color: #004b99;
}

#footer .copyright-links span a {
  color: white;
}

#footer .copyright-links {
  float: left;
  margin: 8px;
}

#footer .logo-caib {
  padding: 9px 20px 7px 20px;
  float: left;
}

#footer .row {
  margin-right: 0px;
  margin-left: 0px;
}

#footer img.logoCAIB {
  height: 70px;
}

/**********************************************************************************************
  Todo lo que sigue es para mayúsculas en los inputs sin estropear los placeholders
 **********************************************************************************************/

input[type="text"] {
  text-transform: uppercase;
}

::-webkit-input-placeholder {
  /* WebKit browsers */
  text-transform: none;
}

:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  text-transform: none;
}

::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  text-transform: none;
}

:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  text-transform: none;
}

/* Alertas en los panel-heading con badges */

.alert-heading {
  display: inline-block;
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 10px;
}

/* Extender en BS3 para tener otra vez soporte de submenus de BS2*/

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px 6px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

.dropdown-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #cccccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
  border-left-color: #ffffff;
}

.dropdown-submenu.pull-left {
  float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}