html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

:root {
  --rd-brand-blue: #0054a4;
  --rd-brand-blue-700: #004487;
  --rd-brand-blue-soft: #eef5ff;
  --rd-brand-red: #e41b23;
  --rd-brand-red-700: #c2161d;
  --rd-brand-red-soft: #fff1f2;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin-bottom: 60px;
}

.rd-sidebar-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.rd-sidebar-cta-area ul {
  gap: 0 !important;
}

.rd-sidebar-cta-area li + li {
  margin-top: 0.75rem;
}

.rd-sidebar-cta {
  display: flex;
  min-height: 3.35rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 0.25rem 0.45rem rgba(50, 50, 93, 0.16), 0 0.12rem 0.25rem rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rd-sidebar-cta,
.rd-sidebar-cta:hover,
.rd-sidebar-cta:focus {
  text-decoration: none;
  color: #fff !important;
}

.rd-sidebar-cta i {
  color: #fff !important;
}

.rd-sidebar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.45rem 0.7rem rgba(50, 50, 93, 0.18), 0 0.18rem 0.35rem rgba(0, 0, 0, 0.1);
}

.rd-sidebar-cta-docs {
  background-color: #344767;
}

.rd-sidebar-cta-docs:hover,
.rd-sidebar-cta-docs:focus {
  background-color: #2d3d59;
}

.rd-sidebar-cta-pro {
  background-color: #5e72e4;
}

.rd-sidebar-cta-pro:hover,
.rd-sidebar-cta-pro:focus {
  background-color: #5265d8;
}

.rd-property-list-photo {
  width: 6rem;
  min-width: 6rem;
  height: 4.5rem;
}

.rd-property-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rd-property-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 20rem);
  align-items: stretch;
  gap: 1rem;
  padding: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: #475569;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.rd-property-list-media {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.rd-property-list-check {
  flex: 0 0 auto;
}

.rd-property-list-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}

.rd-property-list-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.rd-property-list-code {
  margin-bottom: 0.15rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rd-property-list-title {
  margin: 0;
  max-width: 100%;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rd-property-list-price {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.rd-property-list-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.rd-property-list-location span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-property-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.rd-property-pill,
.rd-property-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.65rem;
  border-radius: 9999px;
  padding: 0.32rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.rd-property-pill {
  text-transform: uppercase;
}

.rd-property-pill-internal {
  background: #ecfdf5;
  color: #047857;
}

.rd-property-pill-external {
  background: #fff7ed;
  color: #c2410c;
}

.rd-property-pill-status {
  background: #eef2ff;
  color: #3730a3;
}

.rd-property-meta-item {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.rd-property-meta-item strong {
  color: #334155;
}

.rd-property-list-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 0.6rem 0.85rem;
  min-width: 0;
  padding-left: 1rem;
  border-left: 1px solid #e2e8f0;
}

.rd-property-agent-block {
  min-width: 0;
}

.rd-property-agent-block span {
  display: block;
  margin-bottom: 0.15rem;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.rd-property-agent-block strong {
  display: block;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-property-list-action {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.rd-property-empty-state {
  display: flex;
  min-height: 9rem;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

.rd-list-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 1rem;
  font-weight: 900;
}

.rd-list-side-compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.rd-list-side-stack {
  grid-template-columns: minmax(0, 1fr);
}

.rd-list-description {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.rd-list-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.rd-list-inline-form select {
  min-height: 2rem;
  max-width: 12rem;
}

.rd-list-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.45rem 0.8rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.rd-lead-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rd-lead-list-item {
  display: grid;
  grid-template-columns: auto minmax(18rem, 1.4fr) minmax(13rem, 0.9fr) minmax(12rem, auto) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.rd-lead-list-select {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rd-lead-list-primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rd-lead-list-context {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  min-width: 0;
  padding-left: 1rem;
  border-left: 1px solid #e2e8f0;
}

.rd-lead-list-status {
  min-width: 0;
}

.rd-lead-list-status .rd-list-inline-form {
  justify-content: flex-start;
}

.rd-lead-list-actions {
  display: flex;
  justify-content: flex-end;
}

.rd-lead-list-actions .rd-action-chip {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .rd-lead-list-item {
    grid-template-columns: auto minmax(0, 1fr) minmax(13rem, 0.8fr) auto;
  }

  .rd-lead-list-status {
    grid-column: 2 / 4;
  }

  .rd-lead-list-actions {
    grid-column: 4;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 900px) {
  .rd-lead-list-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .rd-lead-list-context,
  .rd-lead-list-status,
  .rd-lead-list-actions {
    grid-column: 1 / -1;
  }

  .rd-lead-list-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 0;
    padding-top: 0.75rem;
    border-left: 0;
    border-top: 1px solid #e2e8f0;
  }

  .rd-lead-list-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .rd-lead-list-item {
    grid-template-columns: 1fr;
  }

  .rd-lead-list-context {
    grid-template-columns: 1fr;
  }

  .rd-lead-list-status .rd-list-inline-form,
  .rd-lead-list-actions,
  .rd-lead-list-actions .rd-action-chip {
    width: 100%;
  }

  .rd-lead-list-status .rd-form-control {
    max-width: none;
  }
}

.overflow-x-auto > table.items-center,
.overflow-x-auto > table:not(.items-center) {
  display: block;
  min-width: 0;
}

.overflow-x-auto > table.items-center > thead,
.overflow-x-auto > table:not(.items-center) > thead {
  display: none;
}

.overflow-x-auto > table.items-center > tbody,
.overflow-x-auto > table:not(.items-center) > tbody {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overflow-x-auto > table.items-center > tbody > tr,
.overflow-x-auto > table:not(.items-center) > tbody > tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.875rem;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.overflow-x-auto > table.items-center > tbody > tr > td,
.overflow-x-auto > table:not(.items-center) > tbody > tr > td {
  display: block;
  min-width: 0;
  padding: 0 !important;
  border: 0;
  color: #475569;
  line-height: 1.35;
}

.overflow-x-auto > table.items-center > tbody > tr > td:first-child,
.overflow-x-auto > table:not(.items-center) > tbody > tr > td:first-child {
  color: #0f172a;
  font-weight: 800;
}

.overflow-x-auto > table.items-center > tbody > tr > td:last-child,
.overflow-x-auto > table:not(.items-center) > tbody > tr > td:last-child {
  justify-self: end;
}

.overflow-x-auto > table.items-center > tbody > tr > td[colspan],
.overflow-x-auto > table:not(.items-center) > tbody > tr > td[colspan] {
  grid-column: 1 / -1;
  padding: 2rem 1rem !important;
  text-align: center;
}

@media (max-width: 640px) {
  .overflow-x-auto > table.items-center > tbody > tr,
  .overflow-x-auto > table:not(.items-center) > tbody > tr {
    grid-template-columns: 1fr;
  }

  .overflow-x-auto > table.items-center > tbody > tr > td:last-child,
  .overflow-x-auto > table:not(.items-center) > tbody > tr > td:last-child {
    justify-self: stretch;
  }
}

@media (max-width: 1024px) {
  .rd-property-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rd-property-list-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    padding-left: 0;
    padding-top: 0.75rem;
    border-left: 0;
    border-top: 1px solid #e2e8f0;
  }

  .rd-property-list-action {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .rd-property-list-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .rd-property-list-media {
    align-items: flex-start;
  }

  .rd-property-list-photo {
    width: 100%;
    height: auto;
    min-width: 0;
    aspect-ratio: 4 / 3;
  }

  .rd-property-list-title-row {
    flex-direction: column;
    gap: 0.4rem;
  }

  .rd-property-list-price {
    text-align: left;
    white-space: normal;
  }

  .rd-property-list-location span {
    white-space: normal;
  }

  .rd-property-list-side {
    grid-template-columns: 1fr;
  }

  .rd-property-agent-block strong {
    white-space: normal;
  }

  .rd-property-list-action .rd-action-chip {
    width: 100%;
  }
}

.bg-\[\#344767\] {
  background-color: #344767 !important;
}

.bg-\[\#5e72e4\] {
  background-color: #5e72e4 !important;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*
  Remax Doruk shared form theme
  Source style: Argon profile page form controls
*/
.rd-form-group {
  margin-bottom: 0.6rem;
}

.rd-form-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  margin-left: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #334155;
}

.rd-form-control,
.rd-form-select,
.rd-form-textarea {
  display: block;
  width: 100%;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  background-color: #fff;
  background-clip: padding-box;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rd-form-control::placeholder,
.rd-form-textarea::placeholder {
  color: #94a3b8;
}

.rd-form-control:focus,
.rd-form-select:focus,
.rd-form-textarea:focus {
  outline: none;
  border-color: #5e72e4;
  box-shadow: none;
}

.rd-form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rd-form-check-input {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  accent-color: #5e72e4;
}

.rd-form-check-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #344767;
}

.rd-validation {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #dc2626;
}

.rd-validation-summary {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #dc2626;
}

.rd-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
}

.rd-btn-primary,
.rd-btn-secondary,
.rd-btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.2s ease-in;
  cursor: pointer;
}

.rd-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rd-page-action-btn {
  min-height: 2.625rem;
  min-width: 8.5rem;
  gap: 0.5rem;
  white-space: nowrap;
}

.rd-btn-primary {
  background: #5e72e4;
  color: #fff;
}

.rd-btn-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #475569;
}

.rd-btn-secondary-active {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.rd-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  overflow-y: auto;
}

.rd-filter-dialog {
  margin: 0;
  width: min(46rem, 100%);
}

.rd-filter-card {
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-height: calc(100vh - 3rem);
}

.rd-filter-toast {
  min-width: 24rem;
  max-width: 46rem;
  padding: 0.5rem;
}

.rd-filter-toast .rd-filter-card {
  border-radius: 1.75rem;
}

.rd-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.rd-filter-summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rd-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.rd-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
}

.rd-filter-panel {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rd-filter-panel .rd-filter-chip {
  border-color: #dbeafe;
  background: #eef2ff;
}

.rd-filter-modal .rd-form-control {
  border-color: #cbd5e1;
}

.rd-filter-modal .rd-btn-secondary {
  min-width: 10rem;
}

.rd-filter-modal .rd-btn-primary {
  min-width: 10rem;
}

.rd-filter-modal .rd-form-control {
  min-height: 3rem;
}

.rd-confirm-modal,
.rd-form-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
}

.rd-confirm-card,
.rd-form-modal-card {
  width: min(34rem, 100%);
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.rd-confirm-card {
  padding: 1.5rem;
}

.rd-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.rd-form-modal-card {
  width: min(56rem, 100%);
  max-height: calc(100vh - 3rem);
  overflow: hidden;
}

.rd-form-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.rd-form-modal-body {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1.25rem;
}

.rd-form-modal-body > .flex,
.rd-form-modal-body .flex.flex-wrap.-mx-3 {
  margin: 0;
}

.rd-form-modal-body .w-full.max-w-full.px-3 {
  padding-left: 0;
  padding-right: 0;
}

.rd-form-modal-body .shadow-xl {
  box-shadow: none;
}

.rd-btn-primary:hover,
.rd-btn-secondary:hover,
.rd-btn-warning:hover {
  transform: translateY(-1px);
}

.rd-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
  border-radius: 0.65rem;
  letter-spacing: 0.04em;
}

.rd-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.rd-action-chip:hover {
  transform: translateY(-1px);
}

.rd-action-chip-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.rd-action-chip-secondary {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.rd-action-chip-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.rd-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.rd-kanban-column {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rd-kanban-column-over {
  border-color: #5e72e4;
  box-shadow: inset 0 0 0 1px rgba(94, 114, 228, 0.2);
  background-color: #eef2ff;
}

.rd-kanban-card {
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.rd-kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.9);
}

.rd-kanban-card[draggable="true"] {
  cursor: grab;
}

.rd-kanban-card-dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.rd-kanban-sla-low {
  border-color: #dbeafe;
  background-color: #f8fbff;
}

.rd-kanban-sla-medium {
  border-color: #fed7aa;
  background-color: #fffaf4;
}

.rd-kanban-sla-high {
  border-color: #fecaca;
  background-color: #fff5f5;
}

/* Tom Select theme alignment for rd-form-control */
.ts-wrapper .ts-control {
  min-height: 42px;
  border: 0;
  border-radius: 0.5rem;
  background: #f8fafc;
  box-shadow: none;
  padding: 0.5rem 0.75rem;
}

.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.focus .ts-control {
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(94, 114, 228, 0.35);
}

.ts-wrapper .ts-control input {
  font-size: 0.875rem;
  color: #374151;
}

.ts-wrapper .ts-dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.35);
  margin-top: 0.15rem;
}

.ts-wrapper .ts-dropdown .active {
  background: #eef2ff;
  color: #1e293b;
}

/* Global toast layout */
#rd-toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(28rem, 92vw);
  width: auto;
  pointer-events: none;
}

@media (max-width: 640px) {
  #rd-toast-stack {
    right: 0.75rem;
    left: 0.75rem;
  }
}

.rd-toast {
  pointer-events: auto;
  width: 100%;
  min-width: 18rem;
  max-width: 100%;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.rd-toast-success {
  border-color: #d1fae5;
  background-color: #ecfdf5;
}

.rd-toast-error {
  border-color: #fecaca;
  background-color: #fef2f2;
}

.rd-toast .text-sm {
  line-height: 1.35;
}

.rd-main-content {
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-x: hidden;
}

@media (min-width: 1200px) {
  .rd-main-content {
    margin-left: 17.5rem;
    width: calc(100% - 17.5rem);
    max-width: calc(100% - 17.5rem);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.rd-page-shell,
.rd-page-content {
  min-width: 0;
}

.rd-page-content {
  overflow-x: hidden;
}

.ts-wrapper.dropdown-active .ts-control {
  border-bottom-left-radius: 0.45rem;
  border-bottom-right-radius: 0.45rem;
}

/* Alert center action buttons */
.rd-alert-action-btn {
  display: inline-flex;
  width: 100%;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid #dbe3ef;
  background: #fff;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.rd-alert-action-btn-open {
  color: var(--rd-brand-blue);
}

.rd-alert-action-btn-open:hover {
  color: var(--rd-brand-blue-700);
  background: var(--rd-brand-blue-soft);
  border-color: #c5d9f6;
}

.rd-alert-action-btn-danger {
  color: var(--rd-brand-red);
  border-color: #f0d2d4;
}

.rd-alert-action-btn-danger:hover {
  color: var(--rd-brand-red-700);
  background: var(--rd-brand-red-soft);
  border-color: #f0b8bc;
}

.rd-alert-mini-btn {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.rd-alert-mini-btn-danger {
  color: var(--rd-brand-red);
}

.rd-alert-mini-btn-danger:hover {
  color: var(--rd-brand-red-700);
  background: var(--rd-brand-red-soft);
}

.rd-alert-mini-btn-open {
  color: var(--rd-brand-blue);
}

.rd-alert-mini-btn-open:hover {
  color: var(--rd-brand-blue-700);
  background: var(--rd-brand-blue-soft);
}
