:root {
  --app-primary: #0f766e;
  --app-primary-deep: #115e59;
  --app-secondary: #c2410c;
  --app-ink: #10212b;
  --app-muted: #5f6b76;
  --app-surface: #ffffff;
  --app-border: #d8e1df;
  --app-shadow: 0 24px 50px rgba(16, 33, 43, 0.08);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0 0 60px;
  color: var(--app-ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 26%),
    linear-gradient(180deg, #fcfdfc 0%, #f2f6f4 100%);
}

body.rtl {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

body.rtl .form-check,
.adminlte-shell.rtl .form-check,
.survey-render-page.rtl .form-check {
  padding-right: 1.5em;
  padding-left: 0;
  text-align: right;
}

body.rtl .form-check .form-check-input,
.adminlte-shell.rtl .form-check .form-check-input,
.survey-render-page.rtl .form-check .form-check-input {
  float: right;
  margin-right: -1.5em;
  margin-left: 0;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

.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 rgba(15, 118, 110, 0.25);
}

.btn-primary {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--app-primary-deep);
  border-color: var(--app-primary-deep);
}

.app-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  direction: ltr;
}

.app-form-actions > .btn,
.app-form-actions > a {
  margin: 0;
}

.app-file-picker {
  position: relative;
}

.app-file-picker__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.app-file-picker__label {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: calc(1.5em + 0.75rem + 2px);
  margin: 0;
  overflow: hidden;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
}

.app-file-picker__name {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  color: #212529;
  background-color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-file-picker__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  color: #212529;
  background-color: #f8f9fa;
  border-inline-start: 1px solid #ced4da;
  white-space: nowrap;
}

body.rtl .app-file-picker__label,
.adminlte-shell.rtl .app-file-picker__label {
  flex-direction: row-reverse;
}

body.rtl .app-file-picker__button,
.adminlte-shell.rtl .app-file-picker__button {
  border-inline-start: 0;
  border-inline-end: 1px solid #ced4da;
}

body.rtl .app-form-actions,
.adminlte-shell.rtl .app-form-actions,
.survey-render-page.rtl .app-form-actions {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.btn-outline-secondary {
  color: var(--app-ink);
  border-color: #bcc9c5;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: #edf2f0;
  color: var(--app-ink);
  border-color: #bcc9c5;
}

.app-container {
  max-width: 1180px;
}

.app-navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 225, 223, 0.95);
}

.app-navbar__brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--app-ink);
}

.app-navbar__links {
  gap: 0.75rem;
}

.app-navbar .nav-link {
  color: var(--app-muted);
  font-weight: 600;
}

.app-navbar .nav-link:hover {
  color: var(--app-primary);
}

.app-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.rtl .app-navbar__actions {
  flex-direction: row-reverse;
}

.app-navbar__user {
  color: var(--app-muted);
  font-size: 0.95rem;
}

.app-footer {
  border-top: 1px solid rgba(216, 225, 223, 0.95);
  background: rgba(255, 255, 255, 0.72);
}

.landing-hero,
.admin-hero,
.auth-shell,
.empty-state {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
}

.landing-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 2rem;
  padding: 3rem 0 4rem;
}

.landing-hero__eyebrow,
.admin-hero__eyebrow,
.auth-card__eyebrow,
.empty-state__eyebrow,
.landing-panel__label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--app-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero__title,
.admin-hero__title,
.auth-card__title,
.empty-state__title {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.landing-hero__subtitle,
.admin-hero__subtitle,
.auth-card__subtitle,
.empty-state__subtitle {
  max-width: 58ch;
  color: var(--app-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.landing-panel__card,
.auth-card,
.empty-state__card,
.dictionary-table-wrap,
.form-card,
.admin-tile {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--app-border);
  border-radius: 28px;
  box-shadow: var(--app-shadow);
}

.landing-panel__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--app-muted);
  line-height: 2;
}

body.rtl .landing-panel__list {
  padding-left: 0;
  padding-right: 1.2rem;
}

.auth-shell {
  justify-content: center;
  width: 100%;
  padding: 1.25rem 0 3rem;
}

.auth-card {
  width: 410px !important;
  max-width: calc(100vw - 2rem) !important;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-form .form-control {
  min-height: 3.4rem;
  border-color: #e5e7eb;
  border-radius: 12px;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(160, 174, 204, 0.12), transparent 24%),
    linear-gradient(180deg, #f3f6fa 0%, #edf2f7 100%);
}

.auth-page__langbar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  width: auto;
  margin: 0;
  padding: 0;
}

body.rtl .auth-page__langbar {
  right: auto;
  left: 20px;
}

.auth-page__lang-form {
  margin: 0;
}

.auth-page__lang-dropdown {
  position: relative;
}

.auth-page__lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 7.25rem;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(31, 41, 55, 0.78);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: #111827;
  font-weight: 700;
  line-height: 1;
}

.auth-page__lang-trigger i:first-child {
  font-size: 1rem;
}

.auth-page__lang-code {
  letter-spacing: 0.04em;
}

.auth-page__lang-arrow {
  margin-inline-start: auto;
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.auth-page__lang-dropdown.is-open .auth-page__lang-arrow {
  transform: rotate(180deg);
}

.auth-page__lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 8.75rem;
  padding: 0.5rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

body.rtl .auth-page__lang-menu {
  right: auto;
  left: 0;
}

.auth-page__lang-dropdown.is-open .auth-page__lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-page__lang-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1.2rem;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

body.rtl .auth-page__lang-menu::before {
  right: auto;
  left: 1.2rem;
}

.auth-page__lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4b5563;
  font-weight: 600;
  text-align: left;
}

body.rtl .auth-page__lang-option {
  text-align: right;
}

.auth-page__lang-option i {
  opacity: 0;
}

.auth-page__lang-option.is-active {
  background: linear-gradient(135deg, #2870eb 0%, #1f67d5 100%);
  color: #fff;
}

.auth-page__lang-option.is-active i {
  opacity: 1;
}

.auth-page__main {
  width: 100%;
}

.auth-card__brand {
  padding: 1.75rem 1rem 1.45rem;
  background: linear-gradient(180deg, #1f2746 0%, #1a2140 100%);
  color: #fff;
  text-align: center;
  position: relative;
}

.auth-card__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-card__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-card__brand-image {
  display: block;
  width: 100%;
  max-width: none;
  max-height: 4.9rem;
  object-fit: contain;
  filter: none;
}

.auth-card__title {
  max-width: none;
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  position: relative;
  z-index: 1;
}

.auth-card__divider {
  width: 60px;
  height: 3px;
  margin: 0.7rem auto 0.9rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #0d6efd, transparent);
  position: relative;
  z-index: 1;
}

.auth-card__subtitle {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.auth-form {
  padding: 2rem 1.5rem 1.8rem;
}

.auth-form__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.92rem;
}

.auth-form__label i {
  color: #6b7280;
  font-size: 0.95rem;
}

.auth-form .form-control {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font-size: 1rem;
}

.auth-form .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
  background: #fff;
}

.auth-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.45rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
  font-weight: 700;
  font-size: 1.05rem;
}

.auth-form .mb-3 + .mb-3 {
  margin-top: 1.3rem;
}

.auth-form__submit:hover,
.auth-form__submit:focus,
.auth-form__submit:active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0b5ed7 0%, #084298 100%);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

.admin-hero {
  gap: 2rem;
  padding: 3rem 0 4rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.admin-tile {
  padding: 1.5rem;
  border-radius: 24px;
}

.admin-tile h2 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.admin-tile p {
  color: var(--app-muted);
  line-height: 1.75;
}

.admin-tile__status {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--app-primary-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.empty-state {
  justify-content: center;
  padding: 2rem 0 4rem;
}

.empty-state__card {
  max-width: 620px;
  text-align: center;
}

.page-shell {
  padding: 2.5rem 0 4rem;
}

.page-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-shell__title {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-shell__subtitle {
  max-width: 64ch;
  color: var(--app-muted);
  line-height: 1.7;
}

.dictionary-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dictionary-table-wrap,
.form-card {
  padding: 1.25rem;
  border-radius: 24px;
}

.dictionary-table {
  margin-bottom: 0;
}

.dictionary-table th {
  color: var(--app-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.dictionary-table__key {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
}

body.rtl .page-shell__header,
body.rtl .dictionary-toolbar,
body.rtl .landing-hero__actions {
  direction: rtl;
}

body.rtl .dictionary-table th,
body.rtl .dictionary-table td,
body.rtl .form-card,
body.rtl .admin-tile,
body.rtl .auth-card,
body.rtl .landing-panel__card,
body.rtl .empty-state__card,
body.rtl .page-shell__header,
body.rtl .landing-hero__copy,
body.rtl .admin-hero__content {
  text-align: right;
}

.adminlte-shell {
  font-family: "Source Sans 3", sans-serif;
  overflow-x: hidden;
}

.adminlte-shell.rtl {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

.admin-shell__header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  min-height: 3.75rem;
}

.admin-shell__topbar-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-shell__topbar-actions .nav-item {
  display: flex;
  align-items: center;
}

.admin-shell__topbar-actions .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-shell__page-title {
  font-weight: 700;
  color: #334155;
  padding-inline-start: 0.35rem;
}

.admin-shell__lang-form {
  margin-bottom: 0;
}

.admin-shell__lang-select {
  min-width: 9rem;
  border-radius: 0.6rem;
  border-color: rgba(148, 163, 184, 0.55);
  background-color: #fff;
}

.admin-shell__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.6rem;
  padding-inline: 0.85rem;
  min-height: 2.35rem;
}

.admin-shell__user-name {
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-shell__sidebar {
  --lte-sidebar-width: 17rem;
}

.adminlte-shell .app-content-header {
  padding: 1.35rem 0 0.75rem;
}

.adminlte-shell .app-content > .container-fluid {
  padding-bottom: 1.75rem;
}

.admin-shell__brand-link {
  justify-content: center;
  padding: 0.9rem 0.75rem;
  min-height: auto;
}

.admin-shell__brand-image {
  display: block;
  width: 100%;
  max-width: 13.5rem;
  max-height: 3.5rem;
  object-fit: contain;
}

.sidebar-user-panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1rem 0.95rem;
  margin: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-user-panel__avatar,
.admin-shell__user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
  color: #0f766e;
  font-size: 1.4rem;
}

.admin-shell__user-avatar--large {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.75rem;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 2.2rem;
}

.sidebar-user-panel__content {
  min-width: 0;
}

.sidebar-user-panel__name {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-panel__role {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.adminlte-shell .sidebar-wrapper {
  padding-bottom: 1rem;
}

.adminlte-shell .sidebar-menu .nav-item > .nav-link {
  border-radius: 0.8rem;
  margin: 0.1rem 0.5rem;
}

.adminlte-shell .sidebar-menu .nav-link p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
}

.admin-shell__hero-title {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.admin-shell__hero-subtitle {
  max-width: 62ch;
  color: #64748b;
  line-height: 1.8;
}

.admin-overview-card {
  border: 0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.admin-feature-card {
  border: 0;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-card,
.dashboard-panel-card {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
}

.dashboard-stat-card {
  padding: 1rem 1.1rem;
  border: 1px solid #e6edf6;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-stat-card__label {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-stat-card__value {
  margin-top: 0.55rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.dashboard-status-bar {
  display: flex;
  overflow: hidden;
  height: 0.95rem;
  margin: 1.25rem 0 1rem;
  border-radius: 999px;
  background: #edf2f7;
}

.dashboard-status-bar__segment {
  display: block;
  height: 100%;
}

.dashboard-status-bar__segment.is-open,
.dashboard-status-list__swatch.is-open,
.dashboard-status-pill.is-open {
  background: #14b8a6;
}

.dashboard-status-bar__segment.is-not-begun,
.dashboard-status-list__swatch.is-not-begun,
.dashboard-status-pill.is-not-begun {
  background: #f59e0b;
}

.dashboard-status-bar__segment.is-closed,
.dashboard-status-list__swatch.is-closed,
.dashboard-status-pill.is-closed {
  background: #ef4444;
}

.dashboard-status-bar__segment.is-inactive,
.dashboard-status-list__swatch.is-inactive,
.dashboard-status-pill.is-inactive {
  background: #94a3b8;
}

.dashboard-status-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-status-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.dashboard-status-list__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
}

.dashboard-source-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-source-row {
  padding: 1rem;
  border: 1px solid #e5edf7;
  border-radius: 1rem;
  background: #fff;
}

.dashboard-source-row__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.dashboard-source-row__name {
  font-weight: 700;
  color: #0f172a;
}

.dashboard-source-row__title {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.92rem;
}

.dashboard-source-row__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.dashboard-source-row__metrics {
  display: grid;
  gap: 0.7rem;
}

.dashboard-source-row__metric-label {
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-source-row__track {
  overflow: hidden;
  height: 0.72rem;
  border-radius: 999px;
  background: #edf2f7;
}

.dashboard-source-row__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.dashboard-source-row__fill.is-events {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.dashboard-source-row__fill.is-submissions {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.dashboard-event-table thead th {
  color: #475569;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dashboard-event-table__primary {
  font-weight: 700;
  color: #0f172a;
}

.dashboard-event-table__secondary {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.9rem;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-event-table__submission-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 700;
}

.admin-feature-card__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 1.3rem;
}

.adminlte-shell .card {
  border-radius: 1rem;
}

.adminlte-shell .card-header {
  padding: 1.35rem 1.35rem 0.75rem;
}

.adminlte-shell .card-body {
  padding: 1.35rem;
}

.admin-section-eyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--app-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

.admin-section-subtitle {
  max-width: 62ch;
  color: #64748b;
  line-height: 1.7;
}

.adminlte-shell .sidebar-menu .nav-link.active {
  background: rgba(20, 184, 166, 0.18);
  color: #fff;
}

.adminlte-shell .sidebar-menu .nav-link.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.adminlte-shell.rtl .sidebar-user-panel,
.adminlte-shell.rtl .user-footer {
  direction: rtl;
}

.adminlte-shell.rtl .admin-shell__logout-btn {
  flex-direction: row-reverse;
}

.adminlte-shell.rtl .admin-shell__topbar-actions {
  flex-direction: row-reverse;
}

.adminlte-shell.rtl .admin-shell__action-logout {
  order: 1;
}

.adminlte-shell.rtl .admin-shell__action-fullscreen {
  order: 2;
}

.adminlte-shell.rtl .admin-shell__action-language {
  order: 3;
}

.adminlte-shell.rtl .sidebar-user-panel__content,
.adminlte-shell.rtl .card,
.adminlte-shell.rtl .table,
.adminlte-shell.rtl .app-content-header,
.adminlte-shell.rtl .app-footer {
  text-align: right;
}

@media (min-width: 992px) {
  .adminlte-shell.rtl.sidebar-collapse .app-sidebar {
    transform: translateX(100%) !important;
  }

  .adminlte-shell.rtl.sidebar-collapse .app-header,
  .adminlte-shell.rtl.sidebar-collapse .app-main,
  .adminlte-shell.rtl.sidebar-collapse .app-footer {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

.dictionary-toolbar {
  align-items: center;
}

.dictionary-toolbar .form-control {
  min-height: 2.75rem;
  border-radius: 0.75rem;
}

.dictionary-toolbar .btn {
  min-width: 3rem;
  min-height: 2.75rem;
  border-radius: 0.75rem;
}

.dictionary-table {
  table-layout: fixed;
}

.dictionary-table th {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.dictionary-table td {
  vertical-align: top;
  word-break: break-word;
}

.dictionary-table th:nth-child(1),
.dictionary-table td:nth-child(1) {
  width: 27%;
}

.dictionary-table th:nth-child(2),
.dictionary-table td:nth-child(2) {
  width: 35%;
}

.dictionary-table th:nth-child(3),
.dictionary-table td:nth-child(3) {
  width: 26%;
}

.dictionary-table th:nth-child(4),
.dictionary-table td:nth-child(4) {
  width: 7%;
}

.dictionary-table th:nth-child(5),
.dictionary-table td:nth-child(5) {
  width: 5%;
}

@media (max-width: 991.98px) {
  .landing-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero__title,
  .admin-hero__title,
  .auth-card__title,
  .empty-state__title {
    max-width: none;
  }

  .app-navbar__actions,
  .page-shell__header,
  .dictionary-toolbar {
    margin-top: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-shell__page-title {
    display: none;
  }

  .dashboard-source-row__header {
    flex-direction: column;
  }
}

.dictionary-card__title {
  float: none;
  display: block;
  margin-bottom: 0.5rem;
}

.admin-section-subtitle {
  max-width: none;
  margin-top: 0;
  color: #556273;
  font-size: 0.96rem;
  line-height: 1.6;
}

.admin-grid__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dictionary-toolbar {
  margin-bottom: 1rem;
}

.dictionary-toolbar__label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #111827;
  font-weight: 600;
}

.dictionary-toolbar .form-control,
.dictionary-toolbar .form-select {
  min-height: 2.65rem;
  border-radius: 0.35rem;
  border-color: #cfd8e3;
}

.dictionary-toolbar .btn {
  min-height: 2.65rem;
  border-radius: 0.35rem;
}

.dictionary-table {
  margin-bottom: 0;
  table-layout: auto;
}

.dictionary-table th,
.dictionary-table td {
  padding: 0.78rem 0.65rem;
  border-color: #d9e1ea;
  vertical-align: middle;
}

.dictionary-table thead th {
  background: #fff;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.dictionary-table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: #fbfcfe;
}

.dictionary-table td {
  color: #1f2937;
  word-break: break-word;
}

.dictionary-table__serial {
  width: 4.5rem;
}

.dictionary-table__key {
  min-width: 14rem;
  font-family: "Consolas", "Courier New", monospace;
  white-space: normal;
}

.dictionary-table td:nth-child(3) {
  min-width: 14rem;
}

.dictionary-table td:nth-child(4) {
  min-width: 18rem;
}

.dictionary-table td:nth-child(5) {
  min-width: 8rem;
}

.dictionary-table th:last-child,
.dictionary-table td:last-child {
  width: 6rem;
}

.dictionary-table__action-btn {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.35rem;
}

.question-form__section-title {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.question-options-table th,
.question-options-table td {
  vertical-align: middle;
}

.question-options-table th:nth-child(1),
.question-options-table td:nth-child(1) {
  width: 4rem;
  text-align: center;
}

.question-options-table th:nth-child(5),
.question-options-table td:nth-child(5),
.question-options-table th:nth-child(6),
.question-options-table td:nth-child(6) {
  width: 6rem;
}

.adminlte-shell .btn-default,
.adminlte-shell .btn-default:not(:disabled):not(.disabled) {
  background: #fff;
  border: 1px solid #cfd8e3;
  color: #111827;
}

.adminlte-shell .btn-default:hover,
.adminlte-shell .btn-default:focus {
  background: #f5f7fa;
  border-color: #bcc9d8;
  color: #111827;
}

.adminlte-shell .card-header .d-flex {
  align-items: flex-start !important;
}

.adminlte-shell.rtl .dictionary-toolbar,
.adminlte-shell.rtl .card-header .d-flex,
.adminlte-shell.rtl .dictionary-table td,
.adminlte-shell.rtl .dictionary-table th {
  text-align: right;
}

.adminlte-shell.rtl .dictionary-table th.text-center,
.adminlte-shell.rtl .dictionary-table td.text-center {
  text-align: center !important;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_length,
.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_filter,
.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_info,
.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_paginate {
  text-align: right;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_length label,
.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_filter input {
  margin-right: 0;
  margin-left: 0;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_length select {
  margin-right: 0;
  margin-left: 0;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_filter {
  text-align: right;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_filter label {
  justify-content: flex-end;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_length {
  text-align: right;
}

.adminlte-shell.rtl div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  justify-content: flex-start;
  direction: rtl;
}

@media (max-width: 991.98px) {
  .dictionary-toolbar .btn,
  .dictionary-toolbar .form-control,
  .dictionary-toolbar .form-select {
    width: 100%;
  }
}

#toast-container > .toast,
#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-warning,
#toast-container > .toast-info {
  border-radius: 0.45rem;
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.18);
  opacity: 1;
}

#toast-container > .toast-success {
  color: #fff !important;
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

#toast-container > .toast-error {
  color: #fff !important;
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

#toast-container > .toast-warning {
  color: #fff !important;
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
}

#toast-container > .toast-info {
  color: #fff !important;
  background-color: #17a2b8 !important;
  border-color: #17a2b8 !important;
}

#toast-container > .toast .toast-title,
#toast-container > .toast .toast-message,
#toast-container > .toast .toast-close-button,
#toast-container > .toast .toast-progress {
  color: inherit;
}

#toast-container > .toast .toast-close-button {
  opacity: 0.85;
}

#toast-container > .toast .toast-close-button:hover {
  opacity: 1;
}

#toast-container > .toast-warning .toast-close-button,
#toast-container > .toast-warning .toast-title,
#toast-container > .toast-warning .toast-message {
  color: #fff !important;
}

.survey-assignment-panel {
  display: flex;
  flex-direction: column;
  min-height: 33rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
}

.survey-assignment-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid #edf2f7;
}

.survey-assignment-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #10212b;
}

.survey-assignment-panel__subtitle {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.survey-assignment-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 700;
}

.survey-assignment-panel__search {
  position: relative;
  padding: 0.95rem 1rem 0;
}

.survey-assignment-panel__search .bi {
  position: absolute;
  inset-inline-start: 1.85rem;
  top: 50%;
  transform: translateY(-5%);
  color: #94a3b8;
  pointer-events: none;
}

.survey-assignment-panel__search .form-control {
  padding-inline-start: 2.4rem;
}

.survey-assignment-panel__footer {
  padding: 1rem;
  border-top: 1px solid #edf2f7;
}

.survey-bank-list,
.survey-assignment-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}

.survey-bank-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.survey-bank-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #dbe4ef;
  border-radius: 0.8rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.survey-bank-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.survey-bank-item.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
  background: #f8fafc;
}

.survey-bank-item__check {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.survey-bank-item__content {
  min-width: 0;
  flex: 1 1 auto;
}

.survey-bank-item__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.survey-bank-item__title {
  font-weight: 700;
  color: #10212b;
  word-break: break-word;
}

.survey-bank-item__labels {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.93rem;
}

.survey-question-chip,
.survey-question-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.survey-question-chip {
  background: #eff6ff;
  color: #1d4ed8;
}

.survey-question-flag {
  background: #f1f5f9;
  color: #334155;
}

.survey-bank-empty,
.survey-assignment-empty {
  margin: 1rem;
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.8rem;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

.survey-assignment-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.survey-assignment-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
  padding: 0.9rem;
  border: 1px solid #dbe4ef;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.survey-assignment-card__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 1.05rem;
}

.survey-assignment-card__content {
  min-width: 0;
}

.survey-assignment-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.survey-assignment-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #10212b;
  word-break: break-word;
}

.survey-assignment-card__labels {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.93rem;
}

.survey-assignment-card__meta,
.survey-assignment-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.survey-assignment-card__actions {
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.survey-assignment-handle {
  cursor: grab;
}

.survey-assignment-handle:active {
  cursor: grabbing;
}

.survey-assignment-card.sortable-ghost {
  opacity: 0.45;
}

.survey-assignment-card.sortable-chosen {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
}

.survey-assignment-card__hidden {
  display: none;
}

.adminlte-shell.rtl .survey-assignment-panel__header,
.adminlte-shell.rtl .survey-bank-item__title-row,
.adminlte-shell.rtl .survey-assignment-card__top {
  direction: rtl;
}

.adminlte-shell.rtl .survey-bank-item,
.adminlte-shell.rtl .survey-assignment-card {
  text-align: right;
}

.adminlte-shell.rtl .survey-assignment-panel__header {
  direction: rtl;
  flex-direction: row;
}

.adminlte-shell.rtl .survey-assignment-panel__header > div {
  text-align: right;
}

.adminlte-shell.rtl .survey-assignment-panel__count {
  margin-inline-start: auto;
}

.adminlte-shell.rtl .survey-assignment-panel__search .bi {
  inset-inline-start: auto;
  inset-inline-end: 1.85rem;
}

.adminlte-shell.rtl .survey-assignment-panel__search .form-control {
  padding-inline-start: 0.85rem;
  padding-inline-end: 2.4rem;
  text-align: right;
}

.adminlte-shell.rtl .survey-bank-item {
  flex-direction: row-reverse;
}

.adminlte-shell.rtl .survey-bank-item__check {
  margin-top: 0.2rem;
}

.adminlte-shell.rtl .survey-bank-item__content,
.adminlte-shell.rtl .survey-assignment-card__content,
.adminlte-shell.rtl .survey-assignment-card__top > div:first-child {
  min-width: 0;
}

.adminlte-shell.rtl .survey-bank-item__title-row,
.adminlte-shell.rtl .survey-assignment-card__top {
  flex-direction: row;
}

.adminlte-shell.rtl .survey-bank-item__title-row {
  align-items: flex-start;
}

.adminlte-shell.rtl .survey-bank-item__title,
.adminlte-shell.rtl .survey-assignment-card__name {
  overflow-wrap: anywhere;
}

.adminlte-shell.rtl .survey-assignment-card {
  grid-template-columns: 3rem minmax(0, 1fr);
  direction: rtl;
}

.adminlte-shell.rtl .survey-assignment-card__order {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.adminlte-shell.rtl .survey-assignment-card__content {
  grid-column: 2;
  grid-row: 1;
}

.adminlte-shell.rtl .survey-assignment-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
}

.adminlte-shell.rtl .survey-assignment-card__top > div:first-child {
  grid-column: 1;
}

.adminlte-shell.rtl .survey-assignment-card__meta {
  grid-column: 2;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.adminlte-shell.rtl .survey-assignment-card__actions {
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .survey-assignment-panel {
    min-height: auto;
  }

  .survey-bank-list,
  .survey-assignment-list {
    max-height: 24rem;
  }
}

@media (max-width: 575.98px) {
  .survey-assignment-card {
    grid-template-columns: 1fr;
  }

  .survey-assignment-card__order {
    width: 2.5rem;
    height: 2.5rem;
  }

  .survey-assignment-card__top {
    flex-direction: column;
  }
}

.option-management-table .option-management-row {
  cursor: move;
}

.option-management-table .option-management-order {
  width: 4rem;
  font-weight: 700;
}

.option-sort-handle {
  cursor: move;
  font-size: 1rem;
}

.question-option-inline-note {
  background: #f8fafc;
  border-color: #d9e1ea;
}

.survey-media-preview {
  display: inline-flex;
  padding: 0.5rem;
  border: 1px solid #d9e1ea;
  border-radius: 0.75rem;
  background: #fff;
}

.survey-media-preview__image {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.survey-media-preview__image--logo {
  max-height: 90px;
}

.survey-preview-toolbar {
  row-gap: 0.75rem;
}

.survey-preview-toolbar__source {
  min-width: min(100%, 18rem);
}

.survey-preview-toolbar__source .form-label {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.survey-preview-toolbar__button {
  min-height: 2.65rem;
}

.survey-render-page {
  margin: 0;
  color: #272b34;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.survey-render-page__langbar {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 1;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.survey-render-page__langbar-inner {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  direction: ltr;
  justify-content: flex-end;
  align-items: center;
  min-height: 6.05rem;
}

.survey-render-page__lang-form {
  margin: 0;
  pointer-events: auto;
}

.survey-render-page.rtl .survey-render-page__lang-form {
  margin: 0;
}

.survey-render-page.rtl .survey-render-page__langbar-inner {
  justify-content: flex-start;
}

.survey-render-page__lang-select {
  min-width: 9rem;
  border-radius: 0.65rem;
  border-color: #d7dce5;
  font-weight: 600;
  text-align: left;
  text-align-last: left;
}

.survey-render-page.rtl .survey-render-page__lang-select {
  direction: rtl;
  text-align: right;
  text-align-last: right;
}

.survey-render {
  min-height: 100vh;
}

.survey-render__masthead {
  padding: 0.55rem 0 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.survey-render__brand {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.75rem;
}

.survey-render__brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 23rem);
  max-height: 4.75rem;
  object-fit: contain;
}

.survey-render__shell {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
}

.survey-render__hero {
  margin: 0.25rem auto 1rem;
  padding: 1.35rem 1.75rem;
  border-radius: 0.9rem;
  background: var(--survey-primary);
  box-shadow: none;
  text-align: center;
  color: #fff;
}

.survey-render__hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.survey-render__hero-subtitle {
  margin: 0.55rem auto 0;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.96;
}

.survey-render__progress {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.35rem;
}

.survey-render__progress-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.survey-render__progress-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.18);
  transition: all 0.2s ease;
}

.survey-render__progress-dot.is-complete {
  width: 0.42rem;
  height: 0.42rem;
  background: color-mix(in srgb, var(--survey-primary) 45%, white);
}

.survey-render__progress-dot.is-active {
  width: 1.55rem;
  background: var(--survey-primary);
  box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--survey-primary) 18%, transparent);
}

.survey-render__section {
  display: none;
}

.survey-render__section.is-active {
  display: block;
}

.survey-render__section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.survey-render__section-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.18rem;
  font-weight: 700;
  color: #202734;
}

.survey-render__section-bullet {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--survey-primary);
}

.survey-render__section-counter {
  color: #7c8697;
  font-weight: 600;
}

.survey-render__section-card {
  padding: 0.9rem 1rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
  border-top: 2px solid var(--survey-primary);
}

.survey-render__section-subtitle {
  margin-bottom: 0.9rem;
  color: #667085;
  line-height: 1.7;
}

.survey-render__question {
  padding: 1rem 0;
}

.survey-render__question + .survey-render__question {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.survey-render__question-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #222a37;
}

.survey-render__required {
  color: var(--survey-primary);
}

.survey-render__question-subtitle,
.survey-render__question-help {
  margin-bottom: 0.55rem;
  color: #667085;
  line-height: 1.6;
}

.survey-render__question-help {
  margin-top: 0.55rem;
  font-size: 0.92rem;
}

.survey-render__question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  color: #667085;
  font-size: 0.86rem;
}

.survey-render__question-meta-item {
  line-height: 1.4;
}

.survey-render__char-counter {
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
}

.survey-render-page.rtl .survey-render__question-meta {
  direction: rtl;
  display: block;
  text-align: left;
}

.survey-render-page.rtl .survey-render__char-counter {
  display: block;
  direction: ltr;
  margin-inline: 0;
  text-align: left;
  unicode-bidi: isolate;
}

.survey-render__input,
.survey-render__textarea {
  min-height: 3rem;
  border-radius: 0.7rem;
  border-color: #d7dce5;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.survey-render__input[disabled],
.survey-render__textarea[disabled] {
  background: #eef2f7;
  color: #475569;
  cursor: not-allowed;
  opacity: 1;
}

.survey-render__textarea {
  min-height: 7rem;
  resize: vertical;
}

.survey-render__input:focus,
.survey-render__textarea:focus {
  border-color: color-mix(in srgb, var(--survey-primary) 72%, white);
  box-shadow: 0 0 0 0.28rem color-mix(in srgb, var(--survey-primary) 16%, transparent);
}

.survey-render__choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}

.survey-render__choice-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.7rem 0.95rem;
  border: 2px solid #d8dde6;
  border-radius: 0.75rem;
  background: #fff;
  color: #6b7280;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.survey-render__choice-card:hover {
  border-color: color-mix(in srgb, var(--option-color, var(--survey-primary)) 55%, white);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--option-color, var(--survey-primary)) 14%, transparent);
  transform: scale(1.02);
}

.survey-render__choice-card input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--option-color, var(--survey-primary));
}

.survey-render__choice-card:has(input:checked) {
  border-color: var(--option-color, var(--survey-primary));
  background: color-mix(in srgb, var(--option-color, var(--survey-primary)) 10%, white);
  color: var(--option-color, var(--survey-primary));
  font-weight: 700;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--option-color, var(--survey-primary)) 14%, transparent);
}

.survey-render__choice-card:has(input:focus-visible) {
  border-color: color-mix(in srgb, var(--option-color, var(--survey-primary)) 70%, white);
  box-shadow: 0 0 0 0.24rem color-mix(in srgb, var(--option-color, var(--survey-primary)) 14%, transparent);
}

.survey-render__choice-card:has(input:checked) input {
  transform: scale(1.06);
}

.survey-render__choice-card span {
  font-weight: inherit;
}

.survey-render__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
}

.survey-render__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 7.75rem;
  min-height: 2.95rem;
  padding-inline: 1.15rem;
  border: 0;
  border-radius: 0.75rem;
  font-weight: 700;
}

.survey-render__nav-btn--previous {
  background: #fff;
  color: #1f2937;
  border: 1px solid #d7dce5;
}

.survey-render__nav-btn--previous:hover:not(.is-disabled),
.survey-render__nav-btn--previous:focus-visible:not(.is-disabled) {
  border-color: color-mix(in srgb, var(--survey-primary) 45%, white);
  color: var(--survey-primary);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--survey-primary) 12%, transparent);
}

.survey-render__nav-btn--previous.is-disabled {
  opacity: 0.4;
}

.survey-render__nav-btn--next,
.survey-render__nav-btn--submit {
  margin-inline-start: auto;
  color: #fff;
  background: var(--survey-primary);
  border-color: var(--survey-primary);
  box-shadow: 0 12px 25px color-mix(in srgb, var(--survey-primary) 22%, transparent);
}

.survey-render__nav-btn--next:hover,
.survey-render__nav-btn--next:focus-visible,
.survey-render__nav-btn--submit:hover,
.survey-render__nav-btn--submit:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--survey-primary) 86%, black);
  border-color: color-mix(in srgb, var(--survey-primary) 86%, black);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--survey-primary) 24%, transparent);
}

.survey-render__nav-btn--next:active,
.survey-render__nav-btn--next.active,
.show > .survey-render__nav-btn--next.dropdown-toggle,
.survey-render__nav-btn--submit:active,
.survey-render__nav-btn--submit.active,
.show > .survey-render__nav-btn--submit.dropdown-toggle {
  color: #fff;
  background: color-mix(in srgb, var(--survey-primary) 74%, black);
  border-color: color-mix(in srgb, var(--survey-primary) 74%, black);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--survey-primary) 22%, transparent);
}

.survey-render-page.rtl .survey-render__brand,
.survey-render-page.rtl .survey-render__section-meta {
  direction: rtl;
}

.survey-render-page.rtl .survey-render__nav-btn--next,
.survey-render-page.rtl .survey-render__nav-btn--submit {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.survey-render-page.rtl .survey-render__nav-btn i {
  transform: scaleX(-1);
}

@media (max-width: 767.98px) {
  .survey-render__shell {
    padding-inline: 1rem;
  }

  .survey-render-page__langbar-inner {
    padding-inline: 1rem;
  }

  .survey-render-page__lang-select {
    min-width: 7.25rem;
    max-width: 7.25rem;
  }

  .survey-render__brand {
    justify-content: flex-start;
    padding-inline: 1rem;
  }

  .survey-render__brand-logo {
    max-width: calc(100% - 8.25rem);
    max-height: 4rem;
  }

  .survey-render__hero {
    padding: 1.15rem 1rem;
  }

  .survey-render__section-meta,
  .survey-render__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-render__section-counter {
    align-self: flex-end;
  }

  .survey-render__nav-btn,
  .survey-render__nav-btn--next,
  .survey-render__nav-btn--submit {
    width: 100%;
    margin-inline: 0;
    justify-content: center;
  }
}
/* Keep intrinsic table and text widths from expanding the page grid. */
.adminlte-shell .app-main,
.adminlte-shell .app-content,
.adminlte-shell .card,
.adminlte-shell .card-body,
.adminlte-shell .row > *,
.report-shell,
.report-shell > *,
.report-question__text-grid > *,
.report-question__choice-grid > * {
    min-width: 0;
}

.adminlte-shell .table-responsive {
    max-width: 100%;
}

.report-shell__title,
.report-shell__meta,
.report-question__title,
.report-question__section,
.report-question__choice-label,
.report-question__latest-list,
.survey-render__hero,
.survey-render__question-label {
    overflow-wrap: anywhere;
}

@media screen and (max-width: 575.98px) {
    .adminlte-shell .card-header,
    .adminlte-shell .card-body {
        padding: 1rem;
    }

    .admin-shell__topbar-actions {
        gap: .25rem;
        flex-wrap: wrap;
    }

    .admin-shell__lang-select {
        min-width: 6.5rem;
    }

    .admin-shell__topbar-actions .nav-link {
        padding-inline: .5rem;
    }

    .admin-shell__logout-btn {
        padding-inline: .5rem;
    }

    .adminlte-shell .card-header .d-flex {
        flex-wrap: wrap;
    }

    .app-form-actions > .btn {
        flex: 1 1 8rem;
        white-space: normal;
    }

    .adminlte-shell div.dataTables_wrapper div.dataTables_filter label,
    .adminlte-shell div.dataTables_wrapper div.dataTables_length label {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        justify-content: flex-start;
    }

    .adminlte-shell div.dataTables_wrapper div.dataTables_filter input {
        margin-inline: 0;
        width: 100%;
    }

    .adminlte-shell div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        flex-wrap: wrap;
        gap: .25rem;
    }

    .report-shell__header {
        flex-wrap: wrap;
    }

    .report-shell .report-overview,
    .report-shell .report-question,
    .report-shell .report-comments {
        padding: 1rem;
    }

    .report-filter > .col-auto,
    .report-filter .btn {
        width: 100%;
    }

    .auth-page .auth-page__langbar {
        position: relative;
        inset: auto;
        padding: 1rem;
    }
}

.report-filter {
    margin-bottom: 1.5rem;
}

.report-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.report-shell__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.report-shell__title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f2937;
}

.report-shell__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .4rem;
    color: #64748b;
    font-size: .95rem;
}

.report-shell__meta-separator {
    color: #cbd5e1;
}

.report-shell__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.report-overview {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e9eef5;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.report-overview__heading {
    margin: 0 0 1.25rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
}

.report-overview__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}

.report-overview__card {
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e6edf6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.report-overview__label {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: .75rem;
}

.report-overview__value {
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 700;
    color: #4f46e5;
}

.report-overview__unit {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.report-questions {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

.report-question {
    min-width: 0;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    border-radius: 1.5rem;
    border: 1px solid #edf2f7;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .06);
}

.report-question__header {
    margin-bottom: 1rem;
}

.report-question__section {
    color: #64748b;
    font-size: .92rem;
    margin-bottom: .35rem;
}

.report-question__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

.report-question__text-grid,
.report-question__choice-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
}

.report-question__multi-grid {
    display: block;
}

.report-question__metric {
    text-align: center;
    padding: 1rem;
}

.report-question__metric-value {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    color: #111827;
    margin-bottom: .45rem;
}

.report-question__metric-label,
.report-question__latest-label {
    color: #64748b;
    font-size: .95rem;
}

.report-question__latest {
    text-align: center;
}

.report-question__latest-list {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    display: grid;
    gap: .45rem;
    color: #1f2937;
}

.report-question__latest-empty {
    margin-top: .75rem;
    color: #94a3b8;
}

.report-question__choice-list {
    display: grid;
    gap: .55rem;
}

.report-question__choice-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: .6rem;
    align-items: center;
    padding: .55rem .7rem;
    border-radius: .9rem;
    background: #f8fafc;
}

.report-question__bar-item {
    padding: .65rem .7rem;
    border-radius: .9rem;
    background: #f8fafc;
}

.report-question__bar-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: .6rem;
    align-items: center;
    margin-bottom: .55rem;
}

.report-question__bar-track {
    width: 100%;
    height: .72rem;
    border-radius: 999px;
    background: #e9eef5;
    overflow: hidden;
}

.report-question__bar-fill {
    height: 100%;
    border-radius: 999px;
}

.report-question__choice-dot {
    width: .85rem;
    height: .85rem;
    border-radius: 50%;
}

.report-question__choice-label {
    color: #1f2937;
    font-weight: 500;
}

.report-question__choice-count,
.report-question__choice-percentage {
    color: #64748b;
    font-size: .95rem;
}

.report-question__chart-wrap {
    display: flex;
    justify-content: center;
    padding-inline: .5rem;
}

.report-question__chart-svg {
    width: 220px;
    max-width: 100%;
    height: auto;
    overflow: visible;
}

.report-question__chart-track,
.report-question__chart-segment {
    fill: none;
    stroke-width: 22;
}

.report-question__chart-track {
    stroke: #eef2f7;
}

.report-question__chart-segment {
    stroke-linecap: butt;
}

.report-question__chart-hole {
    fill: #fff;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .05));
}

.report-question__chart-label {
    font-size: .9rem;
    font-weight: 700;
    fill: #111827;
}

.report-comments {
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #edf2f7;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .06);
}

.report-comments__header {
    margin-bottom: 1rem;
}

.report-comments > .table-responsive {
    min-width: 0;
    max-width: 100%;
}

/* Long responses must wrap instead of determining the report's width. */
.report-comments__table {
    width: 100%;
    min-width: 36rem;
    table-layout: fixed;
}

.report-comments__table th:nth-child(1),
.report-comments__table th:nth-child(3) {
    width: 18%;
}

.report-comments__table th:nth-child(2) {
    width: 24%;
}

.report-comments__table th:nth-child(4) {
    width: 40%;
}

.report-comments__table th,
.report-comments__table td {
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

.adminlte-shell.rtl .report-shell__header,
.adminlte-shell.rtl .report-overview,
.adminlte-shell.rtl .report-question,
.adminlte-shell.rtl .report-comments,
.adminlte-shell.rtl .report-question__header,
.adminlte-shell.rtl .report-question__latest,
.adminlte-shell.rtl .report-question__metric {
    text-align: right;
}

.adminlte-shell.rtl .report-shell__meta {
    justify-content: flex-start;
}

.adminlte-shell.rtl .report-question__choice-grid,
.adminlte-shell.rtl .report-question__text-grid {
    direction: rtl;
}

.adminlte-shell.rtl .report-question__choice-item,
.adminlte-shell.rtl .report-question__bar-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.adminlte-shell.rtl .report-question__choice-count,
.adminlte-shell.rtl .report-question__choice-percentage {
    text-align: start;
}

.adminlte-shell.rtl .report-question__chart-wrap {
    justify-content: center;
}

.report-export-page {
    background: #f8fafc;
}

.report-export-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    background: rgba(248, 250, 252, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

.report-export-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.report-export-page-number {
    display: none;
}

/* Adapt to the card width, including with the sidebar expanded. */
@container (min-width: 460px) {
    .report-question__text-grid,
    .report-question__choice-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (min-width: 1200px) {
    .report-questions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .report-question__text-grid,
    .report-question__choice-grid {
        grid-template-columns: 1fr;
    }

    .report-question__metric,
    .report-question__latest {
        text-align: start;
    }
}

@media print {
    .print-hide {
        display: none !important;
    }

    .report-export-page-number {
        display: block;
        position: fixed;
        bottom: .35in;
        inset-inline-end: .45in;
        color: #64748b;
        font-size: .82rem;
    }

    .report-export-content {
        max-width: none;
        padding: 0;
    }

    .report-question,
    .report-overview {
        break-inside: avoid;
        box-shadow: none;
    }

    .report-comments {
        break-before: page;
        page-break-before: always;
    }
}
