﻿/* ========== Portal Global Styles ========== */
:root {
    --portal-primary: #0d6efd;
    --portal-primary-dark: #0056d2;
    --portal-dark: #1a1a2e;
    --portal-dark-alt: #16213e;
    --portal-bg: #f8f9fa;
    --portal-text: #212529;
    --portal-text-muted: #6c757d;
    --portal-border: #dee2e6;
    --portal-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --portal-radius: 8px;
    --portal-transition: all 0.2s ease;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background-color: var(--portal-bg);
    color: var(--portal-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#div_controller {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Footer */
.portal-footer {
    background: linear-gradient(135deg, var(--portal-dark) 0%, var(--portal-dark-alt) 100%);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.portal-footer-logo {
    max-height: 35px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .portal-footer-logo:hover {
        opacity: 1;
    }

.portal-footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #a1a1a1;
    }

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Button improvements */
.btn {
    border-radius: var(--portal-radius);
    font-weight: 500;
    transition: var(--portal-transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-dark) 100%);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }

/* Card improvements */
.card {
    border: none;
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
}

/* Table improvements */
.table {
    font-size: 0.875rem;
}

    .table th {
        font-weight: 600;
        background-color: #f8f9fa;
        border-bottom-width: 1px;
    }

/* Modal improvements */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid var(--portal-border);
    padding: 1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--portal-border);
    padding: 1rem 1.5rem;
}

/* Loading state */
.please-wait {
    text-align: center;
    color: white;
    padding: 2rem;
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    html, body {
        font-size: 13px;
    }

    .portal-footer {
        height: 60px;
        padding: 0 1rem;
    }

    .portal-footer-logo {
        max-height: 28px;
    }

    .portal-footer-text {
        display: none;
    }
}

/* Print styles */
@media print {
    .portal-footer,
    .portal-navbar,
    .portal-sidebar {
        display: none !important;
    }

    .portal-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Accessibility improvements */
*:focus-visible {
    outline: 2px solid var(--portal-primary);
    outline-offset: 2px;
}

/* Animation utilities */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}



/* ========== Consulta Vendas File Styles ========== */
.consulta-vendas-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

    .page-header h4 {
        margin: 0;
        font-weight: 600;
        font-size: 1.25rem;
    }

.page-header-subtitle {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Filtros */
.filter-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

    .filter-card .filter-title {
        font-weight: 600;
        font-size: 0.9rem;
        color: #1a1a2e;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .filter-card .filter-title i {
            color: #0d6efd;
        }

    .filter-card .form-label {
        font-size: 0.8rem;
        font-weight: 500;
        color: #6c757d;
        margin-bottom: 0.35rem;
    }

    .filter-card .form-control,
    .filter-card .form-select {
        font-size: 0.875rem;
        border-radius: 8px;
        border-color: #e0e0e0;
    }

        .filter-card .form-control:focus,
        .filter-card .form-select:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        }

.btn-search {
    background: linear-gradient(135deg, #0d6efd 0%, #0056d2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn-search:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
    }

/* Cards de OS */
.os-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

    .os-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

.os-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.os-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.os-number {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}

.os-item-name {
    color: #495057;
    font-size: 0.9rem;
}

.os-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges */
.badge-pax {
    background: linear-gradient(135deg, #0d6efd 0%, #0056d2 100%);
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-datetime {
    background: #6c757d;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge-guia {
    background: #495057;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge-tipo {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-privativo {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.badge-transfer-in {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.badge-transfer-out {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.badge-hora {
    background: #212529;
}

.badge-pickup {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
}

.badge-dropoff {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
}

/* Venda Item */
.venda-item {
    padding: 1.25rem;
    margin: 0.75rem 1rem;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid #0d6efd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

    .venda-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-left-color: #0056d2;
    }

    .venda-item:nth-child(even) {
        border-left-color: #17a2b8;
    }

        .venda-item:nth-child(even):hover {
            border-left-color: #138496;
        }

.venda-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e0e0e0;
}

.venda-id-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.venda-id {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.venda-id-badge {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.venda-titular-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.venda-titular {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.venda-titular-icon {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.venda-cliente {
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

    .venda-cliente i {
        font-size: 0.75rem;
    }

.venda-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Período e Passageiros - Linha destacada */
.periodo-pax-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.periodo-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7f9 100%);
    border: 1px solid #b8daff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.periodo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0d6efd 0%, #0056d2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.periodo-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.periodo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #1a1a2e;
}

    .periodo-item i {
        width: 16px;
        text-align: center;
    }

    .periodo-item strong {
        font-weight: 700;
        color: #0d6efd;
    }

.pax-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.pax-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.pax-content {
    display: flex;
    flex-direction: column;
}

.pax-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.pax-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.pax-voo {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.15rem;
}

/* Locais Grid */
.locais-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.detail-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}

.detail-group-content {
    font-size: 0.875rem;
    color: #212529;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 100%;
}

    .location-badge span {
        white-space: normal;
        word-break: break-word;
    }

.venda-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .venda-actions .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-weight: 500;
    }

.contact-info {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.75rem;
}

    .contact-info p {
        margin: 0;
        font-size: 0.85rem;
        color: #495057;
    }

    .contact-info strong {
        color: #212529;
    }

.obs-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    background: #fff8e6;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    margin-top: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Results Summary */
.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #e7f1ff;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.results-count {
    font-weight: 600;
    color: #0d6efd;
}

/* Modal Improvements */
.modal-contato .modal-content {
    border-radius: 16px;
}

.modal-contato .modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.5rem;
}

    .modal-contato .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-contato .modal-body {
    padding: 1.5rem;
}

.modal-contato .venda-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

    .modal-contato .venda-summary p {
        margin: 0.25rem 0;
    }

/* Modal Serviços */
.modal-servicos .modal-content {
    border-radius: 0;
}

.modal-servicos .modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 1rem 1.5rem;
}

    .modal-servicos .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

/* Header Info do Modal - Estilo Cards */
.modal-servicos .venda-info-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

/* Card do Cliente/Titular */
.modal-cliente-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    border-left: 4px solid #198754;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.modal-cliente-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-cliente-file {
    font-size: 0.75rem;
    color: #6c757d;
}

.modal-cliente-file-badge {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 0.35rem;
}

.modal-cliente-nome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-cliente-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.modal-cliente-titular {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.modal-cliente-agencia {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Card de Período */
.modal-periodo-card {
    min-width: 200px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e7f9 100%);
    border: 1px solid #b8daff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-periodo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd 0%, #0056d2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.modal-periodo-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.modal-periodo-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #1a1a2e;
}

    .modal-periodo-item strong {
        font-weight: 700;
        color: #0d6efd;
    }

/* Card de PAX */
.modal-pax-card {
    min-width: 100px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
}

.modal-pax-icon {
    font-size: 1.3rem;
    opacity: 0.9;
}

.modal-pax-content {
    display: flex;
    flex-direction: column;
}

.modal-pax-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.modal-pax-value {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Botões Diário */
.modal-actions-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

    .modal-actions-card .btn {
        white-space: nowrap;
    }

.servico-dia {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Separador de Dia - Formato Banner */
.servico-dia-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: relative;
}

.dia-info {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.dia-data-box {
    background: linear-gradient(135deg, #0d6efd 0%, #0056d2 100%);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
}

.dia-data-icon {
    font-size: 1.25rem;
    opacity: 0.9;
}

.dia-data-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dia-data-semana {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
}

.dia-data-valor {
    font-size: 1.1rem;
    font-weight: 700;
}

.dia-qtd-servicos {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .dia-qtd-servicos strong {
        font-size: 1.1rem;
    }

.dia-badge-empty {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
    margin-right: 1rem;
}

.servico-dia-content {
    padding: 0.75rem;
}

/* Item de Serviço - Layout Otimizado */
.servico-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease;
}

    .servico-item:last-child {
        margin-bottom: 0;
    }

    /* Serviço Bloqueado - Borda laranja */
    .servico-item.is-locked {
        border-left-color: #f39c12;
        background: linear-gradient(135deg, #fffbf5 0%, #fff 100%);
    }

.servico-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e9ecef;
}

.servico-item-info {
    flex: 1;
    min-width: 0;
}

.servico-item-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.servico-item-id {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.servico-item-title {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1rem;
}

.servico-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

    .servico-item-badges .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

/* Badge de Status inline no header */
.servico-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

    .servico-status-inline.status-locked {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
        color: #fff;
    }

    .servico-status-inline.status-editable {
        background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
        color: #fff;
    }

    .servico-status-inline i {
        font-size: 0.65rem;
    }

    /* Tooltip customizado para status */
    .servico-status-inline[data-bs-toggle="tooltip"] {
        cursor: help;
    }

/* Mensagem de ajuda quando bloqueado */
.servico-locked-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #856404;
    margin-top: 0.5rem;
}

    .servico-locked-help i {
        color: #f39c12;
        font-size: 0.85rem;
    }

.servico-locked-help-text {
    flex: 1;
}

.servico-locked-help strong {
    font-weight: 600;
}

.servico-controls {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .servico-controls .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

        .servico-controls .btn i {
            font-size: 1rem;
        }

        .servico-controls .btn:not(:disabled):hover {
            transform: scale(1.05);
        }

        .servico-controls .btn:not(:disabled):active {
            transform: scale(0.95);
        }

/* Grid de Detalhes do Serviço - Desktop */
.servico-item-details {
    display: grid;
    grid-template-columns: 120px 80px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.servico-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .servico-form-group label {
        font-size: 0.7rem;
        color: #6c757d;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .servico-form-group .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
    }

        .servico-form-group .form-control:disabled {
            background-color: #f8f9fa;
        }

/* Grupo de Local com badges */
.servico-local-group {
    grid-column: span 1;
}

.servico-local-badges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .servico-local-badges .location-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

/* Desktop: Observações e OS lado a lado */
.servico-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.servico-obs-group {
    display: flex;
    flex-direction: column;
}

    .servico-obs-group label {
        font-size: 0.7rem;
        color: #6c757d;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.35rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

        .servico-obs-group label i {
            color: #6c757d;
        }

    .servico-obs-group textarea {
        resize: none;
        min-height: 80px;
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .servico-obs-group textarea:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        }

        .servico-obs-group textarea:disabled {
            background-color: #f8f9fa;
            cursor: not-allowed;
        }

/* Ordens de Serviço - Card Style */
.servico-os-group {
    display: flex;
    flex-direction: column;
}

.servico-os-group-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

    .servico-os-group-label i {
        color: #6c757d;
    }

.servico-os-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.servico-os-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.servico-os-item-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.servico-os-item-content {
    flex: 1;
    min-width: 0;
}

.servico-os-item-number {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a1a2e;
}

.servico-os-item-details {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.servico-os-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #adb5bd;
    font-size: 0.85rem;
    font-style: italic;
}

    .servico-os-empty i {
        font-size: 1rem;
    }

/* Legacy support - manter para compatibilidade */
.alert-escalado {
    display: none;
}

.no-services-alert {
    background: #fff8e6;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    color: #856404;
    font-size: 0.9rem;
}

/* Botão Vender Mais no Header do Dia */
.btn-vender-mais {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    margin-right: 0.75rem;
}

    .btn-vender-mais:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
        color: #fff;
    }

    .btn-vender-mais i {
        font-size: 0.85rem;
    }

/* Modal Venda Adicional */
.modal-venda-adicional .modal-content {
    border-radius: 0;
}

.modal-venda-adicional .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 1rem 1.5rem;
}

    .modal-venda-adicional .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-venda-adicional .modal-body {
    padding: 0;
}

/* Info Header da Venda Adicional */
.venda-adicional-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.venda-adicional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.venda-adicional-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

    .venda-adicional-info-item i {
        color: #28a745;
    }

    .venda-adicional-info-item strong {
        color: #1a1a2e;
    }

/* Seletor de Data dentro do card do item */
.item-venda-data {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e0e0e0;
}

.item-data-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.35rem;
    display: block;
}

.item-venda-data .form-select {
    font-size: 0.9rem;
    border-color: #28a745;
}

    .item-venda-data .form-select:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
    }

/* Painel PIX e Links Enviados */
.pagamentos-enviados-panel {
    margin: 0;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.pagamentos-enviados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

    .pagamentos-enviados-header:hover {
        background: #e9ecef;
    }

.pagamentos-enviados-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
}

.pagamentos-enviados-body {
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid #dee2e6;
}

.pagamento-enviado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.83rem;
    gap: 0.5rem;
}

    .pagamento-enviado-item:last-child {
        margin-bottom: 0;
    }

.pagamento-enviado-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.pagamento-enviado-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

    .pagamento-enviado-actions .btn {
        padding: 0.2rem 0.45rem;
        font-size: 0.8rem;
        line-height: 1;
    }

.aviso-servicos-existentes {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #856404;
}


    .aviso-servicos-existentes i {
        font-size: 1.25rem;
        color: #f39c12;
    }

/* Lista de Itens para Venda */
.itens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Card de Item para Venda */
.item-venda-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .item-venda-card:hover {
        border-color: #28a745;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .item-venda-card.selecionado {
        border-color: #28a745;
        background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    }

.item-venda-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.item-venda-nome {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
    flex: 1;
}


.item-venda-categoria {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.item-venda-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.item-venda-cidade {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

    .item-venda-cidade i {
        font-size: 0.55rem;
    }

.item-venda-preco {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.75rem;
}

    .item-venda-preco small {
        font-size: 0.75rem;
        color: #6c757d;
        font-weight: 400;
    }

/* Seletor de PAX Global no topo do modal - Layout lado a lado com Filtros */
.pax-filtros-container {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-bottom: 2px solid #28a745;
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: start;
}

@media screen and (max-width: 991px) {
    .pax-filtros-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.pax-selector-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filtros-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pax-selector-global {
    background: transparent;
    border-bottom: none;
    padding: 0;
}

.pax-selector-global-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.pax-selector-global-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.pax-selector-global-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    min-width: 150px;
}

.pax-selector-global-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a1a2e;
    flex: 1;
}

.pax-selector-global-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .pax-selector-global-controls .btn {
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.75rem;
    }

.pax-selector-global-input {
    width: 42px;
    text-align: center;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #28a745;
}

    .pax-selector-global-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
    }

.pax-selector-global-total {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

    .pax-selector-global-total strong {
        font-size: 1rem;
        color: #28a745;
    }

/* Filtros inline dentro do container PAX+Filtros */
.filtros-section-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.filtros-inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 0.75rem;
    align-items: end;
}

@media screen and (max-width: 991px) {
    .filtros-inline-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 575px) {
    .filtros-inline-grid {
        grid-template-columns: 1fr;
    }
}

.filtros-inline-grid .form-group-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .filtros-inline-grid .form-group-compact label {
        font-size: 0.7rem;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

.filtros-inline-grid .form-select,
.filtros-inline-grid .form-control {
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    height: 38px;
}

    .filtros-inline-grid .form-select:focus,
    .filtros-inline-grid .form-control:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15);
    }

.filtros-inline-grid .search-input-wrapper {
    position: relative;
}

    .filtros-inline-grid .search-input-wrapper i {
        position: absolute;
        left: 0.65rem;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
        font-size: 0.8rem;
    }

    .filtros-inline-grid .search-input-wrapper input {
        padding-left: 2rem;
    }

.filtros-inline-grid .btn-limpar {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 6px;
    padding: 0 0.75rem;
    height: 38px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

    .filtros-inline-grid .btn-limpar:hover {
        background: #dc3545;
        color: #fff;
    }

.filtros-resultado-count {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* Preços por tipo no card */
.item-venda-precos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.item-venda-preco-tipo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8f9fa;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.preco-tipo-label {
    color: #6c757d;
}

.preco-tipo-valor {
    font-weight: 700;
    color: #28a745;
}

.item-venda-preco-simples {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.75rem;
}

    .item-venda-preco-simples small {
        font-size: 0.75rem;
        color: #6c757d;
        font-weight: 400;
    }

/* Total do Item */
.item-venda-total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #28a745;
}

.item-venda-total-pax {
    margin-bottom: 0.5rem;
}

.item-venda-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-venda-total-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.item-venda-total-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #28a745;
}

/* Seletor de Horário no Card */
.item-venda-horario {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e0e0e0;
}

.item-horario-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.35rem;
    display: block;
}

.item-venda-horario .form-select,
.item-venda-horario .form-control {
    font-size: 0.9rem;
    border-color: #28a745;
}

    .item-venda-horario .form-select:focus,
    .item-venda-horario .form-control:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
    }

/* Campo Observação no Card */
.item-venda-observacao {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e0e0e0;
}

.item-observacao-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.35rem;
    display: block;
}

.item-venda-observacao .form-control {
    font-size: 0.85rem;
    border-color: #dee2e6;
}

    .item-venda-observacao .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    }

/* Item Bloqueado */
.item-venda-bloqueado {
    margin-top: 0.75rem;
    padding: 0.65rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .item-venda-bloqueado i {
        font-size: 1rem;
        color: #dc3545;
    }

/* Card não vendável - estilo diferenciado */
.item-venda-card.bloqueado {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #adb5bd;
}

    .item-venda-card.bloqueado:hover {
        border-color: #adb5bd;
        box-shadow: none;
    }

/* Resumo do Carrinho */
.carrinho-resumo {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.carrinho-total {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carrinho-total-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.carrinho-total-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #28a745;
}

.carrinho-actions {
    display: flex;
    gap: 0.75rem;
}

/* Empty State Itens */
.itens-empty {
    text-align: center;
    padding: 3rem;
    color: #adb5bd;
}

    .itens-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

@media screen and (max-width: 767px) {
    .itens-grid {
        grid-template-columns: 1fr;
    }

    .btn-vender-mais {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

        .btn-vender-mais span {
            display: none;
        }

    .carrinho-resumo {
        flex-direction: column;
        text-align: center;
    }

    .carrinho-actions {
        width: 100%;
    }

        .carrinho-actions .btn {
            flex: 1;
        }
}

/* Responsive - Mobile */
@media screen and (max-width: 767px) {
    /* Modal Header Cards */
    .modal-info-grid {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-cliente-card,
    .modal-periodo-card,
    .modal-pax-card {
        min-width: 100%;
    }

    .modal-actions-card {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

        .modal-actions-card .btn {
            flex: 1;
            min-width: 0;
            font-size: 0.8rem;
            padding: 0.4rem 0.5rem;
        }

    .modal-cliente-titular {
        font-size: 1rem;
    }

    .pagamento-enviado-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagamento-enviado-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.35rem;
    }

    .modal-periodo-card {
        padding: 0.65rem 0.75rem;
    }

    .modal-pax-card {
        padding: 0.65rem 0.75rem;
        justify-content: center;
    }

    .servico-dia-header {
        flex-wrap: wrap;
    }

    .dia-info {
        flex-wrap: wrap;
        width: 100%;
    }

    .dia-data-box {
        min-width: auto;
        flex: 1;
        padding: 0.5rem 0.75rem;
    }

    .dia-data-icon {
        font-size: 1rem;
    }

    .dia-data-semana {
        font-size: 0.6rem;
    }

    .dia-data-valor {
        font-size: 0.95rem;
    }

    .dia-qtd-servicos {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

        .dia-qtd-servicos strong {
            font-size: 1rem;
        }

    .dia-badge-empty {
        margin-right: 0.75rem;
    }

    .servico-dia-content {
        padding: 0.5rem;
    }

    .servico-item {
        padding: 0.75rem;
    }

    .servico-item-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Controles Mobile - Layout horizontal com botões grandes */
    .servico-controls {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }

        .servico-controls .btn {
            flex: 1;
            min-height: 48px;
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            gap: 0.5rem;
        }

            .servico-controls .btn i {
                font-size: 1.1rem;
            }

            /* Adicionar labels nos botões em mobile */
            .servico-controls .btn .btn-label-mobile {
                display: inline;
            }

    /* Grid Mobile - Stack vertical */
    .servico-item-details {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .servico-local-group {
        grid-column: 1 / -1;
    }

    .servico-form-group .form-control {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .modal-servicos .venda-info-header {
        padding: 0.75rem 1rem;
    }

    /* Footer Grid - Stack em Mobile */
    .servico-footer-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .servico-obs-group textarea {
        min-height: 60px;
    }

    .servico-os-card {
        padding: 0.5rem;
    }

    /* Status inline - Mobile */
    .servico-status-inline {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    /* Labels dos botões visíveis apenas em mobile */
    .btn-label-mobile {
        font-weight: 500;
    }
}

/* Desktop: esconder labels mobile */
@media screen and (min-width: 768px) {
    .btn-label-mobile {
        display: none !important;
    }

    .servico-controls {
        flex-direction: column;
    }

        .servico-controls .btn {
            min-width: 44px;
            min-height: 44px;
            padding: 0.5rem;
        }
}

/* Responsive - Lista Principal */
@media screen and (max-width: 767px) {
    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

        .page-header h4 {
            font-size: 1.1rem;
        }

    .filter-card {
        padding: 1rem;
    }

    .os-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .os-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .venda-item {
        padding: 1rem;
    }

    .venda-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

        .venda-actions .btn {
            flex: 1;
            min-width: 140px;
        }
}

/* ========== PAX/Filtros Colapsável Mobile ========== */

/* Header clicável para mobile - sempre visível apenas em mobile */
.pax-filtros-header-mobile {
    display: none; /* Escondido por padrão (desktop) */
}

@media screen and (max-width: 767px) {
    .pax-filtros-header-mobile {
        display: block;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        padding: 0.75rem 1rem;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .pax-filtros-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pax-filtros-header-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #fff;
        font-size: 0.9rem;
    }

    .pax-filtros-header-info strong {
        font-weight: 700;
    }

    .pax-filtros-separator {
        opacity: 0.5;
        margin: 0 0.25rem;
    }

    .filtros-ativos-badge {
        background: rgba(255, 255, 255, 0.25);
        padding: 0.15rem 0.5rem;
        border-radius: 10px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .pax-filtros-header-toggle {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.85rem;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .pax-filtros-header-mobile:hover .pax-filtros-header-toggle,
    .pax-filtros-header-mobile:active .pax-filtros-header-toggle {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Container com collapse - Mobile */
    .pax-filtros-container {
        padding: 0; /* Remove padding do container no mobile */
        display: block; /* Muda de grid para block no mobile */
    }

    /* Conteúdo colapsável */
    .pax-filtros-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        padding: 0 1rem;
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    }

    .pax-filtros-content.show {
        max-height: 800px; /* Valor alto o suficiente para conter o conteúdo */
        padding: 1rem;
        transition: max-height 0.4s ease-in, padding 0.2s ease-in;
    }

    /* Quando colapsado, mostra apenas o header */
    .pax-filtros-container.collapsed .pax-filtros-content {
        max-height: 0;
        padding: 0 1rem;
    }

    /* Ajustes internos no mobile */
    .pax-filtros-content .pax-selector-section,
    .pax-filtros-content .filtros-section {
        margin-bottom: 0.75rem;
    }

    .pax-filtros-content .pax-selector-section:last-child,
    .pax-filtros-content .filtros-section:last-child {
        margin-bottom: 0;
    }

    /* Ocultar subtítulo no mobile quando colapsado */
    .pax-filtros-container.collapsed .pax-selector-global-title small {
        display: none;
    }
}

/* Desktop: conteúdo sempre visível, sem animação */
@media screen and (min-width: 768px) {
    .pax-filtros-content {
        display: contents; /* Mantém o layout grid original */
    }

    /* O header mobile fica escondido (já definido acima) */
    .pax-filtros-header-mobile {
        display: none !important;
    }
}


/* ========== Modal Pagamento Styles ========== */

/* Modal Header */
.modal-pagamento .modal-content {
    border-radius: 16px;
}

.modal-pagamento .modal-header {
    border-radius: 16px 16px 0 0;
}

/* Info da Venda */
.pagamento-venda-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
    border-radius: 12px;
    padding: 1rem;
}

.pagamento-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .pagamento-info-item i {
        font-size: 1.25rem;
    }

    .pagamento-info-item div {
        display: flex;
        flex-direction: column;
    }

    .pagamento-info-item small {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .pagamento-info-item strong {
        font-size: 0.95rem;
    }

.pagamento-info-item.pagamento-saldo {
    background: #fff8e6;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    border: 1px solid #ffc107;
}

/* Grid de Formas de Pagamento */
.formas-pagamento-section {
    margin-bottom: 1rem;
}

.formas-pagamento-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.formas-pagamento-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Botão de Forma de Pagamento */
.btn-forma-pagto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 1.25rem;
    min-width: 100px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #495057;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

    .btn-forma-pagto i {
        font-size: 1.5rem;
        color: #6c757d;
        transition: all 0.2s ease;
    }

    .btn-forma-pagto span {
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .btn-forma-pagto:hover {
        border-color: #ffc107;
        background: #fffbf0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    }

        .btn-forma-pagto:hover i {
            color: #ffc107;
        }

/* Estado Selecionado */
.btn-forma-pagto.btn-forma-pagto-selected {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border-color: #ffc107;
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.25);
}

    .btn-forma-pagto.btn-forma-pagto-selected i {
        color: #ffc107;
    }

/* Estado Indisponível Offline */
.btn-forma-pagto.btn-forma-pagto-offline {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

    .btn-forma-pagto.btn-forma-pagto-offline::after {
        content: 'Offline';
        position: absolute;
        bottom: 2px;
        font-size: 0.55rem;
        color: #dc3545;
        font-weight: 700;
        text-transform: uppercase;
    }

/* Ícone de Check para selecionado */
.btn-forma-check {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
}

/* Card de Pagamento Adicionado */
.pagamentos-lista .card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .pagamentos-lista .card .card-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px 12px 0 0;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .pagamentos-lista .card .card-body {
        padding: 1rem;
    }

/* Saldo Pendente Info na Lista */
.saldo-pendente-info {
    margin-top: 0.5rem;
}

.saldo-pendente-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

    .saldo-pendente-badge strong {
        color: #d97706;
        font-size: 0.95rem;
    }

/* Resumo de Pagamento */
.pagamento-resumo {
    background: #f8f9fa;
    padding: 0.85rem 1rem;
    border-radius: 10px;
}

/* QR Code Container */
.pix-qrcode-container {
    padding: 1rem;
}

.pix-qrcode-image img {
    border: 4px solid #28a745;
    border-radius: 16px;
    padding: 8px;
    background: #fff;
}

/* Responsive - Modal Pagamento */
@media screen and (max-width: 767px) {
    .formas-pagamento-grid {
        justify-content: center;
    }

    .btn-forma-pagto {
        min-width: 80px;
        padding: 0.65rem 0.85rem;
    }

        .btn-forma-pagto i {
            font-size: 1.25rem;
        }

        .btn-forma-pagto span {
            font-size: 0.7rem;
            max-width: 70px;
        }

    .pagamento-info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
    }
}

/* ========== PWA: Indicador de Conectividade ========== */

.connectivity-indicator {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.connectivity-indicator.offline {
    animation: pulse-offline 2s infinite;
}

.connectivity-indicator.offline i {
    animation: blink-icon 1.5s infinite;
}

@keyframes pulse-offline {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes blink-icon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.sync-indicator {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: default;
}

.sync-indicator i {
    animation: sync-bounce 2s infinite;
}

@keyframes sync-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Badge "Dados em cache" para consulta vendas */
.cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cache-badge i {
    font-size: 0.7rem;
}

@media screen and (max-width: 767px) {
    .connectivity-indicator span,
    .sync-indicator span {
        display: none;
    }
}

