﻿.mio_header {
    background-color: #3b8c26;
}

.mio_footer {
    background-color: #315C2B;
}

.mio_testo {
    color: #166f45;
}

.mio-contorno {
    /*background-color: #f3f3f4; tolto da sara*/
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, .15);
/*    border-radius: 25px;*/
}

.mio-contorno-spigoloso {
    background-color: #3b8c26;
}

.mio-bottone, .RadButton.rbButton {
    color: #ffffff;
    border-color: #92a143;
    background-color: #95b53d;
    font-weight: bold;
}

    .mio-bottone:hover, .RadButton.rbButton:hover {
        color: #ffffff;
        border-color: #26b5cf;
        background-color: #78B5CF;
    }

    .mio-bottone:disabled, .RadButton.rbButton:disabled {
        color: #949494;
        border-color: #cccccc;
        background-color: #F5F5F6;
        font-weight: normal;
    }

.titolo {
    font-weight: 900;
    font-family: roboto;
}

.input-group-append {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.accesso {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
}

.navbar {
    height: 4.5rem !important; 
    background-color: #315C2B !important;
    border-bottom: 1px solid #315C2B !important;
    border-right: 1px solid #315C2B !important;
}
/*.navbar-brand-image img {
    width: 45px !important;
    height: 45px !important;
    vertical-align: initial !important;
    top: -10px;
    position: relative;
}*/
/*.navbar-brand-badge {
    color: #87a93c !important;
}*/
.navbar-brand {
    color:white !important;
}
/*.navbar-sidebar nav .nav-item a.active {
    color: #87a93c !important;
}
.btnMenu {
    background-color: #94b53a;
    border-color: #94b53a;
    color:white !important;
}
.btnMenu:hover {
    background-color: #94b53a;
    border-color: #94b53a;
    color: white !important;
}*/
/*
div.bb-grid-pagination-text{
    display: none;  non lo fa vedere 
    white-space: nowrap;  Prevents wrapping 
}*/

.mio-modal .modal-dialog {
    /*height: 80vh !important;*/ /* Imposta l'altezza al 80% della viewport */
    max-height: 80vh; /* Previene l'espansione oltre l'80% */
}

.mio-modal .modal-content {
    height: 100%; /* Fa in modo che il contenuto riempia il modal */
}

.mio-modal .modal-body {
    overflow-y: auto; /* Aggiunge lo scroll se il contenuto è troppo grande */
    padding: 0 1rem;
}

/---------------- Circolari ------------------*/
/* Rende l'intestazione della tabella con ID "Circolare" sticky */
#Circolare thead {
    position: sticky;
    top: 0; /* Fissa l'intestazione in cima al contenitore scrollabile */
    z-index: 1; /* Assicura che l'intestazione sia sopra il contenuto che scorre */
    background-color: #fff; /* Aggiungi un colore di sfondo per evitare che il contenuto sottostante sia visibile */
    /* Potrebbe essere necessario regolare il colore di sfondo (#fff è bianco) */
}

/* Opzionale: aggiunge un bordo inferiore alle celle dell'intestazione per una migliore separazione */
#Circolare thead th {
    border-bottom: 1px solid #dee2e6; /* Colore bordo standard di Bootstrap */
}

/* Stili per schermi piccoli (mobile first) */
.table-container-mobile {
    display: block; /* Mostra le card di default */
}

.table-container-desktop {
    display: none; /* Nasconde la tabella di default */
}

.circolare-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px; /* Meno arrotondato delle card di login per coerenza */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(149, 181, 61, 0.1); /* Bordo sottile con colore della palette */
    margin-bottom: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative; /* Per posizionare il ::before */
    overflow: hidden; /* Per il ::before */
}

    .circolare-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .circolare-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px; /* Sottile linea superiore colorata */
        background: linear-gradient(90deg, #95b53d, #7ba428); /* Colori della palette */
        border-radius: 12px 12px 0 0;
    }

    .circolare-card .card-header {
        background-color: transparent;
        border-bottom: 1px solid rgba(149, 181, 61, 0.1);
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .circolare-card .card-date {
        font-weight: 600;
        color: #4a6741; /* Colore scuro della palette */
        font-size: 0.95rem;
    }

    .circolare-card .card-title {
        color: #4a6741; /* Colore scuro della palette */
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .circolare-card .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .circolare-card .card-note {
        color: #6b8e23; /* Colore verde della palette */
        font-style: italic;
        margin-bottom: 0.25rem;
    }

    .circolare-card .card-comment {
        color: #6c757d; /* Grigio più neutro per il commento esteso */
        font-size: 0.8rem;
        max-height: 60px; /* Limita altezza per commenti lunghi */
        overflow: hidden; /* Aggiungi ellipsis se il testo è troppo lungo */
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Mostra massimo 3 righe */
        -webkit-box-orient: vertical;
    }

/* Media query per schermi grandi (desktop) */
@media (min-width: 768px) { /* Puoi aggiustare il breakpoint se necessario, es. 992px */
    /* Stili aggiustati per la tabella su desktop se necessario, ma i tuoi esistenti dovrebbero andare bene */
    .table {
        margin-top: 0 !important; /* Rimuove il margin-top per la tabella se non desiderato con i nuovi contenitori */
    }
}

/---------------- Circolari ------------------*/