﻿.arrowUp {
    color: #ffffff
}

.flatpickr-date {
    cursor: pointer !important;
    background-color: #f9f9f9 !important;
}

    .flatpickr-date:focus {
        background-color: #fff !important;
    }

    /* Ícone de calendário */
    .flatpickr-date + span {
        z-index: 1;
    }

        .flatpickr-date + span:hover i {
            color: #F1416C !important;
        }

/* Customização do calendário */
.flatpickr-formulario.flatpickr-calendar {
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075) !important;
    border: 1px solid #e4e6ef !important;
    border-radius: 0.625rem !important;
    font-family: inherit !important;
}

.flatpickr-formulario .flatpickr-months {
    background: #F1416C !important;
    border-radius: 0.625rem 0.625rem 0 0 !important;
}

.flatpickr-formulario .flatpickr-current-month {
    color: #fff !important;
}

    .flatpickr-formulario .flatpickr-current-month .flatpickr-monthDropdown-months {
        background: transparent !important;
        color: #fff !important;
        font-weight: 600 !important;
    }

    .flatpickr-formulario .flatpickr-current-month .numInputWrapper input {
        color: #fff !important;
        font-weight: 600 !important;
    }

.flatpickr-formulario .flatpickr-prev-month,
.flatpickr-formulario .flatpickr-next-month {
    fill: #fff !important;
}

    .flatpickr-formulario .flatpickr-prev-month:hover,
    .flatpickr-formulario .flatpickr-next-month:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 0.375rem !important;
    }

.flatpickr-formulario .flatpickr-weekday {
    color: #7e8299 !important;
    font-weight: 600 !important;
}

.flatpickr-formulario .flatpickr-day {
    color: #3f4254 !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

    .flatpickr-formulario .flatpickr-day:hover {
        background: #f9f9f9 !important;
        border-color: #f9f9f9 !important;
    }

    .flatpickr-formulario .flatpickr-day.today {
        border-color: #F1416C !important;
        background: #fff5f8 !important;
        color: #F1416C !important;
    }

    .flatpickr-formulario .flatpickr-day.selected {
        background: #F1416C !important;
        border-color: #F1416C !important;
        color: #fff !important;
        font-weight: 600 !important;
    }

        .flatpickr-formulario .flatpickr-day.selected:hover {
            background: #d61c4e !important;
            border-color: #d61c4e !important;
        }

    .flatpickr-formulario .flatpickr-day.disabled,
    .flatpickr-formulario .flatpickr-day.disabled:hover {
        color: #b5b5c3 !important;
        background: transparent !important;
        cursor: not-allowed !important;
    }

.flatpickr-formulario.open {
    animation: flatpickrFadeIn 0.2s ease-in-out;
}

@keyframes flatpickrFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsivo */
@media (max-width: 767.98px) {
    .flatpickr-formulario.flatpickr-calendar {
        max-width: 100% !important;
        width: 100% !important;
    }
}
.pulse-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.animate-pulse-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

.highlight-formulario {
    background: linear-gradient(90deg, rgba(80, 205, 137, 0.15) 0%, rgba(80, 205, 137, 0) 100% );
    border-left: 3px solid #50CD89;
    animation: slideInFromLeft 0.6s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
html {
    scroll-behavior: smooth;
}
.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}
[bloco-pagina="formulario-page"] {
    transition: all 0.3s ease;
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Highlight no menu item */
.highlight-new-item-delayed {
    background: linear-gradient(90deg, rgba(80, 205, 137, 0.15) 0%, rgba(80, 205, 137, 0) 100% );
    border-left: 3px solid #50CD89;
    animation: fadeInLeft 0.6s ease-out;
}

.pulse-highlight {
    animation: pulse-highlight 1s ease-in-out 2;
}

@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(80, 205, 137, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(80, 205, 137, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.campo-item-preenchimento {
    transition: all 0.3s ease;
}

    .campo-item-preenchimento:hover {
        box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075) !important;
    }

.pagina-formulario {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-check-input:checked {
    background-color: #F1416C;
    border-color: #F1416C;
}

.is-invalid {
    border-color: #F1416C !important;
}

.dropzone-wrapper .card:hover {
    border-color: #F1416C !important;
    background-color: #FFF5F8 !important;
}

.comentario-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

    .comentario-item .text-gray-700 {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .comentario-item a {
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .comentario-item .border-dashed {
        max-width: 100%;
        overflow: hidden;
    }

        .comentario-item .border-dashed .row {
            margin-left: -0.75rem;
            margin-right: -0.75rem;
            justify-content: flex-start;
        }

        .comentario-item .border-dashed .col-12,
        .comentario-item .border-dashed .col-sm-6,
        .comentario-item .border-dashed .col-md-4 {
            display: flex;
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }

        .comentario-item .border-dashed .d-flex.align-items-center.justify-content-between {
            width: 100%;
            overflow: hidden;
            transition: all 0.2s ease;
        }

            .comentario-item .border-dashed .d-flex.align-items-center.justify-content-between:hover {
                background-color: #f9f9f9;
            }

    .comentario-item a.text-truncate {
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 220px; /* desktop */
    }

    .comentario-item img.w-40px {
        width: 40px !important;
    }

@media (max-width: 992px) {
    .comentario-item a.text-truncate {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .comentario-item .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .comentario-item a.text-truncate {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .comentario-item .col-12, .comentario-item .col-sm-6, .comentario-item .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .comentario-item .border-dashed {
        padding: 10px !important;
    }

    .comentario-item img.w-40px {
        width: 32px !important;
        margin-right: 8px !important;
    }

    .comentario-item a.text-truncate {
        max-width: 140px;
    }
}

/* ==== AJUSTE DO TEXTO E LINKS LONGOS ==== */
.comentario-item .text-gray-700 a {
    color: #009ef7;
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.comentario-item .flex-grow-1 {
    min-width: 0;
}.card-header {
    min-height: 50px !important;
}

.main-editor {
    flex-grow: 1;
    padding: 30px;
    padding-top: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #777;
    margin-bottom: 20px;
    text-align: center;
}

.config-message {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #eee;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.linha-com-botao {
    position: relative;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    padding: 30px;
}

    .linha-com-botao hr {
        border: none;
        border-top: 2px dashed #ccc;
        margin: 0;
    }

.app-container {
    padding-left: 0px !important;
    padding-right: 0px !important;
}
.app-content {
    background-color: #ffffff; /* Claro */
}

[data-bs-theme=dark] .app-content {
    background-color: #000000; /* Escuro */
}



.botao-centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #F8285A;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .botao-centro:hover {
        background-color: darkred;
    }

.nav-item {
    border: 1px solid #eee;
}

@media (min-width: 992px) {
    .min-w-500px-lg {
        min-width: 500px !important;
    }
}

.note-insert > button:nth-child(2) {
    display: none !important;
}

.note-insert > button:nth-child(3), .note-table, .note-insert, .btn-group.note-view > button:nth-child(3) {
    display: none !important;
}

.note-toolbar {
    background-color: #f3f3f3;
}

.note-editable {
    background-color: white;
}


.splide {
    margin: 0 auto;
}

.thumbnails {
    display: flex;
    margin: 1rem auto 0;
    padding: 0;
    justify-content: center;
}

.thumbnail {
    width: 120px;
    height: 90px;
    overflow: hidden;
    list-style: none;
    margin: 0 0.2rem;
    cursor: pointer;
    opacity: 0.3;
}

@media (max-width: 667px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

.thumbnail.is-active {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: auto;
}

.splide__arrow svg {
    fill: #e3e3e3;
}

.splide__slide {
    background-size: contain !important;
}

.splide__slide div {
    background: linear-gradient(to bottom, rgb(0 0 0 / 30%), rgba(0, 0, 0, 1));
    text-align: center;
    color: #f7f7f7;
    position: relative;
    top: 540px;
    font-size: 12px;
    height: 40px;
    align-content: center;
}

@media (max-width: 667px) {
    .splide__slide {
        max-height: 202px;
    }
}

[data-bs-theme=dark] .note-toolbar {
    background-color: #363843;
}

.note-editable {
    color: #071437;
}

[data-bs-theme="dark"] .btn.btn-dark {
    background-color: var(--bs-danger) !important;
    color: var(--bs-danger-inverse) !important;
}

.cursor-text {
    cursor: text;
}


[data-bs-theme="dark"] .bg-white {
    background-color: #15171c !important;
}


[data-bs-theme="dark"] .nav-item {
    border: 1px solid #303540;
}

#back2Top, #backDown {
    width: 40px;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    /* display: none;*/
    cursor: pointer;
    position: fixed;
    bottom: 120px !important;
    right: 20px;
    z-index: 9999 !important;
    text-align: center;
    font-size: 15px;
    border-radius: 4px;
    text-decoration: none;
    background: #f3123c;
    color: #ffffff;
}

.hr-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #ccc;
    font-family: sans-serif;
    margin: 20px 0;
    font-size: 14px;
}

    .hr-text::before,
    .hr-text::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #f8285a;
    }

    .hr-text::before {
        margin-right: .5em;
    }

    .hr-text::after {
        margin-left: .5em;
    }

[data-bs-theme="light"] .remove-btn {
    border: none;
    background: white;
}

.rotate-270 {
    transform: rotate(270deg);
}

/* ========== TABELA DE PREÇO — LAYOUT MOBILE (CARDS) ========== */
@media (max-width: 767.98px) {
    .tp-items {
        padding: 12px;
    }

    .tp-item {
        position: relative;
        margin: 0 0 12px 0 !important;
        padding: 14px !important;
        border: 1px solid #e4e6ef !important;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    .tp-item.opacity-50 {
        background: #f5f8fa;
    }

    .tp-item > .tp-col-produto {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0 0 12px 0 !important;
        margin: 0 0 8px 0 !important;
        border-bottom: 1px dashed #eaecef;
    }

    .tp-item > .tp-col-preco,
    .tp-item > .tp-col-qtd {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 8px 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: left !important;
    }

    .tp-item .tp-label {
        margin-bottom: 0 !important;
        font-size: 0.875rem !important;
        color: #5e6278 !important;
        font-weight: 500 !important;
    }

    .tp-item > .tp-col-preco .conteudo-preco {
        text-align: right;
        flex-shrink: 0;
    }

    .tp-item > .tp-col-preco .conteudo-preco > div {
        align-items: flex-end !important;
    }

    .tp-item > .tp-col-qtd > div.d-flex {
        justify-content: flex-end !important;
        flex-shrink: 0;
    }

    .tp-item > .tp-col-qtd .input-group {
        width: auto !important;
    }

    .tp-item > .tp-col-qtd .input-group .btn-icon.btn-sm {
        width: 36px;
        height: 36px;
    }

    .tp-item > .tp-col-qtd .input-group .form-control {
        width: 50px;
        flex: 0 0 50px;
    }

    .tp-item > .tp-col-total {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 12px 0 0 0 !important;
        margin: 6px 0 0 0 !important;
        border-top: 1px solid #e4e6ef;
        text-align: left !important;
    }

    .tp-item > .tp-col-total > div {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .tp-item > .tp-col-total .conteudo-total {
        text-align: right;
    }

    .tp-item > .tp-col-total .conteudo-total > div {
        align-items: flex-end !important;
    }

    .tp-item > .tp-col-total .total-linha {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
    }

    .tp-item.border-bottom {
        border-bottom: 1px solid #e4e6ef !important;
    }
}