/*@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700&display=swap');*/

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url(../font/Roboto-Thin.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url(../font/Roboto-Light.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url(../font/Roboto-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url(../font/Roboto-Medium.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url(../font/Roboto-Bold.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url(../font/Roboto-Bold.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100;
  src: url(../font/Roboto-ThinItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url(../font/Roboto-LightItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url(../font/Roboto-RegularItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: url(../font/Roboto-MediumItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: url(../font/Roboto-BoldItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 900;
  src: url(../font/Roboto-BoldItalic.ttf) format('truetype');
}


:root {
	--main-color: #273c75;
	--main-color-dark: #F79F1F; /* Más que "dark" es de contraste */
	--main-color-light: #40739e;
	--font: #f4f4f4;
}

* {
    font-family: 'Roboto', sans-serif;
}

/*GRID*/
.col-xs-5ths,
.col-sm-5ths,
.col-md-5ths,
.col-lg-5ths {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.col-xs-5ths {
    width: 20%;
    float: left;
}

@media (min-width: 768px) {
    .col-sm-5ths {
        width: 20%;
        float: left;
    }
}

@media (min-width: 992px) {
    .col-md-5ths {
        width: 20%;
        float: left;
    }
}

@media (min-width: 1200px) {
    .col-lg-5ths {
        width: 20%;
        float: left;
    }
}

/*BODY*/
body {
    margin-bottom: 40px;
	padding-top: 65px !important;
	background-color: #f3f4f6;
}

/* PIE */
.pie {
	position: fixed !important;
	left: 0px;
	bottom: 0px;
	padding: 5px;
	width: 100%;
	background-color: var(--main-color-light);
	color: var(--font);
	z-index: 100;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	min-height: 44px;
}

.pie * {
	font-size: 14px;
}

@media (max-width: 768px) {
	.pie * {
        font-size: 12px;
    }
}

.pie .label {
	display: flex;
	align-items: center;
}

.pie .bloque {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 5px;
    flex-grow: 1;
}

.pie .bloque.bloque_izq {
	justify-content: flex-start;
}

.pie .bloque.bloque_dcha {
	justify-content: flex-end;
}

.pie .bloque .info_pie > img {
	height: 32px;
}

.pie #time {
	padding: 6px 12px;
}

/*ANIMACIÓN DE CARGA*/
#loading-velo {
    background-color: rgba(128,128,128,0.35);
    position : fixed;
    z-index: 9999;
    left : 0;
    bottom : 0;
    right : 0;
    top : 0;
}

#loading-spinner {
    width: 120px;
    height: 120px;
    display: inline-block;
    overflow: hidden;
    background: none; 
    position: absolute;
    top: calc(50% - 60px);
    left: calc(50% - 60px);
}

#spinner-css {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0; /* see note above */
}

#spinner-css div {
    box-sizing: content-box;
}

#spinner-css div { 
    position: absolute; 
    width: 15px;
    border-radius: 15px;
}

#spinner-css div:nth-child(1) {
    left: 23.75px;
    background: #313e47;
    background: var(--main-color);
    animation: spinner-css-1 1s cubic-bezier(0,0.5,0.5,1) infinite;
    animation-delay: -0.2s
}

#spinner-css div:nth-child(2) {
    left: 55px;
    background: var(--main-color);
    animation: spinner-css-2 1s cubic-bezier(0,0.5,0.5,1) infinite;
    animation-delay: -0.1s
}

#spinner-css div:nth-child(3) {
    left: 86.25px;
    background: var(--main-color);
    animation: spinner-css-3 1s cubic-bezier(0,0.5,0.5,1) infinite;
    animation-delay: undefineds
}

@keyframes spinner-css-1 {
    0% { top: 14.499999999999993px; height: 96.00000000000001px }
    50% { top: 32.5px; height: 60px }
    100% { top: 32.5px; height: 60px }
}

@keyframes spinner-css-2 {
    0% { top: 18.999999999999993px; height: 87.00000000000001px }
    50% { top: 32.5px; height: 60px }
    100% { top: 32.5px; height: 60px }
}

@keyframes spinner-css-3 {
    0% { top: 23.499999999999996px; height: 78px }
    50% { top: 32.5px; height: 60px }
    100% { top: 32.5px; height: 60px }
}

.datetimepicker.datetime,
.datetimepicker.datetimess,
.datetimepicker.date,
.datetimepicker.time {
	text-align: center !important;
}

.datetimepicker.datetime {
	width: 152px !important;
}

.datetimepicker.datetimeSS {
	width: 160px !important;
}

.datetimepicker.date {
	width: 105px !important;
}

.datetimepicker.time {
	width: 50px !important;
}

/*BLOQUE SECUNDARIO*/
.secondary {
	color: var(--main-color-light);
	border: 1px solid var(--main-color-light);
	padding: 2px 10px;
	border-radius: 4px;
}

/*PARPADEANTE*/
.parpadeante {
	animation-name: parpadeo;
	animation-duration: 1s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	-webkit-animation-name: parpadeo;
	-webkit-animation-duration: 1s;
	-webkit-animation-timing-function: linear;
	-webkit-animation-iteration-count: infinite;
}

@-moz-keyframes parpadeo{  
  0% { opacity: 1.0; }
  50% { opacity: 0.0; }
  100% { opacity: 1.0; }
}

@-webkit-keyframes parpadeo {  
  0% { opacity: 1.0; }
  50% { opacity: 0.0; }
   100% { opacity: 1.0; }
}

@keyframes parpadeo {  
  0% { opacity: 1.0; }
   50% { opacity: 0.0; }
  100% { opacity: 1.0; }
}

/*FORMULARIOS DE CONFIGURACIÓN EN VENTANAS MODALES*/
.modal.fade .panel.form>.panel-body {
    font-size:10px;
}

.modal.fade .panel.form input[type='text'] {
    width: 100%;
}

.modal-header {
	padding: 10px 15px;
	background-color: #313e47;
	background-color: var(--main-color);
	border-radius: 4px 4px 0 0;
	color: #ebebeb;
	letter-spacing: 0.2px;
}

.modal-footer {
	padding: 10px 15px;
}

.modal-footer button {
    padding: 3px 9px;
}

.modal-header .close {
	margin-top: 13px;
	font-size: 28px;
	line-height: 0;
}

.modal-dialog {
    margin-top: 60px;
}

.modal-content {
    background-color: rgb(241, 245, 248);
}


/*FORMULARIOS DE CONFIGURACIÓN*/
.panel.panel-form {
	border: 1px solid var(--main-color-light);
}

.panel.panel-form > .panel-heading {
	color: var(--font);
	border-color: var(--main-color);
	border-bottom: 1px solid;
	text-align: center;
	background-color: var(--main-color-light);
}

.panel.panel-form .panel-body {
    padding: 5px;
}

.panel.panel-form table {
    margin-bottom: 0px;
    font-size: 14px;
}

.panel.panel-form table tr {
	height: 32px;
}

.panel.panel-form table tr:not(:last-child) {
	border-bottom: 1px dotted var(--main-color-light);
}

.panel.panel-form table td, 
.panel.panel-form table th {
    vertical-align: middle;
    border-top: none;
    padding: 2px;
}

/*.panel.panel-form table td:nth-child(2) {
/ * 	float: right; * /
}*/

.panel.panel-form input[type='text'], .panel.panel-form input[type='password'], .panel.panel-form input[type='number']{
    text-align:right;	
}

.panel.panel-form [type="number"] {
	direction: rtl;
	padding-left: 2px;
}

.panel.panel-form table .suboption {
	color: var(--main-color-light);
}

/*FORMULARIOS DE CONFIGURACIÓN EN VENTANAS MODALES*/
.modal.fade .panel.panel-form>.panel-body {
    font-size:10px;
}

.modal.fade .panel.panel-form input[type='text'] {
    width: 100%;
}

/* sm Dispositivos pequeños (tablets, anchura mayor o igual a 768px) */
@media (min-width: 768px) {
    .modal-md {
        min-width: 626px;
    }
    .modal-lg {
        min-width: 758px;
    } 
}

/* md Dispositivos medianos (ordenadores, anchura mayor o igual a 992px) */
@media (min-width: 992px) {
    .modal-md {
        min-width: 750px;
    }
    .modal-lg {
        min-width: 982px;
    }
}

/* lg Dispositivos grandes (ordenadores, anchura mayor o igual a 1200px) */
@media (min-width: 1200px) {
    .modal-md {
        min-width: 800px;
    }
    .modal-lg {
        min-width: 1190px;
    }
}

/* ***** */

.modal-xs, .modal-sm, .modal-md, .modal-lg {
    max-width: 100%;
}



/*CAMPOS BOOLEANOS*/
.bool {
	cursor: pointer;
	text-align: center;
	border: 1px solid grey;
	display: inline-block;
	border-radius: 4px;
	margin: 0px 1px;
	-webkit-transition: all 300ms linear;
	-moz-transition: all 300ms linear;
	-o-transition: all 300ms linear;
	transition: all 300ms linear;
	font-size: 14px;
}

.bool-activado {
	font-weight: bold;
    background-color: var(--main-color-dark);
	color: var(--font);	
}

/*
div.checkbox {
	display: flex;
	flex-direction: row;
	align-items: center;
}
*/


/*
div.checkbox > label > input[type="checkbox"] {
	margin-top: 2px;
}
*/

/*
.bool:hover {
	border: 1px solid var(--main);
}
*/

.disabled {
	pointer-events: none;
	opacity: 0.5;
	cursor: not-allowed;
}

.blurred {
	opacity: 0.5;
	cursor: not-allowed;
}

[class*="blurred_by"] {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

.desautorizado {
	opacity: 0.5;
	cursor: not-allowed;
}

.locked {
	pointer-events: none;
	cursor: not-allowed;
}

/* Clases para simular las imagenes on, off, man... */
.lbl {
    background-color: gray;
    display: inline-block;
    width: 38px;
    height: 16px;
    overflow: hidden;
    margin: 0;
    color: white;
    font-size: 11px !important;
    font-weight: bold;
    line-height: 17px;
    border-radius: 2px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    letter-spacing: 1px;
}

.lbl.on   { background-color: rgb(130, 200, 146); }
.lbl.ok   { background-color: rgb(130, 200, 146); }
.lbl.off  { background-color: rgb(111, 111, 111); }
.lbl.h1   { background-color: rgb(51, 122, 183);  }
.lbl.h2   { background-color: rgb(51, 122, 183);  }
.lbl.h3   { background-color: rgb(51, 122, 183);  }
.lbl.h4   { background-color: rgb(51, 122, 183);  }
.lbl.h5   { background-color: rgb(51, 122, 183);  }
.lbl.auto { background-color: rgb(51, 122, 183);  }
.lbl.man  { background-color: rgb(254, 22, 38);   }

.lbl:after,
.lbl.error:after { content: '?';    }
.lbl.on:after    { content: 'ON';   }
.lbl.ok:after    { content: 'OK';   }
.lbl.off:after   { content: 'OFF';  }
.lbl.h1:after    { content: 'H1';   }
.lbl.h2:after    { content: 'H2';   }
.lbl.h3:after    { content: 'H3';   }
.lbl.h4:after    { content: 'H4';   }
.lbl.h5:after    { content: 'H5';   }
.lbl.auto:after  { content: 'AUTO'; }
.lbl.man:after   { content: 'MAN';  }

.lbl.alarma {
    background-image: url(../img/alarm.gif);
    width: 38px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    overflow: hidden;
    margin: 0;
    color: white;
    font-size: 11px !important;
    font-weight: bold;
    line-height: 16px;
    border-radius: 2px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid #f6cccc;
    background-color: #ffecec;
}

.lbl.alarma:after {
    content: none;
}

.lbl-mini {
	height: 15px;
	font-size: 9px !important;
	line-height: 15px;
}

.estado {
	width: 12px;
	height: 12px;
	background-color: #e0e0e0;
	display: inline-block;
	border-radius: 50%;
	border: 1px solid #6f6f6f;
}

.estado.on {
    background-color: #48ed8e;
}

.estado.alarma {
   animation-duration: 400ms;
   animation-name: parpadeoAlarma;
   animation-iteration-count: infinite;
   animation-direction: alternate;
}

@keyframes parpadeoAlarma {
   from {
      background-color: #e0e0e0;
   }
   to {
      background-color: #e74c3c;
   }
}

.toggle {
    cursor: pointer;
}

/* Título página */
.row.titulo-pagina {
	margin-bottom: 20px;
}

.row.titulo-pagina h3 {
	text-transform: uppercase;
	font-size: 28px;
	text-align: center;
	display: block;
	width: 100%;
	color: var(--main-color);
	top: 45px;
	margin: 0px 0px 10px 0px;
}

.row.titulo-pagina h3::after, .row.titulo-pagina h3::before {
	content: " ";
	display: inline-block;
	width: 50px;
	height: 8px;
	border-bottom: 8px dotted #313e47;
	border-bottom: 8px dotted var(--main-color);
}

.row.titulo-pagina h3:before {	
	margin: 0 20px 5px 0;
}

.row.titulo-pagina h3:after {
    margin: 0 0 5px 20px;
}

.row.titulo-pagina .navegacion {
	background-color: var(--main-color);
	border: 1px solid var(--main-color);
	font-size: 16px;
	color: var(--font);
	padding: 3px;
	min-width: 100px;
	text-align: center;
}

.row.titulo-pagina .navegacion:hover {
	background-color: var(--main-color-dark);
	border: 1px solid var(--main-color-dark);
	text-decoration: none;
}

.row.titulo-pagina .navegacion.navegacion-left {
	float: left;
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
}

.row.titulo-pagina .navegacion.navegacion-right {
	float: right;
	border-top-right-radius: 15px;
	border-bottom-right-radius: 15px;
}

@media (max-width: 768px) {
    .row.titulo-pagina h3 {
        font-size: 18px;
        margin: 15px 0 10px 0;
    }
    .row.titulo-pagina h3::after, .row.titulo-pagina h3::before {
        border-bottom-width: 4px;
        width: 24px;
    }
    .row.titulo-pagina h3:before {	
        margin: 0 10px 4px 0;
    }
    .row.titulo-pagina h3:after {
        margin: 0 0 4px 10px;
    }
}

/* ***** MENÃš ***** */

#logo {
	height: 50px;
	color: white;
	font-size: 28px;
	font-style: italic;
	margin: 0px 15px;
}

#menu #nombreProyecto {
    float: right;
    display: block;
    height: 50px;
    line-height: 50px;
    color: #f1f1f1;
    font-size: 16px;
    padding-right: 20px;
    
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.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;
    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: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.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;
}

.dropdown-menu .divider {
    margin: 3px 0;
}

/* Navbar normal */

.navbar-brand {
	padding: 0px;
}

#menu > .navbar > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.navbar-header {
    padding-left: 15px;
    text-align: center; 
    background-color: var(--main-color);
}

.navbar {
    background-color: #313e47;
    background-color: var(--main-color);
}

.navbar .nav.navbar-nav li a:hover {
    background-color: rgb(168, 35, 13);
}

.navbar .nav.navbar-nav li a:hover {
    background-color: #e7e7e7d9;
    color: #002e49;
}

.navbar .nav.navbar-nav li.active a,
.navbar .nav.navbar-nav li.active a:hover {
    color: #002e49;
}

.navbar .nav.navbar-nav li a {
    /*color: #313e47;*/
    color: #effbff;
}

.navbar .nav.navbar-nav ul.dropdown-menu li a {
    color: #313e47;
    color: var(--main-color);
}

.navbar-default .navbar-nav > .open > a {
    color: #1d3f5c !important;
}

.navbar-default .navbar-nav > .active > a, 
.navbar-default .navbar-nav > .active > a:focus, 
.navbar-default .navbar-nav > .active > a:hover {
    background-color: #e7e7e7b8;
}

/* Navbar movil */
.navbar-default .navbar-toggle:hover, 
.navbar-default .navbar-toggle:active,
.navbar-default .navbar-toggle:focus{
    background-color: rgba(255,255,255,0.25);
}

.navbar-default .navbar-toggle {
    border-color: white; /*white*/
    /*border-color: var(--main-color);*/
}

.navbar-default .navbar-toggle span.icon-bar {
    background-color: white; /*white*/
    /*background-color: var(--main-color);*/
}

.navbar-default li.dropdown.open li:hover,
.navbar-default li.dropdown.open li:active,
.navbar-default li.dropdown.open li:focus{
    background-color: rgba(255, 255, 255, 0.3);
}

@media only screen and (max-width: 768px) {
    .navbar-default li.dropdown.open ul.dropdown-menu li a {
        color: #F8E5E9;
    }
    .navbar-header {
        padding-left: 0;
    }
    #menu > .navbar > .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/*
    Esto hace que el menu se ponga en version movil cuando en la pantalla 
    ya no caben todos los enlaces (tiene muchos elementos y se pone a 2 lineas)
*/
@media (max-width: 768px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
    .navbar-default li.dropdown.open ul.dropdown-menu li a {
        color: #F8E5E9;
    }
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #dbdbdb;
    }
    .navbar-default .navbar-toggle .icon-bar {
        background-color: #e0e0e0;
    }
    .navbar-default .navbar-toggle:focus,
    .navbar-default .navbar-toggle:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    .dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
        background-color: rgba(255,255,255,0.25);
        color: white;
    }
    
    .navbar-default .navbar-nav > .open > a, 
    .navbar-default .navbar-nav > .open > a:focus, 
    .navbar-default .navbar-nav > .open > a:hover {
        background-color: rgba(255,255,255,0.5);
    }
}

@media (min-width: 768px) {
	.dropdown-menu {
		/* 2022-10-25: se añade estilos para impedir que el alto del submenu rebase el alto de la pantalla. */
		max-height: calc(100vh - 100px);
		overflow-y: auto;
		scrollbar-width: thin;
	}
}

/* Boton de guardado (acorde a color pág.) */
.btn-personalizado, .btn-primary {
    color: #f4f4f4;
    background-color: var(--main-color);
	border-color: var(--main-color);
}

.btn-personalizado:active, .btn-primary:active,
.btn-personalizado:hover, .btn-primary:hover,
.btn-personalizado:focus, .btn-primary:focus {
    color: #f4f4f4;
    background-color: #283640;
    background-color: var(--main-color-dark) !important;
    border-color: #283640;
    border-color: var(--main-color-dark) !important;
}

.btn-personalizado .glyphicon {
	border-right: 1px solid #f4f4f445; /*#0000001c*/
	padding-right: 10px;
	margin-right: 5px;
	vertical-align: text-top;
}

/* Etiqueta (acorde a color pág.) */
.label-personalizado {
	background-color: var(--main-color);
	color: var(--font);
}

/* Panel (acorde a color pág.) */
.panel-personalizado {
    border-color: var(--main-color);
}

.panel-personalizado > .panel-heading {
	color: var(--font);
    background-color: var(--main-color);
    border-color: var(--main-color);
}


/* ***** ***** ***** ***** ***** */

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}

/* ***** ***** ***** ***** ***** */

/*FILTRO DE BUSQUEDA*/
.filtro {
	width: calc(100% - 30px);
	background-color: rgba(35,97,146,0.07);
	padding: 15px 20px;
	border-radius: 15px;
	box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.40);
	overflow: auto;
	margin: 0px auto 15px auto;
}





/* Card (cajas con sombra) */

.card {
	background-color: rgb(255, 255, 255);
	width: 100%;
	height: 100%;
	border-radius: 5px;
	position: relative;
	box-shadow: 3px 3px 7px 0px rgba(0,0,0,0.2);
	margin-bottom: 16px;
	padding: 16px;
}

.card .texto {
	font-size: 22px;
	font-weight: 300;
	letter-spacing: 0px;
}

.card .texto-valor {
	font-weight: 500;
}

.card .texto-um {
	font-weight: 400;
}


.card .texto .glyphicon {
	/*padding: 10px;*/
	padding: 0.45em;
	position: relative;
	top: 0.09em;
}


@media (max-width: 768px) {
	.card .texto {
		font-size: 16px;
	}
}



/* ECharts custom dataview */

/* Contenedor padre */
.grafico-con-dataview > div[style*="background-color: rgba(255, 255, 255, 0.75)"] {
	backdrop-filter: blur(3px);
	
}

/* Título */
.grafico-con-dataview > div[style*="background-color: rgba(255, 255, 255, 0.75)"] h4 {
	margin: 15px 20px !important;
	color: #333 !important;
}

/* Tabla (generada desde el JS) */
.grafico-con-dataview > div[style*="background-color: rgba(255, 255, 255, 0.75)"] h4 + div {
	scrollbar-width: thin;
}

.grafico-con-dataview > div[style*="background-color: rgba(255, 255, 255, 0.75)"] table {
	user-select: text;
	table-layout: fixed;
}

.grafico-con-dataview > div[style*="background-color: rgba(255, 255, 255, 0.75)"] table th {
	width: 1%; /* https://stackoverflow.com/a/28463506 */
	text-align: center;
}

/* Botón cerrar */
.grafico-con-dataview > div[style*="background-color: rgba(255, 255, 255, 0.75)"] > div:last-child {
	top: 19px !important;
	right: 20px !important;
	left: unset !important;
	bottom: unset !important;
	/*
		El botón de cierre está reposicionado sobre el botón de apertura, en el móvil al hacer una pulsación 
		parece detectar múltiples pulsaciones y el dataview se abre y cierra al instante. Se inhibe el evento 
		de pulsación los primeros segundos mediante una animación.
	*/
	animation-name: pointer-events-close;
	animation-duration: 2s;
}

.grafico-con-dataview > div[style*="background-color: rgba(255, 255, 255, 0.75)"] > div:last-child > div {
	margin: 0 !important;
	float: none !important;
	padding: 2px 32px !important;
}

@keyframes pointer-events-close {
  from {
    pointer-events: none;
  }
  to {
  	pointer-events: auto;
  }
}

/* Botón de alarmas en menú superior */

#menu #btn-alarmas-menu {
	/*width: 50px;
	height: 50px;
	padding: 8px;*/
	width: 34px;
	height: 34px;
	margin: 8px;
	border-radius: 50%;
	box-shadow: 4px 4px 4px 0px rgba(0,0,0,0.75);
	cursor: pointer;
	position: absolute;
	top: 0;
	right: 0;
	display: none;
}

#menu.con-alarmas #btn-alarmas-menu {
	display: block;
	animation-name: highlight-btn-alarms;
	animation-duration: 1s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@keyframes highlight-btn-alarms {
    0% { opacity: 1.0; }
   50% { opacity: 0.5; }
  100% { opacity: 1.0; }
}

#menu.con-alarmas #nombreProyecto {
	padding-right: 60px;
}

@media (max-width: 768px) {
    #menu #btn-alarmas-menu {
    	right: calc(50% - 25px); /* Centrado en el menú en vista móvil */
    }
}

/* Modal de alarmas */


#modal-alarmas .modal-dialog {
	width: 550px;
	max-width: calc(100% - 20px);
}

#modal-alarmas .modal-body {
	max-height: 278px;
	overflow: auto;
	margin: 10px;
	scrollbar-width: thin;
	list-style: none;
	padding: 0 10px;
}


.contenedor-alarma {
	background-color: #ebebff;
	margin: 10px 0;
	padding: 6px 12px 6px 48px;
	border-radius: 8px;
	background-image: url("../img/alarma2.gif");
	background-repeat: no-repeat;
	background-position: 15px center;
	display: flex;
	background-size: 17px;
}

.contenedor-alarma.oculta {
	display: none;
}

.contenedor-alarma .nombre-alarma {
	border-left: 1px solid rgba(0,0,0,0.1);
	padding: 0 10px;
	margin-right: auto;
	font-size: 13px;
}

.contenedor-alarma .valor-alarma {
	text-align: right;
	background-color: #dedeff;
	border-radius: 21px;
	padding: 1px 12px;
	margin-top: auto;
	margin-bottom: auto;
}

