
#modeSelector {
    background-color: black; /* Match the green header background */
    color: white; /* White text for contrast */
    border: none; /* Remove default border */
    padding: 8px 12px; /* Add padding for better usability */
    border-radius: 4px; /* Rounded corners */
    font-size: 14px; /* Match the general text size */
    font-weight: bold; /* Bold text to match nav links */
    cursor: pointer; /* Show a pointer cursor on hover */
    margin: 10px 10px; /* Add some spacing above and below */
}

#modeSelector:hover {
    background-color: #444444; /* Slightly darker green on hover */
}


#controls {
    margin: 20px auto; /* Center controls */
    width: 1000px; /* Width of controls */
    padding: 20px;
    background: white; /* Background for controls */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    display: flex;
    flex-direction: column; /* Stack controls vertically */
    align-items: center; /* Center controls horizontally */
    margin-bottom: 20px; /* Space below controls */
}

.axis-controls {
    display: flex; /* Use flexbox for horizontal layout */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    margin-top: 15px; /* Space above the axis controls */
    margin-bottom: 15px; /* Space below the axis controls */
    width: 100%; /* Full width of the parent */
    flex-wrap: wrap; /* Wrap items if they exceed the width */
}

.axis-controls label {
    margin: 0 5px; /* Reduced spacing between labels and selects */
}

.axis-controls select {
    margin: 0 5px; /* Reduced spacing between selects */
}

.svgContainer {
    margin: 20px auto; /* Center SVG container */
    width: 1000px; /* Ensure same width as controls */
    height: 800px; /* Height of the SVG */
    background-color: #fff; /* Background for the SVG */
    border: 1px solid #ccc; /* Border for the SVG */
    border-radius: 8px; /* Rounded corners for SVG container */
    display: flex; /* Center the SVG content */
    justify-content: center; /* Center the SVG content horizontally */
    align-items: center; /* Center the SVG content vertically */
}


/* Tooltip styling */
#tooltip {
    position: absolute;
    text-align: center;
    padding: 8px;
    font: 12px sans-serif;
    background: lightsteelblue;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0; /* Initially hidden */
}

/* styles.css */

#gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    width: 250px;
}

#gauge {
    margin-top: 10px;
}

.gauge-grid {
    overflow-x: auto; /* Desplazamiento horizontal para todo el conjunto */
}

.gauge-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
}

.gauge-container {
    width: 101px;
    text-align: center;
}

.gauge-row-title {
    width: auto;  /* Adjust the width to your needs */
    text-align: center;  /* Align text to the right of the title div */
}

/* Basic table styling for all tables with class "tableMant" */
table.tableMant {
    width: 85%; /* Center the table and limit its width */
    margin: 20px auto; /* Automatically center the table horizontally */
    border-collapse: collapse; /* Remove space between borders */
    font-family: Arial, sans-serif; /* Set the font */
    table-layout: fixed; /* Make all columns the same width */
}

/* Table header styling */
table.tableMant th {
    background-color: #4CAF50; /* Green background for the header */
    color: white; /* White text */
    padding: 10px; /* Padding inside header cells */
    text-align: center !important; /* Center-align text in header */
}

/* Table cell styling */
table.tableMant td {
    padding: 8px; /* Padding inside data cells */
    text-align: center; /* Center-align text in data cells */
    border: 1px solid #ddd; /* Light gray border for each cell */
}

/* Hover effect for rows */
table.tableMant tbody tr:hover {
    background-color: #f5f5f5; /* Light gray background when hovering over rows */
}

/* Zebra striping: alternate row colors */
table.tableMant tbody tr:nth-child(even) {
    background-color: #fcfcfc; /* Light background color for even rows */
}

/* Basic table styling for all tables with class "tableMant" */
table.tableRUL {
    width: 40%; /* Center the table and limit its width */
    margin: 20px auto; /* Automatically center the table horizontally */
    border-collapse: collapse; /* Remove space between borders */
    font-family: Arial, sans-serif; /* Set the font */
    table-layout: fixed; /* Make all columns the same width */
}

/* Table header styling */
table.tableRUL th {
    background-color: #4CAF50; /* Green background for the header */
    color: white; /* White text */
    padding: 10px; /* Padding inside header cells */
    text-align: center !important; /* Center-align text in header */
}

/* Table cell styling */
table.tableRUL td {
    padding: 8px; /* Padding inside data cells */
    text-align: center; /* Center-align text in data cells */
    border: 1px solid #ddd; /* Light gray border for each cell */
}

/* Hover effect for rows */
table.tableRUL tbody tr:hover {
    background-color: #f5f5f5; /* Light gray background when hovering over rows */
}

/* Zebra striping: alternate row colors */
table.tableRUL tbody tr:nth-child(even) {
    background-color: #fcfcfc; /* Light background color for even rows */
}

/* Style the DataTables search box */
div.dataTables_filter {
    text-align: center; /* Center the search box */
    margin-bottom: 10px; /* Add some space below the search box */
}

div.dataTables_filter input {
    padding: 5px;
    font-size: 14px;
    width: 50%; /* Make the search input box wider */
    margin: 0 auto; /* Center the search box */
    display: block; /* Ensure the input box is a block-level element */
}

/* Style the DataTables pagination controls */
div.dataTables_paginate {
    text-align: center; /* Center the pagination controls */
    margin-top: 10px; /* Add some space at the top */
}

/* Style the DataTables info section */
div.dataTables_info {
    text-align: center; /* Center the info text */
    margin-top: 10px; /* Add some space at the top */
}

/* Elimina el ancho completo y ajusta el contenido */
.tableKPI {
    border-collapse: collapse; /* Elimina el espacio entre las celdas */
}

/* Asegúrate de que las celdas y el texto estén centrados */
.tableKPI th, .tableKPI td {
    text-align: center !important; /* Centra el texto en las celdas */
    padding: 10px; /* Añade un poco de espacio para que el contenido no quede pegado */
    border: 1px solid #ddd; /* Color de borde suave */
}

/* Ajusta el tamaño de la primera columna */
.tableKPI th:first-child, .tableKPI td:first-child {
    width: 150px; /* Establece un ancho fijo para la primera columna */
    white-space: nowrap; /* Evita que el texto se rompa */
}

/* Las otras columnas se ajustarán al contenido */
.tableKPI th:not(:first-child), .tableKPI td:not(:first-child) {
    width: auto; /* Deja que las otras columnas se ajusten automáticamente */
}

/* Fix the header at the top of the screen */
header#cabecera-graficas {
    /*background-color: #4CAF50; /* Green background */
    padding: 10px 0;
    
}

/* Adjust the navigation list for better spacing */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for evenly spaced items */
    justify-content: space-evenly; /* Evenly distribute the items horizontally */
    align-items: center; /* Center items vertically */
    height: 100%; /* Ensure the list fills the height of the header */
}

/* Style each navigation item */
nav ul li {
    display: inline; /* Keep items inline within the flex container */
    margin: 0; /* Remove extra margin around each item */
}

/* Style for navigation links */
nav ul li a {
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold text */
    padding: 10px 15px; /* Add padding for better clickability */
    display: inline-block; /* Ensure it behaves as a block element for padding */
}

#cabecera-graficas nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 7px 13px;
    display: inline-block;
    background: #1e963f;
    border-radius: 9px;
    border: 1px solid #1e963f;
}

#cabecera-graficas nav ul li a.grafico-activo {
    color: #1e963f;
    text-decoration: none;
    font-weight: bold;
    padding: 7px 13px;
    display: inline-block;
    background: white;
    border-radius: 9px;
    border: 1px solid #1e963f;
}

nav ul li a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Sidebar fix: make sidebar stick to the left */
aside.sidebar {
    background-color: #ced952; /* Green background */
    padding: 10px 20px;
    z-index: 500; /* Ensure it's under the header */
    overflow-y: auto; /* Enable scrolling if content overflows */
}

/* Sidebar navigation items */
.sidebar nav ul {
    display: block; /* Make the sidebar items appear in a column */
}

.sidebar nav ul li {
    margin-bottom: 15px; /* Space between items */
    display: block; /* Stack items vertically */
    padding-left: 15px;
}



/* Style for individual sidebar links */
.sidebar nav ul li a {
    color: black; /* White text */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold text */
    display: block; /* Make each link block-level for easy clicking */
    padding: 5px 15px;
    border: 1px solid transparent;
}

.sidebar nav ul li a:hover {
    background: #ffffff;
    border-radius: 9px;
    border: 1px solid gray;
}

/* Optional: Style for main content if needed */
.layout {
    display: flex;
    margin-top: 60px; /* Avoid overlapping with the fixed header */
}



/* Content styling */
.content {
    flex-grow: 1; /* Make content fill the remaining space */  
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

#listado_aerogeneradores li.activo a,
#listado_aerogeneradores li a.activo {
    background: #ffffff;
    border-radius: 9px;
    border: 1px solid gray;
}

#menu-graficas {
    display: none;
}

#texto-aeg-seleccionado {
    font-weight: bold;
}

.p-listado-aegs {
    display: none;
}

.main-graficas table {
    max-width: 700px;
}

.main-graficas h1 {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
} 

.main-graficas h3 {
    font-size: 16px !important;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
} 

.grafico-activo {
    color:gray;
}
#cabecera-graficas hr {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 10px;
}

.svgContainer,
.dataTable {
    -webkit-box-shadow: 10px 10px 5px 0px rgba(240,240,240,1);
    -moz-box-shadow: 10px 10px 5px 0px rgba(240,240,240,1);
    box-shadow: 10px 10px 5px 0px rgba(240,240,240,1);
    max-width: 95%;

}

.operacion-cargando {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    background: rgb(0 0 0 / 75%);
    overflow: hidden;
    align-content: center;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
}

.main-graficas-operacion.cargando,
.main-graficas-mantenimiento.cargando {
    overflow: hidden;
    max-height: 100vh;
}
.interior-flex {
    display: flex;
        flex-direction: column;
        align-items: center;
}
h3.cargando-graficos {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

@media (max-width: 980px) {
    .main-graficas table {
        max-width: 80%;
    }
    #menu-graficas {
        display: inline-block !important
    }

    #menu-graficas li {
        padding-left: 0px;
    }

    .sidebar.col-auto.col {
        width: 100%;
    }
    .main-graficas {
        width: 100%;
        overflow: visible;
    }
}

.shapes {
   width: 70.4px;
   height: 70.4px;
   color: #1e963f;
   background: conic-gradient(currentColor 0 270deg,#0000 0);
   border-radius: 50%;
   animation: shapes-c03ehyhg 4s infinite linear;
}

.shapes::before {
   content: "";
   display: block;
   height: 50%;
   width: 50%;
   border-top-left-radius: 176px;
   background: currentColor;
   animation: shapes-cskup3hg 0.5s infinite alternate;
}

@keyframes shapes-c03ehyhg {
   0%, 24.99% {
      transform: rotate(0deg);
   }

   25%, 49.99% {
      transform: rotate(90deg);
   }

   50%, 74.99% {
      transform: rotate(180deg);
   }

   75%, 100% {
      transform: rotate(270deg);
   }
}

@keyframes shapes-cskup3hg {
   100% {
      transform: translate(-17.6px,-17.6px);
   }
}

.btn-grafica-carga {
    margin-left: 20px;
}