/* Fondo general */
body {
  overflow-x: hidden; /* para que al salirnos del container no aparezca scroll horizontal */
  background-color: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* ===== HEADER SISSTER ===== */

/* Barra azul completa */
.sisster-header {
  border-bottom: 1px solid #0b5ed7;
  background-color: #0d6efd; /* azul Bootstrap */
}

/* Logo "Sisster" en blanco */
.sisster-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

/* Links del menú: blancos, un poco más grandes */
.sisster-header .nav-link {
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-weight: 400;
  font-size: 1rem;
}

/* Hover: aclarar ligeramente */
.sisster-header .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ACTIVO: botón BLANCO con texto AZUL (lo contrario de antes) */
.sisster-header .nav-link.active {
  background-color: #ffffff;
  color: #0d6efd !important;
  font-weight: 600;
}

/* ===== USER BOX (ÚNICO CUADRO BLANCO) ===== */

.sisster-userbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.9rem;
  background-color: #ffffff;        /* cuadro blanco */
  border-radius: 999px;
}

.sisster-username {
  font-size: 0.9rem;
  color: #212529;                  /* texto oscuro */
  font-weight: 500;
}

.sisster-userrole {
  font-size: 0.7rem;
  font-weight: 600;
  color: #212529;
  background-color: #e9ecef;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
}

/* Botón Salir: borde blanco, texto blanco sobre azul */
.btn-logout {
  border-color: #ffffff;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.25rem 0.9rem;
  border-radius: 0.5rem;
}

.btn-logout:hover {
  background-color: #ffffff;
  color: #0d6efd;
}

/* ===== Lista de rentas: mantener botones alineados a la derecha ===== */

#rList .list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#rList .r-left {
  flex: 1 1 auto;
  min-width: 0; /* deja que el texto se envuelva aquí */
}

#rList .r-right {
  flex: 0 0 auto;
  white-space: nowrap; /* botones siempre en una sola línea */
}

#rList .r-right .btn {
  margin-left: 0.25rem;
}

/* ===== Bitácora ===== */

.sisster-bita-filters .form-label {
  font-weight: 500;
}

.sisster-bita-card {
  margin-top: 0.75rem;
}

.sisster-bita-table th,
.sisster-bita-table td {
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  vertical-align: middle;
}

/* Column widths para hacerla más extendida y legible en escritorio */
.sisster-bita-table .col-id        { width: 50px;  white-space: nowrap; }
.sisster-bita-table .col-fecha     { width: 135px; white-space: nowrap; }
.sisster-bita-table .col-usuario   { width: 80px;  white-space: nowrap; }
.sisster-bita-table .col-accion    { width: 140px; white-space: nowrap; }
.sisster-bita-table .col-entidad   { width: 90px;  white-space: nowrap; }
.sisster-bita-table .col-entidadid { width: 80px;  white-space: nowrap; text-align: center; }
.sisster-bita-table .col-ip        { width: 90px;  white-space: nowrap; }

.sisster-bita-table .col-extra {
  min-width: 260px;
}

/* El JSON/extra se muestra en varias líneas pero sin desacomodar todo */
.sisster-bita-table .bita-extra-text {
  max-height: 3.6em;          /* ~2 líneas */
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: normal;
}

@media (min-width: 1200px) {
  .sisster-bita-table .col-extra {
    min-width: 360px;
  }
  .sisster-bita-table .bita-extra-text {
    max-height: 4.8em;        /* un poco más en pantallas grandes */
  }
}

/* =========================
   Hero Slider - Sisster (full width)
   ========================= */

/* Ocupamos todo el ancho de la ventana, ignorando el container */
.sisster-hero {
  position: relative;
  width: 100vw;                 /* ancho completo de la ventana */
  height: calc(100vh - 72px);   /* alto completo menos el header (ajusta si tu navbar mide distinto) */
  margin: 0;
  margin-left: 50%;             /* truco para salir del container */
  transform: translateX(-50%);
  padding: 0;
  overflow: hidden;
}

/* Cada slide: imagen de fondo a pantalla completa sin distorsión */
.sisster-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;       /* recorta pero no aplasta */
  background-position: center;  /* centrada */
  background-repeat: no-repeat;
}

/* Capa oscura encima de la imagen */
.sisster-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 6vw;
}

/* Texto del hero */
.sisster-hero-text {
  max-width: 520px;
  color: #fff;
  padding: 1.25rem 1.75rem;
  background: rgba(0, 0, 0, 0.45);   /* fondo oscuro transparente */
  border-radius: 12px;
  backdrop-filter: blur(2px);        /* opcional: efecto glass suave */
}

.sisster-hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sisster-hero-text p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  margin: 0;
}


/* Indicadores */
.sisster-hero-indicators {
  bottom: 18px;
}

.sisster-hero-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Móvil */
@media (max-width: 768px) {
  .sisster-hero {
    height: calc(100vh - 64px);
  }
  .sisster-hero-overlay {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }
  .sisster-hero-text {
    max-width: 100%;
    text-align: left;
  }
}

.sisster-dashboard .card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.sisster-dashboard .card-body {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
/* Total del modal ENTREGAR / DEVOLVER */
#mTotalLabel {
  font-size: 1.1rem;
  font-weight: 600;
}

#mTotalAmount {
  font-size: 1.6rem;
  font-weight: 700;
}
