﻿:root {
    --font-title: #2074C0;
}

/* Banner de erro do circuito do Blazor Server - regra perdida numa limpeza
   de CSS anterior (só sobrou em wwwroot/css/site_backup.css, que não é
   carregado por nenhum <link>). Sem isso, a div fica sem estilo nenhum e
   aparece sempre visível no rodapé da página em vez de escondida até um
   erro real de verdade acontecer. */
#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;
}

.pc-container .pc-content {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
    padding-bottom: 20px;
}

h1 {
    font-size: 1.6rem;
    color: var(--font-title)
}

.table thead th {
    font-size: 0.8rem;
}

.table td {
    font-size: 0.8rem;
}

.page-breadcrumb .breadcrumb-item a {
    color: var(--font-title)
}

hr {
    height: 0 !important;
    margin-bottom: 1.2rem !important;
    margin-top: 2rem !important;
    border: 0 !important;
    border-top: 1px solid #cecece !important;
    opacity: 1 !important;
}

.app-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* LABEL */
.app-field-label {
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: #495057;
    transition: color 0.2s ease;
}

/* LABEL COM ERRO */
.app-field.has-error .app-field-label {
    color: #dc3545;
}

/* INPUT BASE */
.form-control {
    transition: all 0.2s ease;
}

    /* INPUT COM ERRO */
    .form-control.is-invalid {
        border-color: #dc3545;
        background-image: none;
        padding-right: 2.2rem;
        box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.12);
    }

/* ÍCONE DE ERRO */
.app-field.has-error::after {
    content: "⚠";
    position: absolute;
    right: 10px;
    top: 38px;
    font-size: 0.9rem;
    color: #dc3545;
    pointer-events: none;
}

/* MENSAGEM DE ERRO */
.app-field .validation-message,
.app-field .field-validation-error,
.app-field .text-danger {
    color: #dc3545;
    font-size: 0.82rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* INPUT FOCUS (mesmo com erro) */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.18rem rgba(220, 53, 69, 0.18);
}

/* BOTÃO SÓ COM ÍCONE (LemeIconButton) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    line-height: 1;
    border: none;
    background: transparent;
    color: #495057;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.btn-icon:disabled {
    opacity: 0.4;
    pointer-events: none;
}