body {
    font-family: 'Roboto', sans-serif;
}

.hand{
    cursor: pointer;
}

.modal-content{
    max-height: 100%; /*altura da modal*/
}

.modal-dialog{
    height: 100%; /*altura da view da modal*/
    margin-top: 0;
}

.modal-body{
    overflow: auto; /*habilita o overflow no corpo da modal*/
    padding-right: 2px;
    padding-left: 2px;
}

.linha_hr{
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.badge_valor {
    padding: 5px;
    background-color: #EF473A;
    color:white;
    margin-top: 5px;
}

.vendas_detalhe {
    padding-right: 2px;
    padding-left: 2px;   
}

/* Detalhe das vendas: o corpo desloca-se entre o cabeçalho e o rodapé. */
#modal_detalhe .modal-dialog {
    height: calc(100% - 32px);
    height: calc(100dvh - 32px);
    min-height: 0;
    margin: 16px auto;
    padding: 0;
}

#modal_detalhe .modal-content {
    max-height: 100%;
    overflow: hidden;
    border: 1px solid #dfe2e6;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(25, 30, 36, 0.18);
}

#modal_detalhe .modal-header,
#modal_detalhe .modal-footer {
    flex-shrink: 0;
    padding: 12px 20px;
    border-color: #e2e5e9;
}

#modal_detalhe .modal-title {
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#modal_detalhe .close {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}

#modal_detalhe .modal-body {
    min-height: 0;
    padding: 16px;
    background: #f5f6f7;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#modal_detalhe .vendas_detalhe {
    display: grid;
    gap: 14px;
    padding: 0;
}

.detail-card {
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #dfe2e6;
    border-radius: 10px;
    color: #292d32;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.detail-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.detail-label,
.detail-figures dt {
    display: block;
    color: #60666e;
    font-size: 13px;
    font-weight: 400;
}

.detail-document strong {
    font-size: 16px;
    font-weight: 500;
}

.detail-value {
    margin-left: auto;
    text-align: right;
}

.detail-value strong {
    color: #292d32;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.detail-card-negative .detail-value strong {
    color: #b42318;
}

.detail-client {
    margin: 12px 0 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
}

.detail-product {
    padding-top: 14px;
    border-top: 1px solid #e8eaed;
}

.detail-description {
    margin: 6px 0 0;
    font-size: 16px;
}

.detail-description-secondary {
    margin: 4px 0 0;
    color: #60666e;
    font-size: 15px;
}

.detail-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0;
    padding: 12px;
    background: #f6f7f8;
    border-radius: 8px;
}

.detail-figures dd {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.detail-card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    font-size: 13px;
}

.detail-status {
    padding: 4px 8px;
    background: #eef0f2;
    border-radius: 6px;
}

.detail-user {
    color: #60666e;
}

#modal_detalhe .detail-image {
    align-self: flex-end;
    min-height: 44px;
    padding: 10px 12px;
    color: #17654b;
    background: #fff;
    border: 1px solid #c6cbd1;
    border-radius: 8px;
    font-size: 14px;
}

#modal_detalhe .detail-image:hover {
    background: #f0f2f4;
}

#modal_detalhe .btn:focus-visible,
#modal_detalhe .close:focus-visible {
    outline: 2px solid #17654b;
    outline-offset: 2px;
}

#modal_detalhe .modal-footer .btn {
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 8px;
}

@media (max-width: 575.98px) {
    #modal_detalhe .modal-dialog {
        margin: 8px;
        height: calc(100% - 16px);
        height: calc(100dvh - 16px);
    }

    #modal_detalhe .modal-header,
    #modal_detalhe .modal-footer {
        padding: 10px 14px;
    }

    #modal_detalhe .modal-body {
        padding: 10px;
    }

    .detail-card {
        padding: 14px;
    }

    .detail-value strong {
        font-size: 20px;
    }
}

.img_artigo,
.img_artigo:hover{
    text-decoration: none;
    color: black;
}

.torrada{
    color: white !important;
}

.grid{
    width: 50%;
}

.error {
    color: red;
}

/* FIX font awesome 5 -  awesome-bootstrap-checkbox */
.abc-checkbox input[type="checkbox"]:checked+label::after,
.abc-checkbox input[type="radio"]:checked+label::after {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    content: "\f00c";
    font-weight: 900;
}


/* ini LOGIN */

.login-page {
    background-color: #f5f6f7;
    color: #292d32;
}

.login-layout {
    min-height: 100vh;
    padding-top: 24px;
    padding-bottom: 24px;
}

.form-signin {
    max-width: 360px;
    padding: 20px;
    margin: 0 auto;
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}

.form-signin .checkbox {
    font-weight: normal;
}

.form-signin .form-control {
    position: relative;
    font-size: 16px;
    height: auto;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.form-signin .form-control:focus {
    z-index: 2;
    border-color: #17654b;
    box-shadow: 0 0 0 3px rgba(23, 101, 75, 0.15);
}

.form-signin input[type="text"],
.form-signin input[type="password"] {
    margin-bottom: 12px;
    border-color: #cdd2d8;
    border-radius: 8px;
}

.password-field {
    position: relative;
    margin-bottom: 12px;
}

.form-signin .password-field .form-control {
    margin-bottom: 0;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 44px;
    height: 46px;
    padding: 0;
    color: #697079;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.password-toggle:hover {
    color: #17654b;
}

.password-toggle:focus-visible {
    outline: 2px solid #17654b;
    outline-offset: -4px;
}

.form-signin .btn {
    border-radius: 8px;
    font-size: 18px;
    padding: 12px;
}

.form-signin .btn-login-primary {
    color: #fff;
    background-color: #17654b;
    border-color: #17654b;
}

.form-signin .btn-login-primary:hover,
.form-signin .btn-login-primary:active {
    background-color: #104b37;
    border-color: #104b37;
}

.form-signin .btn-login-secondary {
    color: #4b525b;
    background-color: #fff;
    border-color: #a4abb3;
}

.form-signin .btn-login-secondary:hover,
.form-signin .btn-login-secondary:active {
    color: #292d32;
    background-color: #f0f2f4;
    border-color: #a4abb3;
}

.form-signin .btn:focus {
    box-shadow: 0 0 0 3px rgba(23, 101, 75, 0.25);
}

.account-wall {
    padding: 32px 12px 20px;
    background-color: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(25, 30, 36, 0.08);
}

.login-title {
    color: #292d32;
    font-size: 24px;
    font-weight: 500;
    display: block;
}

.profile-img {
    margin: 0 auto 10px;
    display: block;
    max-width: 100%;
    height: auto;
}



.swal2-popup.app-alert {
    width: 420px;
    padding: 28px 24px;
    border: 1px solid #e2e5e9;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(25, 30, 36, 0.15);
}

.app-alert .swal2-title {
    color: #292d32;
    font-size: 24px;
    font-weight: 500;
}

.app-alert .swal2-content {
    color: #60666e;
    font-size: 16px;
    line-height: 1.6;
}

.app-alert .swal2-info {
    color: #697079;
    border-color: #b9bec5;
}

.swal2-popup.app-alert .swal2-styled {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
}

.swal2-popup.app-alert .swal2-styled:focus {
    box-shadow: 0 0 0 3px rgba(23, 101, 75, 0.2);
}

/* fim LOGIN */

/* Calendário das consultas */
.sales-page .flatpickr-months .flatpickr-month,
.sales-page .flatpickr-current-month .flatpickr-monthDropdown-months,
.sales-page .flatpickr-current-month .flatpickr-monthDropdown-month,
.sales-page .flatpickr-weekdays,
.sales-page span.flatpickr-weekday {
    background: #f0f2f4;
    color: #292d32;
}

.sales-page span.flatpickr-weekday {
    font-weight: 400;
}

.sales-page .flatpickr-calendar.arrowTop:after {
    border-bottom-color: #fff;
}

.sales-page .flatpickr-calendar.arrowBottom:after {
    border-top-color: #fff;
}

.sales-page .flatpickr-day.selected,
.sales-page .flatpickr-day.startRange,
.sales-page .flatpickr-day.endRange {
    background: #17654b;
    border-color: #17654b;
    color: #fff;
}

.sales-page .flatpickr-day.selected:hover,
.sales-page .flatpickr-day.selected:focus {
    background: #104b37;
    border-color: #104b37;
}

.sales-page .flatpickr-months .flatpickr-prev-month:hover svg,
.sales-page .flatpickr-months .flatpickr-next-month:hover svg {
    fill: #17654b;
}

/* CONSULTAS */
.sales-page {
    background-color: #f5f6f7;
    color: #292d32;
}

.sales-layout {
    max-width: none;
    padding: 24px;
}

.sales-header,
.sales-panel {
    margin-bottom: 20px;
    padding: 24px;
    background-color: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(25, 30, 36, 0.04);
}

.sales-brand,
.sales-account {
    display: flex;
    align-items: center;
}

.sales-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.sales-account {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 10px;
}

.sales-brand {
    grid-column: 2;
    flex-direction: column;
    gap: 0;
    text-align: center;
}

.sales-logo {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
}

.sales-brand h1 {
    margin: 0 0 6px;
    color: #292d32;
    font-size: 22px;
    font-weight: 500;
}

.sales-brand p,
.sales-user-label {
    margin: 0;
    color: #697079;
    font-size: 14px;
}

.sales-user-label,
.sales-user-name {
    display: block;
}

.sales-user-name {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.sales-page .btn,
.sales-page .form-control {
    border-radius: 8px;
}

.sales-page .btn-primary {
    background-color: #17654b;
    border-color: #17654b;
}

.sales-page .btn-primary:hover,
.sales-page .btn-primary:not(:disabled):not(.disabled):active {
    background-color: #104b37;
    border-color: #104b37;
}

.sales-page .btn:focus,
.sales-page .form-control:focus,
.sales-page .page-link:focus {
    border-color: #17654b;
    box-shadow: 0 0 0 3px rgba(23, 101, 75, 0.18);
}

.sales-filters {
    align-items: flex-end;
    margin-bottom: 24px;
}

.sales-date-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.sales-date-shortcuts .btn {
    min-height: 44px;
    font-size: 14px;
}

.sales-search {
    margin-top: 12px;
}

.sales-page .sales-date-shortcuts .btn-outline-secondary:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #17654b;
    border-color: #17654b;
}

.sales-filters label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.sales-filters .form-control,
.sales-search .btn {
    height: 44px;
}

.sales-filters .form-control[readonly] {
    background-color: #f8f9fa;
    border-color: #cdd2d8;
    cursor: pointer;
}

.sales-section-title {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.company-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.sales-page .lista_empresas {
    min-width: 0;
    width: auto;
    padding: 0;
    border: 1px solid #dfe2e6;
    border-radius: 8px;
}

.sales-page .lista_empresas:hover {
    border-color: #a4abb3;
}

.sales-page .lista_empresas.is-selected {
    background-color: #f0f2f4;
    border-color: #17654b;
    box-shadow: inset 0 0 0 1px #17654b;
}

.sales-page .empresas {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 14px;
    border-radius: 8px;
}

.sales-page .empresas img {
    max-height: 60px;
    object-fit: contain;
}

.sales-views {
    margin: -4px -4px 20px;
}

.sales-views .visualizacao {
    flex: 1 1 150px;
    padding: 10px 12px;
    font-size: 14px;
}

.sales-page .btn-outline-secondary {
    color: #4b525b;
    border-color: #c6cbd1;
}

.sales-page .btn-outline-secondary:hover,
.sales-page .btn-outline-secondary:not(:disabled):not(.disabled).active {
    color: #292d32;
    background-color: #e8ebee;
    border-color: #a4abb3;
}

.sales-results .table {
    color: #292d32;
}

.sales-empty {
    margin: 0;
    padding: 20px 16px;
    color: #4b525b;
    background-color: #f6f7f8;
    border-radius: 8px;
    text-align: center;
}

.sales-table {
    overflow-x: auto;
}

.sales-table > .dataTables_wrapper > .row {
    margin-left: 0;
    margin-right: 0;
}

.sales-table > .dataTables_wrapper > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.sales-results .table thead th,
.sales-results .table tfoot th {
    background-color: #f0f2f4;
    border-color: #dfe2e6;
    font-size: 14px;
}

.sales-results .page-link {
    color: #4b525b;
}

.sales-results .page-item.active .page-link {
    color: #fff;
    background-color: #4b525b;
    border-color: #4b525b;
}

@media (min-width: 992px) {
    .company-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .sales-header {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        align-items: start;
        gap: 16px;
    }

    .sales-brand {
        grid-column: 1;
        min-width: 0;
    }

    .sales-account {
        grid-column: 2;
        align-self: center;
        justify-content: center;
    }

}

@media (max-width: 767.98px) {
    /* Nome da empresa no titulo desativado.
    .sales-results-company {
        display: block;
        margin-bottom: 4px;
    }

    .sales-results-separator {
        display: none;
    }
    */

    .sales-layout {
        padding: 12px;
    }

    .sales-header,
    .sales-panel {
        padding: 16px;
    }

    .sales-header {
        gap: 12px;
    }

    .sales-logo {
        width: 80px;
        height: 80px;
    }

    .sales-brand h1 {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .sales-brand p,
    .sales-user-name {
        font-size: 13px;
    }

    .sales-filters > div + div {
        margin-top: 16px;
    }

    .sales-filters > div:nth-child(2) {
        margin-top: 8px;
    }
}
