/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-cqml2cazzj] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-cqml2cazzj] {
    flex: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar[b-cqml2cazzj] {
    background-color: var(--sidebar-background-color, var(--sidebar-color, #2c3e50));
    /* Prevent sidebar from changing width/visibility */
    flex-shrink: 0;
}

.top-row[b-cqml2cazzj] {
    background: var(--header-background-color, linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%));
    border-bottom: 2px solid var(--bs-primary, #2196f3);
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1010;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

    .top-row .header-logo[b-cqml2cazzj] {
        display: flex;
        align-items: center;
        height: 60px;
        flex-shrink: 0;
        padding-right: 1rem;
        border-right: 2px solid #2196f3;
    }

    .top-row .logo-img[b-cqml2cazzj] {
        height: 60px;
        max-height: 60px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
        display: block;
    }

    .top-row .company-info[b-cqml2cazzj] {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        margin-right: auto;
        padding-right: 1rem;
        overflow: hidden;
    }

    .top-row .company-name[b-cqml2cazzj] {
        font-size: 0.9rem;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-row .company-details[b-cqml2cazzj] {
        font-size: 0.72rem;
        color: #666;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.25rem 0.75rem;
        line-height: 1.3;
        overflow: hidden;
    }

        .top-row .company-details span[b-cqml2cazzj] {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .top-row .company-details i[b-cqml2cazzj] {
            font-size: 0.65rem;
            margin-right: 0.2rem;
        }

    .top-row .footer-text[b-cqml2cazzj] {
        font-size: 0.65rem;
        color: #777;
        font-style: italic;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }

    .top-row[b-cqml2cazzj]  a, .top-row[b-cqml2cazzj]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        flex-shrink: 0;
    }

    .top-row[b-cqml2cazzj]  a:hover, .top-row[b-cqml2cazzj]  .btn-link:hover {
        text-decoration: underline;
    }

@media (max-width: 640.98px) {
    .top-row[b-cqml2cazzj] {
        height: auto;
        min-height: 3.5rem;
        overflow: visible;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
        gap: 0.4rem;
    }

    article.content[b-cqml2cazzj] {
        padding: 0 1rem !important;
    }

    .top-row .header-logo[b-cqml2cazzj] {
        height: auto;
        border-right: none;
        border-bottom: 2px solid #2196f3;
        padding-right: 0;
        padding-bottom: 0.4rem;
        width: 100%;
        justify-content: center;
    }

    .top-row .logo-img[b-cqml2cazzj] {
        height: auto;
        max-height: 50px;
        max-width: 160px;
    }

    .top-row .company-info[b-cqml2cazzj] {
        height: auto;
        width: 100%;
        padding-right: 0;
    }

    .top-row .company-name[b-cqml2cazzj] {
        font-size: 0.82rem;
    }

    .top-row .company-details[b-cqml2cazzj] {
        font-size: 0.68rem;
        flex-wrap: wrap;
        gap: 0.2rem 0.5rem;
    }

    .top-row .footer-text[b-cqml2cazzj] {
        font-size: 0.62rem;
    }

    .top-row[b-cqml2cazzj]  a, .top-row[b-cqml2cazzj]  .btn-link {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (min-width: 641px) {
    .page[b-cqml2cazzj] {
        flex-direction: row;
    }

    .sidebar[b-cqml2cazzj] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }

    .top-row[b-cqml2cazzj] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

article.content[b-cqml2cazzj] {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Ensure all immediate children of article.content fill available width */
article.content > *[b-cqml2cazzj] {
    width: 100%;
    box-sizing: border-box;
}

/* Override Bootstrap row negative margins to prevent horizontal scrollbar */
article.content .row[b-cqml2cazzj] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

article.content .card[b-cqml2cazzj] {
    margin-left: auto;
    margin-right: auto;
}



#blazor-error-ui[b-cqml2cazzj] {
    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[b-cqml2cazzj] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.card[b-cqml2cazzj] {
    width: 100%;
    box-sizing: border-box;
}

.table-responsive[b-cqml2cazzj] {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    margin-left: 0;
    margin-right: 0;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-78mlxno5b3] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: var(--menu-text-color, white);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
    /* Fixed size to prevent layout shift */
    flex-shrink: 0;
}

.navbar-toggler:checked[b-78mlxno5b3] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-78mlxno5b3] {
    height: 3.5rem;
    background-color: var(--top-bar-color, rgba(0,0,0,0.4));
    /* Prevent top row from collapsing */
    flex-shrink: 0;
}

.navbar-brand[b-78mlxno5b3] {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--menu-text-color, white);
}

.bi[b-78mlxno5b3] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    font-size: 1rem;
    line-height: 1;
    color: var(--menu-text-color, white);
}

.nav-scrollable[b-78mlxno5b3] {
    display: none;
    /* Ensure stable sizing when visible */
    width: 100%;
}

.navbar-toggler:checked ~ .nav-scrollable[b-78mlxno5b3] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-78mlxno5b3] {
        display: none;
    }

    .nav-scrollable[b-78mlxno5b3] {
        display: block !important;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        scrollbar-gutter: stable;
        width: 100%;
        flex-shrink: 0;
    }
}

/* Note: Menu item styles with colors are in wwwroot/css/nav-menu-global.css to avoid Blazor scoping */
/* /Components/Pages/Pazienti.razor.rz.scp.css */
/* Stili per il pulsante allegati con badge */
.btn-allegati-wrapper[b-5xho0dheuk] {
    position: relative;
    display: inline-block;
}

.allegati-badge[b-5xho0dheuk] {
    position: absolute;
    top: -8px;
    right: -8px;
    transform: translate(30%, -30%);
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    background-color: #dc3545;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Assicura che la colonna Azioni abbia spazio sufficiente */
td.text-center[style*="Azioni"][b-5xho0dheuk] {
    min-width: 200px;
}

/* Evita che i badge dei bottoni si sovrappongano */
.btn.position-relative[b-5xho0dheuk] {
    overflow: visible;
}
