body {
    background: #f6f8fb
}

.intranet-link {
    margin-left: .5rem;
    padding-right: .8rem !important;
    padding-left: .8rem !important;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    color: #fff !important;
}

.intranet-link:hover { background: rgba(255,255,255,.14); }

@media (max-width: 991.98px) {
    .intranet-link { width: fit-content; margin: .35rem 0; }
}

.login-bg {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #eaf0f8
}

.login-card {
    width: min(420px, calc(100% - 2rem))
}

.home-page {
    background: #f4f6f8;
    min-height: 100vh
}

.home-header {
    height: 56px;
    background: #202c3f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:5px;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .92rem
}

.home-intranet-link {
    position: absolute;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .8rem;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    color: #fff;
    font-size: .78rem;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.home-intranet-link:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .home-intranet-link { right: .65rem; padding: .4rem .55rem; font-size: 0; }
    .home-intranet-link i { font-size: 1rem; }
}

.home-brand {
    height: 110px;
    background: #fff;
    border-bottom: 1px solid #dce1e7;
    display: grid;
    place-items: center
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #fff;
    background: #8ba3b1;
    border-bottom: 6px solid #d92780;
    padding: .45rem .7rem;
    font-size: 1.25rem;
    line-height: .8;
    font-weight: 700;
    letter-spacing: .05em
}

.brand-mark i {
    font-size: 2rem
}

.brand-mark small {
    font-size: .52rem;
    letter-spacing: .15em
}

.home-content {
    max-width: 940px;
    margin: 0 auto;
    padding: 30px 20px
}

.home-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #34445b;
    font-size: .9rem;
    margin-bottom: 26px
}

.home-user .btn {
    min-height: 36px
}

.home-content h1 {
    color: #18283d;
    margin-bottom: .2rem
}

.home-content>p {
    margin-bottom: 22px
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(230px, 330px));
    gap: 20px
}

.home-tile {
    height: 120px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    padding: 18px 20px;
    box-shadow: 0 2px 5px #14223818;
    transition: transform .15s, box-shadow .15s
}

.home-tile:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px #14223830
}

.home-tile>i {
    grid-row: 1/3;
    grid-column: 1;
    font-size: 2rem;
    text-align: center
}

.home-tile strong {
    align-self: end;
    font-size: 1.05rem
}

.home-tile small {
    align-self: start;
    opacity: .9
}

.entrada {
    background: #f6bd18
}

.saida {
    background: #df3548
}

.estoque {
    background: #6c757d
}

.relatorios {
    background: #13bddd
}

.card {
    border: 0
}

.produto-info {
    background: #fff;
    border-left: 4px solid #0d6efd
}

.table-responsive {
    background: #fff;
    padding: .5rem;
    border-radius: 8px
}

.form-control, .form-select, .btn {
    min-height: 44px
}

@media(max-width:600px) {
    .home-brand {
        height: 90px
    }

    .home-content {
        padding: 24px 16px
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .home-tile {
        max-width: none
    }

    .home-user {
        flex-wrap: wrap;
        margin-bottom: 22px
    }
}

.login-logo {
    display: block;
    width: auto;
    height: 38px;
    margin: 0 auto 1.25rem
}

.nav-logo {
    height: 45px;
    object-fit: cover;
    object-position: center
}

.home-logo {
    width: auto;
    height: 48px;
}

.estoque-table-wrap {
    overflow: visible;
}

#tabela {
    font-size: .82rem;
}

#tabela th,
#tabela td {
    padding: .3rem .45rem;
}

#tabela th:nth-child(4),
#tabela th:nth-child(5),
#tabela td:nth-child(4),
#tabela td:nth-child(5) {
    text-align: right;
}

#tabelaRelatorios {
    font-size: .82rem;
}

#tabelaRelatorios th,
#tabelaRelatorios td {
    padding: .3rem .45rem;
}

#tabelaRelatorios th:nth-child(4),
#tabelaRelatorios td:nth-child(4) {
    text-align: right;
}

.relatorio-table-wrap {
    overflow: visible;
}
