body {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

.login-body {
    min-height: 100vh;
}

.form-signin {
    width: 100%;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.table th {
    font-weight: 600;
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Filas intercaladas (Striped Rows) sombreadas para diferenciación clara */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #f8fafc !important;
    color: inherit;
}

.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: #ffffff !important;
    color: inherit;
}

.table-hover > tbody > tr:hover > * {
    background-color: #e2e8f0 !important;
    transition: background-color 0.15s ease-in-out;
}

/* Ocultar el buscador por defecto de DataTables para usar el search box integrado en la barra de herramientas */
.dataTables_filter {
    display: none !important;
}

/* Estilo para barra de búsqueda de bandejas */
.search-box-bandeja .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    border-color: #86b7fe;
}

/* Controles modernos de DataTables para bandejas (10/25/50, Contador y Paginación) */
.dataTables_length {
    margin-bottom: 0.5rem;
}
.dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0;
}
.dataTables_length select {
    display: inline-block;
    width: auto !important;
    min-width: 75px;
    padding: 0.25rem 1.75rem 0.25rem 0.65rem;
    font-size: 0.85rem;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    cursor: pointer;
}
.dataTables_length select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    outline: 0;
}
.dataTables_info {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    padding-top: 0.4rem;
}
.dataTables_paginate {
    margin-top: 0.25rem;
}
.dataTables_paginate .pagination {
    margin-bottom: 0;
    gap: 2px;
}
.dataTables_paginate .page-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem !important;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.dataTables_paginate .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}
.dataTables_paginate .page-link:hover {
    background-color: #f1f5f9;
    color: #0d6efd;
}
/* Estilo ejecutivo de alto contraste para los botones de exportación de DataTables (Copiar, CSV, Excel, Imprimir) */
.dt-buttons {
    display: inline-flex !important;
    gap: 0.35rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 0.5rem !important;
}

.dt-buttons .btn,
.dt-buttons .btn.btn-secondary,
.dt-buttons .btn-secondary {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 0.32rem 0.8rem !important;
    border-radius: 0.375rem !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.15s ease-in-out !important;
}

.dt-buttons .btn:hover,
.dt-buttons .btn.btn-secondary:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.dt-buttons .buttons-copy {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
}

.dt-buttons .buttons-copy:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
}

.dt-buttons .buttons-csv {
    color: #0369a1 !important;
    border-color: #bae6fd !important;
    background-color: #f0f9ff !important;
}

.dt-buttons .buttons-csv:hover {
    background-color: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0c4a6e !important;
}

.dt-buttons .buttons-excel {
    color: #15803d !important;
    border-color: #bbf7d0 !important;
    background-color: #f0fdf4 !important;
}

.dt-buttons .buttons-excel:hover {
    background-color: #dcfce7 !important;
    border-color: #86efac !important;
    color: #14532d !important;
}

.dt-buttons .buttons-print {
    color: #2563eb !important;
    border-color: #bfdbfe !important;
    background-color: #eff6ff !important;
}

.dt-buttons .buttons-print:hover {
    background-color: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

/* Switch toggle para 'Ver todo' en Dashboard y Bandejas */
.ver-todo-switch {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.2rem 0.65rem !important;
    margin: 0 !important;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    gap: 0.45rem;
    vertical-align: middle;
}

.ver-todo-switch .form-check-input {
    margin: 0 !important;
    float: none !important;
    cursor: pointer;
    width: 2em;
    height: 1.1em;
}

.ver-todo-switch .form-check-label {
    margin: 0 !important;
    cursor: pointer;
    user-select: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
}

