@charset "utf-8";
/*************estilos globales**************/
*{ margin: 0; padding: 0; }

body {    
    margin:0 auto;
    font-family: arial;
    color:black;
	overflow: auto;
  }

html, body {height: 100%;margin: 0;padding: 0;}
#map {height:94%;}






/***************estilos login***************/     
.loading {
    margin: 10% auto 15px;
    position: relative;
    height: 40px;
    width: 40px;
         }

.login {
    width: 420px;
    margin: 0 auto;
    margin-top: 60px;
    background-color: #ffffff;
}

.login-logo {
    width: 220px;
    display: block;
    margin: 40px auto 24px auto;
}

.login form {
    width: 100%;
    margin: 0;
}		
		
.login-field {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.login-field label {
    flex: 0 0 100px;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
}
.login-field input {
    flex: 1;
    background: #ffffff;
    border: 2px solid #d5d5d5;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    padding: 8px 10px;
    outline: none;
    width: auto;
}
.login-field input:focus {
    border-color: #a3c13a;
    box-shadow: none;
}
.login-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px #ffffff inset;
    -webkit-text-fill-color: #333;
    transition: background-color 5000s;
}
.login-btn {
    background-color: #a3c13a;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    display: block;
    margin: 18px auto 0 auto;
    padding: 10px 28px;
    width: auto;
    font-size: 15px;
}

button {
    background-color: #ffffff;
    border: none;
    border-radius: 6px 6px 6px 6px;    
    color: #FFFFFF;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    padding: 10px 25px;    
    width: 108%;
    font-size: 17px;
       }

.button2 {
    background-color: white;
    border: 2px solid black;
    border-radius: 1px 1px 1px 1px;    
    color: black;
    cursor: pointer;
    display: inline-block;    
    padding: 0px 0px;    
    width: 14px;    
	height: 14px;
	font-size: 12px;
	margin-bottom:10px;	
       }
.button3 {
    background-color: white;
    border: 1px solid gray;
    border-radius: 6px 6px 6px 6px;    
    color: gray;
    cursor: pointer;
    display: inline-block;    
    padding: 5px 5px;    
    width: 70px;    
	height: 18px;
	font-size: 12px;
	margin-bottom:10px;
	margin-top:10px;
       }



/*************estilos del mapa y el menu****************/
.vehiculo {background-color:rgb(192, 0, 0);
           text-align: left;
           font-size: 20px;                      
	   -moz-box-shadow:0 0 8px 0 black;
    	   -webkit-box-shadow:0 0 8px 0 black;
    	   padding: 10px;
	   box-shadow:0 0 8px 0 black;
    	   position: relative;
	   z-index: 10;			
           }

.vehiculo a:link{text-decoration: none;}
.vehiculo>a{color:rgb(255, 255, 255);
	    padding:10px;
	   }

.oculto1 {
    display: block;
    clear: both;
    float: left;   
    width: 200px;
    max-width: 200px;
    height: 100%;    
    border: thin;    
    background-color: rgb(255,255,255);    
    transition: 0.3s; 
	overflow-y: scroll;
       }

.oculto1 a:link{width: 200px;text-decoration: none; padding-left: 0px}

.mapa {
	transition: margin-left .3s;	
}
input {
    background: none repeat scroll 0 0  rgb(255, 255, 255);
    border: 1px solid rgb(66, 159, 107);
    border-radius: 6px 6px 6px 6px;
    
    color: rgb(0, 0, 0);
    font-size: 17px;
    margin-bottom: 10px;
    outline: medium none;
    padding: 10px;    
    width: 100%;
}



#num>ul>li>a{ color:rgb(0,0,0); }

/***********@media Queries************/
@media (max-width: 720px){
.oculto1 {width:0px;
		 display:none
		}
                        }


@media (max-width: 420px){
          /*login */
.login { 
        width: 100%;
        margin: 0 auto;
      }
                        }
                       

                                            
@media (max-width: 320px){
            /*login*/
.login { 
        width: 100%;
        margin: 0 auto;
       }
button{ width: 111%;} 
                        }

/*********************MENU VEHICULOS******************/
/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: block;   
    background-color: rgb(255,255,255);	
    width: 180px;
}

/* Links inside the dropdown button */
.dropdown a {
    color: black;
    padding: 0px;
    text-decoration: none;
    display: block; 
	font-size: 14px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;     
    margin-left: 10px;    
    background-color: #f9f9f9;    
    border-radius: 10px;
    border: 1px solid grey;
    box-shadow: 6px 6px 12px 0px rgba(0,0,0,0.2);     
    z-index: 10;    
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 10px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Change color of dropdown on hover */
.dropdown a:hover {background-color: #f1f1f1}


.show {display:block;}


/***********************ESTILOS CABECERAS*******************************/
.cabeceraSendaCH {
	   background-color:rgb(192, 22, 103);           
           font-size: 16px;                      
	   -moz-box-shadow:0 0 8px 0 black;
    	   -webkit-
    	   padding: 8px;
	    
	   position: relative;   	  
	   z-index: 10;
        }
.cabeceraSendaCH a:link{text-decoration: none;}
.cabeceraSendaCH a{padding:8px; color:rgb(255, 255, 255);}   

.cabeceraSendaPT {
	   background-color:rgb(100, 165, 236);           
           font-size: 16px;                      
	   -moz-box-shadow:0 0 8px 0 black;
    	   -webkit-
    	   padding: 8px;
	    
	   position: relative;   	  
	   z-index: 10;
        }
.cabeceraSendaPT a:link{text-decoration: none;}
.cabeceraSendaPT a{padding:8px; color:rgb(255, 255, 255);}  

.cabeceraSendaSalud {
	   background-color: #ffffff;           
           font-size: 16px;                      
	   
    	   
    	   padding: 8px;
	    
	   position: relative;   	  
	   z-index: 10;
        }
.cabeceraSendaSalud a:link{text-decoration: none;}
.cabeceraSendaSalud a{padding:8px; color:#333;}  

.cabeceraSendaGF {
	   background-color:rgb(192, 0, 0);           
           font-size: 16px;                      
	   -moz-box-shadow:0 0 8px 0 black;
    	   -webkit-
    	   padding: 8px;
	    
	   position: relative;   	  
	   z-index: 10;
        }
.cabeceraSendaGF a:link{text-decoration: none;}
.cabeceraSendaGF a{padding:8px; color:rgb(255, 255, 255);}   

.cabeceraSendaPP {
	   background-color:rgb(0, 0, 192);           
           font-size: 16px;                      
	   -moz-box-shadow:0 0 8px 0 black;
    	   -webkit-
    	   padding: 8px;
	    
	   position: relative;   	  
	   z-index: 10;
        }
.cabeceraSendaPP a:link{text-decoration: none;}
.cabeceraSendaPP a{padding:8px; color:rgb(255, 255, 255);}   
 
.tablahistorico thead {
  display: table; /* to take the same width as tr */
  width: calc(100% - 17px); /* - 17px because of the scrollbar width */
}

.tablahistorico tbody {
  display: block; /* to enable vertical scrolling */
  max-height: calc(100vh - 68px); 
  overflow-y: scroll; /* keeps the scrollbar even if it doesn't need it; display purpose */
}

.tablahistorico table {   
    table-layout: fixed ;
	border-collapse: collapse;
    width: 100%;
      }
.tablahistorico th, td, tr {
    text-align: left;    
	border: 0px;
	padding: 2px;  
	margin: 0px;
	overflow: hidden;
	word-wrap: break-word;
	white-space: nowrap;
}
.tablahistorico img {    
    border: 0px;
	padding: 0px;  
	margin: 0px;
	height:32px;
}
.tablahistorico tr:nth-child(even){background-color: #f2f2f2}
.tablahistorico th {
    background-color:white;
    color: grey;    	
   }

/****************************estilos firma***********************************************/
.cuerpofirma  {
  display: block; /* to enable vertical scrolling */
  max-height: calc(100vh + 10px); 
  overflow-y: scroll; /* keeps the scrollbar even if it doesn't need it; display purpose */
}
/****************************************************************************************/

/****************************estilos incidencia***********************************************/
.cuerpoincidencia  {
  display: block; /* to enable vertical scrolling */
  max-height: calc(100vh + 10px); 
  overflow-y: scroll; /* keeps the scrollbar even if it doesn't need it; display purpose */
}
/****************************************************************************************/
     
@media (max-width: 50px) {
  .tablahistorico {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    overflow-x: scroll;
    -ms-overflow-style:-ms-autohiding-scrollbar;   
    -webkit-overflow-scrolling: touch;
  }
  .cuerpofirma  {
	width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    overflow-x: scroll;
    -ms-overflow-style:-ms-autohiding-scrollbar;   
    -webkit-overflow-scrolling: touch;
  }  
}

@media (max-width: 50px) {  
  .cuerpoincidencia  {
	width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    overflow-x: scroll;
    -ms-overflow-style:-ms-autohiding-scrollbar;   
    -webkit-overflow-scrolling: touch;
  }
} 
 
.tablaconductor tr td {
    white-space: nowrap;
}

.disable-text{ 
        -webkit-user-select:none; 
        -webkit-touch-callout:none; 
             -moz-user-select:none; 
             -ms-user-select:none; 
             user-select:none;    
  
       } 
.event-tooltip-content {
  padding: 5px;
}

.event-tooltip-content:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* O tu fondo deseado */
  z-index: 9999;
  display: flex; /* Para centrar el loader */
  justify-content: center;
  align-items: center;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dataTables_filter {
   float: left !important;   
   padding: 10px 0px 0px 0px;   
}

.dataTables_filter input {  
   background-image: url(img/lupa.png);
   background-repeat: no-repeat;
   background-color: #fff;
   background-position: 5px 10px !important;
   padding: 10px 10px 10px 32px;   
}




/* ============ MAIN.PAS WHITE THEME (nuevo estilo) ============ */

/* ============ MAIN.PAS WHITE THEME ============ */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #ffffff;
}
.main-logo {
    height: 44px;
    width: auto;
}

/* Mobile: driver card below logo when screen is narrow */
@media (max-width: 480px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .driver-card {
        width: 100%;
        justify-content: space-between;
        margin-top: 5px;
    }
    .driver-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .driver-name {
        flex: 1;
    }
}
/* Driver profile card on the right */
.driver-card {
    display: flex;
    align-items: center;
    background: #f0f4f8;
    border-radius: 24px;
    padding: 6px 14px 6px 8px;
    gap: 10px;
    flex-shrink: 0;
}
.driver-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a73e8;
    flex-shrink: 0;
}
.driver-photo.driver-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid #ffffff;
}
.driver-photo.driver-initials span {
    line-height: 1;
}
.driver-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.driver-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.logout-link {
    color: #1a73e8;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logout-link svg {
    display: block;
}
.logout-link:hover {
    color: #a3c13a;
}
.main-logo-lg {
    width: 200px;
    display: block;
    margin: 30px auto 20px auto;
}
.main-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0;
}
.main-header-sub {
    font-size: 12px;
    color: #777;
    margin: 0;
}
/* Rejilla de accesos */
.app-card {
    display: inline-block;
    width: 170px;
    margin: 18px 12px;
    vertical-align: top;
}
.app-card-link {
    display: block;
    text-align: center;
    color: #1c1c1c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.app-card-link img {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    display: block;
    margin: 0 auto 8px auto;
}
.app-card-link:hover {
    color: #a3c13a;
}
.app-card-link img:hover {
    filter: brightness(1.1);
}
.app-text {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}
/* Footer */
.main-footer {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #999;
    text-decoration: none;
    padding: 30px 0 24px 0;
    margin: 0;
}
/* Estilos acceso webs */
.franja-accesos { background: #f5f5f5; padding: 40px 20px; margin: 20px 0 0 0; width: 100%; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.app-grid {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
    max-width: 900px;
    margin: 0 auto;
}
.app-grid .app-card {
    display: inline-block;
    width: auto;
    margin: 0;
    vertical-align: top;
}
