/* Global styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #343a40;
}

/* Links */
a {
  color: #0d6efd;
  text-decoration: none;
}
a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #212529;
  margin-bottom: 1rem;
}

/* Forms */
.form-control {
  border-radius: 0.25rem;
}
.form-label {
  font-weight: 500;
}

/* Buttons */
.btn {
  border-radius: 0.25rem;
  font-weight: 500;
}
.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Alerts */
.alert {
  border-radius: 0.25rem;
}

/* Cards */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Tables */
.table {
  margin-bottom: 1rem;
}
.table thead th {
  border-bottom: 2px solid #dee2e6;
}
.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

/* Footer */
footer {
  padding: 1rem 0;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Utility classes */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Authentication pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.auth-card .form-control {
  margin-bottom: 1rem;
}
.auth-card .btn {
  width: 100%;
}

/* Responsive containers */
.container-fluid, .container {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}




/* Impresión */
@media print {
  /* Ocultar todo lo que no sea contenido */
  nav, .sidebar, #analyticsForm, #printControls, #btnPrint, footer {
    display: none !important;
  }
  body { margin: 0; }

  /* Resumen en dos columnas */
  .summary-print {
    display: flex;
    gap: 1rem;
  }
  .summary-print > .col-md-6 {
    flex: 1;
  }

  /* Gráficas: dos columnas */
  .charts-print .chart-block {
    width: 50% !important;
    float: left;
    box-sizing: border-box;
  }
  .charts-print::after {
    content: "";
    display: table;
    clear: both;
  }
  
  #btnPrint {
    display: none !important;
  }
  
}