/*custom font*/

@import url(https://fonts.googleapis.com/css?family=Montserrat);

/*basic reset*/
* {margin: 0; padding: 0;}

@media screen and (min-width:320px) and (max-width:2000px) {
	body{font-siza:0.8em;}
	sidebar{display: none;}

}
  .historial-wrap {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
  }

  .historial-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
    font-size: 12px;
  }

  .historial-table thead th {
    background: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 2;
    vertical-align: middle !important;
    border-bottom: 2px solid #ddd;
  }

  .historial-table th,
  .historial-table td {
    padding: 6px 8px !important;
    vertical-align: top !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .historial-table .col-fecha {
    width: 105px;
  }

  .historial-table .col-usuario {
    width: 170px;
  }

  .historial-table .col-accion {
    width: 110px;
  }

  .historial-table .col-estado {
    width: 85px;
    text-align: center;
  }

  .historial-table .col-detalle {
    width: auto;
  }

  .historial-table td:nth-child(1) {
    white-space: normal;
  }

  .historial-table td:nth-child(2),
  .historial-table td:nth-child(3),
  .historial-table td:nth-child(4),
  .historial-table td:nth-child(5) {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .historial-table td:nth-child(6) {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
/* solo la celda */
.estado-malo {
  background: #dc3545 !important; /* rojo */
  color: #fff !important;
  font-weight: 600;
}
.estado-regular {
  background: #ffc107 !important; /* amarillo */
  color: #111 !important;
  font-weight: 600;
}

.row-detenida {
  background: #ffe5e5 !important;
  font-weight: bold;
}
.row-detenida td:nth-child(3) { /* columna Detenida (3ra) */
  background: #ff4d4d !important;
  color: #fff !important;
  text-align: center;
}
.estado-en-curso {
  background-color: #28a745 !important; /* verde bootstrap */
  color: #fff !important;
  font-weight: bold;
  text-align: center;
}
/* pinta SOLO la celda Entrega */
.entrega-warning {
  background: #fff3a0 !important;
  font-weight: 700 !important;
  color: #000 !important;
}
.entrega-vencida {
  background: #b30000 !important;
  font-weight: 700 !important;
  color: #000 !important;
}


div#tooltip a span {display: none;}
            div#tooltip a:hover span {display: block;
               position: relative; width: 125px;
               padding: 5px; margin: 10px; z-index: 100;
               color: #FFFFFF; background-color:#313131; border: 1px solid #FFFFFF;
               font: 10px Verdana, sans-serif; text-align: center;}

            div#tooltip a {
              position:relative;
            }
            div#tooltip a span {
              display:none;
            }
            div#tooltip a:hover span {
              display:block;
              position:absolute; width: 100px;
              color: #FFFFFF; background-color:#313131; border: 1px #FFFFFF;
              font: 10px Verdana, sans-serif; text-align: center;
            }
            div#tooltip a:hover {text-indent:0;}

            

html {
	width: auto;
	height: 3000px;
	 
	
	/*Image only BG fallback*/
	
	/*background = gradient + image pattern combo*/
	
		
}
body {
	font-family: montserrat, arial, verdana;
	
	
}
body
			{
				margin:0;
				padding:0;
				background-color:#f1f1f1;
				height: 3000px;
				width: auto;
			}

			.box
			{
				
				position: absolute;
				top: 85px;	
				left: 85px;
				padding:20px;
				height: 2900;
				background-color:#fff;
				border:1px solid #ccc;
				border-radius:5px;
				display: none;
				float: left;
				width: auto;

				
			}
			.bold {
  font-weight:bold;


}
@media screen and (max-width: 320px) {
     table {
       display: block;
       overflow-x: auto;
     }
}

.selectmaquina{
	min-width: 60px;
	
}

h1 {
	 padding-left: 80px; color: white; height: 60px; background: #313443; font-family: "Arial Black", "Arial Bold", Gadget, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 26.4px;margin: 0px; padding-top: 15px; width: auto;}

.NameHighlights {
    position:relative;
}
.NameHighlights div {
    display: none;
}
.NameHighlightsHover {
    position:relative;
}
.NameHighlightsHover div {
    display:block;
    position:absolute;
    width: 15em;
    top:1.3em;
    *top:20px;
    left:70px;
    z-index:1000;
    background-color: #DDD;
    padding: 5px;
    border-radius: 4px;
}


/*form styles*/
#msform {
	width: 400px;
	margin: 50px auto;
	text-align: center;
	position: relative;
}
#msform fieldset {
	background: white;
	border: 0 none;
	border-radius: 3px;
	box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
	padding: 20px 30px;
	box-sizing: border-box;
	width: 80%;
	margin: 0 10%;
	
	/*stacking fieldsets above each other*/
	position: relative;
}
/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
	display: none;
}
/*inputs*/
#msform input, #msform textarea, #msform select {
	padding: 15px;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin-bottom: 30px;
	width: 100%;
	box-sizing: border-box;
	font-family: montserrat;
	color: #2C3E50;
	font-size: 13px;
}

#msform .permisos-container label input[type="checkbox"] {
	margin-top: 30px;
  margin-right: 20px;
  vertical-align: middle;
}
#msform .permisos-container label {
  display: flex;
  align-items: center;
  margin-bottom: -30px;
  width: 100px; /* Ajusta el ancho según tus necesidades */
}
#mySelect {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
  font-family: montserrat;
  color: #2C3E50;
  font-size: 13px;
}

#mySelect option[disabled]:first-child {
  display: none;
}

#mySelect option[hidden] {
  display: none;
}

#mySelect:invalid {
  color: #aaa;
}

#mySelect option[value=""][disabled]:first-child {
  display: block;
}

#mySelect:invalid option[value=""][disabled]:first-child {
  color: #aaa;
}
/*buttons*/
#msform button, #msform textarea {
	padding: 15px;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin-bottom: 10px;
	width: 100%;
	box-sizing: border-box;
	font-family: montserrat;
	color: #2C3E50;
	font-size: 13px;
  background: #3B9CFF;
}

#msform .action-button {
	width: 100px;
	background: #27AE60;
	font-weight: bold;
	color: white;
	border: 0 none;
	border-radius: 1px;
	cursor: pointer;
	padding: 10px 5px;
	margin: 10px 5px;
}
#msform .action-button:hover, #msform .action-button:focus {
	box-shadow: 0 0 0 2px white, 0 0 0 3px #27AE60;
}
body {
  margin: 0;
  padding: 0;
}

.chart {
  width: 80%;
  margin: 20px auto;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.bar {
  position: relative;
  height: 40px;
  background-color: #007bff;
  color: #fff;
  display: flex;
  align-items: center;
  transition: width 0.5s;
  font-family: "Arial", sans-serif;
}

.label {
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  padding: 10px;
  color: #fff;
  font-family: "Roboto", sans-serif;
}

.value {
  margin: auto;
}
h2 {
            font-size: 1.8em;
            margin-top: 20px;
        }
        .container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            margin-bottom: 40px;
        }
        .chart-container {
            width: 45%; /* 45% del ancho para gráficos en primera fila */
        }
        .chart-container-torta {
            width: 30%; /* 40% del ancho para gráfico de torta */
            margin: 0 auto;
        }
        canvas {
            width: 100%; /* Usar el 100% del contenedor */
            height: auto;
        }
