/* BIO SCORE — stili propri, sopra al tema Hyper e a colori.css (come nel Portale Sinistri) */

/* Voci di menu non ancora disponibili */
.menu-item-disabled {
    color: gray !important;
    pointer-events: none;
    cursor: default;
}

.menu-item-disabled i {
    color: gray;
}

.bio-badge-portale {
    font-size: 14px;
    color: #118B43;
}

/* Card statistiche con numero grande (dalla demo BioScore_Dashboard) */
.bio-stat-card {
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bio-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.bio-stat-card .bio-stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.bio-stat-card .bio-stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
}

.bio-stat-card .bio-stat-sub {
    font-size: 0.8rem;
    opacity: 0.85;
}

.bio-bg-totale { background-color: #1e2a4a; }
.bio-bg-ok { background-color: #1aa179; }
.bio-bg-ko { background-color: #d9534f; }
.bio-bg-lav { background-color: #e89a3c; }

/* Tabelle elenco pratiche */
.bio-recenti td, .bio-recenti th { vertical-align: middle; }

/* Hyper dipinge le celle con le variabili della tabella: il solo background-color non basta */
.bio-recenti thead th {
    --ct-table-bg: #1e2a4a;
    --bs-table-bg: #1e2a4a;
    --ct-table-color: #fff;
    --bs-table-color: #fff;
    background-color: #1e2a4a;
    color: #fff;
    font-weight: 600;
    border-color: #1e2a4a;
}

/* Modal quasi a tutto schermo (come nei portali) */
.modal-fullscreen-custom { max-width: 95%; width: 95%; height: 90vh; margin: 2.5vh auto; }
.modal-fullscreen-custom .modal-content { height: 100%; }
.modal-fullscreen-custom .modal-body { overflow-x: auto; overflow-y: auto; max-height: calc(90vh - 120px); }
.modal-body table.table { font-size: 0.85rem; margin-bottom: 0; }
.modal-body table.table th, .modal-body table.table td { padding: 0.4rem; white-space: nowrap; }

/* Pagine di accesso (come Autenticazione_Layout dei portali) */
.bio-auth-sfondo {
    background-image: url('/img/sfondo-login.jpg');
    background-size: cover;
    background-position: center;
}

.bio-auth-box {
    border-top: 4px solid #118B43;
}

.bio-auth-titolo {
    font-size: 20px;
    color: #118B43;
}

.bio-qr {
    width: 180px;
    height: 180px;
    image-rendering: pixelated;
}

.bio-codici-recupero code {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Scheda pratica (dalla demo BioScore_Dettaglio) */
.bio-pratica .form-label { font-size: 12px; margin-bottom: 2px; }
.sticky-column { position: sticky; top: 80px; }
.bio-codice { font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; color: #1e2a4a; }

.bio-stepper { display: flex; justify-content: space-between; align-items: flex-start; margin: 10px 0 25px 0; }
.bio-step { flex: 1; text-align: center; position: relative; }
.bio-step:not(:first-child)::before {
    content: ''; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px;
    background-color: #dee2e6; z-index: 0;
}
.bio-step.completed:not(:first-child)::before { background-color: #0acf97; }
.bio-step.ko:not(:first-child)::before { background-color: #fa5c7c; }
.bio-step .bio-circle {
    width: 38px; height: 38px; line-height: 38px; border-radius: 50%;
    background-color: #dee2e6; color: #fff; font-weight: bold; margin: 0 auto 6px auto;
    position: relative; z-index: 1;
}
.bio-step.completed .bio-circle { background-color: #0acf97; }
.bio-step.ko .bio-circle { background-color: #fa5c7c; }
.bio-step .bio-step-label { font-size: 12px; color: #6c757d; }
.bio-step.completed .bio-step-label { color: #343a40; font-weight: 600; }

.nav-pills .nav-link.tab-lab { color: #2c7be5; }
.nav-pills .nav-link.tab-lab.active { background-color: #2c7be5 !important; color: #fff !important; }

.lab-card { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.lab-card:hover { border-color: #2c7be5; }
.lab-card.selected { border-color: #0acf97; border-width: 2px; box-shadow: 0 0 0 1px #0acf97; }
.lab-card.selected .lab-distanza { background-color: #0acf97 !important; color: #fff !important; }
.lab-card.fuori-raggio { opacity: 0.75; }
