:root {
    --rt-orange: #b94318;
    --rt-orange-deep: #8d3210;
    --rt-orange-active: #70270a;
    --rt-orange-rgb: 185, 67, 24;
    --rt-charcoal: #24272b;
    --rt-slate: #4b535c;
    --rt-sand: #f5f4f0;
    --rt-line: #e6e1da;
    --rt-success: #16805e;
    --rt-white: #fff;
    --rt-radius: 18px;

    /* Bootstrap/Orchid usa estos tokens también en controles generados. */
    --bs-primary: var(--rt-orange);
    --bs-primary-rgb: var(--rt-orange-rgb);
    --bs-primary-text-emphasis: #70270a;
    --bs-primary-bg-subtle: #f9e8e1;
    --bs-primary-border-subtle: #e7b6a4;
    --bs-link-color: var(--rt-orange);
    --bs-link-color-rgb: var(--rt-orange-rgb);
    --bs-link-hover-color: var(--rt-orange-deep);
    --bs-link-hover-color-rgb: 141, 50, 16;
    --bs-focus-ring-color: rgba(var(--rt-orange-rgb), .38);
}

[data-bs-theme="dark"] {
    --bs-primary: var(--rt-orange);
    --bs-primary-rgb: var(--rt-orange-rgb);
    --bs-link-color: #ff9a80;
    --bs-link-color-rgb: 255, 154, 128;
    --bs-link-hover-color: #ffc2b3;
    --bs-link-hover-color-rgb: 255, 194, 179;
    --bs-focus-ring-color: rgb(255 154 128 / 42%);
}

/* El layout de Orchid envuelve el login en container/row/col con márgenes. */
.container-fluid:has(.rt-auth) { padding: 0; }
.container-fluid:has(.rt-auth) > .row { margin: 0; }
.container-fluid:has(.rt-auth) > .row > [class*="col"] { flex: 0 0 100%; max-width: 100%; padding: 0; }

.rt-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    min-height: 100vh;
}

.rt-auth__form-pane {
    align-items: center;
    background:
        radial-gradient(circle at 14% 12%, rgb(255 255 255 / 18%), transparent 28rem),
        linear-gradient(135deg, var(--rt-charcoal), #343434 55%, var(--rt-orange-deep));
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.rt-auth__visual {
    background: var(--rt-charcoal);
    overflow: hidden;
    position: relative;
}

.rt-auth__visual img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: 35% center;
    position: absolute;
    width: 100%;
}

.rt-auth__visual::after {
    background: linear-gradient(90deg, rgb(36 39 43 / 55%), transparent 35%);
    content: "";
    inset: 0;
    position: absolute;
}

.rt-auth__panel {
    max-width: 29rem;
}

.rt-auth__brand {
    color: var(--rt-white);
    display: flex;
    align-items: center;
    gap: .75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.rt-auth__brand img {
    max-height: 4rem;
    max-width: 13rem;
    object-fit: contain;
}

.rt-auth__brand span {
    border-left: 1px solid rgb(255 255 255 / 45%);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding-left: .75rem;
    text-transform: uppercase;
}

.rt-auth__card {
    background: var(--rt-white);
    border-radius: .75rem;
    box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 28%);
    padding: 2rem;
}

.rt-auth__card #button-login,
.rt-auth__card .btn-default {
    /* Orchid marca .btn-default con !important. */
    background: var(--rt-orange) !important;
    border-color: var(--rt-orange) !important;
    color: var(--rt-white) !important;
}

.rt-auth__card #button-login:hover,
.rt-auth__card #button-login:focus,
.rt-auth__card .btn-default:hover,
.rt-auth__card .btn-default:focus {
    background: var(--rt-orange-deep) !important;
    border-color: var(--rt-orange-deep) !important;
    color: var(--rt-white) !important;
}

.rt-auth__eyebrow {
    color: var(--rt-orange-deep);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.rt-auth__steps {
    counter-reset: rt-step;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.rt-auth__steps li {
    align-items: center;
    color: var(--rt-slate);
    counter-increment: rt-step;
    display: flex;
    font-size: .8125rem;
    gap: .4rem;
}

.rt-auth__steps li::before {
    align-items: center;
    background: var(--rt-line);
    border-radius: 50%;
    content: counter(rt-step);
    display: inline-flex;
    font-size: .7rem;
    font-weight: 700;
    height: 1.35rem;
    justify-content: center;
    width: 1.35rem;
}

.rt-auth__steps li.is-done::before {
    background: var(--rt-success);
    color: var(--rt-white);
}

.rt-auth__card form.text-center .btn-link {
    justify-content: center;
    width: 100%;
}

.rt-auth__steps li.is-current {
    color: var(--rt-charcoal);
    font-weight: 700;
}

.rt-auth__steps li.is-current::before {
    background: var(--rt-orange);
    color: var(--rt-white);
}

.rt-auth__code {
    font-size: 1.35rem;
    letter-spacing: .35em;
    text-align: center;
}

.rt-auth__qr {
    background: var(--rt-sand);
    border-radius: .5rem;
    padding: 1rem;
    text-align: center;
}

.rt-auth__qr img {
    height: 11rem;
    width: 11rem;
}

.rt-auth__qr code {
    word-break: break-all;
}

.rt-auth__note {
    color: rgb(255 255 255 / 80%);
    font-size: .8125rem;
    margin: 1rem 0 0;
    text-align: center;
}

body {
    background: var(--rt-sand);
    color: #25292d;
}

.rt-aside,
.rt-profile {
    background: var(--rt-charcoal) !important;
}

.rt-aside .nav-link {
    color: rgb(255 255 255 / 78%);
}

.rt-aside .nav-link:hover {
    color: var(--rt-white);
}

.rt-aside-menu {
    min-height: 0;
}

.rt-aside-profile {
    flex: 0 0 auto;
    margin-top: auto;
}

.rt-profile .profile-container > a {
    flex: 1 1 auto;
    min-width: 0;
}

.rt-profile .profile-container small {
    min-width: 0;
}

.rt-profile-avatar {
    align-items: center;
    background: var(--rt-orange);
    border-radius: 50%;
    color: var(--rt-white);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.rt-footer {
    margin-top: 2rem;
}

.rt-aside .nav-pills .nav-link.active,
.rt-aside .nav-pills .show > .nav-link {
    background: var(--rt-orange);
    color: #fff;
}

.rt-aside .nav-pills .nav-link:hover {
    background: rgba(255, 93, 68, .15);
}

.rt-brand-logo {
    display: block;
    width: min(190px, 100%);
    height: auto;
    filter: brightness(0) invert(1);
}

.rt-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px solid var(--rt-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 41, 45, .05);
}

.rt-topbar-context {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.rt-topbar-context strong,
.rt-user-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rt-topbar-label,
.rt-topbar-label {
    color: var(--rt-slate);
    font-size: .75rem;
}

.rt-topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.rt-topbar-actions .btn-light {
    border-color: var(--rt-line);
}

.rt-topbar-actions .btn-light:hover,
.rt-topbar-actions .btn-light:focus {
    border-color: var(--rt-orange);
    color: var(--rt-orange-deep);
}

.rt-user-link {
    color: var(--rt-charcoal);
    text-decoration: none;
    max-width: 160px;
}

.rt-user-link:hover { color: var(--rt-orange-deep); }

.rt-dashboard { padding: .25rem 0 2rem; }

.rt-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    margin-bottom: 1.5rem;
    border-radius: var(--rt-radius);
    color: #fff;
    background: linear-gradient(135deg, var(--rt-charcoal), #3a4148);
    box-shadow: 0 14px 36px rgba(36, 39, 43, .14);
}

.rt-hero--admin { background: linear-gradient(135deg, var(--rt-orange-deep), var(--rt-orange)); }
.rt-hero--empty { background: linear-gradient(135deg, #59636e, #303941); }
.rt-hero > svg { width: 3rem; height: 3rem; opacity: .7; flex: 0 0 auto; }
.rt-hero h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.rt-hero p:not(.rt-eyebrow) { margin: 0; color: rgba(255, 255, 255, .82); max-width: 52ch; }

.rt-eyebrow {
    margin: 0 0 .45rem;
    color: var(--rt-orange);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.rt-hero--admin .rt-eyebrow { color: #fff4eb; }

.rt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: max-content;
    padding: .4rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.rt-status-badge--active { background: rgba(255, 255, 255, .15); color: #fff; }
.rt-status-badge--inactive { background: #fee6e1; color: #8f270f; }
.rt-status-badge__dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }

.rt-section { margin: 2rem 0; }
.rt-section__heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.rt-section h2, .rt-feed-card h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }

.rt-resource-grid,
.rt-feed-grid,
.rt-stat-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.rt-resource-link { grid-column: span 4; color: inherit; text-decoration: none; }
.rt-resource-card,
.rt-feed-card,
.rt-stat-card {
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 41, 45, .04);
}

.rt-resource-card {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    height: 100%;
    padding: 1.1rem;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rt-resource-link:hover .rt-resource-card {
    transform: translateY(-2px);
    border-color: var(--rt-orange);
    box-shadow: 0 12px 26px rgba(213, 75, 0, .13);
}

.rt-resource-card h3,
.rt-empty-state h3 { margin: 0 0 .25rem; font-size: .95rem; font-weight: 700; }
.rt-resource-card p,
.rt-empty-state p { margin: 0; color: var(--rt-slate); font-size: .85rem; line-height: 1.45; }
.rt-resource-card__icon,
.rt-empty-state__icon,
.rt-stat-card__icon { display: grid; place-items: center; border-radius: 12px; flex: 0 0 auto; }
.rt-resource-card__icon { width: 2.4rem; height: 2.4rem; background: #fff0eb; color: var(--rt-orange-deep); }

.rt-feed-card { grid-column: span 4; padding: 1.1rem; }
.rt-feed-card__title { display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem; color: var(--rt-charcoal); }
.rt-feed-card__title svg { color: var(--rt-orange-deep); }

.rt-empty-state { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0 .15rem; }
.rt-feed-items { display: grid; gap: .65rem; }
.rt-feed-items a { color: var(--rt-charcoal); text-decoration: none; }
.rt-feed-items a:hover strong { color: var(--rt-orange-deep); }
.rt-feed-items span { color: var(--rt-slate); display: block; font-size: .82rem; }
.rt-empty-state__icon { width: 2.25rem; height: 2.25rem; background: var(--rt-sand); color: var(--rt-slate); }

.rt-stat-card { grid-column: span 4; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem; }
.rt-stat-card p { margin: 0 0 .3rem; color: var(--rt-slate); font-size: .82rem; }
.rt-stat-card strong { font-size: 1.9rem; line-height: 1; }
.rt-stat-card__icon { width: 2.7rem; height: 2.7rem; background: #fff0eb; color: var(--rt-orange-deep); font-size: 1.2rem; }

.rt-product-catalog { padding-top: .25rem; }

.rt-product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt-product-card {
    background: var(--rt-white);
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius);
    color: var(--rt-charcoal);
    display: flex;
    flex-direction: column;
    min-height: 15rem;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rt-product-card:hover {
    border-color: var(--rt-orange);
    box-shadow: 0 12px 26px rgba(213, 75, 0, .13);
    color: var(--rt-charcoal);
    transform: translateY(-2px);
}

.rt-product-card img,
.rt-product-card__placeholder {
    aspect-ratio: 16 / 9;
    display: grid;
    object-fit: cover;
    place-items: center;
    width: 100%;
}

.rt-product-card__placeholder,
.rt-product-detail__placeholder {
    background: linear-gradient(135deg, #f2f0eb, #e4e0d8);
    color: #7a8188;
}

.rt-product-card__placeholder svg,
.rt-product-detail__placeholder svg {
    height: 2.2rem;
    width: 2.2rem;
}

.rt-product-card__body {
    display: grid;
    gap: .28rem;
    padding: 1rem;
}

.rt-product-card__body strong { font-size: 1.05rem; }
.rt-product-card__brand { color: var(--rt-orange-deep); font-size: .78rem; font-weight: 700; }
.rt-product-card__meta { color: var(--rt-slate); font-size: .85rem; }

.rt-product-catalog__empty {
    align-items: flex-start;
    background: var(--rt-white);
    border: 1px dashed #cfc8bd;
    border-radius: var(--rt-radius);
    color: var(--rt-slate);
    display: flex;
    gap: 1rem;
    grid-column: 1 / -1;
    padding: 1.5rem;
}

.rt-product-catalog__empty svg { color: var(--rt-orange-deep); height: 1.7rem; width: 1.7rem; }
.rt-product-catalog__empty p { margin: .25rem 0 0; }

.rt-product-detail {
    align-items: center;
    background: var(--rt-white);
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius);
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.3fr);
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.rt-product-detail__media { align-items: center; display: grid; min-height: 14rem; }
.rt-product-detail__media img { max-height: 22rem; max-width: 100%; object-fit: contain; width: 100%; }
.rt-product-detail__placeholder { aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; }
.rt-product-detail__model { color: var(--rt-slate); font-weight: 700; }

.rt-product-definition-list {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) 3fr;
    margin: 0;
}

.rt-product-definition-list dt,
.rt-product-definition-list dd {
    border-top: 1px solid var(--rt-line);
    margin: 0;
    padding: .75rem 0;
}

.rt-product-definition-list dt { font-weight: 700; }

.rt-product-media-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt-product-media-gallery a { display: block; }
.rt-product-media-gallery img { border: 1px solid var(--rt-line); border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.btn-primary {
    --bs-btn-color: var(--rt-white);
    --bs-btn-bg: var(--rt-orange);
    --bs-btn-border-color: var(--rt-orange);
    --bs-btn-hover-bg: var(--rt-orange-deep);
    --bs-btn-hover-border-color: var(--rt-orange-deep);
    --bs-btn-active-bg: var(--rt-orange-active);
    --bs-btn-active-border-color: var(--rt-orange-active);
    --bs-btn-focus-shadow-rgb: var(--rt-orange-rgb);
    --bs-btn-disabled-color: var(--rt-white);
    --bs-btn-disabled-bg: var(--rt-orange);
    --bs-btn-disabled-border-color: var(--rt-orange);
    background-color: var(--rt-orange) !important;
    border-color: var(--rt-orange) !important;
    color: var(--rt-white) !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background-color: var(--rt-orange-deep) !important;
    border-color: var(--rt-orange-deep) !important;
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--rt-orange-active) !important;
    border-color: var(--rt-orange-active) !important;
}

.btn-primary:focus-visible,
.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(var(--rt-orange-rgb), .38) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--rt-orange);
    --bs-btn-border-color: var(--rt-orange);
    --bs-btn-hover-color: var(--rt-white);
    --bs-btn-hover-bg: var(--rt-orange-deep);
    --bs-btn-hover-border-color: var(--rt-orange-deep);
    --bs-btn-focus-shadow-rgb: var(--rt-orange-rgb);
    --bs-btn-active-color: var(--rt-white);
    --bs-btn-active-bg: var(--rt-orange-active);
    --bs-btn-active-border-color: var(--rt-orange-active);
    --bs-btn-disabled-color: var(--rt-orange);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--rt-orange);
    color: var(--rt-orange) !important;
    border-color: var(--rt-orange) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
    color: var(--rt-white) !important;
    background-color: var(--rt-orange-deep) !important;
    border-color: var(--rt-orange-deep) !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--rt-orange-active) !important;
    border-color: var(--rt-orange-active) !important;
}

body .form-control:focus,
body .form-select:focus,
body .bootstrap-tagsinput:focus,
body .chosen-choices:focus,
body .chosen-single:focus {
    border-color: var(--rt-orange) !important;
    box-shadow: 0 0 0 .25rem rgba(var(--rt-orange-rgb), .25) !important;
}

.form-check-input:focus {
    border-color: var(--rt-orange);
    box-shadow: 0 0 0 .25rem rgba(var(--rt-orange-rgb), .25);
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--rt-orange);
    border-color: var(--rt-orange);
}

.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23B94318'/%3E%3C/svg%3E");
}

.rt-filter-row {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(10rem, 1fr)) auto;
}

form.rt-filter-row {
    display: grid !important;
    grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(10rem, 1fr)) auto !important;
}

.rt-filter-row .form-group { margin-bottom: 0; }

.rt-media-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.rt-media-card {
    background: var(--rt-white);
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    overflow: hidden;
    padding: .75rem;
}

.rt-media-card h3 { font-size: 1rem; margin: .65rem 0 .25rem; }
.rt-media-card a { color: inherit; text-decoration: none; }

.rt-media-thumb {
    aspect-ratio: 4 / 3;
    background: var(--rt-charcoal);
    border-radius: .35rem;
    display: block;
    overflow: hidden;
}

.rt-media-thumb img,
.rt-media-preview img,
.rt-media-preview video {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rt-media-video {
    color: var(--rt-white);
    display: grid;
    font-size: 3rem;
    height: 100%;
    place-content: center;
}

.rt-media-select { display: block; font-size: .8rem; margin-bottom: .6rem; }
.rt-media-preview { aspect-ratio: 16 / 9; background: var(--rt-charcoal); max-width: 900px; }
.rt-media-preview img { object-fit: contain; }

.rt-pending-communications {
    align-items: flex-start;
    border: 1px solid #e9bd5c;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 1.5rem 1rem;
}

.rt-pending-communications span { display: block; margin-top: .2rem; }
.rt-pending-communications__links { display: grid; gap: .35rem; }
.rt-pending-communications__links a { font-weight: 700; }

.rt-read-report__totals {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.rt-read-report__totals > div {
    background: var(--rt-white);
    border: 1px solid var(--rt-line);
    border-radius: 12px;
    display: grid;
    gap: .25rem;
    padding: 1rem;
}

.rt-read-report__totals span { color: var(--rt-slate); font-size: .82rem; }
.rt-read-report__totals strong { font-size: 1.6rem; }

@media (max-width: 991.98px) {
    .rt-aside header {
        margin-top: 0 !important;
        min-height: 3.75rem;
        padding: .65rem 1rem !important;
    }

    .rt-aside .header-brand {
        margin-left: auto;
        max-width: 7.25rem;
    }

    .rt-aside .rt-brand-logo {
        max-height: 2.25rem;
        width: 7.25rem;
    }

    body.menu-open .rt-aside {
        height: 100dvh !important;
        min-height: 100dvh;
        overflow: hidden;
    }

    body.menu-open .rt-aside .aside-collapse {
        height: calc(100dvh - 3.75rem);
        min-height: 0;
        overflow: hidden;
    }

    body.menu-open .rt-aside-menu {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .rt-topbar { margin-inline: .25rem; }
    .rt-pending-communications { margin-inline: .25rem; }
    .rt-resource-link, .rt-feed-card { grid-column: span 6; }
    .rt-stat-card { grid-column: span 6; }
}

@media (min-width: 992px) {
    .rt-aside {
        align-self: flex-start;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        position: sticky;
        top: 0;
    }

    .rt-aside .aside-collapse {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .rt-aside-menu {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .rt-aside-menu .nav {
        padding-bottom: .75rem;
    }
}

@media (max-width: 991.98px) {
    .rt-auth { grid-template-columns: 1fr; }
    .rt-auth__visual { display: none; }
}

@media (max-width: 575.98px) {
    .rt-auth__brand {
        align-items: center;
        flex-direction: column;
        gap: .5rem;
    }

    .rt-auth__brand span {
        border-left: 0;
        border-top: 1px solid rgb(255 255 255 / 45%);
        padding: .5rem 0 0;
    }

    .rt-auth__card {
        padding: 1.5rem;
    }

    .rt-topbar { align-items: flex-start; flex-direction: column; }
    .rt-topbar-actions { width: 100%; justify-content: space-between; }
    .rt-topbar-actions .dropdown { max-width: 48%; overflow: hidden; }
    .rt-topbar-actions .dropdown button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .rt-user-link { max-width: 34%; }
    .rt-hero { padding: 1.35rem; }
    .rt-resource-link, .rt-feed-card, .rt-stat-card { grid-column: span 12; }
    .rt-product-grid { grid-template-columns: 1fr; }
    .rt-product-detail { grid-template-columns: 1fr; }
    .rt-product-media-gallery { grid-template-columns: 1fr 1fr; }
    .rt-product-definition-list { grid-template-columns: 1fr; }
    .rt-pending-communications { flex-direction: column; }
    .rt-read-report__totals { grid-template-columns: 1fr; }
    .rt-filter-row,
    form.rt-filter-row { grid-template-columns: 1fr !important; }
    .command-bar-wrapper { position: static; }
    .rt-product-definition-list dt { border-bottom: 0; padding-bottom: .15rem; }
    .rt-product-definition-list dd { border-top: 0; padding-top: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rt-resource-card,
    .rt-product-card { transition: none; }
}
