@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 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 .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;
    }
}
