html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  overscroll-behavior: none;
}

body.rt-login-page {
  min-height: 100vh;
  overflow-x: hidden;
}

[readonly] {
  background-color: rgba(var(--rt-primary-rgb), 0.08) !important;
  user-select: none;
  pointer-events: none;
}

.rt-main {
  grid-column: 2 !important;
  padding: 0px var(--rt-page-gutter) 40px !important;
  min-width: 0 !important;
}

.rt-anishow {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    opacity 0.24s ease !important;
}

.rt-anishow:hover,
.rt-anishow:focus-visible {
  border-color: rgba(var(--rt-primary-rgb), 0.4) !important;
  box-shadow: 0 0 0 4px rgba(var(--rt-primary-rgb), 0.14) !important;
}

.rt-anishow:hover {
  transform: translateY(-1px);
}

.rt-anishow:active {
  transform: translateY(0);
}

body.rt-admin-body .rt-sbr,
body.rt-admin-body .rt-topbar_menu-tbl,
body.rt-admin-body .rt-topbar_search input,
body.rt-admin-body .rt-topbar_icon-tbl,
body.rt-admin-body .rt-sbr_user,
body.rt-admin-body .card,
body.rt-admin-body .rt-stat,
body.rt-admin-body .rt-quick_btn,
body.rt-admin-body .rt-detail-card,
body.rt-admin-body .rt-table-search input {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.rt-admin-body .rt-sbr,
body.rt-admin-body .card,
body.rt-admin-body .rt-stat,
body.rt-admin-body .rt-quick_btn,
body.rt-admin-body .rt-detail-card {
  box-shadow: none !important;
}

body.rt-admin-body .rt-topbar_icon-tbl,
body.rt-admin-body .rt-topbar_search input,
body.rt-admin-body .rt-sbr_user,
body.rt-admin-body .rt-table-search input {
  box-shadow: none !important;
}

body.rt-admin-body .rt-sbr {
  background: var(--rt-surface-solid);
}

body.rt-admin-body .card,
body.rt-admin-body .rt-stat,
body.rt-admin-body .rt-quick_btn,
body.rt-admin-body .rt-detail-card {
  background: var(--rt-surface-solid);
}

body.rt-admin-body .rt-admin-loader .rt-skeleton-line::after,
body.rt-admin-body .rt-admin-loader .rt-skeleton-chip::after,
body.rt-admin-body .rt-admin-loader .rt-skeleton-card::after,
body.rt-admin-body .rt-admin-loader .rt-skeleton-block::after,
body.rt-admin-body .rt-admin-loader .rt-skeleton-avatar::after,
body.rt-admin-body .rt-admin-loader .rt-skeleton-icon::after,
body.rt-admin-body .rt-skeleton-card::after,
body.rt-admin-body .rt-skeleton-line::after,
body.rt-admin-body .rt-skeleton-title::after,
body.rt-admin-body .rt-skeleton-button::after,
body.rt-admin-body .rt-skeleton-input::after,
body.rt-admin-body .rt-skeleton-cell::after,
body.rt-admin-body .rt-skeleton-avatar::after,
body.rt-admin-body .rt-skeleton-chart::after {
  animation-duration: 2.2s !important;
}

.rt-detail-item {
  min-width: 0;
}

.rt-detail-item > strong,
.rt-detail-item > a,
.rt-detail-item > span:not(.rt-detail-label) {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.rt-login-shell {
  height: 100%;
  overflow: hidden;
}

/* == sidebar MOD == */
.nav-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  overflow-x: hidden;
}

.nav-dropdown.is-open > .nav-dropdown-menu,
.nav-dropdown.show > .nav-dropdown-menu,
[data-nav-dropdown].is-open > .nav-dropdown-menu,
[data-nav-dropdown].show > .nav-dropdown-menu {
  max-height: 720px;
}

.rt-sbr_nav {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

.rt-sbr_nav::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.rt-sbr_nav::-webkit-scrollbar-track {
  background: transparent;
}

.rt-sbr_nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.58);
  border-radius: 999px !important;
}

.rt-sbr_nav::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.78);
}

/* ===== LOGIN PAGE LAYOUT ===== */
body.rt-login-page {
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  background: linear-gradient(
    135deg,
    rgba(var(--rt-primary-rgb), 0.08),
    rgba(var(--rt-accent), 0.06)
  );
}

body.rt-login-page .rt-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.rt-login-page .rt-login-wrapper {
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  padding: 0;
}

body.rt-login-shell > .rt-auth-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 40px);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--rt-bg);
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(var(--rt-primary-rgb), 0.18),
      transparent 36rem
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(0, 184, 255, 0.14),
      transparent 30rem
    ),
    radial-gradient(
      circle at 82% 88%,
      rgba(255, 122, 89, 0.12),
      transparent 32rem
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(109, 40, 217, 0.1),
      transparent 28rem
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    var(--rt-bg);
}

body.rt-login-shell > .rt-auth-page::before,
body.rt-login-shell > .rt-auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.rt-login-shell > .rt-auth-page::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.06));
  opacity: 0.45;
}

body.rt-login-shell > .rt-auth-page::after {
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(var(--rt-primary-rgb), 0.08),
      transparent 26rem
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(255, 122, 89, 0.06),
      transparent 22rem
    );
  opacity: 0.7;
}

.rt-auth-card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  background: var(--rt-surface-solid);
  color: var(--rt-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .rt-auth-card {
  background: rgba(16, 24, 40, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

body.rt-auth-body--registration .rt-auth-card {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] body.rt-auth-body--registration .rt-auth-card {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

/* Decorative floating shapes */
.rt-login__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: rtFloat 14s ease-in-out infinite;
}

.rt-login__shape--1 {
  width: 320px;
  height: 320px;
  background: rgba(var(--rt-primary-rgb), 0.22);
  top: -80px;
  left: -80px;
}

.rt-login__shape--2 {
  width: 260px;
  height: 260px;
  background: rgba(0, 184, 255, 0.18);
  bottom: -60px;
  right: -60px;
  animation-delay: -5s;
}

.rt-login__shape--3 {
  width: 200px;
  height: 200px;
  background: rgba(255, 122, 89, 0.16);
  top: 30%;
  right: 10%;
  animation-delay: -9s;
}

@keyframes rtFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ===== LOGIN CARD ===== */
.rt-login__card {
  position: relative;
  width: 100%;
  max-width: 456px;
  padding: 34px 34px 32px;
  border: 1px solid var(--rt-border);
  background: var(--rt-surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 2;
  animation: rtCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: center center;
  transform: scale(var(--login-scale, 1));
  max-height: calc(100dvh - 92px);
  overflow: auto;
}

.rt-login-card {
  position: relative;
}

.rt-login__intro {
  padding-right: 72px;
}

@keyframes rtCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(calc(var(--login-scale, 1) * 0.98));
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(var(--login-scale, 1));
  }
}

/* ===== BRAND ===== */
.rt-login__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-weight: 950;
  letter-spacing: -0.05em;
  font-size: 1.12rem;
}

/* ===== HEADER ===== */
.rt-login__head {
  margin-bottom: 28px;
}

.rt-login__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  margin-bottom: 20px;
  color: var(--rt-primary);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.rt-login__home:hover {
  opacity: 0.8;
  transform: translateX(-1px);
}

.rt-login__home .rt {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.rt-login__title {
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.rt-login__subtitle {
  margin: 0;
  color: var(--rt-muted);
  font-size: 0.92rem;
  font-weight: 520;
  line-height: 1.6;
}

/* ===== FORM ===== */
.rt-login__form {
  display: grid;
  gap: 16px;
}

.rt-field {
  display: grid;
  gap: 6px;
}

.rt-field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rt-text);
  letter-spacing: -0.01em;
}

.rt-field__link {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--rt-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.rt-field__link:hover {
  opacity: 0.75;
}

.rt-field__input-wrap {
  position: relative;
}

.rt-field__input-wrap .rt-select {
  width: 100%;
}

.rt-field__input-wrap .rt-select__toggle {
  min-height: 46px;
  padding: 0 48px 0 42px;
  justify-content: flex-start;
  text-align: left;
}

.rt-field__input-wrap .rt-select__value {
  min-width: 0;
  flex: 1 1 auto;
}

.rt-field__input-wrap .rt-select__caret {
  margin-left: auto;
}

.rt-select__menu.is-open {
  display: flex !important;
}

.rt-field__input {
  width: 100%;
  height: 46px;
  padding: 0 48px 0 42px;
  border: 1px solid var(--rt-border);
  background: var(--rt-surface-solid);
  color: var(--rt-text);
  outline: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

textarea.rt-field__input {
  height: auto;
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

textarea.rt-field__input::placeholder {
  line-height: 1.5;
}

.rt-field__input::placeholder {
  color: var(--rt-muted);
  font-weight: 500;
}

.rt-field__input:focus {
  border-color: var(--rt-primary);
  background: var(--rt-surface-solid);
}

.rt-field__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--rt-muted);
  stroke-width: 2;
  pointer-events: none;
  transition: color 0.2s ease;
}

.rt-field__icon.rt {
  display: inline-block;
}

.rt-field__input:focus ~ .rt-field__icon {
  color: var(--rt-primary);
}

.rt-field__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--rt-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.rt-field__toggle:hover {
  color: var(--rt-primary);
}

.rt-field__toggle .rt {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ===== CHECKBOX ===== */
.rt-login-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rt-text);
}

.rt-login-check__input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rt-primary);
  flex: 0 0 auto;
}

.rt-login-check__label {
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
}

.rt-login-check__box {
  display: none;
}

.rt-login-check__input:focus-visible {
  outline: 2px solid rgba(var(--rt-primary-rgb), 0.35);
  outline-offset: 2px;
}

.rt-login-check__input:checked {
  accent-color: var(--rt-primary);
}

.rt-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ===== SUBMIT BUTTON ===== */
.rt-login__submit {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 55%, #06b6d4 100%);
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.rt-login__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(14, 165, 233, 0.24);
  filter: saturate(1.02);
}

.rt-login__submit:disabled {
  cursor: wait;
  opacity: 0.9;
}

.rt-login__submit .rt {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.rt-spinner {
  display: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  box-sizing: border-box;
  border: 2px solid rgba(100, 116, 139, 0.28);
  border-top-color: currentColor;
  border-radius: 999px !important;
  animation: rtSpin 0.7s linear infinite;
  flex: 0 0 auto;
  font-size: 0;
  line-height: 0;
  background: transparent;
  transform-origin: center center;
  vertical-align: middle;
}

.rt-spinner.is-active,
button.is-loading .rt-spinner,
.btn.is-loading .rt-spinner {
  display: inline-block;
}

button.is-loading,
.btn.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Ghost */
.btn-ghost,
.rt-btn-ghost,
.rt-tbl--ghost,
.rt-tbl-ghost {
  background: transparent !important;
  color: var(--rt-text) !important;
  border-color: var(--rt-border) !important;
}

.btn-ghost:hover,
.rt-btn-ghost:hover,
.rt-tbl--ghost:hover,
.rt-tbl-ghost:hover {
  background: var(--rt-border) !important;
  color: var(--rt-text) !important;
  border-color: var(--rt-border) !important;
}

.rt-login__submit.is-loading .rt-btn-text {
  opacity: 0.85;
}

@keyframes rtSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===== DIVIDER ===== */
.rt-login__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--rt-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rt-login__divider::before,
.rt-login__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rt-border);
}

/* ===== SOCIAL BUTTONS ===== */
.rt-login__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rt-login__socials > * {
  flex: 1 1 180px;
  max-width: 100%;
}

.rt-login__socials > :only-child {
  flex: 0 1 280px;
}

.rt-login__social {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rt-border);
  background: var(--rt-surface-solid);
  color: var(--rt-text);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.2s ease;
}

.rt-login__social .rt {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.rt-login__social:hover {
  border-color: rgba(var(--rt-primary-rgb), 0.3);
  transform: translateY(-1px);
}

.rt-login__social svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* ===== FOOTER ===== */
.rt-login__foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--rt-muted);
}

.rt-login__foot a {
  color: var(--rt-primary);
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.rt-login__text-link {
  display: inline;
}

.rt-login__foot a:hover {
  opacity: 0.75;
}

a.rt-link,
span.rt-link,
button.rt-link {
  width: auto !important;
  height: auto !important;
  display: inline !important;
  background: none !important;
  background-color: transparent !important;
  color: inherit !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* ===== THEME TOGGLE ===== */
.rt-login__theme {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rt-border);
  background: var(--rt-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--rt-text);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  z-index: 3;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rt-login__theme:hover {
  transform: translateY(-1px);
  color: var(--rt-primary);
  border-color: rgba(var(--rt-primary-rgb), 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.rt-login__theme .rt {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.rt-login__theme .sun-icon {
  display: none;
}

html[data-theme="dark"] .rt-login__theme .moon-icon {
  display: none;
}

html[data-theme="dark"] .rt-login__theme .sun-icon {
  display: block;
}

/* ===== LEGAL ===== */
.rt-login__legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rt-muted);
  z-index: 2;
  padding: 0 12px;
  pointer-events: none;
}

.rt-login__legal a {
  color: var(--rt-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--rt-primary-rgb), 0.3);
  pointer-events: auto;
}

.rt-login__legal a:hover {
  color: var(--rt-primary);
}

/* ===== ERROR STATE ===== */
.rt-field.is-error .rt-field__input {
  border-color: var(--rt-danger);
}

.rt-field__error {
  display: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rt-danger);
  margin-top: 2px;
}

.rt-field.is-error .rt-field__error {
  display: block;
}

/* ===== ADMIN LAYOUT ===== */
.rt-admin {
  --admin-sidebar-collapsed-w: 84px;
}

.rt-admin {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--admin-sidebar-w) minmax(0, 1fr);
}

.rt-admin.is-sidebar-collapsed {
  grid-template-columns: var(--admin-sidebar-collapsed-w) minmax(0, 1fr);
}

.rt-admin.is-sidebar-collapsed .rt-sbr {
  width: var(--admin-sidebar-collapsed-w);
  padding-inline: 10px;
}

.rt-sbr_brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 16px 24px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.rt-sbr_brand-copy {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.rt-sbr_brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-sbr_toggle,
.rt-topbar_sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.rt-sbr_toggle {
  position: absolute;
  top: 75%;
  right: -30px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--rt-purple);
  background: var(--rt-purple);
  color: var(--rt-white);
  transform: translateY(-4%);
  border-radius: 999px !important;
}

.rt-sbr_toggle::before {
  content: "";
  width: 32px;
  height: 32px;
}

.rt-sbr_toggle > .rt-sbr_toggle-icon {
  position: absolute;
}

.rt-sbr_toggle:hover {
  color: var(--rt-white);
  background: var(--rt-purple);
  border-color: var(--rt-purple);
}

.rt-topbar_sidebar-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rt-border);
  background: var(--rt-surface);
  color: var(--rt-text);
}

.rt-topbar_sidebar-toggle:hover {
  color: var(--rt-primary);
  background: rgba(var(--rt-primary-rgb), 0.06);
  border-color: rgba(var(--rt-primary-rgb), 0.2);
}

.rt-sbr_toggle-icon,
.rt-topbar_sidebar-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rt-topbar_sidebar-toggle {
  flex: 0 0 auto;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_toggle-icon,
.rt-admin.is-sidebar-collapsed .rt-topbar_sidebar-toggle-icon {
  transform: scaleX(-1);
}

.rt-admin.is-sidebar-collapsed .rt-sbr_brand {
  justify-content: center;
  padding-inline: 0;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_brand-copy {
  justify-content: center;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_brand-name,
.rt-admin.is-sidebar-collapsed .rt-sbr_label,
.rt-admin.is-sidebar-collapsed .rt-sbr_text,
.rt-admin.is-sidebar-collapsed .rt-sbr_badge,
.rt-admin.is-sidebar-collapsed .nav-dropdown-chevron,
.rt-admin.is-sidebar-collapsed .rt-sbr_user-info,
.rt-admin.is-sidebar-collapsed .nav-dropdown-menu {
  display: none !important;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_toggle {
  top: 60%;
  right: -30px;
  width: 40px;
  height: 40px;
  transform: translateY(-4%);
  border-radius: 999px !important;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_toggle::before {
  width: 28px;
  height: 28px;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_link,
.rt-admin.is-sidebar-collapsed .nav-dropdown-toggle,
.rt-admin.is-sidebar-collapsed .rt-sbr_user {
  justify-content: center;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_link,
.rt-admin.is-sidebar-collapsed .nav-dropdown-toggle {
  padding-inline: 0;
}

.rt-admin.is-sidebar-collapsed .rt-sbr_footer {
  padding-top: 12px;
}

.rt-main {
  grid-column: 2;
  padding: 22px var(--rt-page-gutter) 40px;
  min-width: 0;
}

.rt-page__content {
  min-width: 0;
}

.rt-topbar_title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.rt-topbar_breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--rt-muted);
}

.rt-topbar_breadcrumb-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  font-size: 0.95rem;
  color: currentColor;
  line-height: 1;
}

.rt-topbar_breadcrumb-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.rt-topbar_breadcrumb-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: currentColor;
  line-height: 1.2;
}

.rt-topbar_breadcrumb-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .rt-admin {
    grid-template-columns: 1fr;
  }

  .rt-admin.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .rt-main {
    grid-column: 1;
    padding: 14px 14px 28px;
  }

  .rt-sbr {
    transform: translateX(-100%);
  }

  .rt-sbr.is-open {
    transform: translateX(0);
  }

  .rt-sbr_overlay.is-open {
    display: block;
  }

  .rt-topbar_menu-tbl {
    display: inline-grid;
  }

  .rt-sbr_toggle {
    display: none;
  }

  .rt-topbar_title-wrap {
    gap: 2px;
  }
}

@media (max-width: 620px) {
  .rt-main {
    padding: 10px 12px 24px;
  }

  .rt-topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .rt-topbar_menu-tbl {
    width: 40px;
    height: 40px;
  }

  .rt-topbar_title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  .rt-topbar_breadcrumb {
    gap: 8px;
  }

  .rt-topbar_breadcrumb-icon {
    font-size: 0.85rem;
    margin-top: 0.1rem;
  }

  .rt-topbar_breadcrumb-line {
    font-size: 0.72rem;
  }

  .rt-topbar_search {
    display: none;
  }

  .rt-topbar_actions {
    justify-self: end;
    gap: 6px;
  }

  .rt-topbar_icon-tbl {
    width: 40px;
    height: 40px;
  }

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

  .rt-grid {
    grid-template-columns: 1fr;
  }

  .rt-grid > * {
    min-width: 0;
  }

  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    flex-wrap: wrap;
  }
}

.rt-dashboard-page {
  display: grid;
  gap: 18px;
  padding: 2px 0 0;
}

.rt-dashboard__grid {
  align-items: start;
}

.rt-dashboard__panel .card-body {
  min-height: 0;
}

.rt-dashboard__activity {
  display: grid;
  gap: 12px;
}

.rt-topbar_notification-copy {
  display: grid;
  gap: 2px;
}

.rt-topbar_notification-copy small {
  color: var(--rt-text-soft, #6b7280);
  font-size: 0.75rem;
}

.rt-topbar_icon-tbl {
  position: relative;
}

.rt-topbar_icon-tbl .rt-topbar_dot--count {
  top: 5px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  z-index: 2;
  border-radius: 0 !important;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.rt-dashboard__activity-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--rt-border);
}

.rt-dashboard__activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rt-dashboard__activity-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  overflow: hidden;
}

.rt-dashboard__activity-icon .rt {
  width: 18px;
  height: 18px;
}

.rt-dashboard__activity-copy {
  min-width: 0;
}

.rt-dashboard__activity-title {
  font-weight: 800;
  line-height: 1.45;
}

.rt-dashboard__activity-time {
  margin-top: 2px;
  color: var(--rt-muted);
  font-size: 0.78rem;
}

.rt-dashboard__traffic {
  margin-top: 0;
}

.rt-dashboard__traffic-title {
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 900;
}

.rt-dashboard__traffic-list {
  display: grid;
  gap: 12px;
}

.rt-dashboard__traffic-item {
  display: grid;
  gap: 6px;
}

.rt-dashboard__traffic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.rt-progress_bar {
  width: 100%;
  height: 8px;
  border: 1px solid var(--rt-border);
  border-radius: 999px !important;
  overflow: hidden;
  background: rgba(var(--rt-primary-rgb), 0.08);
}

.rt-progress_fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rt-primary), var(--rt-primary-2));
}

.rt-progress_fill--accent {
  background: linear-gradient(90deg, #ff8a3d, #ffb36b);
}

.rt-progress_fill--success {
  background: linear-gradient(90deg, #00c389, #00e0a1);
}

.rt-progress_fill--purple {
  background: linear-gradient(90deg, #7c3aed, #9f67ff);
}

/* ===== USERS TABLE MOBILE STACK ===== */
.rt-users-table td[data-label]::before {
  content: attr(data-label);
  display: none;
}

@media (max-width: 640px) {
  .rt-users-table thead {
    display: none;
  }

  .rt-users-table,
  .rt-users-table tbody,
  .rt-users-table tr,
  .rt-users-table td {
    display: block;
    width: 100%;
  }

  .rt-users-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--rt-border);
    background: var(--rt-surface);
  }

  .rt-users-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    white-space: normal;
    border-bottom: 1px solid var(--rt-border);
  }

  .rt-users-table td:last-child {
    border-bottom: 0;
  }

  .rt-users-table td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    max-width: 38%;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rt-muted);
    padding-right: 8px;
  }

  .rt-users-table td > * {
    min-width: 0;
    margin-left: auto;
  }

  .rt-users-table .rt-table_user {
    justify-content: flex-end;
    text-align: right;
  }

  .rt-users-table .btn-group {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .rt-users-table .btn-group .btn {
    flex: 0 0 auto;
  }
}

/* ===== ADMIN LOADER SKELETON ===== */
.rt-admin-loader {
  display: grid;
  gap: 18px;
  padding: 4px 0 24px;
}

.rt-admin-loader .rt-skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.rt-admin-loader .rt-skeleton-row--top {
  margin-bottom: 4px;
}

.rt-admin-loader .rt-skeleton-line,
.rt-admin-loader .rt-skeleton-chip,
.rt-admin-loader .rt-skeleton-card,
.rt-admin-loader .rt-skeleton-block,
.rt-admin-loader .rt-skeleton-avatar,
.rt-admin-loader .rt-skeleton-icon {
  position: relative;
  overflow: hidden;
  background: rgba(var(--rt-primary-rgb), 0.06);
}

.rt-admin-loader .rt-skeleton-line::after,
.rt-admin-loader .rt-skeleton-chip::after,
.rt-admin-loader .rt-skeleton-card::after,
.rt-admin-loader .rt-skeleton-block::after,
.rt-admin-loader .rt-skeleton-avatar::after,
.rt-admin-loader .rt-skeleton-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  animation: rtSkeletonShimmer 1.35s ease-in-out infinite;
}

.rt-admin-loader .rt-skeleton-line {
  height: 18px;
  border-radius: 999px !important;
}

.rt-admin-loader .rt-skeleton-line--title {
  width: min(240px, 42vw);
  height: 24px;
}

.rt-admin-loader .rt-skeleton-line--sub {
  width: min(180px, 30vw);
}

.rt-admin-loader .rt-skeleton-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.rt-admin-loader .rt-skeleton-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.rt-admin-loader .rt-skeleton-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rt-admin-loader .rt-skeleton-card {
  min-height: 154px;
  border: 1px solid var(--rt-border);
  border-radius: 0;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.rt-admin-loader .rt-skeleton-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rt-admin-loader .rt-skeleton-card__body {
  display: grid;
  gap: 12px;
}

.rt-admin-loader .rt-skeleton-block {
  height: 14px;
  border-radius: 999px !important;
}

.rt-admin-loader .rt-skeleton-block--lg {
  height: 28px;
  width: min(140px, 70%);
}

.rt-admin-loader .rt-skeleton-block--md {
  width: min(110px, 58%);
}

.rt-admin-loader .rt-skeleton-block--sm {
  width: min(84px, 46%);
}

.rt-admin-loader .rt-skeleton-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 18px;
}

.rt-admin-loader .rt-skeleton-panel {
  border: 1px solid var(--rt-border);
  border-radius: 0;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.rt-admin-loader .rt-skeleton-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rt-admin-loader .rt-skeleton-panel__meta {
  display: grid;
  gap: 8px;
}

.rt-admin-loader .rt-skeleton-chart {
  height: 260px;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--rt-primary-rgb), 0.12),
    rgba(var(--rt-primary-rgb), 0.03)
  );
}

.rt-admin-loader .rt-skeleton-list {
  display: grid;
  gap: 14px;
}

.rt-admin-loader .rt-skeleton-list-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.rt-admin-loader .rt-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.rt-admin-loader .rt-skeleton-list-copy {
  display: grid;
  gap: 8px;
}

.rt-admin-loader .rt-skeleton-progress {
  height: 8px;
  border-radius: 999px !important;
  background: rgba(var(--rt-primary-rgb), 0.08);
}

.rt-admin-loader .rt-skeleton-traffic {
  display: grid;
  gap: 12px;
}

.rt-admin-loader .rt-skeleton-traffic .rt-skeleton-card {
  min-height: 0;
}

@media (max-width: 1024px) {
  .rt-admin-loader .rt-skeleton-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rt-admin-loader .rt-skeleton-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .rt-admin-loader .rt-skeleton-row,
  .rt-admin-loader .rt-skeleton-panel__head {
    align-items: stretch;
  }

  .rt-admin-loader .rt-skeleton-actions {
    margin-left: 0;
  }

  .rt-admin-loader .rt-skeleton-stats {
    grid-template-columns: 1fr;
  }
}

@keyframes rtSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  body.rt-login-page {
    padding: 12px;
  }

  body.rt-login-page .rt-login-wrapper {
    width: min(100%, 420px);
  }

  .rt-auth-page {
    padding: 10px;
    align-items: stretch;
    justify-content: center;
  }

  .rt-login__card {
    padding: 24px 18px 18px;
    max-width: 100%;
    max-height: none;
    overflow: hidden;
  }

  .rt-login__brand {
    margin-bottom: 18px;
    font-size: 1rem;
    gap: 8px;
  }

  .rt-login__head {
    margin-bottom: 18px;
  }

  .rt-login__title {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .rt-login__subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .rt-login__form {
    gap: 12px;
  }

  .rt-field {
    gap: 5px;
  }

  .rt-field__label {
    font-size: 0.75rem;
  }

  .rt-field__input {
    height: 40px;
    font-size: 0.84rem;
  }

  .rt-field__icon {
    width: 16px;
    height: 16px;
  }

  .rt-field__toggle {
    width: 30px;
    height: 30px;
  }

  .rt-login-check {
    font-size: 0.8rem;
  }

  .rt-login__submit {
    min-height: 44px;
    margin-top: 2px;
    font-size: 0.88rem;
  }

  .rt-login__divider {
    margin: 14px 0 12px;
    font-size: 0.68rem;
  }

  .rt-login__socials {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rt-login__social {
    min-height: 40px;
    font-size: 0.8rem;
  }

  .rt-login__foot {
    margin-top: 14px;
    font-size: 0.78rem;
  }

  .rt-login__legal {
    bottom: 6px;
    font-size: 0.66rem;
  }
}

/* Untuk layar pendek (height < 700px) */
@media (max-height: 700px) {
  body.rt-login-page {
    padding: 12px;
  }

  .rt-auth-page {
    padding: 10px;
  }

  .rt-login__card {
    padding: 24px 18px 18px;
    max-height: none;
    overflow: hidden;
  }

  .rt-login__head {
    margin-bottom: 18px;
  }

  .rt-login__form {
    gap: 12px;
  }

  .rt-login__divider {
    margin: 14px 0 12px;
  }

  .rt-login__socials {
    margin-bottom: 12px;
  }

  .rt-login__foot {
    margin-top: 14px;
  }
}

/* ===== FLAT MODE OVERRIDE ===== */
.rt-login__card,
.rt-field__input,
.rt-login__social,
.rt-login__theme {
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 961px) {
  .rt-login__card {
    --login-scale: 0.8;
    overflow: hidden;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .rt-login__card {
    --login-scale: 0.92;
  }

  .rt-login__theme {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

.rt-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.rt-table-sort:hover,
.rt-table-sort.is-active {
  color: var(--rt-primary);
}

.rt-table-sort__icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.55;
  flex: 0 0 auto;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.rt-table-sort.is-active .rt-table-sort__icon {
  opacity: 1;
}

.rt-table-sort:focus-visible {
  outline: 2px solid rgba(var(--rt-primary-rgb), 0.35);
  outline-offset: 3px;
}

.rt-table-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rt-table-filters > .btn-sm,
.rt-table-filters > .rt-btn-sm,
.rt-table-filter {
  min-width: 148px;
  height: 38px;
  min-height: 38px;
  padding: 0 2.3rem 0 0.9rem;
  border: 1px solid var(--rt-border);
  border-radius: 10px;
  background-color: var(--rt-surface-solid);
  color: var(--rt-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.rt-table-filter {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rt-muted) 50%),
    linear-gradient(135deg, var(--rt-muted) 50%, transparent 50%),
    linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 12px) 17px,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  box-shadow: var(--rt-shadow-soft);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.rt-table-filter:hover {
  border-color: rgba(var(--rt-primary-rgb), 0.35);
}

.rt-table-filter:focus {
  outline: none;
  border-color: var(--rt-primary);
  box-shadow: 0 0 0 3px rgba(var(--rt-primary-rgb), 0.14);
}

.rt-table-filter option {
  color: var(--rt-text);
  background: var(--rt-surface-solid);
}

.rt-table-reset-btn {
  min-width: 104px;
  justify-content: center;
}

.rt-table-reset-btn .rt-spinner {
  width: 16px;
  height: 16px;
}

.rt-table-reset-btn.is-loading .rt-btn-text {
  opacity: 0.8;
}

.rt-upload-dropzone {
  position: relative;
}

.rt-upload-preview--file {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rt-upload-preview__remove {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rt-upload-preview__remove:hover {
  background: rgba(239, 68, 68, 0.16);
}

.rt-upload-preview__thumb {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(var(--rt-primary-rgb), 0.06);
  border: 1px solid rgba(var(--rt-primary-rgb), 0.12);
}

.rt-upload-preview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-upload-preview__icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(var(--rt-primary-rgb), 0.08);
  color: var(--rt-primary);
}

.rt-upload-preview__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rt-upload-preview__icon--image {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.rt-upload-preview__icon--pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.rt-upload-preview__icon--file {
  background: rgba(100, 116, 139, 0.12);
  color: var(--rt-muted);
}

.rt-doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rt-doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rt-border);
  border-radius: 14px;
  background: rgba(var(--rt-primary-rgb), 0.02);
}

.rt-doc-item__info {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rt-doc-item__name {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-doc-item__meta {
  font-size: 0.8rem;
  color: var(--rt-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-doc-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .rt-doc-item {
    flex-wrap: wrap;
  }

  .rt-doc-item__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.rt-photo-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rt-photo-feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rt-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(var(--rt-primary-rgb), 0.02);
}

.rt-photo-feature__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(var(--rt-primary-rgb), 0.06);
  overflow: hidden;
}

.rt-photo-feature__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-photo-feature__frame--empty {
  flex-direction: column;
  gap: 6px;
  color: var(--rt-muted);
  font-size: 0.82rem;
}

.rt-photo-feature__frame--empty i {
  font-size: 1.4rem;
}

.rt-photo-feature__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--rt-border);
}

.rt-photo-feature__label {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rt-text);
}

@media (max-width: 640px) {
  .rt-photo-feature-grid {
    grid-template-columns: 1fr;
  }
}

.rt-photo-thumb {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rt-border);
  background: rgba(var(--rt-primary-rgb), 0.06);
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.rt-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-photo-thumb--empty {
  flex-direction: column;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--rt-muted);
}

.rt-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rt-photo-pane {
  display: grid;
  gap: 8px;
}

.rt-photo-pane span {
  font-size: 12px;
  color: var(--rt-muted);
}

.rt-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rt-field-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--rt-primary-rgb), 0.08);
  font-size: 12px;
}

.rt-table-wrap {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: auto;
  padding-bottom: 0;
  position: relative;
}

.rt-table-wrap::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.rt-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.rt-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: transparent;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.rt-table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(var(--rt-primary-rgb), 0.28),
    rgba(var(--rt-primary-rgb), 0.52)
  );
  background-clip: padding-box;
}

.rt-table-wrap::-webkit-scrollbar-corner {
  background: transparent;
}

.rt-table-wrap:hover,
.rt-table-wrap:focus-within {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

.rt-table-wrap:hover::-webkit-scrollbar,
.rt-table-wrap:focus-within::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

.rt-table-wrap:hover::-webkit-scrollbar-thumb,
.rt-table-wrap:focus-within::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.34),
    rgba(100, 116, 139, 0.48)
  );
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px !important;
  min-height: 16px;
  transition:
    background-color 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    opacity 0.32s ease,
    transform 0.32s ease;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.rt-table-wrap:hover::-webkit-scrollbar-thumb:hover,
.rt-table-wrap:focus-within::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.42),
    rgba(100, 116, 139, 0.56)
  );
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
  transform: translateY(-1px) scaleY(0.96);
}

@media (hover: none) and (pointer: coarse) {
  .rt-table-wrap {
    scrollbar-width: none;
    padding-bottom: 0;
  }

  .rt-table-wrap::-webkit-scrollbar {
    height: 0;
    width: 0;
  }
}

.rt-password-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.rt-password-field .rt-form-input {
  flex: 1 1 auto;
}

.rt-password-toggle {
  flex: 0 0 auto;
  min-width: 46px;
  justify-content: center;
}

.rt-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rt-btn-group--nowrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
}

.rt-btn-group--nowrap > .rt-btn,
.rt-btn-group--nowrap > .btn {
  min-width: 38px;
  width: auto;
  height: 38px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: visible;
}

.rt-detail-documents {
  margin: 0;
  padding: 8px 16px 8px 32px;
}

.rt-detail-documents li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--rt-border);
}

.rt-detail-documents li:last-child {
  border-bottom: 0;
}

.rt-detail-documents a {
  color: var(--rt-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.modal-header .btn-close,
.modal-header .modal-close {
  margin-left: auto;
  align-self: center;
}

.modal-footer .rt-btn,
.modal-footer .btn {
  min-width: 96px;
}

.modal .modal-content {
  max-height: min(86vh, calc(100vh - 32px));
}

.modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.modal .modal-content > form .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.modal .modal-content > form .modal-footer {
  flex: 0 0 auto;
}

.modal-fullscreen .modal-content {
  max-height: 100vh;
}

.rt-detail-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--rt-border);
  border-radius: 16px;
  background: var(--rt-surface-solid);
  box-shadow: var(--rt-shadow-soft);
}

.rt-detail-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rt-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.rt-detail-item,
.rt-session-card {
  padding: 14px 16px;
  border: 1px solid var(--rt-border);
  border-radius: 14px;
  background: rgba(var(--rt-primary-rgb), 0.02);
}

.rt-detail-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  height: 100%;
  align-content: start;
  box-sizing: border-box;
  border-bottom: 1px solid var(--rt-border);
}

.rt-detail-item:last-child {
  border-bottom: 1px solid var(--rt-border);
}

.rt-detail-grid > .rt-detail-item:last-child {
  border-bottom: 1px solid var(--rt-border);
}

@media (min-width: 769px) {
  .rt-detail-grid > .rt-detail-item:last-child:nth-child(even),
  .rt-detail-grid > .rt-detail-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--rt-border);
  }
}

.rt-detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rt-muted);
}

.rt-session-list {
  display: grid;
  gap: 12px;
}

.rt-session-card {
  display: grid;
  gap: 14px;
}

.rt-session-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.rt-session-card__title {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--rt-text);
}

.rt-session-card__subtitle {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--rt-muted);
  word-break: break-word;
}

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

.rt-session-grid strong {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

@media (max-width: 768px) {
  .rt-detail-grid,
  .rt-session-grid {
    grid-template-columns: 1fr;
  }

  .rt-password-field {
    flex-direction: column;
  }

  .rt-password-toggle {
    width: 100%;
  }
}

.rt-skeleton-page {
  width: 100%;
  animation: rtSkeletonFadeIn 0.2s ease-in-out;
}

.rt-skeleton-card,
.rt-skeleton-line,
.rt-skeleton-title,
.rt-skeleton-button,
.rt-skeleton-input,
.rt-skeleton-cell,
.rt-skeleton-avatar,
.rt-skeleton-chart {
  position: relative;
  overflow: hidden;
  border-radius: var(--rt-radius-md, 10px);
  background: var(--rt-skeleton-bg, rgba(148, 163, 184, 0.18));
}

.rt-skeleton-card::after,
.rt-skeleton-line::after,
.rt-skeleton-title::after,
.rt-skeleton-button::after,
.rt-skeleton-input::after,
.rt-skeleton-cell::after,
.rt-skeleton-avatar::after,
.rt-skeleton-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--rt-skeleton-shine, rgba(255, 255, 255, 0.18)),
    transparent
  );
  animation: rtSkeletonShimmer 1.3s infinite;
}

.rt-skeleton-header,
.rt-skeleton-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rt-skeleton-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rt-skeleton-grid[data-cols="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rt-skeleton-grid[data-cols="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rt-skeleton-grid[data-cols="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rt-skeleton-title {
  width: min(220px, 80%);
  height: 28px;
}

.rt-skeleton-line {
  height: 14px;
  margin-bottom: 0.75rem;
}

.rt-skeleton-button {
  width: 120px;
  height: 38px;
}

.rt-skeleton-input {
  width: 100%;
  height: 42px;
}

.rt-skeleton-card {
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--rt-border-color, rgba(148, 163, 184, 0.16));
}

.rt-skeleton-table {
  display: grid;
  gap: 0.75rem;
}

.rt-skeleton-row {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.rt-skeleton-cell {
  height: 16px;
}

.rt-skeleton-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.rt-skeleton-chart {
  min-height: 260px;
}

.rt-skeleton-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rt-spinner {
  display: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  box-sizing: border-box;
  border: 2px solid rgba(100, 116, 139, 0.28);
  border-top-color: currentColor;
  border-radius: 999px !important;
  animation: rtSpin 0.7s linear infinite;
  flex: 0 0 auto;
  font-size: 0;
  line-height: 0;
  background: transparent;
  transform-origin: center center;
  vertical-align: middle;
}

.rt-btn.is-loading .rt-spinner,
button.is-loading .rt-spinner {
  display: inline-block;
}

.rt-btn.is-loading,
button.is-loading {
  cursor: wait;
}

@keyframes rtSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes rtSkeletonFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .rt-skeleton-grid,
  .rt-skeleton-grid[data-cols="2"],
  .rt-skeleton-grid[data-cols="3"],
  .rt-skeleton-grid[data-cols="4"] {
    grid-template-columns: 1fr;
  }

  .rt-skeleton-header,
  .rt-skeleton-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rt-skeleton-row {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-skeleton-page,
  .rt-skeleton-card::after,
  .rt-skeleton-line::after,
  .rt-skeleton-title::after,
  .rt-skeleton-button::after,
  .rt-skeleton-input::after,
  .rt-skeleton-cell::after,
  .rt-skeleton-avatar::after,
  .rt-skeleton-chart::after,
  .rt-spinner {
    animation: none !important;
  }
}

.rt-global-search {
  position: relative;
}

.rt-global-search_loader {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rt-muted);
  pointer-events: none;
}

.rt-global-search_loader[hidden] {
  display: none !important;
}

.rt-global-search_loader .rt-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
}

.rt-global-search_dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 120;
  border: 1px solid var(--rt-border);
  border-radius: 16px;
  background: #ffffffb2;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.rt-global-search_dropdown-body {
  max-height: min(72vh, 520px);
  overflow-y: auto;
}

.rt-global-search_group {
  padding: 10px 10px 0;
}

.rt-global-search_group + .rt-global-search_group {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.rt-global-search_group-title {
  padding: 6px 8px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rt-muted);
  list-style: none;
  background-image: none;
}

.rt-global-search_group-title::before,
.rt-global-search_group-title::after {
  content: none !important;
  display: none !important;
}

.rt-global-search_group-list {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
}

.rt-global-search_item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.rt-global-search_item:hover,
.rt-global-search_item.is-active {
  background: rgba(var(--rt-primary-rgb), 0.08);
}

.rt-global-search_item--page {
  border: 1px solid var(--rt-border);
  background: var(--rt-surface-solid);
}

.rt-global-search_icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--rt-primary-rgb), 0.08);
  color: var(--rt-primary);
}

.rt-global-search_icon .rt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  background: transparent !important;
  box-shadow: none !important;
}

.rt-global-search_icon .rt::before,
.rt-global-search_icon .rt::after {
  background: transparent !important;
  box-shadow: none !important;
}

.rt-global-search_copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rt-global-search_label {
  font-weight: 700;
  color: var(--rt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-global-search_meta {
  font-size: 0.84rem;
  color: var(--rt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-global-search_badge {
  margin-left: auto;
}

.rt-global-search_footer {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(var(--rt-primary-rgb), 0.03);
}

.rt-global-search_view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--rt-primary);
  text-decoration: none;
}

.rt-global-search_empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 22px 18px;
  text-align: center;
  color: var(--rt-muted);
}

.rt-global-search_empty i {
  font-size: 1.2rem;
}

.rt-global-search_empty p,
.rt-global-search_empty h3 {
  margin: 0;
}

.rt-global-search_empty--page {
  min-height: 280px;
  align-content: center;
}

.rt-search-page__header {
  align-items: center;
}

.rt-search-page__lead {
  margin: 6px 0 0;
  color: var(--rt-muted);
}

.rt-search-groups {
  display: grid;
  gap: 18px;
}

.rt-search-group {
  display: grid;
  gap: 12px;
}

.rt-search-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rt-search-group__title {
  margin: 0;
  font-size: 1rem;
}

.rt-search-group__list {
  display: grid;
  gap: 10px;
}

.rt-sbr_avatar {
  overflow: hidden;
}

.rt-sbr_avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .rt-global-search_dropdown {
    left: -8px;
    right: -8px;
  }

  .rt-global-search_item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .rt-global-search_badge {
    grid-column: 2;
    margin-left: 0;
  }
}

.rt-error-page {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.rt-error-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
}

.rt-error-hero__copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.rt-error-hero__copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
}

.rt-error-hero__copy p {
  max-width: 760px;
  margin: 0;
  color: var(--rt-muted);
}

.rt-error-hero__meta {
  min-width: 0;
  border: 1px solid var(--rt-border);
  background: var(--rt-surface-solid);
}

.rt-error-meta {
  display: grid;
  gap: 12px;
}

.rt-error-meta__row {
  display: grid;
  gap: 6px;
}

.rt-error-meta__row code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--rt-border);
  border-radius: 999px;
  background: rgba(var(--rt-primary-rgb), 0.08);
  color: var(--rt-text);
  overflow-wrap: anywhere;
}

.rt-error-grid {
  align-items: start;
}

@media (max-width: 980px) {
  .rt-error-hero__content {
    grid-template-columns: 1fr;
  }
}

.rt-text-primary {
  color: var(--rt-primary) !important;
}

.rt-text-secondary {
  color: var(--rt-accent) !important;
}

.rt-text-warning {
  color: var(--rt-warning) !important;
}

.rt-text-danger {
  color: var(--rt-danger) !important;
}

.rt-text-info {
  color: var(--rt-primary-2) !important;
}

.rt-text-purple {
  color: var(--rt-purple) !important;
}

.rt-border-primary {
  border-color: var(--rt-primary) !important;
}

.rt-border-secondary {
  border-color: var(--rt-accent) !important;
}

.rt-border-warning {
  border-color: var(--rt-warning) !important;
}

.rt-border-danger {
  border-color: var(--rt-danger) !important;
}

.rt-border-info {
  border-color: var(--rt-primary-2) !important;
}

.rt-border-purple {
  border-color: var(--rt-purple) !important;
}

.rt-text-success {
  color: var(--rt-success) !important;
}

.rt-text-primary-2 {
  color: var(--rt-primary-2) !important;
}

.rt-text-accent {
  color: var(--rt-accent) !important;
}

.rt-text-muted {
  color: var(--rt-muted) !important;
}

.rt-text-soft {
  color: var(--rt-text-soft, #6b7280) !important;
}

.rt-text-body {
  color: var(--rt-text) !important;
}

.rt-text-white {
  color: var(--rt-white) !important;
}

.rt-bg-primary {
  background-color: var(--rt-primary) !important;
}

.rt-bg-secondary {
  background-color: var(--rt-accent) !important;
}

.rt-bg-warning {
  background-color: var(--rt-warning) !important;
}

.rt-bg-danger {
  background-color: var(--rt-danger) !important;
}

.rt-bg-info {
  background-color: var(--rt-primary-2) !important;
}

.rt-bg-purple {
  background-color: var(--rt-purple) !important;
}

.rt-outline-primary {
  outline: 1px solid var(--rt-primary) !important;
}

.rt-outline-secondary {
  outline: 1px solid var(--rt-accent) !important;
}

.rt-outline-warning {
  outline: 1px solid var(--rt-warning) !important;
}

.rt-outline-danger {
  outline: 1px solid var(--rt-danger) !important;
}

.rt-outline-info {
  outline: 1px solid var(--rt-primary-2) !important;
}

.rt-outline-purple {
  outline: 1px solid var(--rt-purple) !important;
}

.rt-fill-primary {
  color: var(--rt-primary) !important;
  background-color: var(--rt-primary) !important;
}

.rt-fill-secondary {
  color: var(--rt-accent) !important;
  background-color: var(--rt-accent) !important;
}

.rt-fill-warning {
  color: var(--rt-warning) !important;
  background-color: var(--rt-warning) !important;
}

.rt-fill-danger {
  color: var(--rt-danger) !important;
  background-color: var(--rt-danger) !important;
}

.rt-fill-info {
  color: var(--rt-primary-2) !important;
  background-color: var(--rt-primary-2) !important;
}

.rt-fill-purple {
  color: var(--rt-purple) !important;
  background-color: var(--rt-purple) !important;
}

/* Legacy alert utility classes used by dashboard views. */
.rt-alert.rt-alert-warning,
.rt-alert.rt-alert--warning {
  border-color: rgba(var(--rt-warning-rgb), 0.45);
  background: rgba(var(--rt-warning-rgb), 0.14);
  color: var(--rt-text);
}

.rt-alert.rt-alert-warning strong,
.rt-alert.rt-alert--warning strong {
  color: var(--rt-text);
}

/* Admin component shape: flat is the default, rounded is user-selectable. */
html[data-shape="rounded"] body.rt-admin-body .card,
html[data-shape="rounded"] body.rt-admin-body .rt-card,
html[data-shape="rounded"] body.rt-admin-body .rt-stat,
html[data-shape="rounded"] body.rt-admin-body .rt-detail-card,
html[data-shape="rounded"] body.rt-admin-body input:not([type="checkbox"]):not([type="radio"]),
html[data-shape="rounded"] body.rt-admin-body textarea,
html[data-shape="rounded"] body.rt-admin-body select,
html[data-shape="rounded"] body.rt-admin-body .rt-input,
html[data-shape="rounded"] body.rt-admin-body .rt-field__input,
html[data-shape="rounded"] body.rt-admin-body .rt-form-input,
html[data-shape="rounded"] body.rt-admin-body .rt-form-select,
html[data-shape="rounded"] body.rt-admin-body .rt-form-textarea,
html[data-shape="rounded"] body.rt-admin-body .rt-select,
html[data-shape="rounded"] body.rt-admin-body .rt-select__toggle,
html[data-shape="rounded"] body.rt-admin-body button,
html[data-shape="rounded"] body.rt-admin-body .btn,
html[data-shape="rounded"] body.rt-admin-body .rt-btn,
html[data-shape="rounded"] body.rt-admin-body .rt-create-navtabs,
html[data-shape="rounded"] body.rt-admin-body .rt-create-navtabs__link:hover,
html[data-shape="rounded"] body.rt-admin-body .rt-create-navtabs__link.is-active,
html[data-shape="rounded"] body.rt-admin-body .rt-sbr_link:hover,
html[data-shape="rounded"] body.rt-admin-body .rt-sbr_link.turbo-link.is-active.active,
html[data-shape="rounded"] body.rt-admin-body .nav-dropdown-item:hover,
html[data-shape="rounded"] body.rt-admin-body .rt-quick_btn,
html[data-shape="rounded"] body.rt-admin-body .rt-quick_btn:hover,
html[data-shape="rounded"] body.rt-admin-body .rt-persuratan-landing-card,
html[data-shape="rounded"] body.rt-admin-body .rt-detail-item,
html[data-shape="rounded"] body.rt-admin-body .rt-change-item,
html[data-shape="rounded"] body.rt-admin-body .rt-change-compare__cell,
html[data-shape="rounded"] body.rt-admin-body .rt-change-item__status,
html[data-shape="rounded"] body.rt-admin-body .rt-field-chip,
html[data-shape="rounded"] body.rt-admin-body .rt-change-summary-inline__item,
html[data-shape="rounded"] body.rt-admin-body .rt-registration-step,
html[data-shape="rounded"] body.rt-admin-body .rt-update-step,
html[data-shape="rounded"] body.rt-admin-body .rt-update-section,
html[data-shape="rounded"] body.rt-admin-body .rt-update-file,
html[data-shape="rounded"] body.rt-admin-body .rt-registration-panel,
html[data-shape="rounded"] body.rt-admin-body .rt-registration-actions,
html[data-shape="rounded"] body.rt-admin-body .rt-initial-note,
html[data-shape="rounded"] body.rt-admin-body .rt-topbar_icon-tbl,
html[data-shape="rounded"] body.rt-admin-body .dropdown-menu,
html[data-shape="rounded"] body.rt-admin-body .dropdown-item:hover,
html[data-shape="rounded"] body.rt-admin-body .dropdown-item:focus,
html[data-shape="rounded"] body.rt-admin-body img,
html[data-shape="rounded"] body.rt-admin-body .rt-badge,
html[data-shape="rounded"] body.rt-admin-body .rt.rt-user,
html[data-shape="rounded"] body.rt-admin-body .rt.rt-users,
html[data-shape="rounded"] body.rt-admin-body .rt.rt-image,
html[data-shape="rounded"] body.rt-admin-body .rt-sbr_user,
html[data-shape="rounded"] body.rt-admin-body .rt-sbr_avatar,
html[data-shape="rounded"] body.rt-admin-body .rt-notary-dashboard-avatar,
html[data-shape="rounded"] body.rt-admin-body .rt-activity_icon,
html[data-shape="rounded"] body.rt-admin-body .rt-summary-meta__item,
html[data-shape="rounded"] body.rt-admin-body .rt-initial-readonly,
html[data-shape="rounded"] body.rt-admin-body .rt-report-display__meta-item,
html[data-shape="rounded"] body.rt-admin-body .rt-report-display__category,
html[data-shape="rounded"] body.rt-admin-body .rt-alert,
html[data-shape="rounded"] body.rt-admin-body .supporting-documents-list,
html[data-shape="rounded"] body.rt-admin-body .supporting-document-existing,
html[data-shape="rounded"] body.rt-admin-body .supporting-document-row,
html[data-shape="rounded"] body.rt-admin-body .proof-dropzone,
html[data-shape="rounded"] body.rt-admin-body .rt-photo-thumb,
html[data-shape="rounded"] body.rt-admin-body .rt-photo-thumb--empty {
  border-radius: 1rem !important;
}

/* Overlay modal remains square even when the admin shape is Rounded. */
html[data-shape="rounded"] body.rt-admin-body .modal,
html[data-shape="rounded"] body.rt-admin-body .modal-content,
html[data-shape="rounded"] body.rt-admin-body .modal-dialog,
html[data-shape="rounded"] body.rt-admin-body .modal img {
  border-radius: 0 !important;
}

/* The transparent blurred modal overlay must always cover the viewport squarely. */
body.rt-admin-body .modal,
body.rt-admin-body .modal-content,
body.rt-admin-body .modal-dialog {
  border-radius: 0 !important;
}

/* Wizard tabs: keep the middle steps straight and round only the outer ends. */
html[data-shape="rounded"] body.rt-admin-body .rt-registration-steps.rt-registration-steps--five {
  border-radius: 1rem !important;
  overflow: hidden;
}

html[data-shape="rounded"] body.rt-admin-body .rt-registration-steps.rt-registration-steps--five .rt-registration-step {
  border-radius: 0 !important;
}

html[data-shape="rounded"] body.rt-admin-body .rt-registration-steps.rt-registration-steps--five .rt-registration-step:first-child {
  border-radius: 1rem 0 0 1rem !important;
}

html[data-shape="rounded"] body.rt-admin-body .rt-registration-steps.rt-registration-steps--five .rt-registration-step:last-child {
  border-radius: 0 1rem 1rem 0 !important;
}

html[data-shape="rounded"] body.rt-admin-body .rt-brand_dot,
html[data-shape="rounded"] body.rt-admin-body .rt-sbr_toggle,
html[data-shape="rounded"] body.rt-admin-body .rt.rt-bulb,
html[data-shape="rounded"] body.rt-admin-body .rt-sbr_badge,
html[data-shape="rounded"] body.rt-admin-body .rt-topbar_dot.rt-topbar_dot--count {
  border-radius: 999px !important;
}

/* Shared detail/change components can also be rendered outside the admin body wrapper. */
html[data-shape="rounded"] .rt-detail-item,
html[data-shape="rounded"] .rt-change-item,
html[data-shape="rounded"] .rt-change-compare__cell,
html[data-shape="rounded"] .rt-change-item__status,
html[data-shape="rounded"] .rt-field-chip,
html[data-shape="rounded"] .rt-change-summary-inline__item {
  border-radius: 1rem !important;
}

html[data-shape="rounded"] body.rt-auth-body .rt-auth-card,
html[data-shape="rounded"] body.rt-auth-body .rt-login__card,
html[data-shape="rounded"] body.rt-auth-body .rt-field__input,
html[data-shape="rounded"] body.rt-auth-body input:not([type="checkbox"]):not([type="radio"]),
html[data-shape="rounded"] body.rt-auth-body select,
html[data-shape="rounded"] body.rt-auth-body textarea,
html[data-shape="rounded"] body.rt-auth-body button,
html[data-shape="rounded"] body.rt-auth-body .btn,
html[data-shape="rounded"] body.rt-auth-body .rt-btn,
html[data-shape="rounded"] body.rt-auth-body .rt-registration-step,
html[data-shape="rounded"] body.rt-auth-body .rt-registration-step.is-active,
html[data-shape="rounded"] body.rt-auth-body .rt-registration-note,
html[data-shape="rounded"] body.rt-auth-body .rt-registration-actions,
html[data-shape="rounded"] body.rt-auth-body .rt-registration-panel,
html[data-shape="rounded"] body.rt-auth-body .rt-registration-panel.rt-wizard-step.is-active {
  border-radius: 1rem !important;
}

html[data-shape="rounded"] body.rt-auth-body .rt-registration-steps.rt-registration-steps--five {
  border-radius: 1rem !important;
  overflow: hidden;
}

html[data-shape="rounded"] body.rt-auth-body .rt-registration-steps.rt-registration-steps--five .rt-registration-step {
  border-radius: 0 !important;
}

html[data-shape="rounded"] body.rt-auth-body .rt-registration-steps.rt-registration-steps--five .rt-registration-step:first-child {
  border-radius: 1rem 0 0 1rem !important;
}

html[data-shape="rounded"] body.rt-auth-body .rt-registration-steps.rt-registration-steps--five .rt-registration-step:last-child {
  border-radius: 0 1rem 1rem 0 !important;
}
[data-file-preview-body] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px;
  background: rgba(var(--rt-primary-rgb), 0.03);
}

.rt-file-preview-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.rt-file-preview-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 480px;
  border: 0;
  background: #fff;
}

/* Toast content stays compact while long descriptions wrap inside the toast. */
.rt-toast {
  align-items: flex-start;
}

.rt-toast__icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.rt-toast__content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rt-toast__title,
.rt-toast__text {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rt-toast__content {
  gap: 2px;
}

.rt-toast__title,
.rt-toast__text {
  margin-top: 0;
}

.rt-toast__title {
  line-height: 1.2;
}

.rt-toast__text {
  line-height: 1.35;
}
