:root {
    --ra-bg: #f7f8fb;
    --ra-card: #ffffff;
    --ra-text: #111827;
    --ra-muted: #6b7280;
    --ra-border: #e5e7eb;
    --ra-primary: #2563eb;
    --ra-shadow: 0 10px 35px rgba(15, 23, 42, .08);
    --ra-radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Times New Roman", Times, serif;
    background: var(--ra-bg);
    color: var(--ra-text);
}

a {
    color: inherit;
}

.ra-center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ra-card {
    width: 100%;
    max-width: 560px;
    background: var(--ra-card);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius);
    box-shadow: var(--ra-shadow);
    padding: 32px;
    text-align: center;
}

.ra-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
}

.ra-subtitle {
    margin: 0 0 12px;
    color: var(--ra-muted);
    font-size: 18px;
}

.ra-status {
    color: var(--ra-primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.ra-version {
    direction: ltr;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 18px;
}

.ra-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ra-btn {
    text-decoration: none;
    border: 1px solid var(--ra-border);
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
}

.ra-toast-container {
    position: fixed;
    z-index: 9999;
    top: 18px;
    inset-inline-end: 18px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.ra-toast {
    background: #111827;
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--ra-shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
    font-family: "Times New Roman", Times, serif;
}

.ra-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ra-toast-success {
    background: #166534;
}

.ra-toast-error {
    background: #991b1b;
}

.ra-toast-warning {
    background: #92400e;
}

.ra-toast-info {
    background: #1d4ed8;
}

.ra-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .45);
}

.ra-modal-backdrop.is-visible {
    display: flex;
}

.ra-modal {
    width: min(520px, 100%);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--ra-shadow);
    border: 1px solid var(--ra-border);
    padding: 22px;
    font-family: "Times New Roman", Times, serif;
}

.ra-modal-title {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--ra-text);
}

.ra-modal-body {
    color: var(--ra-muted);
    line-height: 1.7;
}

.ra-admin-body {
    min-height: 100vh;
    background: #f3f4f6;
}

.ra-admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.ra-admin-sidebar {
    background: #111827;
    color: #ffffff;
    padding: 20px;
}

.ra-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 18px;
}

.ra-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2563eb;
    display: grid;
    place-items: center;
    font-weight: bold;
    font-size: 24px;
}

.ra-brand-name {
    font-size: 22px;
    font-weight: bold;
}

.ra-brand-caption {
    color: #9ca3af;
    font-size: 13px;
}

.ra-admin-nav {
    display: grid;
    gap: 8px;
}

.ra-admin-nav a {
    text-decoration: none;
    color: #d1d5db;
    padding: 11px 12px;
    border-radius: 12px;
}

.ra-admin-nav a:hover,
.ra-admin-nav a.is-active {
    color: #ffffff;
    background: rgba(37, 99, 235, .28);
}

.ra-admin-main {
    min-width: 0;
}

.ra-admin-header {
    min-height: 76px;
    background: #ffffff;
    border-bottom: 1px solid var(--ra-border);
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 22px;
}

.ra-menu-toggle {
    border: 1px solid var(--ra-border);
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
    font-size: 20px;
}

.ra-admin-title {
    font-size: 24px;
    font-weight: bold;
}

.ra-admin-subtitle {
    color: var(--ra-muted);
    font-size: 14px;
}

.ra-admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ra-admin-content {
    padding: 22px;
}

.ra-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.ra-stat-card,
.ra-panel {
    background: #ffffff;
    border: 1px solid var(--ra-border);
    border-radius: 18px;
    box-shadow: var(--ra-shadow);
    padding: 20px;
}

.ra-stat-card span {
    color: var(--ra-muted);
}

.ra-stat-card strong {
    display: block;
    font-size: 36px;
    margin-top: 8px;
}

.ra-panel h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .ra-admin-shell {
        grid-template-columns: 1fr;
    }

    .ra-admin-sidebar {
        display: none;
    }

    .ra-admin-sidebar.is-open {
        display: block;
    }

    .ra-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ra-admin-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .ra-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.ra-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ra-page-head h1 {
    margin: 0 0 6px;
    font-size: 30px;
    color: #111827;
}

.ra-page-head p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.ra-empty-state {
    text-align: center;
    padding: 36px 20px;
    color: #374151;
}

.ra-empty-state strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
    color: #111827;
}

.ra-empty-state p {
    margin: 0;
    color: #6b7280;
}

.ra-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ra-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ra-table th,
.ra-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
    vertical-align: middle;
}

.ra-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.ra-table td {
    color: #111827;
}

.ra-table tr:hover td {
    background: #f9fafb;
}

@media (max-width: 720px) {
    .ra-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ra-page-head .ra-btn {
        justify-content: center;
        width: 100%;
    }
}

.ra-modal-backdrop[data-modal]:not(.is-visible) {
    display: none !important;
    pointer-events: none !important;
}

.ra-modal-backdrop[data-modal].is-visible {
    display: flex !important;
    pointer-events: auto !important;
}

.ra-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
    font-size: 22px;
    line-height: 1;
}

.ra-modal-close:hover {
    background: #e5e7eb;
}

.ra-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    padding: 0;
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.ra-modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

.ra-form {
    padding: 24px;
}

.ra-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ra-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.ra-form input,
.ra-form textarea,
.ra-form select {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #f9fafb;
    color: #111827;
    padding: 12px 14px;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ra-form input:focus,
.ra-form textarea:focus,
.ra-form select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.ra-form textarea {
    resize: vertical;
    min-height: 110px;
}

.ra-form-full {
    grid-column: 1 / -1;
}

.ra-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.ra-btn-light {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
}

.ra-btn-light:hover {
    background: #e5e7eb !important;
}

.ra-modal-backdrop.is-visible {
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

@media (max-width: 720px) {
    .ra-form-grid {
        grid-template-columns: 1fr;
    }

    .ra-form-actions {
        flex-direction: column;
    }

    .ra-form-actions .ra-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Repairana premium customers page */
.rx-page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, .45), transparent 34%),
        linear-gradient(135deg, #0f172a, #1d4ed8 58%, #7c3aed);
    box-shadow: 0 22px 55px rgba(30, 64, 175, .24);
    overflow: hidden;
}

.rx-hero-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rx-hero-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 34px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

.rx-page-hero h1 {
    margin: 0 0 7px;
    font-size: 34px;
    letter-spacing: -.5px;
}

.rx-page-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    max-width: 680px;
}

.rx-primary-btn,
.rx-soft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 16px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.rx-primary-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
}

.rx-primary-btn:hover,
.rx-soft-btn:hover {
    transform: translateY(-1px);
}

.rx-soft-btn {
    background: #f8fafc;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.rx-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.rx-stat-card {
    position: relative;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.rx-stat-card:before {
    content: "";
    position: absolute;
    inset-inline-end: -28px;
    top: -28px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    opacity: .16;
}

.rx-blue:before { background: #2563eb; }
.rx-green:before { background: #059669; }
.rx-purple:before { background: #7c3aed; }
.rx-orange:before { background: #f97316; }

.rx-stat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #f8fafc;
    margin-bottom: 14px;
    font-size: 22px;
}

.rx-stat-card span {
    display: block;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 6px;
}

.rx-stat-card strong {
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
}

.rx-toolbar,
.rx-panel {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.rx-toolbar {
    padding: 16px;
    margin-bottom: 18px;
}

.rx-search-form {
    display: grid;
    grid-template-columns: 1fr 180px auto auto;
    gap: 12px;
}

.rx-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 0 14px;
}

.rx-search-box input,
.rx-search-form select {
    width: 100%;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    color: #111827;
}

.rx-search-form select {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 0 12px;
    background: #f8fafc;
}

.rx-panel {
    padding: 20px;
}

.rx-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.rx-panel-head h2 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 26px;
}

.rx-panel-head p {
    margin: 0;
    color: #64748b;
}

.rx-badge,
.rx-pill,
.rx-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.rx-badge {
    color: #1d4ed8;
    background: #dbeafe;
}

.rx-pill {
    color: #4338ca;
    background: #eef2ff;
}

.rx-status.is-active {
    color: #047857;
    background: #d1fae5;
}

.rx-status.is-muted {
    color: #475569;
    background: #e2e8f0;
}

.rx-table-wrap {
    overflow-x: auto;
}

.rx-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.rx-table th {
    color: #64748b;
    font-size: 14px;
    padding: 8px 14px;
    text-align: right;
}

.rx-table td {
    background: #ffffff;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    padding: 14px;
    color: #111827;
    vertical-align: middle;
}

.rx-table td:first-child {
    border-inline-start: 1px solid #eef2f7;
    border-radius: 18px 0 0 18px;
}

.rx-table td:last-child {
    border-inline-end: 1px solid #eef2f7;
    border-radius: 0 18px 18px 0;
}

.rx-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rx-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
    font-size: 24px;
    font-weight: 700;
}

.rx-person strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.rx-person small {
    color: #64748b;
}

.rx-actions {
    display: flex;
    gap: 7px;
}

.rx-actions button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 16px;
}

.rx-actions button:hover {
    background: #e0ecff;
}

.rx-empty {
    text-align: center;
    padding: 54px 20px;
}

.rx-empty-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 28px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    font-size: 38px;
}

.rx-empty h3 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #0f172a;
}

.rx-empty p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: #64748b;
    font-size: 17px;
}

.rx-modal-title small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
}

.rx-modal-backdrop.is-visible {
    background: rgba(15, 23, 42, .45);
}

@media (max-width: 1100px) {
    .rx-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rx-search-form {
        grid-template-columns: 1fr 160px;
    }
}

@media (max-width: 720px) {
    .rx-page-hero,
    .rx-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .rx-stat-grid,
    .rx-search-form {
        grid-template-columns: 1fr;
    }

    .rx-primary-btn,
    .rx-soft-btn {
        width: 100%;
    }

    .rx-page-hero h1 {
        font-size: 30px;
    }
}

.rx-customer-view {
    padding: 28px;
    text-align: center;
}

.rx-customer-big-avatar {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 32px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 46px;
    font-weight: 700;
    box-shadow: 0 18px 38px rgba(37, 99, 235, .28);
}

.rx-customer-main h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 30px;
}

.rx-customer-main p {
    margin: 0;
    color: #64748b;
    font-size: 17px;
}

.rx-customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    text-align: right;
}

.rx-customer-info-grid div {
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.rx-customer-info-grid span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.rx-customer-info-grid strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
}

.rx-info-full {
    grid-column: 1 / -1;
}

.rx-customer-view-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 720px) {
    .rx-customer-info-grid {
        grid-template-columns: 1fr;
    }

    .rx-customer-view-actions {
        flex-direction: column;
    }
}

.rx-lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease;
}

.rx-lang-switch:hover {
    transform: translateY(-1px);
    background: #bfdbfe;
}

.rx-linked-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 24px 24px 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
}

.rx-linked-customer span {
    color: #64748b;
    font-weight: 700;
}

.rx-linked-customer strong {
    color: #1d4ed8;
    font-size: 18px;
}

.rx-field-title {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.rx-check-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe2ea;
    border-radius: 18px;
    background: #f8fafc;
}

.rx-check-chip {
    position: relative;
    cursor: pointer;
}

.rx-check-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rx-check-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.rx-check-chip input:checked + span {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.rx-check-chip:hover span {
    transform: translateY(-1px);
}

.rx-devices-hero {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, .36), transparent 34%),
        linear-gradient(135deg, #0f172a, #0f766e 58%, #2563eb);
}

.rx-device-search-form {
    grid-template-columns: 1fr 170px 170px auto auto;
}

.rx-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rx-device-card {
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
}

.rx-device-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rx-device-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #dcfce7, #dbeafe);
    font-size: 28px;
}

.rx-device-top h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 23px;
}

.rx-device-top p {
    margin: 0;
    color: #64748b;
}

.rx-device-top .rx-status {
    margin-inline-start: auto;
}

.rx-device-owner,
.rx-accessories-box,
.rx-device-note {
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    margin-bottom: 12px;
}

.rx-device-owner span,
.rx-accessories-box > span,
.rx-device-note span,
.rx-device-meta span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

.rx-device-owner strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
}

.rx-device-owner small {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

.rx-device-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.rx-device-meta div {
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #edf2f7;
}

.rx-device-meta strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
}

.rx-accessory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rx-accessory-list em {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-style: normal;
    font-weight: 700;
}

.rx-accessories-box p,
.rx-device-note p {
    margin: 0;
    color: #64748b;
}

.rx-device-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.rx-device-actions button {
    flex: 1;
    min-height: 40px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
}

.rx-device-actions button:hover {
    background: #dbeafe;
}

@media (max-width: 1100px) {
    .rx-device-grid {
        grid-template-columns: 1fr;
    }

    .rx-device-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .rx-device-search-form,
    .rx-device-meta {
        grid-template-columns: 1fr;
    }
}

/* LTR refinements */
body.is-ltr .ra-admin-sidebar,
body.is-ltr .ra-admin-content,
body.is-ltr .rx-panel,
body.is-ltr .rx-modal,
body.is-ltr .rx-toolbar,
body.is-ltr .rx-customer-info-grid,
body.is-ltr .rx-device-meta,
body.is-ltr .rx-accessories-box,
body.is-ltr .rx-device-note {
    direction: ltr;
}

body.is-ltr .rx-table th,
body.is-ltr .rx-table td,
body.is-ltr .ra-table th,
body.is-ltr .ra-table td,
body.is-ltr .rx-customer-info-grid,
body.is-ltr .rx-device-meta,
body.is-ltr .rx-accessories-box,
body.is-ltr .rx-device-note,
body.is-ltr .rx-form label,
body.is-ltr .rx-field-title,
body.is-ltr .ra-form label {
    text-align: left;
}

body.is-ltr .rx-person,
body.is-ltr .rx-device-top,
body.is-ltr .rx-hero-content,
body.is-ltr .rx-linked-customer,
body.is-ltr .ra-admin-header,
body.is-ltr .ra-admin-user {
    direction: ltr;
}

body.is-ltr .rx-device-top .rx-status {
    margin-left: auto;
    margin-right: 0;
}

body.is-ltr .rx-table td:first-child {
    border-radius: 18px 0 0 18px;
}

body.is-ltr .rx-table td:last-child {
    border-radius: 0 18px 18px 0;
}

body.is-ltr select,
body.is-ltr input,
body.is-ltr textarea {
    direction: ltr;
    text-align: left;
}

.rx-nav-disabled {
    display: block;
    padding: 11px 13px;
    border-radius: 14px;
    color: rgba(255, 255, 255, .42);
    cursor: not-allowed;
    user-select: none;
}

.ra-brand {
    align-items: center;
    justify-content: center;
}

.ra-brand-logo {
    display: block;
    max-width: 180px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.is-ltr .ra-brand {
    direction: ltr;
}

body.is-rtl .ra-brand {
    direction: rtl;
}

/* Sidebar branding size tuning */
.ra-admin-sidebar .ra-brand {
    padding: 6px 4px 14px;
}

.ra-admin-sidebar .ra-brand-logo {
    max-width: 132px;
    max-height: 44px;
}

/* Auth pages */
.ra-auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    background:
        radial-gradient(circle at top left, rgba(40, 184, 195, .22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16, 73, 148, .28), transparent 36%),
        linear-gradient(135deg, #071426 0%, #0d2445 44%, #eef6ff 44%, #f8fbff 100%);
    color: #102037;
}

.ra-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 34px;
    padding: 44px;
    box-sizing: border-box;
}

.ra-auth-shell.is-simple {
    display: flex;
    justify-content: center;
}

.ra-auth-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 42px;
    min-height: 540px;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ra-auth-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(35, 194, 210, .24);
    filter: blur(28px);
    top: -70px;
    inset-inline-end: -70px;
}

.ra-auth-logo {
    width: min(260px, 82%);
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.ra-auth-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .15);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.ra-auth-hero h1 {
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1;
    margin: 24px 0 14px;
    position: relative;
    z-index: 1;
}

.ra-auth-hero p {
    max-width: 560px;
    font-size: 20px;
    line-height: 1.8;
    opacity: .9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.ra-auth-features {
    display: grid;
    gap: 12px;
    margin-top: 34px;
    position: relative;
    z-index: 1;
}

.ra-auth-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .13);
}

.ra-auth-card {
    position: relative;
    width: min(100%, 500px);
    margin: 0 auto;
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(15, 38, 78, .18);
    border: 1px solid rgba(255, 255, 255, .75);
}

.ra-auth-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.ra-auth-lang {
    text-decoration: none;
    color: #0f4f8f;
    background: #edf7ff;
    border: 1px solid #d5ecff;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 15px;
}

.ra-auth-card-logo {
    display: block;
    max-width: 190px;
    max-height: 64px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.ra-auth-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e9f8ff, #dff8f4);
    color: #0f4f8f;
    font-size: 28px;
    box-shadow: inset 0 0 0 1px rgba(14, 91, 156, .08);
}

.ra-auth-card h2 {
    text-align: center;
    font-size: 34px;
    margin: 0 0 10px;
    color: #102037;
}

.ra-auth-card p {
    text-align: center;
    color: #607087;
    line-height: 1.7;
    margin: 0 0 22px;
    font-size: 17px;
}

.ra-auth-form {
    display: grid;
    gap: 16px;
}

.ra-auth-form label {
    display: grid;
    gap: 8px;
    color: #20304a;
    font-weight: 700;
}

.ra-auth-form input {
    height: 52px;
    border-radius: 17px;
    border: 1px solid #d9e6f4;
    background: #f8fbff;
    padding: 0 16px;
    outline: none;
    font-size: 17px;
    font-family: "Times New Roman", Times, serif;
    transition: .2s ease;
}

.ra-auth-form input:focus {
    border-color: #22b6c6;
    box-shadow: 0 0 0 4px rgba(34, 182, 198, .13);
    background: #fff;
}

.ra-auth-submit {
    height: 54px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    font-family: "Times New Roman", Times, serif;
    background: linear-gradient(135deg, #0e4f92, #1bb8c8);
    box-shadow: 0 16px 30px rgba(22, 129, 173, .28);
}

.ra-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ra-auth-links.is-center {
    justify-content: center;
    margin-top: 18px;
}

.ra-auth-links a {
    color: #0e5ea8;
    text-decoration: none;
    font-weight: 700;
}

.ra-auth-note,
.ra-auth-alert,
.ra-auth-success {
    margin-top: 18px;
    border-radius: 18px;
    padding: 13px 15px;
    line-height: 1.6;
    text-align: center;
}

.ra-auth-note {
    color: #637083;
    background: #f5f8fc;
    border: 1px dashed #d9e6f4;
}

.ra-auth-alert {
    color: #8a351f;
    background: #fff1ea;
    border: 1px solid #ffd7c7;
    margin-bottom: 16px;
}

.ra-auth-success {
    color: #126b4b;
    background: #eafaf3;
    border: 1px solid #c5f0dc;
    margin-bottom: 16px;
}

body.is-ltr .ra-auth-card,
body.is-ltr .ra-auth-hero,
body.is-ltr .ra-auth-form,
body.is-ltr .ra-auth-form input {
    direction: ltr;
    text-align: left;
}

body.is-rtl .ra-auth-card,
body.is-rtl .ra-auth-hero,
body.is-rtl .ra-auth-form {
    direction: rtl;
}

@media (max-width: 940px) {
    .ra-auth-shell {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .ra-auth-hero {
        min-height: auto;
        padding: 28px;
    }

    .ra-auth-card {
        padding: 26px;
    }
}

@media (max-width: 560px) {
    .ra-auth-shell {
        padding: 16px;
    }

    .ra-auth-hero {
        display: none;
    }

    .ra-auth-card h2 {
        font-size: 28px;
    }
}

/* Auth RTL/LTR visual mirroring and responsive polishing */
body.ra-auth-body.is-rtl {
    background:
        radial-gradient(circle at top right, rgba(40, 184, 195, .22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(16, 73, 148, .28), transparent 36%),
        linear-gradient(225deg, #071426 0%, #0d2445 44%, #eef6ff 44%, #f8fbff 100%);
}

body.ra-auth-body.is-ltr {
    background:
        radial-gradient(circle at top left, rgba(40, 184, 195, .22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16, 73, 148, .28), transparent 36%),
        linear-gradient(135deg, #071426 0%, #0d2445 44%, #eef6ff 44%, #f8fbff 100%);
}

body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
    grid-template-columns: minmax(360px, 520px) minmax(320px, 1fr);
}

body.ra-auth-body.is-rtl .ra-auth-card {
    order: 1;
}

body.ra-auth-body.is-rtl .ra-auth-hero {
    order: 2;
    text-align: right;
}

body.ra-auth-body.is-ltr .ra-auth-card {
    order: 2;
}

body.ra-auth-body.is-ltr .ra-auth-hero {
    order: 1;
    text-align: left;
}

body.ra-auth-body.is-rtl .ra-auth-topbar {
    justify-content: flex-start;
}

body.ra-auth-body.is-ltr .ra-auth-topbar {
    justify-content: flex-end;
}

body.ra-auth-body.is-rtl .ra-auth-logo {
    margin-right: auto;
    margin-left: 0;
}

body.ra-auth-body.is-ltr .ra-auth-logo {
    margin-left: 0;
    margin-right: auto;
}

body.ra-auth-body.is-rtl .ra-auth-badge {
    margin-right: auto;
    margin-left: 0;
}

body.ra-auth-body.is-ltr .ra-auth-badge {
    margin-left: 0;
    margin-right: auto;
}

.ra-auth-shell,
.ra-auth-card,
.ra-auth-hero {
    max-width: 100%;
}

.ra-auth-card {
    box-sizing: border-box;
}

.ra-auth-logo {
    max-height: 76px;
    object-fit: contain;
}

body.ra-auth-body.is-rtl .ra-auth-logo {
    width: min(300px, 86%);
}

body.ra-auth-body.is-ltr .ra-auth-logo {
    width: min(270px, 84%);
}

.ra-auth-features span {
    min-height: 28px;
}

@media (max-width: 1180px) {
    .ra-auth-shell,
    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
        grid-template-columns: minmax(320px, 480px) minmax(320px, 1fr);
        gap: 24px;
        padding: 32px;
    }

    .ra-auth-hero {
        min-height: 480px;
    }

    .ra-auth-card {
        padding: 28px;
    }
}

@media (max-width: 940px) {
    .ra-auth-shell,
    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    body.ra-auth-body.is-rtl,
    body.ra-auth-body.is-ltr {
        background:
            radial-gradient(circle at top, rgba(40, 184, 195, .22), transparent 34%),
            linear-gradient(180deg, #071426 0%, #0d2445 38%, #eef6ff 38%, #f8fbff 100%);
    }

    body.ra-auth-body.is-rtl .ra-auth-card,
    body.ra-auth-body.is-ltr .ra-auth-card {
        order: 2;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero,
    body.ra-auth-body.is-ltr .ra-auth-hero {
        order: 1;
    }

    .ra-auth-hero {
        min-height: auto;
        padding: 26px;
    }

    .ra-auth-logo {
        width: min(230px, 74%) !important;
        max-height: 62px;
        margin-inline: auto !important;
    }

    .ra-auth-badge {
        margin-inline: auto !important;
    }

    .ra-auth-hero h1,
    .ra-auth-hero p {
        text-align: center;
        margin-inline: auto;
    }

    .ra-auth-features {
        max-width: 620px;
        margin-inline: auto;
    }

    .ra-auth-card {
        width: min(100%, 560px);
    }
}

@media (max-width: 680px) {
    .ra-auth-shell {
        padding: 16px;
    }

    .ra-auth-hero {
        border-radius: 26px;
        padding: 22px;
    }

    .ra-auth-features {
        display: none;
    }

    .ra-auth-hero h1 {
        font-size: 34px;
    }

    .ra-auth-hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    .ra-auth-card {
        border-radius: 26px;
        padding: 22px;
    }

    .ra-auth-card-logo {
        max-width: 160px;
        max-height: 54px;
    }

    .ra-auth-card h2 {
        font-size: 28px;
    }

    .ra-auth-card p {
        font-size: 15px;
    }

    .ra-auth-form input,
    .ra-auth-submit {
        height: 50px;
    }
}

@media (max-width: 560px) {
    .ra-auth-shell {
        min-height: 100vh;
        justify-content: center;
    }

    .ra-auth-hero {
        display: none;
    }

    body.ra-auth-body.is-rtl,
    body.ra-auth-body.is-ltr {
        background:
            radial-gradient(circle at top, rgba(40, 184, 195, .25), transparent 36%),
            linear-gradient(160deg, #071426 0%, #0d2445 44%, #eef6ff 44%, #f8fbff 100%);
    }

    .ra-auth-card {
        width: 100%;
        max-width: 420px;
        margin: auto;
    }

    .ra-auth-topbar {
        margin-bottom: 8px;
    }

    .ra-auth-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        border-radius: 18px;
    }

    .ra-auth-links {
        justify-content: center;
    }

    .ra-auth-note {
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .ra-auth-shell {
        padding: 10px;
    }

    .ra-auth-card {
        padding: 18px;
        border-radius: 22px;
    }

    .ra-auth-card h2 {
        font-size: 25px;
    }

    .ra-auth-lang {
        font-size: 13px;
        padding: 7px 11px;
    }
}

/* Auth RTL final alignment fix */
body.ra-auth-body.is-rtl .ra-auth-hero {
    display: flex;
    align-items: flex-end;
    text-align: right;
    padding-inline-start: 40px;
    padding-inline-end: 56px;
}

body.ra-auth-body.is-rtl .ra-auth-logo {
    margin-left: auto !important;
    margin-right: 0 !important;
}

body.ra-auth-body.is-rtl .ra-auth-badge {
    margin-left: auto !important;
    margin-right: 0 !important;
}

body.ra-auth-body.is-rtl .ra-auth-hero h1,
body.ra-auth-body.is-rtl .ra-auth-hero p {
    margin-left: 0;
    margin-right: 0;
    text-align: right;
}

body.ra-auth-body.is-rtl .ra-auth-features {
    width: min(100%, 620px);
    margin-left: 0;
    margin-right: 0;
}

body.ra-auth-body.is-rtl .ra-auth-features span {
    justify-content: flex-start;
    text-align: right;
}

body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
    grid-template-columns: minmax(360px, 520px) minmax(520px, 1fr);
    gap: 42px;
}

body.ra-auth-body.is-rtl .ra-auth-card {
    justify-self: start;
}

body.ra-auth-body.is-rtl .ra-auth-hero {
    justify-self: stretch;
}

/* LTR keeps the opposite clean layout */
body.ra-auth-body.is-ltr .ra-auth-hero {
    align-items: flex-start;
    padding-inline-start: 42px;
    padding-inline-end: 40px;
}

body.ra-auth-body.is-ltr .ra-auth-logo {
    margin-left: 0 !important;
    margin-right: auto !important;
}

body.ra-auth-body.is-ltr .ra-auth-badge {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Prevent hero content from sitting under the diagonal on medium screens */
@media (max-width: 1320px) {
    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple),
    body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple) {
        grid-template-columns: minmax(360px, 500px) minmax(460px, 1fr);
        gap: 28px;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero {
        padding-inline-end: 34px;
    }
}

/* Tablet: simplify and center hero so it stays clean */
@media (max-width: 940px) {
    body.ra-auth-body.is-rtl .ra-auth-hero,
    body.ra-auth-body.is-ltr .ra-auth-hero {
        align-items: center;
        text-align: center;
        padding: 26px;
    }

    body.ra-auth-body.is-rtl .ra-auth-logo,
    body.ra-auth-body.is-ltr .ra-auth-logo,
    body.ra-auth-body.is-rtl .ra-auth-badge,
    body.ra-auth-body.is-ltr .ra-auth-badge {
        margin-inline: auto !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero h1,
    body.ra-auth-body.is-rtl .ra-auth-hero p,
    body.ra-auth-body.is-ltr .ra-auth-hero h1,
    body.ra-auth-body.is-ltr .ra-auth-hero p {
        text-align: center;
        margin-inline: auto;
    }

    body.ra-auth-body.is-rtl .ra-auth-features,
    body.ra-auth-body.is-ltr .ra-auth-features {
        margin-inline: auto;
    }
}

/* Auth diagonal layer final fix */
.ra-auth-body {
    position: relative;
    overflow-x: hidden;
}

body.ra-auth-body.is-rtl,
body.ra-auth-body.is-ltr {
    background:
        radial-gradient(circle at 18% 22%, rgba(40, 184, 195, .20), transparent 30%),
        linear-gradient(135deg, #061325 0%, #0b2444 100%) !important;
}

.ra-auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
}

body.ra-auth-body.is-ltr::before {
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 76% 100%);
}

body.ra-auth-body.is-rtl::before {
    clip-path: polygon(0 0, 42% 0, 24% 100%, 0 100%);
}

.ra-auth-shell {
    position: relative;
    z-index: 1;
}

.ra-auth-hero {
    background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055)) !important;
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
}

body.ra-auth-body.is-rtl .ra-auth-hero,
body.ra-auth-body.is-ltr .ra-auth-hero {
    color: #fff;
}

.ra-auth-hero h1,
.ra-auth-hero p,
.ra-auth-badge,
.ra-auth-features span {
    text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}

.ra-auth-features span {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.ra-auth-badge {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
    grid-template-columns: minmax(360px, 500px) minmax(600px, 1fr);
}

body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple) {
    grid-template-columns: minmax(600px, 1fr) minmax(360px, 500px);
}

body.ra-auth-body.is-rtl .ra-auth-hero {
    align-items: flex-end;
    padding-inline-end: 52px;
    padding-inline-start: 52px;
}

body.ra-auth-body.is-ltr .ra-auth-hero {
    align-items: flex-start;
    padding-inline-start: 52px;
    padding-inline-end: 52px;
}

body.ra-auth-body.is-rtl .ra-auth-logo {
    margin-right: 0 !important;
    margin-left: auto !important;
}

body.ra-auth-body.is-ltr .ra-auth-logo {
    margin-left: 0 !important;
    margin-right: auto !important;
}

@media (max-width: 1180px) {
    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple),
    body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple) {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.ra-auth-body.is-rtl::before,
    body.ra-auth-body.is-ltr::before {
        clip-path: polygon(0 45%, 100% 30%, 100% 100%, 0 100%);
    }

    body.ra-auth-body.is-rtl .ra-auth-card,
    body.ra-auth-body.is-ltr .ra-auth-card {
        order: 2;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero,
    body.ra-auth-body.is-ltr .ra-auth-hero {
        order: 1;
        align-items: center;
        text-align: center;
        padding: 28px;
    }

    body.ra-auth-body.is-rtl .ra-auth-logo,
    body.ra-auth-body.is-ltr .ra-auth-logo,
    body.ra-auth-body.is-rtl .ra-auth-badge,
    body.ra-auth-body.is-ltr .ra-auth-badge {
        margin-inline: auto !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero h1,
    body.ra-auth-body.is-ltr .ra-auth-hero h1,
    body.ra-auth-body.is-rtl .ra-auth-hero p,
    body.ra-auth-body.is-ltr .ra-auth-hero p {
        text-align: center;
    }
}

@media (max-width: 560px) {
    body.ra-auth-body.is-rtl::before,
    body.ra-auth-body.is-ltr::before {
        clip-path: polygon(0 56%, 100% 44%, 100% 100%, 0 100%);
    }

    .ra-auth-hero {
        display: none !important;
    }

    .ra-auth-shell {
        min-height: 100vh;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Auth layout cleanup: keep diagonal as background only, never over content */
.ra-auth-body::before {
    opacity: .92;
    filter: none !important;
}

body.ra-auth-body.is-ltr::before {
    clip-path: polygon(62% 0, 100% 0, 100% 100%, 80% 100%) !important;
}

body.ra-auth-body.is-rtl::before {
    clip-path: polygon(0 0, 38% 0, 20% 100%, 0 100%) !important;
}

/* Make hero fully readable and independent from diagonal background */
.ra-auth-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(31, 195, 210, .18), transparent 34%),
        linear-gradient(145deg, rgba(22, 46, 78, .92), rgba(11, 30, 56, .88)) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22) !important;
}

.ra-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .06),
        rgba(255, 255, 255, .02)
    );
    pointer-events: none;
}

body.ra-auth-body.is-rtl .ra-auth-hero {
    background:
        radial-gradient(circle at top left, rgba(31, 195, 210, .18), transparent 34%),
        linear-gradient(145deg, rgba(22, 46, 78, .92), rgba(11, 30, 56, .88)) !important;
}

.ra-auth-hero h1,
.ra-auth-hero p,
.ra-auth-badge,
.ra-auth-features span {
    color: #fff !important;
    opacity: 1 !important;
}

.ra-auth-logo {
    opacity: 1 !important;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .18));
}

/* Better desktop spacing */
.ra-auth-shell {
    gap: 34px !important;
}

body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple) {
    grid-template-columns: minmax(560px, 1fr) minmax(360px, 500px) !important;
}

body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
    grid-template-columns: minmax(360px, 500px) minmax(560px, 1fr) !important;
}

/* Arabic hero content stays on the right, English on the left */
body.ra-auth-body.is-rtl .ra-auth-hero {
    align-items: flex-end !important;
    text-align: right !important;
}

body.ra-auth-body.is-ltr .ra-auth-hero {
    align-items: flex-start !important;
    text-align: left !important;
}

body.ra-auth-body.is-rtl .ra-auth-hero h1,
body.ra-auth-body.is-rtl .ra-auth-hero p {
    text-align: right !important;
}

body.ra-auth-body.is-ltr .ra-auth-hero h1,
body.ra-auth-body.is-ltr .ra-auth-hero p {
    text-align: left !important;
}

body.ra-auth-body.is-rtl .ra-auth-logo,
body.ra-auth-body.is-rtl .ra-auth-badge {
    margin-right: 0 !important;
    margin-left: auto !important;
}

body.ra-auth-body.is-ltr .ra-auth-logo,
body.ra-auth-body.is-ltr .ra-auth-badge {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Tablet and mobile: remove risky diagonal overlap */
@media (max-width: 1180px) {
    body.ra-auth-body.is-ltr::before,
    body.ra-auth-body.is-rtl::before {
        clip-path: polygon(0 52%, 100% 38%, 100% 100%, 0 100%) !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple),
    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
        grid-template-columns: 1fr !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero,
    body.ra-auth-body.is-rtl .ra-auth-hero {
        align-items: center !important;
        text-align: center !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero h1,
    body.ra-auth-body.is-ltr .ra-auth-hero p,
    body.ra-auth-body.is-rtl .ra-auth-hero h1,
    body.ra-auth-body.is-rtl .ra-auth-hero p {
        text-align: center !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-logo,
    body.ra-auth-body.is-ltr .ra-auth-badge,
    body.ra-auth-body.is-rtl .ra-auth-logo,
    body.ra-auth-body.is-rtl .ra-auth-badge {
        margin-inline: auto !important;
    }
}

@media (max-width: 560px) {
    body.ra-auth-body.is-ltr::before,
    body.ra-auth-body.is-rtl::before {
        clip-path: none !important;
        opacity: .14;
    }

    .ra-auth-card {
        box-shadow: 0 24px 70px rgba(15, 38, 78, .22) !important;
    }
}

/* Auth hero content column consistency */
.ra-auth-hero {
    justify-content: center !important;
}

.ra-auth-hero > * {
    max-width: 620px;
}

body.ra-auth-body.is-ltr .ra-auth-hero > * {
    align-self: flex-start;
}

body.ra-auth-body.is-rtl .ra-auth-hero > * {
    align-self: flex-end;
}

/* Keep logo, badge, title, subtitle, features stacked in one visual column */
body.ra-auth-body.is-rtl .ra-auth-logo,
body.ra-auth-body.is-rtl .ra-auth-badge,
body.ra-auth-body.is-rtl .ra-auth-hero h1,
body.ra-auth-body.is-rtl .ra-auth-hero p,
body.ra-auth-body.is-rtl .ra-auth-features {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: right !important;
}

body.ra-auth-body.is-ltr .ra-auth-logo,
body.ra-auth-body.is-ltr .ra-auth-badge,
body.ra-auth-body.is-ltr .ra-auth-hero h1,
body.ra-auth-body.is-ltr .ra-auth-hero p,
body.ra-auth-body.is-ltr .ra-auth-features {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

/* Arabic feature rows should read from right to left and stay under title */
body.ra-auth-body.is-rtl .ra-auth-features {
    width: min(100%, 620px);
}

body.ra-auth-body.is-rtl .ra-auth-features span {
    direction: rtl;
    justify-content: flex-start;
    text-align: right !important;
}

body.ra-auth-body.is-ltr .ra-auth-features {
    width: min(100%, 360px);
}

body.ra-auth-body.is-ltr .ra-auth-features span {
    direction: ltr;
    justify-content: flex-start;
    text-align: left !important;
}

/* Logo visual size balance */
body.ra-auth-body.is-rtl .ra-auth-logo,
body.ra-auth-body.is-ltr .ra-auth-logo {
    display: block;
    width: min(260px, 86%) !important;
    max-height: 76px;
}

/* On tablet/mobile center everything */
@media (max-width: 1180px) {
    body.ra-auth-body.is-rtl .ra-auth-hero > *,
    body.ra-auth-body.is-ltr .ra-auth-hero > * {
        align-self: center;
    }

    body.ra-auth-body.is-rtl .ra-auth-logo,
    body.ra-auth-body.is-rtl .ra-auth-badge,
    body.ra-auth-body.is-rtl .ra-auth-hero h1,
    body.ra-auth-body.is-rtl .ra-auth-hero p,
    body.ra-auth-body.is-rtl .ra-auth-features,
    body.ra-auth-body.is-ltr .ra-auth-logo,
    body.ra-auth-body.is-ltr .ra-auth-badge,
    body.ra-auth-body.is-ltr .ra-auth-hero h1,
    body.ra-auth-body.is-ltr .ra-auth-hero p,
    body.ra-auth-body.is-ltr .ra-auth-features {
        margin-inline: auto !important;
        text-align: center !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features span,
    body.ra-auth-body.is-ltr .ra-auth-features span {
        justify-content: center;
        text-align: center !important;
    }
}

/* Auth true language mirror - final rule */
@media (min-width: 1181px) {
    body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple) {
        grid-template-columns: minmax(560px, 1fr) minmax(360px, 500px) !important;
        grid-template-areas: "hero card" !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
        grid-template-columns: minmax(360px, 500px) minmax(560px, 1fr) !important;
        grid-template-areas: "card hero" !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero,
    body.ra-auth-body.is-rtl .ra-auth-hero {
        grid-area: hero !important;
        order: initial !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-card,
    body.ra-auth-body.is-rtl .ra-auth-card {
        grid-area: card !important;
        order: initial !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero {
        align-items: flex-start !important;
        text-align: left !important;
        padding-inline-start: 52px !important;
        padding-inline-end: 52px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero {
        align-items: flex-end !important;
        text-align: right !important;
        padding-inline-start: 52px !important;
        padding-inline-end: 52px !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero > * {
        align-self: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero > * {
        align-self: flex-end !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: right !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-features,
    body.ra-auth-body.is-rtl .ra-auth-features {
        width: min(100%, 390px) !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-features span {
        direction: ltr !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features span {
        direction: rtl !important;
        justify-content: flex-start !important;
        text-align: right !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-card {
        justify-self: end !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-card {
        justify-self: start !important;
    }

    body.ra-auth-body.is-ltr::before {
        clip-path: polygon(62% 0, 100% 0, 100% 100%, 80% 100%) !important;
    }

    body.ra-auth-body.is-rtl::before {
        clip-path: polygon(0 0, 38% 0, 20% 100%, 0 100%) !important;
    }
}

/* Tablet/mobile: keep login first and centered for usability */
@media (max-width: 1180px) {
    body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple),
    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "card"
            "hero" !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-card,
    body.ra-auth-body.is-rtl .ra-auth-card {
        grid-area: card !important;
        justify-self: center !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero,
    body.ra-auth-body.is-rtl .ra-auth-hero {
        grid-area: hero !important;
        align-items: center !important;
        text-align: center !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero > *,
    body.ra-auth-body.is-rtl .ra-auth-hero > * {
        align-self: center !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-features span,
    body.ra-auth-body.is-rtl .ra-auth-features span {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Auth true full mirror using flex instead of grid */
@media (min-width: 1181px) {
    .ra-auth-shell:not(.is-simple) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 34px !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-shell:not(.is-simple) {
        flex-direction: row !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-shell:not(.is-simple) {
        flex-direction: row-reverse !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-hero {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        grid-area: unset !important;
        order: unset !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-card {
        flex: 0 0 500px !important;
        width: 500px !important;
        max-width: 500px !important;
        grid-area: unset !important;
        order: unset !important;
        justify-self: unset !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero {
        align-items: flex-start !important;
        text-align: left !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero {
        align-items: flex-end !important;
        text-align: right !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero > * {
        align-self: flex-start !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero > * {
        align-self: flex-end !important;
        text-align: right !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-features span {
        direction: ltr !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features span {
        direction: rtl !important;
        justify-content: flex-start !important;
        text-align: right !important;
    }
}

/* Keep tablet/mobile practical: form first, hero below */
@media (max-width: 1180px) {
    .ra-auth-shell:not(.is-simple) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 22px !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-card {
        order: 1 !important;
        width: min(100%, 560px) !important;
        max-width: 560px !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-hero {
        order: 2 !important;
        width: min(100%, 760px) !important;
        max-width: 760px !important;
    }
}

/* Final auth desktop placement */
@media (min-width: 1181px) {
    .ra-auth-shell:not(.is-simple) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 34px !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-card {
        flex: 0 0 500px !important;
        width: 500px !important;
        max-width: 500px !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-hero {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    /* English: login left, hero right */
    body.ra-auth-body.is-ltr .ra-auth-card {
        order: 1 !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero {
        order: 2 !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    /* Arabic: hero left, login right */
    body.ra-auth-body.is-rtl .ra-auth-hero {
        order: 1 !important;
        align-items: flex-end !important;
        text-align: right !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-card {
        order: 2 !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-hero > * {
        align-self: flex-start !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero > * {
        align-self: flex-end !important;
        text-align: right !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.ra-auth-body.is-ltr .ra-auth-features span {
        direction: ltr !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features span {
        direction: rtl !important;
        justify-content: flex-start !important;
        text-align: right !important;
    }
}

/* Mobile/tablet: login first always */
@media (max-width: 1180px) {
    .ra-auth-shell:not(.is-simple) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 22px !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-card {
        order: 1 !important;
        width: min(100%, 560px) !important;
        max-width: 560px !important;
    }

    .ra-auth-shell:not(.is-simple) .ra-auth-hero {
        order: 2 !important;
        width: min(100%, 760px) !important;
        max-width: 760px !important;
    }
}

/* Arabic auth hero content must sit on the right side */
@media (min-width: 1181px) {
    body.ra-auth-body.is-rtl .ra-auth-hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        text-align: right !important;
        padding-right: 56px !important;
        padding-left: 56px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero > * {
        align-self: flex-end !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        text-align: right !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-logo {
        align-self: flex-end !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-badge {
        align-self: flex-end !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features {
        align-self: flex-end !important;
        width: min(100%, 390px) !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features span {
        direction: rtl !important;
        justify-content: flex-start !important;
        text-align: right !important;
    }
}

/* Absolute final fix: Arabic hero content to the opposite side */
@media (min-width: 1181px) {
    body.ra-auth-body.is-rtl .ra-auth-hero {
        position: relative !important;
        display: block !important;
        min-height: 520px !important;
        padding: 0 !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-logo,
    body.ra-auth-body.is-rtl .ra-auth-badge,
    body.ra-auth-body.is-rtl .ra-auth-hero h1,
    body.ra-auth-body.is-rtl .ra-auth-hero p,
    body.ra-auth-body.is-rtl .ra-auth-features {
        position: relative !important;
        width: 390px !important;
        max-width: 390px !important;
        margin-right: auto !important;
        margin-left: 56px !important;
        text-align: right !important;
        direction: rtl !important;
        transform: none !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-logo {
        margin-top: 58px !important;
        display: block !important;
        height: auto !important;
        max-height: 76px !important;
        object-fit: contain !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-badge {
        display: inline-flex !important;
        width: fit-content !important;
        max-width: 390px !important;
        margin-top: 32px !important;
        margin-bottom: 22px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero h1 {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero p {
        margin-top: 0 !important;
        margin-bottom: 34px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features {
        display: grid !important;
        gap: 12px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-features span {
        direction: rtl !important;
        justify-content: flex-start !important;
        text-align: right !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Final auth hero content wrapper */
.ra-auth-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.ra-auth-hero-content {
    width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
}

body.ra-auth-body.is-ltr .ra-auth-hero {
    justify-content: flex-start !important;
}

body.ra-auth-body.is-rtl .ra-auth-hero {
    justify-content: flex-end !important;
}

body.ra-auth-body.is-ltr .ra-auth-hero-content {
    align-items: flex-start !important;
    text-align: left !important;
    direction: ltr !important;
}

body.ra-auth-body.is-rtl .ra-auth-hero-content {
    align-items: flex-end !important;
    text-align: right !important;
    direction: rtl !important;
}

.ra-auth-hero-content .ra-auth-logo,
.ra-auth-hero-content .ra-auth-badge,
.ra-auth-hero-content h1,
.ra-auth-hero-content p,
.ra-auth-hero-content .ra-auth-features {
    position: static !important;
    align-self: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

.ra-auth-hero-content .ra-auth-logo {
    margin-bottom: 30px !important;
}

.ra-auth-hero-content .ra-auth-badge {
    margin-bottom: 22px !important;
}

.ra-auth-hero-content h1 {
    margin: 0 0 14px !important;
}

.ra-auth-hero-content p {
    margin: 0 0 34px !important;
}

.ra-auth-hero-content .ra-auth-features {
    width: 390px !important;
    display: grid !important;
    gap: 12px !important;
}

body.ra-auth-body.is-ltr .ra-auth-hero-content .ra-auth-features span {
    direction: ltr !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

body.ra-auth-body.is-rtl .ra-auth-hero-content .ra-auth-features span {
    direction: rtl !important;
    justify-content: flex-start !important;
    text-align: right !important;
}

@media (max-width: 1180px) {
    .ra-auth-hero {
        justify-content: center !important;
    }

    .ra-auth-hero-content {
        align-items: center !important;
        text-align: center !important;
    }

    .ra-auth-hero-content .ra-auth-features {
        width: min(100%, 420px) !important;
    }

    .ra-auth-hero-content .ra-auth-features span {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Arabic auth hero content spacing polish */
@media (min-width: 1181px) {
    body.ra-auth-body.is-rtl .ra-auth-hero-content {
        width: 430px !important;
        max-width: 430px !important;
        margin-inline-start: auto !important;
        margin-inline-end: 72px !important;
        align-items: flex-end !important;
        text-align: right !important;
        transform: translateX(-18px);
    }

    body.ra-auth-body.is-rtl .ra-auth-hero-content .ra-auth-logo {
        width: 260px !important;
        max-width: 260px !important;
        margin-bottom: 28px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero-content .ra-auth-badge {
        margin-bottom: 28px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero-content h1 {
        width: 100% !important;
        font-size: 56px !important;
        line-height: 1.05 !important;
        margin: 0 0 14px !important;
        text-align: right !important;
        white-space: nowrap;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero-content p {
        width: 100% !important;
        margin: 0 0 34px !important;
        text-align: right !important;
        line-height: 1.7 !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero-content .ra-auth-features {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        gap: 12px !important;
    }

    body.ra-auth-body.is-rtl .ra-auth-hero-content .ra-auth-features span {
        width: 100% !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 13px 16px !important;
    }
}

/* Dashboard upgrade */
.rx-dashboard-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(35, 190, 204, .25), transparent 34%),
        linear-gradient(135deg, #10294b, #0a1f3a);
    box-shadow: 0 24px 60px rgba(13, 38, 76, .18);
    margin-bottom: 22px;
    overflow: hidden;
}

body.is-rtl .rx-dashboard-hero {
    grid-template-columns: auto 1fr;
    direction: rtl;
}

.rx-soft-badge {
    display: inline-flex;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    margin-bottom: 16px;
}

.rx-dashboard-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
}

.rx-dashboard-hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.86);
}

.rx-dashboard-user-card {
    min-width: 180px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    display: grid;
    gap: 8px;
}

.rx-dashboard-user-card span {
    color: rgba(255,255,255,.88);
}

.rx-dashboard-user-card strong {
    direction: ltr;
    color: #fff;
    font-size: 22px;
}

.rx-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.rx-dashboard-stats article {
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 16px 38px rgba(15, 45, 84, .07);
    display: grid;
    gap: 8px;
}

.rx-dashboard-stats span {
    color: #52647c;
    font-weight: 700;
}

.rx-dashboard-stats strong {
    font-size: 38px;
    color: #102037;
    line-height: 1;
}

.rx-dashboard-stats small {
    color: #7b899a;
}

.rx-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
}

body.is-rtl .rx-dashboard-layout {
    grid-template-columns: 360px minmax(0, 1fr);
}

.rx-dashboard-main,
.rx-dashboard-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

body.is-rtl .rx-dashboard-main {
    grid-column: 2;
}

body.is-rtl .rx-dashboard-side {
    grid-column: 1;
    grid-row: 1;
}

.rx-dashboard-panel {
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 18px 42px rgba(15, 45, 84, .07);
}

.rx-dashboard-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    color: #102037;
}

.rx-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.rx-panel-title h2 {
    margin: 0 0 4px;
}

.rx-panel-title p {
    margin: 0;
    color: #7b899a;
}

.rx-panel-title a {
    text-decoration: none;
    color: #0e5ea8;
    font-weight: 700;
}

.rx-mini-list {
    display: grid;
    gap: 10px;
}

.rx-mini-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid #e5eef8;
}

body.is-rtl .rx-mini-row {
    grid-template-columns: 44px 1fr auto;
    direction: rtl;
}

.rx-mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eaf8ff;
}

.rx-mini-row strong {
    display: block;
    color: #102037;
    margin-bottom: 3px;
}

.rx-mini-row span,
.rx-mini-row small {
    color: #728195;
}

.rx-empty-mini,
.rx-good-box {
    padding: 16px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px dashed #d9e6f4;
    color: #637083;
}

.rx-quick-actions {
    display: grid;
    gap: 10px;
}

.rx-quick-actions a {
    text-decoration: none;
    padding: 14px;
    border-radius: 18px;
    color: #102037;
    background: #f7faff;
    border: 1px solid #e4edf7;
    font-weight: 700;
}

.rx-health-list,
.rx-alert-list {
    display: grid;
    gap: 10px;
}

.rx-health-list span,
.rx-alert-list div {
    padding: 13px 14px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid #e4edf7;
}

.rx-alert-list div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rx-alert-list strong {
    min-width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff1e8;
    color: #b45309;
}

@media (max-width: 1100px) {
    .rx-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rx-dashboard-layout,
    body.is-rtl .rx-dashboard-layout {
        grid-template-columns: 1fr;
    }

    body.is-rtl .rx-dashboard-main,
    body.is-rtl .rx-dashboard-side {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 680px) {
    .rx-dashboard-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    body.is-rtl .rx-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .rx-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .rx-mini-row {
        grid-template-columns: 40px 1fr;
    }

    .rx-mini-row small {
        grid-column: 2;
    }
}

/* Unified admin page design - Customers follows Dashboard identity */
.rx-page-hero.rx-dashboard-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(35, 190, 204, .25), transparent 34%),
        linear-gradient(135deg, #10294b, #0a1f3a);
    box-shadow: 0 24px 60px rgba(13, 38, 76, .18);
    margin-bottom: 22px;
    overflow: hidden;
}

body.is-rtl .rx-page-hero.rx-dashboard-hero {
    grid-template-columns: auto 1fr;
    direction: rtl;
}

.rx-page-hero.rx-dashboard-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    color: #fff;
}

.rx-page-hero.rx-dashboard-hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.86);
}

.rx-page-hero .rx-hero-action {
    min-width: 178px;
    justify-content: center;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #fff;
    box-shadow: none;
}

.rx-page-hero .rx-hero-action:hover {
    background: rgba(255, 255, 255, .20);
}

/* Customers stats matching dashboard cards */
.rx-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.rx-stat-card {
    padding: 20px;
    border-radius: 24px;
    background: #fff !important;
    border: 1px solid #e4edf7;
    box-shadow: 0 16px 38px rgba(15, 45, 84, .07);
    display: grid;
    gap: 8px;
    color: #102037;
    min-height: 132px;
}

.rx-stat-card .rx-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eaf8ff;
    font-size: 22px;
}

.rx-stat-card span {
    color: #52647c;
    font-weight: 700;
}

.rx-stat-card strong {
    font-size: 38px;
    color: #102037;
    line-height: 1;
}

/* Toolbar and panels unified */
.rx-toolbar,
.rx-panel {
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 18px 42px rgba(15, 45, 84, .07);
}

.rx-toolbar {
    padding: 18px;
    margin-bottom: 22px;
}

.rx-panel {
    padding: 22px;
}

.rx-panel-head {
    border-bottom: 1px solid #edf3fa;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.rx-panel-head h2 {
    margin: 0 0 5px;
    color: #102037;
    font-size: 24px;
}

.rx-panel-head p {
    margin: 0;
    color: #7b899a;
}

.rx-badge {
    background: #eef8ff;
    color: #0e5ea8;
    border: 1px solid #d7ecfb;
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 700;
}

/* Search form polish */
.rx-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px auto auto;
    gap: 12px;
    align-items: center;
}

.rx-search-box,
.rx-search-form select {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid #d9e6f4;
    background: #f8fbff;
}

.rx-search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
}

.rx-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
}

.rx-search-form select {
    padding: 0 14px;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    color: #102037;
}

/* Table unified */
.rx-table-wrap {
    overflow-x: auto;
}

.rx-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.rx-table th {
    color: #66768c;
    font-weight: 800;
    padding: 0 14px 8px;
    white-space: nowrap;
}

.rx-table td {
    background: #f8fbff;
    border-top: 1px solid #e5eef8;
    border-bottom: 1px solid #e5eef8;
    padding: 14px;
    vertical-align: middle;
}

.rx-table td:first-child {
    border-inline-start: 1px solid #e5eef8;
    border-radius: 18px 0 0 18px;
}

.rx-table td:last-child {
    border-inline-end: 1px solid #e5eef8;
    border-radius: 0 18px 18px 0;
}

body.is-rtl .rx-table td:first-child {
    border-radius: 0 18px 18px 0;
}

body.is-rtl .rx-table td:last-child {
    border-radius: 18px 0 0 18px;
}

.rx-actions button {
    background: #fff;
    border: 1px solid #dce8f5;
    border-radius: 13px;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.rx-actions button:hover {
    background: #eef8ff;
}

/* Modals closer to dashboard style */
.rx-modal {
    border-radius: 28px;
    border: 1px solid #e4edf7;
    box-shadow: 0 28px 90px rgba(15, 45, 84, .22);
}

.rx-modal-title {
    border-bottom: 1px solid #edf3fa;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.rx-modal-title strong {
    color: #102037;
    font-size: 22px;
}

.rx-modal-title small {
    color: #7b899a;
}

.rx-form input,
.rx-form select,
.rx-form textarea {
    border-radius: 16px;
    border: 1px solid #d9e6f4;
    background: #f8fbff;
    font-family: "Times New Roman", Times, serif;
}

.rx-form input:focus,
.rx-form select:focus,
.rx-form textarea:focus {
    border-color: #22b6c6;
    box-shadow: 0 0 0 4px rgba(34, 182, 198, .13);
    outline: none;
    background: #fff;
}

/* Responsive customers page */
@media (max-width: 1100px) {
    .rx-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rx-search-form {
        grid-template-columns: 1fr 180px;
    }

    .rx-search-form .rx-soft-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .rx-page-hero.rx-dashboard-hero,
    body.is-rtl .rx-page-hero.rx-dashboard-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .rx-page-hero .rx-hero-action {
        width: 100%;
    }

    .rx-stat-grid {
        grid-template-columns: 1fr;
    }

    .rx-search-form {
        grid-template-columns: 1fr;
    }

    .rx-panel {
        padding: 16px;
    }

    .rx-toolbar {
        padding: 14px;
    }
}

/* Fix customers hero action button width */
.rx-customers-hero .rx-hero-action,
.rx-page-hero.rx-dashboard-hero .rx-hero-action {
    width: auto !important;
    min-width: 160px !important;
    max-width: 220px !important;
    justify-self: start !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

body.is-rtl .rx-customers-hero .rx-hero-action,
body.is-rtl .rx-page-hero.rx-dashboard-hero .rx-hero-action {
    justify-self: start !important;
}

body.is-ltr .rx-customers-hero .rx-hero-action,
body.is-ltr .rx-page-hero.rx-dashboard-hero .rx-hero-action {
    justify-self: end !important;
}

@media (max-width: 680px) {
    .rx-customers-hero .rx-hero-action,
    .rx-page-hero.rx-dashboard-hero .rx-hero-action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
    }
}

/* Customers page final polish */
.rx-customers-hero {
    min-height: 190px;
}

.rx-customers-hero .rx-soft-badge {
    margin-bottom: 18px;
}

.rx-customers-hero .rx-hero-action {
    align-self: center;
}

body.is-rtl .rx-customers-hero .rx-hero-action {
    justify-self: start !important;
}

body.is-ltr .rx-customers-hero .rx-hero-action {
    justify-self: end !important;
}

.rx-stat-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.rx-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(15, 45, 84, .10);
}

.rx-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.is-rtl .rx-person {
    flex-direction: row-reverse;
    text-align: right;
}

body.is-ltr .rx-person {
    text-align: left;
}

.rx-avatar {
    flex: 0 0 44px;
}

.rx-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.rx-status,
.rx-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 700;
}

.rx-pill {
    background: #eef8ff;
    color: #0e5ea8;
    border: 1px solid #d7ecfb;
}

.rx-status.is-active {
    background: #eafaf3;
    color: #126b4b;
    border: 1px solid #c5f0dc;
}

.rx-status.is-muted {
    background: #f3f5f8;
    color: #68778b;
    border: 1px solid #e2e8f0;
}

.rx-empty {
    border-radius: 24px;
    padding: 34px;
    background: #f8fbff;
    border: 1px dashed #d9e6f4;
    text-align: center;
}

.rx-empty-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.rx-empty h3 {
    margin: 0 0 8px;
    color: #102037;
    font-size: 26px;
}

.rx-empty p {
    margin: 0 0 18px;
    color: #637083;
}

/* Customers modal layout polish */
.rx-customer-view-modal {
    max-width: 760px;
}

.rx-customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rx-customer-info-grid > div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
}

.rx-customer-info-grid span {
    display: block;
    color: #607087;
    margin-bottom: 8px;
}

.rx-customer-info-grid strong {
    color: #102037;
    font-size: 18px;
}

.rx-info-full {
    grid-column: 1 / -1;
}

.rx-customer-view-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .rx-table th,
    .rx-table td {
        padding: 12px 10px;
    }

    .rx-table {
        min-width: 880px;
    }
}

@media (max-width: 680px) {
    .rx-customers-hero {
        min-height: auto;
    }

    .rx-customer-info-grid {
        grid-template-columns: 1fr;
    }

    .rx-customer-view-actions .rx-primary-btn,
    .rx-customer-view-actions .rx-soft-btn {
        width: 100%;
        justify-content: center;
    }

    .rx-empty {
        padding: 24px 16px;
    }
}

/* Customers page final polish */
.rx-customers-hero {
    min-height: 190px;
}

.rx-customers-hero .rx-soft-badge {
    margin-bottom: 18px;
}

.rx-customers-hero .rx-hero-action {
    align-self: center;
}

body.is-rtl .rx-customers-hero .rx-hero-action {
    justify-self: start !important;
}

body.is-ltr .rx-customers-hero .rx-hero-action {
    justify-self: end !important;
}

.rx-stat-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.rx-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(15, 45, 84, .10);
}

.rx-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.is-rtl .rx-person {
    flex-direction: row-reverse;
    text-align: right;
}

body.is-ltr .rx-person {
    text-align: left;
}

.rx-avatar {
    flex: 0 0 44px;
}

.rx-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.rx-status,
.rx-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-weight: 700;
}

.rx-pill {
    background: #eef8ff;
    color: #0e5ea8;
    border: 1px solid #d7ecfb;
}

.rx-status.is-active {
    background: #eafaf3;
    color: #126b4b;
    border: 1px solid #c5f0dc;
}

.rx-status.is-muted {
    background: #f3f5f8;
    color: #68778b;
    border: 1px solid #e2e8f0;
}

.rx-empty {
    border-radius: 24px;
    padding: 34px;
    background: #f8fbff;
    border: 1px dashed #d9e6f4;
    text-align: center;
}

.rx-empty-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.rx-empty h3 {
    margin: 0 0 8px;
    color: #102037;
    font-size: 26px;
}

.rx-empty p {
    margin: 0 0 18px;
    color: #637083;
}

/* Customers modal layout polish */
.rx-customer-view-modal {
    max-width: 760px;
}

.rx-customer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rx-customer-info-grid > div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
}

.rx-customer-info-grid span {
    display: block;
    color: #607087;
    margin-bottom: 8px;
}

.rx-customer-info-grid strong {
    color: #102037;
    font-size: 18px;
}

.rx-info-full {
    grid-column: 1 / -1;
}

.rx-customer-view-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .rx-table th,
    .rx-table td {
        padding: 12px 10px;
    }

    .rx-table {
        min-width: 880px;
    }
}

@media (max-width: 680px) {
    .rx-customers-hero {
        min-height: auto;
    }

    .rx-customer-info-grid {
        grid-template-columns: 1fr;
    }

    .rx-customer-view-actions .rx-primary-btn,
    .rx-customer-view-actions .rx-soft-btn {
        width: 100%;
        justify-content: center;
    }

    .rx-empty {
        padding: 24px 16px;
    }
}

/* Devices page unified with dashboard/customers */
.rx-devices-hero {
    min-height: 190px;
}

.rx-devices-hero .rx-hero-action {
    width: auto !important;
    min-width: 210px !important;
    max-width: 280px !important;
    justify-self: start !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

body.is-ltr .rx-devices-hero .rx-hero-action {
    justify-self: end !important;
}

body.is-rtl .rx-devices-hero .rx-hero-action {
    justify-self: start !important;
}

.rx-device-search-form {
    grid-template-columns: minmax(260px, 1fr) 180px 180px auto auto;
}

.rx-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rx-device-card {
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 18px 42px rgba(15, 45, 84, .07);
    padding: 20px;
    display: grid;
    gap: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.rx-device-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(15, 45, 84, .11);
}

.rx-device-top {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

body.is-rtl .rx-device-top {
    direction: rtl;
}

.rx-device-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #eaf8ff;
    border: 1px solid #d7ecfb;
    font-size: 24px;
}

.rx-device-top h3 {
    margin: 0 0 4px;
    color: #102037;
    font-size: 21px;
}

.rx-device-top p {
    margin: 0;
    color: #728195;
}

.rx-device-owner,
.rx-accessories-box,
.rx-device-note {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    padding: 14px;
}

.rx-device-owner span,
.rx-accessories-box > span,
.rx-device-note span,
.rx-device-meta span {
    display: block;
    color: #607087;
    margin-bottom: 7px;
    font-weight: 700;
}

.rx-device-owner strong,
.rx-device-meta strong {
    display: block;
    color: #102037;
    font-size: 17px;
}

.rx-device-owner small {
    display: block;
    margin-top: 4px;
    color: #728195;
}

.rx-device-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rx-device-meta > div {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    padding: 14px;
}

.rx-accessories-box p,
.rx-device-note p {
    margin: 0;
    color: #728195;
    line-height: 1.6;
}

.rx-accessory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rx-accessory-list em {
    font-style: normal;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef8ff;
    color: #0e5ea8;
    border: 1px solid #d7ecfb;
    font-weight: 700;
}

.rx-device-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.rx-device-actions button {
    border: 1px solid #dce8f5;
    background: #fff;
    color: #102037;
    border-radius: 15px;
    min-height: 40px;
    padding: 9px 13px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    cursor: pointer;
}

.rx-device-actions button:hover:not(:disabled) {
    background: #eef8ff;
}

.rx-device-actions button.is-disabled,
.rx-device-actions button:disabled {
    opacity: .48;
    cursor: not-allowed;
    background: #f3f5f8;
}

@media (max-width: 1180px) {
    .rx-device-grid {
        grid-template-columns: 1fr;
    }

    .rx-device-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .rx-devices-hero {
        min-height: auto;
    }

    .rx-devices-hero .rx-hero-action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
    }

    .rx-device-search-form {
        grid-template-columns: 1fr;
    }

    .rx-device-top {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rx-device-top .rx-status {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .rx-device-meta {
        grid-template-columns: 1fr;
    }

    .rx-device-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Repairana modal open compatibility fix */
.ra-modal-backdrop[data-modal].is-open,
.ra-modal-backdrop[data-modal].is-active,
.ra-modal-backdrop[data-modal].active,
.rx-modal-backdrop[data-modal].is-open,
.rx-modal-backdrop[data-modal].is-active,
.rx-modal-backdrop[data-modal].active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.modal-open,
body.ra-modal-open {
    overflow: hidden;
}

/* Inline catalog add buttons inside add-device modal */
.rx-catalog-select-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.rx-catalog-add-btn {
    min-height: 44px;
    padding: 0 13px;
    border-radius: 14px;
    border: 1px solid #d7ecfb;
    background: #eef8ff;
    color: #0e5ea8;
    font-family: "Times New Roman", Times, serif;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.rx-catalog-add-btn:hover {
    background: #e3f4ff;
}

.rx-catalog-accessory-btn {
    margin: 8px 0 12px;
    width: fit-content;
}

@media (max-width: 680px) {
    .rx-catalog-select-wrap {
        grid-template-columns: 1fr;
    }

    .rx-catalog-add-btn {
        width: 100%;
    }
}

/* Repair tickets page */
.rx-tickets-hero {
    min-height: 190px;
}

.rx-tickets-hero .rx-hero-action {
    width: auto !important;
    min-width: 170px !important;
    max-width: 230px !important;
    justify-self: start !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

body.is-ltr .rx-tickets-hero .rx-hero-action {
    justify-self: end !important;
}

body.is-rtl .rx-tickets-hero .rx-hero-action {
    justify-self: start !important;
}

.rx-ticket-search-form {
    grid-template-columns: minmax(260px, 1fr) 190px 170px auto auto;
}

.rx-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rx-ticket-card {
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 18px 42px rgba(15, 45, 84, .07);
    padding: 20px;
    display: grid;
    gap: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.rx-ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(15, 45, 84, .11);
}

.rx-ticket-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.rx-ticket-number {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef8ff;
    color: #0e5ea8;
    border: 1px solid #d7ecfb;
    direction: ltr;
    font-weight: 800;
}

.rx-ticket-top h3 {
    margin: 0 0 6px;
    color: #102037;
    font-size: 22px;
}

.rx-ticket-top p {
    margin: 0;
    color: #728195;
}

.rx-ticket-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rx-ticket-body > div,
.rx-ticket-issue {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    padding: 14px;
}

.rx-ticket-body span,
.rx-ticket-issue span {
    display: block;
    color: #607087;
    margin-bottom: 7px;
    font-weight: 700;
}

.rx-ticket-body strong {
    color: #102037;
}

.rx-ticket-issue p {
    margin: 0;
    color: #102037;
    line-height: 1.7;
}

.rx-status.is-ticket-received { background: #eef8ff; color: #0e5ea8; border: 1px solid #d7ecfb; }
.rx-status.is-ticket-diagnosing { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.rx-status.is-ticket-waiting_parts { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.rx-status.is-ticket-repairing { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.rx-status.is-ticket-ready { background: #eafaf3; color: #126b4b; border: 1px solid #c5f0dc; }
.rx-status.is-ticket-delivered { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.rx-status.is-ticket-cancelled { background: #f3f5f8; color: #68778b; border: 1px solid #e2e8f0; }

@media (max-width: 1180px) {
    .rx-ticket-grid {
        grid-template-columns: 1fr;
    }

    .rx-ticket-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .rx-ticket-search-form {
        grid-template-columns: 1fr;
    }

    .rx-ticket-body {
        grid-template-columns: 1fr;
    }

    .rx-tickets-hero .rx-hero-action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
    }
}

/* Users/team page */
.rx-users-hero {
    min-height: 190px;
}

.rx-users-hero .rx-hero-action {
    width: auto !important;
    min-width: 170px !important;
    max-width: 240px !important;
    justify-self: start !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

body.is-ltr .rx-users-hero .rx-hero-action {
    justify-self: end !important;
}

body.is-rtl .rx-users-hero .rx-hero-action {
    justify-self: start !important;
}

.rx-user-search-form {
    grid-template-columns: minmax(260px, 1fr) 180px 170px auto auto;
}

.rx-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rx-team-card {
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 18px 42px rgba(15, 45, 84, .07);
    padding: 20px;
    display: grid;
    gap: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.rx-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(15, 45, 84, .11);
}

.rx-team-top {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.rx-team-top h3 {
    margin: 0 0 4px;
    color: #102037;
    font-size: 22px;
}

.rx-team-top p {
    margin: 0;
    color: #728195;
}

@media (max-width: 1180px) {
    .rx-team-grid {
        grid-template-columns: 1fr;
    }

    .rx-user-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .rx-user-search-form {
        grid-template-columns: 1fr;
    }

    .rx-team-top {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rx-team-top .rx-status {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .rx-users-hero .rx-hero-action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
    }
}

/* Warranties page */
.rx-warranties-hero {
    min-height: 190px;
}

.rx-warranties-hero .rx-hero-action {
    width: auto !important;
    min-width: 170px !important;
    max-width: 230px !important;
    justify-self: start !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

body.is-ltr .rx-warranties-hero .rx-hero-action {
    justify-self: end !important;
}

body.is-rtl .rx-warranties-hero .rx-hero-action {
    justify-self: start !important;
}

.rx-warranty-search-form {
    grid-template-columns: minmax(260px, 1fr) 200px auto auto;
}

.rx-warranty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rx-warranty-card {
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 18px 42px rgba(15, 45, 84, .07);
    padding: 20px;
    display: grid;
    gap: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.rx-warranty-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(15, 45, 84, .11);
}

.rx-warranty-days {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    padding: 14px;
    color: #0e5ea8;
    font-weight: 800;
    text-align: center;
}

.rx-status.is-warranty-active { background: #eafaf3; color: #126b4b; border: 1px solid #c5f0dc; }
.rx-status.is-warranty-expired { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.rx-status.is-warranty-claimed { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.rx-status.is-warranty-void { background: #f3f5f8; color: #68778b; border: 1px solid #e2e8f0; }

@media (max-width: 1180px) {
    .rx-warranty-grid {
        grid-template-columns: 1fr;
    }

    .rx-warranty-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .rx-warranty-search-form {
        grid-template-columns: 1fr;
    }

    .rx-warranties-hero .rx-hero-action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
    }
}

/* Warranties modal open compatibility fix */
.ra-modal-backdrop[data-modal].is-open,
.ra-modal-backdrop[data-modal].is-active,
.ra-modal-backdrop[data-modal].active,
.rx-modal-backdrop[data-modal].is-open,
.rx-modal-backdrop[data-modal].is-active,
.rx-modal-backdrop[data-modal].active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.modal-open,
body.ra-modal-open {
    overflow: hidden;
}

/* Warranty claims page */
.rx-claims-hero {
    min-height: 190px;
}

.rx-claims-hero .rx-hero-action {
    width: auto !important;
    min-width: 190px !important;
    max-width: 260px !important;
    justify-self: start !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

body.is-ltr .rx-claims-hero .rx-hero-action {
    justify-self: end !important;
}

.rx-claim-search-form {
    grid-template-columns: minmax(260px, 1fr) 200px auto auto;
}

.rx-status.is-claim-open { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.rx-status.is-claim-in_progress { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.rx-status.is-claim-resolved { background: #eafaf3; color: #126b4b; border: 1px solid #c5f0dc; }
.rx-status.is-claim-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rx-status.is-claim-closed { background: #f3f5f8; color: #68778b; border: 1px solid #e2e8f0; }

@media (max-width: 1180px) {
    .rx-claim-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .rx-claim-search-form {
        grid-template-columns: 1fr;
    }

    .rx-claims-hero .rx-hero-action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
    }
}

/* Invoices page */
.rx-invoices-hero {
    min-height: 190px;
}

.rx-invoices-hero .rx-hero-action {
    width: auto !important;
    min-width: 170px !important;
    max-width: 240px !important;
    justify-self: start !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

body.is-ltr .rx-invoices-hero .rx-hero-action {
    justify-self: end !important;
}

.rx-invoice-search-form {
    grid-template-columns: minmax(260px, 1fr) 200px auto auto;
}

.rx-invoice-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rx-invoice-summary div {
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    padding: 12px;
    display: grid;
    gap: 4px;
}

.rx-invoice-summary span {
    color: #6b7c93;
    font-size: 12px;
}

.rx-invoice-summary strong {
    color: #132238;
    font-size: 15px;
}

.rx-payment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.rx-payment-heading span {
    font-weight: 800;
    color: #132238;
}

.rx-payment-heading strong {
    color: #0e5ea8;
}

.rx-status.is-invoice-paid { background: #eafaf3; color: #126b4b; border: 1px solid #c5f0dc; }
.rx-status.is-invoice-unpaid { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.rx-status.is-invoice-partial { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.rx-status.is-invoice-overdue { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rx-status.is-invoice-cancelled { background: #f3f5f8; color: #68778b; border: 1px solid #e2e8f0; }

[data-invoice-view-payments] {
    white-space: pre-line;
}

@media (max-width: 1180px) {
    .rx-invoice-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .rx-invoice-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .rx-invoice-search-form {
        grid-template-columns: 1fr;
    }

    .rx-invoice-summary {
        grid-template-columns: 1fr;
    }

    .rx-invoices-hero .rx-hero-action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
    }
}

/* Reports page */
.rx-reports-hero {
    min-height: 190px;
}

.rx-report-generated {
    display: inline-block;
    margin-top: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.rx-report-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rx-report-money-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.rx-report-money-card {
    border-radius: 26px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e4edf7;
    box-shadow: 0 18px 42px rgba(15, 45, 84, .07);
    display: grid;
    gap: 10px;
}

.rx-report-money-card span {
    color: #6b7c93;
    font-size: 13px;
    font-weight: 700;
}

.rx-report-money-card strong {
    color: #0e5ea8;
    font-size: 28px;
    line-height: 1;
}

.rx-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.rx-report-panel {
    margin: 0 !important;
    min-height: 260px;
}

.rx-report-breakdown {
    display: grid;
    gap: 10px;
}

.rx-report-breakdown div {
    border-radius: 18px;
    border: 1px solid #e5eef8;
    background: #f8fbff;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.rx-report-breakdown span {
    color: #42556d;
    font-weight: 700;
}

.rx-report-breakdown strong {
    color: #132238;
    font-size: 18px;
}

.rx-report-breakdown small {
    grid-column: 1 / -1;
    color: #6b7c93;
}

.rx-report-list {
    display: grid;
    gap: 12px;
}

.rx-report-list div {
    border-radius: 18px;
    border: 1px solid #e5eef8;
    background: #fff;
    padding: 13px 14px;
    display: grid;
    gap: 5px;
}

.rx-report-list strong {
    color: #132238;
    font-size: 15px;
}

.rx-report-list span {
    color: #42556d;
    font-size: 13px;
    font-weight: 700;
}

.rx-report-list small {
    color: #7b8da4;
    font-size: 12px;
}

.rx-report-empty {
    border-radius: 18px;
    border: 1px dashed #d8e5f2;
    background: #f8fbff;
    color: #6b7c93;
    padding: 18px;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .rx-report-stat-grid,
    .rx-report-money-grid,
    .rx-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .rx-report-stat-grid,
    .rx-report-money-grid,
    .rx-report-grid {
        grid-template-columns: 1fr;
    }

    .rx-report-money-card strong {
        font-size: 24px;
    }
}

/* Settings page */
.rx-settings-hero {
    min-height: 190px;
}

.rx-settings-form {
    display: grid;
    gap: 22px;
}

.rx-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rx-settings-panel {
    margin: 0 !important;
}

.rx-settings-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rx-settings-fields label {
    display: grid;
    gap: 8px;
}

.rx-settings-fields label > span,
.rx-branding-upload > span {
    color: #42556d;
    font-weight: 800;
    font-size: 13px;
}

.rx-settings-fields input,
.rx-settings-fields select,
.rx-settings-fields textarea {
    width: 100%;
    border: 1px solid #d9e6f3;
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    font-family: "Times New Roman", Times, serif;
    color: #132238;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.rx-settings-fields input:focus,
.rx-settings-fields select:focus,
.rx-settings-fields textarea:focus {
    border-color: #7bb7ee;
    box-shadow: 0 0 0 4px rgba(14, 94, 168, .10);
}

.rx-settings-wide {
    grid-column: 1 / -1;
}

.rx-settings-check {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 12px !important;
    border: 1px solid #e5eef8;
    background: #f8fbff;
    border-radius: 18px;
    padding: 14px;
}

.rx-settings-check input {
    width: 18px;
    height: 18px;
}

.rx-settings-check small {
    grid-column: 1 / -1;
    color: #6b7c93;
}

.rx-branding-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.rx-branding-upload {
    border: 1px solid #e5eef8;
    background: #f8fbff;
    border-radius: 22px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.rx-branding-upload img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5eef8;
    border-radius: 16px;
    padding: 10px;
}

.rx-branding-upload label {
    cursor: pointer;
    border: 1px dashed #9cc8ee;
    color: #0e5ea8;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    font-weight: 800;
}

.rx-branding-upload input {
    display: none;
}

.rx-settings-savebar {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
    border: 1px solid #e5eef8;
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 18px 45px rgba(15, 45, 84, .12);
    display: flex;
    justify-content: flex-end;
}

body.is-rtl .rx-settings-savebar {
    justify-content: flex-start;
}

@media (max-width: 1180px) {
    .rx-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .rx-settings-fields,
    .rx-branding-upload-grid {
        grid-template-columns: 1fr;
    }

    .rx-settings-savebar .rx-primary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Settings select with custom add */
.rx-settings-select-add {
    gap: 8px;
}

.rx-inline-select-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.rx-mini-add-btn {
    border: 1px solid #d9e6f3;
    background: #f8fbff;
    color: #0e5ea8;
    border-radius: 14px;
    padding: 11px 12px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.rx-mini-add-btn:hover {
    background: #eef7ff;
}

.rx-settings-custom-input {
    display: none;
    margin-top: 8px;
}

.rx-settings-custom-input.is-visible {
    display: block;
}

@media (max-width: 680px) {
    .rx-inline-select-add {
        grid-template-columns: 1fr;
    }
}

/* Settings custom delete button */
.rx-settings-custom-row {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.rx-settings-custom-row.is-visible {
    display: grid;
}

.rx-settings-custom-row .rx-settings-custom-input {
    display: block;
    margin-top: 0;
}

.rx-mini-delete-btn {
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 14px;
    padding: 11px 13px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.rx-mini-delete-btn:hover {
    background: #fee2e2;
}

@media (max-width: 680px) {
    .rx-settings-custom-row {
        grid-template-columns: 1fr;
    }
}

/* Activity log page */
.rx-activity-hero {
    min-height: 190px;
}

.rx-activity-search-form {
    grid-template-columns: minmax(260px, 1fr) 190px 190px auto auto;
}

.rx-activity-list {
    display: grid;
    gap: 14px;
}

.rx-activity-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    border: 1px solid #e5eef8;
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(15, 45, 84, .06);
}

.rx-activity-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f0f7ff;
    border: 1px solid #d8ebff;
    font-size: 24px;
}

.rx-activity-content {
    display: grid;
    gap: 8px;
}

.rx-activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rx-activity-top strong {
    color: #132238;
    font-size: 17px;
}

.rx-activity-top span {
    color: #7b8da4;
    font-size: 12px;
}

.rx-activity-content p {
    margin: 0;
    color: #42556d;
    line-height: 1.7;
}

.rx-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rx-activity-meta span {
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    color: #536981;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.rx-activity-details {
    margin-top: 4px;
}

.rx-activity-details summary {
    cursor: pointer;
    color: #0e5ea8;
    font-weight: 800;
}

.rx-activity-details pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    border-radius: 16px;
    padding: 12px;
    color: #42556d;
    font-family: "Times New Roman", Times, serif;
}

@media (max-width: 1180px) {
    .rx-activity-search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .rx-activity-search-form {
        grid-template-columns: 1fr;
    }

    .rx-activity-card {
        grid-template-columns: 1fr;
    }

    .rx-activity-icon {
        width: 48px;
        height: 48px;
    }

    .rx-activity-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Permissions page */
.rx-permissions-hero {
    min-height: 190px;
}

.rx-permissions-form {
    display: grid;
    gap: 18px;
}

.rx-permissions-scroll {
    overflow: auto;
    border: 1px solid #e5eef8;
    border-radius: 24px;
}

.rx-permissions-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.rx-permissions-table th,
.rx-permissions-table td {
    border-bottom: 1px solid #e5eef8;
    border-inline-end: 1px solid #eef4fb;
    padding: 14px;
    vertical-align: middle;
    text-align: center;
}

.rx-permissions-table th:first-child,
.rx-permissions-table td:first-child {
    text-align: start;
    min-width: 280px;
    position: sticky;
    inset-inline-start: 0;
    background: #fff;
    z-index: 2;
}

.rx-permissions-table thead th {
    background: #f8fbff;
    color: #132238;
    font-size: 14px;
    font-weight: 900;
}

.rx-permissions-table thead th:first-child {
    background: #f8fbff;
    z-index: 3;
}

.rx-permissions-table th small {
    display: block;
    margin-top: 6px;
    color: #7b8da4;
    font-size: 11px;
    font-weight: 700;
    max-width: 140px;
}

.rx-permissions-table td strong {
    display: block;
    color: #132238;
}

.rx-permissions-table td small {
    display: block;
    margin-top: 5px;
    color: #7b8da4;
    font-size: 11px;
}

.rx-permission-group-row td {
    background: #eef7ff !important;
    color: #0e5ea8;
    font-weight: 900;
    border-bottom: 1px solid #d8ebff;
}

.rx-permission-toggle {
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.rx-permission-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rx-permission-toggle span {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #dbe6f2;
    border: 1px solid #c9d8e8;
    position: relative;
    transition: .18s ease;
}

.rx-permission-toggle span::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 2px;
    inset-inline-start: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 45, 84, .16);
    transition: .18s ease;
}

.rx-permission-toggle input:checked + span {
    background: #0e5ea8;
    border-color: #0e5ea8;
}

.rx-permission-toggle input:checked + span::after {
    inset-inline-start: 21px;
}

.rx-permission-toggle input:disabled + span {
    opacity: .7;
    cursor: not-allowed;
}

.rx-forbidden-panel {
    max-width: 720px;
    margin: 40px auto !important;
}

/* Device repair ticket action button */
.rx-device-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9e6f3;
    background: #fff;
    color: #132238;
    border-radius: 16px;
    padding: 11px 16px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rx-device-action-btn:hover {
    background: #f8fbff;
    border-color: #b9d8f2;
    box-shadow: 0 10px 24px rgba(15, 45, 84, .08);
    transform: translateY(-1px);
    text-decoration: none;
}

.rx-device-action-btn:focus {
    outline: none;
    border-color: #7bb7ee;
    box-shadow: 0 0 0 4px rgba(14, 94, 168, .10);
}

/* Notifications page */
.rx-notifications-hero {
    min-height: 190px;
}

.rx-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rx-filter-tabs a {
    border: 1px solid #d9e6f3;
    background: #fff;
    color: #42556d;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    text-decoration: none;
}

.rx-filter-tabs a.is-active {
    background: #0e5ea8;
    color: #fff;
    border-color: #0e5ea8;
}

.rx-notification-list {
    display: grid;
    gap: 14px;
}

.rx-notification-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    border: 1px solid #e5eef8;
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(15, 45, 84, .06);
}

.rx-notification-card.is-unread {
    border-color: #b9d8f2;
    background: #fbfdff;
}

.rx-notification-card.is-critical {
    border-color: #fecaca;
}

.rx-notification-card.is-warning {
    border-color: #fde68a;
}

.rx-notification-card.is-success {
    border-color: #bbf7d0;
}

.rx-notification-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f0f7ff;
    border: 1px solid #d8ebff;
    font-size: 24px;
}

.rx-notification-content {
    display: grid;
    gap: 8px;
}

.rx-notification-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rx-notification-top strong {
    color: #132238;
    font-size: 17px;
}

.rx-notification-top span {
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    color: #536981;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.rx-notification-content p {
    margin: 0;
    color: #42556d;
    line-height: 1.7;
}

.rx-notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rx-notification-meta span {
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    color: #536981;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.rx-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rx-notification-actions form {
    margin: 0;
}

@media (max-width: 680px) {
    .rx-notification-card {
        grid-template-columns: 1fr;
    }

    .rx-notification-icon {
        width: 48px;
        height: 48px;
    }

    .rx-notification-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sidebar notification unread badge */
.rx-sidebar-notification-link {
    position: relative;
}

.rx-sidebar-notification-badge {
    position: absolute;
    top: 6px;
    inset-inline-end: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(220, 38, 38, .28);
    border: 2px solid #fff;
    z-index: 2;
}

/* Notifications read/unread visual distinction */
.rx-filter-tabs a.rx-tab-unread {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.rx-filter-tabs a.rx-tab-unread.is-active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 12px 26px rgba(220, 38, 38, .18);
}

.rx-filter-tabs a.rx-tab-read {
    border-color: #bbf7d0;
    background: #f6fff9;
    color: #166534;
}

.rx-filter-tabs a.rx-tab-read.is-active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 12px 26px rgba(22, 163, 74, .16);
}

.rx-filter-tabs a.rx-tab-all.is-active {
    background: #0e5ea8;
    border-color: #0e5ea8;
    color: #fff;
}

.rx-notification-card {
    position: relative;
}

.rx-notification-card.is-unread {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #f8fbff 100%);
    border-color: #fb923c;
    box-shadow: 0 18px 42px rgba(249, 115, 22, .12);
}

.rx-notification-card.is-unread .rx-notification-icon {
    background: #fff1e7;
    border-color: #fed7aa;
}

.rx-notification-card.is-unread .rx-notification-top strong {
    color: #9a3412;
    font-weight: 900;
}

.rx-notification-card.is-read {
    background: #fbfdff;
    border-color: #e5eef8;
    opacity: .72;
    box-shadow: 0 10px 24px rgba(15, 45, 84, .04);
}

.rx-notification-card.is-read .rx-notification-icon {
    background: #f3f6fa;
    border-color: #e5eef8;
    filter: grayscale(.35);
}

.rx-notification-card.is-read .rx-notification-top strong,
.rx-notification-card.is-read .rx-notification-content p {
    color: #64748b;
}

.rx-notification-read-state {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    z-index: 2;
}

.rx-notification-card.is-unread .rx-notification-read-state {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, .26);
}

.rx-notification-card.is-read .rx-notification-read-state {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Notifications readability correction */
.rx-notification-card {
    overflow: visible;
}

.rx-notification-card.is-read {
    opacity: 1;
    background: #ffffff;
}

.rx-notification-card.is-read .rx-notification-top strong,
.rx-notification-card.is-read .rx-notification-content p {
    color: #24364b;
}

.rx-notification-read-state {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: auto;
    min-width: 86px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    line-height: 1;
    z-index: 3;
}

.rx-notification-card .rx-notification-content {
    padding-inline-end: 110px;
}

.rx-notification-card.is-unread .rx-notification-read-state {
    background: #dc2626;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, .24);
}

.rx-notification-card.is-read .rx-notification-read-state {
    background: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .12);
}

.rx-notification-card.is-read .rx-notification-icon {
    filter: none;
}

.rx-notification-top {
    padding-inline-end: 8px;
}

@media (max-width: 680px) {
    .rx-notification-read-state {
        position: static;
        width: fit-content;
        margin-bottom: 8px;
    }

    .rx-notification-card .rx-notification-content {
        padding-inline-end: 0;
    }
}

/* Polished admin header */
.rx-admin-header-polished {
    gap: 18px;
    align-items: center;
    border: 1px solid #e5eef8;
    background:
        radial-gradient(circle at top right, rgba(14, 94, 168, .10), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 0 0 28px 28px;
    box-shadow: 0 14px 34px rgba(15, 45, 84, .06);
}

.rx-admin-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.rx-admin-heading {
    min-width: 0;
}

.rx-title-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf7ff;
    border: 1px solid #d8ebff;
    margin-inline-end: 8px;
}

.rx-admin-header-polished .ra-admin-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 23px;
    font-weight: 900;
    color: #10233d;
}

.rx-admin-header-polished .ra-admin-subtitle {
    color: #64748b;
    font-weight: 700;
    margin-top: 4px;
}

.rx-admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rx-header-icon-btn,
.rx-header-pill,
.rx-header-user-pill,
.rx-logout-btn {
    min-height: 42px;
    border-radius: 16px;
    border: 1px solid #d9e6f3;
    background: #fff;
    color: #1f344d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: "Times New Roman", Times, serif;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 45, 84, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.rx-header-icon-btn {
    width: 44px;
    padding: 0;
    position: relative;
    font-size: 18px;
}

.rx-header-pill,
.rx-header-user-pill,
.rx-logout-btn {
    padding: 0 14px;
}

.rx-header-icon-btn:hover,
.rx-header-pill:hover,
.rx-logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 45, 84, .09);
    border-color: #b9d8f2;
    text-decoration: none;
}

.rx-header-bell {
    background: #fff7ed;
    border-color: #fed7aa;
}

.rx-header-bell strong {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(220, 38, 38, .26);
}

.rx-header-user-pill {
    background: #f8fbff;
    border-color: #e5eef8;
    color: #24364b;
    max-width: 240px;
}

.rx-header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0e5ea8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.rx-header-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rx-logout-btn {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #b91c1c;
}

.rx-logout-btn:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #991b1b;
}

@media (max-width: 920px) {
    .rx-admin-header-polished {
        flex-wrap: wrap;
        border-radius: 0 0 22px 22px;
    }

    .rx-admin-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .rx-header-user-pill {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .rx-admin-header-polished .ra-admin-title {
        font-size: 19px;
    }

    .rx-header-user-name {
        max-width: 130px;
    }

    .rx-header-pill,
    .rx-logout-btn {
        padding: 0 10px;
    }
}

/* Quick search page */
.rx-quick-search-hero {
    min-height: 190px;
}

.rx-quick-search-panel {
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.rx-quick-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.rx-quick-search-input-wrap {
    min-height: 54px;
    border: 1px solid #d9e6f3;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 12px 28px rgba(15, 45, 84, .05);
}

.rx-quick-search-input-wrap span {
    font-size: 20px;
}

.rx-quick-search-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #132238;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: 800;
}

.rx-search-results-list {
    display: grid;
    gap: 14px;
}

.rx-search-result-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid #e5eef8;
    background: #fff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 14px 34px rgba(15, 45, 84, .06);
}

.rx-search-result-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #edf7ff;
    border: 1px solid #d8ebff;
    font-size: 24px;
}

.rx-search-result-content {
    display: grid;
    gap: 7px;
}

.rx-search-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rx-search-result-top strong {
    color: #132238;
    font-size: 18px;
    font-weight: 900;
}

.rx-search-result-top span,
.rx-search-result-meta span {
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e5eef8;
    color: #536981;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.rx-search-result-content p {
    margin: 0;
    color: #42556d;
    line-height: 1.6;
}

.rx-search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 760px) {
    .rx-quick-search-form,
    .rx-search-result-card {
        grid-template-columns: 1fr;
    }

    .rx-search-result-icon {
        width: 48px;
        height: 48px;
    }
}

/* Header quick search */
.rx-header-search {
    min-height: 42px;
    min-width: 250px;
    max-width: 360px;
    border-radius: 16px;
    border: 1px solid #d9e6f3;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    box-shadow: 0 10px 22px rgba(15, 45, 84, .05);
}

.rx-header-search span {
    font-size: 16px;
    flex: 0 0 auto;
}

.rx-header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Times New Roman", Times, serif;
    color: #132238;
    font-size: 14px;
    font-weight: 800;
}

.rx-header-search input::placeholder {
    color: #7a8da3;
}

.rx-header-search:focus-within {
    border-color: #7bb7ee;
    box-shadow: 0 0 0 4px rgba(14, 94, 168, .10);
}

@media (max-width: 1100px) {
    .rx-header-search {
        order: 10;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .rx-header-search {
        min-width: 100%;
    }
}

/* Health center page */
.rx-health-hero {
    min-height: 200px;
}

.rx-health-main-status {
    min-width: 160px;
    border-radius: 28px;
    padding: 20px;
    display: grid;
    gap: 8px;
    justify-items: center;
    align-content: center;
    border: 1px solid #e5eef8;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 45, 84, .08);
}

.rx-health-main-status span {
    font-size: 34px;
}

.rx-health-main-status strong {
    font-size: 18px;
    font-weight: 900;
}

.rx-health-main-status.is-good {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.rx-health-main-status.is-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.rx-health-main-status.is-critical {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.rx-health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.rx-health-card {
    border: 1px solid #e5eef8;
    background: #fff;
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 45, 84, .06);
}

.rx-health-wide {
    grid-column: span 1;
}

.rx-health-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rx-health-card-head span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #edf7ff;
    border: 1px solid #d8ebff;
    font-size: 22px;
}

.rx-health-card-head h2 {
    margin: 0;
    color: #132238;
    font-size: 19px;
    font-weight: 900;
}

.rx-health-list {
    display: grid;
    gap: 10px;
}

.rx-health-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #eef4fb;
    background: #f8fbff;
    border-radius: 16px;
    padding: 10px 12px;
}

.rx-health-list span {
    color: #536981;
    font-weight: 800;
}

.rx-health-list strong {
    color: #10233d;
    font-weight: 900;
}

.rx-health-note {
    margin: 14px 0 0;
    border-radius: 18px;
    padding: 12px;
    font-weight: 900;
    line-height: 1.6;
}

.rx-health-note.is-good {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.rx-health-note.is-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.rx-health-timeline,
.rx-health-login-list {
    display: grid;
    gap: 10px;
}

.rx-health-timeline div {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    border: 1px solid #eef4fb;
    background: #f8fbff;
    border-radius: 16px;
    padding: 10px 12px;
}

.rx-health-timeline div > span {
    color: #0e5ea8;
    font-size: 22px;
    line-height: 1;
}

.rx-health-timeline p {
    margin: 0;
    display: grid;
    gap: 4px;
}

.rx-health-timeline strong {
    color: #24364b;
    font-weight: 900;
}

.rx-health-timeline small,
.rx-health-login-list small {
    color: #64748b;
    font-weight: 700;
}

.rx-health-login-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border: 1px solid #eef4fb;
    background: #f8fbff;
    border-radius: 16px;
    padding: 10px 12px;
}

.rx-health-login-list strong {
    color: #24364b;
    font-weight: 900;
}

.rx-health-login-list span {
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.rx-health-login-list small {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .rx-health-grid {
        grid-template-columns: 1fr;
    }

    .rx-health-wide {
        grid-column: auto;
    }
}

/* Health center hero status badge layout correction */
.rx-health-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    overflow: hidden;
}

.rx-health-hero > div:first-child {
    min-width: 0;
}

.rx-health-hero .rx-soft-badge,
.rx-health-hero h1,
.rx-health-hero p {
    max-width: 780px;
}

.rx-health-main-status {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    min-height: 118px;
    align-self: center;
    justify-self: end;
    text-align: center;
    padding: 18px 14px;
    border-radius: 24px;
    line-height: 1.35;
}

body.is-rtl .rx-health-main-status {
    justify-self: start;
}

.rx-health-main-status span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(255, 255, 255, .7);
    font-size: 24px;
}

.rx-health-main-status strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    white-space: normal;
    word-break: normal;
}

.rx-health-main-status.is-warning {
    background: #fff8dc;
    border-color: #fde68a;
    color: #7c2d12;
}

.rx-health-main-status.is-good {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #14532d;
}

.rx-health-main-status.is-critical {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

@media (max-width: 820px) {
    .rx-health-hero {
        grid-template-columns: 1fr;
    }

    .rx-health-main-status,
    body.is-rtl .rx-health-main-status {
        justify-self: stretch;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: auto;
        grid-template-columns: auto 1fr;
        display: inline-grid;
        align-items: center;
        text-align: inherit;
    }

    .rx-health-main-status span {
        margin: 0;
    }
}

/* Help center page */
.rx-help-hero {
    min-height: 190px;
}

.rx-help-search-panel {
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.rx-help-search {
    min-height: 54px;
    border: 1px solid #d9e6f3;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 12px 28px rgba(15, 45, 84, .05);
}

.rx-help-search span {
    font-size: 20px;
}

.rx-help-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #132238;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: 800;
}

.rx-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.rx-help-section {
    border: 1px solid #e5eef8;
    background: #fff;
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 45, 84, .06);
}

.rx-help-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rx-help-section-head > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #edf7ff;
    border: 1px solid #d8ebff;
    font-size: 23px;
}

.rx-help-section-head h2 {
    margin: 0;
    color: #132238;
    font-size: 20px;
    font-weight: 900;
}

.rx-help-items {
    display: grid;
    gap: 12px;
}

.rx-help-item {
    border: 1px solid #eef4fb;
    background: #f8fbff;
    border-radius: 20px;
    padding: 14px;
}

.rx-help-item h3 {
    margin: 0 0 10px;
    color: #10233d;
    font-size: 18px;
    font-weight: 900;
}

.rx-help-block {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.rx-help-block strong {
    color: #0e5ea8;
    font-weight: 900;
}

.rx-help-block p {
    margin: 0;
    color: #42556d;
    line-height: 1.75;
    font-weight: 700;
}

.rx-help-block.is-tip {
    border-radius: 16px;
    background: #fffdf2;
    border: 1px solid #fde68a;
    padding: 10px;
}

.rx-help-block.is-tip strong {
    color: #92400e;
}

.rx-help-empty {
    margin-top: 18px;
}

@media (max-width: 960px) {
    .rx-help-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar grouped navigation with icons */
.rx-sidebar-grouped .ra-brand {
    margin-bottom: 12px;
}

.rx-admin-nav-grouped {
    display: grid;
    gap: 14px;
}

.rx-nav-group {
    display: grid;
    gap: 7px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(255, 255, 255, .34);
}

.rx-nav-group-title {
    padding: 0 8px 4px;
    color: rgba(255, 255, 255, .70);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.rx-admin-nav-grouped a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
}

.rx-admin-nav-grouped a span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .12);
    font-size: 16px;
}

.rx-admin-nav-grouped a b {
    font-weight: 900;
    line-height: 1.3;
}

.rx-admin-nav-grouped a.is-active span,
.rx-admin-nav-grouped a:hover span {
    background: rgba(14, 94, 168, .12);
}

.rx-admin-nav-grouped .rx-sidebar-notification-link {
    padding-inline-end: 42px;
}

.rx-admin-nav-grouped .rx-sidebar-notification-link .rx-sidebar-notification-badge,
.rx-admin-nav-grouped .rx-sidebar-notification-link em.rx-sidebar-notification-badge {
    top: 7px;
    inset-inline-end: 8px;
}

@media (max-width: 920px) {
    .rx-nav-group {
        background: rgba(15, 45, 84, .05);
        border-color: rgba(15, 45, 84, .08);
    }

    .rx-nav-group-title {
        color: #64748b;
    }
}

/* Sidebar grouped navigation background refinement */
.rx-admin-nav-grouped {
    gap: 10px;
}

.rx-nav-group {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 8px !important;
    border-radius: 0 !important;
}

.rx-nav-group + .rx-nav-group {
    border-top: 1px solid rgba(255, 255, 255, .13) !important;
    padding-top: 13px !important;
}

.rx-nav-group-title {
    padding: 0 14px 6px !important;
    color: rgba(255, 255, 255, .58) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
}

.rx-admin-nav-grouped a {
    margin: 0 6px;
    border-radius: 15px;
    background: transparent;
}

.rx-admin-nav-grouped a span {
    background: rgba(255, 255, 255, .10);
}

.rx-admin-nav-grouped a:hover {
    background: rgba(255, 255, 255, .10);
}

.rx-admin-nav-grouped a.is-active {
    background: #ffffff;
    color: #0e3f70;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.rx-admin-nav-grouped a.is-active span {
    background: rgba(14, 94, 168, .12);
}

@media (max-width: 920px) {
    .rx-nav-group {
        background: transparent !important;
        border: 0 !important;
    }

    .rx-nav-group + .rx-nav-group {
        border-top: 1px solid rgba(15, 45, 84, .10) !important;
    }

    .rx-nav-group-title {
        color: #7b8da5 !important;
    }
}

/* My profile page */
.rx-header-profile-link {
    text-decoration: none;
    color: inherit;
}

.rx-header-profile-link:hover {
    transform: translateY(-1px);
}

.rx-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.rx-profile-identity {
    width: 210px;
    min-height: 150px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .75);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    box-shadow: 0 16px 34px rgba(15, 45, 84, .10);
}

.rx-profile-identity span {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #0e5ea8;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.rx-profile-identity strong {
    color: #10233d;
    font-size: 18px;
    font-weight: 900;
}

.rx-profile-identity small {
    color: #64748b;
    font-weight: 700;
    word-break: break-word;
}

.rx-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    margin-top: 18px;
}

.rx-profile-card h2 {
    margin: 0 0 16px;
    color: #10233d;
    font-size: 22px;
    font-weight: 900;
}

.rx-profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.rx-profile-facts div {
    border: 1px solid #e5eef8;
    background: #f8fbff;
    border-radius: 18px;
    padding: 12px;
}

.rx-profile-facts span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 4px;
}

.rx-profile-facts strong {
    color: #132238;
    font-weight: 900;
}

.rx-profile-form {
    display: grid;
    gap: 14px;
}

.rx-profile-form label {
    display: grid;
    gap: 7px;
    color: #132238;
    font-weight: 900;
}

.rx-profile-form input,
.rx-profile-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d8e5f1;
    border-radius: 15px;
    background: #fff;
    color: #132238;
    padding: 0 13px;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    font-weight: 800;
    outline: 0;
}

.rx-profile-form input[readonly] {
    background: #f6f9fc;
    color: #64748b;
}

.rx-profile-form small {
    color: #7b8da5;
    font-weight: 700;
}

.rx-profile-toast {
    position: sticky;
    top: 10px;
    z-index: 20;
    margin-bottom: 12px;
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(15, 45, 84, .10);
}

.rx-profile-toast.is-success {
    background: #ecfdf5;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.rx-profile-toast.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 980px) {
    .rx-profile-hero,
    .rx-profile-grid {
        grid-template-columns: 1fr;
    }

    .rx-profile-identity {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .rx-profile-facts {
        grid-template-columns: 1fr;
    }
}

/* Repair ticket print receipt button */
.rx-ticket-print-receipt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 13px;
    margin-top: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d8e5f1;
    color: #0e5ea8;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 45, 84, .06);
}

.rx-ticket-print-receipt-btn:hover {
    transform: translateY(-1px);
    border-color: #b8d5ef;
    box-shadow: 0 12px 24px rgba(15, 45, 84, .10);
}

.rx-ticket-print-receipt-btn span {
    font-size: 17px;
}

/* Repair receipt button layout correction */
.rx-ticket-action-btn,
.rx-ticket-print-receipt-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d8e5f1;
    color: #0e5ea8 !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 45, 84, .06);
}

.rx-ticket-print-receipt-btn {
    margin: 0 !important;
}

.rx-ticket-action-btn:hover,
.rx-ticket-print-receipt-btn:hover {
    transform: translateY(-1px);
    border-color: #b8d5ef;
    box-shadow: 0 12px 24px rgba(15, 45, 84, .10);
}

.rx-ticket-action-btn span,
.rx-ticket-print-receipt-btn span {
    font-size: 17px;
}

.rx-ticket-action-btn b,
.rx-ticket-print-receipt-btn b {
    font-weight: 900;
}

/* Ticket action row: receipt button final placement */
.rx-ticket-card-action,
.rx-ticket-print-receipt-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d8e5f1;
    color: #0e5ea8 !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 45, 84, .06);
}

.rx-ticket-card-action b,
.rx-ticket-print-receipt-btn b {
    font-weight: 900;
}

.rx-ticket-card-action span,
.rx-ticket-print-receipt-btn span {
    font-size: 17px;
}

.rx-ticket-print-receipt-btn {
    margin: 0 !important;
}

/* Invoice print button */
.rx-invoice-print-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    margin-top: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d8e5f1;
    color: #0e5ea8 !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 45, 84, .06);
}

.rx-invoice-print-btn:hover {
    transform: translateY(-1px);
    border-color: #b8d5ef;
    box-shadow: 0 12px 24px rgba(15, 45, 84, .10);
}

.rx-invoice-print-btn span {
    font-size: 17px;
}

.rx-invoice-print-btn b {
    font-weight: 900;
}

/* Invoice print button final placement */
.rx-invoice-card-action,
.rx-invoice-print-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d8e5f1;
    color: #0e5ea8 !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 45, 84, .06);
}

.rx-invoice-print-btn {
    margin: 0 !important;
}

.rx-invoice-card-action:hover,
.rx-invoice-print-btn:hover {
    transform: translateY(-1px);
    border-color: #b8d5ef;
    box-shadow: 0 12px 24px rgba(15, 45, 84, .10);
}

.rx-invoice-card-action span,
.rx-invoice-print-btn span {
    font-size: 17px;
}

.rx-invoice-card-action b,
.rx-invoice-print-btn b {
    font-weight: 900;
}

/* Payment receipt print buttons */
.rx-payment-receipt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.rx-payment-receipt-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 15px;
    background: #fffdf2;
    border: 1px solid #fde68a;
    color: #92400e !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(146, 64, 14, .06);
}

.rx-payment-receipt-btn:hover {
    transform: translateY(-1px);
    border-color: #fbbf24;
    box-shadow: 0 12px 24px rgba(146, 64, 14, .10);
}

.rx-payment-receipt-btn span {
    font-size: 17px;
}

.rx-payment-receipt-btn b {
    font-weight: 900;
}

/* Invoice card actions polish */
.rx-invoice-actions-polished {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.rx-invoice-actions-polished button,
.rx-invoice-actions-polished a {
    min-height: 40px;
    border-radius: 15px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 900;
}

.rx-invoice-actions-polished .rx-invoice-print-btn {
    margin: 0 !important;
}

.rx-payment-receipt-buttons-polished {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dbe7f3;
}

.rx-payment-receipt-buttons-polished::before {
    content: "🧾";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #92400e;
    font-weight: 900;
}

[dir="rtl"] .rx-payment-receipt-buttons-polished::before {
    content: "🧾";
}

@media (max-width: 680px) {
    .rx-invoice-actions-polished button,
    .rx-invoice-actions-polished a,
    .rx-payment-receipt-buttons-polished a {
        width: 100%;
    }

    .rx-payment-receipt-buttons-polished::before {
        display: none;
    }
}

/* ===== Repairana settings: official hours + sticky save ===== */
.rx-settings-hours-card {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 28px;
    padding: 24px 26px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rx-settings-hours-card h3,
.rx-settings-hours-card h2 {
    margin: 0 0 8px 0;
}

.rx-settings-hours-card p,
.rx-settings-hours-card small {
    color: #64748b;
}

.rx-settings-hours-card .ra-form-grid,
.rx-settings-hours-card .rx-form-grid,
.rx-settings-hours-card .rx-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.rx-settings-hours-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rx-settings-hours-card input[type="time"],
.rx-settings-hours-card input[type="number"] {
    width: 100%;
}

.rx-settings-sticky-submit {
    position: sticky;
    bottom: 18px;
    z-index: 50;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #dbe6f2;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rx-settings-sticky-submit button,
.rx-settings-sticky-submit .ra-btn,
.rx-settings-sticky-submit .rx-btn {
    animation: none !important;
    transform: none !important;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease !important;
    position: static !important;
    inset: auto !important;
}

@media (max-width: 900px) {
    .rx-settings-hours-card .ra-form-grid,
    .rx-settings-hours-card .rx-form-grid,
    .rx-settings-hours-card .rx-settings-grid {
        grid-template-columns: 1fr;
    }

    .rx-settings-sticky-submit {
        bottom: 12px;
        padding: 12px;
    }

    .rx-settings-sticky-submit button,
    .rx-settings-sticky-submit .ra-btn,
    .rx-settings-sticky-submit .rx-btn {
        width: 100%;
    }
}
/* ===== /Repairana settings: official hours + sticky save ===== */


/* ===== Repairana settings: official hours + sticky save ===== */
.rx-settings-hours-card {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 28px;
    padding: 24px 26px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rx-settings-hours-card h3,
.rx-settings-hours-card h2 {
    margin: 0 0 8px 0;
}

.rx-settings-hours-card p,
.rx-settings-hours-card small {
    color: #64748b;
}

.rx-settings-hours-card .ra-form-grid,
.rx-settings-hours-card .rx-form-grid,
.rx-settings-hours-card .rx-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.rx-settings-hours-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rx-settings-hours-card input[type="time"],
.rx-settings-hours-card input[type="number"] {
    width: 100%;
}

.rx-settings-sticky-submit {
    position: sticky;
    bottom: 18px;
    z-index: 50;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #dbe6f2;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rx-settings-sticky-submit button,
.rx-settings-sticky-submit .ra-btn,
.rx-settings-sticky-submit .rx-btn {
    animation: none !important;
    transform: none !important;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease !important;
    position: static !important;
    inset: auto !important;
}

@media (max-width: 900px) {
    .rx-settings-hours-card .ra-form-grid,
    .rx-settings-hours-card .rx-form-grid,
    .rx-settings-hours-card .rx-settings-grid {
        grid-template-columns: 1fr;
    }

    .rx-settings-sticky-submit {
        bottom: 12px;
        padding: 12px;
    }

    .rx-settings-sticky-submit button,
    .rx-settings-sticky-submit .ra-btn,
    .rx-settings-sticky-submit .rx-btn {
        width: 100%;
    }
}
/* ===== /Repairana settings: official hours + sticky save ===== */

