/* =====================================================
   TEMA DINÁMICO — Variable CSS global
   ===================================================== */
:root {
    --color-tema: #212529;
}

.navbar {
    background-color: var(--color-tema) !important;
}

/* Headers de card que siguen el tema dinámico */
thead.thead-tema {
    background-color: var(--color-tema, #343a40);
    color: #ffffff;
}

thead.thead-tema th {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.header-tema {
    background-color: var(--color-tema, #343a40) !important;
}

/* =====================================================
   GLOBAL — Base
   ===================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body { margin-bottom: 60px; }

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-outline-light {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =====================================================
   GLOBAL — Cards
   ===================================================== */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
}

/* =====================================================
   GLOBAL — Tablas
   ===================================================== */
.table-hover tbody tr:hover { background-color: #f5f5f5; }

/* =====================================================
   DASHBOARD — Pestañas
   ===================================================== */
.nav-tabs .nav-link {
    color: #666;
    border: none;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
}

/* =====================================================
   GLOBAL — Paginación fluida
   ===================================================== */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    font-weight: bold;
    transform: scale(1.1);
}

.pagination .page-item.disabled .page-link {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .page-link:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   GLOBAL — Progress bar
   ===================================================== */
.progress { height: 30px; }
.progress-bar { font-size: 16px; line-height: 30px; }


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress {
  height: 30px;
}

.progress-bar {
  font-size: 16px;
  line-height: 30px;
}
.btn-outline-light {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =====================================================
   DASHBOARD — Pestañas
   ===================================================== */
.nav-tabs .nav-link {
    color: #666;
    border: none;
}

    .nav-tabs .nav-link.active {
        color: #007bff;
        border-bottom: 3px solid #007bff;
    }

/* =====================================================
   DASHBOARD — Cards
   ===================================================== */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* =====================================================
   DASHBOARD — Paginación fluida
   ===================================================== */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    font-weight: bold;
    transform: scale(1.1);
}

.pagination .page-item.disabled .page-link {
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination .page-link:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}