/* Tema Claro para Fichadas LM - Mejoras Visuales */
:root {
    --lm-primary: #c67c1f;
    --lm-primary-hover: #d28b2f;
    --lm-primary-active: #aa6416;
    --lm-primary-rgb: 198, 124, 31;
}

/* Encabezados de tabla con mejor contraste */
.table thead th {
    background-color: var(--lm-primary) !important;
    color: white !important;
    border-color: #dee2e6 !important;
    font-weight: bold;
}

/* Filas de changas con fondo naranja */
.table-orange,
.table-orange > tbody > tr,
.table-orange > tbody > tr > * {
    background-color: #fff3e0 !important; /* Naranja claro para changas */
    color: #000000 !important;
    border-color: #ff9800 !important;
}

/* Filas de domingos con fondo gris claro */
.table-sunday,
.table-sunday > tbody > tr,
.table-sunday > tbody > tr > * {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

/* Filas de feriados con fondo rosa claro */
.table-holiday,
.table-holiday > tbody > tr,
.table-holiday > tbody > tr > * {
    background-color: #fce4ec !important; /* Rosa muy claro */
    color: #880e4f !important; /* Rosa oscuro para texto */
    border-color: #f8bbd9 !important; /* Rosa medio */
}

/* Bordes consistentes para todas las tablas */
.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6 !important;
}

/* Mejorar contraste en filas de estado */
.table-success > tbody > tr > * {
    background-color: rgba(25, 135, 84, 0.15) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
}

.table-warning > tbody > tr > * {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-color: rgba(255, 193, 7, 0.2) !important;
}

.table-danger > tbody > tr > * {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

.table-info > tbody > tr > * {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.2) !important;
}

.table-primary > tbody > tr > * {
    background-color: rgba(var(--lm-primary-rgb), 0.1) !important;
    border-color: rgba(var(--lm-primary-rgb), 0.2) !important;
}

.table-secondary > tbody > tr > * {
    background-color: rgba(108, 117, 125, 0.1) !important;
    border-color: rgba(108, 117, 125, 0.2) !important;
}

.table-light > tbody > tr > * {
    background-color: rgba(248, 249, 250, 0.1) !important;
    border-color: rgba(248, 249, 250, 0.2) !important;
}

/* Filas de totales con mejor destaque */
.table-info > tbody > tr > * {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

/* Mejorar legibilidad en modo claro */
.table {
    color: #212529;
}

.table th {
    color: white;
}

/* Asegurar que los botones sean visibles */
.btn-outline-primary {
    color: var(--lm-primary);
    border-color: var(--lm-primary);
}

.btn-outline-primary:hover {
    background-color: var(--lm-primary);
    border-color: var(--lm-primary);
    color: #ffffff;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Botones - Modo claro: fondo oscuro, texto blanco */
.btn-primary {
    background-color: var(--lm-primary) !important;
    border-color: var(--lm-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--lm-primary-hover) !important;
    border-color: var(--lm-primary-hover) !important;
    color: #ffffff !important;
}

.btn-primary:active {
    background-color: var(--lm-primary-active) !important;
    border-color: var(--lm-primary-active) !important;
}

.btn-primary:focus,
.btn-outline-primary:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--lm-primary-rgb), 0.25) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--lm-primary) !important;
}

.bg-primary {
    background-color: var(--lm-primary) !important;
}

.text-primary {
    color: var(--lm-primary) !important;
}

.border-primary {
    border-color: var(--lm-primary) !important;
}

.page-link {
    color: var(--lm-primary);
}

.page-item.active .page-link {
    background-color: var(--lm-primary);
    border-color: var(--lm-primary);
}

.list-group-item.active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: var(--lm-primary) !important;
    border-color: var(--lm-primary) !important;
    color: #ffffff !important;
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
    color: var(--lm-primary);
}

tr.table-primary,
tr.table-primary > th,
tr.table-primary > td {
    background-color: rgba(var(--lm-primary-rgb), 0.12) !important;
    border-color: rgba(var(--lm-primary-rgb), 0.25) !important;
}

.btn-warning {
    color: #ffffff !important;
}

.btn-info {
    color: #ffffff !important;
}

.btn-secondary {
    color: #ffffff !important;
}

.btn-danger {
    color: #ffffff !important;
}

.btn-success {
    color: #ffffff !important;
}
