* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Lucida;
  padding: 10px;
  max-width: 1200px;
  align-items: center;
  font-size: 13px;
  background-color: #f5f0c4;
}

h3 {
    font-size: 1.2em;
    padding-bottom: 3px;
    color: #0d327f;
}

main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 20px;
}

div#graf{ 
    /*background: #a5a67724;
    margin-left: 5px;
    max-width: 800px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;*/
    padding: 10px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    width: 100%;
}

.datos, .cuerpo, .cuerpoPerfil {
  border: 1px solid #ddd;
  align-items: center;
  padding: 10px;
  background-color: #e3e5b5;
}

.cuerpoPerfil {
    width: 600px;}

.modificar {
    padding: 10px 20px;
}
.datos {
    width: 350px;
}

.acciones {
 /*   display: flex;
    justify-content: center; */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

button[class="btn modificar"], button[class="btn borrar"] {
    background-color: #46c257; /* Color de fondo */
    color: white; /* Color del texto */
    padding: 10px; /* Espaciado interno */
    border: none; /* Sin borde */
    border-radius: 4px; /* Bordes redondeados */
    cursor: pointer; /* Cursor de puntero al pasar por encima */
}

/* Modal base */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 15px;
  background-color: rgba(90,90,60,0.4);
}

/* Contenido del modal */
.modal-content, .modal-contenido {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 600px;
  position: relative;
}

.modal-contenido {
    width: 800px;
    height: 90%;
}

.iframe {
    width: 770px;
    height: 100%;
}

/* Botón de cierre */
.cerrar {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

table#tramos {
    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
    font-size: 12px;
    text-align: left;
    border-collapse: collapse; 
    background: #b9c9fe;
    border-top: 4px solid #aabcfe;
    color: #039; 
}
#tramos th {
    background: #b9c9fe;
    text-align: center;
}
#tramos tr:nth-child(odd) {   background-color: #add3ee;}
#tramos tr:nth-child(even) {   background-color: #dce8f1;}
#tramos tr:hover td { background: #d0dafd;
    color: #339; }
#tramos td, th {
    padding: 5px;
}

button[id="miBoton+"],
button[id="miBoton-"] {
    background-color: #899440; /* Color de fondo */
    color: white; /* Color del texto */
    padding: 10px 20px; /* Espaciado interno */
    border: none; /* Sin borde */
    border-radius: 4px; /* Bordes redondeados */
    cursor: pointer; /* Cursor de puntero al pasar por encima */
}

button[id="miBoton-"],
button[id="miBoton+"] {
    padding: 5px 5px; /* Espaciado interno */
    background-color: #42728e; /* Color de fondo */
    height: 25px;
    width: 25px;
}

div#npag, div#orden {
    display: none;
}
div#navegacion {
    display: flex;
    padding: 5px;
    justify-content: center;
    align-items:center;
    width: 100%;
}
#textoReg,
#opcionesTramos {
    width: 300px;
    padding-left: 10px;
}
div#tmapa{ 
    margin-top: 20px;
    margin-bottom: 30px;
    width: 500px;
    height: 500px;
}
    #tmapa > div > div {
        padding-bottom: 100% !important;
        height: 100% !important;
    }

.mapa_n{ 
    width: 450px;
    height: 400px;
}
    .mapa_n > div > div {
        padding-bottom: 85% !important;
        height: 100% !important;
    }

.mapa{ 
    width: 650px;
    height: 600px;
}
    .mapa > div > div {
        padding-bottom: 90% !important;
        height: 100% !important;
    }

.c {
    width: 100%;
    margin-left: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

#c1 {
    display: flex;
    flex-wrap: wrap;
}

.contenido {
    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
    font-size: 11px;
    background: rgb(255,255,255);
    padding-left : 15px;
    padding-top : 10px;
    height-min: 75px;
    text-align: left;
    margin-left: 0px;
}

.cmes {
    cursor: pointer;
    color: rgb(20,20,20);
    background-color : #e3f0e1;
    box-shadow:0 8px 17px 2px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.2);
    width: 180px;
    height-min: 100px;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.dia, .mes, .anyo {
    background: rgb(197, 219, 194);
    color: rgb(20,20,20);
    padding-right: 8px;
    text-align: right;
}

.mes, .anyo {
    text-align: center;
}
div#mes .contenido{
    height: 75px;
}

.cmess {
    width: 200px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.contenido {
    width: 100%;
}
.contenidoAct {
    position: relative;
    background: rgb(255,255,255);
    padding: 0px;
    height: 100px;
}

.contenidoAct .actividades {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 0.8em;
}

.contenidoAct .km {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

table#tablaUltimos {
    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
    font-size: 12px;
    margin-top: 0px;
    text-align: left;
    border-collapse: collapse; 
    width: 100%;
    text-align: left;
}

.ruta {
  display: flex;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #daf7d2;
  margin: 5px;
  border: 1px solid #bdbdbd;
}

.ruta p {
    margin:0px;
}

.ruta:hover {
    background: #c5e2bd;
}
.izquierda {
    width: 200px;
    align-self: flex-start;
    padding: inherit;
}

.centro {
    flex: 1;
    align-self: flex-start;
    padding: inherit;
}

.derecha {
    width: 150px;
    align-self: flex-start;
    padding: inherit;
}
