.metodos-pago-page {
    padding: 24px 0;
}

.metodos-pago-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.metodos-pago-card__header {
    margin-bottom: 24px;
}

.metodos-pago-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.metodos-pago-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.metodos-pago-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.metodos-pago-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
}

.metodos-pago-panel__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.metodos-pago-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.metodos-pago-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metodos-pago-field label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.metodos-pago-field input[type="text"] {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.metodos-pago-field input[type="text"]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.metodos-pago-field small {
    font-size: 12px;
    color: #64748b;
}

.metodos-pago-field--checkbox {
    padding-top: 4px;
}

.metodos-pago-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.metodos-pago-actions,
.metodos-pago-row-actions,
.metodos-pago-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metodos-pago-actions {
    margin-top: 8px;
}

.metodos-pago-toolbar {
    justify-content: space-between;
    margin-bottom: 14px;
}

.metodos-pago-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.metodos-pago-btn:hover {
    transform: translateY(-1px);
}

.metodos-pago-btn--primary {
    background: #4f46e5;
    color: #fff;
}

.metodos-pago-btn--ghost {
    background: #e2e8f0;
    color: #0f172a;
}

.metodos-pago-btn--danger {
    background: #dc2626;
    color: #fff;
}

.metodos-pago-btn--small {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 10px;
}

.metodos-pago-alert {
    margin-top: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
}

.metodos-pago-alert--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.metodos-pago-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.metodos-pago-table-wrap {
    overflow-x: auto;
}

.metodos-pago-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.metodos-pago-table thead th {
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    padding: 12px 14px;
}

.metodos-pago-table tbody td {
    border-top: 1px solid #e2e8f0;
    padding: 14px;
    font-size: 14px;
    color: #0f172a;
    vertical-align: middle;
}

.metodos-pago-empty {
    text-align: center;
    color: #64748b;
    padding: 24px !important;
}

.metodos-pago-code {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
}

.metodos-pago-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.metodos-pago-badge--active {
    background: #dcfce7;
    color: #166534;
}

.metodos-pago-badge--inactive {
    background: #e5e7eb;
    color: #374151;
}

.metodos-pago-protected {
    display: inline-flex;
    align-items: center;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.text-right {
    text-align: right;
}

@media (max-width: 991px) {
    .metodos-pago-grid {
        grid-template-columns: 1fr;
    }
}




.metodos-pago-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px 16px;
    margin-top: 8px;
}

.metodos-pago-check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}


body.metodos-pago-modal-open {
    overflow: hidden;
}

.metodos-pago-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    animation: metodosPagoFadeIn 0.18s ease;
}

.metodos-pago-modal {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    padding: 24px;
    text-align: center;
    animation: metodosPagoPopIn 0.2s ease;
}

.metodos-pago-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    background: #e0e7ff;
    color: #4338ca;
}

.metodos-pago-modal__icon.is-danger {
    background: #fee2e2;
    color: #dc2626;
}

.metodos-pago-modal__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.metodos-pago-modal__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.metodos-pago-modal__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.metodos-pago-modal__actions .metodos-pago-btn {
    min-width: 130px;
}

@keyframes metodosPagoFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes metodosPagoPopIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Tanda 7: orden compartido de medios de pago en POS. */
.metodos-pago-order { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.metodos-pago-drag-handle { cursor:grab; color:#64748b; font-size:23px; user-select:none; }
.metodos-pago-order-buttons { display:flex; align-items:center; gap:3px; }
.metodos-pago-order-buttons button { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; border-radius:6px; cursor:pointer; padding:1px 6px; font-size:13px; }
.metodos-pago-order-buttons button:disabled { opacity:.3; cursor:default; }
.metodos-pago-table tbody tr.is-dragging { opacity:.45; background:#d1fae5; }
.metodos-pago-table tbody tr[draggable="true"] { cursor:grab; }
.metodos-pago-table tbody tr[draggable="true"]:active { cursor:grabbing; }
