.rg-brand-image {
    display: block;
    height: 3.5rem;
    object-fit: contain;
    width: auto;
}

.auth-cover-brand .rg-brand-image {
    height: 4.25rem;
}

.rg-login-panel {
    max-width: 560px;
    padding: 4rem;
}

.rg-auth-cover-bg {
    background: #f5f8f2;
    overflow: hidden;
}

.rg-auth-slider {
    height: 100%;
    position: relative;
    width: 100%;
}

.rg-auth-slider::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.46));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.rg-auth-slide {
    filter: brightness(1.06) contrast(0.9) saturate(0.9);
    height: 100%;
    inset: 0;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    transform: scale(1.015);
    transition: opacity 1.4s ease, transform 12s ease;
    width: 100%;
}

.rg-auth-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.timeline {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    position: relative;
}

.timeline-item {
    margin-left: 1.2rem;
    position: relative;
}

.timeline-point {
    border: 3px solid currentColor;
    border-radius: 50%;
    height: 0.9rem;
    left: -1.2rem;
    position: absolute;
    top: 0.25rem;
    width: 0.9rem;
}

.timeline-event {
    border-left: 1px solid var(--bs-border-color);
    padding-left: 1.5rem;
}

.timeline-item:last-child .timeline-event {
    border-left-color: transparent;
}

.dropdown-shortcuts-item {
    align-items: center;
    color: var(--bs-body-color);
    display: flex;
    flex-direction: column;
    min-width: 11rem;
    padding: 1.25rem;
    text-align: center;
}

.dropdown-shortcuts-icon {
    align-items: center;
    background: var(--bs-gray-100);
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.rg-icon-frame {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.rg-icon-frame > .icon-base,
.rg-icon-frame > .ti {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.rg-icon-frame > .icon-base::before,
.rg-icon-frame > .ti::before {
    display: block;
    line-height: 1;
    margin: 0;
}

.rg-icon-frame-sm {
    height: 2rem;
    min-height: 2rem;
    min-width: 2rem;
    width: 2rem;
}

.rg-icon-frame-md {
    height: 2.5rem;
    min-height: 2.5rem;
    min-width: 2.5rem;
    width: 2.5rem;
}

.rg-summary-cards .avatar,
.card-widget-separator .avatar {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.rg-summary-cards .avatar-initial,
.card-widget-separator .avatar-initial {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    line-height: 1;
}

.rg-summary-cards .avatar-initial .icon-base,
.card-widget-separator .avatar-initial .icon-base {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* CRM kartlarında başlık ve içerik tek yüzeydir; araya sert ayırıcı çizgi konmaz. */
.content-wrapper .card > .card-header {
    border-bottom: 0 !important;
}

.content-wrapper .card > .card-header + .card-body {
    border-top: 0 !important;
}

.rg-dashboard-stat-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rg-dashboard-stat-card:hover {
    box-shadow: 0 0.35rem 1rem rgba(47, 43, 61, 0.12);
    transform: translateY(-2px);
}

.avatar-group .avatar {
    margin-left: -0.5rem;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.card-datatable > .dt-container > .dt-layout-row:not(.dt-layout-table) {
    align-items: center;
    margin-inline: 1rem !important;
    row-gap: 1rem;
}

.card-datatable > .dt-container > .dt-layout-row:first-child {
    padding-block: 1.5rem;
}

.card-datatable > .dt-container > .dt-layout-row:last-child {
    padding-block: 1rem;
}

.card-datatable > .dt-container > .dt-layout-table {
    margin: 0 !important;
}

.card-datatable .dt-layout-full,
.card-datatable .table-responsive {
    overflow-x: auto;
    width: 100%;
}

.card-datatable table.dataTable {
    border-top: 1px solid var(--bs-border-color);
    margin-block: 0 !important;
    width: 100% !important;
}

.card-datatable .dt-layout-start,
.card-datatable .dt-layout-end {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-datatable .dt-layout-end {
    justify-content: flex-end;
}

.card-datatable .dt-layout-row .dt-search,
.card-datatable .dt-layout-row .dt-length,
.card-datatable .dt-buttons {
    margin: 0 !important;
}

.card-datatable .dt-search input {
    min-width: 14rem;
}

.rg-catalog-table-wrap {
    overflow-x: clip;
    overflow-y: visible;
}

.rg-catalog-table-wrap .table {
    table-layout: fixed;
    width: 100%;
}

.rg-catalog-table-wrap td,
.rg-catalog-table-wrap th {
    white-space: normal;
}

.rg-media-field {
    --rg-media-preview-height: 6.75rem;
    --rg-media-width: 14rem;
    min-width: 0;
    width: min(100%, var(--rg-media-width));
}

.rg-media-field-card {
    --rg-media-preview-height: 18rem;
    --rg-media-width: 22rem;
}

.rg-media-field-compact {
    --rg-media-preview-height: 6.75rem;
    --rg-media-width: 14rem;
}

.rg-media-card {
    max-width: 100%;
}

.rg-media-preview-button {
    align-items: center;
    cursor: zoom-in;
    display: flex;
    height: var(--rg-media-preview-height);
    justify-content: center;
    min-height: var(--rg-media-preview-height);
}

.rg-media-preview-button:disabled {
    cursor: default;
}

.rg-media-field-empty {
    flex-direction: column;
    gap: 0.25rem;
    min-height: var(--rg-media-preview-height);
    width: 100%;
}

.rg-media-empty-text {
    font-size: 0.75rem;
}

.rg-media-field-preview {
    background: var(--bs-gray-100);
    border: 0 !important;
    border-radius: 0 !important;
    height: var(--rg-media-preview-height);
    object-fit: contain;
    width: 100%;
}

.rg-media-actions {
    flex-wrap: nowrap;
    height: 2.25rem;
}

.rg-media-action-btn {
    align-items: center;
    border-bottom: 0;
    border-top: 0;
    display: inline-flex;
    flex: 0 0 2.75rem;
    justify-content: center;
    min-width: 2.75rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.rg-media-field-compact .rg-media-action-text {
    display: none;
}

.rg-media-field-card .rg-media-action-text {
    display: inline;
    margin-left: 0.25rem;
}

.rg-media-field-card .rg-media-actions [data-admin-media-open],
.rg-media-field-card .rg-media-actions [data-product-open-media],
.rg-media-field-card .rg-media-actions [data-product-gallery-media-open],
.rg-media-field-card .rg-media-actions [data-product-variant-media-open] {
    flex: 1 1 auto;
}

.rg-catalog-thumb,
.rg-product-gallery-thumb,
.rg-product-variant-thumb {
    background: var(--bs-gray-100);
}

.rg-user-avatar-upload-thumb {
    background: var(--bs-gray-100);
    height: 3rem;
    object-fit: contain;
    width: 3rem;
}

.rg-product-editor {
    min-height: 24rem;
    overflow: hidden;
}

.rg-product-editor [data-admin-rich-editor] {
    min-height: 22rem;
}

.rg-rich-editor-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
}

.rg-rich-editor-format {
    flex: 0 0 8.5rem;
    width: 8.5rem;
}

.rg-rich-editor-source-actions {
    margin-left: auto;
}

[data-admin-rich-editor-wrapper].is-editor-image-active [data-admin-rich-editor-text-align] {
    display: none;
}

.rg-rich-editor-controls label.btn {
    overflow: hidden;
    position: relative;
}

.rg-rich-editor-color {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.rg-rich-editor {
    min-height: 22rem;
    outline: 0;
    overflow-wrap: anywhere;
    padding: 1rem;
}

.rg-rich-editor.is-empty::before {
    color: var(--bs-secondary-color);
    content: attr(data-placeholder);
    pointer-events: none;
}

.rg-rich-editor img {
    display: block;
    height: auto;
    margin: 0.875rem auto;
    max-width: 100%;
}

.rg-rich-editor img.rg-editor-image {
    clear: both;
    transform-origin: center center;
}

.rg-rich-editor img.rg-editor-align-left {
    margin-left: 0;
    margin-right: auto;
}

.rg-rich-editor img.rg-editor-align-center {
    margin-left: auto;
    margin-right: auto;
}

.rg-rich-editor img.rg-editor-align-right {
    margin-left: auto;
    margin-right: 0;
}

.rg-rich-editor p[style*="text-align: left"] > img.rg-editor-image,
.rg-rich-editor div[style*="text-align: left"] > img.rg-editor-image,
.rg-rich-editor figure[style*="text-align: left"] > img.rg-editor-image {
    margin-left: 0;
    margin-right: auto;
}

.rg-rich-editor p[style*="text-align: right"] > img.rg-editor-image,
.rg-rich-editor div[style*="text-align: right"] > img.rg-editor-image,
.rg-rich-editor figure[style*="text-align: right"] > img.rg-editor-image {
    margin-left: auto;
    margin-right: 0;
}

.rg-rich-editor img.is-editor-image-selected {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.65);
    outline-offset: 3px;
}

.rg-rich-editor table {
    border-collapse: collapse;
    margin: 1rem 0;
    max-width: 100%;
    width: 100%;
}

.rg-rich-editor td,
.rg-rich-editor th {
    border: 1px solid var(--bs-border-color);
    min-width: 6rem;
    padding: 0.65rem;
    vertical-align: top;
}

.rg-rich-editor blockquote {
    border-left: 0.25rem solid var(--bs-primary);
    color: var(--bs-secondary-color);
    margin: 1rem 0;
    padding: 0.25rem 0 0.25rem 1rem;
}

.rg-notification-preview-frame {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    height: 18rem;
    width: 100%;
}

.rg-notification-preview-text {
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    min-height: 10rem;
    overflow-wrap: anywhere;
    padding: 1rem;
    white-space: pre-wrap;
}

.app-ecommerce,
.app-ecommerce .card,
.app-ecommerce [data-product-repeater-row] {
    min-width: 0;
}

.app-ecommerce {
    overflow-x: clip;
}

.media-library-card {
    border: 1px solid var(--bs-border-color);
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.media-library-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
    transform: translateY(-1px);
}

.media-library-card.is-selected {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.18rem rgba(var(--bs-primary-rgb), 0.18);
}

.media-library-item {
    flex: 1 1 auto;
    min-height: 0;
}

.media-library-thumb-wrap {
    align-items: center;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.media-library-thumb {
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    width: 100%;
}

.media-library-empty-thumb {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.media-library-selected-badge {
    align-items: center;
    background: var(--bs-primary);
    border-radius: 50%;
    color: var(--bs-white);
    display: inline-flex;
    height: 1.65rem;
    justify-content: center;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 1.65rem;
    z-index: 2;
}

.media-library-card-actions {
    align-items: center;
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem 0.75rem;
}

.media-library-remove-button {
    position: static;
}

#productMediaLibraryModal .modal-dialog {
    max-width: min(72rem, calc(100vw - 2rem));
}

#productMediaLibraryModal .modal-body {
    min-height: 28rem;
}

.rg-product-list-avatar {
    flex: 0 0 4rem;
    height: 4rem;
    overflow: hidden;
    width: 4rem;
}

.rg-product-list-thumb,
.rg-catalog-list-image,
.rg-list-image {
    background: var(--bs-gray-100);
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.rg-product-list-thumb-button,
.rg-catalog-list-image-button,
.rg-list-image-button {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    height: 100%;
    padding: 0;
    width: 100%;
}

.rg-product-list-thumb-button:hover .rg-product-list-thumb,
.rg-catalog-list-image-button:hover .rg-catalog-list-image,
.rg-list-image-button:hover .rg-list-image {
    box-shadow: 0 0.25rem 0.75rem rgba(47, 43, 61, 0.18);
}

.rg-catalog-list-image-button,
.rg-catalog-list-image-empty,
.rg-list-image-button,
.rg-list-image-empty {
    align-items: center;
    background: var(--bs-gray-100);
    border-radius: var(--bs-border-radius);
    color: var(--bs-secondary-color);
    display: inline-flex;
    height: 4rem;
    justify-content: center;
    overflow: hidden;
    vertical-align: middle;
    width: 4rem;
}

.rg-product-image-hover-preview {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.75rem 2rem rgba(47, 43, 61, 0.24);
    max-width: min(22rem, calc(100vw - 2rem));
    opacity: 0;
    padding: 0.5rem;
    pointer-events: none;
    position: fixed;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.12s ease, visibility 0.12s ease;
    visibility: hidden;
    width: 22rem;
    z-index: 1096;
}

.rg-product-image-hover-preview.is-visible {
    opacity: 1;
    visibility: visible;
}

.rg-product-image-hover-preview img {
    background: var(--bs-gray-100);
    border-radius: calc(var(--bs-border-radius) - 2px);
    display: block;
    height: auto;
    max-height: min(26rem, calc(100vh - 4rem));
    object-fit: contain;
    width: 100%;
}

.rg-image-preview-modal .modal-dialog {
    max-width: min(1200px, calc(100vw - 2rem));
}

.rg-image-preview-modal .modal-content {
    max-height: calc(100vh - 2rem);
}

.rg-image-preview-modal .modal-body {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 0;
    overflow: auto;
}

.rg-image-preview-modal-img {
    display: block;
    height: auto;
    max-height: calc(100vh - 4rem);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.rg-editor-image-tools {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1.25rem rgba(47, 43, 61, 0.18);
    flex-wrap: wrap;
    max-width: calc(100vw - 1.5rem);
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.12s ease, visibility 0.12s ease;
    visibility: hidden;
    z-index: 1097;
}

.rg-editor-image-tools.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.datatables-products .product-name {
    min-width: 18rem;
    max-width: 28rem;
}

.datatables-products .rg-product-list-copy {
    min-width: 0;
}

.datatables-products .rg-product-list-name {
    display: -webkit-box;
    line-height: 1.25;
    max-width: 24rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

.rg-avatar-contain,
.rg-avatar-preview {
    background: var(--bs-gray-100);
    height: 3rem;
    object-fit: contain;
    width: 3rem;
}

.avatar-sm .rg-avatar-contain {
    height: 2.375rem;
    width: 2.375rem;
}

.avatar-lg .rg-avatar-contain {
    height: 3rem;
    width: 3rem;
}

#roleModal .modal-dialog {
    max-width: 1080px;
}

#roleModal .modal-body {
    padding: 3rem;
}

.rg-permission-table {
    min-width: 760px;
}

.rg-permission-table td {
    vertical-align: middle;
}

.datatables-permissions .rg-permission-list-name {
    min-width: 16rem;
}

.datatables-permissions .rg-permission-list-roles {
    min-width: 15rem;
}

.datatables-permissions .rg-permission-list-actions {
    min-width: 4rem;
}

.dtr-bs-modal .table th {
    color: var(--bs-heading-color);
    font-weight: 600;
    width: 12rem;
}

.rg-permission-actions {
    column-gap: 1.5rem;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(7.5rem, 1fr));
    justify-items: start;
    row-gap: 0.75rem;
}

.rg-permission-actions .form-check {
    margin-bottom: 0;
    margin-right: 0;
    min-width: 7rem;
}

.rg-payment-method-page,
.rg-payment-methods-page,
.rg-settings-page,
.rg-payment-method-page .card,
.rg-payment-methods-page .card,
.rg-settings-page .card,
.rg-payment-method-page .table-responsive,
.rg-payment-methods-page .table-responsive,
.rg-settings-page .table-responsive {
    min-width: 0;
}

.rg-payment-methods-page .avatar .icon-base,
.rg-payment-methods-page .avatar-initial .icon-base,
.rg-payment-methods-page .rg-payment-tab-icon .icon-base {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    line-height: 1;
    margin: 0;
    vertical-align: middle;
}

.rg-payment-methods-page .avatar .icon-base,
.rg-payment-methods-page .avatar-initial .icon-base,
.rg-payment-methods-page .rg-payment-tab-icon .icon-base {
    margin: 0 !important;
}

.rg-payment-methods-page .avatar,
.rg-payment-methods-page .avatar-initial,
.rg-payment-methods-page .rg-payment-tab-icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.rg-payment-methods-card {
    overflow: hidden;
}

.rg-payment-summary-strip {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(5.5rem, 1fr));
    min-width: min(100%, 28rem);
}

.rg-payment-summary-item {
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.65rem 0.85rem;
}

.rg-payment-summary-item span {
    color: var(--bs-secondary-color);
    display: block;
    font-size: 0.75rem;
    line-height: 1.2;
}

.rg-payment-summary-item strong {
    color: var(--bs-heading-color);
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.15rem;
}

.rg-payment-method-tabs {
    align-items: stretch;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.rg-payment-method-tabs .nav-item {
    min-width: 0;
    width: 100%;
}

.rg-payment-method-tab {
    align-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    display: flex;
    gap: 0.75rem;
    height: 100%;
    justify-content: flex-start;
    min-height: 4rem;
    padding: 0.75rem;
    text-align: left;
    width: 100%;
}

.rg-payment-method-tab:hover,
.rg-payment-method-tab:focus {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-color: rgba(var(--bs-primary-rgb), 0.45);
}

.rg-payment-tab-icon {
    align-items: center;
    border-radius: var(--bs-border-radius);
    display: inline-flex;
    flex: 0 0 2.5rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.rg-payment-tab-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.rg-payment-provider-list {
    display: grid;
    gap: 1rem;
}

.rg-payment-provider-row {
    align-items: stretch;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(18rem, 1.25fr) minmax(19rem, 0.95fr) minmax(17rem, 0.85fr) minmax(8rem, 0.35fr);
    padding: 1.25rem;
    scroll-margin-top: 7rem;
}

.rg-payment-provider-row-compact {
    align-items: center;
    grid-template-columns: minmax(18rem, 1fr) minmax(8rem, auto);
}

.rg-payment-provider-row:target {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
    box-shadow: 0 0 0 0.18rem rgba(var(--bs-primary-rgb), 0.12);
}

.rg-payment-provider-main {
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.rg-payment-provider-description {
    line-height: 1.45;
    max-width: 44rem;
}

.rg-payment-provider-alert {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
}

.rg-payment-provider-section {
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    min-width: 0;
    padding: 1rem;
}

.rg-payment-provider-section-compact {
    background: transparent;
    border: 0;
    padding: 0;
}

.rg-payment-facts,
.rg-payment-status-grid {
    display: grid;
    gap: 0.7rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rg-payment-facts-inline {
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.rg-payment-facts-inline div {
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    padding: 0.55rem 0.7rem;
}

.rg-payment-facts div,
.rg-payment-status-grid div {
    min-width: 0;
}

.rg-payment-facts span,
.rg-payment-status-grid span {
    color: var(--bs-secondary-color);
    display: block;
    font-size: 0.75rem;
    line-height: 1.2;
}

.rg-payment-facts strong,
.rg-payment-status-grid strong {
    color: var(--bs-heading-color);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
}

.rg-payment-facts-list {
    grid-template-columns: minmax(0, 1fr);
}

.rg-payment-facts-list div {
    align-items: center;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0.7rem;
}

.rg-payment-facts-list span,
.rg-payment-facts-list strong {
    margin-top: 0;
}

.rg-payment-provider-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    min-width: 0;
}

.rg-installment-table th,
.rg-installment-table td {
    vertical-align: middle;
}

.rg-installment-table th:first-child,
.rg-installment-table td:first-child {
    width: 5rem;
}

.rg-installment-rate {
    max-width: 12rem;
    min-width: 9rem;
}

.rg-shipping-bracket-table {
    min-width: 52rem;
}

.rg-shipping-bracket-table th,
.rg-shipping-bracket-table td {
    vertical-align: middle;
}

.rg-shipping-bracket-table th:first-child,
.rg-shipping-bracket-table th:nth-child(2),
.rg-shipping-bracket-table td:first-child,
.rg-shipping-bracket-table td:nth-child(2) {
    width: 8.5rem;
}

.rg-shipping-bracket-table th:nth-child(3),
.rg-shipping-bracket-table td:nth-child(3) {
    width: 11rem;
}

.rg-shipping-bracket-table th:last-child,
.rg-shipping-bracket-table td:last-child {
    width: 5rem;
}

.rg-shipping-bracket-preview {
    white-space: normal;
}

.rg-cron-run-message {
    max-width: 32rem;
    overflow-wrap: anywhere;
}

.rg-cron-table th,
.rg-cron-table td {
    vertical-align: middle;
}

.rg-cron-job-cell {
    min-width: 18rem;
    width: 58%;
}

.rg-cron-description {
    max-width: 42rem;
    white-space: normal;
}

@media (max-width: 1199.98px) {
    .rg-payment-provider-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rg-payment-provider-row-compact {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rg-payment-provider-main {
        grid-column: 1 / -1;
    }

    .rg-payment-provider-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .rg-payment-provider-row-compact .rg-payment-provider-main,
    .rg-payment-provider-row-compact .rg-payment-provider-actions {
        grid-column: auto;
    }

}

/* Rekor Copilot: Vuexy chat/avatar primitives in a compact fixed helper. */
.rg-copilot {
    align-items: flex-end;
    bottom: 1.5rem;
    display: flex;
    gap: 0.875rem;
    pointer-events: none;
    position: fixed;
    right: 1.5rem;
    z-index: 1090;
}

.rg-copilot > * {
    pointer-events: auto;
}

.rg-copilot-toggle {
    background: var(--bs-success);
    border: 3px solid var(--bs-paper-bg);
    box-shadow: 0 0.5rem 1.5rem rgba(20, 58, 36, 0.22);
    height: 4.5rem;
    min-width: 4.5rem;
    overflow: visible;
    position: relative;
    width: 4.5rem;
}

.rg-copilot-toggle > img {
    border-radius: 50%;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rg-copilot-toggle:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.28), 0 0.5rem 1.5rem rgba(20, 58, 36, 0.22);
    outline: 0;
}

.rg-copilot-count {
    position: absolute;
    right: -0.4rem;
    top: -0.35rem;
}

.rg-copilot-status {
    background: var(--bs-success);
    border: 2px solid var(--bs-paper-bg);
    border-radius: 50%;
    bottom: 0.1rem;
    height: 0.9rem;
    position: absolute;
    right: 0.1rem;
    width: 0.9rem;
}

.rg-copilot-panel {
    border: var(--bs-border-width) solid var(--bs-border-color);
    box-shadow: 0 0.75rem 2.25rem rgba(34, 48, 62, 0.18);
    max-height: calc(100vh - 3rem);
    overflow: hidden;
    width: 23rem;
}

.rg-copilot-panel .card-header {
    background: var(--bs-paper-bg);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}

.rg-copilot-body {
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
}

.rg-copilot-message {
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 0.25rem 0.75rem 0.75rem 0.75rem;
    color: var(--bs-body-color);
    padding: 0.75rem 0.875rem;
}

.rg-copilot-transcript {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.rg-copilot-message-live {
    animation: rg-copilot-message-in 180ms ease-out both;
    position: relative;
}

.rg-copilot-message-live:last-child p::after {
    animation: rg-copilot-caret 0.8s steps(1) infinite;
    color: var(--bs-primary);
    content: "|";
    margin-left: 0.125rem;
}

.rg-copilot-links {
    margin-top: 0.75rem;
}

@keyframes rg-copilot-message-in {
    from {
        opacity: 0;
        transform: translateY(0.3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rg-copilot-caret {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg-copilot-message-live,
    .rg-copilot-message-live:last-child p::after {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .rg-copilot {
        bottom: 0.75rem;
        display: block;
        height: 4rem;
        position: fixed;
        right: 0.75rem;
        width: 4rem;
    }

    .rg-copilot-panel {
        bottom: 5rem;
        max-height: calc(100vh - 6.5rem);
        position: absolute;
        right: 0;
        width: calc(100vw - 1.5rem);
    }

    .rg-copilot-body {
        max-height: calc(100vh - 13rem);
    }

    .rg-copilot-toggle {
        bottom: 0;
        height: 4rem;
        min-width: 4rem;
        position: absolute;
        right: 0;
        width: 4rem;
        z-index: 1;
    }

    .rg-copilot-count {
        right: -0.1rem;
        top: -0.25rem;
    }
}

@media (max-width: 767.98px) {
    .rg-payment-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .rg-payment-provider-row {
        grid-template-columns: 1fr;
    }

    .rg-payment-provider-row-compact {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rg-payment-provider-main {
        align-items: flex-start;
    }

}

@media (max-width: 575.98px) {
    .rg-product-editor,
    .rg-product-editor [data-admin-rich-editor],
    .rg-rich-editor {
        min-height: 18rem;
    }

    #roleModal .modal-body {
        padding: 1.5rem;
    }

    .rg-permission-table {
        min-width: 620px;
    }

    .rg-permission-actions {
        column-gap: 1rem;
        grid-template-columns: repeat(2, minmax(7rem, 1fr));
    }

    .rg-permission-actions .form-check {
        min-width: 6rem;
    }

    .rg-installment-rate {
        max-width: 100%;
        min-width: 8rem;
    }

    .rg-payment-summary-item,
    .rg-payment-provider-row,
    .rg-payment-provider-section {
        padding: 0.9rem;
    }

}

/* Support chat follows Vuexy app-chat structure; only project media/panel sizing lives here. */
.rg-support-inbox .app-chat-contacts {
    display: flex;
    flex-direction: column;
}

.rg-support-inbox .app-chat-contacts .sidebar-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-block-size: 0;
    block-size: auto;
    overflow: hidden;
}

.rg-support-inbox .chat-contact-list {
    min-block-size: 0;
    overflow-y: auto;
}

.rg-support-inbox .chat-contact-list-item.active .chat-contact-status {
    color: var(--bs-white);
}

.rg-support-inbox-pagination {
    background: var(--bs-paper-bg);
}

.rg-support-chat .chat-history-body {
    overflow-y: auto;
}

.rg-support-chat-panel {
    overflow-y: auto;
    background: var(--bs-paper-bg);
}

.rg-support-message-image-wrap {
    margin-inline: auto;
    max-width: 200px;
    width: 100%;
}

.rg-support-message-image-button {
    align-items: center;
    background: var(--bs-body-bg);
    border: 0;
    cursor: zoom-in;
    display: flex;
    justify-content: center;
    max-width: 200px;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.rg-support-message-image-button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.rg-support-message-image {
    display: block;
    height: auto;
    margin-inline: auto;
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.rg-support-message-image-actions {
    justify-content: center;
}

.rg-support-audio {
    min-width: min(18rem, 100%);
    background: rgba(var(--bs-body-color-rgb), 0.06);
}

.rg-support-audio audio {
    display: block;
    max-width: 100%;
}

@media (max-width: 1199.98px) {
    .rg-support-chat {
        block-size: auto;
        min-height: 42rem;
    }

    .rg-support-chat .app-chat-history {
        block-size: 42rem;
    }

    .rg-support-chat-panel {
        max-height: none;
        border-top: var(--bs-border-width) solid var(--bs-border-color);
        border-left: 0 !important;
    }
}
