@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-700.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rf-primary: #34A0B3;
  --rf-primary-dark: #27899a;
  --rf-primary-soft: rgba(52, 160, 179, 0.12);
  --rf-secondary: #46AE90;
  --rf-secondary-dark: #31886f;
  --rf-secondary-soft: rgba(70, 174, 144, 0.14);
  --rf-bg: #f4f7f6;
  --rf-surface: rgba(255, 255, 255, 0.92);
  --rf-surface-strong: #ffffff;
  --rf-surface-alt: #eef6f6;
  --rf-border: rgba(14, 39, 46, 0.09);
  --rf-border-strong: rgba(52, 160, 179, 0.18);
  --rf-text: #11252d;
  --rf-text-soft: #405761;
  --rf-heading: #08171c;
  --rf-success: #2f9467;
  --rf-danger: #b84b57;
  --rf-inline-error: #c62828;
  --rf-warning: #c9852f;
  --rf-info: #2d8ba1;
  --rf-shadow-sm: 0 12px 30px rgba(14, 39, 46, 0.08);
  --rf-shadow-md: 0 18px 48px rgba(16, 36, 43, 0.12);
  --rf-shadow-lg: 0 28px 68px rgba(16, 36, 43, 0.16);
  --rf-radius-xs: 0.85rem;
  --rf-radius-sm: 1rem;
  --rf-radius-md: 1.35rem;
  --rf-radius-lg: 1.75rem;
  --rf-navbar-height: 4.75rem;
  --rf-container: 1120px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(52, 160, 179, 0.11), transparent 28%),
    radial-gradient(circle at top right, rgba(70, 174, 144, 0.10), transparent 22%),
    linear-gradient(180deg, #f7faf9 0%, var(--rf-bg) 42%, #eef5f4 100%);
  color: var(--rf-text);
  font-family: 'Roboto', 'Noto Sans', 'Segoe UI', sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.rf-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(52, 160, 179, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 160, 179, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

body.rf-loading {
  cursor: progress;
}

body.rf-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(244, 247, 246, 0.52);
  backdrop-filter: blur(1px);
  z-index: 1090;
}

main,
footer,
nav {
  position: relative;
  z-index: 1;
}

a {
  color: var(--rf-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

a:hover,
a:focus {
  color: var(--rf-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

.bi {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--bi-icon) no-repeat center / contain;
  mask: var(--bi-icon) no-repeat center / contain;
}

.bi-person { --bi-icon: url('icons/person.svg'); }
.bi-key { --bi-icon: url('icons/key.svg'); }
.bi-whatsapp { --bi-icon: url('icons/whatsapp.svg'); }
.bi-pencil-square { --bi-icon: url('icons/pencil-square.svg'); }
.bi-copy { --bi-icon: url('icons/copy.svg'); }
.bi-clipboard-check { --bi-icon: url('icons/clipboard-check.svg'); }
.bi-search { --bi-icon: url('icons/search.svg'); }
.bi-info-circle { --bi-icon: url('icons/info-circle.svg'); }
.bi-trash3 { --bi-icon: url('icons/trash3.svg'); }
.bi-bell { --bi-icon: url('icons/bell.svg'); }
.bi-box-arrow-right { --bi-icon: url('icons/box-arrow-right.svg'); }
.bi-box-arrow-up-right { --bi-icon: url('icons/box-arrow-up-right.svg'); }
.bi-telephone { --bi-icon: url('icons/telephone.svg'); }
.bi-plus-lg { --bi-icon: url('icons/plus-lg.svg'); }
.bi-cloud-arrow-down { --bi-icon: url('icons/cloud-arrow-down.svg'); }
.bi-envelope { --bi-icon: url('icons/envelope.svg'); }
.bi-eye { --bi-icon: url('icons/eye.svg'); }
.bi-eye-slash { --bi-icon: url('icons/eye-slash.svg'); }
.bi-arrow-90deg-down { --bi-icon: url('icons/arrow-90deg-down.svg'); }
.bi-chat { --bi-icon: url('icons/chat.svg'); }
.bi-chevron-down { --bi-icon: url('icons/chevron-down.svg'); }

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.navbar-brand {
  color: var(--rf-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1,
.h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h2,
.h2 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

h3,
.h3 {
  font-size: clamp(1.2rem, 2.25vw, 1.75rem);
}

p,
li,
div,
span,
label,
input,
textarea,
select,
button,
.table,
.alert {
  font-size: 0.96rem;
}

small,
.small,
.form-text,
.text-muted {
  color: var(--rf-text-soft) !important;
}

.container,
.container-fluid {
  position: relative;
}

.rf-main {
  flex: 1 0 auto;
  min-height: calc(100vh - var(--rf-navbar-height));
  padding: 1.25rem 0 3rem;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.rf-notification-stack {
  position: fixed;
  top: calc(var(--rf-navbar-height) + 0.85rem);
  left: 50%;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(calc(100vw - 1.5rem), 42rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.rf-notification {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 37, 45, 0.08);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--rf-shadow-md);
  color: var(--rf-text);
  transition: opacity 0.26s ease, transform 0.26s ease;
  pointer-events: auto;
}

.rf-notification.is-hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.rf-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
}

.rf-notification-icon::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  background-color: currentColor;
  -webkit-mask: url('icons/info-circle.svg') no-repeat center / contain;
  mask: url('icons/info-circle.svg') no-repeat center / contain;
}

.rf-notification-content {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.5;
}

.rf-notification-content > :last-child {
  margin-bottom: 0;
}

.rf-notification-content .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rf-notification-content .errorlist li + li {
  margin-top: 0.2rem;
}

.rf-notification--success {
  border-color: rgba(47, 148, 103, 0.18);
}

.rf-notification--success .rf-notification-icon {
  background: rgba(47, 148, 103, 0.14);
  color: var(--rf-success);
}

.rf-notification--success .rf-notification-content {
  color: #215943;
}

.rf-notification--danger,
.rf-notification--error {
  border-color: rgba(184, 75, 87, 0.2);
}

.rf-notification--danger .rf-notification-icon,
.rf-notification--error .rf-notification-icon {
  background: rgba(184, 75, 87, 0.14);
  color: var(--rf-danger);
}

.rf-notification--danger .rf-notification-content,
.rf-notification--error .rf-notification-content {
  color: #7b2630;
}

.rf-notification--warning {
  border-color: rgba(201, 133, 47, 0.2);
}

.rf-notification--warning .rf-notification-icon {
  background: rgba(201, 133, 47, 0.14);
  color: var(--rf-warning);
}

.rf-notification--warning .rf-notification-content {
  color: #81521d;
}

.rf-notification--info {
  border-color: rgba(45, 139, 161, 0.18);
}

.rf-notification--info .rf-notification-icon {
  background: rgba(45, 139, 161, 0.12);
  color: var(--rf-info);
}

.rf-notification--info .rf-notification-content {
  color: #17566a;
}

.rf-page-shell {
  max-width: var(--rf-container);
}

.rf-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.rf-page-header-meta {
  color: var(--rf-text-soft);
  font-size: 0.92rem;
}

.rf-page-lead {
  max-width: 46rem;
  color: var(--rf-text-soft);
  margin-top: 0.45rem;
}

.rf-toolbar,
.rf-toolbar-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rf-surface,
.rf-panel,
.rf-hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  box-shadow: var(--rf-shadow-sm);
}

.rf-panel,
.rf-hero-panel {
  padding: 1.25rem;
}

.rf-hero-panel {
  padding: 1.35rem;
  box-shadow: var(--rf-shadow-md);
}

.rf-muted-card {
  background: linear-gradient(180deg, rgba(238, 246, 246, 0.9), rgba(255, 255, 255, 0.95));
}

.rf-grid,
.rf-card-grid,
.rf-feature-grid {
  display: grid;
  gap: 1rem;
}

.rf-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rf-stack > * + * {
  margin-top: 0.9rem;
}

.rf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--rf-primary-soft);
  color: var(--rf-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-inline-note {
  display: block;
  margin-top: 0.6rem;
  color: var(--rf-text-soft);
  font-size: 0.86rem;
}

.rf-kicker {
  color: var(--rf-primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-avatar {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.4rem;
  object-fit: cover;
  border: 1px solid rgba(52, 160, 179, 0.22);
  box-shadow: var(--rf-shadow-sm);
  background: #fff;
}

.rf-navbar {
  position: sticky;
  top: 0;
  z-index: 1045;
  background: linear-gradient(135deg, rgba(52, 160, 179, 0.98), rgba(70, 174, 144, 0.98)) !important;
  box-shadow: 0 12px 36px rgba(22, 70, 80, 0.18);
  min-height: var(--rf-navbar-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.rf-navbar .container {
  gap: 0.75rem;
}

.rf-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: calc(100% - 4rem);
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.25;
}

.rf-navbar .navbar-toggler {
  padding: 0.55rem 0.7rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.14);
}

.rf-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.22);
}

.rf-navbar .navbar-collapse {
  margin-top: 0.6rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.75rem;
}

.rf-navbar .navbar-nav {
  gap: 0.5rem;
}

.rf-navbar .nav-link,
.rf-navbar .navbar-text {
  color: rgba(255, 255, 255, 0.99);
  text-shadow: 0 1px 1px rgba(8, 23, 28, 0.08);
}

.rf-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rf-navbar .nav-link:hover,
.rf-navbar .nav-link:focus {
  background: rgba(70, 174, 144, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.rf-navbar-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  line-height: 1.35;
  text-align: left;
}

.rf-navbar-meta-line {
  display: block;
}

.rf-navbar-meta strong {
  font-weight: 700;
}

.rf-flow-nav-shell {
  margin-bottom: 1.25rem;
}

.rf-flow-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  max-width: 100%;
  overflow: visible;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--rf-shadow-sm);
  scrollbar-width: none;
}

.rf-flow-nav::-webkit-scrollbar {
  display: none;
}

.rf-flow-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--rf-primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rf-flow-nav-link .bi {
  width: 0.85rem;
  height: 0.85rem;
}

.rf-flow-nav-link + .rf-flow-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  width: 1px;
  height: 56%;
  background: rgba(17, 37, 45, 0.12);
}

.rf-flow-nav-link:hover,
.rf-flow-nav-link:focus {
  color: var(--rf-secondary-dark);
  background: rgba(70, 174, 144, 0.1);
}

.rf-flow-nav-link.is-active {
  background: linear-gradient(135deg, rgba(52, 160, 179, 0.14), rgba(70, 174, 144, 0.16));
  color: var(--rf-heading);
}

.card,
.list-group,
.table-responsive,
.accordion-item,
.modal-content {
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-md);
  box-shadow: var(--rf-shadow-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.93));
  overflow: hidden;
}

.card.border-0 {
  border: 1px solid var(--rf-border) !important;
}

.card-header,
.card-footer {
  background: rgba(238, 246, 246, 0.7);
  border-color: var(--rf-border);
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.table-responsive {
  background: transparent;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(52, 160, 179, 0.045);
  --bs-table-hover-bg: rgba(70, 174, 144, 0.08);
  margin-bottom: 0;
  color: var(--rf-text);
  vertical-align: middle;
}

.table > :not(caption) > * > * {
  padding: 0.95rem 1rem;
  border-bottom-color: rgba(52, 160, 179, 0.1);
  white-space: normal;
  word-break: break-word;
}

.table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rf-text-soft);
  background: rgba(238, 246, 246, 0.82);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.form-label,
label {
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--rf-heading);
}

.form-control,
.form-select,
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='password'],
textarea,
select {
  min-height: 3rem;
  border-radius: 1rem;
  border: 1px solid rgba(52, 160, 179, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
  color: var(--rf-text);
  padding: 0.75rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea {
  min-height: 8rem;
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
  color: rgba(86, 112, 123, 0.72);
}

.form-control:focus,
.form-select:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='number']:focus,
input[type='date']:focus,
input[type='password']:focus,
textarea:focus,
select:focus {
  border-color: rgba(52, 160, 179, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 0.28rem rgba(52, 160, 179, 0.14);
}

input[type='file'] {
  padding: 0.75rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(52, 160, 179, 0.11);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  accent-color: var(--rf-primary);
  flex: 0 0 auto;
}

.form-check-label {
  flex: 1 1 auto;
  margin-bottom: 0;
  font-weight: 500;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 160, 179, 0.16);
}

.rf-input-icon-group {
  position: relative;
}

.rf-input-icon-group .rf-input-icon-addon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--rf-text-soft);
  transform: translateY(-50%);
  pointer-events: none;
}

.rf-input-icon-group .form-control {
  padding-left: 3.55rem;
}

.rf-input-icon-group .form-select {
  padding-left: 3.55rem;
}

.input-group {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--rf-shadow-sm);
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > .btn {
  border-radius: 0;
}

.input-group > .rf-input-icon-addon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.9rem;
  padding: 0 0.8rem;
  border: 0;
  border-right: 1px solid var(--rf-border);
  background: rgba(244, 247, 246, 0.98);
  color: var(--rf-text-soft);
}

.input-group > .btn,
.rf-copy-group .btn,
button[data-copy-target],
button[data-copy-value] {
  border-width: 0 !important;
  border-color: transparent !important;
}

.rf-password-input-group {
  align-items: stretch;
}

.rf-password-input-group > .rf-input-icon-addon,
.rf-password-toggle {
  flex: 0 0 auto;
}

.rf-password-input-group > .rf-input-icon-addon .bi,
.rf-password-toggle .bi {
  font-size: 0.95rem;
}

.rf-password-input-group > .form-control {
  min-width: 0;
}

.rf-password-toggle {
  min-width: 3rem;
  padding-inline: 0.85rem;
  background: rgba(244, 247, 246, 0.98);
  color: var(--rf-text-soft);
}

.rf-password-toggle:hover,
.rf-password-toggle:focus {
  background: rgba(52, 160, 179, 0.08);
  color: var(--rf-primary-dark);
}

select:not([multiple]):not([size]),
select:not([multiple])[size="1"],
.form-select:not([multiple]):not([size]),
.form-select:not([multiple])[size="1"] {
  padding-right: 3.1rem;
  background-image: url('icons/chevron-down.svg') !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1rem 1rem !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.rf-inline-link-spaced {
  display: inline-block;
  margin: 0 0.15rem;
  white-space: nowrap;
}

.rf-fieldrep-outcome-table tbody > tr > .rf-fieldrep-outcome-label,
.rf-fieldrep-outcome-table tbody > tr > .rf-fieldrep-outcome-value {
  padding: 1.1rem 1rem !important;
}

@media (min-width: 768px) {
  .rf-fieldrep-outcome-table tbody > tr > .rf-fieldrep-outcome-label,
  .rf-fieldrep-outcome-table tbody > tr > .rf-fieldrep-outcome-value {
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
  }
}

.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 0.75rem;
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.95rem;
  border-width: 1px;
  box-shadow: 0 10px 22px rgba(16, 36, 43, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn .bi {
  width: 0.95rem;
  height: 0.95rem;
}

.rf-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.rf-status-indicator::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.22rem rgba(17, 37, 45, 0.08);
}

.rf-status-indicator.is-active {
  color: var(--rf-success);
}

.rf-status-indicator.is-inactive {
  color: var(--rf-danger);
}

.rf-btn-label {
  display: inline-block;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 36, 43, 0.11);
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.24rem rgba(52, 160, 179, 0.18);
}

.btn-primary,
.bg-primary {
  --bs-btn-bg: var(--rf-primary);
  --bs-btn-border-color: var(--rf-primary);
  --bs-btn-hover-bg: var(--rf-primary-dark);
  --bs-btn-hover-border-color: var(--rf-primary-dark);
  --bs-btn-active-bg: var(--rf-primary-dark);
  --bs-btn-active-border-color: var(--rf-primary-dark);
  --bs-btn-disabled-bg: var(--rf-primary);
  --bs-btn-disabled-border-color: var(--rf-primary);
  background: linear-gradient(135deg, var(--rf-primary), var(--rf-secondary));
  border-color: transparent;
}

.btn-success {
  --bs-btn-bg: var(--rf-secondary);
  --bs-btn-border-color: var(--rf-secondary);
  --bs-btn-hover-bg: var(--rf-secondary-dark);
  --bs-btn-hover-border-color: var(--rf-secondary-dark);
  background: linear-gradient(135deg, var(--rf-secondary), #58ba9c);
  border-color: transparent;
}

.btn-outline-primary {
  --bs-btn-color: var(--rf-primary-dark);
  --bs-btn-border-color: rgba(52, 160, 179, 0.22);
  --bs-btn-hover-bg: var(--rf-secondary);
  --bs-btn-hover-border-color: var(--rf-secondary);
  --bs-btn-hover-color: #fff;
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-secondary {
  --bs-btn-color: var(--rf-text);
  --bs-btn-border-color: rgba(24, 49, 58, 0.14);
  --bs-btn-hover-bg: var(--rf-secondary);
  --bs-btn-hover-border-color: var(--rf-secondary);
  --bs-btn-hover-color: #fff;
  background: rgba(255, 255, 255, 0.72);
}

.btn-warning {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--rf-warning);
  --bs-btn-border-color: var(--rf-warning);
  --bs-btn-hover-bg: #b67528;
  --bs-btn-hover-border-color: #b67528;
}

.btn-danger {
  --bs-btn-bg: var(--rf-danger);
  --bs-btn-border-color: var(--rf-danger);
  --bs-btn-hover-bg: #a63f4b;
  --bs-btn-hover-border-color: #a63f4b;
}

.btn-link {
  box-shadow: none;
  min-height: auto;
  padding: 0;
}

.btn-sm {
  --bs-btn-padding-y: 0.55rem;
  --bs-btn-padding-x: 0.9rem;
  min-height: 2.45rem;
}

.btn-lg {
  --bs-btn-padding-y: 0.9rem;
  --bs-btn-padding-x: 1.25rem;
  min-height: 3.3rem;
}

.alert {
  border: 1px solid transparent;
  border-radius: 1.15rem;
  padding: 0.95rem 1.1rem;
  box-shadow: var(--rf-shadow-sm);
}

.alert-info {
  background: rgba(45, 139, 161, 0.1);
  border-color: rgba(45, 139, 161, 0.16);
  color: #17566a;
}

.alert-success {
  background: rgba(70, 174, 144, 0.12);
  border-color: rgba(70, 174, 144, 0.18);
  color: #205e4d;
}

.alert-warning {
  background: rgba(201, 133, 47, 0.12);
  border-color: rgba(201, 133, 47, 0.18);
  color: #81521d;
}

.alert-danger {
  background: rgba(184, 75, 87, 0.10);
  border-color: rgba(184, 75, 87, 0.16);
  color: #7b2630;
}

.pagination {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-link {
  border: 1px solid rgba(52, 160, 179, 0.16);
  border-radius: 999px !important;
  min-width: 2.7rem;
  text-align: center;
  color: var(--rf-primary-dark);
  box-shadow: var(--rf-shadow-sm);
}

.page-item.active .page-link,
.page-link:hover {
  background: var(--rf-secondary-soft);
  border-color: rgba(70, 174, 144, 0.34);
  color: var(--rf-secondary-dark);
}

.rf-login-card,
.rf-panel-card {
  max-width: 46rem;
}

.rf-action-grid {
  display: grid;
  gap: 0.9rem;
}

.rf-action-grid .btn {
  width: 100%;
}

.rf-clinic-header,
.rf-doctor-header,
.rf-result-header,
.rf-flex-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rf-clinic-summary {
  display: grid;
  gap: 0.75rem;
}

.rf-clinic-summary address {
  margin-bottom: 0;
  white-space: pre-line;
}

.rf-summary-card {
  max-width: 48rem;
  margin-inline: auto;
}

.rf-form-panel {
  max-width: 58rem;
  margin-inline: auto;
}

.rf-form-choice-list {
  display: grid;
  gap: 0.55rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.85rem;
  border: 1px solid rgba(52, 160, 179, 0.18);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rf-form-choice-list::-webkit-scrollbar {
  width: 0.6rem;
}

.rf-form-choice-list::-webkit-scrollbar-thumb {
  background: rgba(52, 160, 179, 0.32);
  border-radius: 999px;
}

.rf-form-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0;
  padding: 0.9rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rf-form-choice:hover {
  background: rgba(52, 160, 179, 0.08);
}

.rf-form-choice.is-selected {
  border-color: rgba(52, 160, 179, 0.3);
  background: rgba(52, 160, 179, 0.1);
  box-shadow: inset 0 0 0 1px rgba(52, 160, 179, 0.08);
}

.rf-form-choice-input {
  margin-top: 0.22rem;
  flex: 0 0 auto;
  accent-color: var(--rf-primary);
  transform: scale(1.08);
}

.rf-form-choice-text {
  display: block;
  color: var(--rf-heading);
  font-weight: 500;
  line-height: 1.45;
}

.rf-form {
  display: grid;
  gap: 0.15rem;
}

.rf-form input[type='text'],
.rf-form input[type='email'],
.rf-form input[type='tel'],
.rf-form input[type='number'],
.rf-form input[type='date'],
.rf-form input[type='password'],
.rf-form textarea,
.rf-form select {
  width: 100%;
}

.rf-form .text-danger ul,
.alert ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.text-danger,
.text-danger *,
.invalid-feedback {
  color: var(--rf-inline-error) !important;
}

.rf-hidden-conditional {
  display: none;
}

.rf-extra {
  display: none;
  width: min(100%, 20rem);
  margin: 0.55rem 0 0 1.85rem;
}

.rf-extra-inline {
  max-width: 15.625rem;
}

.rf-result-flag {
  background: linear-gradient(135deg, var(--rf-flag-color, var(--rf-primary)), color-mix(in srgb, var(--rf-flag-color, var(--rf-primary)) 78%, #0f1720 22%));
  color: #fff;
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--rf-shadow-sm);
}

.rf-result-flag strong,
.rf-result-flag .fw-semibold {
  color: inherit;
}

.rf-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rf-redflag-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.rf-redflag-item {
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(201, 133, 47, 0.16);
  background: rgba(255, 250, 242, 0.95);
}

.rf-badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--rf-primary-soft);
  color: var(--rf-primary-dark);
}

.rf-chart-grid,
.rf-info-grid {
  display: grid;
  gap: 1rem;
}

.rf-chart-card {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--rf-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rf-shadow-sm);
}

.rf-chart-card img {
  display: block;
  border-radius: 1rem;
  box-shadow: var(--rf-shadow-sm);
}

.rf-empty-state {
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(52, 160, 179, 0.22);
  background: rgba(238, 246, 246, 0.84);
  color: var(--rf-text-soft);
}

.rf-video-frame,
.video-wrap,
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--rf-shadow-md);
  background: #0b1720;
}

.rf-video-frame {
  padding-bottom: 56.25%;
  height: 0;
}

.rf-video-frame iframe,
.video-wrap iframe,
.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

pre {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
}

iframe {
  border-radius: 1rem;
}

.rf-embed-frame {
  width: 100%;
  min-height: 80vh;
  border: 1px solid var(--rf-border);
  background: #fff;
  box-shadow: var(--rf-shadow-sm);
}

.rf-app-footer {
  margin-top: 2rem;
  padding: 1rem 0 1.5rem;
}

.rf-app-footer-inner {
  max-width: var(--rf-container);
  margin: 0 auto;
  padding: 0 1rem;
}

.rf-footer-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(52, 160, 179, 0.12);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--rf-shadow-sm);
  color: var(--rf-text-soft);
}

.rf-footer-brand {
  font-weight: 700;
  color: var(--rf-heading);
}

.rf-copy-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rf-copy-group .btn {
  min-width: 6rem;
}

.rf-copy-note {
  margin-bottom: 1rem;
  color: var(--rf-text-soft);
}

.rf-auth-shell {
  align-items: stretch;
}

.rf-auth-panel,
.rf-auth-card {
  height: 100%;
}

.rf-auth-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(70, 174, 144, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
}

.rf-auth-copy {
  display: grid;
  gap: 0.45rem;
  padding-right: 0.15rem;
}

.rf-auth-copy-title {
  margin: 0;
  line-height: 1.3;
  text-align: left;
}

.rf-auth-copy-text {
  line-height: 1.65;
  text-align: left;
}

.rf-auth-card .card-body {
  padding: 1.5rem;
}

.rf-auth-card .form-text {
  margin-top: 0.55rem;
}

.rf-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rf-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rf-auth-points {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rf-auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--rf-text-soft);
}

.rf-auth-points .bi {
  margin-top: 0.2rem;
  color: var(--rf-secondary-dark);
}

.rf-terms-gate-card .card-body {
  display: grid;
  gap: 1rem;
}

.rf-terms-gate-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  text-align: left;
}

.rf-terms-gate-details {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  padding-left: 0.15rem;
  text-align: left;
}

.rf-terms-gate-avatar {
  flex: 0 0 auto;
  width: 5.25rem;
  height: 5.25rem;
}

.rf-terms-gate-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--rf-heading);
}

.rf-terms-gate-clinic {
  color: var(--rf-text-soft);
  font-weight: 600;
}

.rf-terms-gate-copy {
  text-align: center;
  color: var(--rf-text-soft);
}

.rf-terms-gate-help {
  text-align: center;
}

.rf-terms-gate-continue {
  min-height: 2.65rem;
}

.rf-clinic-staff-card {
  overflow: visible;
}

.rf-clinic-staff-grid {
  display: grid;
  gap: 0.9rem;
}

.rf-staff-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 37, 45, 0.08);
  border-radius: 1rem;
  background: rgba(255,255,255,0.78);
}

.rf-staff-item-name {
  font-weight: 600;
  color: var(--rf-heading);
}

.rf-staff-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rf-staff-remove {
  padding: 0;
  min-height: auto;
  border: 0 !important;
  box-shadow: none;
  color: var(--rf-danger);
}

.rf-staff-remove:hover,
.rf-staff-remove:focus {
  box-shadow: none;
  color: #922f3a;
}

.rf-clinic-portal-actions {
  justify-content: flex-end;
}

.rf-clinic-portal-quick-action {
  min-height: 2.3rem;
  padding: 0.5rem 0.9rem;
}

.rf-clinic-portal-cta {
  min-height: 2.9rem;
}

.rf-special-instruction-card .card-body {
  overflow: visible;
}

.rf-special-instruction-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.rf-special-instruction-alert {
  margin-bottom: 1rem;
}

.rf-special-instruction-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.rf-special-instruction-summary-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 37, 45, 0.08);
  border-radius: 1rem;
  background: rgba(255,255,255,0.78);
}

.rf-special-instruction-actions,
.rf-special-instruction-footer,
.rf-special-instruction-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.rf-special-instruction-footer {
  justify-content: space-between;
}

.rf-special-instruction-check {
  margin-bottom: 0;
}

.rf-special-instruction-preview-frame {
  min-height: min(72vh, 50rem);
}

.rf-banner-masonry {
  display: grid;
  gap: 1rem;
}

.rf-banner-tile {
  break-inside: avoid;
}

.rf-banner-tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rf-dashboard-card-grid {
  display: grid;
  gap: 1rem;
}

.rf-dashboard-card {
  display: grid;
  gap: 0.9rem;
  height: 100%;
}

.rf-dashboard-card-title {
  margin: 0;
}

.rf-copy-target {
  max-width: 100%;
}

.btn.is-copied {
  background: var(--rf-secondary) !important;
  border-color: var(--rf-secondary) !important;
  color: #fff !important;
}

.rf-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1100;
}

.rf-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.rf-loader-card {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(52, 160, 179, 0.18);
  box-shadow: var(--rf-shadow-lg);
  color: var(--rf-heading);
  font-weight: 600;
}

.rf-loader-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 3px solid rgba(52, 160, 179, 0.16);
  border-top-color: var(--rf-primary);
  border-radius: 50%;
  animation: rf-spin 0.8s linear infinite;
}

.rf-fieldrep-outcome-card {
  border-radius: 1.35rem;
}

.rf-fieldrep-outcome-meta {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(52, 160, 179, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.rf-fieldrep-outcome-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.rf-fieldrep-outcome-meta-label {
  min-width: 0;
  color: var(--rf-text-soft);
  font-weight: 700;
  text-align: left;
}

.rf-fieldrep-outcome-meta-value {
  min-width: 0;
  color: var(--rf-heading);
  font-weight: 700;
  text-align: right;
}

.rf-fieldrep-outcome-table .table {
  table-layout: fixed;
  width: 100%;
}

.rf-fieldrep-outcome-table .table th,
.rf-fieldrep-outcome-table .table td {
  padding: 0.8rem 0;
  border-bottom-color: rgba(52, 160, 179, 0.12);
  vertical-align: middle;
}

.rf-fieldrep-outcome-table .table th {
  width: 74%;
  color: var(--rf-heading);
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  padding-right: 1rem;
}

.rf-fieldrep-outcome-table .table td {
  width: 26%;
  text-align: right;
  font-weight: 700;
  color: var(--rf-heading);
  white-space: nowrap;
  padding-left: 1rem;
  font-variant-numeric: tabular-nums;
}

.rf-fieldrep-outcome-label {
  text-align: left;
}

.rf-fieldrep-outcome-value {
  text-align: right;
}

.rf-fieldrep-outcome-table .table tbody tr:last-child th,
.rf-fieldrep-outcome-table .table tbody tr:last-child td {
  border-bottom: 0;
}

.rf-fieldrep-outcome-break {
  display: none;
}

.rf-fieldrep-header-actions {
  width: 100%;
}

.rf-fieldrep-header-actions .btn {
  justify-content: center;
}

.rf-fieldrep-action-card {
  min-height: 100%;
}

.rf-fieldrep-menu #rfClinicAssetsCard {
  scroll-margin-top: calc(var(--rf-navbar-height) + 1rem);
}

.rf-fieldrep-doctor-list {
  display: grid;
  gap: 0.85rem;
}

.rf-fieldrep-doctor-list-head,
.rf-fieldrep-doctor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.rf-fieldrep-doctor-list-head {
  padding: 0 0.1rem;
  color: var(--rf-text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-fieldrep-doctor-list-head span:last-child {
  text-align: right;
}

.rf-fieldrep-doctor-row {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(52, 160, 179, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--rf-shadow-sm);
}

.rf-fieldrep-doctor-name {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.rf-fieldrep-doctor-name--new {
  position: relative;
  padding-top: 1rem;
}

.rf-fieldrep-new-badge {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  background: rgba(52, 160, 179, 0.14);
  color: #1c6f7c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.rf-fieldrep-doctor-name-label {
  display: none;
  color: var(--rf-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-fieldrep-clinic-assets-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 10.5rem;
  text-align: center;
}

.rf-fieldrep-assets-card .table td,
.rf-fieldrep-assets-card .table th {
  vertical-align: middle;
}

.rf-fieldrep-assets-qr-cell {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.rf-fieldrep-assets-card .table td[data-label="Email Welcome Kit"] .btn {
  min-width: 6.75rem;
}

.rf-fieldrep-assets-qr-preview {
  width: 9rem;
  max-width: 100%;
  padding: 0.45rem;
  border: 1px solid rgba(52, 160, 179, 0.14);
  border-radius: 1rem;
  background: #ffffff;
}

.rf-fieldrep-success-card {
  overflow: hidden;
}

.rf-fieldrep-success-message {
  max-width: 32rem;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--rf-heading);
}

.rf-fieldrep-success-icon {
  display: grid;
  place-items: center;
  margin: 2rem auto 1.75rem;
  color: var(--rf-primary);
  line-height: 1;
}

.rf-fieldrep-success-icon .bi {
  font-size: clamp(5rem, 13vw, 6.8rem);
}

.rf-fieldrep-success-countdown {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(52, 160, 179, 0.12);
}

.rf-clinic-patient-link-card .input-group {
  width: 100%;
}

.rf-clinic-patient-link-card .input-group > .btn {
  min-width: 7.25rem;
}

@keyframes rf-spin {
  to {
    transform: rotate(360deg);
  }
}

.navbar .dropdown-menu,
.dropdown-menu {
  border-radius: 1rem;
  border-color: var(--rf-border);
  box-shadow: var(--rf-shadow-md);
}

.list-group-item {
  border-color: rgba(52, 160, 179, 0.1);
  background: transparent;
}

hr {
  opacity: 1;
  border-color: rgba(52, 160, 179, 0.1);
}

code,
.text-monospace,
.font-monospace {
  color: #12414c;
}

.text-monospace,
.font-monospace,
.table td[style*='monospace'] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 991.98px) {
  .rf-flow-nav-shell {
    display: flex;
    justify-content: center;
  }

  .rf-flow-nav {
    justify-content: center;
    margin-inline: auto;
  }

  .rf-clinic-portal-shell .rf-page-header {
    gap: 0.65rem;
    margin-bottom: 1.2rem;
  }

  .rf-clinic-portal-shell .card-body,
  .rf-clinic-portal-shell .rf-panel,
  .rf-clinic-portal-shell .rf-hero-panel {
    padding: 1rem;
  }

  .rf-clinic-portal-shell .card-title {
    line-height: 1.35;
  }

  .rf-clinic-portal-shell .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
  }

  .rf-clinic-portal-shell .form-control,
  .rf-clinic-portal-shell .form-select {
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
  }

  .rf-clinic-portal-shell .rf-clinic-portal-cta,
  .rf-clinic-portal-shell .btn.btn-sm,
  .rf-clinic-portal-shell .rf-staff-remove {
    min-height: 2.4rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }

  .rf-clinic-portal-shell .rf-clinic-portal-cta span {
    display: inline !important;
  }

  .rf-clinic-portal-shell .rf-clinic-portal-cta span + span {
    margin-left: 0.35rem;
    font-size: 0.78rem !important;
  }

  .rf-clinic-portal-shell .rf-staff-item {
    padding: 0.85rem 0.9rem;
  }

  .rf-terms-gate-card .card-body {
    padding: 1rem;
  }

  .rf-terms-gate-name {
    font-size: 1rem;
  }

  .rf-terms-gate-continue {
    min-height: 2.45rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 767.98px) {
  .rf-page-header,
  .rf-clinic-header,
  .rf-doctor-header,
  .rf-result-header,
  .rf-flex-header {
    text-align: center;
    align-items: center;
  }

  .rf-page-header-meta,
  .rf-page-lead,
  .rf-eyebrow {
    text-align: center;
    justify-content: center;
  }

  .rf-page-shell h1,
  .rf-page-shell h2,
  .rf-page-shell h3,
  .rf-page-shell .card-title,
  .rf-page-shell .card-title + .text-muted {
    text-align: center;
  }

  .rf-auth-panel .rf-auth-copy-title {
    text-align: left !important;
    padding-left: 0;
    margin-left: 0;
  }

  .rf-clinic-staff-card .rf-flex-header {
    text-align: left;
    align-items: flex-start;
  }

  .rf-clinic-staff-card .rf-flex-header > div:first-child {
    width: 100%;
  }

  .rf-clinic-staff-card .rf-flex-header h3,
  .rf-clinic-staff-card .rf-flex-header .text-muted {
    text-align: left !important;
  }

  .rf-clinic-staff-card .rf-flex-header .btn {
    align-self: flex-start;
  }

  .rf-clinic-staff-card .rf-staff-actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .rf-fieldrep-assets-card .rf-copy-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .rf-fieldrep-assets-card .rf-copy-group .btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .rf-brand-manager-dashboard-grid .rf-brand-manager-dashboard-card-body,
  .rf-brand-manager-dashboard-grid .rf-brand-manager-dashboard-card-body .rf-dashboard-card-title,
  .rf-brand-manager-dashboard-grid .rf-brand-manager-dashboard-card-body .text-muted,
  .rf-brand-manager-dashboard-grid .rf-brand-manager-dashboard-card-body .rf-eyebrow {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .rf-fieldrep-outcome-card {
    padding: 1.15rem !important;
  }

  .rf-fieldrep-outcome-meta {
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.9rem !important;
  }

  .rf-fieldrep-outcome-meta-row {
    gap: 0.75rem;
  }

  .rf-fieldrep-outcome-table {
    overflow-x: visible;
  }

  .rf-fieldrep-outcome-table.table-responsive .table,
  .rf-fieldrep-outcome-table.table-responsive .table tbody {
    display: table;
    width: 100%;
  }

  .rf-fieldrep-outcome-table.table-responsive .table tr {
    display: table-row;
  }

  .rf-fieldrep-outcome-table.table-responsive .table th,
  .rf-fieldrep-outcome-table.table-responsive .table td {
    display: table-cell;
    width: auto;
    padding: 0.72rem 0;
  }

  .rf-fieldrep-outcome-table.table-responsive .table tbody tr {
    display: table-row;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .rf-fieldrep-outcome-table.table-responsive .table tbody td {
    grid-template-columns: none;
    gap: 0;
    align-items: initial;
    padding-left: 1rem;
  }

  .rf-fieldrep-outcome-table.table-responsive .table tbody td::before {
    content: none;
    display: none;
  }

  .rf-fieldrep-outcome-table .table th {
    width: 72%;
    font-size: 0.92rem;
  }

  .rf-fieldrep-outcome-table .table td {
    width: 28%;
    font-size: 0.98rem;
  }

  .rf-fieldrep-outcome-break {
    display: inline;
  }

  .rf-fieldrep-outcome-actions {
    flex-direction: column;
  }

  .rf-fieldrep-outcome-actions .btn {
    width: 100%;
  }

  .rf-terms-gate-profile {
    align-items: flex-start;
    gap: 1rem;
  }

  .rf-terms-gate-avatar {
    width: 4.75rem;
    height: 4.75rem;
  }

  .rf-fieldrep-menu .btn {
    --bs-btn-padding-y: 0.48rem;
    --bs-btn-padding-x: 0.75rem;
    min-height: 2.28rem;
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .rf-fieldrep-menu .btn-lg {
    --bs-btn-padding-y: 0.56rem;
    --bs-btn-padding-x: 0.82rem;
    min-height: 2.48rem;
    font-size: 0.88rem;
  }

  .rf-fieldrep-menu .rf-action-grid,
  .rf-fieldrep-menu .rf-cluster,
  .rf-fieldrep-menu .rf-fieldrep-secondary-actions,
  .rf-fieldrep-menu .rf-fieldrep-external-actions {
    gap: 0.65rem !important;
  }

  .rf-fieldrep-menu .rf-panel-card {
    padding: 0.88rem !important;
  }

  .rf-fieldrep-doctor-list-head {
    display: none;
  }

  .rf-fieldrep-doctor-row {
    grid-template-columns: minmax(0, 1fr) minmax(7.75rem, 8.75rem);
    gap: 0.75rem;
    padding: 0.9rem;
    align-items: center;
  }

  .rf-fieldrep-doctor-name-label {
    display: none;
  }

  .rf-fieldrep-doctor-name--new {
    padding-top: 0.9rem;
  }

  .rf-fieldrep-new-badge {
    font-size: 0.64rem;
    padding: 0.16rem 0.52rem;
  }

  .rf-fieldrep-doctor-row .btn {
    width: 100%;
    min-height: 2.3rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    white-space: normal;
  }

  .rf-fieldrep-doctor-row .rf-fieldrep-clinic-assets-btn {
    min-width: 100%;
  }

  .rf-fieldrep-header-actions {
    align-items: stretch;
  }

  .rf-fieldrep-header-actions .btn {
    width: 100%;
  }

  .rf-fieldrep-assets-qr-preview {
    width: 7.25rem;
  }

  .rf-notification-stack {
    top: calc(var(--rf-navbar-height) + 0.7rem);
    width: calc(100vw - 1rem);
  }

  .rf-notification {
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
  }

  .container,
  .container-fluid,
  .rf-app-footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-body,
  .card-header,
  .card-footer,
  .rf-panel,
  .rf-hero-panel {
    padding: 1rem;
  }

  .rf-navbar .navbar-brand {
    max-width: calc(100% - 3.5rem);
  }

  .rf-navbar-meta {
    width: 100%;
  }

  .rf-loader-card {
    width: min(92vw, 20rem);
    justify-content: center;
  }

  .rf-flow-nav {
    border-radius: 1.3rem;
    padding: 0.2rem;
  }

  .rf-flow-nav-link {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 1.82rem;
    padding: 0.3rem 0.52rem;
    font-size: 0.69rem;
  }

  .rf-flow-nav-link::before,
  .rf-flow-nav-link + .rf-flow-nav-link::before {
    display: none;
  }

  .rf-input-icon-group .rf-input-icon-addon {
    left: 1rem;
  }

  .rf-input-icon-group .form-control,
  .rf-input-icon-group .form-select {
    padding-left: 3.9rem;
  }

  .table-responsive {
    overflow-x: visible;
  }

  .table {
    table-layout: fixed;
  }

  .table-responsive .table thead {
    display: none;
  }

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

  .table-responsive .table tbody tr {
    margin-bottom: 0.85rem;
    border: 1px solid rgba(52, 160, 179, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--rf-shadow-sm);
    overflow: hidden;
  }

  .table-responsive .table tbody td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 40%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 1rem;
  }

  .table-responsive .table tbody td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rf-text-soft);
  }

  .table-responsive .table tbody td[colspan] {
    display: block;
  }

  .table-responsive .table tbody td[colspan]::before {
    display: none;
  }
}

@media (min-width: 576px) {
  .rf-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .rf-card-grid,
  .rf-feature-grid,
  .rf-chart-grid,
  .rf-info-grid,
  .rf-clinic-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .rf-main {
    padding-top: 1.5rem;
  }

  .rf-page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .rf-clinic-header,
  .rf-doctor-header,
  .rf-result-header,
  .rf-flex-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .rf-fieldrep-header-actions {
    justify-content: flex-end;
    align-items: flex-start;
  }

  .rf-card-grid.rf-card-grid-3,
  .rf-feature-grid.rf-feature-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .rf-auth-card .card-body {
    padding: 2rem;
  }
}

@media (min-width: 992px) {
  .rf-patient-landing-card {
    max-width: 58rem;
    margin-inline: auto;
  }

  .rf-banner-masonry {
    column-count: 2;
    column-gap: 1rem;
    display: block;
  }

  .rf-navbar .container {
    align-items: center;
  }

  .rf-navbar .navbar-collapse {
    margin-top: 0;
    background: transparent;
    padding: 0;
  }

  .rf-navbar .navbar-nav {
    align-items: center;
  }

  .rf-navbar-meta {
    align-items: flex-end;
    text-align: right;
  }

  .rf-clinic-summary,
  .rf-chart-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rf-flow-nav-link::before {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .rf-form-choice-list {
    max-height: 15rem;
    padding: 0.75rem;
  }

  .rf-form-choice {
    padding: 0.8rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
