/* Estilos Generales */

    body {
        background-color: #f4f7f6;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .navbar {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .dropend:hover > .dropdown-menu {
        display: block;
        top: 0;
        left: 100%;
        margin-top: -1px;
    }

    .card {
        border: none;
        border-radius: 12px;
        transition: transform 0.2s, box-shadow 0.2s ;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important
    }

    .table-container {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
    .table-container table {
        width: 100%;
        table-layout: fixed;
    }
    
    .table-container td,
    .table-container th {
        vertical-align: middle;    
    }
    .td-fecha {
        font-size: 0.9em;
    }
    
    .table-container .btn-group {
        flex-wrap: nowrap;
    }
    
    .table-container .badge {
        white-space: normal;
    }




    .status-ingreso {
        color: #198754;
        font-weight: 600;
    }

    .status-gasto {
        color: #dc3545;
        font-weight: 600;
    }

    .emergencia-alert {
        border: none;
        border-left: 5px solid #dc3545;
    }
   

/* Tarjetas de Proveedores */
.card-proveedor {
    border: none;
    border-radius: 15px;
    transition: 0.3s;
}
.card-proveedor:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Botones Personalizados */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}
button.btnFiltrar{
    font-size: 12px;
}
span.text-blue {
    color:blue !important;
}

/* Gráficos y Dashboards */
.emergencia-badge {
    position: absolute;
    top: -10px;
    right: 10px;
}

/*anuncios */
.anuncio-card {
    border-left: 5px solid #dee2e6;
    transition: 0.3s;
    border-radius: 8px; /* Un toque extra de diseño */
}
.anuncio-card:hover { transform: scale(1.01); }
.prioridad-alta { border-left-color: #dc3545; background-color: #fff5f5; }
.prioridad-media { border-left-color: #ffc107; background-color: #fffdf5; }
.prioridad-baja { border-left-color: #0dcaf0; background-color: #f5fcff; }


/* Contenedor de formularios tipo "Glass" */
.form-container {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Efectos en los inputs */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;

}
select.form-select {
    min-width: 190px !important;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Botones con sombra */
.btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.15);
}

/* Colores para las opciones de prioridad */
.option-alta { color: #dc3545; font-weight: bold; }
.option-media { color: #fd7e14; font-weight: bold; }
.option-baja { color: #0dcaf0; font-weight: bold; }

/*estilo info comunidad*/

        body {
            background-color: #f4f7f6;
        }

        .info-card {
            border-radius: 15px;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .icon-box {
            width: 50px;
            height: 50px;
            background: #e7f1ff;
            color: #0d6efd;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }


.nav-user-pill {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    margin-left: 10px;
    display: flex !important;
    align-items: center;
    transition: all 0.2s ease-in-out !important;
}

.nav-user-pill:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}
.nav-user-pill.show {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
}


@media print {
    /* Escondemos navegación, botones y selectores */
    .navbar, .btn, .footer, form, .nav, .sidebar {
        display: none !important;
    }
    
    /* Ajustamos el contenedor para que ocupe todo el ancho de papel */
    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Forzamos que los colores de fondo se impriman (importante para los progress-bar) */
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Evitamos que una tarjeta se corte a la mitad entre dos páginas */
    .card {
        break-inside: avoid;
    }

    .progress {
        border: 1px solid #ccc;
    }

    /* Añadimos un encabezado que solo se vea al imprimir */
    .only-print {
        display: block !important;
    }
}

/* Escondido por defecto en la pantalla */
.only-print {
    display: none;
}
