/* Layout for Venta Normal */
.venta-normal-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: calc(100vh - 64px - 4rem - 3rem);
}

.vn-top-panel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
}

.vn-bottom-panel {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

.vn-invoice-area {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vn-actions-area {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-action-huge {
    padding: 1.25rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease;
}
.btn-action-huge:active { transform: scale(0.98); }
.btn-action-add { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.btn-action-cancel { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.btn-action-edit { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.btn-action-remove { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }


/* Layout for TPV Táctil */
.tactil-layout {
    display: flex;
    gap: 1.5rem;
    height: calc(100vh - 64px - 4rem - 3rem);
}

.tactil-left {
    flex: 6;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.tactil-right {
    flex: 4;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tactil-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: max-content;
    gap: 0.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.btn-tactil {
    background: #f1f5f9;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tactil:hover {
    border-color: var(--primary);
    background: #eff6ff;
}
.btn-tactil:active {
    background: #dbeafe;
}

.btn-tactil.familia {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}
.btn-tactil.familia:hover {
    background: var(--primary-dark);
}

.tactil-header {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.btn-icon-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}
.btn-icon-top i {
    font-size: 1.25rem;
    color: var(--text-main);
}
.btn-icon-top:hover {
    background: #f1f5f9;
}

.ticket-area {
    flex: 1;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
}

.cobro-area {
    padding: 1.5rem;
    background: #f8fafc;
}

.cobro-total {
    font-size: 3rem;
    font-weight: 800;
    text-align: right;
    margin-bottom: 1rem;
}

.cobro-buttons {
    display: flex;
    gap: 1rem;
}
.cobro-buttons button {
    flex: 1;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
}
.btn-unico { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.btn-separado { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }
