body {
    background: #f4f6f8;
}

.layout-master {
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    width: 260px;
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    background: #1f2933;
    flex-shrink: 0;
    z-index: 1030;
    overflow: visible;
    transition: width 0.2s ease;
}

.sidebar-marca {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 0.75rem 0.35rem;
    flex-shrink: 0;
}

.marca {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .marca,
.menu-offcanvas .marca {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.45rem 0.55rem;
    min-height: 2.75rem;
}

.marca-logotipo {
    display: block;
    height: 1.85rem;
    width: auto;
    max-width: 100%;
}

.marca-icone {
    display: none;
    height: 1.85rem;
    width: auto;
}

.marca-empresa {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: #d9e2ec;
    font-size: 0.85rem;
    font-weight: 600;
}

.marca-selo {
    display: block;
    width: min(100%, 8rem);
    height: auto;
    margin: 0 auto 1rem;
}

.sidebar-corpo {
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0.65rem 0.75rem;
}

.menu-master .menu-item,
.menu-empresa .menu-item {
    color: #d9e2ec;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.32rem 0.65rem;
    border-radius: 0.375rem;
    margin-bottom: 0.05rem;
}

.menu-master .menu-item .bi,
.menu-empresa .menu-item .bi {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.menu-master .menu-item:hover,
.menu-master .menu-item.active,
.menu-empresa .menu-item:hover,
.menu-empresa .menu-item.active {
    background: #334e68;
    color: #fff;
}

.menu-grupo {
    color: #9fb3c8;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0.45rem 0.65rem 0.1rem;
}

button.menu-item {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sidebar-toggle {
    position: absolute;
    top: 4.5rem;
    right: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d9e2ec;
    background: #fff;
    color: #1f2933;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
    z-index: 2;
}

.sidebar-toggle .bi {
    font-size: 1rem;
    line-height: 1;
}

.sidebar-seta-expandir {
    display: none;
}

html.sidebar-recolhida .sidebar {
    width: 4.75rem;
}

html.sidebar-recolhida .sidebar .menu-texto,
html.sidebar-recolhida .sidebar .menu-grupo {
    display: none;
}

html.sidebar-recolhida .sidebar .sidebar-marca,
html.sidebar-recolhida .sidebar .menu-item {
    justify-content: center;
}

html.sidebar-recolhida .sidebar .marca-logotipo {
    display: none;
}

html.sidebar-recolhida .sidebar .marca-icone {
    display: block;
}

html.sidebar-recolhida .sidebar .marca {
    padding: 0.35rem;
}

html.sidebar-recolhida .sidebar-seta-recolher {
    display: none;
}

html.sidebar-recolhida .sidebar-seta-expandir {
    display: inline-block;
}

.menu-offcanvas {
    background: #1f2933;
    color: #d9e2ec;
    width: 280px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-bottom: 1px solid #e4e7eb;
    padding: 0.35rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.conteudo {
    min-width: 0;
}

.grafico-barras {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    min-height: 12rem;
}

.grafico-coluna {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 12rem;
}

.grafico-trilho {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 2.75rem;
    border-radius: 0.375rem;
}

.grafico-barra {
    width: 100%;
    border-radius: 0.375rem 0.375rem 0 0;
}

.tom-aprovados { color: var(--bs-success); }
.tom-vencendo { color: #fd7e14; }
.tom-vencidos { color: var(--bs-danger); }
.tom-analise { color: #087990; }
.tom-pendencias { color: #6f42c1; }

.grafico-trilho.grafico-aprovados { background: rgba(var(--bs-success-rgb), 0.22); }
.grafico-trilho.grafico-aprovados .grafico-barra { background: var(--bs-success); }
.grafico-trilho.grafico-vencendo { background: rgba(253, 126, 20, 0.22); }
.grafico-trilho.grafico-vencendo .grafico-barra { background: #fd7e14; }
.grafico-trilho.grafico-vencidos { background: rgba(var(--bs-danger-rgb), 0.2); }
.grafico-trilho.grafico-vencidos .grafico-barra { background: var(--bs-danger); }
.grafico-trilho.grafico-analise { background: rgba(var(--bs-info-rgb), 0.35); }
.grafico-trilho.grafico-analise .grafico-barra { background: var(--bs-info); }
.grafico-trilho.grafico-pendencias { background: rgba(111, 66, 193, 0.2); }
.grafico-trilho.grafico-pendencias .grafico-barra { background: #6f42c1; }

.situacao-conforme { background: var(--bs-success); color: #fff; }
.situacao-vencido { background: var(--bs-danger); color: #fff; }
.situacao-analise { background: var(--bs-info); color: #052c65; }
.situacao-pendente { background: #6f42c1; color: #fff; }

.pagina-cabecalho {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ajuda-tip {
    --bs-tooltip-max-width: 16rem;
    --bs-tooltip-bg: #1f2933;
    --bs-tooltip-color: #fff;
    --bs-tooltip-opacity: 1;
    --bs-tooltip-padding-x: 0.75rem;
    --bs-tooltip-padding-y: 0.6rem;
}

.ajuda-tip.show {
    opacity: 1;
}

.ajuda-tip .tooltip-inner {
    text-align: left;
    line-height: 1.45;
    white-space: normal;
}

.tabela-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.avatar-lista {
    width: 36px;
    height: 36px;
    border-radius: 0.375rem;
    object-fit: cover;
    background: #fff;
    border: 1px solid #d9e2ec;
    flex-shrink: 0;
}

.avatar-vazio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #627d98;
    background: #f0f4f8;
}

.avatar-detalhe {
    width: 96px;
    height: 96px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid #d9e2ec;
    background: #fff;
}

.upload-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 7.5rem;
    padding: 1rem 1.25rem;
    border: 1px dashed #9fb3c8;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.upload-drop.is-dragover {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.upload-drop-preview {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.upload-drop-imagem,
.upload-drop-icone {
    width: 72px;
    height: 72px;
    border-radius: 0.5rem;
}

.upload-drop-imagem {
    object-fit: cover;
    border: 1px solid #d9e2ec;
    background: #fff;
}

.upload-drop-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #486581;
    background: #fff;
    border: 1px solid #d9e2ec;
    font-size: 1.75rem;
}

.upload-drop-texto {
    display: flex;
    flex-direction: column;
    color: #334e68;
    pointer-events: none;
}

.upload-drop-texto small {
    color: #627d98;
}

.upload-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.campo-invalido .form-control,
.campo-invalido .form-select {
    border-color: var(--bs-form-invalid-border-color);
}

.alertify-notifier .ajs-message {
    text-align: left;
}

.login-pagina {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 26rem;
}

.login-card .card-body {
    padding: 2.25rem 2rem;
}

.login-card h1 {
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.login-subtitulo {
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.login-card .form-label {
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.login-card .row {
    --bs-gutter-y: 1.35rem;
}

.login-card button[type="submit"] {
    margin-top: 1.75rem;
}

.acoes-formulario .btn {
    flex: 1 1 auto;
}

@media (min-width: 576px) {
    .acoes-formulario .btn {
        flex: 0 0 auto;
    }
}

.conversa {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.75rem;
    background: #efeae2;
    border-radius: 0.5rem;
}

.conversa-linha {
    display: flex;
}

.conversa-linha.conversa-minha {
    justify-content: flex-end;
}

.conversa-balao {
    max-width: 85%;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem 0.3rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.conversa-minha .conversa-balao {
    background: #d9fdd3;
}

.conversa-autor {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.conversa-hora {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #667781;
    text-align: right;
}

.input-group > .dropdown {
    position: static;
    display: flex;
}

.input-group > .dropdown > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
}

.conversa-menu {
    max-height: 16rem;
    overflow-y: auto;
}

.status-documento .badge {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
}

.landing section[id] {
    scroll-margin-top: 5rem;
}

.landing-nav {
    z-index: 1030;
}

.landing-menu {
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.landing-menu > a:not(.btn) {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 0.375rem;
}

.landing-menu > a:not(.btn):hover {
    color: var(--bs-primary);
    background: #f1f5f9;
}

.landing-menu-divisor {
    width: 1px;
    height: 1.35rem;
    margin: 0 0.65rem;
    background: #e2e8f0;
}

.landing-menu-mobile a {
    display: block;
    color: #1f2933;
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eef2f6;
}

.landing-menu-mobile a:hover {
    color: var(--bs-primary);
}

.landing-rodape {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 2.75rem 0 1.5rem;
}

.landing-rodape-marca {
    display: inline-flex;
    text-decoration: none;
}

.landing-rodape .marca {
    justify-content: flex-start;
}

.landing-rodape .marca-logotipo {
    height: 2.35rem;
}

.landing-rodape-dados {
    display: block;
    margin: 1.15rem 0 0;
    color: #64748b;
    font-style: normal;
    font-size: 0.92rem;
    line-height: 1.6;
}

.landing-rodape-empresa {
    display: block;
    margin-bottom: 0.2rem;
    color: #1f2933;
    font-weight: 600;
}

.landing-rodape-menus {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
}

.landing-rodape-menu {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 9rem;
}

.landing-rodape-menu a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}

.landing-rodape-menu a:hover {
    color: var(--bs-primary);
}

.landing-rodape-base {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 0.875rem;
}

@media (min-width: 992px) {
    .landing-rodape-menus {
        justify-content: flex-end;
        padding-top: 0.15rem;
    }
}

.landing-hero {
    background: #0f172a;
    color: #f8fafc;
}

.landing-hero .lead {
    color: #cbd5e1;
}

.hero-cena {
    perspective: 1400px;
    perspective-origin: 50% 40%;
    padding: 0.5rem 0 1.25rem;
}

.hero-placa {
    position: relative;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
    transform: rotateX(3deg) rotateY(-6deg);
    transform-style: preserve-3d;
    transition: transform 0.12s linear;
    box-shadow:
        1rem 1.4rem 2rem rgba(0, 0, 0, 0.38),
        0.25rem 0.4rem 0.7rem rgba(0, 0, 0, 0.22);
}

.hero-placa::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.hero-placa img {
    display: block;
    width: 100%;
    height: auto;
}

.recurso-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.7rem;
    background: rgba(13, 110, 253, 0.12);
    color: var(--bs-primary);
    font-size: 1.35rem;
}

.landing-nav-acoes {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.landing-nav-acoes .landing-menu {
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .landing-nav .navbar-brand {
        margin-right: 0.5rem;
    }

    .landing-nav .marca-logotipo {
        height: 1.45rem;
    }

    .landing-nav-acoes .btn-primary {
        white-space: nowrap;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

.landing .card-body > p:not(.small) {
    color: #1f2933;
}

.passo-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.landing-pauta {
    margin: 0;
    padding-left: 1.15rem;
    color: #1f2933;
}

.landing-pauta li + li {
    margin-top: 0.65rem;
}

.plano-recomendado {
    border: 2px solid var(--bs-primary) !important;
    box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.18) !important;
}

@media (max-width: 991.98px) {
    .hero-placa {
        transform: rotateX(2deg) rotateY(-4deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-placa {
        transform: none;
        transition: none;
    }
}
