html {
    font-size: 10pt;
}

@media (min-width: 768px) {
    html {
        font-size: 10pt;
    }
}

@media (max-width: 768px) {
    aside.border-hide-lg {
        border-left: none !important;
        border-inline-start: none !important;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #F3F5F9 !important;
}

.login-page {
    margin-top: 100px;
}

.box-logo {
    margin-top: 38px;
    margin-left: 60px;
    width: 100%;
    height: 70px;
}

.box-logo-topo {
    width: 154px !important;
    height: 48px !important;
    padding-right: 100px !important;
}

.box-logo-login {
    width: 90px !important;
    height: 40px !important;
    padding-right: 100px !important;
}

.logo-login {
    background-image: url('img/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.logo-topo {
    background-image: url('img/logo_topo.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.copyright {
    position: relative;
    top: -30px;
    text-align: right;
    margin: 5px;
    color: #FFF;
    font-size: 10pt;
}

.link {
    text-decoration: underline;
    color: black !important;
    font-size: 10pt;
}

#processando {
    cursor: progress;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

    .captcha-box input {
        width: 62px;
        text-align: left;
    }

#captchaOperation {
    border: 1px solid #808080;
    padding: 4.8px 6px;
    width: 60px;
    background-color: #198754;
    cursor: default;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 8px;
}

.alert-modal {
    position: relative;
    padding: 0.5rem 1rem;
    margin-bottom: 0px;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.text-modal {
    vertical-align: super;
    font-weight: 600;
}

.navbar {
    padding: 14px 0px !important;
    width: 100%;
    min-height: auto;
}

.cursor-d {
    cursor: default;
}

.cursor-p {
    cursor: pointer;
}

.nav-link-icon {
    padding: 8px 34px 0px 0px !important;
    width: 100%;
    margin: 0px !important;
    display: table-cell;
}

.dropdown-item.active, .dropdown-item:active {
    color: white !important;
    text-decoration: none;
    background-color: #808080 !important;
}

.container-body {
    margin-bottom: 80px;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgb(80 85 83) !important;
}

div#msgAviso {
    z-index: 1556;
}

:focus {
    border-color: #808080 !important;
    outline: 1px !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.select2-container .select2-selection--single {
    height: 32px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 4px !important;
}

.select2-custom .select2-selection--single {
    height: 45px !important;
    display: flex;
    align-items: center;
}

    .select2-custom .select2-selection--single .select2-selection__rendered,
    .select2-custom .select2-selection--single .select2-selection__arrow {
        margin-top: 6px;
    }

.input-group-select2 {
    display: flex;
}

    .input-group-select2 .select2-container {
        flex: 1 1 auto;
        min-width: 0;
    }

    .input-group-select2 .select2-container--default .select2-selection--single {
        border-radius: 0;
    }

    .input-group-select2 .btn {
        border-radius: 0;
    }

.select2-container--default .select2-selection--single .select2-selection__rendered {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.modal-open .select2-container--open {
    z-index: 999999 !important;
    width: 100% !important;
}

/* typical phone screen resolution */
@media only screen and (max-width : 667px) {
    .mobile-menu {
        margin-top: 10px;
        border-top: 1px #FFF solid;
    }

        .mobile-menu li.nav-item.dropdown {
            margin-bottom: 4px;
        }
}

select2-default {
    color: #999 !important;
    width: auto !important;
}

/* ESTADO DE ERRO */
.was-validated .select2-container.is-invalid .select2-selection--single {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + .75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.8875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

/* ESTADO DE SUCESSO (para manter a consistência) */
.was-validated .select2-container.is-valid .select2-selection--single {
    border-color: var(--bs-form-valid-border-color);
    padding-right: calc(1.5em + .75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.8875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.modal-right .modal-dialog {
    position: absolute;
    min-width: 360px;
    top: 30px;
    right: 5px;
    margin: 0;
    transform: none;
}

    .modal-right .modal-dialog .modal-content {
        padding: 0px 30px 0px 5px;
    }

        .modal-right .modal-dialog .modal-content .close-modal {
            right: -22px;
        }

    .modal-right .modal-dialog .modal-content {
        border: solid 1px #808080 !important;
        color: black;
        font-style: italic;
    }

.input-group .btn {
    border-start-start-radius: unset;
    border-end-start-radius: unset;
}

.box-FrmPgd {
    width: 100%;
    padding: 14px 2px;
    margin: 10px 0px;
    text-align: center;
}

.text-FrmPag {
    top: 2px;
    position: relative;
}

.check-FrmPgd {
    z-index: -10;
    position: fixed;
    top: -100px;
    left: 0px;
    height: 18px !important;
    width: 18px !important;
    border: solid 1px #222e3c !important;
    cursor: pointer;
}

.barcode {
    border: 2px solid #198754 !important;
}

.stepper-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

    .stepper-item::before {
        position: absolute;
        content: "";
        border-bottom: 2px solid #ccc;
        width: 100%;
        top: 20px;
        left: -50%;
        z-index: 2;
    }

    .stepper-item::after {
        position: absolute;
        content: "";
        border-bottom: 2px solid #ccc;
        width: 100%;
        top: 20px;
        left: 50%;
        z-index: 2;
    }

    .stepper-item .step-counter {
        position: relative;
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ccc;
        margin-bottom: 6px;
    }

    .stepper-item.active {
        font-weight: bold;
    }

        .stepper-item.active .step-counter {
            background: #222e3c;
            color: #FFF;
        }

    .stepper-item.completed .step-counter {
        background-color: #198754;
        color: #FFF;
        font-weight: bold;
    }

    .stepper-item.completed::after {
        position: absolute;
        content: "";
        border-bottom: 2px solid #4bb543;
        width: 100%;
        top: 20px;
        left: 50%;
        z-index: 3;
    }

    .stepper-item:first-child::before {
        content: none;
    }

    .stepper-item:last-child::after {
        content: none;
    }

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: #198754 !important;
    --bs-table-bg-state: #F3F5F9 !important;
}

    .table-hover > tbody > tr:hover > * i {
        color: #198754 !important;
    }

.box {
    position: relative;
    padding-top: 3px;
    padding-bottom: 10px;
}

.box-filter {
    padding: 22px 18px;
}

.filter-add {
    position: absolute;
    top: 12px;
    right: 28px;
    width: 30px;
}

.table tfoot tr.totais th {
    background: #198754 !important;
    color: #ffffff;
    font-weight: 600;
}


/* Esconde o checkbox padrão */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition: all 0.3s ease;
    top: -1px;
}

    /* Estilo quando selecionado */
    input[type="checkbox"]:checked {
        background-color: #007bff;
        border-color: #007bff;
    }

        /* Marca de verificação (pode substituir por ícone) */
        input[type="checkbox"]:checked::after {
            content: "";
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

/*CSS De impressão do CUPOM*/

.cupom {
    border: 1px dashed #000;
    padding: 10px;
}

    .cupom .center {
        text-align: center;
    }

    .cupom .lineDashed {
        border-top: 1px dashed #000 !important;
        margin: 8px 0 !important;
    }

    .cupom .lineDashedHeader {
        border-top: 1px dashed #000 !important;
        margin: 8px 40px !important;
    }

    .cupom .produto {
        display: flex;
        justify-content: space-between;
    }

    .cupom .totais, .pagamento {
        margin-top: 10px;
    }

        .cupom .totais div, .pagamento div {
            display: flex;
            justify-content: space-between;
            font-weight: bold;
        }

    .cupom .footer {
        font-size: 12px;
        margin-top: 10px;
        text-align: center;
    }

    .cupom .cliente-info {
        font-size: 13px;
        margin: 10px 0;
    }

    .cupom .obs {
        font-size: 12px;
        margin-top: 8px;
        font-style: italic;
    }

/*Final do CSS De impressão do CUPOM*/

/*Graficos*/

.card {
    margin-bottom: 1.5rem;
}

.card-title {
    font-weight: 600;
}

.kpi-value {
    font-size: 2.0rem;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

/*Final Graficos*/

/*
 * Remove a margem padrão do topo do dropdown no menu desktop para
 * que ele fique colado à barra de navegação.
*/
.navbar-expand-lg .navbar-nav .dropdown-menu {
    margin-top: 4px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

    /*
 * Adiciona um pequeno triângulo (ponteiro) no topo do dropdown
 * para criar uma ligação visual com o item de menu principal.
*/
    .navbar-expand-lg .navbar-nav .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px; /* Posiciona o triângulo acima do menu */
        left: 2px; /* Alinha o triângulo com o texto do menu principal */
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 10px solid white; /* A cor deve ser a mesma do fundo do dropdown */
    }

.dropdown-menu[aria-labelledby="navbarUserDesktop"]::before {
    left: 25px !important;
}

.dropdown-menu[aria-labelledby="navbarNotificationDesktop"]::before {
    left: 322px !important;
}

.notification-bell {
    position: relative !important; /* Torna o link um contentor de referência */
    padding: 10px 15px 0px 0px !important
}

    .notification-bell .badge {
        top: 4px !important;
        right: 4px !important;
        left: auto !important;
        transform: none !important;
    }

.offcanvas .nav-link .badge {
    margin-top: 2px;
}

.border-dashed {
    border-style: dashed !important;
    border-top: 0px !important;
}

.quantity-input {
    width: 45px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
}

.quantity-btn {
    border-radius: 0;
}

.border-dashed-cart-empety {
    border-style: dashed !important;
}

.access-checkbox, .default-store-radio {
    width: 1.5em !important;
    height: 1.5em !important;
    cursor: pointer !important;
    border: 1px solid #222E3C !important;
}

.g-2, .gx-2 {
    --bs-gutter-x: 1.5rem !important;
}