.alert-app-flash {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

.alert-app-flash .flash-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.alert-app-flash .flash-text {
    flex: 1;
}

.alert-app-flash--success,
.alert-app-flash.alert-success {
    background-color: #ffffff !important;
    border-color: #198754;
    border-left: 6px solid #198754;
    color: #0b3d1f !important;
}

.alert-app-flash--success .flash-icon {
    color: #198754;
}

.alert-app-flash--danger,
.alert-app-flash.alert-danger {
    background-color: #ffffff !important;
    border-color: #dc3545;
    border-left: 6px solid #dc3545;
    color: #5c1a22 !important;
}

.alert-app-flash--danger .flash-icon {
    color: #dc3545;
}

.alert-app-flash--warning,
.alert-app-flash.alert-warning {
    background-color: #ffffff !important;
    border-color: #ffc107;
    border-left: 6px solid #e0a800;
    color: #5c4a00 !important;
}

.alert-app-flash--warning .flash-icon {
    color: #997404;
}

.alert-app-flash--info,
.alert-app-flash.alert-info {
    background-color: #ffffff !important;
    border-color: #0dcaf0;
    border-left: 6px solid #0aa2c0;
    color: #055160 !important;
}

.alert-app-flash .btn-close {
    filter: none;
    opacity: 0.65;
}

:root {
    --bs-primary: var(--color-primario);
    --bs-secondary: var(--color-secundario);
}

body.app-body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.app-navbar {
    background-color: var(--color-primario) !important;
}

.card-panel {
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Tablas en listados: mismo margen horizontal que .card-body del encabezado/búsqueda */
.card-panel > .card-panel-list-padding {
    padding-left: var(--bs-card-spacer-x, 1rem);
    padding-right: var(--bs-card-spacer-x, 1rem);
    padding-top: 0;
    padding-bottom: 0;
}

.kpi-card {
    border-radius: 10px;
    color: #fff;
}

.kpi-card .kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.badge-estatus {
    color: #fff;
    font-weight: 600;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.login-card-header {
    background: linear-gradient(135deg, var(--color-primario), #0f1d4d);
    padding: 1.25rem;
    text-align: center;
}

.login-card-header img {
    max-height: 72px;
    max-width: 100%;
}

.login-footer-badge {
    background: rgba(33, 37, 41, 0.85);
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

.section-header {
    border-radius: 8px 8px 0 0;
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.section-header-primary { background: var(--color-primario); }
.section-header-secondary { background: var(--color-secundario); }
.section-header-info { background: #17a2b8; }

.app-footer {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.app-footer a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.app-footer a:hover {
    color: #f0f4ff;
}

@media (max-width: 767.98px) {
    .table-mobile-cards thead { display: none; }
    .table-mobile-cards tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.5rem;
    }
    .table-mobile-cards tbody td {
        display: block;
        border: none;
        padding: 0.25rem 0.5rem;
    }
    .table-mobile-cards tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        min-width: 110px;
    }
}
