/* Recharge Control. Load after the shared admin-products.css theme. */

.rc-summary-grid .summary-card small {
    margin-top: 7px;
    color: #7c8a9e;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.rc-workspace-toolbar,
.rc-refresh-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.rc-workspace-toolbar {
    margin-bottom: 18px;
}

.rc-refresh-actions > span {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 650;
}

.rc-currency-switch {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    background: #e8eef7;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
}

.rc-currency-button {
    display: inline-flex;
    min-width: 105px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: #52637a;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.rc-currency-button:hover {
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.7);
}

.rc-currency-button.active,
.rc-currency-button[aria-pressed="true"] {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
}

.rc-compact-button {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
    text-decoration: none;
}

.rc-panel {
    min-width: 0;
    margin-bottom: 22px;
    overflow: hidden;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-lg);
    box-shadow: var(--admin-shadow);
}

.rc-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 25px 20px;
}

.rc-panel-heading > div {
    min-width: 0;
}

.rc-panel-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.3;
}

.rc-panel-heading > div > p:last-child {
    max-width: 700px;
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rc-audit-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.rc-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    padding: 0 25px 23px;
}

.rc-method-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 19px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border: 1px solid #dfe7f3;
    border-radius: 16px;
}

.rc-method-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.rc-method-icon {
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #1d4ed8;
    background: #e8f0ff;
    border-radius: 13px;
    font-size: 17px;
}

.rc-method-icon.qr {
    color: #7c3aed;
    background: #ede9fe;
}

.rc-method-icon.binance {
    color: #a16207;
    background: #fef3c7;
}

.rc-method-icon.wallet {
    color: #047857;
    background: #d1fae5;
}

.rc-method-card h3 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.rc-method-subtitle {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rc-method-details {
    display: grid;
    gap: 12px;
    margin: 17px 0 19px;
    padding-top: 15px;
    border-top: 1px solid #e5ebf5;
}

.rc-method-details > div {
    min-width: 0;
}

.rc-method-details dt {
    margin-bottom: 4px;
    color: #7c8a9e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rc-method-details dd {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rc-method-settings-button {
    width: 100%;
    margin-top: auto;
    font-size: 12px;
}

.rc-status-badge,
.rc-route-badge {
    display: inline-flex;
    width: fit-content;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.rc-status-badge.on {
    color: #047857;
    background: #d1fae5;
}

.rc-status-badge.off {
    color: #52637a;
    background: #e9eef5;
}

.rc-status-badge i {
    font-size: 6px;
}

.rc-route-badge {
    color: #1d4ed8;
    background: #e8f0ff;
    white-space: normal;
}

.rc-panel-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 14px 25px;
    color: #52637a;
    background: #f8fafc;
    border-top: 1px solid #e7edf5;
    font-size: 12px;
    line-height: 1.6;
}

.rc-panel-note > i {
    margin-top: 4px;
    color: #2563eb;
}

.rc-panel-note p {
    margin: 0;
}

.rc-filter-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 13px;
    padding: 17px 25px;
    background: #f8fafc;
    border-top: 1px solid #e7edf5;
    border-bottom: 1px solid #e7edf5;
}

.rc-filter-field {
    display: flex;
    min-width: 160px;
    flex: 1 1 180px;
    flex-direction: column;
    gap: 6px;
}

.rc-filter-field label,
.rc-form-field label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.rc-filter-field input,
.rc-filter-field select,
.rc-form-field input:not([type="checkbox"]),
.rc-form-field select,
.rc-form-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 11px 12px;
    color: #162033;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.rc-filter-field select,
.rc-form-field select {
    padding-right: 28px;
    cursor: pointer;
}

.rc-filter-field input::placeholder,
.rc-form-field input::placeholder,
.rc-form-field textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.rc-form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.rc-filter-field input:focus,
.rc-filter-field select:focus,
.rc-form-field input:focus,
.rc-form-field select:focus,
.rc-form-field textarea:focus {
    border-color: #76a0f8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.rc-filter-field input:disabled,
.rc-filter-field select:disabled,
.rc-form-field input:disabled,
.rc-form-field select:disabled,
.rc-form-field textarea:disabled {
    color: #64748b;
    background: #f1f5f9;
    cursor: not-allowed;
}

.rc-filter-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.rc-filter-actions button {
    min-height: 44px;
}

.rc-audit-filter {
    max-width: 215px;
    flex: 0 0 215px;
}

.rc-table-status {
    margin: 15px 25px;
    padding: 11px 13px;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.rc-table-status.error,
.rc-form-message {
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.rc-table-status button {
    margin-left: 9px;
}

.rc-table-wrap {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.rc-table-wrap[aria-busy="true"] {
    opacity: 0.65;
}

.rc-account-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: left;
}

.rc-account-table th {
    padding: 15px 17px;
    color: #64748b;
    background: #fbfcfe;
    border-bottom: 1px solid #e7edf5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rc-account-table td {
    padding: 19px 17px;
    border-bottom: 1px solid #e7edf5;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.5;
}

.rc-account-table th:first-child,
.rc-account-table td:first-child {
    padding-left: 25px;
}

.rc-account-table th:last-child,
.rc-account-table td:last-child {
    padding-right: 25px;
}

.rc-account-table tbody tr:nth-child(even) {
    background: #f8faff;
}

.rc-account-table tbody tr:hover {
    background: #f1f6ff;
}

.rc-account-table tbody tr:last-child td {
    border-bottom: 0;
}

.rc-account-heading {
    display: flex;
    min-width: 170px;
    align-items: flex-start;
    gap: 10px;
}

.rc-account-avatar {
    display: grid;
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    place-items: center;
    color: #1d4ed8;
    background: #e8f0ff;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    font-size: 14px;
}

.rc-account-copy,
.rc-receiving-details {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.rc-account-label {
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rc-account-meta,
.rc-detail-muted {
    color: #7c8a9e;
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rc-receiving-details {
    max-width: 370px;
}

.rc-detail-value,
.rc-detail-line {
    color: #334155;
    overflow-wrap: anywhere;
}

.rc-detail-value {
    font-weight: 700;
}

.rc-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.rc-order-badge {
    display: inline-flex;
    min-width: 35px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    color: #52637a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.rc-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rc-table-button {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.rc-table-button:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.rc-empty-state {
    display: flex;
    min-height: 185px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px 22px;
    text-align: center;
}

.rc-empty-state > i {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 28px;
}

.rc-empty-state h3 {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

.rc-empty-state p {
    max-width: 420px;
    margin: 7px 0 0;
    color: #7c8a9e;
    font-size: 12px;
    line-height: 1.6;
}

.rc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 25px;
    color: #7c8a9e;
    background: #fbfcfe;
    border-top: 1px solid #e7edf5;
    font-size: 11px;
    font-weight: 650;
}

.rc-audit-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0 25px 23px;
    list-style: none;
}

.rc-audit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e8f2;
    border-radius: 13px;
}

.rc-audit-icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 11px;
}

.rc-audit-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 5px;
}

.rc-audit-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 14px;
}

.rc-audit-title-row strong {
    color: #172033;
    font-size: 13px;
    line-height: 1.5;
}

.rc-audit-title-row time,
.rc-audit-meta {
    color: #7c8a9e;
    font-size: 10px;
    line-height: 1.6;
}

.rc-audit-change,
.rc-audit-reason {
    margin: 0;
    color: #52637a;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rc-audit-change {
    font-weight: 700;
}

.rc-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.rc-modal-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(860px, 100%);
    min-width: 0;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(2, 6, 23, 0.28);
}

.rc-settings-dialog {
    width: min(670px, 100%);
}

.rc-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 25px;
    border-bottom: 1px solid var(--admin-border);
}

.rc-modal-heading > div {
    min-width: 0;
}

.rc-modal-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 23px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rc-modal-heading > div > p:last-child:not(.section-kicker) {
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rc-close-button {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #52637a;
    background: #f1f5f9;
    border-radius: 11px;
    cursor: pointer;
    font-size: 17px;
}

.rc-close-button:hover {
    color: #991b1b;
    background: #fee2e2;
}

.rc-modal-body {
    min-height: 0;
    padding: 23px 25px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.rc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.rc-field-full {
    grid-column: 1 / -1;
}

.rc-form-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.rc-form-field label > span {
    color: #dc2626;
}

.rc-form-field small {
    color: #7c8a9e;
    font-size: 11px;
    line-height: 1.5;
}

.rc-form-field input[type="file"] {
    padding: 7px;
    font-size: 12px;
}

.rc-form-field input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 8px 10px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.rc-form-message {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#accountLoadMessage {
    margin: 0 0 16px;
}

.rc-form-message.success {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.rc-form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 19px;
}

.rc-form-actions button {
    min-height: 44px;
    font-size: 13px;
}

.rc-qr-section {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--admin-border);
}

.rc-subsection-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 17px;
}

.rc-subsection-heading p {
    margin: 6px 0 16px;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.6;
}

.rc-notice {
    margin: 0;
    padding: 12px 14px;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
}

.rc-saved-qr {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 19px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 13px;
}

.rc-saved-qr > img,
.rc-qr-preview > img {
    display: block;
    width: 134px;
    height: 134px;
    flex: 0 0 auto;
    padding: 8px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
}

.rc-saved-qr > div {
    min-width: 0;
}

.rc-saved-qr strong {
    color: #334155;
    font-size: 13px;
}

.rc-saved-qr p {
    margin: 6px 0 11px;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.6;
}

.rc-qr-form {
    display: grid;
    gap: 15px;
}

.rc-qr-form .rc-form-actions,
.rc-qr-form .rc-form-message {
    margin-top: 0;
}

.rc-qr-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 12px;
}

.rc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #334155;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
}

.rc-checkbox-label input {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #2563eb;
}

.rc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 25px;
    background: #f8fafc;
    border-top: 1px solid var(--admin-border);
}

.rc-modal-footer > span {
    color: #7c8a9e;
    font-size: 11px;
    line-height: 1.6;
}

.rc-modal-footer > span > i {
    margin-right: 4px;
    color: #52637a;
}

.rc-modal-footer > button {
    flex: 0 0 auto;
    min-height: 42px;
    font-size: 12px;
}

.admin-toast {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 24px;
    display: flex;
    max-width: min(420px, calc(100vw - 32px));
    align-items: flex-start;
    gap: 10px;
    padding: 14px 17px;
    color: #ecfdf5;
    background: #065f46;
    border: 1px solid #047857;
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(6, 78, 59, 0.25);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.admin-toast > i {
    margin-top: 3px;
}

.admin-toast.error {
    color: #fff1f2;
    background: #991b1b;
    border-color: #b91c1c;
}

.admin-toast.info {
    color: #eff6ff;
    background: #1e40af;
    border-color: #2563eb;
}

.rc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-layout a:focus-visible,
.admin-layout button:focus-visible,
.rc-modal a:focus-visible,
.rc-modal button:focus-visible,
.rc-checkbox-label input:focus-visible {
    outline: 3px solid #76a0f8;
    outline-offset: 3px;
}

button:disabled,
.rc-table-button:disabled,
.rc-currency-button:disabled,
.rc-close-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

@media (max-width: 1180px) {
    .rc-panel-heading {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .rc-summary-grid .summary-card {
        gap: 10px;
    }

    .rc-workspace-toolbar {
        align-items: stretch;
    }

    .rc-refresh-actions {
        width: 100%;
    }

    .rc-panel-heading {
        gap: 14px;
        padding: 19px 18px;
    }

    .rc-panel-heading h2 {
        font-size: 20px;
    }

    .rc-panel-heading > .primary-button {
        width: 100%;
        min-height: 44px;
    }

    .rc-method-grid {
        padding: 0 18px 19px;
    }

    .rc-panel-note {
        padding: 13px 18px;
    }

    .rc-filter-form {
        gap: 11px;
        padding: 15px 18px;
    }

    .rc-filter-field {
        min-width: 0;
        flex-basis: calc(50% - 6px);
    }

    .rc-filter-actions {
        width: 100%;
    }

    .rc-filter-actions button {
        flex: 1;
    }

    .rc-audit-filter {
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .rc-table-status {
        margin: 14px 18px;
    }

    .rc-table-wrap {
        padding: 15px 18px;
        overflow: visible;
    }

    .rc-account-table,
    .rc-account-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .rc-account-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .rc-account-table tbody {
        display: grid;
        gap: 13px;
    }

    .rc-account-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
        padding: 15px;
        background: #ffffff;
        border: 1px solid var(--admin-border);
        border-radius: 13px;
    }

    .rc-account-table tbody tr:hover,
    .rc-account-table tbody tr:nth-child(even) {
        background: #ffffff;
    }

    .rc-account-table td,
    .rc-account-table td:first-child,
    .rc-account-table td:last-child {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .rc-account-table td::before {
        display: block;
        margin-bottom: 5px;
        color: #7c8a9e;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 800;
    }

    .rc-account-table td:first-child,
    .rc-account-table td:nth-child(2),
    .rc-account-table td:last-child {
        grid-column: 1 / -1;
    }

    .rc-account-table td:first-child {
        padding-bottom: 12px;
        border-bottom: 1px solid #e7edf5;
    }

    .rc-account-table td:first-child::before,
    .rc-account-table td:last-child::before {
        display: none;
    }

    .rc-receiving-details {
        max-width: none;
    }

    .rc-table-button {
        min-height: 42px;
    }

    .rc-pagination {
        padding: 15px 18px;
    }

    .rc-audit-list {
        padding: 0 18px 19px;
    }

    .rc-audit-item {
        gap: 10px;
        padding: 13px;
    }

    .rc-audit-title-row {
        flex-direction: column;
    }

    .rc-modal {
        padding: 10px;
    }

    .rc-modal-dialog {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 16px;
    }

    .rc-modal-heading {
        gap: 10px;
        padding: 18px;
    }

    .rc-modal-heading h2 {
        font-size: 21px;
    }

    .rc-modal-body {
        padding: 19px 18px;
    }

    .rc-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rc-modal-footer {
        padding: 14px 18px;
    }

    .rc-form-field input:not([type="file"]):not([type="checkbox"]),
    .rc-form-field select,
    .rc-form-field textarea {
        font-size: 16px;
    }

    .rc-form-actions button {
        width: 100%;
    }

    .rc-close-button {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .admin-toast {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .rc-summary-grid .summary-card {
        flex-direction: column;
        gap: 9px;
        padding: 15px 13px;
    }

    .rc-method-grid {
        grid-template-columns: 1fr;
    }

    .rc-method-card {
        padding: 17px;
    }

    .rc-saved-qr {
        align-items: flex-start;
        flex-direction: column;
    }

    .rc-modal-footer {
        align-items: flex-start;
    }

    .rc-modal-footer > span {
        max-width: 200px;
    }

    .rc-account-heading {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rc-currency-button,
    .rc-filter-field input,
    .rc-filter-field select,
    .rc-form-field input,
    .rc-form-field select,
    .rc-form-field textarea,
    .primary-button,
    .secondary-button,
    .icon-text-button,
    .admin-nav-link {
        transition: none;
    }

    .fa-spin {
        animation: none;
    }
}
