﻿.vertical-line {
    height: 15vh;
    width: 1px;
    border-width: 0;
    color: #000;
    background-color: #000;
}
.btn-change:hover {
    color: #d6d6d7;
    background-color: #00b3db;
    border-color: #285e8e;
}
.fs-7 {
    font-size: 0.9em;
}
.fs-8 {
    font-size: 0.8em;
}

.fs-9 {
    font-size: 0.7em;
}

.fs-10 {
    font-size: 0.6em;
}

.green {
    color: lawngreen;
    font-size: 2em;
    font-weight: bold;
}

.green2 {
    color: lawngreen;
    font-weight: bold;
}

.red {
    color: red;
    font-size: 2em;
    font-weight: bold;
}

.red2 {
    color: red;
    font-weight: bold;
}

.mt--1 {
    margin-top: -10px;
    display: block;
}

.mt--2 {
    margin-top: -15px;
    display: block;
}

.ms--1 {
    margin-left: -10px;
    display: block;
}

.containerBorder {
    border: solid;
    border-spacing: 10px;
    height: 70vh;
}

.smoothed {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.viper-main-content > .container {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.sidebar-user-link {
    max-width: 140px;
    overflow: hidden;
}

.sidebar-user-name,
.sidebar-company-name {
    display: inline-block;
    margin-left: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.sidebar-user-name {
    max-width: 88px;
}

.sidebar-company-name {
    max-width: 118px;
}

.sidebar-company-switch {
    font-size: 0.75rem;
    padding-top: 0;
    opacity: 0.85;
}

.viper-autocomplete-person-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.25rem;
    line-height: 1.2;
}

.viper-autocomplete-person-header {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.viper-autocomplete-person-title {
    color: #111827;
    font-size: 0.92rem;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.viper-autocomplete-person-code,
.viper-autocomplete-person-detail,
.viper-autocomplete-person-document {
    color: #4b5563;
    font-size: 0.76rem;
}

.viper-autocomplete-person-code {
    color: #111827;
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.empresa-selecao-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.empresa-selecao-card-actions {
    margin-top: auto !important;
}

.bgViper {
    background-image: url("../img/background.png");
}
.accordion-body {
    padding: 0.2rem !important;
}
.bgLogin {
    background-image: url("../img/47.jpg") !important;
    background-size:cover;
}

.circle {
    display: inline-block;
    background-color: #181818;
    margin: 10px;
    border-radius: 50%;
}

.circle-inner {
    color: white;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    height: 50px;
    width: 50px;
    font-size: 15px;
}

.circle-image {
    display: inline-block;
    background-color: #181818;
    border-radius: 50%;
    height: 50px;
    width: 50px;
}

.viper-barcode-scanner-frame {
    overflow: hidden;
    width: 100%;
    height: min(70vh, 420px);
    border: 1px solid #d9dee7;
    border-radius: 12px;
    background: #0f172a;
}

.viper-barcode-scanner-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #0f172a;
    object-fit: cover;
    transform: translateZ(0);
}

@media (max-width: 576px) {
    .viper-barcode-scanner-frame {
        height: 56vh;
        min-height: 320px;
    }
}

/* Campanha de estoque: estilos globais porque esta RCL e consumida por hosts diferentes. */
.estoque-campanha-status {
    align-items: center;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 12px 14px;
}

.estoque-campanha-status div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.estoque-section-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.estoque-section-header > span {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.estoque-itens-lista {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    max-height: 420px;
    overflow: auto;
}

.estoque-item-conferido {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.estoque-item-conferido span:first-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.estoque-item-conferido strong {
    overflow-wrap: anywhere;
    word-break: normal;
}

.estoque-item-conferido small {
    color: #667085;
}

.estoque-item-conferido.is-selected,
.estoque-item-conferido:hover {
    background: #f4f8ff;
    border-color: #2f80ed;
}

.estoque-lista-pager {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    margin-top: 10px;
}

.estoque-lista-pager span:last-child {
    display: flex;
    gap: 6px;
}

.estoque-lista-pager.compact {
    border-top: 1px solid #eef2f6;
    padding-top: 8px;
}

.estoque-checkpoint {
    border: 1px solid #d7dee8;
    border-radius: 6px;
    margin-top: 10px;
    padding: 10px;
}

.estoque-checkpoint-item {
    align-items: center;
    border-top: 1px solid #eef2f6;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 0;
}

.estoque-checkpoint-item > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.estoque-checkpoint-destaque {
    border: 2px solid #2f80ed;
}

.estoque-checkpoint-card-item {
    align-items: start;
    border-top: 1px solid #eef2f6;
    display: grid;
    gap: 10px 12px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding: 12px 0;
}

.estoque-checkpoint-produto {
    grid-column: 1 / -1;
}

.estoque-checkpoint-quantidade {
    grid-column: span 3;
}

.estoque-checkpoint-observacao {
    grid-column: span 9;
}

.estoque-checkpoint-card-item strong,
.estoque-checkpoint-card-item small {
    display: block;
}

.estoque-checkpoint-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 5px;
}

.estoque-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    white-space: nowrap;
}

.estoque-status-badge.is-pendente {
    background: #fff8e5;
    color: #946200;
}

.estoque-status-badge.is-revisado {
    background: #e8f5ee;
    color: #0f7b35;
}

.estoque-status-badge.is-adiado {
    background: #fff1f0;
    color: #b42318;
}

.estoque-status-badge.is-neutro {
    background: #eef2f6;
    color: #475467;
}

.estoque-relatorio-grupo {
    border: 1px solid #d7dee8;
    border-radius: 6px;
    margin-top: 10px;
    padding: 10px;
}

.estoque-relatorio-grupo > span {
    color: #667085;
    display: block;
    margin-bottom: 8px;
}

.estoque-relatorio-linha {
    align-items: center;
    border-top: 1px solid #eef2f6;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 6px 0;
}

.estoque-relatorio-linha > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.estoque-nao-conferido-item {
    align-items: center;
    border-bottom: 1px solid #eef2f6;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 0;
}

.estoque-nao-conferido-item:first-child {
    border-top: 1px solid #eef2f6;
}

.estoque-nao-conferido-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.estoque-nao-conferido-item strong {
    overflow-wrap: anywhere;
    word-break: normal;
}

.estoque-nao-conferido-item small {
    color: #667085;
}

.estoque-nao-conferido-item > span {
    color: #101828;
    font-weight: 600;
    white-space: nowrap;
}

.estoque-diferenca-positiva {
    color: #0f7b35;
}

.estoque-diferenca-negativa {
    color: #b42318;
}

.viper-produto-autocomplete-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 8px 2px;
    white-space: normal;
    width: 100%;
}

.viper-produto-autocomplete.b-is-autocomplete {
    max-width: 100%;
    width: 100%;
}

.viper-produto-autocomplete.b-is-autocomplete .dropdown-menu {
    max-height: min(56vh, 360px);
    max-width: 100%;
    min-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
}

.viper-produto-autocomplete.b-is-autocomplete .dropdown-item {
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    white-space: normal;
}

.viper-produto-autocomplete.b-is-autocomplete .dropdown-item mark,
.viper-produto-autocomplete.b-is-autocomplete .dropdown-item .highlight {
    background: #fff2a8;
    border-radius: 3px;
    color: inherit;
    padding: 0 2px;
}

.viper-produto-autocomplete-header {
    align-items: center;
    color: #475467;
    display: flex;
    font-size: .8125rem;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.viper-produto-autocomplete-code,
.viper-produto-autocomplete-title {
    color: #101828;
    font-weight: 700;
}

.viper-produto-autocomplete-title,
.viper-produto-autocomplete-detail {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.viper-produto-autocomplete-detail {
    color: #667085;
    font-size: .8125rem;
    line-height: 1.25;
}

.estoque-contagem-produto {
    border: 1px solid #d7dee8;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
}

.estoque-contagem-produto strong,
.estoque-modal-header strong {
    overflow-wrap: anywhere;
    word-break: normal;
}

.estoque-modal-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.estoque-modal-header > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.estoque-modal-header small {
    color: #667085;
}

@media (max-width: 768px) {
    .estoque-campanha-status,
    .estoque-section-header,
    .estoque-modal-header,
    .viper-produto-autocomplete-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .estoque-checkpoint-card-item,
    .estoque-checkpoint-item,
    .estoque-nao-conferido-item,
    .estoque-relatorio-linha,
    .estoque-item-conferido {
        grid-template-columns: 1fr;
    }

    .estoque-checkpoint-produto,
    .estoque-checkpoint-quantidade,
    .estoque-checkpoint-observacao,
    .estoque-checkpoint-actions {
        grid-column: 1;
    }

    .estoque-checkpoint-actions {
        justify-content: flex-start;
        padding-top: 0;
    }

    .estoque-status-badge {
        align-self: flex-start;
        white-space: normal;
    }

    .viper-produto-autocomplete.b-is-autocomplete .dropdown-menu {
        left: 0 !important;
        max-width: calc(100vw - 28px);
        min-width: 100%;
        overflow-x: hidden;
        right: auto !important;
        transform: none !important;
        width: 100%;
    }
}

.produtos-mobile-title {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    min-width: 0;
}

.produtos-mobile-image {
    flex: 0 0 auto;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px;
    max-height: 48px;
    object-fit: cover;
    border-radius: .35rem;
    border: 1px solid #d9dee7;
    background: #fff;
    padding: 2px;
}

.produtos-mobile-title div {
    min-width: 0;
}

.produtos-mobile-title strong {
    overflow-wrap: anywhere;
}

.produtos-mobile-title span {
    display: block;
    color: #6c757d;
    font-size: .75rem;
}

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
    .table-mobile {
        border-collapse: separate !important;
        border-spacing: 0 .7rem !important;
        width: 100% !important;
        padding: .85rem 1rem 1rem;
        background: #f1f3f5;
    }

    .table-mobile tbody {
        display: grid !important;
        gap: .7rem;
        width: 100%;
    }

    .table-mobile:not(.table-borderless) tr {
        overflow: hidden;
        margin: 0;
        border: 1px solid transparent !important;
        border-radius: .3rem;
        background: #fff;
        cursor: pointer;
    }

    .table-mobile tbody tr.selected,
    .table-mobile tbody tr.table-active {
        border-color: var(--b-theme-primary, var(--bs-primary)) !important;
        box-shadow: inset 3px 0 0 var(--b-theme-primary, var(--bs-primary));
    }

    .table-mobile td,
    .table-mobile th {
        border: 0 !important;
        padding: 1.35rem .75rem .45rem !important;
        background: transparent !important;
        color: #111827;
        font-size: .9rem;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .table-mobile td:before,
    .table-mobile th:before {
        top: .35rem !important;
        color: #6c757d;
        font-size: .75rem;
        font-weight: 600;
    }

    .table-mobile td[data-caption="Ações"],
    .table-mobile th[data-caption="Ações"] {
        display: flex;
        align-items: center;
        gap: .45rem;
        min-height: 3rem;
    }
}
