html, body {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    height: 100%;
}

/* Experimento densidade grids: linhas mais baixas no MudTable Dense.
   Padrão Mud dense = padding 6px 16px. Reverter = remover este bloco. */
.mud-table.mud-table-dense .mud-table-cell,
.mud-simple-table.mud-table-dense * tr td,
.mud-simple-table.mud-table-dense * tr th {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.mud-table.mud-table-dense .mud-table-toolbar {
    min-height: 40px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Cabeçalhos dos grids: fundo azul Primary (faixa do AppBar) + texto branco.
   Homogêneo em Home, Gestão de lotes e Gestão de usuários.
   FixedHeader aplica surface branco com especificidade alta — precisamos igualar. */
.mud-table .mud-table-head .mud-table-cell,
.mud-table-sticky-header .mud-table-root .mud-table-head .mud-table-cell,
.mud-simple-table.mud-table-sticky-header table thead th {
    background-color: #1565C0 !important; /* Primary / AppBar */
    color: #fff !important;
    font-weight: 500;
    border-bottom: none;
}

.mud-table .mud-table-head .mud-table-sort-label,
.mud-table .mud-table-head .mud-table-sort-label .mud-table-sort-label-icon,
.mud-table .mud-table-head .mud-svg-icon {
    color: #fff !important;
}

.mud-table .mud-table-head .mud-table-sort-label:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

#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;
}

#blazor-error-ui .reload {
    color: inherit;
}

/* UI de reconexão Blazor Server (substitui o texto padrão em inglês). */
#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #f5f7fa;
    color: #0D47A1; /* azul escuro — legível sobre fundo claro */
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid #c5cae9;
    padding: 0.85rem 1.25rem;
    text-align: center;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
}

#components-reconnect-modal .reconnect-panel {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .reconnect-show,
#components-reconnect-modal.components-reconnect-failed .reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected .reconnect-rejected {
    display: block;
}

#components-reconnect-modal .reconnect-panel p {
    margin: 0 0 0.5rem 0;
    color: #0D47A1;
}

#components-reconnect-modal.components-reconnect-show .reconnect-panel p {
    margin-bottom: 0;
}

#components-reconnect-modal button {
    cursor: pointer;
    margin-top: 0.25rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid #0D47A1;
    border-radius: 4px;
    background: #fff;
    color: #0D47A1;
    font: inherit;
}

#components-reconnect-modal button:hover {
    background: #e8eaf6;
}
