/* TinPos Cloud - stili globali */

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    overflow: hidden;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0.375rem;
    font-weight: 600;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.375rem;
}

/* Pagine "a schermo pieno": il contenuto occupa l'altezza disponibile,
   intestazioni/filtri/paging restano fissi e solo le righe della tabella
   scrollano internamente. */
.page-flex {
    height: calc(100dvh - 80px);
    max-height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.tab-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.table-area {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    background: var(--bs-body-bg);
}

.table-scroll {
    flex: 1 1 0;
    overflow: auto;
    min-height: 0;
}

.table-sticky {
    border-collapse: separate;
    border-spacing: 0;
}

    .table-sticky thead th {
        position: sticky;
        top: 0;
        z-index: 5;
        background: var(--bs-table-bg);
        box-shadow: inset 0 -1px 0 var(--bs-border-color);
    }

.table-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 3rem;
    padding: .75rem 1rem;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.loader-area {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Blazor error UI */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.6rem 1.25rem;
    background: #fee2e2;
    border-top: 1px solid #fca5a5;
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}
