:root {
  --accent: #0b63b8;
  --bg: #f4f6f8;
  --card: #ffffff;
  --muted: #6b7280;
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #dc2626;
}

html,
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: black;
  margin: 0px;
  padding: 0px;
  height: 100%;
}

h1 {
  padding: 0px;
  margin: 10px;
  font-size: 20px;
}

h2 {
  padding: 0px;
  margin: 5px;
  font-size: 18px;
}

h3 {
  padding: 0px;
  margin: 5px;
  font-size: 16px;
}

h4 {
  padding: 0px;
  margin: 5px;
  font-size: 14px;
}

silver-layout {
  background-color: #ebeaec;
  margin: 0px;
  padding: 0px;

  z-index: 0;

  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

silver-a {
  color: #2e458e;
  background-color: transparent;
  font-size: 15px;
  border: 0px solid #7979ff;
  text-decoration: underline;
  color: rgb(0, 0, 238);
  cursor: pointer;
}

silver-login {
  background-color: #ffffff;
  padding: 30px;
  border: 1px solid #8080b0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
  margin-top: 10vh;
}

silver-content {
  overflow-y: auto;
  background-color: #ffffff;

  flex: 1;

  padding: 10px;
  display: flex;
  flex-direction: column;

  z-index: 0;
}

silver-header {
  background-color: #eaeaea;
  flex-shrink: 0;

  display: block;
  margin: 0px;
  padding: 0px;
  border-radius: 0px;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

silver-header img {
  float: left;
  margin: 0px 10px 0px 0px;
  padding: 0px;
  width: 24px;
  height: 24px;
}

silver-header h1 {
  padding: 5px;
  margin: 5px;
  font-size: 20px;
  color: #00448b;
}

silver-header h2 {
  padding: 5px;
  margin: 0px;
  font-size: 14px;
}

silver-buttoner {
  background-color: #eaeaea;
  flex-shrink: 0;

  display: block !important; /* Asegura que siempre se muestre */

  color: black;
  text-align: center;
  box-shadow: 0px -3px 3px 0px rgba(0, 0, 0, 0.4);

  visibility: visible !important;
  z-index: 10;
}

silver-footer {
  background-color: #a7a7a7;
  flex-shrink: 0;
  display: block;
  color: black;
  text-align: center;
  padding: 5px 0px 5px 0px;
  border-radius: 10px;
  box-shadow: 0px -3px 3px 0px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

silver-navbar {
  background-color: transparent; /* Azul profundo */
  padding: 0;
  display: flex;
  align-items: center;
  height: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* sutil sombra inferior */
  z-index: 10;
}

/* Estilo base de los botones de navegación */
silver-navbar button {
  background-color: transparent;
  color: #ffffff;
  border-radius: 0;
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  height: 100%;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

/* Hover sobre botones */
silver-navbar button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Botón activo (si lo vas a manejar con clases) */
silver-navbar button.active {
  border-bottom: 3px solid #eaeaea;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
}

silver-navbar button:hover {
  background-color: #013772;
}

silver-navbar .navbar-separator {
  align-self: stretch;
  width: 1px;
  margin: 6px 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.16);
}

silver-navbar button.admin-nav {
  background-color: #5a3d82;
  color: #ffffff;
  border-bottom-color: transparent;
}

silver-navbar button.admin-nav:hover {
  background-color: #6d4a9d;
}

silver-navbar button.admin-nav.active {
  background-color: #7650a9;
  border-bottom-color: #e6d7ff;
}

silver-toptool {
  background-color: #2e458e; /* Azul profundo */
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0px;
  height: 40px;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Hereda estilos de silver-navbar, no necesita cambios */
silver-user {
  background-color: #333;
  display: block;
  overflow-y: hidden;
  z-index: 0;
  gap: 10px;
  padding: 0px;
}

.username::before {
  content: "👤 ";
  font-size: 14px;
}

.username {
  color: #f2f2f2;
  font-weight: bold;
  font-size: 14px;
}

.logout::before {
  content: "❌";
  font-size: 14px;
}

.logout {
  color: #f2f2f2;
  font-weight: bold;
  font-size: 14px;
}

silver-user button {
  color: #f2f2f2;
  background-color: #333;
  border-radius: 0;
  border: 0px;
  border-left: 1px solid #888888;
  text-align: center;
  padding: 10px 6px;
  height: 40px;
  text-decoration: none;
  font-size: 16px;
  margin: 0px;
  cursor: pointer;
}

silver-user button:hover {
  background-color: #ddd;
  color: black;
}

silver-histonav {
  display: flex;
  align-items: center;
  background-color: #eaeaea;
  border-bottom: 1px solid #c4cae0;
  gap: 3px;
  z-index: 5;
}

/* Estilo base de cada botón del histórico */
silver-histonav button {
  background-color: #ffffff;
  color: #2e458e;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid #c4cae0;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  min-height: 24px;
}

silver-histonav button:hover {
  background-color: #e2e8f6;
  box-shadow: 0 0 3px rgba(42, 84, 216, 0.2);
}

silver-snackbar {
  visibility: hidden;
  min-width: 300px;
  margin-left: -150px;
  background-color: #444;
  font-weight: bold;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

silver-snackbar.show {
  visibility: visible;
  animation: fadein 0.5s;
}
silver-snackbar.hide {
  visibility: hidden;
  animation: fadeout 0.5s;
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

.topnote {
  background-color: white;
  margin: 5px;
  padding: 10px;
  border: 1px solid #8080b0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

silver-waiting {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  visibility: visible;
  z-index: 15;
}

silver-waiting :first-child {
  width: 50px;
  height: 50px;
  background-color: red;
  position: absolute;
  animation: myfirst 0.5s linear infinite;
}

@keyframes myfirst {
  0% {
    background-color: red;
    left: 0px;
    top: 0px;
  }
  100% {
    background-color: yellow;
    left: 100%;
    top: 0px;
    border-radius: 25px;
  }
}

#btnLogout {
  position: absolute;
  right: 0px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
}

/************************/
/*    TABLES            */
/************************/

/* Contenedor con scroll vertical limitado */
.table-scroll-container {
  overflow-y: auto;
}
.styled-table-1 {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.styled-table-1 thead tr {
  background-color: #2e458e;
  font-size: 14px;
  color: #ffffff;
  text-align: left;
  font-weight: 500;
}

/* Fila de filtros */

.styled-table-1 thead tr.filters th {
  z-index: 3;
  background-color: #e0e0e0;
  padding: 0px;
  border-bottom: none;
  vertical-align: middle;
  text-align: center;
}

/* Alineación vertical de elementos internos */
.styled-table-1 thead tr.filters th * {
  margin: 10px 0px 10px 0px;
}

.styled-table-1 th,
.styled-table-1 td {
  padding: 6px 10px;
  border-bottom: 1px solid #e0e5f0; /* gris azulado suave */
}

.styled-table-1 tbody tr {
  background-color: #ffffff;
  transition: background-color 0.2s ease;
}

.styled-table-1 tbody tr:hover {
  background-color: #f4f6fa; /* efecto hover suave */
}

.styled-table-1 tbody tr:last-of-type {
  border-bottom: 2px solid #c4cae0;
}

/* Inputs y selects dentro del thead */
.styled-table-1 thead input,
.styled-table-1 thead select {
  box-sizing: border-box;
  padding: 2px 4px; /* Ajustar según estética */
  margin: 10px;
  font-size: 12px; /* Opcional */
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sorted-asc::after {
  content: "  🔼";
}

th.sorted-desc::after {
  content: "  🔽";
}

th.sorted-asc,
th.sorted-desc {
  border-bottom: 3px solid #3399ff;
}

/************************/
/*    CMD               */
/************************/
#divCmdHistoric {
  font-family: Consolas, "Lucida Console", "Courier New", monospace;
  background-color: black;
  flex: 1; /* si está dentro de un flex column */
  overflow-y: auto; /* clave para que haga scroll */
  max-height: 100%; /* si no tiene altura fija */
}

#divTxtCmd {
  display: flex;
  flex-direction: row;
  margin: 0px 10px 0px 10px;
}

.inputCMD {
  flex: 1;
  font-size: 14px;
  font-family: Consolas, "Lucida Console", "Courier New", monospace;
  font-style: italic;
  background: #000000;
  height: 30px;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0px 0px 6px 6px;
  padding: 0px 0px 0px 10px;
}

.inputCMD:hover {
  background-color: #000000;
}

/************************/
/* INPUT,SELECT,BUTTONS */
/************************/

/* Inputs de texto, contraseña, etc. */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
  background-color: #fff;
  color: #4e4e4e;
  font-size: 15px;
  padding: 6px 10px;
  border: 2px solid #c4cae0;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Efecto al pasar el mouse */
input[type="text"]:hover,
input[type="password"]:hover,
select:hover {
  border-color: #3f5bb5;
}

/* Efecto al enfocar */
input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: #1a2e7b;
  box-shadow: 0 0 4px rgba(42, 84, 216, 0.5);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  box-sizing: content-box; /* para que el padding no estire */
  border: 2px solid #2e458e;
  border-radius: 4px;
  cursor: pointer;
  background-color: white;
  /* mantiene el estilo nativo de checked */
}

input[type="checkbox"]:checked {
  background-color: #2e458e;
  border-color: #2e458e;
  /* no agregamos check visual extra, dejamos el nativo */
}

button {
  background-color: #f4f6fa; /* fondo claro */
  color: #2e458e; /* texto azul oscuro */
  border: 1.5px solid #c4cae0; /* borde gris-azulado suave */
  padding: 6px 18px;
  margin: 4px 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  min-height: 36px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

button:hover {
  background-color: #e2e8f6; /* azul pálido al pasar el mouse */
}

button:focus {
  outline: none;
  box-shadow: 0 0 4px rgba(42, 84, 216, 0.2);
}

/***************************/
/* TOOL TIP                */
/***************************/

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tdtooltip {
  color: #707070;
}
