/* === CAJA OPERACIONAL & CHECKOUT SYSTEM (PREMIUM) === */

/* ---- CAJA TAB HEADER LAYOUT ---- */
.caja-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.caja-stats-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.caja-search-row {
    margin-bottom: 20px;
}

.caja-search-input {
    max-width: 380px;
}

/* ---- MODAL CLOSE BUTTON (X) ---- */
.citycell-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.citycell-close-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Stats Badges in Repairs (GLOW PILLS) */
.status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.badge-status-recibido {
    background: #fef9c3 !important;
    color: #854d0e !important;
    border: 1px solid #fde047 !important;
}

.badge-status-en_reparacion {
    background: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.badge-status-listo {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.badge-status-entregado {
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

.caja-stats-mini {
    background: #f1f5f9;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.btn-quick-sale {
    background: linear-gradient(135deg, var(--primary), #1d4ed8) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-quick-sale:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.5) !important;
}

/* Universal Checkout (SWAL UI) */
.qs-container {
    padding: 15px;
}

.qs-total-display {
    text-align: center;
    padding: 40px 25px;
    background: #0f172a;
    border-radius: 24px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.qs-total-display::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

#qs-display-total {
    font-size: 3rem;
    font-weight: 950;
    color: #38bdf8;
    letter-spacing: -1px;
    margin-top: 8px;
}

.qs-payment-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 44px;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    background: #f8fafc;
    padding: 15px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s;
}

.qs-payment-row:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

.qs-amount-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    text-align: right;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.qs-methods-select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: white;
    font-weight: 800;
    color: var(--text-dark);
}

.btn-add-payment {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 850;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-payment:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}