@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');


:root {
    --bs-primary: #0B6EAD;
    --bs-primary-rgb: 11,110,173;
    --color-1: #0B6EAD;
    --color-1-dark: #024783;
    --color-2: #F1F1F7;
    --color-3: #F1F1F7;
    --color-4: #ef3f47;
    --color-5: #878C92;
    --color-6: #5B616A;
    --color-7: #C6C9CF;
    --color-8: #E7E8EF;
    --color-9: #53BBB4;
    --color-10: #3E9E95;
    --color-11: #f7e8e9;
    --color-12: #d30515;
    --color-13: #F9F9FB;
    --color-14: #f5f5f5;
    --color-15: #EA526F;
    --color-text: #666666;
    --dx-grid-header-color: #F9F9FB;
    --dx-grid-selection-color: #F9F9FB;
    --color-font-1: #0b6ead;
    --color-font-2: #53bbb3;
    --color-font-3: #9da2ff;
    --color-font-4: #ffa767;
    --color-font-5: #38aecc;
    --color-font-6: #5b616a;
    --color-font-7: #878c92;
    --color-font-8: #c6c9cf;
    --color-font-9: #e7e8ef;
    --color-font-10: #d5324d;
    --color-font-11: #f4bd37;
    --color-font-12: #ea526f;
    --color-font-13: #f6ae2d;
    --color-font-14: #49d49d;
    --color-font-15: #419cce;
    --color-font-16: #85b6d6;
    --background-color-1: #0b6ead;
    --background-color-2: #53bbb3;
    --background-color-3: #9da2ff;
    --background-color-4: #ffa767;
    --background-color-5: #38aecc;
    --background-color-6: #f6f6f6;
    --background-color-7: #f9aac4;
    --background-color-8: #f9cf58;
    --background-color-9: #38aecc;
    --background-color-10: #c6c9cf;
    --background-color-11: #d5324d;
    --background-color-12: #f9f9fb;
    --background-color-13: #e7e8ef;
    --background-color-14: #ea526f;
    --background-color-15: #94a4b4;
    --background-color-16: #ffdbd7;
    --background-color-17: #878c92;
    --background-color-18: #49d49d;
    --background-color-19: #6e9075;
    --background-color-20: #f18f01;
    --background-color-21: #095782;
    --background-color-22: #546d58;
    --background-color-23: #9d695a;
    --background-color-24: #ada7c9;
    --background-color-25: #f2f22f;
    --background-color-26: #5d7c62;
    --background-color-27: #d13057;
    --background-color-28: #908ab7;
    --background-color-29: #2dba7d;
    --background-color-30: #e1e1ea;
    --background-color-31: #8da6c4;
    --background-color-32: #85b6d6;
    --background-color-33: #f4dcde;
    --background-color-34: #edf3f7;
    --background-color-35: #f9eede;
    --background-color-36: #36b9cc;
    --background-color-37: #eaecf4;
    --background-color-38: #ff6f59;
    --background-color-39: #90e0be;
    --background-color-40: #dff2f1;
    --background-color-41: #e6f0f7;
    --background-color-42: #f9e0e4;
    --background-color-43: #98d6d1;
    --background-color-44: #d6e8f2;
    --background-color-45: #f5fcfb;
    --background-color-46: #9dc5de;
    --background-color-47: #fdefd5;
    --background-color-48: #f9d6bd;
    --background-color-49: #f4d8b0;
    --background-color-50: #bae5e1;
    --background-color-51: #f9c9c5;
    --background-color-52: #419cce;
    --background-color-53: #fff2e8;
    --background-color-54: #f9e0e4;
    --background-color-55: #ebedff;
    --background-color-56: #b6e5ef;
    --border-color-1: #e7e8ef;
    --border-color-2: #53bbb3;
    --border-color-3: #f9aac4;
    --border-color-4: #f9cf58;
    --border-color-5: #61dbd0;
    --border-color-6: #0b6ead;
    --border-color-7: #c6c9cf;
    --border-color-8: #ffa767;
    --border-color-9: #d5324d;
    --border-color-10: #38aecc;
    --border-color-11: #9da2ff;
    --border-color-12: #dff2f1;
    --border-color-13: #d6e8f2;
    --border-color-14: #dcdee5;
    --gradient-1: linear-gradient(#d6e8f2,#38aecc);
}
.dxbl-treeview {
    --dxbl-treeview-item-spacing-y: 0 rem;
}

.dxbl-text {
    --dxbl-text-padding-y: 0 rem;
}

.dxbl-splitter {
    --dxbl-splitter-separator-bg: color-mix(in srgb, #fff 80%, #0B6EAD);
}
.dxbl-treeview .dxbl-treeview-item > .dxbl-treeview-item-content > .dxbl-treeview-item-container:not(.dxbl-disabled):not(:disabled).dxbl-active::before {
    background-color: #F1F1F7;
}
html, body, table {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text) !important;
}

    table > thead {
        font-weight: 600;
    }

    table > tbody {
        font-weight: 500;
    }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.content {
    padding-top: 1.1rem;
}

.titologruppo {
    color: #1b6ec2;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}


input[type="radio"]:focus {
    border: none !important;
}

input[type="checkbox"]:focus {
    border: none !important;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/*
LAYOUT BASE
*/

.tb-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
    background-position: center center;
    background-color: var(--color-1);
    opacity: 0.7;
}
.page {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: default;
}

.main-drawer .dxbl-drawer-content {
    height: 100vh;
    overflow: hidden;
}


.main-drawer .dxbl-drawer-panel {
    padding: 0;
    background-color: var(--color-1);
    z-index:1040 !important;
}
    .main-drawer .dxbl-drawer-panel .dxbl-drawer-body {
        padding: 0;
    }

    .main-drawer .dxbl-drawer-panel .dxbl-drawer-footer {
        border: 0;
    }

.sidebar {
    background-color: var(--color-1);
    z-index: 3 !important;
    width: 280px;
    height: 100%;
}


.header {
    z-index: 1000;
    height: 3.5rem;
    top: 0px;
    background-color: #fff;
    width: 100%;
    border-bottom: 1px solid lightgrey;
}

.main-content {
    padding: 1.0rem 1.0rem 1.0rem 1.0rem;
    overflow: auto;
    height: calc(100% - 3rem);
}
.titoloHeaderWidth {
    width:280px;
}
.titoloHeader {
    display: inline;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 0;
        height: auto; /* Se non vuoi altezza fissa su mobile */
        border-top: 0;
    }
    .titoloHeader {
        display: none;
    }

    .titoloHeaderWidth {
        width: auto;
    }
}


@media (max-width: 821px) {
    .header {
       /* height: 0rem;*/
    }

    .main-content {
        top: 0;
        padding: 0;
        margin: 0;
        height: auto;
    }
    .salva {
        padding-top: 5px;
        padding-bottom: 0px;
      
    }

}

@media (max-width:400px) {
    .dxbs-toolbar .dxbs-ta-title {
        display: none !important;
    }
}

.main-contentedit {
    max-width: 1100px;
}

.salva {
    position: fixed;
    bottom: 0px;
    right: 0px;
    background: white;
    padding-top: 10px;
    padding-bottom: 6px;
    box-shadow: 2px 2px 19px #a1a1a1;
    width: 100%;
    text-align: right;
    z-index: 2;
}

/*
FINE LAYOUT
*/

.imagerowbutton {
    width: 1.5rem;
}

.imagerow {
    width: 1.5rem;
    margin-right: 0.5rem;
}

.imagemenu1 {
    width: 1.5rem;
    margin-right: 0.5rem;

}

.imagemenu2 {
    width: 1.3rem;
    margin-right: 0.5rem;
}

.textmenu1 {
    font-weight: 600;
    cursor: pointer;
}

.textmenu2 {
    font-weight: 600;
    cursor: pointer;
}

.linkmenu1 {
    padding: 1rem 0rem 0.65rem 1rem;
    text-decoration: none;
    border: none;
    transform: scale(1);
}

    .linkmenu1.active {
        background-color: #09588a;
        color: #ffffff;
    }

    .linkmenu1:not(.active) {
        background-color: #0B6EAD;
        color: rgba(255,255,255,0.9);
    }

    .linkmenu1:hover {
        background-color: #09588a;
        color: rgba(255,255,255,0.9);
    }


.linkmenuParent {
    padding: 1rem 0rem 0.65rem 1rem;
    text-decoration: none;
    border: none;
    transform: scale(1);
    background-color: #3F84E8;
}
    .linkmenuParent.active {
        background-color: #3F84E8;
        color: rgba(255,255,255,0.9);
    }

    .linkmenuParent:not(.active) {
        background-color: #0B6EAD;
        color: rgba(255,255,255,0.9);
    }

    .linkmenuParent:hover {
        background-color: #1f5a8d;
        color: rgba(255,255,255,0.9);
    }

.linkmenu2 {
    padding: 0.65rem 0rem 0.65rem 1.5rem;
    text-decoration: none;
    border: none;
    transform: scale(1);
}

    .linkmenu2.active {
        background-color: #09588a;
        color: #ffffff;
    }

    .linkmenu2:not(.active) {
        background-color: #0B6EAD;
        color: rgba(255,255,255,0.9);
    }
    .linkmenu2:hover {
        background-color: #2c6c96;
        color: rgba(255,255,255,0.9);
    }


.nav imagemenu1 {
    width: 32px;
    margin-left: 0px;
    margin-right: 9px;
}

.expand-btn {
}


.loader img, .loadergif {
    width: 18px
}

/*button, .dx-btn, .btn.dx-btn,
.dxbs-toolbar > .btn-toolbar > .dxbs-toolbar-group > button.dxbs-toolbar-btn.btn {
    border-width: 1px;
    border-color: var(--color-2);
    border-style: solid;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 500;
    padding: 5px 15px;
    margin: 0 .5rem;
}*/

.btn-primary {
    color: #fff;
    background-color: var(--color-1);
    border-color: var(--color-1);
}

    .btn-primary:hover {
        background-color: var(--color-1-dark);
        border-color: var(--color-1-dark);
    }


.invisible, .dxbs-tree .expand-btn.btn:not(:last-child) {
    margin-right: 0rem;
    padding: 3px;
}

.user-widgets-container {
    background-color: #fff;
    border-radius: 10px !important;
    padding: 15px !important;
}

.dxbl-grid-group-row {
    font-weight: bold !important;
}

.dxbl-grid-group-footer-row {
    font-weight: 800 !important;
}

.dxbl-grid-header-content {
    justify-content: center !important;
}




.salva button, .salva .dx-btn, .salva .btn.dx-btn {
    font-size: 1rem;
}


.ellipsisRow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classTextNode {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.rowGrid {
    height: 36px !important;
}

.gridFileCssClass {
    width: 100% !important;
    height: 100% !important;
    max-width: 1600px;
}

    .gridFileCssClass td {
        border-left-width: 0px !important;
        border-right-width: 0px !important;
    }

    .gridFileCssClass th {
        border-left-width: 0px !important;
        border-right-width: 0px !important;
    }

        .gridFileCssClass th:nth-child(5) {
            text-align: center !important;
        }

.dxbs-tree .expand-btn.btn {
    padding: 0px;
}

    .dxbs-tree .expand-btn.btn:not(:last-child) {
        margin-right: 0px;
    }

.dxbs-tree ul.nav > .nav-item > .nav-link {
    padding: 0px;
}

.dxbs-tree > ul.nav ul.nav {
    margin-top: 0.2em;
    margin-right: 0px;
    margin-bottom: 0.2em;
    margin-left: 1em;
}

.scrollGrid {
    padding-top: 5px;
    height: calc(100vh - 320px);
}

.highlighted-item:hover {
    background-color: #F1F1F7 !important;
}


.dxbs-grid-table > tbody > tr.dxbs-grid-group-footer-row > td > div, .dxbs-grid .dxbs-grid-table > tbody > tr > td, .dxbs-grid .dxbs-grid-table > tfoot > tr > td > div, .dxbs-grid .dxbs-grid-table > thead > tr > th span {
    white-space: nowrap;
}


.icona-giorni-calendario {
    position: absolute;
    width: 10px;
    right: -6px;
    top: -6px;
}

.disabled {
    color: gray!important;
}

.list-group-item:first-child {
    border-top-left-radius: initial !important;
    border-top-right-radius: initial !important;
}

.list-group-item:last-child {
    border-top-left-radius: initial !important;
    border-top-right-radius: initial !important;
}

.dxbl-treeview .dxbl-treeview-item > .dxbl-treeview-item-content > .dxbl-treeview-item-container:not(.dxbl-disabled):not(:disabled).dxbl-active {
    position: relative;
    background-color: #F1F1F7;
    color: inherit;
}

.sfondoGrigio {
    background-color: #e9ecef;
}
.hiddenHeader {
    display: none;
}

.fontNormal {
    text-decoration: none !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #212529;
}

.panel-pwa {
    position: fixed;
    top: 92%;
    left: 50%;
    z-index: 9001;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: lightskyblue;
    min-width: max-content;
}

.panel-pwaiphone {
    position: fixed;
    top: 92%;
    left: 50%;
    z-index: 9001;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 90%;
    background-color: white;
}

/*
Context
*/

.error-container {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgb(0 0 0 / 20%);
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1001;
}

.error-message {
}

.reload {
    cursor: pointer;
}

.dismiss-error {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.panel-wait {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9001;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.panel-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9001;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/*
breadcrumbs
*/


.breadcrumbs .items {
    align-items: center;
}

    .breadcrumbs .items > * {
        display: inline-block;
        font-size: 1.5vh;
        font-weight: 600;
        margin-right: 0.5rem;
        white-space: nowrap;
    }

    .breadcrumbs .items > a {
        color: inherit;
    }

    .breadcrumbs .items > span {
        cursor: default;
    }

        .breadcrumbs .items > span.separator {
            border-style: solid;
            border-width: 5px !important;
            border-top-color: transparent !important;
            border-right-color: transparent !important;
            border-bottom-color: transparent !important;
            width: 0;
            height: 0;
            margin-top: 0.1rem;
            margin-right: 0.5rem;
        }

.homeB {
    height: 23px;
    background-image: url("images/tools/Home.svg");
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: left;
    border: none;
    padding-left: 25px;
    text-decoration: none;
}

/*
drop
*/

.drop-zone {
    padding: 0 !important;
    border-style: dashed !important;
    border-width: 2px !important;
    height: 230px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-color: rgba(34, 34, 34, 0.125);
    border-radius: 0.5rem !important;
    line-height: 1.5rem !important;
    font-size: 1.2rem !important;
}

    .drop-zone svg {
        width: 42px;
        height: 42px;
    }
.drop-zone-drag {
    padding: 0 !important;
    border-style: dashed !important;
    border-width: 2px !important;
    height: 230px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-color: black;
    border-radius: 0.5rem !important;
    line-height: 1.5rem !important;

    background: rgb(194, 243, 194);
   
}

.upload-container,
.upload-container > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.drop-file-icon {
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    width: 42px;
    height: 42px;
    -webkit-mask-image: url("../images/tools/DropFile.svg");
    mask-image: url("../images/tools/DropFile.svg");
}

/*
generico
*/
#gridStandard th {
    text-align: center;
    overflow-wrap: break-word;
    background: whitesmoke;
}

th {
    text-align: center !important;
    font-weight: bold;
}

.spinEditInput {
    text-align: right;
}

.numericEditInput {
    text-align: right;
}

.modal-title {
    color: #1b6ec2;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}


.required-caption:after {
    content: '*';
    color: red;
    padding-left: 3px;
    font-size: 16px;
    font-family: 'Montserrat';
}

.border-dash-right {
    background: linear-gradient(#000 53%, #fff 0%) right / 2px 20px repeat-y;
}
.search {
    padding: 0.5rem 0.25rem 0.25rem 0.25rem;
    position: relative;
    min-width: 123px;
    height: fit-content;
}

    .search .search-input {
        padding-right: calc(24px + 0.5rem);
    }

    .search .search-button {
        right: 0px;
        top: 0px;
        pointer-events: auto;
        z-index: 3;
        width: auto;
        display: flex;
        align-items: center;
        height: 100%;
        position: absolute;
        color: gray;
    }

        .search .search-button .search-icon {
            background-color: currentColor;
            opacity: 0.5;
            width: 24px;
            height: 24px;
            mask-image: url("/images/tools/Search.svg");
            -webkit-mask-image: url("/images/tools/Search.svg");
            background-repeat: no-repeat;
            -webkit-mask-repeat: no-repeat;
        }

        .search .search-button .clear-icon {
            background-color: currentColor;
            opacity: 0.4;
            width: 24px;
            height: 24px;
            mask-image: url("/images/tools/Delete.svg");
            -webkit-mask-image: url("/images/tools/Delete.svg");
            background-repeat: no-repeat;
            -webkit-mask-repeat: no-repeat;
        }
.separator {
    border-style: solid;
    border-width: 5px !important;
    border-top-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    width: 0;
    height: 0;
    margin-left: 0.2rem;
    margin-top: 0.1rem;
}



/* Header */
.app-header {
    flex-wrap: nowrap;
}

.header-actions {
    flex-wrap: nowrap;
}

    /* opzionale: limita un minimo la search su desktop */
    .header-actions .search {
        min-width: 280px;
    }

@media (max-width: 768px) {
    .app-header {
        flex-wrap: wrap; /* consente andare a capo */
        align-items: flex-start;
    }

    .brand {
        width: 100%;
    }

        .brand .h2 {
            font-size: 1.1rem; /* riduce titolo su mobile */
            line-height: 1.2;
        }

    .header-actions {
        width: 100%;
        align-items: stretch; /* full width */
    }

        .header-actions .search {
            width: 100%;
            min-width: 0;
        }

        .header-actions .user {
            display: flex;
            justify-content: center; /* utente centrato sotto */
        }
}



/* FOOTER */

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }

    .footer-text {
        font-size: .85rem;
        line-height: 1.4;
    }

        .footer-text span {
            display: inline-block;
        }
}

/* =========================================================
   [GRAFICA] Layout stile Autodesk Help (06/10/2026)
   ========================================================= */
.bh-header {
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem 1rem;
    min-height: 56px;
}
.bh-brand { display: flex; align-items: center; gap: .6rem; cursor: pointer; min-width: 0; }
.bh-brand-name { font-size: 1.25rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-badges { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.bh-test { cursor: default; user-select: none; font-size: .7rem; font-weight: 700; background: #f4bd37; color: #1f2328; border-radius: 3px; padding: 1px 6px; flex-shrink: 0; }
/* [SIMULA] aperto da "Simula" del BackEnd */
.bh-simula { background: #b33c0c; color: #fff; } /* [ACCESSIBILITA] contrasto 5.9:1 (prima #d9480f, 4.3:1) */
.bh-bozza { background: #6c757d; color: #fff; margin-right: 6px; }
/* [DEBUG] pulsante in simulazione */
.bh-debug { font-size: .7rem; font-weight: 700; border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; border-radius: 3px; padding: 1px 6px; flex-shrink: 0; cursor: pointer; }
.bh-debug.on { background: #fff; color: #0b5cad; }
.bh-search { flex: 1; max-width: 420px; margin: 0 auto; } /* [GRAFICA] 10/10/2026: prima 620px */
.bh-search .dxbl-text-edit { border-radius: 18px; border: 0; min-height: 36px; padding-left: .5rem; }
.bh-user { flex-shrink: 0; }
@media (max-width: 768px) {
    .bh-header { flex-wrap: wrap; gap: .5rem; }
    .bh-brand { flex: 1; }
    .bh-brand-name { font-size: 1.05rem; }
    .bh-search { order: 3; flex-basis: 100%; max-width: none; }
}

/* Albero */
.bh-toc { background: #F6F7FA; }
.bh-toc .dxbl-treeview .dxbl-treeview-item > .dxbl-treeview-item-content > .dxbl-treeview-item-container:not(.dxbl-disabled):not(:disabled).dxbl-active,
.bh-toc .dxbl-treeview .dxbl-treeview-item > .dxbl-treeview-item-content > .dxbl-treeview-item-container:not(.dxbl-disabled):not(:disabled).dxbl-active::before {
    background-color: #E8F1F8;
    color: var(--bs-primary);
    font-weight: 600;
}
.bh-toc .dxbl-treeview .dxbl-treeview-item > .dxbl-treeview-item-content > .dxbl-treeview-item-container:not(.dxbl-disabled):not(:disabled).dxbl-active {
    box-shadow: inset 3px 0 0 var(--bs-primary);
}

/* Pagina */
.bh-scroll { height: 100%; overflow: auto; }
.bh-page { display: flex; justify-content: flex-start; gap: 2rem; padding: 1.5rem 2rem 3rem; }
/* [ACCESSIBILITA] colonna del testo misurata in caratteri (WCAG 1.4.8: righe di al massimo 80 caratteri):
   segue la dimensione del carattere scelta dall'utente (1.4.4). prima: max-width 880px */
.bh-article { flex: 1; min-width: 0; } /* [GRAFICA] 09/10/2026: contenuto sempre a tutto schermo (prima max-width 75ch, centrato) */
.bh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .82rem; color: #5B616A; }
.bh-crumbs a { color: #5B616A; text-decoration: none; }
.bh-crumbs a:hover { color: var(--bs-primary); text-decoration: underline; }
.bh-crumb-current { color: #1f2328; }
.bh-title { font-size: 1.9rem; font-weight: 500; color: #1f2328; margin: .5rem 0 .4rem; }
.bh-meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; margin-bottom: 1rem; }
.bh-key { border: 1px dashed #f4bd37; background: #fffbea; border-radius: 4px; padding: 1px 8px; }

.bh-content { line-height: 1.65; color: #1f2328; overflow-wrap: anywhere; }
.bh-content img, .bh-content video, .bh-content iframe, .bh-content svg { max-width: 100%; height: auto; }
/* [ACCESSIBILITA] tabelle larghe: scorrono dentro il proprio riquadro (bh-table-wrap, creato da bluHelper.buildOnPage),
   mai la pagina (WCAG 1.4.10). prima: display:block sulla tabella, che toglie la semantica di tabella ad alcuni lettori di schermo */
.bh-content .bh-table-wrap { max-width: 100%; overflow-x: auto; margin: 1rem 0; }
.bh-content .bh-table-wrap:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.bh-content .bh-table-wrap > table { margin: 0; }
.bh-content h2 { font-size: 1.35rem; font-weight: 500; margin: 1.75rem 0 .5rem; scroll-margin-top: 1rem; }
.bh-content h3 { font-size: 1.1rem; font-weight: 500; margin: 1.25rem 0 .4rem; scroll-margin-top: 1rem; }
/* [IMPORT WORD] riquadri (Attenzione, Regola, ...) e tabelle dei manuali importati */
.bh-content blockquote { margin: 1rem 0; padding: .75rem 1rem; background: #eaf5fa; border-left: 4px solid #1b75bb; border-radius: 4px; }
.bh-content blockquote > :last-child { margin-bottom: 0; }
.bh-content table { border-collapse: collapse; margin: 1rem 0; }
.bh-content th, .bh-content td { border: 1px solid #c9d3dd; padding: .4rem .6rem; vertical-align: top; text-align: left; }
.bh-content th { background: #d9edf7; font-weight: 600; }

.bh-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.bh-card { border: 1px solid #E1E3E8; border-radius: 6px; padding: .85rem 1rem; }
.bh-card h4, .bh-card .bh-card-title { margin: 0 0 .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #5B616A; font-weight: 600; }
.bh-card ul { margin: 0; padding-left: 1.1rem; line-height: 1.8; }
.bh-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.bh-tag { background: #F6F7FA; border: 1px solid #E1E3E8; border-radius: 12px; padding: 1px 10px; font-size: .82rem; }

.bh-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid #E1E3E8; }
.bh-pager a { display: block; border: 1px solid #E1E3E8; border-radius: 6px; padding: .6rem .9rem; min-width: 200px; max-width: 48%; text-decoration: none; color: var(--bs-primary); }
.bh-pager a:hover { border-color: var(--bs-primary); background: #F6F9FC; }
.bh-pager small { display: block; color: #5B616A; font-size: .75rem; }
.bh-pager .bh-next { margin-left: auto; text-align: right; }

.bh-onpage { width: 220px; flex-shrink: 0; position: sticky; top: 0; align-self: flex-start; padding-top: .5rem; }
.bh-onpage.bh-onpage-empty { display: none; }
.bh-onpage-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #5B616A; font-weight: 600; margin-bottom: .5rem; }
.bh-onpage a { display: block; font-size: .82rem; padding: .25rem .6rem; border-left: 2px solid #E1E3E8; color: #444; text-decoration: none; }
.bh-onpage a.bh-onpage-sub { padding-left: 1.3rem; }
.bh-onpage a:hover { color: var(--bs-primary); }
.bh-onpage a.active { border-left-color: var(--bs-primary); color: var(--bs-primary); }
@media (max-width: 1200px) { .bh-onpage { display: none !important; } }
@media (max-width: 768px) {
    .bh-page { padding: 1rem; }
    .bh-title { font-size: 1.5rem; }
    .bh-pager a { min-width: 0; }
}

/* Risultati ricerca */
.bh-results { padding: 1.5rem 2rem; }
.bh-hit-path { font-size: .75rem; color: #5B616A; margin-top: 2px; }
.bh-hit-title { font-size: 1.05rem; }
@media (max-width: 768px) { .bh-results { padding: 1rem; } }

.bh-footer { font-size: .8rem; }

/* =========================================================
   [FAQ] Domande frequenti (06/10/2026)
   ========================================================= */
.bh-faqbtn { flex-shrink: 0; border: 1px solid rgba(255,255,255,.6); color: #fff; background: transparent; border-radius: 18px; padding: .3rem .9rem; white-space: nowrap; }
.bh-faqbtn:hover { background: rgba(255,255,255,.15); }
.bh-faqbtn.on { background: #fff; color: var(--bs-primary); font-weight: 600; }
@media (max-width: 768px) { .bh-faqbtn { padding: .2rem .7rem; font-size: .85rem; } }

/* riquadro FAQ (in fondo alla sezione e nei risultati di ricerca) */
.bh-relfaq { margin-top: 2rem; border: 1px solid #E1E3E8; border-radius: 8px; overflow: hidden; }
.bh-relfaq-head { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: #F6F7FA; border-bottom: 1px solid #E1E3E8; }
.bh-relfaq-head h3, .bh-relfaq-head h2 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #5B616A; font-weight: 600; }
.bh-relfaq-head a { margin-left: auto; font-size: .85rem; text-decoration: none; }

/* singola FAQ a fisarmonica */
.bh-q { border-bottom: 1px solid #E1E3E8; }
.bh-q:last-child { border-bottom: 0; }
.bh-q-head { display: flex; align-items: flex-start; gap: .7rem; width: 100%; padding: .8rem 1rem; border: 0; background: transparent; text-align: left; color: #1f2328; }
.bh-q-head:hover { background: #F6F9FC; }
.bh-faq-num { flex-shrink: 0; font-size: .72rem; font-weight: 700; color: var(--bs-primary); background: #E8F1F8; border-radius: 4px; padding: 2px 7px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.bh-q-text { flex: 1; font-weight: 500; }
.bh-q-snippet { display: block; font-weight: 400; font-size: .88rem; color: #444; margin-top: .2rem; }
.bh-q-chev { flex-shrink: 0; color: #5B616A; transition: transform .15s; }
.bh-q.open .bh-q-chev { transform: rotate(90deg); }
.bh-q-body { padding: 0 1rem 1rem 4.4rem; }
.bh-q-hl { box-shadow: inset 3px 0 0 #f4bd37; background: #fffdf4; }
.bh-q-see { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .7rem; font-size: .85rem; color: #5B616A; }
.bh-q-see a { text-decoration: none; border: 1px solid #cfe0ef; background: #F4F9FD; border-radius: 12px; padding: 1px 10px; }
.bh-q-copy { margin-left: auto; border: 0; background: transparent; color: #5B616A; font-size: .8rem; }
.bh-q-copy:hover { color: var(--bs-primary); }
@media (max-width: 768px) { .bh-q-body { padding-left: 1rem; } }

/* pagina FAQ */
.bh-faqpage { padding: 1.5rem 2rem 3rem; } /* [ACCESSIBILITA] prima: 900px */
.bh-faq-top { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.bh-faq-sub { color: #5B616A; font-size: .9rem; }
.bh-faq-filter { margin-left: auto; min-width: 260px; }
.bh-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.1rem 0 .4rem; }
.bh-chip { border: 1px solid #767c85; border-radius: 14px; padding: .2rem .75rem; font-size: .85rem; background: #fff; color: #1f2328; }
.bh-chip.on { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.bh-faq-group { margin-top: 1.5rem; }
.bh-faq-group h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .5rem; }
.bh-faq-group h2 small { color: #5B616A; font-weight: 400; font-size: .85rem; margin-left: .4rem; }
.bh-faq-box { border: 1px solid #E1E3E8; border-radius: 8px; }
.bh-faq-empty { margin-top: 2rem; padding: 2rem; border: 1px dashed #E1E3E8; border-radius: 8px; text-align: center; color: #5B616A; }
@media (max-width: 768px) { .bh-faqpage { padding: 1rem; } .bh-faq-filter { margin-left: 0; width: 100%; } }

/* =========================================================
   [ACCESSIBILITA] WCAG 2.1/2.2 AA (09/10/2026)
   ========================================================= */
/* testo solo per i lettori di schermo */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
/* focus sempre visibile (2.4.7), anche su sfondo blu */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, .bh-table-wrap:focus-visible { outline: 3px solid #0b5cad !important; outline-offset: 2px; }
.bh-header a:focus-visible, .bh-header button:focus-visible, .bh-header input:focus-visible { outline-color: #fff !important; }
.bh-title:focus, #main-content:focus { outline: none; }
.bh-title:focus-visible { outline: 3px solid #0b5cad; outline-offset: 4px; }
/* salta al contenuto (2.4.1): visibile solo quando riceve il focus */
.bh-skip { position: absolute; left: .5rem; top: -100px; z-index: 2000; background: #fff; color: #0b5cad; padding: .5rem 1rem; border-radius: 4px; font-weight: 600; text-decoration: underline; }
.bh-skip:focus { top: .5rem; }
/* logo + nome della versione: pulsante senza aspetto da pulsante */
.bh-brand-btn { display: flex; align-items: center; gap: .6rem; min-width: 0; background: transparent; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
/* avatar utente: pulsante */
.bh-avatar-btn { background: transparent; border: 0; padding: 0; border-radius: 50%; min-width: 32px; min-height: 32px; }
/* filtri della ricerca: pulsanti con aspetto da link */
.bh-filter-btn { background: transparent; border: 0; padding: 2px 0; text-align: left; text-decoration: none; min-height: 24px; }
.bh-filter-btn:hover { text-decoration: underline; }
/* dimensione minima dei bersagli 24x24 (2.5.8) */
.bh-debug, .bh-test.bh-simula, .bh-q-copy, .bh-chip, .bh-crumbs a, .bh-onpage a { min-height: 24px; }
.bh-debug, .bh-q-copy { min-width: 24px; }
/* link nel testo riconoscibili non solo dal colore (1.4.1) */
.bh-content a, .bh-q-see a, .bh-card a { text-decoration: underline; }
/* reflow a 320 px (1.4.10): niente larghezze fisse nella barra in alto */
@media (max-width: 400px) {
    .bh-header { padding: .5rem; }
    .bh-faqbtn { white-space: normal; }
    .bh-brand-name { white-space: normal; }
}
/* chi preferisce meno animazioni (buona pratica, 2.3.3 AAA) */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* [GRAFICA] 09/10/2026: etichette dell'header centrate, breadcrumb più pulita */
.bh-test, .bh-debug {
    display: inline-flex; align-items: center; justify-content: center;
    height: 24px; min-height: 24px; line-height: 1; padding: 0 8px;
    letter-spacing: .03em; vertical-align: middle;
}
.bh-crumbs { gap: .15rem; font-size: .8rem; line-height: 1.2; color: #6b7280; margin-left: -.4rem; }
.bh-crumbs a, .bh-crumb-current {
    display: inline-flex; align-items: center; min-height: 24px;
    padding: 0 .4rem; border-radius: 4px;
}
.bh-crumbs a { color: #4b5563; text-decoration: none; }
.bh-crumbs a:hover { background: #eef3f8; color: var(--bs-primary); text-decoration: none; }
.bh-crumb-current { color: #1f2328; font-weight: 600; }
.bh-crumb-sep { font-size: .65rem; color: #9aa0a6; line-height: 1; }

/* [GRAFICA] 10/10/2026: niente riquadro bianco intorno alla casella di ricerca quando è selezionata
   (era il contorno del focus delle regole [ACCESSIBILITA], bianco nell'header); resta il focus di DevExpress */
.bh-header .bh-search input:focus, .bh-header .bh-search input:focus-visible { outline: none !important; }
