490 lines
9.1 KiB
CSS
490 lines
9.1 KiB
CSS
|
|
/* Estilos para el contenedor principal y controles */
|
||
|
|
.controlsContainer {
|
||
|
|
display: flex;
|
||
|
|
gap: 20px;
|
||
|
|
margin-bottom: 10px;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.searchInput, .sectorSelect {
|
||
|
|
padding: 8px 12px;
|
||
|
|
border-radius: 6px;
|
||
|
|
border: 1px solid #ced4da;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Estilos de la tabla */
|
||
|
|
.table {
|
||
|
|
border-collapse: collapse;
|
||
|
|
font-family: system-ui, -apple-system, sans-serif;
|
||
|
|
font-size: 0.875rem;
|
||
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
||
|
|
width: 100%;
|
||
|
|
min-width: 1200px; /* Ancho mínimo para forzar el scroll horizontal si es necesario */
|
||
|
|
}
|
||
|
|
|
||
|
|
.th {
|
||
|
|
color: #212529;
|
||
|
|
font-weight: 600;
|
||
|
|
padding: 0.75rem 1rem;
|
||
|
|
border-bottom: 2px solid #dee2e6;
|
||
|
|
text-align: left;
|
||
|
|
cursor: pointer;
|
||
|
|
user-select: none;
|
||
|
|
white-space: nowrap;
|
||
|
|
position: sticky;
|
||
|
|
top: 0; /* Mantiene la posición sticky en la parte superior del viewport */
|
||
|
|
z-index: 2;
|
||
|
|
background-color: #f8f9fa; /* Es crucial tener un fondo sólido */
|
||
|
|
}
|
||
|
|
|
||
|
|
.sortIndicator {
|
||
|
|
margin-left: 0.5rem;
|
||
|
|
font-size: 1.2em;
|
||
|
|
display: inline-block;
|
||
|
|
transform: translateY(-1px);
|
||
|
|
color: #007bff;
|
||
|
|
min-width: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tooltip{
|
||
|
|
z-index: 9999;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tr {
|
||
|
|
transition: background-color 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tr:hover {
|
||
|
|
background-color: #f1f3f5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.td {
|
||
|
|
padding: 0.75rem 1rem;
|
||
|
|
border-bottom: 1px solid #e9ecef;
|
||
|
|
color: #495057;
|
||
|
|
background-color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Estilos de botones dentro de la tabla */
|
||
|
|
.hostnameButton {
|
||
|
|
background: none;
|
||
|
|
border: none;
|
||
|
|
color: #007bff;
|
||
|
|
cursor: pointer;
|
||
|
|
text-decoration: underline;
|
||
|
|
padding: 0;
|
||
|
|
font-size: inherit;
|
||
|
|
font-family: inherit;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tableButton {
|
||
|
|
padding: 0.375rem 0.75rem;
|
||
|
|
border-radius: 4px;
|
||
|
|
border: 1px solid #dee2e6;
|
||
|
|
background-color: transparent;
|
||
|
|
color: #212529;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
}
|
||
|
|
.tableButton:hover {
|
||
|
|
background-color: #e9ecef;
|
||
|
|
border-color: #adb5bd;
|
||
|
|
}
|
||
|
|
|
||
|
|
.deleteUserButton {
|
||
|
|
background: none;
|
||
|
|
border: none;
|
||
|
|
cursor: pointer;
|
||
|
|
color: #dc3545;
|
||
|
|
font-size: 1rem;
|
||
|
|
padding: 0 5px;
|
||
|
|
opacity: 0.7;
|
||
|
|
transition: opacity 0.3s ease, color 0.3s ease;
|
||
|
|
line-height: 1;
|
||
|
|
}
|
||
|
|
.deleteUserButton:hover {
|
||
|
|
opacity: 1;
|
||
|
|
color: #a4202e;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Estilo para el botón de scroll-to-top */
|
||
|
|
.scrollToTop {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 60px;
|
||
|
|
right: 20px;
|
||
|
|
width: 40px;
|
||
|
|
height: 40px;
|
||
|
|
border-radius: 50%;
|
||
|
|
background-color: #007bff;
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
cursor: pointer;
|
||
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
||
|
|
font-size: 20px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
transition: opacity 0.3s, transform 0.3s;
|
||
|
|
z-index: 1002;
|
||
|
|
}
|
||
|
|
.scrollToTop:hover {
|
||
|
|
transform: translateY(-3px);
|
||
|
|
background-color: #0056b3;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Estilos genéricos para modales */
|
||
|
|
.modalOverlay {
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
background-color: rgba(0, 0, 0, 0.4);
|
||
|
|
z-index: 999;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal {
|
||
|
|
background-color: #ffffff;
|
||
|
|
border-radius: 12px;
|
||
|
|
padding: 2rem;
|
||
|
|
box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12);
|
||
|
|
z-index: 1000;
|
||
|
|
min-width: 400px;
|
||
|
|
max-width: 90%;
|
||
|
|
border: 1px solid #e0e0e0;
|
||
|
|
font-family: 'Segoe UI', sans-serif;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal h3 {
|
||
|
|
margin: 0 0 1.5rem;
|
||
|
|
color: #2d3436;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal label {
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modalInput {
|
||
|
|
padding: 10px;
|
||
|
|
border-radius: 6px;
|
||
|
|
border: 1px solid #ced4da;
|
||
|
|
width: 100%;
|
||
|
|
box-sizing: border-box;
|
||
|
|
margin-top: 4px; /* Separado del label */
|
||
|
|
margin-bottom: 4px; /* Espacio antes del siguiente elemento */
|
||
|
|
}
|
||
|
|
|
||
|
|
.modalActions {
|
||
|
|
display: flex;
|
||
|
|
gap: 10px;
|
||
|
|
margin-top: 1.5rem;
|
||
|
|
justify-content: flex-end; /* Alinea los botones a la derecha por defecto */
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Estilos de botones para modales */
|
||
|
|
.btn {
|
||
|
|
padding: 8px 20px;
|
||
|
|
border-radius: 6px;
|
||
|
|
border: none;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
font-weight: 500;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btnPrimary {
|
||
|
|
background-color: #007bff;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
.btnPrimary:hover {
|
||
|
|
background-color: #0056b3;
|
||
|
|
}
|
||
|
|
.btnPrimary:disabled {
|
||
|
|
background-color: #e9ecef;
|
||
|
|
color: #6c757d;
|
||
|
|
cursor: not-allowed;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btnSecondary {
|
||
|
|
background-color: #6c757d;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
.btnSecondary:hover {
|
||
|
|
background-color: #5a6268;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ===== NUEVOS ESTILOS PARA EL MODAL DE DETALLES ===== */
|
||
|
|
|
||
|
|
.modalLarge {
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
width: 100vw;
|
||
|
|
height: 100vh;
|
||
|
|
background-color: #f8f9fa; /* Un fondo ligeramente gris para el modal */
|
||
|
|
z-index: 1003;
|
||
|
|
overflow-y: auto;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
padding: 2rem;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modalLargeContent {
|
||
|
|
max-width: 1400px; /* Ancho máximo del contenido */
|
||
|
|
width: 100%;
|
||
|
|
margin: 0 auto; /* Centrar el contenido */
|
||
|
|
}
|
||
|
|
|
||
|
|
.modalLargeHeader {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
margin-bottom: 0.05rem;
|
||
|
|
padding-bottom: 0.05rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modalLargeHeader h2 {
|
||
|
|
font-weight: 400;
|
||
|
|
font-size: 1.5rem;
|
||
|
|
color: #343a40;
|
||
|
|
}
|
||
|
|
|
||
|
|
.closeButton {
|
||
|
|
background: black;
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
border-radius: 50%;
|
||
|
|
width: 30px;
|
||
|
|
height: 30px;
|
||
|
|
cursor: pointer;
|
||
|
|
font-size: 20px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
z-index: 1004;
|
||
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
||
|
|
transition: transform 0.2s, background-color 0.2s;
|
||
|
|
position: fixed;
|
||
|
|
right: 30px;
|
||
|
|
top: 30px;
|
||
|
|
}
|
||
|
|
.closeButton:hover {
|
||
|
|
transform: scale(1.1);
|
||
|
|
background-color: #333;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modalBodyColumns {
|
||
|
|
display: flex;
|
||
|
|
gap: 2rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mainColumn {
|
||
|
|
flex: 3;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 1.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebarColumn {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 1.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section {
|
||
|
|
background-color: #ffffff;
|
||
|
|
border: 1px solid #dee2e6;
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 1.5rem;
|
||
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle {
|
||
|
|
font-size: 1.25rem;
|
||
|
|
margin: 0 0 1rem 0;
|
||
|
|
padding-bottom: 0.75rem;
|
||
|
|
border-bottom: 1px solid #e9ecef;
|
||
|
|
color: #2d3436;
|
||
|
|
font-weight: 600;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detailsGrid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
|
|
gap: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* CAMBIO: Se aplica el mismo estilo de grid a componentsGrid para que se vea igual que detailsGrid */
|
||
|
|
.componentsGrid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||
|
|
gap: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.actionsGrid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
gap: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detailItem, .detailItemFull {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 0.25rem;
|
||
|
|
padding: 10px;
|
||
|
|
background-color: #f8f9fa;
|
||
|
|
border-radius: 4px;
|
||
|
|
border: 1px solid #e9ecef;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detailLabel {
|
||
|
|
color: #6c757d;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
font-weight: 700;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detailValue {
|
||
|
|
color: #495057;
|
||
|
|
font-size: 0.9rem;
|
||
|
|
line-height: 1.4;
|
||
|
|
word-break: break-word;
|
||
|
|
}
|
||
|
|
|
||
|
|
.componentItem {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 2px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.powerButton, .deleteButton {
|
||
|
|
background: none;
|
||
|
|
border: 1px solid #dee2e6;
|
||
|
|
border-radius: 4px;
|
||
|
|
padding: 8px;
|
||
|
|
cursor: pointer;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
width: 100%;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.powerButton:hover {
|
||
|
|
border-color: #007bff;
|
||
|
|
background-color: #e7f1ff;
|
||
|
|
color: #0056b3;
|
||
|
|
}
|
||
|
|
|
||
|
|
.powerIcon {
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.deleteButton {
|
||
|
|
color: #dc3545;
|
||
|
|
}
|
||
|
|
.deleteButton:hover {
|
||
|
|
border-color: #dc3545;
|
||
|
|
background-color: #fbebee;
|
||
|
|
color: #a4202e;
|
||
|
|
}
|
||
|
|
.deleteButton:disabled {
|
||
|
|
color: #6c757d;
|
||
|
|
background-color: #e9ecef;
|
||
|
|
border-color: #dee2e6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.historyContainer {
|
||
|
|
max-height: 400px;
|
||
|
|
overflow-y: auto;
|
||
|
|
border: 1px solid #dee2e6;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.historyTable {
|
||
|
|
width: 100%;
|
||
|
|
border-collapse: collapse;
|
||
|
|
}
|
||
|
|
|
||
|
|
.historyTh {
|
||
|
|
background-color: #f8f9fa;
|
||
|
|
padding: 12px;
|
||
|
|
text-align: left;
|
||
|
|
font-size: 0.875rem;
|
||
|
|
position: sticky;
|
||
|
|
top: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.historyTd {
|
||
|
|
padding: 12px;
|
||
|
|
color: #495057;
|
||
|
|
font-size: 0.8125rem;
|
||
|
|
border-bottom: 1px solid #dee2e6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.historyTr:last-child .historyTd {
|
||
|
|
border-bottom: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* CAMBIO: Nueva clase para dar espacio a la sección de historial */
|
||
|
|
.historySectionFullWidth {
|
||
|
|
margin-top: 2rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statusIndicator {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
font-size: 0.9rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statusDot {
|
||
|
|
width: 12px;
|
||
|
|
height: 12px;
|
||
|
|
border-radius: 50%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statusOnline {
|
||
|
|
background-color: #28a745;
|
||
|
|
box-shadow: 0 0 8px #28a74580;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statusOffline {
|
||
|
|
background-color: #dc3545;
|
||
|
|
box-shadow: 0 0 8px #dc354580;
|
||
|
|
}
|
||
|
|
|
||
|
|
.inputError {
|
||
|
|
border-color: #dc3545;
|
||
|
|
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
|
||
|
|
}
|
||
|
|
|
||
|
|
.errorMessage {
|
||
|
|
color: #dc3545;
|
||
|
|
font-size: 0.8rem;
|
||
|
|
margin-top: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Clases para la sección de usuarios y claves - No se usan en el nuevo modal pero se mantienen por si acaso */
|
||
|
|
.userList { min-width: 240px; }
|
||
|
|
.userItem { display: flex; align-items: center; justify-content: space-between; margin: 4px 0; padding: 6px; background-color: #f8f9fa; border-radius: 4px; position: relative; }
|
||
|
|
.userInfo { color: #495057; }
|
||
|
|
.userActions { display: flex; gap: 4px; align-items: center; }
|
||
|
|
.sectorContainer { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 0.5rem; }
|
||
|
|
.sectorName { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
|
|
.sectorNameAssigned { color: #212529; font-style: normal; }
|
||
|
|
.sectorNameUnassigned { color: #6c757d; font-style: italic; }
|