
* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #eef1f5;
    margin: 0;
    padding: 0;
    color: #212529;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Links que se usan como botones */
a.btn,
a.btn:hover {
    text-decoration: none;
}

/* Botoneras */
.btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-group .btn {
    margin-right: 0;
}

/* Botones dentro de la barra superior */
.navbar-links .btn-nav {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.navbar-links .btn-nav:hover {
    background: rgba(255,255,255,0.18);
}
.navbar-links .btn-nav.active {
    background: rgba(255,193,7,0.25);
    border-color: rgba(255,193,7,0.45);
    color: #fff;
}
.navbar {
    background: #343a40;
    color: #fff;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.navbar-title {
    font-size: 1.1rem;
    font-weight: bold;
}
.navbar-sub {
    font-size: 0.8rem;
    opacity: .8;
}
.navbar-links a {
    color: #ffc107;
    margin-left: 12px;
    font-size: 0.85rem;
}
.container-page {
    max-width: 1200px;
    margin: 18px auto 24px auto;
    padding: 0 16px;
}
.card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    margin-bottom: 16px;
}
.page-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
}
.page-subtitle {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: #555;
}
.btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-primary {
    background: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background: #0056b3;
}
.btn-secondary {
    background: #6c757d;
    color: #fff;
}
.btn-secondary:hover {
    background: #565e64;
}
.btn-link {
    background: transparent;
    color: #007bff;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* -------------------------------------------------
   Print helpers (Bagre Report)
   - .only-print: solo visible al imprimir
   - .no-print  : oculto al imprimir
   ------------------------------------------------- */
.only-print{display:none !important;}

@media print{
  body{background:#fff !important;}
  .no-print{display:none !important;}
  .only-print{display:block !important;}
  .container,
  .container-page,
  .card{box-shadow:none !important;}
  .container{margin:0 !important; padding:0 !important;}
  .report-table{font-size:11px !important;}
  .report-table th,
  .report-table td{padding:4px 6px !important;}
}
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #e2e3e5;
    color: #495057;
    margin-left: 4px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th,
.table td {
    border: 1px solid #dee2e6;
    padding: 4px 6px;
    vertical-align: top;
}
.table thead {
    background: #f8f9fa;
}
.table tbody tr:hover {
    background: #f1f3f5;
}
.form-control {
    width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}
.form-group {
    margin-bottom: 8px;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.layout-two {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}
@media (max-width: 900px) {
    .layout-two {
        grid-template-columns: 1fr;
    }
}
.alert {
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.alert-info {
    background: #e6f4ff;
    border: 1px solid #99c9ff;
}
.alert-danger {
    background: #ffe6e6;
    border: 1px solid #e0a0a0;
}
.text-muted {
    color: #777;
    font-size: 0.85rem;
}
.no-print {
}

/* Charts */
.br-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 980px) {
    .br-charts-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.br-chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.br-chart-title {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: bold;
}
.br-chart-canvas {
    position: relative;
    height: 320px;
}
.br-chart-msg {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}
