* {
    touch-action: manipulation;
    user-select: none;
}

table, table * {
  user-select: text;
}

::placeholder {
    text-transform: none;
}

#myTable_filter, .select2-search__field {
    font-size: 1rem!important;
}

.dataTables_wrapper {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(49, 53, 61, .05);
    overflow: visible;
    padding: 16px;
    width: 100%;
}

.dataTables_wrapper::before {
    background: #fc793a;
    content: "";
    display: block;
    height: 3px;
    margin: -16px -16px 14px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #6c757d;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #31353d;
    min-height: 36px;
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    margin: 0 6px;
    padding: 4px 28px 4px 10px;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 8px;
    padding: 7px 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dataTables_wrapper .dataTables_length select:hover,
.dataTables_wrapper .dataTables_filter input:hover {
    border-color: #d8d8d8;
}

.dataTables_wrapper .dataTables_filter input:focus {
    background: #fff;
    border-color: #fc793a;
    box-shadow: 0 0 0 3px rgba(252, 121, 58, .12);
}

table.dataTable,
table.dataTable.no-footer {
    border-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    margin: 14px 0 !important;
    width: 100% !important;
}

table.dataTable thead th,
table.dataTable thead td {
    background: linear-gradient(180deg, #fbfbfb 0%, #f6f6f6 100%);
    border-bottom: 1px solid #e8e8e8 !important;
    color: #31353d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 13px 12px !important;
    vertical-align: middle;
}

table.dataTable thead th:first-child {
    border-top-left-radius: 8px;
}

table.dataTable thead th:last-child {
    border-top-right-radius: 8px;
}

table.dataTable tbody td {
    border-bottom: 1px solid #f0f0f0;
    color: #414447;
    padding: 12px !important;
    vertical-align: middle;
}

table.dataTable tbody tr {
    background: #fff;
    transition: background-color .12s ease, box-shadow .12s ease;
}

table.dataTable.display tbody tr.odd,
table.dataTable.stripe tbody tr.odd {
    background: #fff;
}

table.dataTable.display tbody tr.even,
table.dataTable.stripe tbody tr.even {
    background: #fcfcfc;
}

table.dataTable.display tbody tr.odd > .sorting_1,
table.dataTable.order-column.stripe tbody tr.odd > .sorting_1,
table.dataTable.display tbody tr.even > .sorting_1,
table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
    background-color: #f7f7f7;
}

table.dataTable.display tbody tr:hover,
table.dataTable.hover tbody tr:hover {
    background: #fff7f3;
    box-shadow: inset 3px 0 0 #fc793a;
}

table.dataTable.display tbody tr:hover > .sorting_1,
table.dataTable.order-column.hover tbody tr:hover > .sorting_1 {
    background-color: #f4f4f4;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: #fc793a;
    border: 0;
    box-shadow: 0 2px 6px rgba(252, 121, 58, .28);
    line-height: 15px;
}

.dataTables_wrapper .dataTables_paginate {
    align-items: center;
    display: flex;
    gap: 10px;
    padding-top: 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #6c757d !important;
    margin: 0 3px !important;
    min-width: 34px;
    padding: 7px 15px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff7f3 !important;
    border-color: #ffd9c7 !important;
    color: #fc793a !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #fc793a !important;
    border-color: #fc793a !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent !important;
    border-color: transparent !important;
    color: #c6c6c6 !important;
}

table.dataTable tbody td.dataTables_empty {
    color: #8a8a8a;
    padding: 34px 12px !important;
}

.select-search{
    max-height: 143px;
    overflow: auto;
    z-index: 1;
}

.select-search > .row{
    background: #ddd;
    padding: 5px 10px;
    border-bottom: 1px solid #ffffff;
    cursor: pointer;
}

.select-search > .row:hover{
    background: #c0c0c0;
}

.product-list-cashier{
    padding: 10px 0px;
    border-radius: 10px;
    font-weight: bold;
    color: #818896;
    border-bottom: 1px solid #414447;
}

.container-cashier{
    height: 70%;
}

.container-list-product {
    background-color: #31353d;
    height: 70%;
    overflow: auto;
}

.container-right{
    height: 100%;
}

.container-right-products{
    height: 100%;
}

.container-price-products{
    height: 30%;
    background: #fc793a;
    color: white;
}

.container-price-products .row{
    height: 33.33%;
    display: flex;
    align-items: center;
}

.row-total-product h1, h1{
    margin: 0;
}

.container-last-product{
    opacity: 0.6;
    width: 100%;
}

.header-cashier{
    height: 20%;
    border-bottom: 5px solid #dee2e6 !important;
    min-height: max-content;
    padding-left: 35px!important;
}

.footer-cashier{
    height: 10%;
    background-color: #31353d;
}

.product-list-bar-code p{
    font-size: 10px;
    background-color: #818896;
    padding: 5px 2px;
    text-align: center;
    color: #31353d;
    border-radius: 8px;
}

.product-list-price p,
.product-price-change{
    font-size: 10px;
    padding: 5px 2px;
    color: #818896;
    text-align: center;
    background: transparent;
    border: none;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.product-price-change{
    width: 100%;
}

.penedit {
    position: absolute;
    right: 15px;
    top: 5px;
    z-index: 0;
}

.unlockDiscount {
    cursor: pointer;
    z-index: 2;
}

.product-list-quantity button{
    background: none;
    border: none;
    padding: 0 7px!important;
}

.product-list-quantity button:hover, .product-list-quantity button:focus{
    background: none;
    border: none;
    box-shadow: none;
    color: #fc793a;
}

.product-list-quantity input, .product-list-quantity input:focus{
    background: none;
    border: none;
    color: #bbbbbb;
    box-shadow: none;
}

.product-list-subtotal p{
    font-size: 10px;
    background-color: #818896;
    padding: 5px 2px;
    text-align: center;
    color: #31353d;
    border-radius: 8px;
}

.button-cashier{
    font-weight: bold;
    padding: 10px 10px!important;
    border-radius: 5px;
    font-size: 10px;
    width: 100%;
}

.button-back-cashier{
    border: 2px solid #fc793a;
    background: none;
    color: #fc793a;
    font-size: 12px;
}

.button-default{
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    width: 100%;
}

.button-default-small{
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
}

.accepted-payments i{
    color: white;
    font-size: 30px;
}

.total-value-products{
    height: 50px;
    color: #fff;
}

.total-value-products h1{
    margin-bottom: 0!important;
    padding: 5px 10px;
    font-family: 'Sale Easy';
    font-size: 30px;
}

.search-products{
    background: #31353d;
    padding: 0px 10px;
    border-radius: 5px;
    border: 2px solid #6d757d;
}

.search-products input{
    background: none!important;
    border: 0!important;
    color: white!important;
}

.show-fiscal-fields, .hide-fiscal-fields{
    cursor: pointer;
}

.search-products .form-control:focus{
    box-shadow: 0 0 0 0rem rgba(255, 255, 255, 0.25)!important;
    color: white;
}

.search-products .input-group-prepend span{
    background-color: transparent!important;
    border:0!important;
}

h1{
    font-family: 'Sale Easy';
    font-weight: 100!important;
}

.detail-last-item h1{
    margin-bottom: 0;
}

.detail-last-item h6{
    margin-bottom: 0;
    letter-spacing: 10px;
    font-size: 10px;
}

.bolinha{
    border-radius: 60px;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #dee2e6;
    font-size: 30px;
    z-index: 0;
    color: white;
}
.bolinha p{
    margin: 0;
}

.linha{
    width: 100%;
    height: 10px;
    background: #dee2e6;
    transition-duration: 2s;
    margin-bottom: 1.2rem !important;
    z-index: -1;
}

.linha-disabled{
    width: 0%;
    height: 10px;
    background: #dee2e6;
    position: absolute;
    transition-duration: 1s;
    margin-bottom: 1.2rem !important;
    z-index: -1;
}

.linha-preenchida{
    width: 100%;
    background: #fc793a;
}

.step-1, .step-2, .step-3{
    display: flex;
}

.row-step-1, .row-step-2, .row-step-3{
    position: absolute;
    width: 100%;
    height: 100%;
}

.step-enabled{
    background: #fc793a;
    transition-delay: 0.3s;
    transition-duration: 1s;
}

.bg-whisky{
    background: #fc793a!important;
    border-bottom: 1px solid white;
}

.bg-black{
    background: #000000;
}

.btn-whisky{
    background: #fc793a!important;
    border-color: #fc793a;
    color: #fff;
}

.btn-whisky:hover{
    background: #ff6219!important;
    border-color: #fc793a;
    color: #fff;
}

.btn-whisky:focus{
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(252 121 58 / 38%);
}

.btn-transparent{
    background: #fff;
    border: 2px solid #fc793a;
    color: #fc793a;
}

.btn-transparent:hover{
    background: #0000000d;
    border: 2px solid #fc793a;
    color: #fc793a;
}

.btn-active{
    background: #ff6219!important;
    border-color: #fc793a;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(252 121 58 / 38%);
}

.payment-method{
    background: #fc793a;
    padding: 0px 10px;
    border-radius: 5px;
    color: white!important;
    height: 100%;
}

.payment-method input{
    background: none!important;
    border: 0!important;
    color: white!important;
    font-weight: bold;
}

.payment-method input::placeholder{
    color: white!important;
}

.payment-method .form-control:focus{
    box-shadow: 0 0 0 0rem rgba(255, 255, 255, 0.25)!important;
    color: white;
}

.payment-method .input-group-prepend span{
    background-color: transparent!important;
    border:0!important;
}

.payment-method .input-group-prepend span i, .payment-method .input-group-prepend span svg{
    color: white!important;
}

.remove-payment-method{
    height: 100%;
    width: 40px;
    justify-content: center;
    align-items: center;
    background: rgb(255 255 255 / 31%);
    border: none;
    color: #fff;
    right: 0;
    position: absolute;
    display: none;
    z-index: 5;
}

.payment-method:hover .remove-payment-method{
    display:flex!important;
}

.payment-method:hover .fa-lock{
    display:none!important;
}

.step-2, .step-3, .row-step-2, .row-step-3{
    display:none;
}

.search-result-list{
    position: absolute;
    max-height: 400px;
    bottom: 100%;
    background: #31353d;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 108%;
    left: -25px;
    z-index: 1;
}

.result-list-item{
    color: white;
    padding: 5px 25px;
    cursor: pointer;
    font-weight: bold;
}

.result-list-item:not(.disabled-option):hover,
.result-list-item.in-focus:not(.disabled-option) {
    color: #fff !important;
    background: #fc793a !important;
}

.text-blue{
    color: #5aa3ce!important;
    font-weight: bold!important;
}

.text-violet{
    color: #6f6097 !important;
    font-weight: bold!important;
}

.text-whisky{
    color: #fc713a !important;
    font-weight: bold!important;
}

.text-green{
    color: #78b86c !important;
    font-weight: bold!important;
}


.text-red{
    color: #df3545 !important;
    font-weight: bold!important;
}

.disabled-option{
    background: #818896!important;
    cursor: not-allowed!important;
    color: #0000005e;
}

.disabled-option:hover, .result-list-item.disabled-option.in-focus{
    color: #fff!important;
    background: #dc3545!important;
    cursor: not-allowed!important;
}

.title-status-caixa{
    font-size: 54px;
    font-weight: bold!important;
    letter-spacing: 0;
    margin: 0;
    text-transform: none;
}

.sale-home-screen{
    background-image: url('../images/banner-caixa.png');
    background-position: center 58%;
    background-repeat: no-repeat;
    background-size: min(520px, 46vw);
    position: relative;
}

.sale-home-screen:before{
    background: rgba(248, 249, 252, .78);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.sale-home-layout{
    min-height: 100%;
    position: relative;
}

.sale-home-hero-row,
.sale-home-actions-row{
    position: relative;
    z-index: 1;
}

.sale-home-actions-row{
    bottom: 42px;
    left: 0;
    position: absolute;
    right: 0;
}

.sale-home-button-bar{
    bottom: auto;
    padding: 0;
    position: relative;
}

.sale-home-screen .button-delivery-border{
    z-index: 5;
}

.sale-home-hero{
    align-items: center;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgb(0 0 0 / 9%);
    display: flex;
    justify-content: space-between;
    margin-bottom: 34px;
    margin-top: 42px;
    min-height: 210px;
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.sale-home-hero:before{
    background: #fff4ef;
    border: 1px solid #ffd8c9;
    border-radius: 999px;
    content: '';
    height: 190px;
    position: absolute;
    right: -70px;
    top: -75px;
    width: 190px;
}

.sale-home-hero-closed{
    min-height: 180px;
}

.sale-home-hero-copy{
    position: relative;
    z-index: 1;
}

.sale-home-eyebrow{
    color: #fc793a;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sale-home-hero-copy p{
    color: #666;
    font-size: 15px;
    font-weight: 700;
    margin: 10px 0 0;
}

.sale-home-hero-meta{
    align-items: stretch;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sale-home-clock-card,
.sale-home-state-card{
    background: #f8f9fa;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    min-width: 170px;
    padding: 16px;
}

.sale-home-clock-label{
    color: #777;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.sale-home-clock{
    color: #232323;
    display: block;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.sale-home-date{
    color: #777;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.sale-home-state-card{
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-width: 150px;
    text-align: center;
}

.sale-home-state-card i{
    color: #19b653;
    font-size: 26px;
}

.sale-home-state-card span{
    color: #333;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .title-status-caixa{
        font-size: 34px;
    }

    .sale-home-hero{
        align-items: flex-start;
        flex-direction: column;
        margin-top: 24px;
        min-height: auto;
        padding: 22px;
    }

    .sale-home-screen{
        background-position: center 54%;
        background-size: 300px;
    }

    .sale-home-layout{
        padding-bottom: 310px;
    }

    .sale-home-actions-row{
        bottom: 18px;
    }

    .sale-home-hero-meta{
        flex-direction: column;
        margin-top: 18px;
        width: 100%;
    }

    .sale-home-clock-card,
    .sale-home-state-card{
        min-width: 0;
        width: 100%;
    }
}

.button-abrir-fechar-caixa{
    background: #343a40;
    color: white;
    border: 1px solid #343a40;
    width: 100%;
    min-height: 44px;
}

.sale-home-action{
    align-items: center;
    background: #ffffff!important;
    border: 1px solid #eeeeee!important;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgb(0 0 0 / 8%);
    color: #232323!important;
    display: flex;
    gap: 10px;
    min-height: 82px;
    padding: 13px 12px;
    text-align: left;
    transition: all 0.2s ease 0s;
}

.sale-home-action:hover,
.sale-home-action:focus{
    border-color: #ffd1b7!important;
    box-shadow: 0 18px 40px rgb(0 0 0 / 13%);
    color: #232323!important;
    outline: none;
    transform: translateY(-2px);
}

.sale-home-action-icon{
    align-items: center;
    background: #fff4ef;
    border: 1px solid #ffd8c9;
    border-radius: 10px;
    color: #fc793a;
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.sale-home-action-icon i{
    font-size: 18px;
}

.sale-home-action-text{
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.sale-home-action-text span{
    font-size: 15px;
    font-weight: 800;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sale-home-action-text small{
    color: #777;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sale-home-action-key{
    align-items: center;
    background: #f6f7f9;
    border: 1px solid #eeeeee;
    border-radius: 999px;
    color: #555;
    display: flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    padding: 4px 8px;
}

@media (max-width: 767px) {
    .sale-home-action{
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        min-height: 132px;
        padding: 12px;
        position: relative;
    }

    .sale-home-action-key{
        position: absolute;
        right: 10px;
        top: 10px;
    }

    .sale-home-action-text span,
    .sale-home-action-text small{
        white-space: normal;
    }
}

.dashboard-info{
    background-color: white;
    border-radius: 10px;
    padding: 15px 30px;
    box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 2px 6px 0 rgb(206 206 238 / 54%);
}



.border-left-blue{
    border-left: 3px solid #5aa3ce;
}

.border-left-red{
    border-left: 3px solid #df3545 !important;
}

.border-left-whisky{
    border-left: 3px solid #fc713a;
}

.border-left-violet{
    border-left: 3px solid #6f6097;
}

.border-left-green{
    border-left: 3px solid #78b86c;
}
.border-left-warning{
    border-left: 3px solid #ffc107;
}
.border-left-primary{
    border-left: 3px solid #007bff;
}
.border-left-default{
    border-left: 3px solid #898d90;
}

.input-search-date{
    border-radius: 40px!important;
    color: #838383!important;
}

.input-daterange span{
    color: #838383!important
}

.title-mensalidade{
    font-family: 'Axiforma';
}

.subtitle-mensalidade{
    font-family: 'Axiforma Bold';
    font-weight: bold;
    color: #e96e35!important;
    font-size: 50px!important;
}

.message-mensalidade{
    font-family: 'Axiforma';
    font-size: 15px;
    color: #7e7e7e;
    text-align: justify;
}

.message-mensalidade b{
    font-family: 'Axiforma Bold';
    color: #e96e35!important;
}

.button-mensalidade{
    font-family: 'Axiforma';
    color: white;
    background: none;
    border: none;
    width: 100%;
    border-radius: 15px;
    min-height: 100%;
}

.background-mensalidade{
    background: #e8e8e8;
    height: 220px;
    width: 100%;
    position: absolute;
}

.command-board{
    padding-top: 20px;
}

.command-board-header{
    align-items: center;
    border-bottom: 1px solid #ececec;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
}

.command-board-header h1{
    font-size: 34px;
    font-weight: 800;
    margin: 0;
}

.command-board-header small{
    color: #777;
    font-size: 14px;
}

.command-board-close{
    align-items: center;
    background: #fff4ef;
    border: 1px solid #ffd8c9;
    border-radius: 8px;
    color: #e96e35;
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.command-board-grid{
    align-items: stretch;
}

.btn-comanda{
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-left: 5px solid #ff8607;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgb(0 0 0 / 7%);
    color: #242424;
    min-height: 118px;
    padding: 16px;
    text-align: left;
    transition: all 0.2s ease 0s;
    width: 100%;
}

.btn-comanda:hover,
.btn-comanda:focus{
    border-color: #ffd1b7;
    box-shadow: 0 14px 34px rgb(0 0 0 / 12%);
    color: #242424;
    outline: none;
    transform: translateY(-2px);
}

.command-card-code{
    color: #ff8607;
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.command-card-name{
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-card-meta{
    color: #777;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.btn-add-comanda{
    align-items: center;
    background: #fff7f2;
    border: 1px dashed #ff8607;
    border-radius: 8px;
    color: #ff8607;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 118px;
    padding: 16px;
    transition: all 0.2s ease 0s;
    width: 100%;
}

.btn-add-comanda i{
    font-size: 24px;
}

.btn-add-comanda:hover,
.btn-add-comanda:focus{
    background: #ff8607;
    color: white;
    outline: none;
    transform: translateY(-2px);
}

.empty-command-list{
    align-items: center;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    color: #777;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    justify-content: center;
    text-align: center;
}

.empty-command-list i{
    color: #ff8607;
    font-size: 34px;
    margin-bottom: 12px;
}

.empty-command-list h3{
    color: #333;
    font-size: 20px;
    font-weight: 800;
}

.text-info-command{
    font-size: 16px;
}

.bolinha-historico{
    text-align: center;
    background: #fff4ef;
    border: 1px solid #ffd5c4;
    border-radius: 100px;
    width: 68px;
    height: 68px;
    color: #e96e35;
    font-size: 13px;
    line-height: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    align-items: center;
}

.bolinha-historico i{
    font-size: 13px;
}

.bolinha-pagamento{
    background: #edf8f1;
    border-color: #bfe8cd;
    color: #21884a;
}

.timeline-row-muted{
    opacity: .68;
}

.text-line-through{
    text-decoration: line-through;
}

.command-timeline-title{
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.command-empty-history{
    align-items: center;
    color: #777;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    justify-content: center;
    text-align: center;
}

.command-empty-history i{
    color: #e96e35;
    font-size: 30px;
    margin-bottom: 12px;
}

.command-empty-history h3{
    color: #333;
    font-size: 20px;
    font-weight: 800;
}

.command-empty-history p{
    margin: 0;
}

/* legacy timeline fallback */
.bolinha-historico.legacy{
    background: #e96e35;
    border: none;
    color: white;
    font-size: 15px;
    line-height: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-row:not(:last-child) .timeline-item:after {
    content: ''; /* Nenhum conteúdo textual, apenas um estilo visual */
    width: 2px;
    height: 100%;
    background: #e9ecef;
    position: absolute;
    margin-top: 5px;
    z-index: -1;
}

.timeline-row:not(:last-child) .timeline-separator {
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.bolinha-historico small{
    font-size: 12px;
}

.btn-print{
    width: 35px;
    height: 35px;
    background-size: 100%;
    border: none;
    border-radius: 10px;
}

.btn-print:focus{
    border: 2px solid #e96e35;
    outline: none;
}

.btn-print img{
    width: 100%;
}

.command-order-actions{
    gap: 8px;
}

.command-order-action{
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    transition: all 0.2s ease 0s;
    width: 36px;
}

.command-order-action:focus{
    outline: none;
}

.command-order-print{
    background: #fff4ef;
    border: 1px solid #ffd8c9;
    color: #e96e35;
}

.command-order-print:hover,
.command-order-print:focus{
    background: #ffe8dc;
    color: #d85f29;
}

.command-order-delete{
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    color: #dc3545;
}

.command-order-delete:hover,
.command-order-delete:focus{
    background: #dc3545;
    color: #ffffff;
}

.modal-command{
    height: 100%;
    background: rgb(0 0 0 / 53%);
    justify-content: center;
    display: flex;
}

.command-content-products{
    height: 90%;
    overflow: auto;
    background: #292d33!important;
}

.row-products-add-command{
    height: calc(100% - 150px);
    overflow: auto;
}

.footer-command{
    height: 10%;
    background-color: #292d33;
    align-items: center;
    display: grid;
    border-top: 1px solid rgb(255 255 255 / 8%);
}

.col-history-content{
    height: 90%;
}

.timeline-content{
    overflow: auto;
    height: calc(100% - 250px);
    padding-top: 8px;
}

.command-history-content .timeline-content{
    background: #ffffff;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: 24px;
}

.timeline-title{
    height: 50px;
}

.command-info{
    height: 200px;
    overflow: unset!important;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.command-detail-header{
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.command-detail-kicker{
    color: #e96e35;
    display: block;
    font-weight: 800;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.command-detail-header h1{
    font-size: 26px;
}

.command-detail-pill{
    background: #f4f5f7;
    border-radius: 999px;
    color: #555;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    padding: 4px 9px;
}

.command-detail-actions{
    align-items: center;
    display: flex;
    gap: 8px;
}

.command-detail-print{
    align-items: center;
    background: #fff4ef;
    border: 1px solid #ffd8c9;
    border-radius: 8px;
    color: #e96e35;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.command-detail-finish{
    background: #e96e35;
    border: 1px solid #e96e35;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
}

.command-detail-finish:hover,
.command-detail-finish:focus{
    background: #d85f29;
    border-color: #d85f29;
    color: #ffffff;
    outline: none;
}

.command-customer-summary{
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 8px;
}

.command-customer-summary div{
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    min-height: 36px;
    min-width: 0;
    padding: 6px 9px;
}

.command-customer-summary i{
    color: #e96e35;
}

.command-customer-summary span{
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .command-board-header h1{
        font-size: 28px;
    }

    .command-customer-summary{
        grid-template-columns: 1fr;
    }

    .command-detail-header h1{
        font-size: 24px;
    }

    .bolinha-historico{
        height: 58px;
        width: 58px;
    }

    .command-content-products{
        min-height: 30%;
    }
}

#comanda-detalhes{
    height: 100%;
}

.command-history-content{
    background: #ffffff;
    height: calc(100% - 145px);
    overflow: auto;
}

.command-history-content .container,
.command-history-content .tab-content,
.command-history-content .tab-pane{
    background: #ffffff;
}

@media (max-width: 767px) {
    .command-info{
        height: 235px;
    }

    .command-history-content{
        height: calc(100% - 235px);
    }
}

.come-from-modal.left .modal-dialog,
.come-from-modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.come-from-modal.left .modal-content,
.come-from-modal.right .modal-content {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    border-radius: 0px;
}

.come-from-modal.left .modal-body,
.come-from-modal.right .modal-body {
    padding: 15px 15px 80px;
}
.come-from-modal.right.fade .modal-dialog {
    right: -320px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.come-from-modal.right.fade.in .modal-dialog {
    right: 0;
}

.text-step{
    font-weight: bold;
    text-align: center;
}

.form-abas li.nav-item {
    border-bottom: 2px solid #c3c3c3;
}

.form-abas li.nav-item a{
    color: #c3c3c3;
    padding: 0;
    background: none!important;
    border: none!important;
}

.form-abas li.nav-item:has(.active) {
    border-bottom: 2px solid #fc793a!important;
}

.form-abas li.nav-item a.active{
    color: #fc793a!important;
}

.form-abas li.nav-item-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-abas .nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
    border: none;
}

.settings-layout {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    grid-template-columns: 250px minmax(0, 1fr);
    width: 100%;
}

.settings-sidebar {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(49, 53, 61, .05);
    overflow: hidden;
    position: sticky;
    top: 0;
}

.settings-sidebar::before {
    background: #fc793a;
    content: "";
    display: block;
    height: 3px;
}

.settings-sidebar-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px;
}

.settings-sidebar-header strong,
.settings-sidebar-header small {
    display: block;
}

.settings-sidebar-header strong {
    color: #31353d;
    font-size: 16px;
}

.settings-sidebar-header small {
    color: #8a8a8a;
    margin-top: 2px;
}

.settings-nav {
    padding: 8px;
}

.settings-nav-link {
    align-items: center;
    border-radius: 8px;
    color: #5f6368;
    display: flex;
    font-weight: 600;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.settings-nav-link:hover,
.settings-nav-link:focus {
    background: #fff7f3;
    color: #fc793a;
    text-decoration: none;
}

.settings-nav-link.active {
    background: #fc793a;
    box-shadow: 0 6px 14px rgba(252, 121, 58, .18);
    color: #fff;
}

.settings-nav-link i {
    flex: 0 0 18px;
    text-align: center;
}

.settings-nav-link span {
    flex: 1;
}

.settings-nav-link small {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    padding: 5px 7px;
}

.settings-content {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(49, 53, 61, .05);
    min-width: 0;
    overflow: visible;
}

.settings-content::before {
    background: #fc793a;
    content: "";
    display: block;
    height: 3px;
}

.settings-tab-content {
    overflow: visible;
    padding: 0 16px 18px;
}

.settings-mobile-nav {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 16px;
}

.settings-mobile-nav label {
    color: #31353d;
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.schedule-list {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.schedule-card {
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(49, 53, 61, .05);
    overflow: hidden;
}

.schedule-planner-tabs {
    align-items: center;
    background: #fff;
    display: flex;
    gap: 24px;
    padding: 14px 18px 0;
}

.schedule-planner-tabs span {
    border-bottom: 2px solid transparent;
    color: #777;
    font-size: 13px;
    font-weight: 800;
    padding: 0 0 10px;
}

.schedule-planner-tabs span.active {
    border-color: #151515;
    color: #151515;
}

.schedule-card-header {
    align-items: center;
    background: #151515;
    border-radius: 8px;
    color: #fff;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    margin: 18px 18px 0;
    padding: 12px 14px;
}

.schedule-card-icon {
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border-radius: 7px;
    color: #fff;
    display: flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.schedule-card-header h4,
.schedule-card-header small {
    display: block;
}

.schedule-card-header h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 2px;
}

.schedule-card-header small {
    color: rgba(255, 255, 255, .7);
    line-height: 1.35;
}

.schedule-planner-body {
    display: grid;
    gap: 14px;
    grid-template-columns: 280px minmax(0, 1fr);
    padding: 18px;
}

.schedule-week {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 6px;
}

.schedule-day-row {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.schedule-day-row.is-open {
    border-color: #d6efe2;
}

.schedule-day-row:hover {
    box-shadow: 0 8px 18px rgba(49, 53, 61, .06);
}

.schedule-day-summary {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.schedule-day-summary strong {
    color: #31353d;
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.schedule-day-status {
    border: 1px solid #dadada;
    border-radius: 999px;
    color: #777;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
}

.schedule-day-row.is-open .schedule-day-status {
    border-color: #87bd9f;
    color: #2f8b5b;
}

.schedule-day-hours {
    color: #777;
    display: block;
    font-size: 13px;
    grid-column: 1 / -1;
}

.schedule-day-summary small:not(.schedule-day-hours) {
    display: none;
}

.schedule-day-periods {
    display: grid;
    gap: 8px;
}

.schedule-period-row {
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 8px;
    min-width: 0;
}

.schedule-period-content {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 48px;
    padding: 8px;
}

.schedule-period-row.is-enabled {
    background: #f7fffb;
    border-color: #d6efe2;
}

.schedule-period-row.is-collapsed {
    background: #fff;
    border-color: #ececec;
    cursor: pointer;
}

.schedule-period-row.is-collapsed .schedule-period-content {
    display: none;
}

.schedule-add-period {
    align-items: center;
    background: #f8f8f8;
    border: 0;
    border-radius: 8px;
    color: #fc793a;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 54px;
    padding: 14px;
    width: 100%;
}

.schedule-add-period:hover,
.schedule-add-period:focus {
    background: #fff1e9;
    color: #fc793a;
    outline: none;
}

.schedule-period-title {
    align-items: center;
    display: flex;
    gap: 7px;
    min-width: 0;
}

.schedule-period-icon {
    align-items: center;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 6px;
    color: #fc793a;
    display: flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.schedule-period-title strong {
    color: #31353d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.schedule-period-title small {
    display: none;
}

.schedule-period-toggle {
    align-items: center;
    display: flex;
    justify-content: center;
}

.schedule-switch {
    display: inline-block;
    vertical-align: middle;
}

.schedule-time-range {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    grid-column: 1 / -1;
}

.schedule-time-range label {
    display: block;
    margin: 0;
    min-width: 0;
}

.schedule-time-range label > span {
    display: none;
}

.schedule-time-range span,
.schedule-time-arrow {
    color: #999;
    font-size: 11px;
    text-align: center;
}

.schedule-time-arrow {
    align-items: center;
    align-self: center;
    background: #f6f6f6;
    border-radius: 999px;
    display: flex;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.schedule-time-input {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    color: #31353d;
    font-size: 14px;
    font-weight: 800;
    height: 42px;
    min-width: 0;
    padding: 8px 10px;
    width: 100%;
}

.schedule-time-input:focus {
    border-color: #fc793a;
    box-shadow: 0 0 0 3px rgba(252, 121, 58, .12);
    outline: none;
}

.schedule-time-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .55;
}

.schedule-time-input::-webkit-calendar-picker-indicator:hover {
    opacity: .9;
}

.schedule-calendar-panel {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 12px;
}

.schedule-calendar-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: 36px repeat(7, minmax(92px, 1fr));
    min-width: 760px;
}

.schedule-calendar-hours {
    display: grid;
    grid-template-rows: 46px repeat(13, 31px);
}

.schedule-calendar-hours span {
    color: #777;
    font-size: 11px;
    line-height: 1;
    padding-top: 2px;
    text-align: right;
}

.schedule-calendar-day {
    min-width: 0;
}

.schedule-calendar-day-head {
    height: 46px;
    text-align: center;
}

.schedule-calendar-day-head strong {
    color: #31353d;
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.schedule-calendar-day-head small {
    color: #777;
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 3px;
}

.schedule-calendar-day.is-open .schedule-calendar-day-head small {
    color: #2f8b5b;
}

.schedule-calendar-day-body {
    background: #f1f1f1;
    border-radius: 8px;
    display: grid;
    gap: 3px;
    grid-template-rows: repeat(13, 31px);
    overflow: hidden;
    position: relative;
}

.schedule-calendar-slot {
    background: #f1f1f1;
    border-bottom: 1px solid #fff;
}

.schedule-calendar-block {
    background: #e4faef;
    border-left: 3px solid #58b27e;
    color: #2f8b5b;
    font-size: 10px;
    font-weight: 800;
    left: 0;
    min-height: 20px;
    overflow: hidden;
    padding: 8px;
    position: absolute;
    right: 0;
}

.schedule-calendar-block span {
    display: block;
    line-height: 1.2;
}

.integration-panel {
    align-items: center;
    border: 1px solid #ececec;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
}

.integration-panel-disabled {
    background: #fbfbfb;
}

.integration-panel-disabled .integration-brand,
.integration-panel-disabled .integration-icon {
    opacity: .72;
}

.integration-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.integration-brand h5 {
    color: #31353d;
    font-weight: 700;
    margin: 0 0 3px;
}

.integration-brand p,
.integration-status small {
    color: #8a8a8a;
    display: block;
    margin: 0;
}

.integration-icon {
    align-items: center;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 8px;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.integration-icon img {
    border-radius: 7px;
    height: 24px;
    object-fit: contain;
    width: 24px;
}

.integration-status {
    text-align: right;
}

.integration-connect-button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    padding: 8px 22px;
    transition: box-shadow .15s ease, filter .15s ease, transform .15s ease;
}

.integration-connect-button:hover,
.integration-connect-button:focus {
    color: #fff;
    filter: brightness(.96);
    text-decoration: none;
    transform: translateY(-1px);
}

.integration-connect-ifood {
    background: #ea1d2c;
    box-shadow: 0 6px 14px rgba(234, 29, 44, .18);
}

.whatsapp-settings-row {
    align-items: flex-start;
}

.whatsapp-ai-panel {
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(49, 53, 61, .05);
    overflow: hidden;
}

.whatsapp-ai-header {
    align-items: center;
    background: #151515;
    color: #fff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px;
}

.whatsapp-ai-title {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.whatsapp-ai-title h3,
.whatsapp-ai-title small {
    margin: 0;
}

.whatsapp-ai-title h3 {
    font-size: 17px;
    font-weight: 800;
}

.whatsapp-ai-title small {
    color: rgba(255, 255, 255, .7);
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 3px;
}

.whatsapp-ai-icon {
    align-items: center;
    background: #fc793a;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.whatsapp-ai-status {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.whatsapp-ai-status .badge {
    border-radius: 999px;
    font-size: 11px;
    padding: 7px 10px;
}

.whatsapp-ai-body {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 320px;
    padding: 18px;
}

.whatsapp-ai-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.whatsapp-ai-fields .form-group {
    margin-bottom: 0;
}

.whatsapp-ai-fields .form-group:nth-last-child(-n + 2) {
    grid-column: 1 / -1;
}

.whatsapp-ai-switch-row {
    align-items: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 11px 12px;
}

.whatsapp-ai-switch-row small {
    color: #8a8a8a;
    display: block;
    font-size: 12px;
    line-height: 1.35;
}

.whatsapp-ai-preview {
    align-self: stretch;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 16px;
}

.whatsapp-ai-preview-label {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.whatsapp-ai-message {
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 92%;
    padding: 10px 12px;
}

.whatsapp-ai-message-client {
    align-self: flex-start;
    background: #f0f0f0;
    color: #31353d;
}

.whatsapp-ai-message-bot {
    align-self: flex-end;
    background: #fff4ee;
    color: #31353d;
}

.whatsapp-editor-shell {
    display: grid;
    gap: 14px;
    grid-template-columns: 230px minmax(0, 1fr);
}

.whatsapp-editor-menu {
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 8px;
}

.whatsapp-editor-tab {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    padding: 11px;
    text-align: left;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
    width: 100%;
}

.whatsapp-editor-tab:last-child {
    margin-bottom: 0;
}

.whatsapp-editor-tab:hover,
.whatsapp-editor-tab:focus {
    background: #fff7f3;
    color: #fc793a;
    outline: none;
}

.whatsapp-editor-tab.active {
    background: #fff;
    box-shadow: inset 3px 0 0 #fc793a, 0 4px 12px rgba(49, 53, 61, .06);
    color: #31353d;
}

.whatsapp-editor-tab i {
    color: #fc793a;
    flex: 0 0 18px;
    margin-top: 2px;
    text-align: center;
}

.whatsapp-editor-tab strong,
.whatsapp-editor-tab small {
    display: block;
}

.whatsapp-editor-tab strong {
    font-size: 13px;
    line-height: 1.25;
}

.whatsapp-editor-tab small {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 3px;
}

.whatsapp-editor-content {
    min-width: 0;
}

.whatsapp-editor-panel {
    display: none;
}

.whatsapp-editor-panel.active {
    display: block;
}

.whatsapp-editor-panel > .row:first-child {
    align-items: center;
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 12px !important;
}

.whatsapp-editor-panel > .row:first-child .btn-whisky {
    flex: 1;
}

.whatsapp-editor-panel > .row:first-child .btn-secondary {
    border-radius: 8px;
    max-width: 44px;
}

.whatsapp-editor-panel > .row[id^="customMessagesContent"] {
    margin: 0;
}

.whatsapp-editor-panel .customMessage {
    background: #fff;
    border-color: #ececec !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(49, 53, 61, .04);
    width: 100%;
}

.whatsapp-preview-column {
    border-left: 1px solid #f0f0f0;
    height: max-content;
    min-height: 520px;
    position: sticky;
    top: 16px;
}

.whatsapp-preview-sticky {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
}

.whatsapp-preview-column h3 {
    color: #31353d;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.whatsapp-preview-column .phone {
    height: min(70vh, 640px);
}

@media (min-width: 768px) and (max-width: 1535.98px) {
    .whatsapp-messages-column {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .whatsapp-preview-column {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .whatsapp-editor-shell {
        grid-template-columns: 1fr;
    }

    .whatsapp-editor-menu {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 8px;
    }

    .whatsapp-editor-tab {
        flex: 0 0 180px;
        margin-bottom: 0;
        min-height: 68px;
    }

    .whatsapp-editor-tab.active {
        box-shadow: inset 0 -3px 0 #fc793a, 0 4px 12px rgba(49, 53, 61, .06);
    }

    .whatsapp-preview-column .phone {
        height: min(58vh, 520px);
    }
}

@media (max-width: 767.98px) {
    .settings-layout {
        display: block;
    }

    .settings-content {
        border-radius: 8px;
    }

    .settings-tab-content {
        padding: 0 12px 18px;
    }

    .whatsapp-ai-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .whatsapp-ai-status {
        justify-content: space-between;
        width: 100%;
    }

    .whatsapp-ai-body,
    .whatsapp-ai-fields {
        grid-template-columns: 1fr;
    }

    .whatsapp-ai-fields .form-group {
        grid-column: 1 / -1;
    }

    .integration-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-card-header {
        align-items: flex-start;
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .schedule-planner-body {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .schedule-week {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .schedule-period-content {
        grid-template-columns: 1fr 48px;
    }

    .schedule-time-range {
        grid-column: 1 / -1;
    }

    .integration-status {
        text-align: left;
    }

    .whatsapp-editor-shell {
        grid-template-columns: 1fr;
    }

    .whatsapp-messages-column,
    .whatsapp-preview-column {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .whatsapp-editor-menu {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr;
    }
}

#div-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    border: 2px dashed #ccc;
    text-align: center;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

#div-upload img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.border-dashed {
    border: 2px dashed #ccc!important;
}

.form-group label em{
    color: #c3c3c3!important;
}

.modal-step-header{
    height: 15%;
}

.form-abas .tab-content{
    height: 80%;
    overflow: auto;
    padding: 3px;
    padding-bottom: 10%;
}

.form-abas .tab-content.tab-content-custom-combo{
    padding-bottom: 79px;
}

.container.form-abas{
    height: 100%;
    max-height: 100%;
}

#abas-grupos label{
    font-size: 11px!important;
}

.collapse.in{
    display: flex;
}

.dropdown.open .dropdown-menu {
    display: flex!important;
    flex-direction: column;
}

button.dropdown-toggle:focus{
    outline: 0!important;
}

.dropdown-menu button{
    display: flex!important;
    flex-direction: column;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 12px;
    padding: 5px 12px;
}

.dropdown-menu button:hover{
    background: #f1f1f1;
}

.modal-footer{
    background: #ffffff;
}

.modal-footer-custom{
    position: absolute;
    left: 0;
    width: 100%;
    padding: 25px 10px 0px 10px!important;
}

.btn-qtd-combo{
    background: none;
    color: #fc793a;
    font-weight: bold;
    border: 2px solid #ced4da;
    padding: 0 15px;
}

.btn-deletar-produto, .btn-deletar-pagamento{
    color: #fc793a;
    height: 30px;
    width: 30px;
    font-size: 15px;
    padding: 0;
    background: #fc793a4a;
    margin-top: 5px;
}

.btn-add-produto{
    border: 0;
    background: #fc793a4a;
    color: #fc793a;
}

.is-invalid-select2{
    border: 2px solid #dc3545!important; 
}

.btn-forma-cadastro{
    background: #ededed!important;
    color: #595959;
    width: 100%;
    height: 100%;
}

.btn-forma-cadastro:hover{
    background: #e5e5e5!important;
}
.select2-search__field{
    padding-top: 2px;
}
.select2-search__field::placeholder{
    color: #999;
}

.modal-dialog-25{
    width: 25%!important;
}

label.btn{
    width: 100%;
    background: #f1f1f1;
    font-size: 13px;
    font-weight: bold;
    color: #31353d;
}

input[type="checkbox"]:checked + label.btn, input[type="radio"]:checked + label.btn {
    background: #fc793a;
    color: #fff;
}

.button-bar{
    position: absolute;
    bottom: 0;
    padding: 60px 0px;
}

.custom-tooltip:hover::before,
.custom-tooltip:hover::after {
    background-color: #31353d;
    color: #fff;
    padding: 5px;
    border-radius: 10px;
    font-size: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-transform: uppercase;
    z-index: 1;
}

.custom-tooltip:hover::before {
    content: attr(data-tooltip-before);
    top: -50px;
}

.custom-tooltip:hover::after {
    content: attr(data-tooltip);
    top: -30px;
}

#lista-comandas .custom-tooltip:hover::before {
    display:none!important;
}

input[readonly] {
    cursor: default;
}

.tab-content-custom-combo .quantidade-custom{
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantidade-custom input.form-control{
    height: 25px!important;
    padding: 0!important;
}

.quantidade-custom .btn-qtd-combo{
    padding: 0 10px;
    height: 25px!important;
    line-height: normal !important;
    font-size: 17px;
    padding-bottom: 1px!important;
}

.quantidade-custom .btn-qtd-combo label{
    height: 13px;
}

#produtos-grupo hr {
    margin-top: 5px;
    margin-bottom: 5px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.titulo-modal-limited{
    max-width: 100%;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(30px, 5vw, 30px);
    line-height: 1.2;
}

.status-column{
    background: #f1f2f4;;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    padding: 10px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
}

.status-column p{
    font-weight: bold;
    color: #172b4d;
}

.status-column .list-group{
    min-height: 40px;
}

.status-column .list-group .list-group-item {
    background: white;
    box-shadow: 0px 1px 1px #091E4240, 0px 0px 1px #091E424F;
    color: #172b4d;
    font-weight: 500;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    margin-top: 7px;
    padding: 10px;
}

.status-column .list-group .list-group-item p{
    margin-bottom: 5px;
    line-height: 15px;    
}

.status-column .list-group .list-group-item .address-details{
    color: #4e4f50;
}

.status-column .list-group .list-group-item .address-details svg{
    font-size: 15px;
}

.order-combo-details{
    color: #4e4f50;
    padding-left: 15px;
    position: relative;
    display: inline-block;
    margin: 0;
}
  
.order-combo-details::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    margin-left: 5px;
    border-left: 2px solid #ccc;
}
  
label.order-combo-details:last-child::before {
    border-bottom-left-radius: 5px; /* Border radius do lado inferior esquerdo no último combo */
    border-bottom-left-radius: 5px;
    border-bottom: 2px solid #ccc;
    height: 50%;
}

.order-combo-details .qtd{
    color: black;
    padding: 0px 5px;
    background: #f6f6f6;
}

.order-details{
    color: #939495;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 12px;
}
.order-details .qtd{
    color: black;
    padding: 0px 5px;
    background: #f6f6f6;
}

.status-column .list-group .list-group-item .contador {
    height: 5px;
    background-color: #ced4da;
    display: none;
    margin-top: 5px;
    border-radius: 10px;
}

#tela-pedidos, #tela-pedidos .container-fluid{
    background-color: white;
}

#tela-pedidos .container-fluid{
    padding: 10px 40px!important;
}

.delivery-schedule-card{
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgb(23 43 77 / 8%);
    color: #172b4d;
    display: inline-flex;
    gap: 10px;
    min-height: 54px;
    padding: 8px 12px;
}

.delivery-schedule-icon{
    align-items: center;
    background: #f3f5f7;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.delivery-schedule-icon i{
    color: #6b778c;
    font-size: 16px;
}

.delivery-schedule-copy{
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.delivery-schedule-title{
    color: #172b4d;
    font-size: 13px;
    font-weight: 800;
}

.delivery-schedule-copy small{
    color: #6b778c;
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.delivery-schedule-action,
.delivery-schedule-action:focus{
    align-items: center;
    background: #fff4ef;
    border: 1px solid #ffd8c9;
    border-radius: 8px;
    color: #fc793a;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    margin-left: 2px;
    outline: none;
    text-decoration: none;
    transition: all .2s ease;
    width: 34px;
}

.delivery-schedule-action:hover{
    background: #fc793a;
    border-color: #fc793a;
    color: #ffffff;
    text-decoration: none;
}

.delivery-schedule-card.is-open .delivery-schedule-icon{
    background: #effaf3;
    border-color: #ccefd7;
}

.delivery-schedule-card.is-open .delivery-schedule-icon i,
.delivery-schedule-card.is-open .delivery-schedule-title{
    color: #19b653;
}

.delivery-schedule-card.is-closed .delivery-schedule-icon{
    background: #fff1f2;
    border-color: #ffd4d7;
}

.delivery-schedule-card.is-closed .delivery-schedule-icon i,
.delivery-schedule-card.is-closed .delivery-schedule-title{
    color: #fa5a60;
}

#tela-pedidos{
    background: #f6f7f9;
    color: #172b4d;
    overflow: hidden;
}

#tela-pedidos .container-fluid{
    background: #f6f7f9;
    height: 100%;
    padding: 18px 28px!important;
}

.delivery-orders-shell{
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.delivery-orders-hero{
    align-items: center;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgb(23 43 77 / 8%);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px;
}

.delivery-orders-title-group{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.delivery-orders-eyebrow{
    color: #fc793a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.delivery-orders-title-group h1{
    color: #172b4d;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    margin: 4px 0 2px;
}

.delivery-orders-title-group small{
    color: #6b778c;
    font-size: 13px;
    font-weight: 700;
}

.delivery-orders-actions{
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.delivery-orders-close{
    position: static;
}

.delivery-orders-summary{
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.delivery-summary-tile{
    align-items: center;
    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 74px;
    padding: 13px 14px;
}

.delivery-summary-icon{
    align-items: center;
    border-radius: 8px;
    display: flex;
    flex: 0 0 auto;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.delivery-summary-icon.is-primary{
    background: #eef4ff;
    color: #2f6fed;
}

.delivery-summary-icon.is-warning{
    background: #fff7e8;
    color: #d98900;
}

.delivery-summary-icon.is-route{
    background: #effaf3;
    color: #19b653;
}

.delivery-summary-icon.is-alert{
    background: #fff1f2;
    color: #fa5a60;
}

.delivery-summary-icon.is-done{
    background: #f2f4f7;
    color: #172b4d;
}

.delivery-summary-tile span:last-child{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.delivery-summary-tile small{
    color: #6b778c;
    font-size: 11px;
    font-weight: 800;
}

.delivery-summary-tile strong{
    color: #172b4d;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.delivery-board{
    display: grid;
    flex: 1 1 auto;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    min-height: 0;
}

.delivery-board-column{
    min-width: 0;
    min-height: 0;
}

.delivery-board .status-column{
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.delivery-column-head{
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    display: grid;
    gap: 10px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 12px;
}

.delivery-column-icon{
    align-items: center;
    background: #f2f4f7;
    border-radius: 8px;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.status-column-new .delivery-column-icon{
    background: #fff7e8;
    color: #d98900;
}

.status-column-preparing .delivery-column-icon{
    background: #eef4ff;
    color: #2f6fed;
}

.status-column-route .delivery-column-icon{
    background: #effaf3;
    color: #19b653;
}

.status-column-done .delivery-column-icon{
    background: #f2f4f7;
    color: #5e6c84;
}

.delivery-column-head span:nth-child(2){
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.delivery-column-head strong{
    color: #172b4d;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

.delivery-column-head small{
    color: #7a869a;
    font-size: 11px;
    font-weight: 700;
    margin-top: 3px;
}

.delivery-orders-count{
    align-items: center;
    background: #f2f4f7;
    border-radius: 999px;
    color: #172b4d;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    min-width: 26px;
    padding: 0 8px;
}

.delivery-order-list{
    flex: 1 1 auto;
    min-height: 70px;
    overflow-y: auto;
    padding: 10px;
}

.delivery-empty-state{
    align-items: center;
    border-top: 1px solid #edf0f4;
    color: #97a0af;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 90px;
    padding: 14px;
    text-align: center;
}

.delivery-empty-state i{
    font-size: 20px;
}

.delivery-board .status-column .list-group .delivery-order-card{
    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-left: 4px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgb(23 43 77 / 8%);
    color: #172b4d;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 0;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.delivery-board .status-column .list-group .delivery-order-card:hover{
    border-color: #ffc6a9;
    box-shadow: 0 12px 26px rgb(23 43 77 / 13%);
    transform: translateY(-1px);
}

.status-column-new .delivery-order-card{
    border-left-color: #fc793a!important;
}

.status-column-preparing .delivery-order-card{
    border-left-color: #2f6fed!important;
}

.status-column-route .delivery-order-card{
    border-left-color: #19b653!important;
}

.status-column-done .delivery-order-card{
    border-left-color: #5e6c84!important;
}

.delivery-board .delivery-order-card.ifood-requires-attention{
    background: #fffdf7!important;
    border-left-color: #f0b429!important;
}

.delivery-order-card-head{
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 12px 8px;
}

.delivery-order-identity{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.delivery-order-code{
    align-items: center;
    color: #5e6c84;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    gap: 5px;
}

.delivery-order-code img{
    border-radius: 4px;
    height: 17px;
    object-fit: contain;
    width: 17px;
}

.delivery-order-identity strong{
    color: #172b4d;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.delivery-order-value{
    align-items: flex-end;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
}

.delivery-order-value small{
    color: #7a869a;
    font-size: 10px;
    font-weight: 800;
}

.delivery-order-value strong{
    color: #172b4d;
    font-size: 13px;
    font-weight: 900;
}

.ifood-attention-wrapper{
    padding: 0 12px 8px;
}

.ifood-attention-badge{
    border-radius: 999px;
    font-weight: 900;
    padding: 5px 8px;
}

.delivery-order-meta-grid{
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 0 12px 8px;
}

.delivery-order-meta-grid span,
.delivery-order-address,
.delivery-order-route,
.delivery-order-payment small{
    align-items: flex-start;
    color: #5e6c84;
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 7px;
    line-height: 1.35;
}

.delivery-order-meta-grid i,
.delivery-order-address i,
.delivery-order-route i,
.delivery-order-payment i{
    flex: 0 0 auto;
    margin-top: 2px;
}

.delivery-order-address,
.delivery-order-route,
.delivery-order-payment{
    padding: 0 12px 8px;
}

.delivery-order-address i{
    color: #fa5a60;
}

.delivery-order-route i{
    color: #2f6fed;
}

.delivery-order-payment{
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.delivery-order-items{
    background: #f8fafc;
    border-bottom: 1px solid #edf0f4;
    border-top: 1px solid #edf0f4;
    padding: 9px 12px;
}

.delivery-order-items-head{
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
}

.delivery-order-items-head span{
    color: #172b4d;
    font-size: 11px;
    font-weight: 900;
}

.delivery-order-items-head small{
    color: #7a869a;
    font-size: 10px;
    font-weight: 900;
}

.delivery-order-item{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-order-item + .delivery-order-item{
    margin-top: 7px;
}

.delivery-order-item .order-details{
    color: #172b4d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0;
}

.delivery-order-item .order-details .qtd,
.delivery-order-item .order-combo-details .qtd{
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 5px;
    color: #172b4d;
    display: inline-flex;
    font-size: 10px;
    justify-content: center;
    min-width: 22px;
    padding: 1px 5px;
}

.delivery-order-item .order-combo-details{
    color: #5e6c84;
    font-size: 11px;
    margin: 1px 0 0 8px;
}

.delivery-order-item .order-combo-details::before{
    border-left-color: #c8d0da;
}

.delivery-order-item .order-item-observation{
    background: #fff7e8;
    border-radius: 6px;
    color: #8a5a00;
    font-size: 11px;
    font-weight: 800;
    margin-top: 4px;
    padding: 5px 7px;
}

.delivery-order-footer{
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 10px 12px 12px;
}

.delivery-order-forecast{
    color: #5e6c84;
    font-size: 11px;
    font-weight: 800;
}

.delivery-order-footer .order-timing{
    font-size: 10px;
    font-weight: 900;
    padding: 5px 8px;
}

.delivery-board .status-column .list-group .list-group-item .contador{
    border-radius: 0 0 8px 8px;
    height: 4px;
    margin-top: 0;
}

@media (max-width: 1199px){
    #tela-pedidos{
        overflow: auto;
    }

    .delivery-board{
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .delivery-orders-summary{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px){
    #tela-pedidos .container-fluid{
        padding: 14px!important;
    }

    .delivery-orders-hero{
        align-items: flex-start;
        flex-direction: column;
    }

    .delivery-orders-actions{
        justify-content: flex-start;
        width: 100%;
    }

    .delivery-schedule-card{
        width: calc(100% - 50px);
    }

    .delivery-orders-summary,
    .delivery-board{
        grid-template-columns: 1fr;
    }

    .delivery-board .status-column{
        max-height: 72vh;
    }
}

.button-delivery-border{
    background: transparent;
    padding: 0;
    display: inline-block;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1;
}

.quick-actions-group {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgb(0 0 0 / 14%);
    overflow: visible;
    transition: box-shadow 0.2s ease;
}

.quick-actions-group:hover {
    box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
}

.quick-actions-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0 12px;
}

.button-delivery, .button-delivery:focus{
    align-items: center;
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #252525;
    outline: none!important;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 58px;
    min-width: 168px;
    padding: 10px 14px;
    text-align: left;
    transition: background 0.15s ease;
}

.button-delivery:hover {
    background: #fafafa !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.quick-actions-group .button-delivery:first-child,
.quick-actions-group .button-delivery:first-child:focus {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.quick-actions-group .button-delivery:last-child,
.quick-actions-group .button-delivery:last-child:focus {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.button-delivery-text {
    display: flex;
    flex-direction: column;
}

.button-delivery .delivery-floating-count{
    position: absolute;
    align-items: center;
    background: #fff0e7!important;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgb(252 121 58 / 22%);
    color: #d95d1f;
    display: inline-flex;
    font-family: system-ui;
    font-size: 11px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    line-height: 1;
    min-width: 22px;
    padding: 0 7px;
    right: -7px;
    top: -7px;
    z-index: 2;
}

.button-whatsapp .delivery-floating-count{
    top: 54px;
}

.button-delivery-icon{
    align-items: center;
    background: #fff4ef;
    border: 1px solid #ffd8c9;
    border-radius: 10px;
    color: #fc793a;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.button-delivery-title{
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 16px;
}

.button-delivery-status{
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    margin-top: 3px;
    padding: 4px 8px;
}

.button-delivery.offline .button-delivery-status{
    background-color: #fa5a60;
}

.button-delivery.online .button-delivery-status{
    background-color: #19b653;
}

.button-delivery:hover {
    background: #fafafa !important;
}

.button-delivery i{
    font-size: 19px;
    color: #fc793a;
}

.swal2-popup.swal2-toast .swal2-icon::before {
    display: none!important;
}

.modal-orders-detail-subtitle h6{
    color: #172b4d;
    margin-bottom: 2px;
}

.modal-orders-detail-subtitle p{
    color: #939495;
    margin-bottom: 5px;
}

.whatsapp-qrcode{
    width: 180px;
    cursor: pointer;
}

.list-group-mais-vendidos .list-group-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    border-bottom: 1px solid #95939326;
    border-radius: 0;
    padding: 5px;
    font-weight: bold;
    color: #939495;
    font-size: 12px;
}
.list-group-mais-vendidos .list-group-item:last-child{
    border-bottom: none;
}

#search-sale-products{
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    height: 25px;
}

.order-item-observation{
    border-left: 3px solid #ffc107;
    padding: 2px 5px;
    color: #dc3545;;
    font-weight: bold;
    margin-left: 7px;
    margin-bottom: 10px;
}

.order-item-observation i{
    color: #ffc107;
}

.alert-new-order:not(.delivery-floating-count){
    top: 0;
    left: 0;
    height: 18px;
    background: #fa5a60!important;
    min-width: 18px;
    font-family: system-ui;
}

.hide-numbers{
    color: #585859;
    font-size: 20px;
}

.line-height-25{
    line-height: 25px;
}

.payment-qrcode{
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
}

.payment-qrcode img{
    width: 100%;
    height: 100%;
}

.loading-label{
    border: 5px solid #fc793a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 9 / 16;
}

.load{
    height: 30px;
    width: 30px;
    color: #fc793a;
    font-size: 30px;
}

.gorrinho{
    position: absolute;
    left: -15px;
    top: -15px;
    width: 60px;
    transform: rotate(-20deg);
}

.gorrinho-delivery{
    position: absolute;
    left: -2px;
    top: -15px;
    width: 40px;
    transform: rotate(-20deg);
}

.radio-custom-label{
    width: 100%;
}
.radio-custom-label label:before{
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius:50%;
    left: 0;
    bottom: 1px;
    text-align: center;
    background-color: #aaa;
    box-shadow: inset 0px 2px 2px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8);
}
.radio-custom-label input:checked + label:before{
    background-color: #fc793a;
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cpath d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
}

.radio-custom-label input:checked + label:before i{
    display: block!important;
}

.radio-custom-label label{
    background: #d9d9d985;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
}

.radio-custom-label input {
    display: none;
}

.radio-custom-label input:checked + label{
    background-color: #fc793a47;
}

.btn-delete-printer{
    position: absolute;
    border-radius: 7px;
    right: 20px;
    padding: 7px 5px 7px 5px;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    background: #fc793a;
}

.dropdown-menu.show {
  min-width: max-content;
}

.dropdown-menu button{
    width: 100%;
    height: 30px;
}

.dropdown-menu button i{
    margin-right: 5px;
}

.custom-combo-img{
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #e9ecef;
    padding: 2px;
    border-radius: 10%;
}

hr{
    margin-top: 10px;
    margin-bottom: 10px;
}

.timeline-entry {
    position: relative;
    padding-left: 40px;
    padding-bottom: 5px !important;
}

.timeline-entry::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 3px solid #32333e;
    border-radius: 50%;
    z-index: 1;
}

.timeline-entry::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 19px;
    width: 2px;
    height: calc(100% - 16px);
    background-color: #ff7800;
    z-index: 0;
}

.timeline-entry:last-child::after {
    display: none;
}

.timeline-entry:last-child .entry-content, .timeline-entry:last-child{
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-entry .entry-content {
    border-bottom: 1px solid #dee2e6;
    margin-left: auto;
    padding-bottom: 1rem;
}

.collapse .card.card-body, .collapsing .card.card-body{
    border: 3px solid rgba(0, 0, 0, 0.125);
    border-top: none;
    top: -10px;
    border-radius: 0 0 10px 10px;
}

.list-group-item-action{
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin: 2px 0;
    background-color: transparent !important;
    border: 3px solid rgba(0, 0, 0, 0.125);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.list-group-item-action.collapsed{
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin: 2px 0;
    background-color: transparent !important;
    border: 3px solid rgba(0, 0, 0, 0.125);
    border-radius: 10px;
}

.card{
    border: 3px solid rgba(0, 0, 0, 0.125);
    border-radius: 10px;
}

@media (max-width: 1300px) {
    .modal-dialog-25{
        width: 30%!important;
    }
    h1, .h1 {
        font-size: 2rem;
    }
}


@media (max-width: 1000px) {
    .modal-dialog-25{
        width: 50%!important;
    }

    h1, .h1 {
        font-size: 1.8rem;
    }
    h2, .h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 800px) {
    .modal-dialog, .modal-dialog-25{
        width: 100%!important;
    }

    h1, .h1 {
        font-size: 1.5rem;
    }
    h2, .h2 {
        font-size: 1.2rem;
    }
}

/* Modal atualizacao */
.modalAviso {
    width: 40%;
    img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .tab-content {
        padding-bottom: 10px;
    }
}

.cursor-pointer {
  cursor: pointer!important;
}

/* Lojas ao vivo */
.liveDot {
    border-radius: 3px;
    margin: 0;
    padding: 3px 6px;
    color: #FFFFFF;
    background-color: #f53b57;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 10px;
    -webkit-animation: flickerAnimation 2s infinite;
    -moz-animation: flickerAnimation 2s infinite;
    -o-animation: flickerAnimation 2s infinite;
     animation: flickerAnimation 2s infinite;
}

.live-content {
    max-height: calc(100vh - 70px);
    overflow: hidden;
}

#live-stores-list {
    padding: 0;
    margin: 0;
    overflow: auto;
    height: calc(100% - 120px);
    li {
        list-style: none;
        width: 100%;
        padding: 12px 5px;
        border-bottom: 1px solid #e1e1e1;
        position: relative;
        display: flex;
        align-items: center;
        &::before {
            content: '';
            width: 10px;
            height: 10px;
            margin-right: 5px;
            background-color: #28a745;
            border-radius: 10px;
        }
    }
}

@keyframes flickerAnimation {
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-o-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-moz-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-webkit-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  .animate-flicker {
     -webkit-animation: flickerAnimation 1s infinite;
     -moz-animation: flickerAnimation 1s infinite;
     -o-animation: flickerAnimation 1s infinite;
      animation: flickerAnimation 1s infinite;
  }

/* Custom Messages config */
body {
    counter-reset: customMessageCounter;
}

.customMessage {
    width: 100%;
    margin-right: 15px;
    margin-left: 15px;
    position: relative;
    counter-increment: customMessageCounter;
    &::before {
        content: counter(customMessageCounter);
        left: -12.5px;
        top: -12.5px;
        width: 25px;
        height: 25px;
        border-radius: 25px;
        background-color: #fc793a;
        font-weight: 700;
        color: #FFF;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: absolute;
    }
}

.select2-gatilhos {
    min-width: 100%;
    height: 35px;
}

.sticky {
    position: sticky;
    top: 0;
    align-self: flex-start;
    margin-left: auto;
}

.phone {
    position: relative;
    aspect-ratio: 1 / 2;
    height: 70vh;
}

.phone::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('../images/iphoneframe.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    user-select: none;
    z-index: 3;
}

.framePhone {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.framePhone::before {
    content: '';
    position: absolute;
    left: 5%;
    top: 1%;
    width: 90%;
    height: 97%;
    background-color: #efeae2;
    background-image: url('../images/bgzap.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    border-radius: 3vh;
    box-shadow: 8px 24px 11.5px rgba(11, 20, 26, .13);
}

.messageContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.clientmessagePreview,
.messagePreview {
    position: relative;
    bottom: 35px;
    background-color: #d9fdd3;
    border-radius: 14.5px;
    max-width: 65%;
    width: fit-content;
    margin-top: 15px;
    font-size: 14.2px;
    line-height: 19px;
    color: #111b21;
    max-height: 490px;
    overflow-y: scroll;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
    z-index: 1;
}

.clientmessagePreview {
    padding: 6px 9px 8px 5px;
    background-color: #ffffff;
    margin-left: 25px;
}

.messagePreview {
    padding: 6px 5px 8px 9px;
    margin-right: 25px;
    align-self: flex-end;
    word-break: break-word;

    &::-webkit-scrollbar {
        width: 5px;
        border-radius: 5px;
    }

    /* Track */
    &::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Handle */
    &::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 5px;
    }

    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.2);
    }
}

.fix-Button-config {
    position: absolute;
    bottom: 0;
    padding-bottom: 10px;
    left: 260px;
    margin: 0;
    width: calc(100% - 260px);
    background-color: #FFFFFF;
    transition: all 0.3s ease;

    &.mob {
        width: 100% !important;
        left: 0 !important;
    }
}

.gap-fix {
    gap: 5px;
}


#templates-thumb {
    display: flex;
    row-gap: 15px;
    padding-bottom: 80px;
  .generated-image {
    display: flex;
    flex-direction: column;
      img {
        border: 5px solid #fc793a;
        border-radius: 10px;
        margin-bottom: 10px;
        object-fit: fill;
        aspect-ratio: 9 / 16;
      }
  }
}

.payment-method input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    display: none;
}

.date-interval-icon{
    position: absolute;
    left: 30px;
    color: gray;
    z-index: 0;
}

.date-interval-down-icon{
    position: absolute;
    right: 30px;
    color: #fc793a;
    
    z-index: 1;
}

.date-interval-input{
    background: #dddddd78!important;
    border: 0!important;
    border-radius: 34px!important;
    font-weight: 500!important;
    text-align: inherit !important;
    padding-left: 37px!important;
    cursor: pointer!important;
}

.date-interval-input .select2-selection__rendered{
    line-height: 35px!important;
    font-weight: 500!important;
}

.badge-maior-faturamento{
    font-size: 11px;
    width: 100%;
    background: #0c952930;
    color: #28a745;
    font-weight: 500;
}

.badge-menor-faturamento{
    color: #dc3545;
    background-color: #dc35451c;
    font-weight: 500;
    font-size: 11px;
}

.btn-reais-note{
    width: 70px;
    padding: 0;
    margin: 5px;
    border: 0;
    border-radius: 3px;
}

.btn-reais-note img{
    width: 100%;
    border-radius: 3px;
}

.marketplace-icons {
    gap: 6px;
    min-width: 126px;
}

.marketplace-button {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 5px 7px;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
    width: 38px;
}

button.marketplace-button {
    cursor: pointer;
}

.marketplace-button:hover {
    border-color: #cfcfcf;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-decoration: none;
}

.marketplace-button img {
    border-radius: 5px;
    max-height: 18px;
    max-width: 24px;
    object-fit: contain;
}

.marketplace-button.is-inactive {
    opacity: .45;
}

.marketplace-button.is-inactive img {
    filter: grayscale(1);
}

.table-filter-dropdown {
    display: inline-block;
}

.table-filter-button {
    background: transparent;
    border: 0;
    color: #8a8a8a;
    line-height: 1;
    padding: 6px 8px;
}

.table-filter-button:hover,
.table-filter-button.is-active {
    color: #fc793a;
}

.table-filter-menu {
    max-height: 260px;
    overflow-y: auto;
}

.table-filter-menu .dropdown-item.active,
.table-filter-menu .dropdown-item:active {
    background-color: #fc793a;
    color: #fff;
}

.product-classification {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.product-classification strong {
    color: #343a40;
    font-weight: 600;
}

.product-classification small {
    color: #6c757d;
    margin-top: 3px;
}

.product-actions-button {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    justify-content: center;
    min-width: 82px;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   MODAL PEDIDO DE COMPRA / RECEBER / FORNECEDOR — padrão pc-*
   ──────────────────────────────────────────────────────────── */

/* Header escuro */
.pc-modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    flex-shrink: 0;
}
.pc-modal-header-inner {
    padding: 1.25rem 1.5rem 0;
}
.pc-modal-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.pc-modal-icon {
    width: 40px;
    height: 40px;
    background: rgba(252,121,58,.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fc793a;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.pc-modal-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.pc-modal-subtitle {
    color: rgba(255,255,255,.5);
    font-size: 0.78rem;
    margin-top: 2px;
}
.pc-modal-close {
    margin-left: auto;
    background: rgba(255,255,255,.08);
    border: none;
    color: rgba(255,255,255,.7);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.pc-modal-close:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Steps */
.pc-steps {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
}
.pc-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: rgba(255,255,255,.4);
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.pc-step.active, .pc-step.show { color: #fc793a; border-bottom-color: #fc793a; }
.pc-step:hover { color: rgba(255,255,255,.75); }
.pc-step.active:hover { color: #fc793a; }
.pc-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: background .2s;
}
.pc-step.active .pc-step-num, .pc-step.show .pc-step-num { background: #fc793a; color: #fff; }
.pc-step-divider { flex: 1; height: 1px; background: rgba(255,255,255,.12); margin: 0 12px; }
.pc-step-label { letter-spacing: .3px; }

/* Resumo do pedido (barra no header) */
.pc-order-summary {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 0 -1.5rem;
    padding: 10px 1.5rem;
    flex-wrap: wrap;
    gap: 4px;
}
.pc-order-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}
.pc-order-summary-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}
.pc-order-summary-value {
    font-size: 0.82rem;
    color: rgba(255,255,255,.85);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-order-summary-value.fw-bold { color: #fff; }
.pc-order-summary-divider { width: 1px; height: 28px; background: rgba(255,255,255,.12); flex-shrink: 0; }
.pc-order-summary .pc-label-icon { color: rgba(255,255,255,.3); font-size: 0.72rem; }

/* Body / scroll */
.pc-modal-body {
    overflow: hidden;
    position: relative;
    flex: 1 1 0;
    min-height: 0;
}
.tab-pane.pc-tab-pane { display: none; flex-direction: column; height: 100%; }
.tab-pane.pc-tab-pane.active { display: flex; }
.pc-scroll-area {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1 1 0;
    min-height: 0;
}

/* XML drop zone */
.pc-xml-zone {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border: 2px dashed #c5cbe8;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}
.pc-xml-zone:hover, .pc-xml-zone.drag-over { border-color: #7c8fd0; background: linear-gradient(135deg,#eef0ff 0%,#e3e8ff 100%); }
.pc-xml-idle { display: flex; align-items: center; gap: 12px; width: 100%; }
.pc-xml-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.pc-xml-text { display: flex; flex-direction: column; gap: 2px; }
.pc-xml-text strong { font-size: 0.88rem; color: #2d3748; font-weight: 700; }
.pc-xml-text span { font-size: 0.78rem; color: #718096; }
.pc-xml-link { color: #667eea; cursor: pointer; }
.pc-xml-state { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; width: 100%; }
.pc-xml-spin { color: #667eea; font-size: 1rem; }
.pc-xml-ok { color: #38a169; }
.pc-xml-ok i { font-size: 1.1rem; }
.pc-xml-filename { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-xml-remove {
    background: rgba(229,62,62,.1); border: none; color: #e53e3e;
    border-radius: 6px; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; cursor: pointer; transition: background .15s; flex-shrink: 0;
}
.pc-xml-remove:hover { background: rgba(229,62,62,.2); }

/* Campos */
.pc-section { display: flex; flex-direction: column; gap: 1rem; }
.pc-field-group { display: flex; flex-direction: column; gap: 5px; }
.pc-label { font-size: 0.8rem; font-weight: 700; color: #4a5568; letter-spacing: .3px; margin: 0; }
.pc-label-icon { color: #a0aec0; margin-right: 4px; }
.pc-required { color: #e53e3e; }
.pc-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #2d3748;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.pc-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.12); }

/* Select2 dentro dos modais pc-* ─────────────────────────────────────────── */
.pc-modal-body .select2-container,
.pc-modal-body .select2-container--default,
.pc-product-col-name .select2-container,
.pc-product-col-name .select2-container--default {
    width: 100% !important;
}
.pc-modal-body .select2-container--default .select2-selection--single,
.pc-product-col-name .select2-container--default .select2-selection--single {
    height: auto;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #2d3748;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.pc-modal-body .select2-container--default .select2-selection--single .select2-selection__rendered,
.pc-product-col-name .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4;
    padding: 0;
    color: #2d3748;
    font-size: 0.88rem;
}
.pc-modal-body .select2-container--default .select2-selection--single .select2-selection__placeholder,
.pc-product-col-name .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #a0aec0;
}
.pc-modal-body .select2-container--default .select2-selection--single .select2-selection__arrow,
.pc-product-col-name .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}
.pc-modal-body .select2-container--default.select2-container--open .select2-selection--single,
.pc-modal-body .select2-container--default.select2-container--focus .select2-selection--single,
.pc-product-col-name .select2-container--default.select2-container--open .select2-selection--single,
.pc-product-col-name .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,.12);
    outline: none;
}

/* Card de produto */
.pc-product-card {
    background: #fff;
    border: 1.5px solid #e8edf5;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}
.pc-product-card:hover { border-color: #c5cbe8; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.pc-product-num {
    position: absolute;
    top: -10px; left: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; font-size: 0.68rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px; letter-spacing: .5px;
}
.pc-product-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pc-product-col-name { flex: 1; min-width: 200px; }
.pc-product-col-cost { width: 130px; flex-shrink: 0; }
.pc-product-col-qty  { width: 90px; flex-shrink: 0; }
.pc-product-col-del  { width: 36px; flex-shrink: 0; display: flex; align-items: flex-end; padding-bottom: 1px; }
.pc-product-label { font-size: 0.75rem; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; display: block; }
.pc-product-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.85rem;
    color: #2d3748;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.pc-product-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }
.pc-cost-wrap { position: relative; }
.pc-cost-prefix {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    font-size: 0.75rem; color: #a0aec0; font-weight: 700; pointer-events: none;
}
.pc-cost-wrap .pc-product-input { padding-left: 28px; }
.pc-del-btn {
    width: 34px; height: 34px;
    background: #fff1f0; border: 1.5px solid #ffd5d0;
    color: #e53e3e; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.8rem;
    transition: background .15s, border-color .15s;
}
.pc-del-btn:hover { background: #ffe0de; border-color: #e53e3e; }
.pc-nfe-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-nfe-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #eef2ff, #e8f4fd);
    border: 1px solid #c3d3f5; border-radius: 20px;
    padding: 3px 10px; font-size: 0.72rem; color: #4a63c8; font-weight: 500;
    max-width: 100%;
}
.pc-nfe-badge i { font-size: 0.68rem; flex-shrink: 0; }
.pc-nfe-badge-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.pc-nfe-register-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: transparent; border: 1.5px dashed #667eea;
    border-radius: 20px; padding: 3px 10px;
    font-size: 0.72rem; font-weight: 600; color: #667eea;
    cursor: pointer; transition: background .15s, color .15s;
}
.pc-nfe-register-btn:hover { background: #667eea; color: #fff; }
.pc-nfe-register-btn i { font-size: 0.68rem; }

/* Botão adicionar produto */
.pc-btn-add-product {
    width: 100%;
    background: transparent;
    border: 2px dashed #c5cbe8;
    border-radius: 12px;
    padding: 10px;
    color: #667eea; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
    margin-top: 4px;
}
.pc-btn-add-product:hover { background: #eef0ff; border-color: #667eea; }

/* Footer */
.pc-footer {
    border-top: 1px solid #edf2f7;
    padding: 0.85rem 1.5rem;
    background: #fafbff;
    flex-shrink: 0;
}
.pc-footer-actions { display: flex; gap: 8px; justify-content: flex-end; }
.pc-total-line {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; padding: 8px 12px;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border-radius: 10px; border: 1px solid #e2e8f0;
}
.pc-total-label { font-size: 0.8rem; font-weight: 600; color: #718096; }
.pc-total-value { font-size: 1rem; font-weight: 800; color: #1a202c; }
.pc-btn-primary {
    background: linear-gradient(135deg, #fc793a, #e8550f);
    border: none; border-radius: 10px;
    color: #fff; font-weight: 700; font-size: 0.85rem;
    padding: 9px 20px; cursor: pointer;
    transition: opacity .15s, box-shadow .15s;
    box-shadow: 0 3px 10px rgba(252,121,58,.3);
}
.pc-btn-primary:hover { opacity: .9; box-shadow: 0 5px 16px rgba(252,121,58,.4); }
.pc-btn-secondary {
    background: transparent; border: 1.5px solid #e2e8f0;
    border-radius: 10px; color: #718096;
    font-weight: 600; font-size: 0.85rem;
    padding: 9px 18px; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.pc-btn-secondary:hover { border-color: #a0aec0; color: #4a5568; }

/* ── Cards de pedidos do fornecedor ─────────────────────── */
.fp-card {
    background: #fff;
    border: 1.5px solid #e8edf5;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .2s, border-color .2s;
}
.fp-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: #c5cbe8; }
.fp-card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.fp-card-id {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px; flex-shrink: 0;
}
.fp-card-title { font-weight: 700; font-size: 0.9rem; color: #1a202c; flex: 1; }
.fp-card-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.fp-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 20px; letter-spacing: .3px; }
.fp-badge--pago      { background: #d4edda; color: #155724; }
.fp-badge--pendente  { background: #fff3cd; color: #856404; }
.fp-badge--recebido  { background: #d1ecf1; color: #0c5460; }
.fp-badge--nrecebido { background: #e2e8f0; color: #4a5568; }
.fp-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.75rem; color: #718096; margin-bottom: 8px; }
.fp-card-meta i { margin-right: 3px; }
.fp-items { background: #f7f8fc; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font-size: 0.8rem; }
.fp-item-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 3px 0; color: #4a5568; border-bottom: 1px solid #edf2f7;
}
.fp-item-row:last-of-type { border-bottom: none; }
.fp-item-icon { color: #a0aec0; margin-right: 6px; font-size: 0.7rem; }
.fp-item-name { flex: 1; }
.fp-item-value { font-weight: 600; color: #2d3748; white-space: nowrap; }
.fp-item-total {
    display: flex; justify-content: space-between;
    padding-top: 6px; margin-top: 4px;
    border-top: 1.5px solid #e2e8f0;
    font-size: 0.8rem; color: #4a5568;
}
.fp-item-total strong { color: #1a202c; }
.fp-card-footer { display: flex; justify-content: flex-end; }
.fp-pay-btn {
    font-size: 0.78rem; font-weight: 600;
    padding: 5px 14px; border-radius: 20px;
    border: 1.5px solid; cursor: pointer;
    transition: background .15s, color .15s;
}
.fp-pay-btn--pay  { border-color: #38a169; color: #38a169; background: #fff; }
.fp-pay-btn--pay:hover  { background: #38a169; color: #fff; }
.fp-pay-btn--undo { border-color: #a0aec0; color: #718096; background: #fff; }
.fp-pay-btn--undo:hover { background: #e2e8f0; color: #4a5568; }
.fp-pay-btn:disabled { opacity: .6; cursor: default; }

/* ── Filtros de status (pedido de compra / produtos) ─────── */
.btn-filter {
    font-size: 0.78rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    border: 1.5px solid #dee2e6; color: #6c757d;
    background: #fff; transition: all .15s; line-height: 1.4;
}
.btn-filter:hover { border-color: #adb5bd; color: #343a40; }
.btn-filter.active                        { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }
.btn-filter[data-value="pendente"].active  { background: #ffc107; border-color: #ffc107; color: #212529; }
.btn-filter[data-value="pago"].active      { background: #28a745; border-color: #28a745; color: #fff; }
.btn-filter[data-value="recebido"].active  { background: #17a2b8; border-color: #17a2b8; color: #fff; }
.btn-filter[data-value="nao_recebido"].active { background: #6c757d; border-color: #6c757d; color: #fff; }
.btn-filter-produto {
    font-size: 0.78rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
    border: 1.5px solid #dee2e6; color: #6c757d;
    background: #fff; transition: all .15s; line-height: 1.4; cursor: pointer;
}
.btn-filter-produto:hover { border-color: #adb5bd; color: #343a40; }
.table-filter:checked + .btn-filter-produto      { background: #1a1a2e; border-color: #1a1a2e; color: #fff; }
#low_stock:checked + .btn-filter-produto         { background: #ffc107; border-color: #ffc107; color: #212529; }
#close_to_expiration:checked + .btn-filter-produto { background: #17a2b8; border-color: #17a2b8; color: #fff; }

/* ── Modal compartilhar pedido ──────────────────────────── */
#compartilhar-pedido-content { display: flex; flex-direction: column; height: 100%; border: none; border-radius: 0; }
.cp-body { flex: 1 1 0; overflow-y: auto; min-height: 0; padding: 1.25rem 1.5rem; background: #f0f2f5; }
.cp-preview-label { font-size: 0.75rem; font-weight: 700; color: #718096; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.cp-message-wrap { background: #e5ddd5; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.cp-phone-bar { background: #075e54; padding: 8px 14px; display: flex; align-items: center; gap: 6px; }
.cp-phone-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.cp-phone-name { color: #fff; font-size: 0.82rem; font-weight: 600; margin-left: 4px; }
.cp-bubble-area { padding: 14px 12px; min-height: 200px; }
.cp-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 14px 22px; position: relative; max-width: 90%; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.cp-pre { font-family: inherit; font-size: 0.82rem; color: #2d3748; white-space: pre-wrap; word-break: break-word; margin: 0; line-height: 1.55; }
.cp-bubble-time { position: absolute; bottom: 6px; right: 10px; font-size: 0.68rem; color: #a0aec0; }

@media (max-width: 576px) {
    .pc-product-col-cost { width: 100%; }
    .pc-product-col-qty  { width: calc(100% - 46px); }
}

/* ── Estoque log timeline (produtos.blade.php) ──────────────────────────── */
.estoque-log-timeline {
    position: relative;
    padding-left: 2.25rem;
}
.estoque-log-timeline::before {
    content: '';
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.75rem;
    width: 2px;
    background: #e9ecef;
}
.estoque-log-item {
    position: relative;
    padding-bottom: 1rem;
}
.estoque-log-item:last-child { padding-bottom: 0; }
.estoque-log-marker {
    position: absolute;
    top: 0;
    left: -2.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
}
.estoque-log-item.entrada .estoque-log-marker { background: #28a745; }
.estoque-log-item.saida   .estoque-log-marker { background: #dc3545; }
.estoque-log-title { font-weight: 700; color: #343a40; }
.estoque-log-item.entrada .estoque-log-title  { color: #218838; }
.estoque-log-item.saida   .estoque-log-title  { color: #c82333; }
.estoque-log-meta  { color: #6c757d; font-size: 0.875rem; }
.estoque-log-empty { color: #6c757d; padding: 0.75rem 0; }

/* ===== WhatsApp Screen ===== */
.whatsapp-screen {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Tela de conexão ─────────────────────────────────────────────────────── */
.whatsapp-connect-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-connect-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.whatsapp-connect-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,.10);
    overflow: hidden;
    max-width: 780px;
    width: 90%;
}

.whatsapp-connect-left {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.whatsapp-connect-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #111b21;
}

.whatsapp-connect-logo i {
    font-size: 26px;
    color: #25d366;
}

.whatsapp-connect-left h2 {
    font-size: 22px;
    font-weight: 300;
    color: #111b21;
    margin: 0;
}

.whatsapp-connect-steps {
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #3b4a54;
    font-size: 14px;
    line-height: 1.5;
}

.whatsapp-connect-steps li::marker {
    font-weight: 700;
    color: #25d366;
}

.whatsapp-connect-hint {
    margin: 0;
    font-size: 12px;
    color: #8696a0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-connect-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px 40px;
    background: #f0f2f5;
    border-left: 1px solid #e9edef;
}

.whatsapp-connect-qr {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .15s;
    object-fit: contain;
}

.whatsapp-connect-qr:hover { opacity: .85; }

.whatsapp-connect-qr-hint {
    font-size: 12px;
    color: #8696a0;
    margin: 0;
    text-align: center;
}

/* WhatsApp upsell */
.wa-upsell-card {
    max-width: 1000px !important;
    width: 95% !important;
    max-height: 90vh;
    overflow: hidden;
}

.wa-upsell-preview {
    flex: 1;
    display: flex;
    overflow: hidden;
    border-left: 1px solid #f0f2f5;
    min-width: 0;
}

.wa-upsell-sidebar {
    width: 265px;
    flex-shrink: 0;
    border-right: 1px solid #e9edef;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wa-upsell-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #efeae2;
    overflow: hidden;
    min-width: 0;
}

.wa-upsell-chat .whatsapp-messages {
    flex: 1;
    overflow: hidden;
}

@media (max-width: 860px) {
    .wa-upsell-card {
        flex-direction: column;
        overflow-y: auto;
    }

    .wa-upsell-card .delivery-upsell-left {
        border-right: none;
        border-bottom: 1px solid #f0f2f5;
        padding: 24px 20px;
    }

    .wa-upsell-sidebar {
        display: none;
    }
}

/* Delivery upsell */
.delivery-upsell-card {
    max-width: 1100px !important;
    width: 95% !important;
    max-height: 90vh;
    overflow: hidden;
}

.delivery-upsell-right {
    overflow-y: auto;
}

@media (max-width: 900px) {
    .delivery-upsell-card {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
        width: 95% !important;
    }

    .delivery-upsell-left {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #f0f2f5;
        padding: 24px 20px;
    }

    .delivery-upsell-right {
        padding: 12px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .delivery-upsell-board {
        flex-wrap: nowrap;
        min-width: 560px;
    }
}

.delivery-upsell-left {
    flex: 0 0 320px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid #f0f2f5;
}

.delivery-upsell-left .whatsapp-connect-hint {
    display: block;
}

.delivery-upsell-right {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
    overflow: hidden;
}

.delivery-upsell-board {
    display: flex;
    gap: 10px;
    flex: 1;
    overflow-x: auto;
}

.delivery-upsell-col {
    flex: 1;
    min-width: 190px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    display: flex;
    flex-direction: column;
}

.delivery-upsell-col-header {
    padding: 8px 10px;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.delivery-upsell-badge {
    margin-left: auto;
    background: rgba(0,0,0,.14);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: .72rem;
}

.delivery-upsell-col .delivery-order-card {
    border-left-width: 4px;
    font-size: .82rem;
}

.delivery-upsell-col .delivery-order-items {
    padding: 0 12px 6px;
}

.delivery-upsell-col .delivery-order-items-head {
    margin-bottom: 3px;
}

.delivery-upsell-col .delivery-order-item {
    padding: 1px 0;
}

.delivery-upsell-col .delivery-order-card {
    background: #ffffff;
    border: 1px solid #e7ebf1;
    border-left: 4px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgb(23 43 77 / 8%);
    color: #172b4d;
    margin-bottom: 0;
    padding: 0;
}

.delivery-upsell-col.status-column-new .delivery-order-card {
    border-left-color: #fc793a;
}

.delivery-upsell-col.status-column-preparing .delivery-order-card {
    border-left-color: #2f6fed;
}

.delivery-upsell-col.status-column-route .delivery-order-card {
    border-left-color: #19b653;
}

.button-whatsapp-icon {
    background: #e9fbe9 !important;
    border-color: #b7e8b7 !important;
    color: #25d366 !important;
}

.button-whatsapp i {
    color: #25d366 !important;
}

.button-whatsapp:hover {
    background: #f5fef5 !important;
}

/* Sidebar */
.whatsapp-sidebar {
    width: 360px;
    min-width: 300px;
    background: #ffffff;
    border-right: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
}

.whatsapp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f2f5;
    padding: 10px 16px;
    height: 60px;
}

.whatsapp-sidebar-actions {
    display: flex;
    gap: 8px;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dfe5e7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aebac1;
    font-size: 20px;
}

.whatsapp-icon-btn {
    background: none;
    border: none;
    color: #54656f;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.15s;
}

.whatsapp-icon-btn:hover {
    background: #e9edef;
}

.whatsapp-search {
    padding: 8px 12px;
    background: #ffffff;
}

.whatsapp-search-inner {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 7px 12px;
    gap: 10px;
    color: #8696a0;
}

.whatsapp-search-inner input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #111b21;
}

.whatsapp-search-inner input::placeholder {
    color: #8696a0;
}

.whatsapp-conversations {
    flex: 1;
    overflow-y: auto;
}

.whatsapp-conversation-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
    gap: 12px;
    transition: background 0.1s;
}

.whatsapp-conversation-item:hover,
.whatsapp-conversation-item.active {
    background: #f0f2f5;
}

.whatsapp-conv-avatar {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    background: #00a884;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.whatsapp-conv-info {
    flex: 1;
    min-width: 0;
}

.whatsapp-conv-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.whatsapp-conv-name {
    font-size: 16px;
    font-weight: 400;
    color: #111b21;
}

.whatsapp-conv-time {
    font-size: 12px;
    color: #8696a0;
    white-space: nowrap;
}

.whatsapp-conv-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-conv-last-msg {
    font-size: 13px;
    color: #8696a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.whatsapp-conv-check {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.whatsapp-conv-check-gray { color: #8696a0; }
.whatsapp-conv-check-blue { color: #53bdeb; }

.whatsapp-conv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.whatsapp-conv-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1.4;
}

.whatsapp-conv-tag i { font-size: 9px; }

.whatsapp-conv-tag-order      { background: #fff4e6; color: #e07b00; }
.whatsapp-conv-tag-ai-paused  { background: #fff8e1; color: #c98000; }
.whatsapp-conv-tag-ai-off     { background: #f1f3f4; color: #8696a0; }

.whatsapp-conv-badge {
    background: #00a884;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Chat area */
.whatsapp-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #efeae2;
    position: relative;
    height: 100%;
}

.whatsapp-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='400' height='400' fill='%23e5ddd5' opacity='0.3'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.whatsapp-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f2f5;
    padding: 10px 16px;
    height: 60px;
    position: relative;
    z-index: 1;
}

.whatsapp-chat-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-chat-contact-info {
    display: flex;
    flex-direction: column;
}

.whatsapp-chat-contact-name {
    font-size: 15px;
    font-weight: 500;
    color: #111b21;
    line-height: 1.2;
}

.whatsapp-chat-contact-status {
    font-size: 13px;
    color: #8696a0;
}

.whatsapp-chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Botão IA flutuante ─────────────────────────────────────────────────── */
.whatsapp-input-wrap {
    position: relative;
}

.whatsapp-ai-btn {
    position: absolute;
    right: 15px;
    bottom: calc(100% + 20px);
    width: 100px;
    height: 60px;
    border-radius: 10px;
    border: none;
    background: url('/assets/img/gemini-logo.webp') center/cover no-repeat, #fff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    transition: transform .15s, box-shadow .15s, opacity .15s;
    z-index: 10;
}

.whatsapp-ai-btn:hover  { transform: scale(1.07); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.whatsapp-ai-btn:focus  { outline: none; }
.whatsapp-ai-btn svg    { display: none; }

.whatsapp-ai-btn[data-state="paused"] { opacity: .6; filter: sepia(1) hue-rotate(10deg); box-shadow: 0 2px 10px rgba(245,159,0,.35); }
.whatsapp-ai-btn[data-state="off"]    { opacity: .35; filter: grayscale(1); box-shadow: none; }

/* ── Menu da IA ─────────────────────────────────────────────────────────── */
.whatsapp-ai-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 46px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    overflow: hidden;
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(.97);
    transition: opacity .15s, transform .15s;
    z-index: 20;
}

.whatsapp-ai-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.whatsapp-ai-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #111b21;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}

.whatsapp-ai-menu-item:hover { background: #f5f6f6; }
.whatsapp-ai-menu-item i     { font-size: 14px; color: #54656f; }

.whatsapp-ai-menu-item-on           { color: #00a884; border-bottom: 1px solid #f0f2f3; }
.whatsapp-ai-menu-item-on i         { color: #00a884; }
.whatsapp-ai-menu-item-on:hover     { background: #f0faf7; }

.whatsapp-ai-menu-item-danger       { color: #e53935; }
.whatsapp-ai-menu-item-danger i     { color: #e53935; }
.whatsapp-ai-menu-item-danger:hover { background: #fff5f5; }

.whatsapp-close-btn {
    color: #f15c6d !important;
}

.whatsapp-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 10%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.whatsapp-date-divider {
    text-align: center;
    margin: 12px 0;
}

.whatsapp-date-divider span {
    background: #ffffff;
    color: #54656f;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(11,20,26,.13);
}

.whatsapp-msg {
    display: flex;
    margin: 1px 0;
}

.whatsapp-msg-received {
    justify-content: flex-start;
}

.whatsapp-msg-sent {
    justify-content: flex-end;
}

.whatsapp-msg-bubble {
    max-width: 65%;
    padding: 6px 10px 8px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 2px rgba(11,20,26,.13);
}

.whatsapp-msg-received .whatsapp-msg-bubble {
    background: #ffffff;
}

.whatsapp-msg-sent .whatsapp-msg-bubble {
    background: #d9fdd3;
}

.whatsapp-msg-text {
    display: block;
    font-size: 14.2px;
    color: #111b21;
    line-height: 19px;
    word-break: break-word;
    white-space: pre-wrap;
    padding-right: 52px;
}

.whatsapp-msg-time {
    font-size: 11px;
    color: #8696a0;
    float: right;
    margin-top: -16px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.whatsapp-status-icon {
    font-size: 11px;
    vertical-align: middle;
    width: 14px;
    height: 14px;
}

.whatsapp-check-single,
.whatsapp-check-double {
    color: #8696a0;
}

.whatsapp-check-double-blue {
    color: #53bdeb;
}

/* legado — mantido para não quebrar nada */
.whatsapp-read-check      { color: #8696a0; font-size: 12px; }
.whatsapp-read-check-blue { color: #53bdeb;  font-size: 11px; }

.whatsapp-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
    padding: 10px 16px;
    position: relative;
    z-index: 1;
}

.whatsapp-input {
    flex: 1;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 15px;
    color: #111b21;
    outline: none;
}

.whatsapp-input::placeholder {
    color: #8696a0;
}

.whatsapp-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00a884;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.whatsapp-send-btn:hover {
    background: #06cf9c;
}

.whatsapp-emoji-btn,
.whatsapp-attach-btn {
    color: #54656f !important;
    font-size: 20px !important;
}

.whatsapp-conversations-loading {
    padding: 24px;
    text-align: center;
    color: #8696a0;
    font-size: 14px;
}

.whatsapp-empty-state {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8696a0;
    gap: 12px;
}

.whatsapp-empty-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.whatsapp-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d9fdd3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #00a884;
}

.whatsapp-empty-state h3 {
    color: #41525d;
    font-size: 20px;
    margin: 0;
}

.whatsapp-empty-state p {
    font-size: 14px;
    margin: 0;
}

.whatsapp-loading-msgs {
    text-align: center;
    padding: 24px;
    color: #8696a0;
    font-size: 14px;
}

.whatsapp-pending-check {
    color: #8696a0;
    font-size: 11px;
}

.whatsapp-error-check {
    color: #f15c6d;
    font-size: 11px;
}

/* ── Separador de data ───────────────────────────────────────────────────── */
.whatsapp-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 6px;
}

.whatsapp-date-separator span {
    background: #e9edef;
    color: #54656f;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    user-select: none;
}

/* ── Banner de mensagens efêmeras ───────────────────────────────────────── */
.whatsapp-ephemeral-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff3cd;
    border-left: 3px solid #e6a817;
    color: #7a5800;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 12px;
    margin: 8px 10px 4px;
    border-radius: 6px;
}

.whatsapp-ephemeral-banner svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #e6a817;
}

/* ── WhatsApp audio player ──────────────────────────────────────────────── */
.whatsapp-msg-bubble-audio {
    padding: 8px 10px 6px;
    min-width: 240px;
}

.whatsapp-msg-bubble-audio .whatsapp-msg-time {
    margin-top: -10px;
}

.wa-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    padding: 5px 0px;
}

.wa-audio-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    position: relative;
}

.wa-audio-left{
    margin-top: 0px;
}

.wa-audio-left .wa-audio-duration {
    position: absolute;
    bottom: -2px;
    left: 35px;
    white-space: nowrap;
    bottom: -15px;
}

.wa-audio-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.wa-audio-btn svg {
    width: 26px;
    height: 26px;
    fill: #8696a0;
    transition: fill .15s;
}
.wa-audio-btn:hover svg { fill: #aab8c2; }
.wa-audio-btn:focus { outline: none; }

.wa-audio-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wa-wave {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 28px;
    cursor: pointer;
}

.wa-wave-bar {
    flex-shrink: 0;
    width: 3px;
    border-radius: 2px;
    background: #8696a0;
    transition: background .1s;
}

.wa-wave-bar.wa-bar-played { background: #00a884; }

/* Bolinha de progresso */
.wa-wave-dot {
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00a884;
    pointer-events: none;
    display: none;
}

.wa-wave-dot { display: block; }

.wa-audio-duration {
    font-size: 11px;
    color: #8696a0;
    line-height: 1;
}

.wa-audio-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    user-select: none;
}

.whatsapp-msg-sent .wa-audio-btn svg { fill: #4a5568; }
.whatsapp-msg-sent .wa-audio-btn:hover svg { fill: #2d3748; }
.whatsapp-msg-sent .wa-wave-bar { background: #7a9e8a; }
.whatsapp-msg-sent .wa-wave-bar.wa-bar-played { background: #4a5568; }
.whatsapp-msg-sent .wa-wave-dot { background: #4a5568; box-shadow: none; }
.whatsapp-msg-sent .wa-audio-duration { color: #4a5568; }
.whatsapp-msg-sent .wa-audio-avatar { border: none; }

.whatsapp-image {
    display: block;
    max-width: 240px;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    object-fit: cover;
}
