html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
:root {
    --brand-red: #e21e26;
    --brand-grey: #f6f6f6;
    --text-muted: #6c757d;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.breadcrumb-lite {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin: 1rem 0 .5rem 0;
    padding-bottom: .25rem;
    border-bottom: 2px solid var(--brand-red);
}

.card-ghost {
    background: #fff;
    border: 1px solid #eee;
    border-radius: .5rem;
}

.muted-note {
    font-size: .9rem;
    color: var(--text-muted);
}

.btn-brand {
    background: var(--brand-red);
    color: #fff;
    border: none;
}

    .btn-brand:hover {
        background: #c01b21;
        color: #fff;
    }

.table thead th {
    background: var(--brand-grey);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.row-best {
    background: #fff5f5;
}

.badge-ok {
    background: #28a745 !important;
}

.badge-ko {
    background: #dc3545 !important;
}

.kv {
    font-size: .925rem;
    color: #333;
}

    .kv .k {
        color: var(--text-muted);
        width: 12rem;
        display: inline-block;
    }

.spinner-inline {
    display: none;
    margin-left: .5rem;
    vertical-align: middle;
}

.error-banner {
    display: none;
    margin-top: .5rem;
    padding: .5rem .75rem;
    background: #fff3f3;
    color: #a11212;
    border: 1px solid #f5c2c7;
    border-radius: .25rem;
}

.nav-tabs .nav-link.active {
    border-color: var(--brand-red) var(--brand-red) #fff;
    color: #000;
}

.nav-tabs .nav-link {
    color: #333;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
/* Wrapper navbar: 3 blocchi in linea */
.navbar-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* MENU CENTRATO */
.main-menu {
    display: flex;
    gap: 24px;
    font-size: 1.05rem;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}

/* ACCOUNT A DESTRA: SEMPRE */
.nav-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

/* Logo */
.navbar-brand img {
    height: 50px;
    width: auto;
}

/* Mobile: mostra il menu sotto */
@media (max-width: 992px) {

    .navbar-header-wrapper {
        flex-wrap: wrap;
    }

    .main-menu {
        margin: 10px 0;
        justify-content: flex-start;
    }

    .nav-account {
        margin-left: 0;
        padding-top: 10px;
        border-top: 1px solid #eee;
        width: 100%;
    }
}

/* verde chiaro */
.table td.cell-ok {
    background-color: #eaf7ea !important;
}

/* arancione chiaro */
.table td.cell-warn {
    background-color: #fff4e5 !important;
}

/* rosso chiaro */
.table td.cell-ko {
    background-color: #fdeaea !important;
}

/* grigio per dati non disponibili */
.table td.cell-na {
    background-color: #f6f7f8 !important;
    color: #6b7280;
}

.table td.cell-ok,
.table td.cell-warn,
.table td.cell-ko,
.table td.cell-na {
    transition: background-color .2s ease;
}


/* Badge "OK" finale */
.badge-agg-ok {
    display: inline-block;
    padding: .15rem .4rem;
    border-radius: .25rem;
    background: #2ecc71;
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
}