/* Estilo comum a todas as telas. O CSS próprio de cada tela vem depois e pode sobrescrever. */

:root {
    --cor-primaria: #004b69;
    --cor-primaria-escura: #003045;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #eef3f6 0%, #f8f9fa 100%);
    padding-top: 76px;
    color: #333;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 0.25rem;
}

.page-header p {
    color: #666;
    margin: 0;
}

/* ---------- Menu do topo (menu.php) ---------- */

.navbar-vet {
    background: linear-gradient(135deg, #003045 0%, #004b69 55%, #006d8f 100%) !important;
    box-shadow: 0 4px 24px rgba(0, 31, 46, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.navbar-vet .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff !important;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    padding: 0.35rem 0;
}
.navbar-vet .brand-escudo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff 0%, #e8f0f4 100%);
    color: #004b69;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}
.navbar-vet .brand-escudo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.navbar-vet .brand-texto small {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.75;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}
.nav-vet {
    gap: 0.35rem;
    align-items: center;
}
.nav-vet .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.18s;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
}
.nav-vet .nav-link .nav-ico {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
}
.nav-vet .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1);
}
.nav-vet .nav-link.ativo {
    background: rgba(255, 255, 255, 0.95);
    color: #004b69 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.nav-vet .nav-link.ativo .nav-ico { opacity: 1; }
.nav-vet .nav-link.saldo-nav,
.nav-vet .nav-link.saldo-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.88) !important;
    font-variant-numeric: tabular-nums;
    cursor: default;
    font-size: 0.82rem;
}
.nav-vet .nav-link.btn-entrar {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}
.nav-vet .nav-link.btn-entrar:hover {
    background: #fff;
    color: #004b69 !important;
}
.nav-vet .nav-link.btn-sair {
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.82rem;
}
.nav-vet .nav-link.btn-sair:hover {
    background: rgba(198, 40, 40, 0.85);
    border-color: transparent;
}
.dropdown-menu-vet {
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 0.5rem;
    min-width: 240px;
    margin-top: 0.5rem !important;
}
.dropdown-menu-vet .dropdown-header {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    padding: 0.5rem 0.75rem 0.25rem;
}
.dropdown-menu-vet .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dropdown-menu-vet .dropdown-item:hover,
.dropdown-menu-vet .dropdown-item.active {
    background: #e8f0f4;
    color: #004b69;
}
.dropdown-menu-vet .dropdown-item .item-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f0f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.dropdown-menu-vet .dropdown-divider {
    margin: 0.35rem 0.5rem;
    opacity: 0.15;
}
.navbar-toggler-vet {
    border-color: rgba(255, 255, 255, 0.35);
    padding: 0.35rem 0.55rem;
}
.navbar-toggler-vet:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* A barra é fixa no topo: o menu aberto precisa rolar sozinho para mostrar todos os itens */
@media (min-width: 992px) {
    .dropdown-menu-vet {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}
@media (max-width: 991px) {
    .navbar-vet .navbar-collapse {
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .nav-vet { padding: 0.75rem 0 0.5rem; }
    .nav-vet .nav-link {
        border-radius: 10px;
        margin-bottom: 0.15rem;
    }
    .dropdown-menu-vet {
        box-shadow: none;
        background: rgba(0, 0, 0, 0.12);
        margin-left: 0.5rem !important;
    }
    .dropdown-menu-vet .dropdown-item { color: #fff; }
    .dropdown-menu-vet .dropdown-item .item-ico { background: rgba(255, 255, 255, 0.15); }
    .dropdown-menu-vet .dropdown-item:hover,
    .dropdown-menu-vet .dropdown-item.active {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }
    .dropdown-menu-vet .dropdown-header { color: rgba(255, 255, 255, 0.55); }
}

@media print {
    .navbar-vet { display: none !important; }
}
