/* _content/DocFlow.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/*
  COMMENTO CODICE: DocFlow.Web\Components\Layout\MainLayout.razor.css
  Effetto: layout Blazor condiviso dall'interfaccia web.
  Scopo: definisce lo stile visuale per MainLayout.razor e per gli elementi HTML/Blazor collegati.
*/

.document-shell[b-qwpih74yo6] {
    min-height: calc(100vh - var(--topbar-offset, 3.5rem));
    display: grid;
    grid-template-columns: minmax(200px, var(--tree-rail-width, 268px)) minmax(0, 1fr);
    background: #f5f7f8;
}

.document-tree-rail[b-qwpih74yo6] {
    position: sticky;
    top: var(--topbar-offset, 3.5rem);
    height: calc(100vh - var(--topbar-offset, 3.5rem));
    overflow: auto;
    border-right: 1px solid #d8e0e4;
    background: #ffffff;
}

.document-main[b-qwpih74yo6] {
    min-width: 0;
}

.app-topbar[b-qwpih74yo6] {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid #d8e0e4;
    background: #ffffff;
}

.app-topbar strong[b-qwpih74yo6] {
    display: block;
}

.app-topbar span[b-qwpih74yo6] {
    color: #60717d;
    font-size: .82rem;
}

.top-config-menu[b-qwpih74yo6] {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.top-config-menu a[b-qwpih74yo6], .top-config-menu button[b-qwpih74yo6], .top-config-menu summary[b-qwpih74yo6] {
    border: 1px solid #cad6d9;
    border-radius: 6px;
    padding: .4rem .6rem;
    color: #263740;
    background: #ffffff;
    text-decoration: none;
    font-size: .86rem;
}

.top-config-menu button[b-qwpih74yo6] {
    cursor: pointer;
}

.top-config-menu details[b-qwpih74yo6] {
    position: relative;
}

.top-config-menu summary[b-qwpih74yo6] {
    cursor: pointer;
    list-style: none;
}

.top-config-menu summary[b-qwpih74yo6]::-webkit-details-marker {
    display: none;
}

.top-config-menu details div[b-qwpih74yo6] {
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
    min-width: 180px;
    display: grid;
    gap: .25rem;
    border: 1px solid #cad6d9;
    border-radius: 8px;
    padding: .35rem;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(20, 35, 45, .16);
}

.top-config-menu details div a[b-qwpih74yo6] {
    border: 0;
    background: #f5f7f8;
}

.content[b-qwpih74yo6] {
    padding-top: 1.25rem;
}

.license-expiry-toast[b-qwpih74yo6] {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1300;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: min(360px, calc(100vw - 2rem));
    padding: .9rem 1rem;
    border: 1px solid #d99a28;
    border-left: 4px solid #b86f00;
    border-radius: 8px;
    color: #32210a;
    background: #fff8e8;
    box-shadow: 0 14px 34px rgba(33, 24, 10, .22);
}

.license-expiry-toast div[b-qwpih74yo6] {
    display: grid;
    gap: .25rem;
}

.license-expiry-toast strong[b-qwpih74yo6] {
    font-size: .95rem;
}

.license-expiry-toast span[b-qwpih74yo6] {
    font-size: .86rem;
    line-height: 1.35;
}

.license-expiry-toast button[b-qwpih74yo6] {
    flex: 0 0 auto;
}

#blazor-error-ui[b-qwpih74yo6] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

@media (max-width: 900px) {
    .document-shell[b-qwpih74yo6] {
        grid-template-columns: 1fr;
    }

    .document-tree-rail[b-qwpih74yo6] {
        position: relative;
        top: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid #d8e0e4;
    }

    .document-main[b-qwpih74yo6] {
        display: block;
        clear: both;
    }

    .app-topbar[b-qwpih74yo6] {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
        padding: .8rem 1rem;
    }

    .top-config-menu[b-qwpih74yo6] {
        flex-wrap: wrap;
    }

    .content[b-qwpih74yo6] {
        padding-top: 1.25rem !important;
    }
}
