@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
@import 'tailwindcss';

html:has(body.rn-admin-classic) {
    background: #f6f7f9;
    overflow-x: hidden;
}

html body.rn-admin-classic {
    --ad-bg: #f6f7f9;
    --ad-card: #ffffff;
    --ad-text: #101828;
    --ad-muted: #667085;
    --ad-border: #e4e7ec;
    --ad-border-strong: #d0d5dd;
    --ad-brand: #0f9f98;
    --ad-brand-dark: #0b7f7a;
    --ad-radius: 12px;
    --ad-radius-sm: 10px;
    --ad-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    margin: 0;
    background: var(--ad-bg);
    color: var(--ad-text);
    font-family: "IBM Plex Sans Arabic", Alexandria, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

html[data-admin-theme="dark"]:has(body.rn-admin-classic) {
    background: #0f172a;
}

html[data-admin-theme="dark"] body.rn-admin-classic {
    --ad-bg: #0f172a;
    --ad-card: #111827;
    --ad-text: #f8fafc;
    --ad-muted: #94a3b8;
    --ad-border: #243044;
    --ad-border-strong: #334155;
    --ad-brand: #14b8a6;
    --ad-brand-dark: #0f9f98;
    --ad-shadow: 0 1px 2px rgba(0, 0, 0, .32);
    background: var(--ad-bg) !important;
    color: var(--ad-text) !important;
}

html body.rn-admin-classic,
html body.rn-admin-classic * {
    box-sizing: border-box;
}

html body.rn-admin-classic svg {
    stroke-width: 1.8;
    flex-shrink: 0;
}

html body.rn-admin-classic .ac-mobilebar {
    display: none !important;
}

html body.rn-admin-classic .ac-mobilebar button,
html body.rn-admin-classic .ac-mobilebrand {
    height: 40px !important;
    min-width: 40px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
    color: var(--ad-text) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
    text-decoration: none !important;
    box-shadow: var(--ad-shadow) !important;
    line-height: 1 !important;
}

html body.rn-admin-classic .ac-mobilebar button svg {
    width: 19px !important;
    height: 19px !important;
}

html body.rn-admin-classic .ac-mobilebrand {
    max-width: 180px !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-mobilebrand span {
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-shell,
html body.rn-admin-classic.ac-sidebar-expanded .ac-shell {
    display: block !important;
    min-height: 100vh !important;
    direction: rtl !important;
    background: var(--ad-bg) !important;
}

html body.rn-admin-classic .ac-sidebar,
html body.rn-admin-classic.ac-sidebar-expanded .ac-sidebar {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    width: 240px !important;
    max-width: 240px !important;
    height: 100vh !important;
    padding: 16px 12px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-left: 1px solid var(--ad-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    overflow-y: auto !important;
    z-index: 90 !important;
}

html body.rn-admin-classic .ac-brand,
html body.rn-admin-classic.ac-sidebar-expanded .ac-brand {
    height: 44px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: var(--ad-radius-sm) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ad-text) !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-brand-logo {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid var(--ad-border) !important;
    background: #fff !important;
    flex: 0 0 34px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-brand-logo img,
html body.rn-admin-classic .ac-mobilebrand img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

html body.rn-admin-classic .ac-mobilebrand img {
    width: 32px !important;
    height: 32px !important;
}

html body.rn-admin-classic .ac-brand > span:not(.ac-brand-logo),
html body.rn-admin-classic.ac-sidebar-expanded .ac-brand > span:not(.ac-brand-logo),
html body.rn-admin-classic .ac-nav-group p,
html body.rn-admin-classic.ac-sidebar-expanded .ac-nav-group p,
html body.rn-admin-classic .ac-nav a span,
html body.rn-admin-classic.ac-sidebar-expanded .ac-nav a span {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body.rn-admin-classic .ac-brand strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--ad-text) !important;
}

html body.rn-admin-classic .ac-brand small {
    color: var(--ad-muted) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

html body.rn-admin-classic .ac-collapse-pill {
    display: none !important;
}

html body.rn-admin-classic .ac-nav {
    margin-top: 18px !important;
    display: grid !important;
    gap: 18px !important;
}

html body.rn-admin-classic .ac-nav-group {
    display: grid !important;
    gap: 4px !important;
}

html body.rn-admin-classic .ac-nav-group p {
    margin: 0 8px 4px !important;
    color: var(--ad-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-nav a,
html body.rn-admin-classic.ac-sidebar-expanded .ac-nav a {
    min-height: 36px !important;
    width: 100% !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: var(--ad-radius-sm) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

html body.rn-admin-classic .ac-nav a svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    color: #667085 !important;
}

html body.rn-admin-classic .ac-nav a:hover,
html body.rn-admin-classic .ac-nav a:focus-visible {
    background: #f2f4f7 !important;
    color: var(--ad-text) !important;
    outline: none !important;
}

html body.rn-admin-classic .ac-nav a.active {
    background: #e8f7f6 !important;
    color: var(--ad-brand-dark) !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-nav a.active svg {
    color: var(--ad-brand) !important;
}

html body.rn-admin-classic .ac-topbar {
    position: fixed !important;
    top: 0 !important;
    right: 240px !important;
    left: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    background: rgba(255, 255, 255, .96) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ad-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 80 !important;
}

html body.rn-admin-classic .ac-search {
    height: 40px !important;
    width: min(420px, 42vw) !important;
    max-width: 420px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-inline: 12px !important;
}

html body.rn-admin-classic .ac-search svg {
    width: 18px !important;
    height: 18px !important;
    color: #475467 !important;
}

html body.rn-admin-classic .ac-search input {
    height: 38px !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    outline: 0 !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

html body.rn-admin-classic .ac-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
}

html body.rn-admin-classic .ac-iconbtn,
html body.rn-admin-classic .ac-user summary,
html body.rn-admin-classic .ac-store,
html body.rn-admin-classic .ac-btn,
html body.rn-admin-classic .primary-button,
html body.rn-admin-classic .secondary-button,
html body.rn-admin-classic .ad-btn,
html body.rn-admin-classic .ad-export-menu summary {
    height: 40px !important;
    border-radius: var(--ad-radius-sm) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-iconbtn {
    width: 40px !important;
    background: #ffffff !important;
    border: 1px solid var(--ad-border) !important;
    color: #344054 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

html body.rn-admin-classic .ac-iconbtn svg,
html body.rn-admin-classic .ac-user summary svg,
html body.rn-admin-classic .ac-store svg,
html body.rn-admin-classic .ad-btn svg,
html body.rn-admin-classic .ad-export-menu summary svg {
    width: 18px !important;
    height: 18px !important;
}

html body.rn-admin-classic .ac-store,
html body.rn-admin-classic .ac-btn:not(.secondary),
html body.rn-admin-classic .primary-button,
html body.rn-admin-classic .ad-btn.primary,
html body.rn-admin-classic .ad-export-menu summary {
    background: var(--ad-brand) !important;
    border: 1px solid var(--ad-brand) !important;
    color: #ffffff !important;
}

html body.rn-admin-classic .ac-btn.secondary,
html body.rn-admin-classic .secondary-button,
html body.rn-admin-classic .ad-btn.secondary,
html body.rn-admin-classic .ad-btn.ghost {
    background: #ffffff !important;
    border: 1px solid var(--ad-border) !important;
    color: #344054 !important;
}

html body.rn-admin-classic .ac-user summary {
    background: #ffffff !important;
    border: 1px solid var(--ad-border) !important;
}

html body.rn-admin-classic .ac-user {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    z-index: 95 !important;
}

html body.rn-admin-classic .ac-user summary {
    min-width: 112px !important;
    max-width: 170px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    cursor: pointer !important;
    list-style: none !important;
    color: #344054 !important;
    line-height: 1 !important;
    user-select: none !important;
    direction: ltr !important;
    flex-direction: row !important;
}

html body.rn-admin-classic .ac-user summary::-webkit-details-marker {
    display: none !important;
}

html body.rn-admin-classic .ac-user summary::after {
    content: "⌄" !important;
    width: 16px !important;
    height: 16px !important;
    border: 0 !important;
    transform: none !important;
    flex: 0 0 16px !important;
    margin-inline-start: 2px !important;
    display: inline-grid !important;
    place-items: center !important;
    color: #667085 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

html body.rn-admin-classic .ac-user[open] summary::after {
    content: "⌃" !important;
    transform: none !important;
}

html body.rn-admin-classic .ac-user summary > span {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #e6fffb !important;
    border: 1px solid #bff3ee !important;
    color: var(--ad-brand-dark) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-user summary b {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    direction: rtl !important;
}

html body.rn-admin-classic .ac-user > div {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    inset-inline-end: 0 !important;
    width: 220px !important;
    padding: 6px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(16, 24, 40, .10) !important;
    display: grid !important;
    gap: 2px !important;
    z-index: 120 !important;
}

html body.rn-admin-classic .ac-user:not([open]) > div {
    display: none !important;
}

html body.rn-admin-classic .ac-user > div::before {
    content: "" !important;
    position: absolute !important;
    top: -6px !important;
    inset-inline-end: 18px !important;
    width: 10px !important;
    height: 10px !important;
    background: #ffffff !important;
    border-top: 1px solid var(--ad-border) !important;
    border-inline-start: 1px solid var(--ad-border) !important;
    transform: rotate(45deg) !important;
}

html body.rn-admin-classic .ac-user > div a,
html body.rn-admin-classic .ac-user > div button {
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #344054 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: right !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
}

html body.rn-admin-classic .ac-user > div a:hover,
html body.rn-admin-classic .ac-user > div button:hover,
html body.rn-admin-classic .ac-user > div a:focus-visible,
html body.rn-admin-classic .ac-user > div button:focus-visible {
    background: #f2f4f7 !important;
    color: var(--ad-text) !important;
    outline: 0 !important;
}

html body.rn-admin-classic .ac-user > div form {
    margin: 2px 0 0 !important;
    padding-top: 4px !important;
    border-top: 1px solid var(--ad-border) !important;
}

html body.rn-admin-classic .ac-user > div form button {
    color: #b42318 !important;
}

html body.rn-admin-classic .ac-btn.info,
html body.rn-admin-classic .secondary-button.info {
    background: #eff8ff !important;
    border-color: #b2ddff !important;
    color: #175cd3 !important;
}

html body.rn-admin-classic .ac-btn.success,
html body.rn-admin-classic .secondary-button.success {
    background: #ecfdf3 !important;
    border-color: #abefc6 !important;
    color: #067647 !important;
}

html body.rn-admin-classic .ac-btn.warning,
html body.rn-admin-classic .secondary-button.warning {
    background: #fffaeb !important;
    border-color: #fedf89 !important;
    color: #b54708 !important;
}

html body.rn-admin-classic .ac-btn.danger,
html body.rn-admin-classic .secondary-button.danger {
    background: #fef3f2 !important;
    border-color: #fecdca !important;
    color: #b42318 !important;
}

html body.rn-admin-classic .ac-btn.purple,
html body.rn-admin-classic .secondary-button.purple {
    background: #f4f3ff !important;
    border-color: #d9d6fe !important;
    color: #5925dc !important;
}

html body.rn-admin-classic .ac-btn.info:hover,
html body.rn-admin-classic .secondary-button.info:hover,
html body.rn-admin-classic .ac-btn.success:hover,
html body.rn-admin-classic .secondary-button.success:hover,
html body.rn-admin-classic .ac-btn.warning:hover,
html body.rn-admin-classic .secondary-button.warning:hover,
html body.rn-admin-classic .ac-btn.danger:hover,
html body.rn-admin-classic .secondary-button.danger:hover,
html body.rn-admin-classic .ac-btn.purple:hover,
html body.rn-admin-classic .secondary-button.purple:hover {
    filter: saturate(1.08) brightness(.99) !important;
    transform: translateY(-1px) !important;
}

html body.rn-admin-classic .ac-main {
    min-height: 100vh !important;
    margin-right: 240px !important;
    padding: 88px 24px 32px !important;
    background: var(--ad-bg) !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
    max-width: calc(100vw - 720px) !important;
    overflow: visible !important;
    margin-right: 264px !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-store {
    padding-inline: 12px !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ad-dashboard,
html body.rn-admin-classic .ac-section,
html body.rn-admin-classic .lc-page-shell {
    width: min(100%, 1280px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
}

html body.rn-admin-classic .ad-card,
html body.rn-admin-classic .ad-kpi-card,
html body.rn-admin-classic .ac-panel,
html body.rn-admin-classic .surface {
    background: var(--ad-card) !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    box-shadow: var(--ad-shadow) !important;
}

html body.rn-admin-classic .ac-alert {
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    color: var(--ad-text) !important;
    box-shadow: var(--ad-shadow) !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
}

html body.rn-admin-classic .ac-alert.success {
    border-color: #a7f3d0 !important;
    background: #ecfdf3 !important;
    color: #05603a !important;
}

html body.rn-admin-classic .ac-alert.danger {
    border-color: #fecaca !important;
    background: #fff1f3 !important;
    color: #b42318 !important;
}

html body.rn-admin-classic .section-heading {
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    padding: 22px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
}

html body.rn-admin-classic .section-heading span {
    display: block !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

html body.rn-admin-classic .section-heading h1 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .surface {
    width: 100% !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .admin-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--ad-border) !important;
}

html body.rn-admin-classic .admin-row:last-child {
    border-bottom: 0 !important;
}

html body.rn-admin-classic .admin-row > span:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    color: var(--ad-text) !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .admin-row img,
html body.rn-admin-classic .admin-row .size-12 {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
}

html body.rn-admin-classic .admin-row strong {
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-panel {
    width: 100% !important;
    min-width: 0 !important;
    padding: 22px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
}

html body.rn-admin-classic .ac-panel-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

html body.rn-admin-classic .ac-panel-head > div:first-child {
    min-width: min(100%, 320px) !important;
}

html body.rn-admin-classic .ac-panel-head h1,
html body.rn-admin-classic .ac-panel-head h2,
html body.rn-admin-classic .ac-section h1,
html body.rn-admin-classic .ac-section h2 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-panel-head p,
html body.rn-admin-classic .ac-muted {
    color: var(--ad-muted) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

html body.rn-admin-classic .ac-panel-head p {
    margin: 6px 0 0 !important;
}

html body.rn-admin-classic .ac-panel .ac-actions,
html body.rn-admin-classic .ac-panel-head .ac-actions,
html body.rn-admin-classic .ac-table .ac-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    max-width: none !important;
}

html body.rn-admin-classic .ac-filter,
html body.rn-admin-classic .ac-bulkbar {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #f9fafb !important;
}

html body.rn-admin-classic .ac-filter input[type="text"],
html body.rn-admin-classic .ac-filter input[type="search"] {
    width: min(100%, 320px) !important;
}

html body.rn-admin-classic .ac-filter button,
html body.rn-admin-classic .ac-bulkbar button,
html body.rn-admin-classic .ac-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border-radius: var(--ad-radius-sm) !important;
    border: 1px solid var(--ad-border) !important;
    background: #ffffff !important;
    color: #344054 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-filter button,
html body.rn-admin-classic .ac-btn:not(.secondary) {
    background: var(--ad-brand) !important;
    border-color: var(--ad-brand) !important;
    color: #ffffff !important;
}

html body.rn-admin-classic .ac-btn.secondary {
    background: #ffffff !important;
    border-color: var(--ad-border) !important;
    color: #344054 !important;
}

html body.rn-admin-classic .ac-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-kpi {
    min-height: 96px !important;
    padding: 16px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
    border-top: 3px solid var(--accent, var(--ad-brand)) !important;
}

html body.rn-admin-classic .ac-kpi span {
    display: block !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

html body.rn-admin-classic .ac-kpi strong {
    display: block !important;
    color: var(--ad-text) !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ac-grid-2,
html body.rn-admin-classic .ac-grid-3 {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 20px !important;
    align-items: start !important;
}

html body.rn-admin-classic .ac-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-chart {
    width: 100% !important;
    min-height: 280px !important;
    display: grid !important;
    place-items: stretch !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-funnel {
    display: grid !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-funnel-row {
    display: grid !important;
    gap: 8px !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
}

html body.rn-admin-classic .ac-funnel-row header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    color: var(--ad-text) !important;
}

html body.rn-admin-classic .ac-funnel-row header span {
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-funnel-row header b {
    color: var(--ad-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ac-funnel-row > div {
    height: 8px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #eef4f4 !important;
}

html body.rn-admin-classic .ac-funnel-row > div > b {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: var(--ad-brand) !important;
}

html body.rn-admin-classic .ac-customer-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: start !important;
}

html body.rn-admin-classic .ac-customer-card {
    min-width: 0 !important;
    padding: 18px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
    display: grid !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ac-customer-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-customer-head > div {
    min-width: 0 !important;
}

html body.rn-admin-classic .ac-customer-head h3 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-customer-head small,
html body.rn-admin-classic .ac-customer-head p {
    display: block !important;
    margin: 3px 0 0 !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}

html body.rn-admin-classic .ac-avatar {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 999px !important;
    background: #e6fffb !important;
    color: var(--ad-brand-dark) !important;
    border: 1px solid #bff3ee !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-customer-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-customer-metrics > div {
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
}

html body.rn-admin-classic .ac-customer-metrics span {
    display: block !important;
    color: var(--ad-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-customer-metrics b {
    display: block !important;
    margin-top: 4px !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.rn-admin-classic .ac-mini-stats,
html body.rn-admin-classic .ac-micro-grid {
    display: grid !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-micro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-mini-stats > div,
html body.rn-admin-classic .ac-micro-grid > div {
    min-width: 0 !important;
    min-height: 72px !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
    display: grid !important;
    align-content: center !important;
    gap: 5px !important;
}

html body.rn-admin-classic .ac-mini-stats span,
html body.rn-admin-classic .ac-micro-grid span {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

html body.rn-admin-classic .ac-mini-stats b,
html body.rn-admin-classic .ac-micro-grid strong {
    min-width: 0 !important;
    color: var(--ad-text) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.rn-admin-classic .ac-customer-card > .ac-btn.secondary {
    width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
    color: var(--ad-brand-dark) !important;
    background: #ffffff !important;
}

html body.rn-admin-classic .ac-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-form-grid label {
    display: grid !important;
    gap: 7px !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-form-grid input,
html body.rn-admin-classic .ac-form-grid select,
html body.rn-admin-classic .ac-form-grid textarea,
html body.rn-admin-classic .ac-form-grid button {
    width: 100% !important;
}

html body.rn-admin-classic .ac-profile-hero,
html body.rn-admin-classic .ac-product-hero {
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-gradient-grid .ac-kpi,
html body.rn-admin-classic .ac-kpi.gradient {
    background: #ffffff !important;
    color: var(--ad-text) !important;
    border: 1px solid var(--ad-border) !important;
    border-top: 3px solid var(--accent, var(--ad-brand)) !important;
    box-shadow: var(--ad-shadow) !important;
}

html body.rn-admin-classic .ac-kpi.gradient.teal { --accent: #0f9f98; }
html body.rn-admin-classic .ac-kpi.gradient.orange { --accent: #f79009; }
html body.rn-admin-classic .ac-kpi.gradient.blue { --accent: #2e90fa; }
html body.rn-admin-classic .ac-kpi.gradient.pink { --accent: #ee46bc; }

html body.rn-admin-classic .ac-kpi small {
    display: block !important;
    margin-top: 8px !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

html body.rn-admin-classic .ac-status-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-status-chip {
    --chip: var(--ad-brand);
    min-height: 58px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--ad-border) !important;
    border-right: 4px solid var(--chip) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
    color: var(--ad-text) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-shadow: var(--ad-shadow) !important;
    transition: transform .16s ease, border-color .16s ease, background .16s ease !important;
}

html body.rn-admin-classic .ac-status-chip span {
    color: #475467 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-status-chip strong {
    color: var(--ad-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ac-status-chip:hover,
html body.rn-admin-classic .ac-status-chip.active {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--chip), #ffffff 50%) !important;
    background: color-mix(in srgb, var(--chip), #ffffff 94%) !important;
}

html body.rn-admin-classic .ac-status-chip.teal { --chip: #0f9f98; }
html body.rn-admin-classic .ac-status-chip.green { --chip: #16a34a; }
html body.rn-admin-classic .ac-status-chip.amber { --chip: #f59e0b; }
html body.rn-admin-classic .ac-status-chip.blue { --chip: #2563eb; }
html body.rn-admin-classic .ac-status-chip.red { --chip: #dc2626; }
html body.rn-admin-classic .ac-status-chip.purple { --chip: #7c3aed; }
html body.rn-admin-classic .ac-status-chip.slate { --chip: #64748b; }

html body.rn-admin-classic .ac-entity-list {
    display: grid !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-entity-card {
    --entity-color: var(--ad-brand);
    position: relative !important;
    min-height: 76px !important;
    padding: 14px !important;
    border: 1px solid var(--ad-border) !important;
    border-right: 4px solid var(--entity-color) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 14px !important;
    transition: transform .16s ease, border-color .16s ease, background .16s ease !important;
}

html body.rn-admin-classic .ac-entity-card:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--entity-color), #e4e7ec 45%) !important;
    background: color-mix(in srgb, var(--entity-color), #ffffff 97%) !important;
}

html body.rn-admin-classic .ac-entity-main {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-entity-main > div {
    min-width: 0 !important;
}

html body.rn-admin-classic .ac-entity-main strong {
    display: block !important;
    color: var(--ad-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

html body.rn-admin-classic .ac-entity-main small {
    display: block !important;
    margin-top: 3px !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

html body.rn-admin-classic .ac-entity-icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 10px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55) !important;
}

html body.rn-admin-classic .ac-entity-cover {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    border: 1px solid var(--ad-border) !important;
    background: #f2f4f7 !important;
}

html body.rn-admin-classic .ac-entity-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

html body.rn-admin-classic .metric-card {
    text-decoration: none !important;
    border-top: 3px solid var(--metric-color, var(--ad-brand)) !important;
    transition: transform .16s ease, border-color .16s ease, background .16s ease !important;
}

html body.rn-admin-classic a.metric-card:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--metric-color, var(--ad-brand)), #e4e7ec 45%) !important;
    background: color-mix(in srgb, var(--metric-color, var(--ad-brand)), #ffffff 97%) !important;
}

html body.rn-admin-classic .ac-metric-available { --metric-color: #16a34a; }
html body.rn-admin-classic .ac-metric-reserved { --metric-color: #f59e0b; }
html body.rn-admin-classic .ac-metric-sold { --metric-color: #2563eb; }
html body.rn-admin-classic .ac-metric-voided { --metric-color: #dc2626; }
html body.rn-admin-classic .ac-metric-warning { --metric-color: #f79009; }
html body.rn-admin-classic .ac-metric-info { --metric-color: #0ea5e9; }
html body.rn-admin-classic .ac-metric-purple { --metric-color: #7c3aed; }
html body.rn-admin-classic .ac-metric-money { --metric-color: #0f9f98; }

html body.rn-admin-classic .ac-catalog-groups,
html body.rn-admin-classic .ac-stock-groups {
    display: grid !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-catalog-group,
html body.rn-admin-classic .ac-stock-group {
    overflow: hidden !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
}

html body.rn-admin-classic .ac-catalog-group-head,
html body.rn-admin-classic .ac-stock-group-head {
    min-height: 58px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--ad-border) !important;
    background: linear-gradient(90deg, rgba(15,159,152,.045), #ffffff 58%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-catalog-title {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-catalog-title img,
html body.rn-admin-classic .ac-catalog-title > span {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
    border: 1px solid var(--ad-border) !important;
    object-fit: contain !important;
    background: #f2f4f7 !important;
}

html body.rn-admin-classic .ac-catalog-title h3,
html body.rn-admin-classic .ac-stock-group-head h3 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

html body.rn-admin-classic .ac-catalog-title p,
html body.rn-admin-classic .ac-stock-group-head p {
    margin: 2px 0 0 !important;
    color: var(--ad-muted) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

html body.rn-admin-classic .ac-catalog-stats {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

html body.rn-admin-classic .ac-catalog-stats .ac-badge {
    min-height: 22px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
}

html body.rn-admin-classic .ac-catalog-group .ac-table-wrap {
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

html body.rn-admin-classic .ac-stock-panel {
    padding: 18px !important;
}

html body.rn-admin-classic .ac-stock-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr) !important;
}

html body.rn-admin-classic .ac-stock-code-list {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
}

html body.rn-admin-classic .ac-stock-code-card {
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto auto !important;
    align-items: center !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-stock-code-card strong {
    display: block !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-stock-code-card small {
    display: block !important;
    margin-top: 3px !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ac-stock-code-card code {
    min-height: 30px !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    border: 1px solid var(--ad-border) !important;
    background: #ffffff !important;
    color: #344054 !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    font-size: 12px !important;
    direction: ltr !important;
}

html body.rn-admin-classic .ac-batch-card {
    min-height: 64px !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-batch-card strong {
    display: block !important;
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-batch-card span:not(.ac-badge) {
    display: block !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    margin-top: 3px !important;
}

html body.rn-admin-classic .ac-batch-card b {
    width: 32px !important;
    height: 32px !important;
    border-radius: 999px !important;
    background: #e6fffb !important;
    color: var(--ad-brand-dark) !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-ticket-board {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

html body.rn-admin-classic .ac-ticket-card {
    --ticket-color: #0f9f98;
    min-width: 0 !important;
    padding: 16px !important;
    border: 1px solid var(--ad-border) !important;
    border-right: 4px solid var(--ticket-color) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
    color: var(--ad-text) !important;
    text-decoration: none !important;
    display: grid !important;
    gap: 14px !important;
    transition: transform .16s ease, border-color .16s ease, background .16s ease !important;
}

html body.rn-admin-classic .ac-ticket-card:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--ticket-color), #e4e7ec 45%) !important;
    background: color-mix(in srgb, var(--ticket-color), #ffffff 97%) !important;
}

html body.rn-admin-classic .ac-ticket-card.priority-high { --ticket-color: #dc2626; }
html body.rn-admin-classic .ac-ticket-card.priority-normal { --ticket-color: #2563eb; }
html body.rn-admin-classic .ac-ticket-card.priority-low { --ticket-color: #16a34a; }

html body.rn-admin-classic .ac-ticket-top,
html body.rn-admin-classic .ac-ticket-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-ticket-number {
    color: var(--ad-brand-dark) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    direction: ltr !important;
}

html body.rn-admin-classic .ac-ticket-card h3 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

html body.rn-admin-classic .ac-ticket-user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 10px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
}

html body.rn-admin-classic .ac-ticket-user > span {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #e6fffb !important;
    color: var(--ad-brand-dark) !important;
    border: 1px solid #bff3ee !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-ticket-user div {
    min-width: 0 !important;
}

html body.rn-admin-classic .ac-ticket-user strong,
html body.rn-admin-classic .ac-ticket-user small {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-ticket-user strong {
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-ticket-user small,
html body.rn-admin-classic .ac-ticket-foot small {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ac-badge.priority-high { background: #fef3f2 !important; border-color: #fecdca !important; color: #b42318 !important; }
html body.rn-admin-classic .ac-badge.priority-normal { background: #eff8ff !important; border-color: #b2ddff !important; color: #175cd3 !important; }
html body.rn-admin-classic .ac-badge.priority-low { background: #ecfdf3 !important; border-color: #abefc6 !important; color: #067647 !important; }

html body.rn-admin-classic .ac-ticket-detail-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 20px !important;
    align-items: start !important;
}

html body.rn-admin-classic .ac-ticket-thread,
html body.rn-admin-classic .ac-ticket-control {
    padding: 20px !important;
}

html body.rn-admin-classic .ac-message-list {
    display: grid !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ac-message {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-message.admin {
    flex-direction: row-reverse !important;
}

html body.rn-admin-classic .ac-message-avatar {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    color: var(--ad-brand-dark) !important;
    background: #e6fffb !important;
    border: 1px solid #bff3ee !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-message.admin .ac-message-avatar {
    background: #fffaeb !important;
    border-color: #fedf89 !important;
    color: #b54708 !important;
}

html body.rn-admin-classic .ac-message-bubble {
    min-width: 0 !important;
    max-width: min(720px, calc(100% - 50px)) !important;
    padding: 14px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #fbfcfd !important;
}

html body.rn-admin-classic .ac-message.admin .ac-message-bubble {
    background: #fffcf5 !important;
    border-color: #fedf89 !important;
}

html body.rn-admin-classic .ac-message-bubble header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
}

html body.rn-admin-classic .ac-message-bubble strong {
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-message-bubble span {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ac-message-bubble p {
    margin: 0 !important;
    color: #344054 !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    white-space: pre-wrap !important;
}

html body.rn-admin-classic .ac-ticket-side {
    display: grid !important;
    gap: 16px !important;
}

html body.rn-admin-classic .ac-ticket-control {
    display: grid !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ac-ticket-customer {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
}

html body.rn-admin-classic .ac-ticket-customer > span {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #e6fffb !important;
    border: 1px solid #bff3ee !important;
    color: var(--ad-brand-dark) !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-ticket-customer div {
    min-width: 0 !important;
}

html body.rn-admin-classic .ac-ticket-customer strong,
html body.rn-admin-classic .ac-ticket-customer small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-ticket-customer strong {
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-ticket-customer small {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ac-banner-grid,
html body.rn-admin-classic .ac-voucher-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)) !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ac-banner-card,
html body.rn-admin-classic .ac-voucher-card {
    min-width: 0 !important;
    padding: 14px !important;
    border: 1px solid var(--ad-border) !important;
    border-right: 4px solid var(--ad-brand) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
    display: grid !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-banner-card.inactive,
html body.rn-admin-classic .ac-voucher-card.inactive {
    border-right-color: #98a2b3 !important;
    background: #fbfcfd !important;
}

html body.rn-admin-classic .ac-banner-card {
    grid-template-columns: 120px minmax(0, 1fr) auto !important;
    align-items: center !important;
}

html body.rn-admin-classic .ac-banner-thumb {
    width: 120px !important;
    height: 64px !important;
    overflow: hidden !important;
    border-radius: var(--ad-radius-sm) !important;
    border: 1px solid var(--ad-border) !important;
    background: #f2f4f7 !important;
    display: grid !important;
    place-items: center !important;
}

html body.rn-admin-classic .ac-banner-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

html body.rn-admin-classic .ac-banner-thumb span {
    color: var(--ad-brand-dark) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-banner-body {
    min-width: 0 !important;
    display: grid !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-banner-body h3,
html body.rn-admin-classic .ac-voucher-main h3 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

html body.rn-admin-classic .ac-banner-body p {
    margin: 3px 0 0 !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

html body.rn-admin-classic .ac-banner-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

html body.rn-admin-classic .ac-voucher-card {
    grid-template-columns: 140px minmax(0, 1fr) 180px auto !important;
    align-items: center !important;
}

html body.rn-admin-classic .ac-voucher-code {
    min-height: 42px !important;
    padding: 10px !important;
    border-radius: var(--ad-radius-sm) !important;
    border: 1px dashed #bff3ee !important;
    background: #e6fffb !important;
    color: var(--ad-brand-dark) !important;
    direction: ltr !important;
    display: grid !important;
    place-items: center !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-voucher-main strong {
    display: block !important;
    margin-top: 4px !important;
    color: var(--ad-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ac-voucher-usage {
    display: grid !important;
    gap: 7px !important;
}

html body.rn-admin-classic .ac-voucher-usage span {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-voucher-usage > div {
    height: 8px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #eef4f4 !important;
}

html body.rn-admin-classic .ac-voucher-usage b {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: var(--ad-brand) !important;
}

html body.rn-admin-classic .ac-manual-payments {
    gap: 18px !important;
}

html body.rn-admin-classic .ac-mp-guide,
html body.rn-admin-classic .ac-mp-stats,
html body.rn-admin-classic .ac-mp-list {
    display: grid !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ac-mp-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-mp-guide article {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 8px 12px !important;
    align-items: center !important;
    padding: 16px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
}

html body.rn-admin-classic .ac-mp-guide article span {
    grid-row: span 2 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
    background: #e6f7f5 !important;
    color: var(--ad-brand-dark) !important;
    font-weight: 800 !important;
}

html body.rn-admin-classic .ac-mp-guide article strong,
html body.rn-admin-classic .ac-mp-card-head h2,
html body.rn-admin-classic .ac-mp-section h2,
html body.rn-admin-classic .ac-mp-section h3 {
    color: var(--ad-text) !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-mp-guide article p,
html body.rn-admin-classic .ac-mp-card-head p {
    margin: 0 !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

html body.rn-admin-classic .ac-mp-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-mp-create {
    padding: 0 !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-mp-create > summary,
html body.rn-admin-classic .ac-mp-edit > summary {
    cursor: pointer !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 18px !important;
    border-bottom: 1px solid var(--ad-border) !important;
    color: var(--ad-text) !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-mp-create > summary::-webkit-details-marker,
html body.rn-admin-classic .ac-mp-edit > summary::-webkit-details-marker {
    display: none !important;
}

html body.rn-admin-classic .ac-mp-create summary small,
html body.rn-admin-classic .ac-mp-create summary em {
    display: block !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

html body.rn-admin-classic .ac-mp-form {
    display: grid !important;
    gap: 14px !important;
    padding: 18px !important;
}

html body.rn-admin-classic .ac-mp-form.compact {
    padding: 14px 0 0 !important;
}

html body.rn-admin-classic .ac-mp-section {
    padding: 14px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #fbfcfd !important;
}

html body.rn-admin-classic .ac-mp-section h2,
html body.rn-admin-classic .ac-mp-section h3 {
    margin: 0 0 12px !important;
    font-size: 15px !important;
}

html body.rn-admin-classic .ac-mp-grid,
html body.rn-admin-classic .ac-mp-mini-grid,
html body.rn-admin-classic .ac-mp-field-grid {
    display: grid !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-mp-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-mp-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html body.rn-admin-classic .ac-mp-grid .full {
    grid-column: 1 / -1 !important;
}

html body.rn-admin-classic .ac-mp-receiver-list {
    display: grid !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-mp-mini-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 130px 130px !important;
}

html body.rn-admin-classic .ac-mp-field-grid {
    grid-template-columns: 140px minmax(0, 1fr) 110px minmax(0, 1fr) 110px 100px !important;
}

html body.rn-admin-classic .ac-mp-mini-grid input,
html body.rn-admin-classic .ac-mp-mini-grid select,
html body.rn-admin-classic .ac-mp-field-grid input,
html body.rn-admin-classic .ac-mp-field-grid select {
    min-width: 0 !important;
    height: 40px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--ad-text) !important;
    padding: 0 12px !important;
    font-size: 13px !important;
}

html body.rn-admin-classic .ac-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-mp-toggles {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

html body.rn-admin-classic .ac-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 9px 11px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--ad-text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-switch input {
    accent-color: var(--ad-brand) !important;
}

html body.rn-admin-classic .ac-mp-card {
    padding: 16px !important;
    border-right: 4px solid var(--ad-brand) !important;
}

html body.rn-admin-classic .ac-mp-card.inactive {
    border-right-color: #98a2b3 !important;
    opacity: .82 !important;
}

html body.rn-admin-classic .ac-mp-card-head {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 110px !important;
    gap: 14px !important;
    align-items: center !important;
}

html body.rn-admin-classic .ac-mp-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    background: #e6f7f5 !important;
    color: var(--ad-brand-dark) !important;
    font-weight: 800 !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-mp-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

html body.rn-admin-classic .ac-mp-card-head span {
    color: var(--ad-brand-dark) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-mp-card-head h2 {
    margin: 3px 0 !important;
    font-size: 18px !important;
}

html body.rn-admin-classic .ac-mp-card-meta {
    text-align: center !important;
    padding: 10px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
}

html body.rn-admin-classic .ac-mp-card-meta strong,
html body.rn-admin-classic .ac-mp-card-meta small {
    display: block !important;
}

html body.rn-admin-classic .ac-mp-card-meta strong {
    color: var(--ad-text) !important;
    font-size: 20px !important;
}

html body.rn-admin-classic .ac-mp-card-meta small {
    color: var(--ad-muted) !important;
    font-size: 11px !important;
}

html body.rn-admin-classic .ac-mp-preview {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

html body.rn-admin-classic .ac-mp-preview div {
    display: grid !important;
    gap: 4px !important;
    padding: 11px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
}

html body.rn-admin-classic .ac-mp-preview span,
html body.rn-admin-classic .ac-mp-preview em {
    color: var(--ad-muted) !important;
    font-size: 11px !important;
    font-style: normal !important;
}

html body.rn-admin-classic .ac-mp-preview strong {
    color: var(--ad-text) !important;
    font-size: 14px !important;
    direction: ltr !important;
    text-align: right !important;
}

html body.rn-admin-classic .ac-mp-edit {
    margin-top: 14px !important;
    border-top: 1px solid var(--ad-border) !important;
}

html body.rn-admin-classic .ac-mp-edit > summary {
    padding: 14px 0 0 !important;
    border-bottom: 0 !important;
    color: var(--ad-brand-dark) !important;
}

html body.rn-admin-classic .ac-mp-actions,
html body.rn-admin-classic .ac-mp-delete {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-table-wrap {
    width: 100% !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    overflow-x: auto !important;
}

html body.rn-admin-classic .ac-table {
    width: 100% !important;
    min-width: 860px !important;
    border-collapse: collapse !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    direction: rtl !important;
}

html body.rn-admin-classic .ac-table th,
html body.rn-admin-classic .ac-table td {
    padding: 14px 12px !important;
    border-bottom: 1px solid var(--ad-border) !important;
    text-align: right !important;
    vertical-align: middle !important;
}

html body.rn-admin-classic .ac-table th {
    background: #f9fafb !important;
    color: #475467 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-table tbody tr:hover {
    background: #fcfcfd !important;
}

html body.rn-admin-classic .ac-table a {
    color: var(--ad-brand-dark) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

html body.rn-admin-classic .ac-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    border: 1px solid var(--ad-border) !important;
    background: #f2f4f7 !important;
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

html body.rn-admin-classic .ac-badge.green { background: #ecfdf3 !important; border-color: #abefc6 !important; color: #067647 !important; }
html body.rn-admin-classic .ac-badge.red { background: #fef3f2 !important; border-color: #fecdca !important; color: #b42318 !important; }
html body.rn-admin-classic .ac-badge.orange { background: #fffaeb !important; border-color: #fedf89 !important; color: #b54708 !important; }
html body.rn-admin-classic .ac-badge.blue { background: #eff8ff !important; border-color: #b2ddff !important; color: #175cd3 !important; }
html body.rn-admin-classic .ac-badge.purple { background: #f4f3ff !important; border-color: #d9d6fe !important; color: #5925dc !important; }
html body.rn-admin-classic .ac-badge.slate { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #475569 !important; }
html body.rn-admin-classic .ac-badge.status-paid,
html body.rn-admin-classic .ac-badge.status-completed,
html body.rn-admin-classic .ac-badge.status-available,
html body.rn-admin-classic .ac-badge.status-active { background: #ecfdf3 !important; border-color: #abefc6 !important; color: #067647 !important; }
html body.rn-admin-classic .ac-badge.status-pending,
html body.rn-admin-classic .ac-badge.status-reserved,
html body.rn-admin-classic .ac-badge.status-processing { background: #fffaeb !important; border-color: #fedf89 !important; color: #b54708 !important; }
html body.rn-admin-classic .ac-badge.status-failed,
html body.rn-admin-classic .ac-badge.status-voided,
html body.rn-admin-classic .ac-badge.status-inactive { background: #fef3f2 !important; border-color: #fecdca !important; color: #b42318 !important; }
html body.rn-admin-classic .ac-badge.status-sold,
html body.rn-admin-classic .ac-badge.status-refunded,
html body.rn-admin-classic .ac-badge.status-info_required { background: #eff8ff !important; border-color: #b2ddff !important; color: #175cd3 !important; }
html body.rn-admin-classic .ac-badge.method-api { background: #eff8ff !important; border-color: #b2ddff !important; color: #175cd3 !important; }
html body.rn-admin-classic .ac-badge.method-manual { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #475569 !important; }
html body.rn-admin-classic .ac-badge.method-stored_code { background: #f4f3ff !important; border-color: #d9d6fe !important; color: #5925dc !important; }
html body.rn-admin-classic .ac-badge.method-hybrid { background: #fdf2fa !important; border-color: #fcceee !important; color: #c11574 !important; }

html body.rn-admin-classic .ac-empty {
    min-height: 120px !important;
    display: grid !important;
    place-items: center !important;
    color: var(--ad-muted) !important;
    text-align: center !important;
    border: 1px dashed var(--ad-border-strong) !important;
    border-radius: var(--ad-radius) !important;
    background: #fcfcfd !important;
}

html body.rn-admin-classic .ad-page-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

html body.rn-admin-classic .ad-page-head p {
    margin: 0 0 4px !important;
    color: var(--ad-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ad-page-head h1 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ad-page-head > div > span {
    display: block !important;
    margin-top: 6px !important;
    color: #475467 !important;
    font-size: 13px !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ad-export-menu {
    position: relative !important;
}

html body.rn-admin-classic .ad-export-menu summary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 150px !important;
    padding: 0 14px !important;
    list-style: none !important;
    cursor: pointer !important;
}

html body.rn-admin-classic .ad-export-menu summary::-webkit-details-marker {
    display: none !important;
}

html body.rn-admin-classic .ad-export-menu > div {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    z-index: 120 !important;
    min-width: 220px !important;
    padding: 6px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(16, 24, 40, .12) !important;
}

html body.rn-admin-classic .ad-export-menu:not([open]) > div {
    display: none !important;
}

html body.rn-admin-classic .ad-export-menu > div a {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

html body.rn-admin-classic .ad-export-menu > div a:hover {
    background: #f2f4f7 !important;
    color: var(--ad-text) !important;
}

html body.rn-admin-classic .ad-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

html body.rn-admin-classic .ad-kpi-card {
    min-height: 132px !important;
    padding: 18px !important;
    display: grid !important;
    align-content: space-between !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ad-kpi-card header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ad-kpi-card header p {
    margin: 0 !important;
    color: var(--ad-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ad-kpi-card strong {
    display: block !important;
    color: var(--ad-text) !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ad-kpi-card footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

html body.rn-admin-classic .ad-kpi-card footer span {
    color: var(--ad-brand-dark) !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ad-kpi-card footer em {
    color: var(--ad-muted) !important;
    font-style: normal !important;
}

html body.rn-admin-classic .ad-chart-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 24px !important;
    align-items: stretch !important;
}

html body.rn-admin-classic .ad-card {
    padding: 20px !important;
}

html body.rn-admin-classic .ad-card-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

html body.rn-admin-classic .ad-card-head h2 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ad-card-head p {
    margin: 4px 0 0 !important;
    color: var(--ad-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

html body.rn-admin-classic .ad-segmented {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 16px !important;
}

html body.rn-admin-classic .ad-segmented > a,
html body.rn-admin-classic .ad-date-range button {
    min-height: 40px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

html body.rn-admin-classic .ad-segmented > a.active {
    border-color: #99e4df !important;
    background: #e8f7f6 !important;
    color: var(--ad-brand-dark) !important;
}

html body.rn-admin-classic .ad-date-range {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

html body.rn-admin-classic .ad-chart-skeleton,
html body.rn-admin-classic .ad-mini-chart {
    min-height: 300px !important;
}

html body.rn-admin-classic .ad-mini-chart {
    min-height: 160px !important;
}

html body.rn-admin-classic .ad-status-list,
html body.rn-admin-classic .ad-list-compact,
html body.rn-admin-classic .ad-widget-metrics {
    display: grid !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ad-status-list a,
html body.rn-admin-classic .ad-list-compact a,
html body.rn-admin-classic .ad-widget-metrics > div,
html body.rn-admin-classic .ad-wallet-total,
html body.rn-admin-classic .ad-empty-state {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
    text-decoration: none !important;
}

html body.rn-admin-classic .ad-status-list span,
html body.rn-admin-classic .ad-list-compact span,
html body.rn-admin-classic .ad-widget-metrics span,
html body.rn-admin-classic .ad-wallet-total span,
html body.rn-admin-classic .ad-empty-state span {
    color: var(--ad-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

html body.rn-admin-classic .ad-status-list strong,
html body.rn-admin-classic .ad-widget-metrics strong,
html body.rn-admin-classic .ad-wallet-total strong {
    color: var(--ad-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ad-widget-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

html body.rn-admin-classic .ad-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

html body.rn-admin-classic .ad-table th,
html body.rn-admin-classic .ad-table td {
    padding: 14px 12px !important;
    border-bottom: 1px solid var(--ad-border) !important;
    text-align: right !important;
}

html body.rn-admin-classic .ad-table th {
    color: #475467 !important;
    background: #f9fafb !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ad-kpi-icon {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: #e8f7f6 !important;
    color: var(--ad-brand) !important;
}

html body.rn-admin-classic .ad-kpi-icon svg {
    width: 18px !important;
    height: 18px !important;
}

html body.rn-admin-classic input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html body.rn-admin-classic select,
html body.rn-admin-classic textarea {
    min-height: 40px;
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius-sm);
    background: #ffffff;
    color: var(--ad-text);
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

html body.rn-admin-classic textarea {
    min-height: 96px;
    padding-block: 10px;
}

html body.rn-admin-classic button,
html body.rn-admin-classic a {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

html body.rn-admin-classic button:not(.ac-iconbtn):not([data-admin-sidebar-toggle]),
html body.rn-admin-classic input[type="submit"] {
    min-height: 40px;
    border-radius: var(--ad-radius-sm);
    padding-inline: 14px;
    font-weight: 600;
}

html body.rn-admin-classic nav[role="navigation"] svg,
html body.rn-admin-classic .pagination svg,
html body.rn-admin-classic svg.w-5,
html body.rn-admin-classic .w-5.h-5 {
    width: 20px !important;
    height: 20px !important;
}

html body.rn-admin-classic .ad-table-wrap,
html body.rn-admin-classic .overflow-x-auto {
    max-width: 100%;
    overflow-x: auto;
}

html body.rn-admin-classic :focus-visible {
    outline: 2px solid rgba(15, 159, 152, .35) !important;
    outline-offset: 2px !important;
}

@media (max-width: 1180px) {
    html body.rn-admin-classic .ac-mobilebar {
        display: flex !important;
        position: fixed !important;
        inset: 0 0 auto 0 !important;
        z-index: 100 !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border-bottom: 1px solid var(--ad-border) !important;
    }

    html body.rn-admin-classic .ac-sidebar,
    html body.rn-admin-classic.ac-sidebar-expanded .ac-sidebar {
        top: 56px !important;
        width: min(280px, calc(100vw - 32px)) !important;
        max-width: min(280px, calc(100vw - 32px)) !important;
        height: calc(100vh - 56px) !important;
        transform: translateX(110%) !important;
        transition: transform .2s ease !important;
    }

    html body.rn-admin-classic .ac-sidebar.open {
        transform: translateX(0) !important;
    }

    html body.rn-admin-classic .ac-topbar {
        top: 56px !important;
        right: 0 !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 0 16px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    html body.rn-admin-classic .ac-main {
        margin-right: 0 !important;
        padding: 136px 16px 28px !important;
    }
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ac-actions {
        width: auto !important;
        flex: 0 0 auto !important;
        overflow-x: visible !important;
        justify-content: flex-start !important;
    }

    html body.rn-admin-classic .ac-topbar {
        gap: 8px !important;
    }

    html body.rn-admin-classic .ac-search {
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        flex: 0 0 112px !important;
        padding-inline: 10px !important;
    }

    html body.rn-admin-classic .ac-search input {
        font-size: 12px !important;
    }

    html body.rn-admin-classic .ac-store {
        display: none !important;
    }

    html body.rn-admin-classic .ac-user summary {
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    html body.rn-admin-classic .ac-user summary b {
        display: none !important;
    }

    html body.rn-admin-classic .ac-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
        gap: 16px !important;
    }

    html body.rn-admin-classic .ac-section,
    html body.rn-admin-classic .ad-dashboard,
    html body.rn-admin-classic .lc-page-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.rn-admin-classic .section-heading {
        padding: 16px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body.rn-admin-classic .admin-row {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body.rn-admin-classic .admin-row > span:last-child,
    html body.rn-admin-classic .admin-row .flex.gap-2 {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    html body.rn-admin-classic .ac-panel-head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body.rn-admin-classic .ac-panel-head .ac-actions {
        width: 100% !important;
        overflow-x: visible !important;
    }

    html body.rn-admin-classic .ac-filter,
    html body.rn-admin-classic .ac-bulkbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        padding: 10px !important;
    }

    html body.rn-admin-classic .ac-filter input,
    html body.rn-admin-classic .ac-filter select,
    html body.rn-admin-classic .ac-filter button,
    html body.rn-admin-classic .ac-bulkbar select,
    html body.rn-admin-classic .ac-bulkbar button {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body.rn-admin-classic .ac-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    html body.rn-admin-classic .ac-kpi {
        min-height: 84px !important;
        padding: 13px !important;
    }

    html body.rn-admin-classic .ac-kpi strong {
        font-size: 20px !important;
    }

    html body.rn-admin-classic .ad-kpi-row,
    html body.rn-admin-classic .ad-chart-layout,
    html body.rn-admin-classic .ad-widget-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

html body.rn-admin-classic.rn-admin-saas .ac-sidebar,
html body.rn-admin-classic.rn-admin-saas.ac-sidebar-expanded .ac-sidebar {
    width: 240px !important;
    max-width: 240px !important;
    min-width: 240px !important;
    padding: 16px 12px !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-brand > span:not(.ac-brand-logo),
html body.rn-admin-classic.rn-admin-saas .ac-nav-group p,
html body.rn-admin-classic.rn-admin-saas .ac-nav a span {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-nav a,
html body.rn-admin-classic.rn-admin-saas.ac-sidebar-expanded .ac-nav a {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: right !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-nav a svg {
    flex: 0 0 18px !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-nav a span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    line-height: 1.45 !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-topbar {
    right: 240px !important;
    left: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    grid-template-columns: none !important;
    padding-right: 264px !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-main {
    margin-right: 240px !important;
}

html body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar,
html body.rn-admin-classic.rn-admin-saas .ac-topbar {
    box-sizing: border-box !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding-block: 0 !important;
    padding-inline-start: 24px !important;
    padding-inline-end: 264px !important;
}

@media (max-width: 1180px) {
    html body.rn-admin-classic.rn-admin-saas .ac-sidebar,
    html body.rn-admin-classic.rn-admin-saas.ac-sidebar-expanded .ac-sidebar {
        width: min(280px, calc(100vw - 32px)) !important;
        max-width: min(280px, calc(100vw - 32px)) !important;
        min-width: 0 !important;
    }

    html body.rn-admin-classic.rn-admin-saas .ac-topbar {
        right: 0 !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding-block: 0 !important;
        padding-inline: 16px !important;
    }

    html body.rn-admin-classic.rn-admin-saas .ac-main {
        margin-right: 0 !important;
    }

    html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
        margin-right: 0 !important;
    }
}

/* Final compatibility polish for legacy admin pages after removing storefront CSS. */
html body.rn-admin-classic .ad-card-head > a,
html body.rn-admin-classic .ad-card-head > button,
html body.rn-admin-classic .ad-card-head .ad-btn,
html body.rn-admin-classic .ac-panel-head > a,
html body.rn-admin-classic .ac-panel-head > button,
html body.rn-admin-classic .section-heading > a,
html body.rn-admin-classic .section-heading > button {
    flex: 0 0 auto !important;
}

html body.rn-admin-classic .ad-btn,
html body.rn-admin-classic .ac-btn,
html body.rn-admin-classic .primary-button,
html body.rn-admin-classic .secondary-button {
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ad-btn.ghost {
    height: 34px !important;
    padding-inline: 10px !important;
    color: var(--ad-brand) !important;
    border-color: var(--ad-border) !important;
}

html body.rn-admin-classic .ad-btn.ghost:hover,
html body.rn-admin-classic .secondary-button:hover,
html body.rn-admin-classic .ac-btn.secondary:hover {
    border-color: rgba(15, 159, 152, .35) !important;
    background: rgba(15, 159, 152, .06) !important;
    color: var(--ad-brand) !important;
}

html body.rn-admin-classic .metric-card {
    min-height: 74px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
    padding: 14px !important;
    display: grid !important;
    align-content: center !important;
    gap: 6px !important;
    box-shadow: none !important;
}

html body.rn-admin-classic .metric-card span {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

html body.rn-admin-classic .metric-card strong {
    color: var(--ad-text) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .surface.p-4,
html body.rn-admin-classic .surface.p-5,
html body.rn-admin-classic .surface.p-6 {
    padding: 20px !important;
}

html body.rn-admin-classic .surface.mt-5,
html body.rn-admin-classic .surface.mt-6,
html body.rn-admin-classic .mt-6 {
    margin-top: 20px !important;
}

html body.rn-admin-classic .lc-page-shell > form.surface,
html body.rn-admin-classic .lc-page-shell > form:not(.ad-date-range),
html body.rn-admin-classic .ac-section > form {
    width: 100% !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
    box-shadow: var(--ad-shadow) !important;
}

html body.rn-admin-classic .form-field {
    display: grid !important;
    gap: 7px !important;
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .form-field > span {
    color: #344054 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

html body.rn-admin-classic .form-field input,
html body.rn-admin-classic .form-field select,
html body.rn-admin-classic .form-field textarea {
    width: 100% !important;
}

html body.rn-admin-classic .ac-list,
html body.rn-admin-classic .ad-list-compact {
    display: grid !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-list-row {
    min-height: 54px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #ffffff !important;
    padding: 12px 14px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-list-row span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--ad-text) !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-list-row strong {
    color: var(--ad-text) !important;
    font-variant-numeric: tabular-nums !important;
}

html body.rn-admin-classic .ac-list-row em {
    color: var(--ad-muted) !important;
    font-style: normal !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ad-empty-state,
html body.rn-admin-classic .ac-empty {
    min-height: 96px !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
    color: var(--ad-muted) !important;
    border: 1px dashed var(--ad-border) !important;
    border-radius: var(--ad-radius-sm) !important;
    background: #fbfcfd !important;
    padding: 18px !important;
}

html body.rn-admin-classic .ad-table-wrap,
html body.rn-admin-classic .ac-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: var(--ad-radius) !important;
    background: #ffffff !important;
}

html body.rn-admin-classic .ad-table,
html body.rn-admin-classic .ac-table {
    width: 100% !important;
    min-width: 760px !important;
    border-collapse: collapse !important;
}

html body.rn-admin-classic .ac-check {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rn-admin-classic .ac-check input {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--ad-brand) !important;
}

html body.rn-admin-classic .ac-permission-grid {
    margin-top: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px 14px !important;
}

html body.rn-admin-classic .ac-customer-name {
    margin: 12px 0 4px !important;
    color: var(--ad-text) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

html body.rn-admin-classic .ac-customer-card {
    min-width: 0 !important;
}

html body.rn-admin-classic .ac-customer-card > .ac-customer-head {
    justify-content: space-between !important;
}

html body.rn-admin-classic .ac-customer-card .ac-avatar {
    margin-inline: auto !important;
}

html body.rn-admin-classic .ad-card .ad-table-wrap,
html body.rn-admin-classic .ac-panel .ac-table-wrap,
html body.rn-admin-classic .surface .ac-table-wrap {
    margin-top: 8px !important;
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ad-page-head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    html body.rn-admin-classic .ad-export-menu {
        justify-self: start !important;
    }

    html body.rn-admin-classic .ad-export-menu summary {
        width: auto !important;
    }

    html body.rn-admin-classic .ad-date-range,
    html body.rn-admin-classic .ad-segmented {
        width: 100% !important;
        overflow-x: auto !important;
    }

    html body.rn-admin-classic .ad-card-head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body.rn-admin-classic .ac-kpi-grid {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-list-row {
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    html body.rn-admin-classic .ac-grid-2,
    html body.rn-admin-classic .ac-grid-3,
    html body.rn-admin-classic .ac-customer-grid,
    html body.rn-admin-classic .ac-form-grid {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-customer-metrics {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-mini-stats,
    html body.rn-admin-classic .ac-micro-grid {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-status-strip {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-entity-card {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    html body.rn-admin-classic .ac-entity-card .ac-actions {
        width: 100% !important;
        justify-content: stretch !important;
    }

    html body.rn-admin-classic .ac-entity-card .ac-actions > a,
    html body.rn-admin-classic .ac-entity-card .ac-actions > form,
    html body.rn-admin-classic .ac-entity-card .ac-actions button {
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    html body.rn-admin-classic .ac-catalog-group-head,
    html body.rn-admin-classic .ac-stock-group-head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    html body.rn-admin-classic .ac-stock-code-card,
    html body.rn-admin-classic .ac-batch-card {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    html body.rn-admin-classic .ac-stock-code-card .ac-actions,
    html body.rn-admin-classic .ac-stock-code-card .ac-actions > a,
    html body.rn-admin-classic .ac-stock-code-card .ac-actions > form,
    html body.rn-admin-classic .ac-stock-code-card .ac-actions button {
        width: 100% !important;
    }

    html body.rn-admin-classic .ac-ticket-board {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-ticket-detail-layout {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-message,
    html body.rn-admin-classic .ac-message.admin {
        flex-direction: row !important;
    }

    html body.rn-admin-classic .ac-message-bubble {
        max-width: calc(100% - 50px) !important;
    }

    html body.rn-admin-classic .ac-banner-grid,
    html body.rn-admin-classic .ac-voucher-grid,
    html body.rn-admin-classic .ac-banner-card,
    html body.rn-admin-classic .ac-voucher-card {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-banner-thumb {
        width: 100% !important;
        height: 120px !important;
    }

    html body.rn-admin-classic .ac-mp-guide,
    html body.rn-admin-classic .ac-mp-stats,
    html body.rn-admin-classic .ac-mp-grid.two,
    html body.rn-admin-classic .ac-mp-grid.four,
    html body.rn-admin-classic .ac-mp-mini-grid,
    html body.rn-admin-classic .ac-mp-field-grid,
    html body.rn-admin-classic .ac-mp-card-head {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-mp-card-meta {
        text-align: right !important;
    }

    html body.rn-admin-classic .ac-customer-head {
        align-items: flex-start !important;
    }

    html body.rn-admin-classic .ac-permission-grid {
        grid-template-columns: 1fr !important;
    }
}

/* EOF responsive hardening — admin SaaS mobile/tablet.
   Kept at the end because legacy admin pages still emit mixed utility classes. */
html:has(body.rn-admin-classic),
html body.rn-admin-classic {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
}

html body.rn-admin-classic *,
html body.rn-admin-classic *::before,
html body.rn-admin-classic *::after {
    min-width: 0;
}

html body.rn-admin-classic img,
html body.rn-admin-classic svg,
html body.rn-admin-classic canvas,
html body.rn-admin-classic video {
    max-width: 100%;
}

html body.rn-admin-classic .ac-shell,
html body.rn-admin-classic .ac-workspace,
html body.rn-admin-classic .ac-main,
html body.rn-admin-classic .ad-dashboard,
html body.rn-admin-classic .ac-section,
html body.rn-admin-classic .lc-page-shell,
html body.rn-admin-classic .ad-card,
html body.rn-admin-classic .ac-panel,
html body.rn-admin-classic .surface,
html body.rn-admin-classic form,
html body.rn-admin-classic fieldset {
    max-width: 100% !important;
}

html body.rn-admin-classic .ac-actions,
html body.rn-admin-classic .ac-panel-head,
html body.rn-admin-classic .ad-card-head,
html body.rn-admin-classic .section-heading,
html body.rn-admin-classic .ad-page-head {
    min-width: 0 !important;
}

@media (max-width: 1180px) {
    html body.rn-admin-classic .ac-mobilebar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 56px !important;
        padding: 0 12px !important;
        overflow: hidden !important;
    }

    html body.rn-admin-classic .ac-mobilebrand {
        max-width: calc(100vw - 72px) !important;
        min-width: 0 !important;
    }

    html body.rn-admin-classic .ac-sidebar,
    html body.rn-admin-classic.ac-sidebar-expanded .ac-sidebar {
        top: 56px !important;
        right: 0 !important;
        left: auto !important;
        width: min(286px, calc(100vw - 28px)) !important;
        max-width: calc(100vw - 28px) !important;
        height: calc(100dvh - 56px) !important;
        border-left: 1px solid var(--ad-border) !important;
        border-right: 0 !important;
        transform: translateX(110%) !important;
        z-index: 120 !important;
    }

    html body.rn-admin-classic .ac-sidebar.open {
        transform: translateX(0) !important;
    }

    html body.rn-admin-classic .ac-workspace {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
    }

    html body.rn-admin-classic .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar {
        position: fixed !important;
        top: 56px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 112px !important;
        max-height: none !important;
        padding: 10px 12px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        overflow: visible !important;
        z-index: 90 !important;
        background: rgba(255, 255, 255, .98) !important;
        backdrop-filter: blur(10px);
    }

    html body.rn-admin-classic .ac-search {
        order: 1 !important;
        width: 100% !important;
        max-width: none !important;
        height: 40px !important;
        margin: 0 !important;
    }

    html body.rn-admin-classic .ac-search input {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 13px !important;
    }

    html body.rn-admin-classic .ac-actions,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        overscroll-behavior-inline: contain;
        padding: 0 0 2px !important;
        scrollbar-width: none;
    }

    html body.rn-admin-classic .ac-actions::-webkit-scrollbar {
        display: none;
    }

    html body.rn-admin-classic .ac-iconbtn,
    html body.rn-admin-classic .ac-user summary {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
        flex: 0 0 auto !important;
    }

    html body.rn-admin-classic .ac-store,
    html body.rn-admin-classic .ac-btn,
    html body.rn-admin-classic .ad-btn,
    html body.rn-admin-classic .primary-button,
    html body.rn-admin-classic .secondary-button {
        height: 38px !important;
        min-height: 38px !important;
        padding-inline: 12px !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    html body.rn-admin-classic .ac-user summary {
        max-width: 44px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    html body.rn-admin-classic .ac-user summary b,
    html body.rn-admin-classic .ac-user summary::after {
        display: none !important;
    }

    html body.rn-admin-classic .ac-user > div {
        top: calc(100% + 10px) !important;
        inset-inline-end: auto !important;
        inset-inline-start: 0 !important;
        width: min(260px, calc(100vw - 24px)) !important;
    }

    html body.rn-admin-classic .ac-main,
    html body.rn-admin-classic.rn-admin-saas .ac-main {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 188px 12px 28px !important;
        overflow-x: clip !important;
    }
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ad-dashboard,
    html body.rn-admin-classic .ac-section,
    html body.rn-admin-classic .lc-page-shell {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.rn-admin-classic .ad-page-head,
    html body.rn-admin-classic .section-heading,
    html body.rn-admin-classic .ac-panel-head,
    html body.rn-admin-classic .ad-card-head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        align-items: start !important;
        text-align: start !important;
    }

    html body.rn-admin-classic .ad-page-head h1,
    html body.rn-admin-classic .section-heading h1,
    html body.rn-admin-classic .ac-panel-head h1,
    html body.rn-admin-classic .ac-panel-head h2,
    html body.rn-admin-classic .ad-card-head h2 {
        font-size: clamp(20px, 6vw, 25px) !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    html body.rn-admin-classic .ad-card,
    html body.rn-admin-classic .ad-kpi-card,
    html body.rn-admin-classic .ac-panel,
    html body.rn-admin-classic .surface,
    html body.rn-admin-classic .metric-card,
    html body.rn-admin-classic .ac-kpi {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }

    html body.rn-admin-classic .ad-kpi-row,
    html body.rn-admin-classic .ad-chart-layout,
    html body.rn-admin-classic .ad-widget-grid,
    html body.rn-admin-classic .ac-kpi-grid,
    html body.rn-admin-classic .ac-grid-2,
    html body.rn-admin-classic .ac-grid-3,
    html body.rn-admin-classic .ac-customer-grid,
    html body.rn-admin-classic .ac-form-grid,
    html body.rn-admin-classic .ac-status-strip,
    html body.rn-admin-classic .ac-micro-grid,
    html body.rn-admin-classic .ac-mini-stats,
    html body.rn-admin-classic .ac-ticket-board,
    html body.rn-admin-classic .ac-ticket-detail-layout,
    html body.rn-admin-classic .ac-stock-layout,
    html body.rn-admin-classic .ac-banner-grid,
    html body.rn-admin-classic .ac-voucher-grid,
    html body.rn-admin-classic .ac-mp-guide,
    html body.rn-admin-classic .ac-mp-stats,
    html body.rn-admin-classic .ac-mp-grid,
    html body.rn-admin-classic .ac-mp-mini-grid,
    html body.rn-admin-classic .ac-mp-field-grid,
    html body.rn-admin-classic .ac-permission-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body.rn-admin-classic .ac-filter,
    html body.rn-admin-classic .ac-bulkbar,
    html body.rn-admin-classic .ad-date-range {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    html body.rn-admin-classic .ad-segmented {
        width: 100% !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }

    html body.rn-admin-classic .ad-segmented::-webkit-scrollbar {
        display: none;
    }

    html body.rn-admin-classic input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    html body.rn-admin-classic select,
    html body.rn-admin-classic textarea,
    html body.rn-admin-classic .ac-filter button,
    html body.rn-admin-classic .ac-bulkbar button,
    html body.rn-admin-classic .ad-date-range button {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 40px !important;
    }

    html body.rn-admin-classic .ac-actions,
    html body.rn-admin-classic .ac-panel .ac-actions,
    html body.rn-admin-classic .ac-panel-head .ac-actions,
    html body.rn-admin-classic .ac-table .ac-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        overflow: visible !important;
    }

    html body.rn-admin-classic .ac-entity-card,
    html body.rn-admin-classic .ac-stock-code-card,
    html body.rn-admin-classic .ac-batch-card,
    html body.rn-admin-classic .ac-mp-card-head,
    html body.rn-admin-classic .admin-row,
    html body.rn-admin-classic .ac-list-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html body.rn-admin-classic .ac-customer-head,
    html body.rn-admin-classic .ac-catalog-group-head,
    html body.rn-admin-classic .ac-stock-group-head,
    html body.rn-admin-classic .ac-ticket-top,
    html body.rn-admin-classic .ac-ticket-foot {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        align-items: start !important;
    }

    html body.rn-admin-classic .ac-avatar {
        width: 48px !important;
        height: 48px !important;
    }

    html body.rn-admin-classic .ac-catalog-title {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    html body.rn-admin-classic .ac-catalog-title img,
    html body.rn-admin-classic .ac-catalog-title > span,
    html body.rn-admin-classic .ac-entity-cover {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
    }

    html body.rn-admin-classic .ac-catalog-stats,
    html body.rn-admin-classic .ac-mp-card-meta,
    html body.rn-admin-classic .ad-widget-metrics,
    html body.rn-admin-classic .ac-customer-metrics {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    html body.rn-admin-classic .ac-customer-metrics > div,
    html body.rn-admin-classic .ac-mini-stats > div,
    html body.rn-admin-classic .ac-micro-grid > div,
    html body.rn-admin-classic .ad-widget-metrics > div {
        padding: 10px !important;
    }

    html body.rn-admin-classic .ad-table-wrap,
    html body.rn-admin-classic .ac-table-wrap,
    html body.rn-admin-classic .overflow-x-auto {
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    html body.rn-admin-classic .ad-table,
    html body.rn-admin-classic .ac-table,
    html body.rn-admin-classic table {
        min-width: 0 !important;
        width: 100% !important;
        display: block !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    html body.rn-admin-classic .ad-table thead,
    html body.rn-admin-classic .ac-table thead,
    html body.rn-admin-classic table thead {
        display: none !important;
    }

    html body.rn-admin-classic .ad-table tbody,
    html body.rn-admin-classic .ac-table tbody,
    html body.rn-admin-classic table tbody,
    html body.rn-admin-classic .ad-table tr,
    html body.rn-admin-classic .ac-table tr,
    html body.rn-admin-classic table tr,
    html body.rn-admin-classic .ad-table td,
    html body.rn-admin-classic .ac-table td,
    html body.rn-admin-classic table td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.rn-admin-classic .ad-table tr,
    html body.rn-admin-classic .ac-table tr,
    html body.rn-admin-classic table tbody tr {
        margin: 0 0 10px !important;
        padding: 12px !important;
        border: 1px solid var(--ad-border) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
    }

    html body.rn-admin-classic .ad-table td,
    html body.rn-admin-classic .ac-table td,
    html body.rn-admin-classic table td {
        padding: 7px 0 !important;
        border: 0 !important;
        text-align: start !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    html body.rn-admin-classic .ad-table td + td,
    html body.rn-admin-classic .ac-table td + td,
    html body.rn-admin-classic table td + td {
        border-top: 1px solid #f2f4f7 !important;
    }

    html body.rn-admin-classic .ad-table td strong,
    html body.rn-admin-classic .ad-table td a,
    html body.rn-admin-classic .ac-table td strong,
    html body.rn-admin-classic .ac-table td a {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

@media (max-width: 420px) {
    html body.rn-admin-classic .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar {
        padding-inline: 10px !important;
    }

    html body.rn-admin-classic .ac-main,
    html body.rn-admin-classic.rn-admin-saas .ac-main {
        padding-inline: 10px !important;
    }

    html body.rn-admin-classic .ac-store {
        max-width: 102px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.rn-admin-classic .ac-iconbtn,
    html body.rn-admin-classic .ac-user summary {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    html body.rn-admin-classic .ad-card,
    html body.rn-admin-classic .ad-kpi-card,
    html body.rn-admin-classic .ac-panel,
    html body.rn-admin-classic .surface,
    html body.rn-admin-classic .metric-card,
    html body.rn-admin-classic .ac-kpi {
        padding: 12px !important;
    }

    html body.rn-admin-classic .ac-catalog-stats,
    html body.rn-admin-classic .ac-mp-card-meta,
    html body.rn-admin-classic .ad-widget-metrics,
    html body.rn-admin-classic .ac-customer-metrics {
        grid-template-columns: 1fr !important;
    }
}

/* Admin header/theme final pass */
html body.rn-admin-classic .ac-theme-toggle .ac-theme-sun {
    display: block !important;
}

html body.rn-admin-classic .ac-theme-toggle .ac-theme-moon {
    display: none !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-theme-toggle .ac-theme-sun {
    display: none !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-theme-toggle .ac-theme-moon {
    display: block !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-mobilebar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-topbar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-sidebar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-kpi-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-panel,
html[data-admin-theme="dark"] body.rn-admin-classic .surface,
html[data-admin-theme="dark"] body.rn-admin-classic .metric-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-kpi,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-table tr,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-table tr,
html[data-admin-theme="dark"] body.rn-admin-classic table tbody tr {
    background: var(--ad-card) !important;
    color: var(--ad-text) !important;
    border-color: var(--ad-border) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-search,
html[data-admin-theme="dark"] body.rn-admin-classic input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html[data-admin-theme="dark"] body.rn-admin-classic select,
html[data-admin-theme="dark"] body.rn-admin-classic textarea,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-iconbtn,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user summary,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mobilebar button,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mobilebrand,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-status-list a,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-list-compact a,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-widget-metrics > div,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-empty-state,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-empty {
    background: #0b1220 !important;
    color: var(--ad-text) !important;
    border-color: var(--ad-border) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-search input,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-panel-head h1,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-panel-head h2,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-card-head h2,
html[data-admin-theme="dark"] body.rn-admin-classic .section-heading h1,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-page-head h1,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-kpi-card strong,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-status-list strong,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user summary b,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-brand strong {
    color: var(--ad-text) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-panel-head p,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-card-head p,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-page-head p,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-page-head span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-muted,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-status-list span,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-kpi-card footer,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-brand small,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav-group p {
    color: var(--ad-muted) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a:hover,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a.active {
    background: rgba(20, 184, 166, .12) !important;
    color: #5eead4 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user a,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user button {
    color: #cbd5e1 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a svg {
    color: #94a3b8 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a:hover,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a:hover span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a.active,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a.active span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-nav a.active svg {
    color: #99f6e4 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ad-num,
html[data-admin-theme="dark"] body.rn-admin-classic .tabular-nums,
html[data-admin-theme="dark"] body.rn-admin-classic td,
html[data-admin-theme="dark"] body.rn-admin-classic th,
html[data-admin-theme="dark"] body.rn-admin-classic td strong,
html[data-admin-theme="dark"] body.rn-admin-classic td a,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-list-row span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-list-row strong,
html[data-admin-theme="dark"] body.rn-admin-classic .admin-row strong,
html[data-admin-theme="dark"] body.rn-admin-classic .metric-card strong,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-kpi strong,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-kpi b,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-widget-metrics strong,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-wallet-total strong,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-list-compact span,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-list-compact strong {
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic td span,
html[data-admin-theme="dark"] body.rn-admin-classic td small,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-list-row em,
html[data-admin-theme="dark"] body.rn-admin-classic .admin-row span,
html[data-admin-theme="dark"] body.rn-admin-classic .metric-card span,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-list-compact em,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-widget-metrics span,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-wallet-total span,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-wallet-total em,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-kpi span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-kpi small {
    color: #cbd5e1 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge {
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, .42) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.green,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge.green,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-paid,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-completed,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge.status-paid,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge.status-completed {
    background: rgba(22, 163, 74, .22) !important;
    color: #bbf7d0 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.orange,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge.amber,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-pending,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge.status-pending {
    background: rgba(245, 158, 11, .22) !important;
    color: #fde68a !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.red,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge.red,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-failed,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-badge.status-failed {
    background: rgba(220, 38, 38, .22) !important;
    color: #fecaca !important;
}

html[lang="en"] body.rn-admin-classic,
html[lang="en"] body.rn-admin-classic .ac-sidebar,
html[lang="en"] body.rn-admin-classic .ac-topbar,
html[lang="en"] body.rn-admin-classic .ac-main,
html[lang="en"] body.rn-admin-classic .ad-dashboard,
html[lang="en"] body.rn-admin-classic .ac-section,
html[lang="en"] body.rn-admin-classic .lc-page-shell {
    direction: ltr !important;
}

html[lang="en"] body.rn-admin-classic .ac-search input,
html[lang="en"] body.rn-admin-classic input,
html[lang="en"] body.rn-admin-classic textarea,
html[lang="en"] body.rn-admin-classic select {
    direction: ltr !important;
    text-align: left !important;
}

html[lang="en"] body.rn-admin-classic .ac-user > div,
html[lang="en"] body.rn-admin-classic .ad-export-menu > div {
    text-align: left !important;
}

/* Mobile admin header final alignment: one tight row under the mobile brand bar. */
@media (max-width: 1180px) {
    html body.rn-admin-classic .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar {
        top: 56px !important;
        min-height: 54px !important;
        height: 54px !important;
        max-height: 54px !important;
        padding: 8px 10px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "search actions" !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    html body.rn-admin-classic .ac-search {
        grid-area: search !important;
        order: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        margin: 0 !important;
        padding-inline: 10px !important;
        border-radius: 11px !important;
    }

    html body.rn-admin-classic .ac-search svg {
        width: 17px !important;
        height: 17px !important;
    }

    html body.rn-admin-classic .ac-search input {
        height: 36px !important;
        font-size: 12px !important;
    }

    html body.rn-admin-classic .ac-actions,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
        grid-area: actions !important;
        order: 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    html body.rn-admin-classic .ac-iconbtn,
    html body.rn-admin-classic .ac-user summary {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 10px !important;
    }

    html body.rn-admin-classic .ac-iconbtn svg {
        width: 17px !important;
        height: 17px !important;
    }

    html body.rn-admin-classic .ac-lang-toggle {
        font-size: 12px !important;
    }

    html body.rn-admin-classic .ac-user {
        margin: 0 !important;
    }

    html body.rn-admin-classic .ac-user summary {
        width: auto !important;
        min-width: 68px !important;
        max-width: 88px !important;
        padding: 0 7px !important;
        gap: 6px !important;
    }

    html body.rn-admin-classic .ac-user summary > span {
        width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;
        font-size: 12px !important;
    }

    html body.rn-admin-classic .ac-user summary b {
        display: block !important;
        max-width: 42px !important;
        font-size: 11px !important;
        line-height: 1 !important;
    }

    html body.rn-admin-classic .ac-user summary::after {
        display: none !important;
    }

    html body.rn-admin-classic .ac-main,
    html body.rn-admin-classic.rn-admin-saas .ac-main {
        padding-top: 126px !important;
    }
}

@media (max-width: 430px) {
    html body.rn-admin-classic .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar {
        padding-inline: 8px !important;
        gap: 6px !important;
    }

    html body.rn-admin-classic .ac-actions,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
        gap: 5px !important;
    }

    html body.rn-admin-classic .ac-iconbtn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    html body.rn-admin-classic .ac-user summary {
        min-width: 64px !important;
        max-width: 76px !important;
        height: 34px !important;
        padding-inline: 5px !important;
    }

    html body.rn-admin-classic .ac-user summary > span {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    html body.rn-admin-classic .ac-user summary b {
        max-width: 36px !important;
        font-size: 10.5px !important;
    }
}

html body.rn-admin-classic .ac-actions {
    gap: 8px !important;
}

html body.rn-admin-classic .ac-locale-form {
    margin: 0 !important;
}

html body.rn-admin-classic .ac-lang-toggle {
    font-weight: 800 !important;
    font-size: 13px !important;
}

@media (min-width: 1181px) {
    html body.rn-admin-classic .ac-topbar {
        grid-template-columns: minmax(260px, 420px) auto !important;
        justify-content: space-between !important;
    }

    html body.rn-admin-classic .ac-actions {
        width: auto !important;
        justify-content: flex-end !important;
        overflow: visible !important;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 1180px) {
    html body.rn-admin-classic .ac-sidebar,
    html body.rn-admin-classic.ac-sidebar-expanded .ac-sidebar {
        top: 56px !important;
        bottom: auto !important;
        height: calc(100dvh - 56px) !important;
        max-height: calc(100dvh - 56px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
    }

    html body.rn-admin-classic .ac-nav {
        padding-bottom: calc(34px + env(safe-area-inset-bottom)) !important;
    }

    html body.rn-admin-classic .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar {
        min-height: 106px !important;
    }

    html body.rn-admin-classic .ac-actions,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    html body.rn-admin-classic .ac-user {
        margin-inline-start: auto !important;
    }

    html body.rn-admin-classic .ac-user summary {
        width: auto !important;
        min-width: 42px !important;
        max-width: 126px !important;
        padding-inline: 5px 10px !important;
    }

    html body.rn-admin-classic .ac-user summary b {
        display: block !important;
        max-width: 70px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }
}

@media (max-width: 430px) {
    html body.rn-admin-classic .ac-search {
        height: 38px !important;
    }

    html body.rn-admin-classic .ac-iconbtn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    html body.rn-admin-classic .ac-user summary {
        max-width: 110px !important;
        height: 36px !important;
    }

    html body.rn-admin-classic .ac-user summary b {
        max-width: 58px !important;
    }
}

/* Absolute EOF mobile admin header correction. Keep controls high, compact and aligned. */
@media (max-width: 1180px) {
    html body.rn-admin-classic .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar {
        top: 56px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        padding: 8px 10px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "search actions" !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    html body.rn-admin-classic .ac-search {
        grid-area: search !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 38px !important;
        margin: 0 !important;
        padding-inline: 10px !important;
        border-radius: 11px !important;
    }

    html body.rn-admin-classic .ac-search svg {
        width: 17px !important;
        height: 17px !important;
        flex: 0 0 17px !important;
    }

    html body.rn-admin-classic .ac-search input {
        height: 36px !important;
        font-size: 12px !important;
        min-width: 0 !important;
    }

    html body.rn-admin-classic .ac-actions,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
        grid-area: actions !important;
        width: auto !important;
        max-width: none !important;
        min-width: max-content !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }

    html body.rn-admin-classic .ac-iconbtn,
    html body.rn-admin-classic .ac-user summary {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 10px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body.rn-admin-classic .ac-iconbtn svg {
        width: 17px !important;
        height: 17px !important;
    }

    html body.rn-admin-classic .ac-lang-toggle {
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    html body.rn-admin-classic .ac-user {
        margin: 0 !important;
    }

    html body.rn-admin-classic .ac-user summary {
        width: auto !important;
        min-width: 66px !important;
        max-width: 84px !important;
        padding-inline: 6px !important;
        gap: 6px !important;
    }

    html body.rn-admin-classic .ac-user summary > span {
        width: 23px !important;
        height: 23px !important;
        flex: 0 0 23px !important;
        font-size: 11px !important;
    }

    html body.rn-admin-classic .ac-user summary b {
        display: block !important;
        max-width: 38px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10.5px !important;
        line-height: 1 !important;
    }

    html body.rn-admin-classic .ac-user summary::after {
        display: none !important;
    }

    html body.rn-admin-classic .ac-main,
    html body.rn-admin-classic.rn-admin-saas .ac-main {
        padding-top: 126px !important;
    }
}

@media (max-width: 430px) {
    html body.rn-admin-classic .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar,
    html body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 6px 7px !important;
        gap: 5px !important;
    }

    html body.rn-admin-classic .ac-actions,
    html body.rn-admin-classic.rn-admin-saas .ac-topbar > .ac-actions {
        gap: 5px !important;
    }

    html body.rn-admin-classic .ac-iconbtn,
    html body.rn-admin-classic .ac-user summary {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    html body.rn-admin-classic .ac-user summary {
        min-width: 34px !important;
        max-width: 34px !important;
        padding-inline: 5px !important;
    }

    html body.rn-admin-classic .ac-user summary > span {
        width: 21px !important;
        height: 21px !important;
        flex-basis: 21px !important;
        font-size: 10px !important;
    }

    html body.rn-admin-classic .ac-user summary b {
        display: none !important;
    }

    html body.rn-admin-classic .ac-main,
    html body.rn-admin-classic.rn-admin-saas .ac-main {
        padding-top: 118px !important;
    }
}

/* Wallet transfer admin section. */
html body.rn-admin-classic .ac-inline-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

html body.rn-admin-classic .ac-btn.small {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ac-badge.success,
html body.rn-admin-classic .ac-badge.status-completed {
    background: #ecfdf3 !important;
    border-color: #abefc6 !important;
    color: #067647 !important;
}

html body.rn-admin-classic .ac-badge.warning,
html body.rn-admin-classic .ac-badge.status-pending {
    background: #fffaeb !important;
    border-color: #fedf89 !important;
    color: #b54708 !important;
}

html body.rn-admin-classic .ac-badge.danger,
html body.rn-admin-classic .ac-badge.status-rejected {
    background: #fef3f2 !important;
    border-color: #fecdca !important;
    color: #b42318 !important;
}

html body.rn-admin-classic .ac-table td small {
    display: block !important;
    margin-top: 4px !important;
    color: #667085 !important;
    font-size: 12px !important;
}

@media (max-width: 760px) {
    html body.rn-admin-classic .ac-inline-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
    }

    html body.rn-admin-classic .ac-inline-actions form,
    html body.rn-admin-classic .ac-inline-actions button {
        width: 100% !important;
    }
}

/* Customer management: dense desktop table and deliberate mobile records. */
html body.rn-admin-classic .ac-customers-page,
html body.rn-admin-classic .ac-customer-profile-page {
    gap: 18px !important;
}

html body.rn-admin-classic .ac-customer-filter {
    display: grid !important;
    grid-template-columns: minmax(240px, 1.55fr) repeat(4, minmax(130px, .75fr)) auto !important;
    align-items: end !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-customer-table-panel {
    padding: 0 !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-customer-table-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 18px 20px !important;
    border-bottom: 1px solid var(--ad-border) !important;
}

html body.rn-admin-classic .ac-customer-table-head > div {
    display: grid !important;
    gap: 3px !important;
}

html body.rn-admin-classic .ac-customer-table-head strong { font-size: 17px !important; color: var(--ad-text) !important; }
html body.rn-admin-classic .ac-customer-table-head span { font-size: 12px !important; color: var(--ad-muted) !important; }

html body.rn-admin-classic .ac-customer-bulk {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

html body.rn-admin-classic .ac-customer-bulk select { min-width: 170px !important; }
html body.rn-admin-classic .ac-customer-table-wrap { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
html body.rn-admin-classic .ac-customer-table { min-width: 1040px !important; }
html body.rn-admin-classic .ac-customer-table th { padding-block: 12px !important; }
html body.rn-admin-classic .ac-customer-table td { padding-block: 15px !important; }
html body.rn-admin-classic .ac-customer-table tbody tr:last-child td { border-bottom: 0 !important; }
html body.rn-admin-classic .ac-select-cell { width: 42px !important; text-align: center !important; }
html body.rn-admin-classic .ac-select-cell input { width: 16px !important; height: 16px !important; accent-color: var(--ad-brand) !important; }

html body.rn-admin-classic .ac-customer-identity {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 290px !important;
}

html body.rn-admin-classic .ac-customer-avatar,
html body.rn-admin-classic .ac-profile-avatar,
html body.rn-admin-classic .ac-admin-avatar-preview {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #e8f2ff, #f1ebff) !important;
    color: #135dd8 !important;
    box-shadow: 0 0 0 1px #dbe7f8, 0 5px 14px rgba(27, 76, 150, .1) !important;
    font-weight: 800 !important;
}

html body.rn-admin-classic .ac-customer-avatar { width: 46px !important; height: 46px !important; font-size: 17px !important; }
html body.rn-admin-classic .ac-customer-avatar img,
html body.rn-admin-classic .ac-profile-avatar img,
html body.rn-admin-classic .ac-admin-avatar-preview img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

html body.rn-admin-classic .ac-customer-copy,
html body.rn-admin-classic .ac-customer-stack,
html body.rn-admin-classic .ac-customer-money,
html body.rn-admin-classic .ac-customer-activity,
html body.rn-admin-classic .ac-customer-last {
    display: grid !important;
    justify-items: start !important;
    gap: 3px !important;
}

html body.rn-admin-classic .ac-customer-copy a { color: var(--ad-text) !important; font-size: 14px !important; font-weight: 800 !important; }
html body.rn-admin-classic .ac-customer-copy small,
html body.rn-admin-classic .ac-customer-copy em,
html body.rn-admin-classic .ac-customer-stack small,
html body.rn-admin-classic .ac-customer-money small,
html body.rn-admin-classic .ac-customer-activity small,
html body.rn-admin-classic .ac-customer-last small { color: var(--ad-muted) !important; font-size: 11px !important; font-style: normal !important; }
html body.rn-admin-classic .ac-customer-money strong,
html body.rn-admin-classic .ac-customer-activity strong,
html body.rn-admin-classic .ac-customer-last strong { color: var(--ad-text) !important; font-size: 13px !important; }
html body.rn-admin-classic .ac-customer-money small { color: #16835d !important; }
html body.rn-admin-classic .ac-customer-money small.is-frozen { color: #c2410c !important; }
html body.rn-admin-classic .ac-customer-action { width: 108px !important; }
html body.rn-admin-classic .ac-customer-action a { display: inline-flex !important; align-items: center !important; gap: 6px !important; white-space: nowrap !important; }

html body.rn-admin-classic .ac-customer-back { width: fit-content !important; color: var(--ad-brand-dark) !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important; }
html body.rn-admin-classic .ac-customer-profile-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 24px !important;
    background: linear-gradient(135deg, #ffffff 35%, #f4f8ff 100%) !important;
}

html body.rn-admin-classic .ac-customer-profile-main { display: flex !important; align-items: center !important; gap: 18px !important; min-width: 0 !important; }
html body.rn-admin-classic .ac-profile-avatar { width: 84px !important; height: 84px !important; font-size: 30px !important; }
html body.rn-admin-classic .ac-profile-copy { display: grid !important; gap: 7px !important; min-width: 0 !important; }
html body.rn-admin-classic .ac-profile-title { display: flex !important; align-items: center !important; gap: 10px !important; flex-wrap: wrap !important; }
html body.rn-admin-classic .ac-profile-title h1 { margin: 0 !important; color: var(--ad-text) !important; font-size: 25px !important; line-height: 1.25 !important; }
html body.rn-admin-classic .ac-profile-copy p { margin: 0 !important; color: var(--ad-muted) !important; overflow-wrap: anywhere !important; }
html body.rn-admin-classic .ac-profile-copy p span { margin-inline: 5px !important; }
html body.rn-admin-classic .ac-profile-tags { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; }
html body.rn-admin-classic .ac-profile-tags span { padding: 5px 9px !important; border: 1px solid #dce6f5 !important; border-radius: 8px !important; background: #fff !important; color: #53627a !important; font-size: 11px !important; }
html body.rn-admin-classic .ac-profile-health { display: grid !important; grid-template-columns: repeat(3, minmax(100px, 1fr)) !important; gap: 8px !important; }
html body.rn-admin-classic .ac-profile-health > div { display: grid !important; gap: 4px !important; min-width: 112px !important; padding: 11px 13px !important; border: 1px solid #dfe8f5 !important; border-radius: 12px !important; background: rgba(255,255,255,.84) !important; }
html body.rn-admin-classic .ac-profile-health span { color: var(--ad-muted) !important; font-size: 11px !important; }
html body.rn-admin-classic .ac-profile-health strong { color: var(--ad-text) !important; font-size: 13px !important; }

html body.rn-admin-classic .ac-customer-metric-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
html body.rn-admin-classic .ac-customer-metric { display: flex !important; align-items: center !important; gap: 13px !important; padding: 17px !important; border: 1px solid var(--ad-border) !important; border-radius: 14px !important; background: #fff !important; box-shadow: 0 4px 16px rgba(25, 54, 99, .05) !important; }
html body.rn-admin-classic .ac-customer-metric > span { display: grid !important; place-items: center !important; width: 42px !important; height: 42px !important; border-radius: 12px !important; background: #eaf3ff !important; color: #1769df !important; font-weight: 800 !important; }
html body.rn-admin-classic .ac-customer-metric > span.is-green { background: #e8f8f1 !important; color: #17865d !important; }
html body.rn-admin-classic .ac-customer-metric > span.is-violet { background: #f0eaff !important; color: #7647de !important; }
html body.rn-admin-classic .ac-customer-metric > span.is-amber { background: #fff4dc !important; color: #c87808 !important; }
html body.rn-admin-classic .ac-customer-metric div { display: grid !important; gap: 3px !important; }
html body.rn-admin-classic .ac-customer-metric small { color: var(--ad-muted) !important; }
html body.rn-admin-classic .ac-customer-metric strong { color: var(--ad-text) !important; font-size: 20px !important; }

html body.rn-admin-classic .ac-customer-control-grid { display: grid !important; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr) !important; gap: 16px !important; align-items: start !important; }
html body.rn-admin-classic .ac-customer-side-controls { display: grid !important; gap: 16px !important; }
html body.rn-admin-classic .ac-admin-avatar-editor { grid-column: 1 / -1 !important; display: grid !important; grid-template-columns: 74px minmax(0, 1fr) auto !important; align-items: center !important; gap: 15px !important; padding: 14px !important; border: 1px dashed #cbd9ec !important; border-radius: 14px !important; background: #f9fbff !important; }
html body.rn-admin-classic .ac-admin-avatar-preview { width: 66px !important; height: 66px !important; font-size: 23px !important; }
html body.rn-admin-classic .ac-admin-avatar-editor > div { display: grid !important; justify-items: start !important; gap: 4px !important; }
html body.rn-admin-classic .ac-admin-avatar-editor small { color: var(--ad-muted) !important; font-size: 11px !important; }
html body.rn-admin-classic .ac-file-button { display: inline-flex !important; margin-top: 4px !important; padding: 7px 11px !important; border-radius: 8px !important; background: #eaf2ff !important; color: #1558be !important; cursor: pointer !important; font-size: 12px !important; font-weight: 700 !important; }
html body.rn-admin-classic .ac-file-button input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
html body.rn-admin-classic .ac-remove-avatar { display: flex !important; align-items: center !important; gap: 7px !important; color: #b42318 !important; font-size: 12px !important; }
html body.rn-admin-classic .ac-form-submit { grid-column: 1 / -1 !important; }
html body.rn-admin-classic .ac-single-form { grid-template-columns: 1fr !important; }
html body.rn-admin-classic .ac-single-form > * { grid-column: auto !important; }
html body.rn-admin-classic .ac-form-grid textarea { width: 100% !important; resize: vertical !important; }

html[data-admin-theme="dark"] body.rn-admin-classic .ac-customer-profile-hero,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-customer-metric,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-admin-avatar-editor,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-profile-health > div,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-profile-tags span { background: #111827 !important; border-color: #334155 !important; color: #f8fafc !important; }

@media (max-width: 1180px) {
    html body.rn-admin-classic .ac-customer-filter { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    html body.rn-admin-classic .ac-customer-search { grid-column: span 2 !important; }
    html body.rn-admin-classic .ac-customer-profile-hero { align-items: stretch !important; flex-direction: column !important; }
    html body.rn-admin-classic .ac-customer-control-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ac-customers-page,
    html body.rn-admin-classic .ac-customer-profile-page { gap: 12px !important; }
    html body.rn-admin-classic .ac-customer-filter { grid-template-columns: 1fr !important; }
    html body.rn-admin-classic .ac-customer-search { grid-column: auto !important; }
    html body.rn-admin-classic .ac-customer-table-head { display: grid !important; padding: 15px !important; }
    html body.rn-admin-classic .ac-customer-bulk { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; width: 100% !important; }
    html body.rn-admin-classic .ac-customer-bulk select { min-width: 0 !important; width: 100% !important; }
    html body.rn-admin-classic .ac-customer-table-wrap { overflow: visible !important; }
    html body.rn-admin-classic .ac-customer-table { display: block !important; min-width: 0 !important; }
    html body.rn-admin-classic .ac-customer-table tbody { display: grid !important; gap: 10px !important; }
    html body.rn-admin-classic .ac-customer-table tr { display: grid !important; grid-template-columns: 34px minmax(0, 1fr) !important; gap: 0 10px !important; margin: 0 !important; padding: 12px !important; border-radius: 14px !important; }
    html body.rn-admin-classic .ac-customer-table td { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; width: auto !important; padding: 9px 0 !important; }
    html body.rn-admin-classic .ac-customer-table td::before { content: attr(data-label) !important; flex: 0 0 auto !important; color: var(--ad-muted) !important; font-size: 11px !important; font-weight: 600 !important; }
    html body.rn-admin-classic .ac-customer-table .ac-select-cell { grid-column: 1 !important; grid-row: 1 !important; width: 34px !important; justify-content: center !important; border: 0 !important; }
    html body.rn-admin-classic .ac-customer-table .ac-select-cell::before { display: none !important; }
    html body.rn-admin-classic .ac-customer-table .ac-customer-identity { grid-column: 2 !important; grid-row: 1 !important; min-width: 0 !important; justify-content: flex-start !important; padding-top: 0 !important; border: 0 !important; }
    html body.rn-admin-classic .ac-customer-table .ac-customer-identity::before { display: none !important; }
    html body.rn-admin-classic .ac-customer-table td:not(.ac-select-cell):not(.ac-customer-identity) { grid-column: 1 / -1 !important; }
    html body.rn-admin-classic .ac-customer-table .ac-customer-action a { width: 100% !important; justify-content: center !important; padding: 9px !important; border: 1px solid #d8e4f5 !important; border-radius: 9px !important; background: #f4f8ff !important; }
    html body.rn-admin-classic .ac-customer-table .ac-customer-action::before { display: none !important; }
    html body.rn-admin-classic .ac-customer-profile-hero { padding: 17px !important; }
    html body.rn-admin-classic .ac-customer-profile-main { align-items: flex-start !important; }
    html body.rn-admin-classic .ac-profile-avatar { width: 66px !important; height: 66px !important; font-size: 24px !important; }
    html body.rn-admin-classic .ac-profile-title h1 { font-size: 20px !important; }
    html body.rn-admin-classic .ac-profile-copy p { font-size: 12px !important; }
    html body.rn-admin-classic .ac-profile-health { grid-template-columns: 1fr !important; }
    html body.rn-admin-classic .ac-customer-metric-grid { grid-template-columns: 1fr 1fr !important; }
    html body.rn-admin-classic .ac-customer-metric { padding: 13px !important; gap: 9px !important; }
    html body.rn-admin-classic .ac-customer-metric > span { width: 36px !important; height: 36px !important; }
    html body.rn-admin-classic .ac-customer-metric strong { font-size: 15px !important; }
    html body.rn-admin-classic .ac-admin-avatar-editor { grid-template-columns: 60px minmax(0, 1fr) !important; }
    html body.rn-admin-classic .ac-admin-avatar-preview { width: 54px !important; height: 54px !important; }
    html body.rn-admin-classic .ac-remove-avatar { grid-column: 1 / -1 !important; }
}

@media (max-width: 420px) {
    html body.rn-admin-classic .ac-customer-metric-grid { grid-template-columns: 1fr !important; }
}

/* Staff permissions cockpit. */
html body.rn-admin-classic .ac-staff-list {
    display: grid !important;
    gap: 16px !important;
}

html body.rn-admin-classic .ac-staff-card {
    box-shadow: none !important;
}

html body.rn-admin-classic .ac-staff-card-head {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

html body.rn-admin-classic .ac-staff-card-head h3 {
    margin: 0 !important;
    font-size: 18px !important;
    color: var(--ad-text) !important;
}

html body.rn-admin-classic .ac-staff-card-head p {
    margin: 4px 0 0 !important;
    color: var(--ad-muted) !important;
    font-size: 13px !important;
}

html body.rn-admin-classic .ac-staff-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    background: #e6fffb !important;
    color: #0f766e !important;
    border: 1px solid #b2f5ea !important;
    font-weight: 800 !important;
}

html body.rn-admin-classic .ac-permission-panel {
    grid-column: 1 / -1 !important;
    display: grid !important;
    gap: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-permission-panel strong,
html body.rn-admin-classic .ac-permission-panel small {
    display: block !important;
}

html body.rn-admin-classic .ac-permission-panel small {
    margin-top: 4px !important;
    color: var(--ad-muted) !important;
}

html body.rn-admin-classic .ac-permission-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 8px !important;
}

html body.rn-admin-classic .ac-permission-groups {
    display: grid !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-permission-groups details {
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 10px !important;
}

html body.rn-admin-classic .ac-permission-groups summary {
    cursor: pointer !important;
    font-weight: 800 !important;
    color: var(--ad-text) !important;
    margin-bottom: 10px !important;
}

html body.rn-admin-classic .ac-danger-form {
    margin-top: 12px !important;
}

html body.rn-admin-classic .ac-staff-help {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    border: 1px solid #b2f5ea !important;
    background: #e6fffb !important;
    color: #0f766e !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-simple-permissions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    gap: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-simple-permissions-head strong,
html body.rn-admin-classic .ac-simple-permissions-head small {
    display: block !important;
}

html body.rn-admin-classic .ac-simple-permissions-head small {
    color: var(--ad-muted) !important;
    margin-top: 4px !important;
}

html body.rn-admin-classic .ac-section-picker {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-section-picker label {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 44px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 10px 12px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-section-picker label:has(input:checked) {
    border-color: #0f9f98 !important;
    background: #e6fffb !important;
    color: #0f766e !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-permission-panel,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-permission-groups details,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-simple-permissions,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-section-picker label {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-staff-help,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-section-picker label:has(input:checked) {
    background: rgba(20, 184, 166, .14) !important;
    border-color: rgba(45, 212, 191, .42) !important;
    color: #99f6e4 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-staff-avatar {
    background: rgba(20, 184, 166, .14) !important;
    border-color: rgba(45, 212, 191, .36) !important;
    color: #99f6e4 !important;
}

@media (max-width: 760px) {
    html body.rn-admin-classic .ac-staff-card-head {
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }

    html body.rn-admin-classic .ac-staff-card-head .ac-badge {
        margin-inline-start: 0 !important;
    }
}

/* New compact staff permissions layout. */
html body.rn-admin-classic .ac-staff-page {
    gap: 16px !important;
}

html body.rn-admin-classic .ac-staff-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 18px !important;
}

html body.rn-admin-classic .ac-staff-hero span {
    color: #0f9f98 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ac-staff-hero h2 {
    margin: 4px 0 !important;
    font-size: 26px !important;
}

html body.rn-admin-classic .ac-staff-hero p {
    margin: 0 !important;
    color: var(--ad-muted) !important;
}

html body.rn-admin-classic .ac-staff-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(86px, 1fr)) !important;
    gap: 8px !important;
}

html body.rn-admin-classic .ac-staff-hero-stats div {
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-staff-hero-stats strong,
html body.rn-admin-classic .ac-staff-hero-stats small {
    display: block !important;
}

html body.rn-admin-classic .ac-staff-create {
    padding: 0 !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-staff-create > summary,
html body.rn-admin-classic .ac-staff-edit > summary {
    cursor: pointer !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    font-weight: 900 !important;
    color: var(--ad-text) !important;
}

html body.rn-admin-classic .ac-staff-create > summary::-webkit-details-marker,
html body.rn-admin-classic .ac-staff-edit > summary::-webkit-details-marker {
    display: none !important;
}

html body.rn-admin-classic .ac-staff-create > summary::after,
html body.rn-admin-classic .ac-staff-edit > summary::after {
    content: "+" !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    background: #e6fffb !important;
    color: #0f766e !important;
}

html body.rn-admin-classic .ac-staff-create[open] > summary::after,
html body.rn-admin-classic .ac-staff-edit[open] > summary::after {
    content: "−" !important;
}

html body.rn-admin-classic .ac-staff-create .ac-staff-form {
    padding: 0 16px 16px !important;
}

html body.rn-admin-classic .ac-staff-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ac-staff-mini-card {
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
}

html body.rn-admin-classic .ac-staff-mini-top {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-staff-mini-main h3 {
    margin: 0 !important;
    font-size: 16px !important;
}

html body.rn-admin-classic .ac-staff-mini-main p {
    margin: 3px 0 0 !important;
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-staff-section-summary {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

html body.rn-admin-classic .ac-staff-section-summary span {
    border: 1px solid #b2f5ea !important;
    background: #e6fffb !important;
    color: #0f766e !important;
    border-radius: 999px !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

html body.rn-admin-classic .ac-staff-edit {
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-staff-edit .ac-staff-form,
html body.rn-admin-classic .ac-staff-edit .ac-danger-form {
    padding: 0 12px 12px !important;
}

html body.rn-admin-classic .ac-section-picker.compact {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
    gap: 7px !important;
}

html body.rn-admin-classic .ac-section-picker.compact label {
    min-height: 38px !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-staff-hero-stats div,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-staff-edit {
    background: #0b1220 !important;
    border-color: #334155 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-staff-section-summary span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-staff-create > summary::after,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-staff-edit > summary::after {
    background: rgba(20, 184, 166, .14) !important;
    border-color: rgba(45, 212, 191, .42) !important;
    color: #99f6e4 !important;
}

@media (max-width: 760px) {
    html body.rn-admin-classic .ac-staff-hero {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-staff-hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    html body.rn-admin-classic .ac-staff-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Absolute dark-mode cleanup: prevent white admin surfaces and clipped mobile account menu. */
html[data-admin-theme="dark"] body.rn-admin-classic,
html[data-admin-theme="dark"] body.rn-admin-classic.rn-admin-saas {
    background: #0b1220 !important;
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-workspace,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-main,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-dashboard,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-section {
    background: #0b1220 !important;
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-mobilebar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-topbar,
html[data-admin-theme="dark"] body.rn-admin-classic.rn-admin-saas .ac-topbar,
html[data-admin-theme="dark"] body.rn-admin-classic.rn-admin-saas .ac-workspace > .ac-topbar {
    background: #111827 !important;
    border-color: #263244 !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 0 rgba(148, 163, 184, .16) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-sidebar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-brand,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mobilebrand,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-panel,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-kpi-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-kpi,
html[data-admin-theme="dark"] body.rn-admin-classic .metric-card,
html[data-admin-theme="dark"] body.rn-admin-classic .surface,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-filter-bar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-table-wrap,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-table-wrap,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-list-row,
html[data-admin-theme="dark"] body.rn-admin-classic .admin-row,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-wallet-total,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-widget-metrics > div,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-status-list a,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-list-compact a,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-empty-state,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-empty,
html[data-admin-theme="dark"] body.rn-admin-classic details.ac-user > div {
    background: #111827 !important;
    border-color: #263244 !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic table,
html[data-admin-theme="dark"] body.rn-admin-classic thead,
html[data-admin-theme="dark"] body.rn-admin-classic tbody,
html[data-admin-theme="dark"] body.rn-admin-classic tr,
html[data-admin-theme="dark"] body.rn-admin-classic td,
html[data-admin-theme="dark"] body.rn-admin-classic th {
    background-color: #111827 !important;
    border-color: #263244 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html[data-admin-theme="dark"] body.rn-admin-classic select,
html[data-admin-theme="dark"] body.rn-admin-classic textarea,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-search,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-iconbtn,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user summary,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mobilebar button {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic input::placeholder,
html[data-admin-theme="dark"] body.rn-admin-classic textarea::placeholder,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-search input::placeholder {
    color: #94a3b8 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic h1,
html[data-admin-theme="dark"] body.rn-admin-classic h2,
html[data-admin-theme="dark"] body.rn-admin-classic h3,
html[data-admin-theme="dark"] body.rn-admin-classic h4,
html[data-admin-theme="dark"] body.rn-admin-classic strong,
html[data-admin-theme="dark"] body.rn-admin-classic b,
html[data-admin-theme="dark"] body.rn-admin-classic label,
html[data-admin-theme="dark"] body.rn-admin-classic th,
html[data-admin-theme="dark"] body.rn-admin-classic td,
html[data-admin-theme="dark"] body.rn-admin-classic a {
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic p,
html[data-admin-theme="dark"] body.rn-admin-classic span,
html[data-admin-theme="dark"] body.rn-admin-classic small,
html[data-admin-theme="dark"] body.rn-admin-classic em,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-muted,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-panel-head p,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-card-head p,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-page-head p {
    color: #cbd5e1 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div a,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div button {
    color: #f8fafc !important;
    background: transparent !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div a:hover,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div button:hover,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div a:focus-visible,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div button:focus-visible {
    background: rgba(20, 184, 166, .14) !important;
    color: #99f6e4 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-user > div form button {
    color: #fecaca !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-btn.secondary,
html[data-admin-theme="dark"] body.rn-admin-classic a.ac-btn.secondary,
html[data-admin-theme="dark"] body.rn-admin-classic button.ac-btn.secondary,
html[data-admin-theme="dark"] body.rn-admin-classic .secondary-button,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip {
    background: #0b1220 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip strong,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip b {
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.green {
    background: rgba(22, 163, 74, .16) !important;
    border-color: rgba(74, 222, 128, .38) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.orange,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.warning {
    background: rgba(245, 158, 11, .16) !important;
    border-color: rgba(251, 191, 36, .38) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.red,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.danger {
    background: rgba(220, 38, 38, .16) !important;
    border-color: rgba(248, 113, 113, .38) !important;
}

@media (max-width: 760px) {
    html body.rn-admin-classic .ac-panel-head {
        align-items: stretch !important;
    }

    html body.rn-admin-classic .ac-panel-head > .ac-actions,
    html body.rn-admin-classic .ac-panel-head .ac-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    html body.rn-admin-classic .ac-panel-head .ac-actions > *,
    html body.rn-admin-classic .ac-panel-head .ac-actions .ac-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }

    html body.rn-admin-classic .ac-user[open] > div,
    html[lang="en"] body.rn-admin-classic .ac-user[open] > div,
    html[data-admin-theme="dark"] body.rn-admin-classic .ac-user[open] > div {
        position: fixed !important;
        top: 108px !important;
        left: 10px !important;
        right: auto !important;
        width: min(270px, calc(100vw - 20px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 20px) !important;
        transform: none !important;
        z-index: 120 !important;
        overflow: hidden !important;
        text-align: start !important;
    }
}

/* Final admin dark-mode authority: cover legacy and Tailwind-backed admin screens. */
html[data-admin-theme="dark"] body.rn-admin-classic .section-heading,
html[data-admin-theme="dark"] body.rn-admin-classic main .surface,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-banner-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-voucher-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-bulkbar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-entity-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-ticket-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-filter,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-filterbar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-filter-bar,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-message-bubble,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-ticket-customer,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mini-stats > div,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mp-guide > article,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mp-section,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-mp-preview > div,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-cover,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-product,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-cover > img,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-cover > span,
html[data-admin-theme="dark"] body.rn-admin-classic main form.mt-5.flex.gap-2,
html[data-admin-theme="dark"] body.rn-admin-classic main .bg-white,
html[data-admin-theme="dark"] body.rn-admin-classic main .bg-gray-50,
html[data-admin-theme="dark"] body.rn-admin-classic main .bg-slate-50,
html[data-admin-theme="dark"] body.rn-admin-classic main [class*="bg-[#f7f8fb]"],
html[data-admin-theme="dark"] body.rn-admin-classic main [class*="border-[#e0e8e3]"],
html[data-admin-theme="dark"] body.rn-admin-classic .ac-kpi,
html[data-admin-theme="dark"] body.rn-admin-classic .metric-card {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .24) !important;
}

html[data-admin-theme="dark"] {
    color-scheme: dark;
}

html[data-admin-theme="dark"] body.rn-admin-classic .secondary-button,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-btn.secondary,
html[data-admin-theme="dark"] body.rn-admin-classic a.ac-btn.secondary,
html[data-admin-theme="dark"] body.rn-admin-classic button.ac-btn.secondary {
    background: #172033 !important;
    border-color: #3b4a62 !important;
    color: #e2e8f0 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .secondary-button:hover,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-btn.secondary:hover {
    background: #22304a !important;
    border-color: #52627c !important;
    color: #ffffff !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.blue,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.teal,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.green,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.orange,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.amber,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.warning {
    background: rgba(20, 184, 166, .12) !important;
    border-color: rgba(94, 234, 212, .3) !important;
    color: #99f6e4 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-message.admin .ac-message-bubble {
    background: #132238 !important;
    border-color: #2c4a68 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-message.customer .ac-message-bubble {
    background: #172033 !important;
    border-color: #334155 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .apexcharts-text,
html[data-admin-theme="dark"] body.rn-admin-classic .apexcharts-legend-text {
    fill: #cbd5e1 !important;
    color: #cbd5e1 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .apexcharts-gridline,
html[data-admin-theme="dark"] body.rn-admin-classic .apexcharts-xaxis line,
html[data-admin-theme="dark"] body.rn-admin-classic .apexcharts-yaxis line {
    stroke: #334155 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .apexcharts-tooltip,
html[data-admin-theme="dark"] body.rn-admin-classic .apexcharts-xaxistooltip {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html body.rn-admin-classic .rn-importer,
html body.rn-admin-classic .rn-importer .surface,
html body.rn-admin-classic .rn-importer h1,
html body.rn-admin-classic .rn-importer h2,
html body.rn-admin-classic .rn-importer h3,
html body.rn-admin-classic .rn-importer p,
html body.rn-admin-classic .rn-importer label {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

html body.rn-admin-classic .rn-importer .surface {
    overflow: hidden !important;
}

html body.rn-admin-classic .ac-overlay {
    display: none !important;
}

@media (max-width: 1180px) {
    html body.rn-admin-classic .ac-overlay {
        display: block !important;
        position: fixed !important;
        inset: 56px 0 0 !important;
        z-index: 110 !important;
        border: 0 !important;
        background: rgba(2, 6, 23, .5) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .18s ease, visibility .18s ease !important;
    }

    html body.rn-admin-classic .ac-overlay.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html body.rn-admin-classic:has(.ac-sidebar.open) {
        overflow: hidden !important;
    }
}

@media (max-width: 720px) {
    html body.rn-admin-classic .rn-import-url,
    html body.rn-admin-classic .rn-import-game-grid,
    html body.rn-admin-classic .rn-import-fields,
    html body.rn-admin-classic .rn-import-product {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.rn-admin-classic .rn-import-product > *,
    html body.rn-admin-classic .rn-import-product label:nth-of-type(n),
    html body.rn-admin-classic .rn-import-product > button {
        grid-column: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Compact customer cards: five desktop, responsive tablet, three on phones. */
html body.rn-admin-classic .ac-customer-card-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-customer-mini-card {
    position: relative !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(20, 48, 91, .055) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

html body.rn-admin-classic .ac-customer-mini-card:hover {
    z-index: 2 !important;
    border-color: #bad3f4 !important;
    box-shadow: 0 10px 24px rgba(24, 79, 154, .12) !important;
    transform: translateY(-3px) !important;
}

html body.rn-admin-classic .ac-customer-card-link {
    display: grid !important;
    justify-items: center !important;
    min-width: 0 !important;
    padding: 17px 13px 13px !important;
    color: var(--ad-text) !important;
    text-decoration: none !important;
}

html body.rn-admin-classic .ac-customer-mini-card .ac-customer-avatar {
    width: 58px !important;
    height: 58px !important;
    margin: 0 0 9px !important;
    font-size: 21px !important;
}

html body.rn-admin-classic .ac-customer-card-status {
    position: absolute !important;
    top: 11px !important;
    left: 10px !important;
    min-height: 20px !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
}

html body.rn-admin-classic .ac-customer-card-check {
    position: absolute !important;
    top: 12px !important;
    right: 11px !important;
    z-index: 3 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: var(--ad-brand) !important;
}

html body.rn-admin-classic .ac-customer-card-name {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-customer-card-id {
    margin-top: 3px !important;
    color: var(--ad-muted) !important;
    font-size: 10px !important;
}

html body.rn-admin-classic .ac-customer-card-stats {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr) !important;
    width: 100% !important;
    margin-top: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e8edf5 !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-customer-card-stats > span {
    display: grid !important;
    min-width: 0 !important;
    gap: 2px !important;
    padding: 8px 5px !important;
    text-align: center !important;
}

html body.rn-admin-classic .ac-customer-card-stats > span + span { border-right: 1px solid #e8edf5 !important; }
html body.rn-admin-classic .ac-customer-card-stats small { color: var(--ad-muted) !important; font-size: 9px !important; }
html body.rn-admin-classic .ac-customer-card-stats b { min-width: 0 !important; overflow: hidden !important; color: var(--ad-text) !important; font-size: 11px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

html body.rn-admin-classic .ac-customer-card-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    width: 100% !important;
    margin-top: 10px !important;
    color: var(--ad-muted) !important;
    font-size: 9px !important;
}

html body.rn-admin-classic .ac-customer-card-foot small,
html body.rn-admin-classic .ac-customer-card-foot em {
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: inherit !important;
    font-style: normal !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-customer-select-all {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    color: var(--ad-muted) !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-customer-select-all input { width: 15px !important; height: 15px !important; accent-color: var(--ad-brand) !important; }
html body.rn-admin-classic .ac-customer-cards-empty { grid-column: 1 / -1 !important; }

html[data-admin-theme="dark"] body.rn-admin-classic .ac-customer-card-grid { background: #0f1726 !important; }
html[data-admin-theme="dark"] body.rn-admin-classic .ac-customer-mini-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-customer-card-stats { background: #111827 !important; border-color: #334155 !important; }

@media (max-width: 1280px) {
    html body.rn-admin-classic .ac-customer-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 920px) {
    html body.rn-admin-classic .ac-customer-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ac-customer-bulk { grid-template-columns: auto minmax(0, 1fr) auto !important; }
    html body.rn-admin-classic .ac-customer-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    html body.rn-admin-classic .ac-customer-card-link { padding: 13px 6px 9px !important; }
    html body.rn-admin-classic .ac-customer-mini-card { border-radius: 13px !important; }
    html body.rn-admin-classic .ac-customer-mini-card .ac-customer-avatar { width: 44px !important; height: 44px !important; margin-bottom: 7px !important; font-size: 17px !important; }
    html body.rn-admin-classic .ac-customer-card-status { top: 6px !important; left: 5px !important; min-height: 17px !important; padding: 1px 4px !important; font-size: 7px !important; }
    html body.rn-admin-classic .ac-customer-card-check { top: 7px !important; right: 6px !important; width: 13px !important; height: 13px !important; }
    html body.rn-admin-classic .ac-customer-card-name { font-size: 11px !important; }
    html body.rn-admin-classic .ac-customer-card-id { font-size: 8px !important; }
    html body.rn-admin-classic .ac-customer-card-stats { grid-template-columns: 1fr !important; margin-top: 8px !important; }
    html body.rn-admin-classic .ac-customer-card-stats > span { padding: 5px 3px !important; }
    html body.rn-admin-classic .ac-customer-card-stats > span + span { border-top: 1px solid #e8edf5 !important; border-right: 0 !important; }
    html body.rn-admin-classic .ac-customer-card-stats small { font-size: 7px !important; }
    html body.rn-admin-classic .ac-customer-card-stats b { font-size: 9px !important; }
    html body.rn-admin-classic .ac-customer-card-foot { margin-top: 7px !important; font-size: 7px !important; }
}

@media (max-width: 340px) {
    html body.rn-admin-classic .ac-customer-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    html body.rn-admin-classic .ac-customer-bulk { grid-template-columns: 1fr auto !important; }
    html body.rn-admin-classic .ac-customer-select-all { grid-column: 1 / -1 !important; }
}

/* Seven-level verified customer ranks. */
html body.rn-admin-classic .ac-customer-name-rank {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
}

html body.rn-admin-classic .ac-rank-verify,
html body.rn-admin-classic .ac-rank-emblem {
    --rank-color: #64748b;
    --rank-color-2: #475569;
}

html body.rn-admin-classic .ac-rank-verify {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255,255,255,.92) !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, var(--rank-color), var(--rank-color-2)) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--rank-color) 42%, transparent), 0 3px 8px color-mix(in srgb, var(--rank-color) 30%, transparent) !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* WhatsApp-inspired ticket conversation for the support team. */
html body.rn-admin-classic .ac-support-chat-page { max-width: 1220px !important; margin: 0 auto !important; }
html body.rn-admin-classic .ac-support-chat-head { display: flex !important; align-items: center !important; gap: 14px !important; margin-bottom: 16px !important; }
html body.rn-admin-classic .ac-support-chat-head > div { min-width: 0 !important; }
html body.rn-admin-classic .ac-support-chat-head h1 { margin: 3px 0 0 !important; color: #162849 !important; font-size: 21px !important; }
html body.rn-admin-classic .ac-support-chat-head > div > span { color: #7889a5 !important; font-size: 11px !important; font-weight: 800 !important; }
html body.rn-admin-classic .ac-support-chat-head .info { margin-inline-start: auto !important; }
html body.rn-admin-classic .ac-support-chat-layout { display: grid !important; grid-template-columns: minmax(0,1fr) 290px !important; align-items: start !important; gap: 17px !important; }
html body.rn-admin-classic .ac-support-chat-thread, html body.rn-admin-classic .ac-support-chat-info section { overflow: hidden !important; border: 1px solid #dce6f2 !important; border-radius: 19px !important; background: #fff !important; box-shadow: 0 9px 26px rgba(29,58,105,.08) !important; }
html body.rn-admin-classic .ac-support-chat-thread-head { display: flex !important; align-items: center !important; gap: 11px !important; min-height: 76px !important; padding: 13px 17px !important; border-bottom: 1px solid #e4ebf4 !important; }
html body.rn-admin-classic .ac-support-chat-avatar { display: grid !important; place-items: center !important; width: 43px !important; height: 43px !important; flex: 0 0 43px !important; overflow: hidden !important; border-radius: 14px !important; background: linear-gradient(145deg,#dcecff,#b8d9ff) !important; color: #1263cf !important; font-size: 15px !important; font-weight: 900 !important; }
html body.rn-admin-classic .ac-support-chat-avatar img, html body.rn-admin-classic .ac-support-chat-message-avatar img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
html body.rn-admin-classic .ac-support-chat-thread-head > div { min-width: 0 !important; }
html body.rn-admin-classic .ac-support-chat-thread-head h2 { display: flex !important; align-items: center !important; gap: 5px !important; margin: 0 !important; color: #1b2c4c !important; font-size: 15px !important; }
html body.rn-admin-classic .ac-support-chat-thread-head p { display: flex !important; align-items: center !important; gap: 5px !important; margin: 4px 0 0 !important; color: #7788a4 !important; font-size: 10px !important; }
html body.rn-admin-classic .ac-support-chat-thread-head p > i { width: 7px !important; height: 7px !important; border-radius: 50% !important; background: #1fb875 !important; box-shadow: 0 0 0 3px rgba(31,184,117,.12) !important; }
html body.rn-admin-classic .ac-support-chat-thread-head .ac-badge { margin-inline-start: auto !important; white-space: nowrap !important; }
html body.rn-admin-classic .ac-support-chat-messages { display: grid !important; align-content: start !important; gap: 11px !important; min-height: 510px !important; max-height: 62vh !important; overflow-y: auto !important; padding: 19px !important; background-color: #edf5fd !important; background-image: radial-gradient(rgba(29,105,193,.1) 1px,transparent 1px) !important; background-size: 18px 18px !important; }
html body.rn-admin-classic .ac-support-chat-day { justify-self: center !important; padding: 5px 10px !important; border: 1px solid #d7e4f3 !important; border-radius: 8px !important; background: rgba(255,255,255,.88) !important; color: #687a98 !important; font-size: 9px !important; font-weight: 800 !important; }
html body.rn-admin-classic .ac-support-chat-message { display: flex !important; align-items: flex-end !important; gap: 7px !important; max-width: 80% !important; }
html body.rn-admin-classic .ac-support-chat-message.is-admin { justify-self: start !important; flex-direction: row-reverse !important; }
html body.rn-admin-classic .ac-support-chat-message.is-customer { justify-self: end !important; }
html body.rn-admin-classic .ac-support-chat-message-avatar { display: grid !important; place-items: center !important; width: 29px !important; height: 29px !important; flex: 0 0 29px !important; overflow: hidden !important; border-radius: 10px !important; background: #fff !important; color: #2d72c9 !important; font-size: 10px !important; font-weight: 900 !important; }
html body.rn-admin-classic .ac-support-chat-bubble { min-width: 0 !important; padding: 10px 12px 7px !important; border: 1px solid #dce6f2 !important; border-radius: 15px 15px 15px 4px !important; background: #fff !important; box-shadow: 0 3px 9px rgba(25,55,95,.06) !important; }
html body.rn-admin-classic .ac-support-chat-message.is-admin .ac-support-chat-bubble { border-color: #b9dcff !important; border-radius: 15px 15px 4px 15px !important; background: #dcefff !important; }
html body.rn-admin-classic .ac-support-chat-bubble strong { display: block !important; margin-bottom: 4px !important; color: #1465cf !important; font-size: 10px !important; }
html body.rn-admin-classic .ac-support-chat-bubble p { margin: 0 !important; color: #1d2c4c !important; font-size: 13px !important; line-height: 1.8 !important; white-space: pre-wrap !important; overflow-wrap: anywhere !important; }
html body.rn-admin-classic .ac-support-chat-bubble time { display: flex !important; justify-content: flex-end !important; align-items: center !important; gap: 3px !important; margin-top: 4px !important; color: #71829f !important; font-size: 8px !important; }
html body.rn-admin-classic .ac-support-chat-bubble time i { color: #1684df !important; font-size: 10px !important; font-style: normal !important; letter-spacing: -3px !important; }
html body.rn-admin-classic .ac-support-chat-composer { display: grid !important; grid-template-columns: 134px minmax(0,1fr) auto !important; align-items: end !important; gap: 9px !important; padding: 13px !important; border-top: 1px solid #e1eaf5 !important; background: #fff !important; }
html body.rn-admin-classic .ac-support-chat-composer select, html body.rn-admin-classic .ac-support-chat-composer textarea { min-height: 45px !important; border: 1px solid #d7e3f2 !important; border-radius: 13px !important; background: #f8fbff !important; color: #17305c !important; }
html body.rn-admin-classic .ac-support-chat-composer select { padding: 0 10px !important; font-size: 11px !important; }
html body.rn-admin-classic .ac-support-chat-composer textarea { width: 100% !important; padding: 12px 14px !important; resize: vertical !important; }
html body.rn-admin-classic .ac-support-chat-composer textarea:focus, html body.rn-admin-classic .ac-support-chat-composer select:focus { outline: 0 !important; border-color: #2a81e9 !important; box-shadow: 0 0 0 3px rgba(42,129,233,.12) !important; }
html body.rn-admin-classic .ac-support-chat-composer .primary-button { display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; min-height: 45px !important; padding: 0 15px !important; border-radius: 13px !important; }
html body.rn-admin-classic .ac-support-chat-composer svg { width: 17px !important; height: 17px !important; }
html body.rn-admin-classic .ac-support-chat-info { display: grid !important; gap: 14px !important; }
html body.rn-admin-classic .ac-support-chat-info section { padding: 16px !important; }
html body.rn-admin-classic .ac-support-chat-info h2 { margin: 0 0 13px !important; color: #263a5d !important; font-size: 12px !important; }
html body.rn-admin-classic .ac-support-chat-customer { display: flex !important; align-items: center !important; gap: 10px !important; }
html body.rn-admin-classic .ac-support-chat-customer > div { display: grid !important; gap: 3px !important; min-width: 0 !important; }
html body.rn-admin-classic .ac-support-chat-customer strong { overflow: hidden !important; color: #1d2d4e !important; font-size: 12px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.rn-admin-classic .ac-support-chat-customer small { overflow: hidden !important; color: #7686a2 !important; font-size: 9px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.rn-admin-classic .ac-support-chat-customer em { color: #1473d3 !important; font-size: 9px !important; font-style: normal !important; font-weight: 800 !important; }
html body.rn-admin-classic .ac-support-chat-info dl { display: grid !important; gap: 0 !important; margin: 0 !important; }
html body.rn-admin-classic .ac-support-chat-info dl > div { display: flex !important; justify-content: space-between !important; gap: 10px !important; padding: 9px 0 !important; border-top: 1px solid #edf1f6 !important; }
html body.rn-admin-classic .ac-support-chat-info dt, html body.rn-admin-classic .ac-support-chat-info dd { margin: 0 !important; font-size: 10px !important; }
html body.rn-admin-classic .ac-support-chat-info dt { color: #7a89a3 !important; } html body.rn-admin-classic .ac-support-chat-info dd { color: #263a5d !important; font-weight: 800 !important; }

@media (max-width: 820px) { html body.rn-admin-classic .ac-support-chat-layout { grid-template-columns: 1fr !important; } html body.rn-admin-classic .ac-support-chat-info { grid-template-columns: repeat(2,minmax(0,1fr)) !important; } }
@media (max-width: 600px) { html body.rn-admin-classic .ac-support-chat-head { align-items: flex-start !important; gap: 8px !important; } html body.rn-admin-classic .ac-support-chat-head h1 { font-size: 15px !important; } html body.rn-admin-classic .ac-support-chat-head .secondary-button { padding: 8px 9px !important; font-size: 9px !important; } html body.rn-admin-classic .ac-support-chat-head .info { margin-inline-start: 0 !important; } html body.rn-admin-classic .ac-support-chat-thread { border-radius: 15px !important; } html body.rn-admin-classic .ac-support-chat-thread-head { min-height: 63px !important; padding: 10px !important; } html body.rn-admin-classic .ac-support-chat-thread-head h2 { font-size: 12px !important; } html body.rn-admin-classic .ac-support-chat-thread-head p { font-size: 8px !important; } html body.rn-admin-classic .ac-support-chat-thread-head .ac-badge { padding: 5px 7px !important; font-size: 8px !important; } html body.rn-admin-classic .ac-support-chat-messages { min-height: 370px !important; max-height: none !important; padding: 12px 9px !important; } html body.rn-admin-classic .ac-support-chat-message { max-width: 91% !important; } html body.rn-admin-classic .ac-support-chat-bubble p { font-size: 12px !important; } html body.rn-admin-classic .ac-support-chat-composer { grid-template-columns: 96px minmax(0,1fr) 43px !important; gap: 6px !important; padding: 9px !important; } html body.rn-admin-classic .ac-support-chat-composer select { padding: 0 5px !important; font-size: 8px !important; } html body.rn-admin-classic .ac-support-chat-composer .primary-button { width: 43px !important; min-width: 43px !important; padding: 0 !important; } html body.rn-admin-classic .ac-support-chat-composer .primary-button span { display: none !important; } html body.rn-admin-classic .ac-support-chat-info { grid-template-columns: 1fr !important; gap: 9px !important; } html body.rn-admin-classic .ac-support-chat-info section { border-radius: 14px !important; padding: 13px !important; } }

html body.rn-admin-classic .is-rookie { --rank-color: #718096; --rank-color-2: #4a5568; }
html body.rn-admin-classic .is-bronze { --rank-color: #c47a49; --rank-color-2: #8c4627; }
html body.rn-admin-classic .is-silver { --rank-color: #b4c1d2; --rank-color-2: #718096; }
html body.rn-admin-classic .is-gold { --rank-color: #f6c744; --rank-color-2: #d58b08; }
html body.rn-admin-classic .is-platinum { --rank-color: #8393f4; --rank-color-2: #515fc7; }
html body.rn-admin-classic .is-diamond { --rank-color: #22c9e8; --rank-color-2: #078bbd; }
html body.rn-admin-classic .is-legend { --rank-color: #bd4cf5; --rank-color-2: #f33e89; }

html body.rn-admin-classic .ac-customer-rank-panel {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 18px 22px !important;
    background: linear-gradient(135deg, #fff, #f5f8ff) !important;
}

html body.rn-admin-classic .ac-rank-emblem {
    display: grid !important;
    place-items: center !important;
    width: 68px !important;
    height: 68px !important;
    border: 4px solid rgba(255,255,255,.9) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, var(--rank-color), var(--rank-color-2)) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--rank-color) 35%, transparent), 0 10px 24px color-mix(in srgb, var(--rank-color) 25%, transparent) !important;
    color: #fff !important;
    transform: rotate(8deg) !important;
}

html body.rn-admin-classic .ac-rank-emblem span { font-size: 27px !important; font-weight: 900 !important; transform: rotate(-8deg) !important; }
html body.rn-admin-classic .ac-rank-progress-copy { display: grid !important; gap: 7px !important; min-width: 0 !important; }
html body.rn-admin-classic .ac-rank-progress-copy > div:first-child { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; }
html body.rn-admin-classic .ac-rank-progress-copy > div:first-child > span { color: var(--ad-muted) !important; font-size: 12px !important; }
html body.rn-admin-classic .ac-rank-progress-copy strong { color: var(--ad-text) !important; font-size: 17px !important; }
html body.rn-admin-classic .ac-rank-progress-copy em { padding: 3px 7px !important; border-radius: 7px !important; background: #eaf2ff !important; color: #1762c5 !important; font-size: 9px !important; font-style: normal !important; }
html body.rn-admin-classic .ac-rank-track { width: 100% !important; height: 8px !important; overflow: hidden !important; border-radius: 99px !important; background: #e8edf5 !important; }
html body.rn-admin-classic .ac-rank-track span { display: block !important; height: 100% !important; border-radius: inherit !important; background: linear-gradient(90deg, var(--ad-brand), #54b9ff) !important; }
html body.rn-admin-classic .ac-rank-progress-copy small { color: var(--ad-muted) !important; font-size: 11px !important; }

/* Orders and support tickets use the same compact entity-card language. */
html body.rn-admin-classic .ac-entity-cards-panel { padding: 0 !important; overflow: hidden !important; }
html body.rn-admin-classic .ac-order-card-grid,
html body.rn-admin-classic .ac-ticket-card-grid {
    display: grid !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #f8fafc !important;
}
html body.rn-admin-classic .ac-order-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
html body.rn-admin-classic .ac-ticket-card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

html body.rn-admin-classic .ac-order-mini-card,
html body.rn-admin-classic .ac-ticket-mini-card {
    position: relative !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(20,48,91,.055) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

html body.rn-admin-classic .ac-order-mini-card:hover,
html body.rn-admin-classic .ac-ticket-mini-card:hover { border-color: #bad3f4 !important; box-shadow: 0 10px 24px rgba(24,79,154,.12) !important; transform: translateY(-3px) !important; }
html body.rn-admin-classic .ac-order-card-link,
html body.rn-admin-classic .ac-ticket-card-link { display: grid !important; gap: 11px !important; min-width: 0 !important; height: 100% !important; padding: 15px !important; color: var(--ad-text) !important; text-decoration: none !important; }

html body.rn-admin-classic .ac-entity-card-check { position: absolute !important; top: 13px !important; right: 12px !important; z-index: 3 !important; width: 15px !important; height: 15px !important; accent-color: var(--ad-brand) !important; }
html body.rn-admin-classic .ac-order-card-top,
html body.rn-admin-classic .ac-ticket-card-top { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 7px !important; min-width: 0 !important; }
html body.rn-admin-classic .ac-order-card-top { padding-right: 22px !important; }
html body.rn-admin-classic .ac-order-card-top strong,
html body.rn-admin-classic .ac-ticket-card-top strong { overflow: hidden !important; color: var(--ad-brand-dark) !important; font-size: 12px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

html body.rn-admin-classic .ac-entity-customer { display: flex !important; align-items: center !important; gap: 9px !important; min-width: 0 !important; padding: 9px !important; border: 1px solid #ebeff5 !important; border-radius: 12px !important; background: #fbfcfe !important; }
html body.rn-admin-classic .ac-entity-customer .ac-customer-avatar { width: 38px !important; height: 38px !important; font-size: 14px !important; }
html body.rn-admin-classic .ac-entity-customer > span:last-child { display: grid !important; grid-template-columns: minmax(0, auto) auto !important; align-items: center !important; gap: 2px 4px !important; min-width: 0 !important; }
html body.rn-admin-classic .ac-entity-customer b { min-width: 0 !important; overflow: hidden !important; color: var(--ad-text) !important; font-size: 12px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.rn-admin-classic .ac-entity-customer small { grid-column: 1 / -1 !important; min-width: 0 !important; overflow: hidden !important; color: var(--ad-muted) !important; font-size: 9px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.rn-admin-classic .ac-entity-customer .ac-rank-verify { width: 15px !important; height: 15px !important; border-width: 1px !important; font-size: 8px !important; }

html body.rn-admin-classic .ac-order-products { display: grid !important; gap: 3px !important; min-width: 0 !important; }
html body.rn-admin-classic .ac-order-products small { color: var(--ad-muted) !important; font-size: 9px !important; }
html body.rn-admin-classic .ac-order-products strong { overflow: hidden !important; color: var(--ad-text) !important; font-size: 11px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.rn-admin-classic .ac-order-card-stats,
html body.rn-admin-classic .ac-ticket-card-meta { display: grid !important; grid-template-columns: 1fr 1fr !important; overflow: hidden !important; border: 1px solid #e8edf5 !important; border-radius: 11px !important; background: #f8fafc !important; }
html body.rn-admin-classic .ac-order-card-stats > span,
html body.rn-admin-classic .ac-ticket-card-meta > span { display: grid !important; gap: 2px !important; min-width: 0 !important; padding: 8px 5px !important; text-align: center !important; }
html body.rn-admin-classic .ac-order-card-stats > span + span,
html body.rn-admin-classic .ac-ticket-card-meta > span + span { border-right: 1px solid #e8edf5 !important; }
html body.rn-admin-classic .ac-order-card-stats small,
html body.rn-admin-classic .ac-ticket-card-meta small { color: var(--ad-muted) !important; font-size: 8px !important; }
html body.rn-admin-classic .ac-order-card-stats b,
html body.rn-admin-classic .ac-ticket-card-meta b { min-width: 0 !important; overflow: hidden !important; color: var(--ad-text) !important; font-size: 10px !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body.rn-admin-classic .ac-order-card-stats b.is-paid { color: #16835d !important; }

html body.rn-admin-classic .ac-ticket-card-link h3 { min-height: 38px !important; margin: 0 !important; overflow: hidden !important; color: var(--ad-text) !important; font-size: 13px !important; line-height: 1.5 !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; }
html body.rn-admin-classic .ac-ticket-mini-card.priority-high { border-top: 3px solid #dc2626 !important; }
html body.rn-admin-classic .ac-ticket-mini-card.priority-normal { border-top: 3px solid #2563eb !important; }
html body.rn-admin-classic .ac-ticket-mini-card.priority-low { border-top: 3px solid #16a34a !important; }
html body.rn-admin-classic .ac-entity-card-foot { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 6px !important; margin-top: auto !important; color: var(--ad-muted) !important; font-size: 9px !important; }
html body.rn-admin-classic .ac-entity-card-foot small,
html body.rn-admin-classic .ac-entity-card-foot em { color: inherit !important; font-size: inherit !important; font-style: normal !important; }
html body.rn-admin-classic .ac-entity-card-foot em { color: var(--ad-brand-dark) !important; font-weight: 700 !important; }
html body.rn-admin-classic .ac-entity-empty { grid-column: 1 / -1 !important; }
html body.rn-admin-classic .ac-entity-pagination { padding: 0 18px 18px !important; }

html[data-admin-theme="dark"] body.rn-admin-classic .ac-customer-rank-panel,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-order-card-grid,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-ticket-card-grid { background: #0f1726 !important; }
html[data-admin-theme="dark"] body.rn-admin-classic .ac-order-mini-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-ticket-mini-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-entity-customer,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-order-card-stats,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-ticket-card-meta { background: #111827 !important; border-color: #334155 !important; }

@media (max-width: 1200px) {
    html body.rn-admin-classic .ac-order-card-grid,
    html body.rn-admin-classic .ac-ticket-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ac-customer-rank-panel { grid-template-columns: 54px minmax(0, 1fr) !important; gap: 12px !important; padding: 14px !important; }
    html body.rn-admin-classic .ac-rank-emblem { width: 48px !important; height: 48px !important; border-radius: 16px !important; }
    html body.rn-admin-classic .ac-rank-emblem span { font-size: 20px !important; }
    html body.rn-admin-classic .ac-rank-progress-copy strong { font-size: 13px !important; }
    html body.rn-admin-classic .ac-order-card-grid,
    html body.rn-admin-classic .ac-ticket-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; padding: 10px !important; }
    html body.rn-admin-classic .ac-order-card-link,
    html body.rn-admin-classic .ac-ticket-card-link { gap: 7px !important; padding: 8px 5px !important; }
    html body.rn-admin-classic .ac-entity-card-check { top: 7px !important; right: 5px !important; width: 12px !important; height: 12px !important; }
    html body.rn-admin-classic .ac-order-card-top { padding-right: 15px !important; }
    html body.rn-admin-classic .ac-order-card-top strong,
    html body.rn-admin-classic .ac-ticket-card-top strong { font-size: 8px !important; }
    html body.rn-admin-classic .ac-order-card-top .ac-badge,
    html body.rn-admin-classic .ac-ticket-card-top .ac-badge { min-height: 16px !important; padding: 1px 3px !important; font-size: 6px !important; }
    html body.rn-admin-classic .ac-entity-customer { display: grid !important; justify-items: center !important; gap: 4px !important; padding: 6px 3px !important; text-align: center !important; }
    html body.rn-admin-classic .ac-entity-customer .ac-customer-avatar { width: 34px !important; height: 34px !important; }
    html body.rn-admin-classic .ac-entity-customer > span:last-child { justify-content: center !important; }
    html body.rn-admin-classic .ac-entity-customer b { font-size: 9px !important; }
    html body.rn-admin-classic .ac-entity-customer small { font-size: 7px !important; }
    html body.rn-admin-classic .ac-order-products strong { display: none !important; }
    html body.rn-admin-classic .ac-order-products { justify-items: center !important; }
    html body.rn-admin-classic .ac-order-card-stats,
    html body.rn-admin-classic .ac-ticket-card-meta { grid-template-columns: 1fr !important; }
    html body.rn-admin-classic .ac-order-card-stats > span,
    html body.rn-admin-classic .ac-ticket-card-meta > span { padding: 5px 2px !important; }
    html body.rn-admin-classic .ac-order-card-stats > span + span,
    html body.rn-admin-classic .ac-ticket-card-meta > span + span { border-top: 1px solid #e8edf5 !important; border-right: 0 !important; }
    html body.rn-admin-classic .ac-order-card-stats small,
    html body.rn-admin-classic .ac-ticket-card-meta small { font-size: 6px !important; }
    html body.rn-admin-classic .ac-order-card-stats b,
    html body.rn-admin-classic .ac-ticket-card-meta b { font-size: 8px !important; }
    html body.rn-admin-classic .ac-ticket-card-link h3 { min-height: 30px !important; font-size: 9px !important; line-height: 1.45 !important; }
html body.rn-admin-classic .ac-entity-card-foot { font-size: 6px !important; }
}

/* Dark admin contrast fixes for white legacy panels and form controls. */
html[data-admin-theme="dark"] body.rn-admin-classic .lc-page-shell > form.surface,
html[data-admin-theme="dark"] body.rn-admin-classic .lc-page-shell > form:not(.ad-date-range),
html[data-admin-theme="dark"] body.rn-admin-classic .ac-section > form,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-catalog-group,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-stock-group,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-stock-code-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-batch-card,
html[data-admin-theme="dark"] body.rn-admin-classic .admin-row,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-list-row,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-table-wrap,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-table-wrap {
    background: #111827 !important;
    color: var(--ad-text) !important;
    border-color: var(--ad-border) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-catalog-group-head,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-stock-group-head {
    background: linear-gradient(90deg, rgba(20, 184, 166, .14), #111827 62%) !important;
    color: var(--ad-text) !important;
    border-color: var(--ad-border) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html[data-admin-theme="dark"] body.rn-admin-classic select,
html[data-admin-theme="dark"] body.rn-admin-classic textarea,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-date-range input,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-date-range button,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-segmented > a,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-btn.ghost,
html[data-admin-theme="dark"] body.rn-admin-classic .secondary-button,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-btn.secondary {
    background: #0b1220 !important;
    color: #f8fafc !important;
    border-color: var(--ad-border-strong) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ad-segmented > a.active,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-btn.ghost:hover {
    background: rgba(20, 184, 166, .16) !important;
    color: #99f6e4 !important;
    border-color: rgba(20, 184, 166, .38) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic input::placeholder,
html[data-admin-theme="dark"] body.rn-admin-classic textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ad-date-range button:disabled,
html[data-admin-theme="dark"] body.rn-admin-classic .ad-segmented button:disabled,
html[data-admin-theme="dark"] body.rn-admin-classic button:disabled {
    background: #1e293b !important;
    color: #64748b !important;
    border-color: #334155 !important;
    opacity: 1 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-stock-code-card code,
html[data-admin-theme="dark"] body.rn-admin-classic code {
    background: #020617 !important;
    color: #dbeafe !important;
    border-color: #334155 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-catalog-title img,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-catalog-title > span,
html[data-admin-theme="dark"] body.rn-admin-classic table tbody tr,
html[data-admin-theme="dark"] body.rn-admin-classic table thead tr,
html[data-admin-theme="dark"] body.rn-admin-classic tr,
html[data-admin-theme="dark"] body.rn-admin-classic td,
html[data-admin-theme="dark"] body.rn-admin-classic th {
    background-color: #111827 !important;
    color: var(--ad-text) !important;
    border-color: var(--ad-border) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.method-manual,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.method-api,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.method-hybrid,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.method-stored_code,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-available,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-active {
    background: rgba(20, 184, 166, .18) !important;
    color: #99f6e4 !important;
    border-color: rgba(20, 184, 166, .34) !important;
}

/* Dark catalog counters: products, games, categories, and stock result badges. */
html[data-admin-theme="dark"] body.rn-admin-classic .ac-entity-meta .ac-badge,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-panel-head > .ac-badge,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-catalog-stats .ac-badge,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-stock-group-head .ac-badge,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-stock-code-card .ac-badge,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-batch-card .ac-badge {
    background: rgba(30, 41, 59, .92) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, .44) !important;
    text-shadow: none !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.blue,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.info {
    background: rgba(37, 99, 235, .24) !important;
    color: #bfdbfe !important;
    border-color: rgba(96, 165, 250, .42) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.purple {
    background: rgba(124, 58, 237, .26) !important;
    color: #ddd6fe !important;
    border-color: rgba(167, 139, 250, .44) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.green,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-available,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-active {
    background: rgba(22, 163, 74, .22) !important;
    color: #bbf7d0 !important;
    border-color: rgba(74, 222, 128, .38) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.red,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-voided,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-inactive {
    background: rgba(220, 38, 38, .22) !important;
    color: #fecaca !important;
    border-color: rgba(248, 113, 113, .38) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.orange,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-reserved,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-badge.status-pending {
    background: rgba(245, 158, 11, .22) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, .38) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.slate,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.purple,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.red {
    background: #0b1220 !important;
    border-color: var(--ad-border-strong) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip span,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip strong {
    color: #f8fafc !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip.active,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-status-chip:hover {
    background: rgba(20, 184, 166, .16) !important;
    border-color: rgba(20, 184, 166, .38) !important;
}

/* Product offers admin page. */
html body.rn-admin-classic .ac-offer-card-grid {
    margin-top: 22px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
    gap: 16px !important;
}

html body.rn-admin-classic .ac-offer-card {
    overflow: hidden !important;
    display: grid !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .08) !important;
}

html body.rn-admin-classic .ac-offer-media {
    position: relative !important;
    display: block !important;
    aspect-ratio: 16 / 9 !important;
    background: linear-gradient(135deg, #0f9f98, #2563eb) !important;
}

html body.rn-admin-classic .ac-offer-media img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

html body.rn-admin-classic .ac-offer-media > span {
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    color: #ffffff !important;
    font-size: 46px !important;
    font-weight: 900 !important;
}

html body.rn-admin-classic .ac-offer-media em {
    position: absolute !important;
    top: 12px !important;
    inset-inline-start: 12px !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(220, 38, 38, .92) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

html body.rn-admin-classic .ac-offer-body {
    padding: 16px !important;
    display: grid !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-offer-top,
html body.rn-admin-classic .ac-offer-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

html body.rn-admin-classic .ac-offer-body h2 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

html body.rn-admin-classic .ac-offer-body p,
html body.rn-admin-classic .ac-offer-product small {
    margin: 0 !important;
    color: var(--ad-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

html body.rn-admin-classic .ac-offer-product {
    padding: 12px !important;
    display: grid !important;
    gap: 4px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-offer-product strong {
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

html body.rn-admin-classic .ac-offer-form {
    margin-top: 22px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

html body.rn-admin-classic .ac-offer-wide,
html body.rn-admin-classic .ac-offer-current {
    grid-column: 1 / -1 !important;
}

html body.rn-admin-classic .ac-offer-product-search {
    min-height: 48px !important;
}

html body.rn-admin-classic .ac-offer-product-picker {
    max-height: 360px !important;
    overflow: auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 10px !important;
    padding: 10px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-offer-product-option {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 74px !important;
    display: grid !important;
    grid-template-columns: 54px 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: var(--ad-text) !important;
    text-align: start !important;
    cursor: pointer !important;
    transition: .16s ease !important;
}

html body.rn-admin-classic .ac-offer-product-option:hover,
html body.rn-admin-classic .ac-offer-product-option.is-selected {
    border-color: #2563eb !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .14) !important;
    transform: translateY(-1px) !important;
}

html body.rn-admin-classic .ac-offer-product-thumb {
    width: 54px !important;
    height: 54px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #eef5ff, #e8fff9) !important;
    color: #1268ff !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

html body.rn-admin-classic .ac-offer-product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

html body.rn-admin-classic .ac-offer-product-meta {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
}

html body.rn-admin-classic .ac-offer-product-meta strong {
    overflow: hidden !important;
    color: var(--ad-text) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-offer-product-meta small,
html body.rn-admin-classic .ac-offer-hint,
html body.rn-admin-classic .ac-offer-days small {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
}

html body.rn-admin-classic .ac-offer-product-option em {
    color: #0f766e !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-offer-days.is-muted {
    opacity: .55 !important;
}

html body.rn-admin-classic .ac-offer-current {
    padding: 12px !important;
    display: grid !important;
    gap: 8px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-offer-current span {
    color: var(--ad-muted) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

html body.rn-admin-classic .ac-offer-current img {
    width: min(100%, 420px) !important;
    height: 180px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-card {
    background: #111827 !important;
    border-color: var(--ad-border) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-product,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-current,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-product-picker {
    background: #0b1220 !important;
    border-color: var(--ad-border-strong) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-product-option {
    background: #111827 !important;
    border-color: var(--ad-border-strong) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-product-thumb {
    background: linear-gradient(135deg, rgba(37, 99, 235, .24), rgba(20, 184, 166, .18)) !important;
}

/* Compact offer cards matching admin users/tickets grids. */
html body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 0 !important;
    padding: 18px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card {
    position: relative !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: block !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(20, 48, 91, .055) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

html body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card:hover {
    z-index: 2 !important;
    border-color: #bad3f4 !important;
    box-shadow: 0 10px 24px rgba(24, 79, 154, .12) !important;
    transform: translateY(-3px) !important;
}

html body.rn-admin-classic .ac-offer-card-link {
    display: grid !important;
    justify-items: center !important;
    min-width: 0 !important;
    padding: 16px 12px 12px !important;
    color: var(--ad-text) !important;
    text-decoration: none !important;
}

html body.rn-admin-classic .ac-offer-card-status {
    position: absolute !important;
    top: 11px !important;
    left: 10px !important;
    z-index: 3 !important;
    min-height: 20px !important;
    padding: 2px 6px !important;
    font-size: 9px !important;
}

html body.rn-admin-classic .ac-offer-card-media {
    position: relative !important;
    width: 66px !important;
    height: 66px !important;
    margin-bottom: 10px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, #ede9fe, #dbeafe) !important;
    color: #6d28d9 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

html body.rn-admin-classic .ac-offer-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

html body.rn-admin-classic .ac-offer-card-media em {
    position: absolute !important;
    right: 3px !important;
    bottom: 3px !important;
    min-width: 30px !important;
    height: 20px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, .24) !important;
}

html body.rn-admin-classic .ac-offer-card-title {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    color: var(--ad-text) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-offer-card-desc {
    width: 100% !important;
    min-height: 30px !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    color: var(--ad-muted) !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

html body.rn-admin-classic .ac-offer-card-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    margin-top: 11px !important;
    overflow: hidden !important;
    border: 1px solid #e8edf5 !important;
    border-radius: 11px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .ac-offer-card-stats > span {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
    padding: 8px 5px !important;
    text-align: center !important;
}

html body.rn-admin-classic .ac-offer-card-stats > span + span {
    border-right: 1px solid #e8edf5 !important;
}

html body.rn-admin-classic .ac-offer-card-stats small {
    color: var(--ad-muted) !important;
    font-size: 9px !important;
}

html body.rn-admin-classic .ac-offer-card-stats b {
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--ad-text) !important;
    font-size: 10px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-offer-card-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    width: 100% !important;
    margin-top: 10px !important;
    color: var(--ad-muted) !important;
    font-size: 9px !important;
}

html body.rn-admin-classic .ac-offer-card-foot small,
html body.rn-admin-classic .ac-offer-card-foot em {
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: inherit !important;
    font-style: normal !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.rn-admin-classic .ac-offer-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    padding: 0 12px 12px !important;
}

html body.rn-admin-classic .ac-offer-card-actions form,
html body.rn-admin-classic .ac-offer-card-actions button,
html body.rn-admin-classic .ac-offer-card-actions a {
    width: 100% !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card-grid {
    background: #0f1726 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-card-stats {
    background: #111827 !important;
    border-color: #334155 !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-card-media {
    background: linear-gradient(145deg, rgba(124, 58, 237, .24), rgba(37, 99, 235, .18)) !important;
}

@media (max-width: 1280px) {
    html body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 920px) {
    html body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ac-entity-cards-panel .ac-offer-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    html body.rn-admin-classic .ac-offer-card-link {
        padding: 13px 7px 9px !important;
    }

    html body.rn-admin-classic .ac-offer-card-media {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 7px !important;
        border-radius: 14px !important;
    }

    html body.rn-admin-classic .ac-offer-card-title {
        font-size: 11px !important;
    }

    html body.rn-admin-classic .ac-offer-card-desc {
        min-height: 25px !important;
        font-size: 8px !important;
    }

    html body.rn-admin-classic .ac-offer-card-stats {
        grid-template-columns: 1fr !important;
        margin-top: 8px !important;
    }

    html body.rn-admin-classic .ac-offer-card-stats > span {
        padding: 5px 3px !important;
    }

    html body.rn-admin-classic .ac-offer-card-stats > span + span {
        border-top: 1px solid #e8edf5 !important;
        border-right: 0 !important;
    }

    html body.rn-admin-classic .ac-offer-card-actions {
        grid-template-columns: 1fr !important;
        padding: 0 7px 9px !important;
    }
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-offer-current img {
    background: #020617 !important;
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ac-offer-card-grid,
    html body.rn-admin-classic .ac-offer-form {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-offer-product-picker {
        grid-template-columns: 1fr !important;
        max-height: 430px !important;
    }

    html body.rn-admin-classic .ac-offer-product-option {
        grid-template-columns: 48px 1fr !important;
    }

    html body.rn-admin-classic .ac-offer-product-option em {
        grid-column: 2 !important;
    }
}

/* Coupon cards and LikeCard importer polish. */
html body.rn-admin-classic .ac-coupon-card-grid {
    margin-top: 22px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
}

html body.rn-admin-classic .ac-coupon-card {
    min-width: 0 !important;
    padding: 18px !important;
    display: grid !important;
    gap: 14px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .07) !important;
}

html body.rn-admin-classic .ac-coupon-top,
html body.rn-admin-classic .ac-coupon-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

html body.rn-admin-classic .ac-coupon-code {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    background: rgba(15, 159, 152, .1) !important;
    color: var(--ad-brand-dark) !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    direction: ltr !important;
}

html body.rn-admin-classic .ac-coupon-card h2 {
    margin: 0 !important;
    color: var(--ad-text) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

html body.rn-admin-classic .ac-coupon-card p,
html body.rn-admin-classic .ac-coupon-foot small {
    margin: 0 !important;
    color: var(--ad-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

html body.rn-admin-classic .ac-coupon-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

html body.rn-admin-classic .ac-coupon-stats span {
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    display: grid !important;
    gap: 4px !important;
}

html body.rn-admin-classic .ac-coupon-stats small {
    color: var(--ad-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

html body.rn-admin-classic .ac-coupon-stats b {
    color: var(--ad-text) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

html body.rn-admin-classic .rn-importer {
    gap: 18px !important;
}

html body.rn-admin-classic .rn-importer > .surface {
    border-radius: 18px !important;
    border: 1px solid var(--ad-border) !important;
    background: #ffffff !important;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .07) !important;
}

html body.rn-admin-classic .rn-import-url {
    padding: 12px !important;
    border: 1px solid var(--ad-border) !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .rn-import-url input,
html body.rn-admin-classic .rn-import-cover input,
html body.rn-admin-classic .rn-import-fields input,
html body.rn-admin-classic .rn-import-fields select,
html body.rn-admin-classic .rn-import-fields textarea,
html body.rn-admin-classic .rn-import-product input {
    border-color: var(--ad-border) !important;
    background: #ffffff !important;
    color: var(--ad-text) !important;
}

html body.rn-admin-classic .rn-import-note {
    color: var(--ad-muted) !important;
}

html body.rn-admin-classic .rn-import-cover,
html body.rn-admin-classic .rn-import-product {
    border-color: var(--ad-border) !important;
    background: #f8fafc !important;
}

html body.rn-admin-classic .rn-import-cover > img,
html body.rn-admin-classic .rn-import-cover > span {
    background: #ffffff !important;
    border: 1px solid var(--ad-border) !important;
}

html body.rn-admin-classic .ac-notify-form {
    align-content: start !important;
}

html body.rn-admin-classic .ac-notify-form .form-field {
    margin: 0 !important;
}

html body.rn-admin-classic .ac-notify-form .ac-btn {
    width: 100% !important;
}

html body.rn-admin-classic .ac-alert a {
    color: inherit !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-coupon-card,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-importer > .surface {
    background: #111827 !important;
    color: var(--ad-text) !important;
    border-color: var(--ad-border) !important;
    box-shadow: var(--ad-shadow) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .ac-coupon-code,
html[data-admin-theme="dark"] body.rn-admin-classic .ac-coupon-stats span,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-url,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-cover,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-product {
    background: #0b1220 !important;
    color: var(--ad-text) !important;
    border-color: var(--ad-border-strong) !important;
}

html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-cover > img,
html[data-admin-theme="dark"] body.rn-admin-classic .rn-import-cover > span {
    background: #020617 !important;
    border-color: var(--ad-border-strong) !important;
}

@media (max-width: 720px) {
    html body.rn-admin-classic .ac-coupon-card-grid,
    html body.rn-admin-classic .ac-coupon-stats {
        grid-template-columns: 1fr !important;
    }

    html body.rn-admin-classic .ac-coupon-foot {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}

@media (max-width: 340px) {
    html body.rn-admin-classic .ac-order-card-grid,
    html body.rn-admin-classic .ac-ticket-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Facebook-like verified seal authority. */
html body.rn-admin-classic .ac-rank-verify {
    width: 19px !important;
    height: 19px !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: polygon(50% 0%,61% 8%,74% 5%,82% 18%,95% 25%,92% 39%,100% 50%,92% 61%,95% 75%,82% 82%,75% 95%,61% 92%,50% 100%,39% 92%,25% 95%,18% 82%,5% 75%,8% 61%,0% 50%,8% 39%,5% 25%,18% 18%,25% 5%,39% 8%) !important;
    filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--rank-color) 42%, transparent)) !important;
    box-shadow: none !important;
    font-size: 10px !important;
}
