body {
  font-family: Segoe UI, Arial, sans-serif;
}

.cabecera-degradada {
  background: linear-gradient(90deg, #d9d9d9 0%, #162456 100%);
}

.logo-cabecera {
  height: 76px;
  width: 76px;
  object-fit: contain;
}

/* ===== Menú lateral (sidebar) ===== */
.sidebar {
  width: 230px;
  min-height: calc(100vh - 96px);
  background-color: #162456;
  flex-shrink: 0;
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 1.25rem;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  border-left-color: #d9d9d9;
  font-weight: 600;
}

.sidebar-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 0.5rem 1.25rem;
}

.sidebar-heading-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-heading-link:hover {
  color: #fff;
}

.sidebar-heading-icon {
  display: inline-block;
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.sidebar-heading-link.collapsed .sidebar-heading-icon {
  transform: rotate(-90deg);
}

.sidebar-sublink {
  padding-left: 2.25rem !important;
}

.sidebar-offcanvas {
  background-color: #162456;
  width: 260px;
}

.contenido-principal {
  min-width: 0;
}

/* ===== Tablas y utilidades varias ===== */
.table td, .table th {
  vertical-align: middle;
}

.saldo-negativo {
  color: #b02a37;
  font-weight: bold;
}

/* ===== Impresión ===== */
@media print {
  .no-print {
    display: none !important;
  }

  .contenido-principal {
    width: 100% !important;
  }

  body {
    background: #fff;
  }
}
