:root {
    --bg-purple: #5c16c5;
    --bg-purple-dark: #4a0ca7;
    --bg-purple-light: #7a43d6;
    --purple-primary: #5c16c5;
    --purple-btn: #7a43d6;
    --purple-btn-hover: #6a32c4;
    --green-success: #2e7d32;
    --green-btn: #2e8b57;
    --green-btn-hover: #246e45;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    --border-color: #e5e7eb;
    --accent: #f0b429;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #5b15be 0%, #4a0ca7 100%);
    background-color: var(--bg-purple);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    user-select: none;
}

/* Header Navbar SIGELite */
.sigelite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sigelite-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.sigelite-brand .btn-back {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s;
    cursor: pointer;
}

.sigelite-brand .btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sigelite-brand .help-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    margin-left: 4px;
}

.header-right-tools {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.9rem;
}

.sefaz-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.dot-green {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.status-dot.dot-yellow {
    background-color: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

.status-dot.dot-red {
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-icon-btn:hover {
    opacity: 1;
}

/* Stepper Superior (Nova venda -> Forma de pagamento -> Finalizar venda) */
.stepper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px 8px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.stepper-progress-line {
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 1;
    transform: translateY(-50%);
}

.stepper-step {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0 15px;
    cursor: pointer;
}

.stepper-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.stepper-step.active .stepper-circle {
    background: var(--bg-purple);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--bg-purple), 0 0 12px rgba(255, 255, 255, 0.6);
    width: 26px;
    height: 26px;
}

.stepper-step.completed .stepper-circle {
    background: #ffffff;
}

.stepper-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.stepper-step:not(.active) .stepper-label {
    opacity: 0.85;
}

/* Layout Principal Container */
.pdv-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 24px 20px 24px;
    gap: 14px;
}

/* ========================================================= */
/* ETAPA 1: NOVA VENDA (Main View)                          */
/* ========================================================= */

/* Barra de Entrada / Busca de Produto */
.busca-bar-sigelite {
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 50;
}

.input-busca-sigelite {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 22px;
    font-size: 1.15rem;
    color: #1f2937;
    font-weight: 500;
    background: transparent;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.input-busca-sigelite::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.btn-adicionar-sigelite {
    background: var(--purple-btn);
    color: #ffffff;
    border: none;
    padding: 0 28px;
    height: 100%;
    min-height: 58px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-adicionar-sigelite:hover {
    background: var(--purple-btn-hover);
}

.btn-adicionar-sigelite:active {
    transform: scale(0.98);
}

/* Autocomplete Dropdown */
.autocomplete-sigelite {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-height: 360px;
    overflow-y: auto;
    z-index: 999999;
    border: 2px solid #7a43d6;
}

.autocomplete-row {
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s ease;
    color: #1f2937;
}

.autocomplete-row:hover, .autocomplete-row.selected {
    background: #f3e8ff;
    border-left: 4px solid #5c16c5;
}

.autocomplete-row .item-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111827;
}

.autocomplete-row .item-sub {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 1px;
}

.autocomplete-row .item-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--purple-primary);
    font-family: var(--font-mono);
}

/* Card Tabela de Produtos */
.tabela-card-sigelite {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex: 1;
    min-height: 280px;
    max-height: 48vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tabela-sigelite {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tabela-sigelite thead th {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
}

.tabela-sigelite tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-size: 0.95rem;
    vertical-align: middle;
}

.tabela-sigelite tbody tr:hover {
    background-color: #faf5ff;
}

/* Controles de Quantidade (+ / - / input) */
.qtd-control-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-qtd-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.btn-qtd-minus {
    color: #ef4444;
    border-color: #ef4444;
}

.btn-qtd-minus:hover {
    background: #fef2f2;
}

.btn-qtd-plus {
    color: #16a34a;
    border-color: #16a34a;
}

.btn-qtd-plus:hover {
    background: #f0fdf4;
}

.input-qtd-table {
    width: 48px;
    height: 32px;
    text-align: center;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    outline: none;
}

.input-qtd-table:focus {
    border-color: var(--purple-primary);
}

/* Valor Unitário & Ícone Info */
.preco-unit-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.input-preco-table {
    width: 80px;
    height: 32px;
    text-align: right;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    background: #f9fafb;
    outline: none;
}

.btn-info-preco {
    background: transparent;
    border: none;
    color: #6366f1;
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s;
}

.btn-info-preco:hover {
    color: #4f46e5;
}

.valor-total-col {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2e7d32;
    font-family: var(--font-mono);
}

.btn-delete-item {
    background: transparent;
    border: none;
    color: var(--purple-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
}

.btn-delete-item:hover {
    color: #dc2626;
    transform: scale(1.15);
}

.tabela-empty-msg {
    padding: 40px;
    text-align: center;
    color: #9ca3af;
    font-size: 1.05rem;
    font-weight: 500;
}

/* 4 Cards de Estatísticas Inferiores */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card-sigelite {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 85px;
}

.stat-card-sigelite.clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card-sigelite.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.stat-card-sigelite .stat-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.stat-card-sigelite .stat-val.val-purple {
    color: var(--purple-primary);
    font-family: var(--font-mono);
}

.stat-card-sigelite .stat-lbl {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 500;
}

.stat-sefaz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #16a34a;
}

/* Barra de Ações Inferiores (Operações de Caixa / Finalizar Venda) */
.actions-bar-sigelite {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.btn-operacoes-caixa {
    background: var(--purple-btn);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.1s;
}

.btn-operacoes-caixa:hover {
    background: var(--purple-btn-hover);
}

.btn-operacoes-caixa:active {
    transform: scale(0.98);
}

.btn-finalizar-venda-sigelite {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.35);
    transition: background 0.2s, transform 0.1s;
}

.btn-finalizar-venda-sigelite:hover {
    background: #27682a;
}

.btn-finalizar-venda-sigelite:active {
    transform: scale(0.98);
}

.btn-espera-sigelite {
    background: #d97706;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    transition: background 0.2s, transform 0.1s;
}

.btn-espera-sigelite:hover {
    background: #b45309;
}

.btn-espera-sigelite:active {
    transform: scale(0.98);
}

.btn-badge-espera {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-badge-espera:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-badge-espera.tem-espera {
    background: #d97706;
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.6);
    animation: pulse-espera 2s infinite;
}

@keyframes pulse-espera {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* ========================================================= */
/* ETAPA 2: FORMA DE PAGAMENTO (Image 3 & 4)                 */
/* ========================================================= */
.step-pagamento-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.cliente-bar-sigelite {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #1f2937;
}

.cliente-bar-sigelite input {
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    flex: 1;
    margin-left: 10px;
}

/* Grid de Formas de Pagamento (Image 3) */
.formas-pagamento-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 6px;
}

.pgto-tile {
    border-radius: 8px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    color: #ffffff;
    min-height: 105px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    user-select: none;
}

.pgto-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.08);
}

.pgto-tile:active {
    transform: scale(0.96);
}

.pgto-tile .tile-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgto-tile .tile-label {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.pgto-tile .tile-key {
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 4px;
    opacity: 0.95;
}

/* Cores específicas exatas dos tiles de pagamento (Image 3) */
.tile-dinheiro { background-color: #70b92c; }
.tile-cheque { background-color: #ba5598; }
.tile-credito { background-color: #e95a7b; }
.tile-debito { background-color: #ff7043; }
.tile-creditoloja { background-color: #d4a017; }
.tile-valealimentacao { background-color: #7e6ba8; }
.tile-valerefeicao { background-color: #fa7252; }
.tile-valepresente { background-color: #e59400; }
.tile-valecombustivel { background-color: #70b92c; }
.tile-outros { background-color: #6c5b96; }
.tile-pix { background-color: #00bfa5; }
.tile-cashback { background-color: #7b61ff; }
.tile-mercadopago { background-color: #009ee3; }

/* Lista de Pagamentos Lançados */
.pagamentos-lancados-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    margin-top: 4px;
}

.item-pgto-lancado {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-pgto-lancado .pgto-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
}

.item-pgto-lancado .pgto-acoes {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-pgto-lancado .btn-del-pgto {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.15rem;
    cursor: pointer;
}

/* Rodapé de Ações do Pagamento (Image 3) */
.pgto-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.btn-voltar-pgto {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-voltar-pgto:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-prosseguir-pgto {
    background: #7a43d6;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: background 0.2s;
}

.btn-prosseguir-pgto:hover {
    background: #6a32c4;
}

/* ========================================================= */
/* MODAL DE BANDEIRAS DE CARTÃO (Image 4)                   */
/* ========================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-card-brand {
    background: #ffffff;
    border-radius: 8px;
    width: 680px;
    max-width: 95vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header-pink {
    background: #e95a7b;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-stepper-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px 8px 20px;
    gap: 20px;
    position: relative;
}

.modal-stepper-inner::before {
    content: '';
    position: absolute;
    top: 48%;
    left: 30%;
    right: 30%;
    height: 1px;
    background: #d1d5db;
    z-index: 1;
}

.inner-step {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #4b5563;
}

.inner-step.active {
    color: #111827;
}

.inner-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6b7280;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inner-step.active .inner-step-badge {
    background: #5c16c5;
}

.grid-bandeiras-cartao {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 16px 20px;
    max-height: 380px;
    overflow-y: auto;
}

.card-brand-tile {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #ffffff;
    min-height: 65px;
    text-align: center;
}

.card-brand-tile:hover {
    border-color: #5c16c5;
    background: #faf5ff;
    transform: translateY(-2px);
}

.card-brand-tile.selected {
    border: 2px solid #5c16c5;
    background: #f3e8ff;
}

.card-brand-tile .brand-logo {
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.5px;
    color: #1f2937;
    margin-bottom: 3px;
}

.card-brand-tile .brand-key {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 600;
}

.modal-footer-brand {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
}

.btn-modal-cancel {
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px 16px;
}

.btn-modal-cancel:hover {
    color: #111827;
}

.btn-modal-proximo {
    background: #5c16c5;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal-proximo:hover {
    background: #4a0ca7;
}

/* ========================================================= */
/* MODAIS GENÉRICOS (Desconto, Preço, Quantidade, Caixa)    */
/* ========================================================= */
.modal-standard-sigelite {
    background: #ffffff;
    border-radius: 8px;
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.modal-standard-header {
    background: #5c16c5;
    color: #ffffff;
    padding: 14px 20px;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-standard-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #1f2937;
}

.modal-standard-body label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}

.modal-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    outline: none;
}

.modal-input:focus {
    border-color: #5c16c5;
    box-shadow: 0 0 0 3px rgba(92, 22, 197, 0.15);
}

.modal-standard-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
}

/* Modal Operações de Caixa (F12) */
.grid-operacoes-caixa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 0;
}

.btn-op-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-op-item:hover {
    background: #f3e8ff;
    border-color: #5c16c5;
    color: #5c16c5;
    transform: translateY(-2px);
}

.btn-op-item .op-icon {
    font-size: 1.8rem;
}

/* ========================================================= */
/* RODAPÉ INFERIOR DE ATALHOS (Image 1 & 2)                  */
/* ========================================================= */
.pdv-footer-shortcuts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 24px 14px 24px;
    font-size: 0.85rem;
    color: #ffffff;
    text-align: center;
}

.shortcuts-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    line-height: 1.5;
}

.shortcut-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.95;
}

.shortcut-item strong {
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* Floating Chat Button (Image 1, 2, 3, 4) */
.floating-chat-btn {
    position: fixed;
    bottom: 16px;
    right: 20px;
    background: #00e5a3;
    color: #054c34;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}

.btn-periodo-rapido {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-periodo-rapido:hover, .btn-periodo-rapido.active {
    background: #5c16c5;
    color: #ffffff;
    border-color: #5c16c5;
}

/* Impressão Térmica 80mm */
@media print {
    body * { visibility: hidden; }
    #cupom-print-area, #cupom-print-area * { visibility: visible; }
    #cupom-print-area { position: absolute; left: 0; top: 0; width: 78mm; }
}

/* Responsividade Básica */
@media (max-width: 1024px) {
    .formas-pagamento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dropdown Finalizar Venda (F9 / F8) */
.btn-dropdown-trigger:hover {
    background: #047857 !important;
}

.dropdown-item-finalizar:hover {
    background: #f3f4f6;
}

.dropdown-item-finalizar.item-f9:hover {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.dropdown-item-finalizar.item-f8:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
