:root {
  --primary: #070b36; /*header*/
  --accent: #0284c7;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #020617;
  --muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.tablaRegistro,
.auditoria-form,
.formRetiroPermiso,
.modal-body,
body {
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.tablaRegistro::-webkit-scrollbar,
.auditoria-form::-webkit-scrollbar,
body::-webkit-scrollbar,
.formRetiroPermiso::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}
.hidden {
  display: none;
}

body {
  background: var(--bg);
  color: var(--text);
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOPBAR ===== */

.usuario {
  font-size: 14px;
  opacity: 0.95;
}

i {
  font-size: 20px;
}

.logout {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.logout:hover {
  color: #38bdf8;
}

/* ===== CONTENIDO ===== */
.contenido {
  padding: 32px;
  flex: 1;
}

.contenido h1 {
  font-size: 22px;
  margin-bottom: 28px;
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  overflow-y: hidden;
  z-index: 10;
  height: 64px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.topbar-left i {
  color: #38bdf8;
  font-size: 30px;
  display: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contenido {
  overflow-y: auto;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.filtros select,
.filtros input,
.filtros button,
.filtros p {
  padding: 0px;
  font-size: 18px;
  border: none;
  border-bottom: 1px solid gray;
  width: 100%;
  margin: 5px auto;
  flex: 1;
  cursor: pointer;
}

.filtros select:hover,
.filtros input:hover,
header p:hover {
  box-shadow: 0 3px 0px 0px blue;
}

.filtros p {
  color: rgb(255, 255, 255);
  text-align: center;
  font-size: x-large;
}

#btnAbrirExcel {
  background: none;
  cursor: pointer;
}

#btnAbrirExcel:hover {
  box-shadow: 0 3px 0px 0px blue;
}

@keyframes pulseOK {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(25, 135, 84, 0);
  }
}

@media (max-width: 768px) {
  .ocultarMovil {
    display: none;
  }
  .contenido {
    padding: 20px;
  }

  .filtros {
    display: none;
  }

  .topbar-left i {
    display: block;
  }
}
