﻿/* Ajustes específicos não cobertos pelo Bootstrap */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa; /* Um cinza claro */
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

header, footer {
    background-color: #e9ecef; /* Tom de cinza quase branco */
    color: black;
    text-align: center;
    padding: 10px 0;
}

    header img {
        max-width: 200px;
        height: auto;
    }

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    width: 100%;
    background-color: #e9ecef; /* Tom de cinza quase branco */
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.main-content {
    background-color: #dee2e6; /* Um cinza um ponto mais escuro */
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 10px auto; /* Espaçamento uniforme ao redor */
}

    .main-content.index {
        min-height: auto; /* Remover altura mínima para a página Index */
    }

/* Estilos do formulário */
form.form-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    form.form-index > div {
        margin-bottom: 10px;
        width: 100%;
        max-width: 300px; /* Define um tamanho máximo para os campos */
    }

        form.form-index > div > label {
            display: block;
            margin-bottom: 5px;
        }

input[type="text"], input[type="password"] {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.button-standard {
    background-color: #343a40;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    width: 130px;
    box-sizing: border-box;
    text-align: center;
}

    .button-standard:hover {
        background-color: #23272b;
    }

.message {
    color: #dc3545; /* Um vermelho para mensagens de erro */
    font-weight: bold;
    margin-top: 20px;
}

/* Ajuste da cor do menu */
.navbar {
    background-color: #dee2e6; /* Mesma cor da sessão principal */
    height: 50px; /* Ajuste da altura do menu */
}

    .navbar .nav-link {
        color: black;
        padding-top: 10px;
        padding-bottom: 10px;
    }

        .navbar .nav-link:hover, .navbar .nav-link.active {
            background-color: #ced4da;
        }

    /* Adicionando estilos para o item "Sair" */
    .navbar .ml-auto {
        margin-left: auto;
    }


/* Adicionando estilos específicos para a página de cadastro */
.card {
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .card-header .input-group {
        max-width: 300px;
        width: 100%;
    }

.table {
    margin-top: 20px;
}

    .table th, .table td {
        text-align: center;
        vertical-align: middle;
    }

        .table td button {
            margin-right: 5px;
        }

.truncate-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-content.estoque-reagentes {
    padding-top: 0px; /* Remove o topo padrão */
}

.dropdown-item {
    display: flex;
    align-items: center;
}

    .dropdown-item i {
        width: 22px; /* garante que todos ocupem o mesmo espaço */
        text-align: center;
        margin-right: 8px; /* espaço consistente entre ícone e texto */
        font-size: 16px; /* tamanho visual proporcional */
    }

/* =========================================================
   Identidade visual GestãoLab - Header e Menu Global
   ========================================================= */
:root {
    --gl-primary: #0b3558;
    --gl-primary-2: #124f7c;
    --gl-accent: #19b7a2;
    --gl-bg-soft: #f4f7fb;
    --gl-border: rgba(11, 53, 88, 0.12);
    --gl-shadow: 0 10px 30px rgba(11, 53, 88, 0.10);
}

body {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    font-family: "Segoe UI", Arial, sans-serif;
}

header.app-header {
    background: #ffffff;
    color: var(--gl-primary);
    text-align: left;
    padding: 0;
    border-bottom: 1px solid var(--gl-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.app-header-inner {
    width: 100%;
    max-width: 1360px;
    min-height: 132px;
    margin: 0 auto;
    padding: 22px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.app-brand-area,
.client-brand-area {
    display: flex;
    align-items: center;
}

.app-brand-area {
    min-width: 330px;
    gap: 16px;
}

.app-brand-logo {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 16px rgba(18, 79, 124, 0.18));
}

.app-brand-text {
    line-height: 1.1;
}

.app-brand-name {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--gl-primary);
}

    .app-brand-name span {
        color: var(--gl-accent);
    }

.app-brand-subtitle {
    margin-top: 6px;
    color: #52677d;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.app-header-divider {
    height: 78px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(11, 53, 88, 0.20), transparent);
    margin-right: auto;
}

.client-brand-area {
    justify-content: flex-end;
    min-width: 280px;
}

.client-brand-logo {
    max-width: 260px;
    max-height: 95px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.navbar {
    background: linear-gradient(90deg, #0b3558 0%, #124f7c 100%);
    min-height: 58px;
    height: auto;
    padding: 0;
    box-shadow: 0 8px 24px rgba(11, 53, 88, 0.16);
}

    .navbar .container {
        max-width: 1360px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar .nav-link {
        color: #ffffff;
        padding: 18px 16px;
        font-weight: 500;
        letter-spacing: 0.1px;
        transition: background-color 0.18s ease, color 0.18s ease;
    }

        .navbar .nav-link:hover,
        .navbar .nav-link.active,
        .navbar .show > .nav-link {
            background-color: rgba(255, 255, 255, 0.12);
            color: #ffffff;
        }

.app-home-item {
    margin-right: 12px;
}

.navbar .app-home-link {
    min-width: 64px;
    text-align: center;
    background: linear-gradient(180deg, rgba(25, 183, 162, 0.95), rgba(25, 183, 162, 0.55));
    border-radius: 8px;
    margin: 8px 8px 8px 0;
    padding: 12px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

    .navbar .app-home-link:hover {
        background: linear-gradient(180deg, rgba(25, 183, 162, 1), rgba(25, 183, 162, 0.72));
    }

    .navbar .app-home-link i,
    .navbar .app-logout-link i {
        font-size: 1.05rem;
    }

.navbar .app-logout-link {
    white-space: nowrap;
}

.dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: var(--gl-shadow);
    padding: 8px 0;
    margin-top: 0;
}

.dropdown-item {
    color: #1d2d3d;
    padding: 8px 18px;
    font-size: 0.94rem;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #eef6fb;
        color: var(--gl-primary);
    }

.dropdown-header {
    letter-spacing: 0.3px;
}

main {
    background: transparent;
}

.main-content {
    background: rgba(222, 226, 230, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 22px rgba(11, 53, 88, 0.06);
}

footer {
    background-color: #ffffff;
    color: #5d6f80;
    border-top: 1px solid var(--gl-border);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .app-header-inner {
        min-height: auto;
        padding: 18px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .app-header-divider {
        display: none;
    }

    .client-brand-area {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .client-brand-logo {
        max-width: 210px;
        max-height: 74px;
    }

    .app-brand-name {
        font-size: 2rem;
    }

    .navbar .nav-link {
        padding: 12px 16px;
    }

    .navbar .app-home-link {
        margin: 8px 0;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .app-brand-area {
        min-width: 0;
        width: 100%;
    }

    .app-brand-logo {
        width: 62px;
        height: 62px;
    }

    .app-brand-name {
        font-size: 1.7rem;
    }

    .app-brand-subtitle {
        font-size: 0.92rem;
    }
}

/* =========================================================
   GestãoLab - Login profissional e menu compacto pós-login
   ========================================================= */
.app-body-login {
    min-height: 100vh;
    background: radial-gradient(circle at 7% 24%, rgba(25, 183, 162, 0.10) 0 110px, transparent 112px), radial-gradient(circle at 92% 20%, rgba(27, 111, 214, 0.10) 0 150px, transparent 152px), linear-gradient(135deg, #f8fbff 0%, #eef5fb 48%, #f7fbff 100%);
    overflow-x: hidden;
}

    .app-body-login::before,
    .app-body-login::after {
        content: "";
        position: fixed;
        z-index: 0;
        pointer-events: none;
        opacity: 0.42;
    }

    .app-body-login::before {
        left: -70px;
        top: 120px;
        width: 260px;
        height: 420px;
        background: linear-gradient(150deg, rgba(25,183,162,.22), rgba(27,111,214,.08));
        clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%);
    }

    .app-body-login::after {
        right: -60px;
        bottom: 40px;
        width: 260px;
        height: 360px;
        background: linear-gradient(155deg, rgba(27,111,214,.18), rgba(25,183,162,.06));
        clip-path: polygon(38% 0, 100% 0, 100% 100%, 38% 100%, 0 50%);
    }

.app-header-login {
    position: relative;
    z-index: 1;
    min-height: 108px;
    padding: 22px 20px 10px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-login-client-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-brand-logo-login {
    max-width: 230px;
    max-height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(11, 53, 88, 0.12));
}

.app-main-login {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 18px 20px 32px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card-pro {
    width: min(900px, 100%);
    min-height: 430px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(11, 53, 88, 0.13);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.login-brand-panel,
.login-form-panel {
    padding: 46px 48px;
}

.login-brand-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(11, 53, 88, 0.13);
}

.login-system-logo {
    width: 92px;
    height: 92px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 18px rgba(18, 79, 124, 0.20));
}

.login-welcome {
    color: #637489;
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.1;
}

.login-title {
    color: var(--gl-primary);
    font-size: 3rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -1.8px;
}

    .login-title span {
        color: var(--gl-accent);
    }

.login-subtitle {
    margin-top: 8px;
    color: #5a6c80;
    font-weight: 650;
    font-size: 1.03rem;
}

.login-title-divider {
    width: 210px;
    height: 1px;
    background: rgba(11, 53, 88, 0.12);
    margin: 24px 0 22px;
    position: relative;
}

    .login-title-divider span {
        position: absolute;
        left: 50%;
        top: -1px;
        width: 58px;
        height: 3px;
        border-radius: 10px;
        transform: translateX(-50%);
        background: linear-gradient(90deg, #1f6fd6, var(--gl-accent));
    }

.login-description {
    max-width: 285px;
    color: #5c6d80;
    line-height: 1.65;
    margin: 0 0 28px;
}

.login-benefits {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 34px;
}

.login-benefit-item {
    color: #53677b;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #edf5fd;
    color: #1f6fd6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(31, 111, 214, 0.08);
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.login-user-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #edf5fd;
    color: #1f6fd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.login-form-heading h1 {
    margin: 0;
    color: var(--gl-primary);
    font-size: 1.42rem;
    font-weight: 800;
}

.login-form-heading p {
    margin: 5px 0 0;
    color: #67798b;
    font-size: 0.94rem;
}

.login-field-group {
    margin-bottom: 22px;
}

    .login-field-group label {
        color: var(--gl-primary);
        font-size: 0.92rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

.login-input-wrapper {
    height: 52px;
    border: 1px solid rgba(11, 53, 88, 0.17);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 9px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

    .login-input-wrapper:focus-within {
        border-color: rgba(31, 111, 214, 0.55);
        box-shadow: 0 0 0 4px rgba(31, 111, 214, 0.10);
        background: #ffffff;
    }

.login-input-icon {
    width: 56px;
    height: 100%;
    color: var(--gl-primary);
    background: rgba(247, 250, 253, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(11, 53, 88, 0.10);
}

.login-input-wrapper .form-control {
    height: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: #1d2d3d;
    padding: 0 14px;
}

    .login-input-wrapper .form-control:focus {
        box-shadow: none;
        background: transparent;
    }

.login-password-toggle {
    width: 48px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #66788a;
    cursor: pointer;
}

.login-submit-btn {
    width: 100%;
    height: 56px;
    margin-top: 6px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1f6fd6 0%, var(--gl-accent) 100%);
    box-shadow: 0 12px 22px rgba(25, 183, 162, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

    .login-submit-btn:hover,
    .login-submit-btn:focus {
        color: #ffffff;
        transform: translateY(-1px);
        filter: brightness(1.02);
        box-shadow: 0 16px 28px rgba(31, 111, 214, 0.20);
    }

    .login-submit-btn i {
        margin-right: 8px;
    }

.login-message {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff2f2;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.16);
    font-weight: 700;
    text-align: center;
}

.app-body-login footer {
    position: relative;
    z-index: 1;
    background: transparent;
    border-top: 1px solid rgba(11, 53, 88, 0.10);
}


/* =========================================================
   GestãoLab - Background profissional das telas internas
   ========================================================= */
.app-body-logado {
    min-height: 100vh;
    background: radial-gradient(circle at 3% 18%, rgba(25, 183, 162, 0.08) 0 145px, transparent 148px), radial-gradient(circle at 96% 12%, rgba(18, 79, 124, 0.09) 0 190px, transparent 193px), radial-gradient(circle at 82% 88%, rgba(25, 183, 162, 0.055) 0 150px, transparent 153px), linear-gradient(135deg, #f6f9fc 0%, #eef4f8 46%, #f8fbfd 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

    .app-body-logado::before,
    .app-body-logado::after {
        content: "";
        position: fixed;
        z-index: 0;
        pointer-events: none;
        opacity: 0.36;
    }

    .app-body-logado::before {
        left: -105px;
        top: 155px;
        width: 310px;
        height: 520px;
        background: linear-gradient(145deg, rgba(25, 183, 162, 0.20), rgba(18, 79, 124, 0.055));
        clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%);
    }

    .app-body-logado::after {
        right: -110px;
        bottom: 24px;
        width: 340px;
        height: 460px;
        background: linear-gradient(155deg, rgba(18, 79, 124, 0.15), rgba(25, 183, 162, 0.06));
        clip-path: polygon(38% 0, 100% 0, 100% 100%, 38% 100%, 0 50%);
    }

    .app-body-logado .app-navbar,
    .app-body-logado main,
    .app-body-logado footer {
        position: relative;
        z-index: 1;
    }

    .app-body-logado .main-content {
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.84);
        box-shadow: 0 16px 38px rgba(11, 53, 88, 0.075);
        /*backdrop-filter: blur(6px);*/
    }

    .app-body-logado footer {
        background: rgba(255, 255, 255, 0.72);
        border-top: 1px solid rgba(11, 53, 88, 0.10);
        box-shadow: 0 -8px 24px rgba(11, 53, 88, 0.035);
    }

@media (max-width: 991.98px) {
    .app-body-logado::before,
    .app-body-logado::after {
        opacity: 0.24;
    }
}

/* Menu pós-login */
.app-body-logado header.app-header {
    display: none;
}

.app-navbar {
    background: linear-gradient(90deg, #092b49 0%, #0b3558 52%, #124f7c 100%) !important;
    min-height: 64px;
    box-shadow: 0 8px 24px rgba(11, 53, 88, 0.18);
}

.app-navbar-container {
    max-width: 1480px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    display: flex;
    align-items: center;
}

.app-navbar-brand {
    min-height: 64px;
    margin-right: 22px;
    padding: 0 22px 0 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.app-navbar-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.22));
}

.app-navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

    .app-navbar-brand-text strong {
        font-size: 1.32rem;
        letter-spacing: -0.6px;
        color: #ffffff;
    }

        .app-navbar-brand-text strong span {
            color: var(--gl-accent);
        }

    .app-navbar-brand-text small {
        margin-top: 3px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.73rem;
        font-weight: 500;
    }

.app-navbar .navbar-nav {
    align-items: center;
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 21px 13px !important;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

    .app-navbar .nav-link:hover,
    .app-navbar .show > .nav-link,
    .app-navbar .nav-link.active {
        background-color: rgba(255,255,255,.10) !important;
        color: #ffffff !important;
    }

.app-navbar .app-home-item {
    margin-right: 6px;
}

.app-navbar .app-home-link {
    min-width: auto !important;
    margin: 0 4px 0 0 !important;
    padding: 20px 14px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.app-navbar .dropdown-menu {
    margin-top: 0;
    border: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 34px rgba(11, 53, 88, 0.20);
}

.app-navbar-toggler {
    border-color: rgba(255,255,255,.22) !important;
    margin-left: auto;
}

    .app-navbar-toggler .navbar-toggler-icon {
        width: 1.35em;
        height: 1.35em;
        background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
        background-size: 100% 2px, 100% 2px, 100% 2px;
        background-position: 0 20%, 0 50%, 0 80%;
        background-repeat: no-repeat;
    }

.app-main-logado {
    margin-top: 12px;
}

@media (max-width: 1199.98px) {
    .app-navbar-brand-text small {
        display: none;
    }

    .app-navbar-brand-text strong {
        font-size: 1.18rem;
    }

    .app-navbar .nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .login-card-pro {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .login-brand-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(11, 53, 88, 0.13);
        padding-bottom: 34px;
    }

    .login-form-panel {
        padding-top: 34px;
    }

    .app-navbar-brand {
        min-height: 60px;
    }

    .app-navbar .navbar-collapse {
        border-top: 1px solid rgba(255,255,255,.12);
        padding-bottom: 10px;
    }

    .app-navbar .navbar-nav {
        align-items: stretch;
    }

    .app-navbar .nav-link,
    .app-navbar .app-home-link {
        padding: 12px 14px !important;
    }
}

@media (max-width: 575.98px) {
    .client-brand-logo-login {
        max-width: 190px;
    }

    .app-main-login {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-card-pro {
        border-radius: 14px;
    }

    .login-brand-panel,
    .login-form-panel {
        padding: 32px 24px;
    }

    .login-title {
        font-size: 2.35rem;
    }

    .login-benefits {
        gap: 18px;
    }

    .app-navbar-brand-text small {
        display: none;
    }
}

/* Menu do usuário logado */
.app-user-menu-wrapper {
    margin-left: 18px;
}

.app-navbar .app-user-toggle {
    min-height: 64px;
    padding: 9px 14px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
}

.app-user-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-size: 1.18rem;
}

.app-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    max-width: 180px;
}

    .app-user-info strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #ffffff;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .app-user-info small {
        margin-top: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.74);
        font-size: 0.72rem;
        font-weight: 500;
    }

.app-user-dropdown {
    min-width: 230px;
    padding: 8px 0;
    border-radius: 0 0 12px 12px !important;
}

.app-user-dropdown-header {
    padding: 10px 16px 8px 16px;
}

    .app-user-dropdown-header strong,
    .app-user-dropdown-header small {
        display: block;
    }

    .app-user-dropdown-header strong {
        color: #0b3558;
        font-size: 0.95rem;
        font-weight: 800;
    }

    .app-user-dropdown-header small {
        margin-top: 3px;
        color: #5f6f82;
        font-size: 0.8rem;
    }

.app-user-logout-item {
    color: #b42318 !important;
    font-weight: 700;
}

    .app-user-logout-item i {
        color: #b42318 !important;
    }

@media (max-width: 1199.98px) {
    .app-user-info {
        max-width: 130px;
    }
}

@media (max-width: 991.98px) {
    .app-user-menu-wrapper {
        margin-left: 0;
    }

    .app-navbar .app-user-toggle {
        min-height: auto;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 13px 14px !important;
    }

    .app-user-info {
        max-width: none;
    }

    .app-user-dropdown {
        margin-left: 14px;
        margin-right: 14px;
        border-radius: 10px !important;
    }
}

/* Modal de alteração de senha */
.app-user-password-item {
    color: #0b3558 !important;
    font-weight: 700;
}

    .app-user-password-item i {
        color: #0e76bc !important;
        width: 18px;
        margin-right: 6px;
    }

.app-password-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(11, 53, 88, 0.22);
}

    .app-password-modal .modal-header {
        align-items: flex-start;
        background: linear-gradient(135deg, #0b3558 0%, #0e76bc 58%, #18bfae 100%);
        color: #ffffff;
        border-bottom: 0;
        padding: 18px 22px;
    }

    .app-password-modal .modal-title {
        font-size: 1.08rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .app-password-modal .modal-header small {
        display: block;
        margin-top: 5px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.84rem;
    }

    .app-password-modal .close {
        color: #ffffff;
        opacity: 0.9;
        text-shadow: none;
        outline: none;
    }

    .app-password-modal .modal-body {
        padding: 22px;
        background: #ffffff;
    }

    .app-password-modal label {
        color: #0b3558;
        font-weight: 700;
        font-size: 0.88rem;
    }

.app-password-input-group {
    position: relative;
}

    .app-password-input-group .form-control {
        height: 42px;
        padding-right: 44px;
        border-radius: 8px;
        border: 1px solid #d5deea;
        color: #0b3558;
    }

        .app-password-input-group .form-control:focus {
            border-color: #0e76bc;
            box-shadow: 0 0 0 0.16rem rgba(14, 118, 188, 0.16);
        }

.app-toggle-password-field {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5f6f82;
    cursor: pointer;
}

    .app-toggle-password-field:hover {
        background: #eef5fb;
        color: #0e76bc;
    }

.app-password-modal .modal-footer {
    border-top: 1px solid #edf1f5;
    padding: 14px 22px 18px;
    background: #fbfdff;
}

.app-password-submit-btn {
    min-width: 155px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #0e76bc 0%, #18bfae 100%);
    box-shadow: 0 10px 18px rgba(14, 118, 188, 0.18);
}

    .app-password-submit-btn:hover,
    .app-password-submit-btn:focus {
        color: #ffffff;
        filter: brightness(0.97);
    }

/* Correção: menus suspensos devem ficar acima dos cards/formulários com backdrop-filter */
.app-body-logado .app-navbar {
    position: relative;
    z-index: 1080;
}

    .app-body-logado .app-navbar .dropdown-menu {
        z-index: 1090;
    }

.app-body-logado main,
.app-body-logado footer {
    z-index: 1;
}

/* =========================================================
   Correção global de modais x novo layout GestãoLab
   ========================================================= */
.app-body-logado .modal-backdrop {
    z-index: 1040 !important;
}

.app-body-logado .modal {
    z-index: 1090 !important;
    padding-top: 76px;
}

.app-body-logado .modal-dialog {
    margin-top: 1rem;
}

.app-body-logado .modal-dialog-centered {
    min-height: calc(100% - 76px - 2rem);
}

@media (max-width: 991.98px) {
    .app-body-logado .modal {
        padding-top: 68px;
    }

    .app-body-logado .modal-dialog-centered {
        min-height: calc(100% - 68px - 2rem);
    }
}


/* Proteção global de informações sensíveis */
.swal2-popup.app-sensitive-password-popup {
    width: min(32rem, calc(100vw - 2rem));
}

.app-sensitive-password-popup .swal2-input.app-sensitive-password-input {
    width: calc(100% - 3rem) !important;
    max-width: 100% !important;
    margin: 1rem auto .5rem !important;
    box-sizing: border-box !important;
}

.app-sensitive-menu-wrapper {
    margin-left: auto;
}

.app-sensitive-menu-item {
    display: flex;
    align-items: center;
}

.app-navbar .app-sensitive-toggle {
    width: 42px;
    height: 42px;
    margin: 0 4px;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

    .app-navbar .app-sensitive-toggle:hover,
    .app-navbar .app-sensitive-toggle:focus {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.38);
        color: #fff;
        outline: none;
        text-decoration: none;
    }

    .app-navbar .app-sensitive-toggle.is-unlocked {
        background: rgba(255, 255, 255, 0.20);
        border-color: rgba(255, 255, 255, 0.48);
        color: #fff;
    }

    .app-navbar .app-sensitive-toggle i {
        font-size: 1rem;
    }

@media (max-width: 991.98px) {
    .app-sensitive-menu-wrapper {
        margin-left: 0;
        padding: 8px 10px 3px 10px;
    }

    .app-navbar .app-sensitive-toggle {
        margin-left: 0;
    }
}

/* Menu principal responsivo */
@media (max-width: 991.98px) {
    .app-navbar-container {
        flex-wrap: wrap;
    }

    .app-navbar .navbar-collapse {
        position: relative;
        z-index: 1090;
        flex-basis: calc(100% + 48px);
        width: calc(100% + 48px);
        margin-right: -24px;
        margin-left: -24px;
        padding: 8px 24px 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        background: linear-gradient(180deg, #0b3558 0%, #092b49 100%);
        box-shadow: 0 16px 24px rgba(6, 32, 54, 0.24);
        max-height: calc(100vh - 64px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

        .app-navbar .navbar-collapse > .navbar-nav {
            width: 100%;
        }

        .app-navbar .navbar-collapse .nav-link,
        .app-navbar .navbar-collapse .app-home-link {
            width: 100%;
            margin: 0 !important;
            padding: 12px 14px !important;
            border-radius: 8px !important;
            color: #ffffff !important;
            text-align: left;
        }

            .app-navbar .navbar-collapse .nav-link:hover,
            .app-navbar .navbar-collapse .nav-link:focus,
            .app-navbar .navbar-collapse .show > .nav-link {
                background-color: rgba(255, 255, 255, 0.12) !important;
                color: #ffffff !important;
            }

        .app-navbar .navbar-collapse .dropdown-menu {
            position: static !important;
            float: none;
            width: 100%;
            margin: 0 0 8px;
            border-radius: 8px !important;
            background-color: #ffffff;
            box-shadow: inset 0 0 0 1px rgba(11, 53, 88, 0.10);
        }

        .app-navbar .navbar-collapse .dropdown-item,
        .app-navbar .navbar-collapse .dropdown-header {
            white-space: normal;
        }

    .app-navbar .app-sensitive-menu-wrapper {
        width: 100%;
        padding: 8px 14px 4px;
    }

    .app-navbar .navbar-collapse .app-sensitive-toggle {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0 !important;
        border-radius: 50% !important;
        text-align: center;
    }

    .app-navbar .app-user-menu-wrapper {
        width: 100%;
    }

    .app-navbar .app-user-dropdown {
        margin-right: 0;
        margin-left: 0;
    }
}
.app-notification-link{display:flex;align-items:center;justify-content:center;min-width:44px;font-size:1.05rem}.app-notification-badge{position:absolute;top:4px;right:2px;font-size:.65rem;line-height:1;padding:.25rem .35rem;border-radius:10px}
