body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
}
/*.app-header {
  background: #1976d2;
  color: #fff;
  padding: 0.5rem 1rem;
}
.app-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}*/
/* Actualizamos el header para alinear el logo y el título */
.app-header {
  background: #1976d2;
  color: #fff;
  padding: 0.5rem 1rem;
  display: flex;       /* Nuevo: Para alinear horizontalmente */
  align-items: center; /* Nuevo: Centrado vertical */
  gap: 10px;           /* Nuevo: Espacio entre logo y texto */
}

/* Estilo del logotipo */
.app-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* Animación Pulse */
  animation: pulse-animation 2s infinite ease-in-out;
}

/* Quitamos el margen inferior que tenía el h1 antes para que se alinee mejor */
.app-header h1 {
  margin: 0; 
  font-size: 1.2rem;
}

/* Definición de la animación Pulse */
@keyframes pulse-animation {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}
.tabs {
  display: flex;
  gap: 0.5rem;
}
.tabs button {
  flex: 1;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.4rem;
  cursor: pointer;
}
.tabs button.active {
  background: #fff;
  color: #1976d2;
  font-weight: 600;
}
main {
  padding: 1rem;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
form {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.9rem;
}
input, select, button {
  padding: 0.4rem;
  font-size: 0.9rem;
}
button {
  cursor: pointer;
}
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
td, th {
  padding: 0.4rem;
  border-bottom: 1px solid #ddd;
  font-size: 0.85rem;
}
td.monto, th.monto {
  text-align: right;
}
.app-footer {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: #777;
}
.catalogo {
  background: #fff;
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.catalogo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalogo li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}
.catalogo .color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ccc;
}
.catalogo li button {
  margin-left: auto;
  font-size: 0.7rem;
}
.dash-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.dash-card{
  background:#fff;
  border-radius:12px;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 1px 6px rgba(0,0,0,0.06);
}
.dash-title{
  font-size:12px;
  opacity:0.75;
  margin-bottom:6px;
  font-weight:600;
}
.dash-value{
  font-size:22px;
  font-weight:800;
  letter-spacing:0.3px;
}
.dash-sub{
  margin-top:6px;
  font-size:12px;
  opacity:0.75;
}

