:root {
  --fq-blue-900: #0a4ea4;
  --fq-blue-700: #0f67c4;
  --fq-blue-600: #1491d6;
  --fq-cyan-500: #10adc5;
  --fq-teal-500: #099fa1;
  --fq-green-600: #2ea83d;
  --fq-green-500: #58bf3f;
  --fq-slate-900: #233649;
  --fq-slate-700: #526679;
  --fq-slate-500: #718396;
  --fq-border: #d7e5ec;
  --fq-border-strong: #bfd2dc;
  --fq-bg: #edf6f8;
  --fq-bg-soft: #f8fcfd;
  --fq-surface: #ffffff;
  --fq-surface-alt: #f1fafb;
  --fq-shadow: 0 18px 36px rgba(20, 90, 126, 0.12);
  --fq-glow: 0 12px 24px rgba(15, 103, 196, 0.24);
  --fq-danger: #cf3d37;
  --fq-danger-soft: rgba(207, 61, 55, 0.12);
  --fq-warning: #dca225;
  --fq-warning-soft: rgba(220, 162, 37, 0.16);
  --fq-info-soft: rgba(16, 173, 197, 0.14);
  --fq-primary-soft: rgba(15, 103, 196, 0.12);
  --fq-success-soft: rgba(46, 168, 61, 0.14);
  --fq-operational-primary: #0f67c4;
  --fq-operational-secondary: #10adc5;
  --bs-primary: var(--fq-blue-700);
  --bs-primary-rgb: 15, 103, 196;
  --bs-secondary: var(--fq-slate-700);
  --bs-secondary-rgb: 82, 102, 121;
  --bs-success: var(--fq-green-600);
  --bs-success-rgb: 46, 168, 61;
  --bs-info: var(--fq-cyan-500);
  --bs-info-rgb: 16, 173, 197;
  --bs-warning: var(--fq-warning);
  --bs-warning-rgb: 220, 162, 37;
  --bs-danger: var(--fq-danger);
  --bs-danger-rgb: 207, 61, 55;
  --bs-light: var(--fq-bg-soft);
  --bs-light-rgb: 248, 252, 253;
  --bs-body-bg: var(--fq-bg);
  --bs-body-color: var(--fq-slate-900);
  --bs-border-color: var(--fq-border);
  --bs-link-color: var(--fq-blue-700);
  --bs-link-hover-color: var(--fq-blue-600);
  --bs-emphasis-color: var(--fq-slate-900);
  --bs-border-radius: 0.95rem;
  --bs-border-radius-sm: 0.75rem;
  --bs-border-radius-lg: 1.2rem;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--fq-slate-900);
  background:
    radial-gradient(circle at top right, rgba(16, 173, 197, 0.16), transparent 24%),
    radial-gradient(circle at left top, rgba(88, 191, 63, 0.12), transparent 18%),
    linear-gradient(180deg, #fbfeff 0%, var(--fq-bg) 100%);
  min-height: 100vh;
}

body.bg-light {
  background:
    radial-gradient(circle at top right, rgba(16, 173, 197, 0.16), transparent 24%),
    radial-gradient(circle at left top, rgba(88, 191, 63, 0.12), transparent 18%),
    linear-gradient(180deg, #fbfeff 0%, var(--fq-bg) 100%) !important;
}

a {
  color: var(--fq-blue-700);
  text-decoration-color: rgba(15, 103, 196, 0.35);
}

a:hover {
  color: var(--fq-blue-600);
}

.text-muted,
.text-body-secondary {
  color: var(--fq-slate-500) !important;
}

.shadow-sm,
.shadow {
  box-shadow: var(--fq-shadow) !important;
}

.card,
.modal-content,
.dropdown-menu,
.filter-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--fq-border);
  box-shadow: var(--fq-shadow);
}

.dropdown-item {
  border-radius: 0.7rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--fq-info-soft);
  color: var(--fq-blue-900);
}

.btn {
  border-radius: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn:focus,
.btn-close:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(16, 173, 197, 0.18);
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary,
.btn-check + .btn-outline-primary:active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--fq-operational-primary), var(--fq-operational-secondary));
  box-shadow: var(--fq-glow);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0a4ea4, var(--fq-operational-secondary));
}

.btn-outline-primary {
  color: var(--fq-operational-primary);
  border-color: rgba(15, 103, 196, 0.35);
  background: rgba(255, 255, 255, 0.72);
}

.btn-secondary,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--fq-slate-700), var(--fq-slate-500));
}

.btn-outline-secondary {
  color: var(--fq-slate-700);
  border-color: rgba(82, 102, 121, 0.3);
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline-success {
  color: var(--fq-green-600);
  border-color: rgba(46, 168, 61, 0.38);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--fq-green-600), var(--fq-green-500));
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  color: #fff;
  border-color: transparent;
}

.form-control,
.form-select {
  border-color: var(--fq-border-strong);
  background-color: rgba(255, 255, 255, 0.92);
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(16, 173, 197, 0.4);
}

.form-check-input:checked {
  background-color: var(--fq-blue-700);
  border-color: var(--fq-blue-700);
}

input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.45rem 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--fq-operational-primary), var(--fq-operational-secondary));
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(16, 173, 197, 0.04);
  --bs-table-hover-bg: rgba(15, 103, 196, 0.06);
}

.table thead th {
  background: linear-gradient(180deg, var(--fq-surface-alt), rgba(255, 255, 255, 0.95));
  color: var(--fq-slate-700);
  border-bottom-color: var(--fq-border);
}

.table > :not(caption) > * > * {
  border-bottom-color: rgba(191, 210, 220, 0.7);
}

.badge {
  font-weight: 600;
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--fq-blue-700), var(--fq-cyan-500)) !important;
}

.badge.bg-secondary {
  background: linear-gradient(135deg, var(--fq-slate-700), var(--fq-slate-500)) !important;
}

.alert-info {
  color: var(--fq-blue-900);
  background: var(--fq-info-soft);
  border-color: rgba(16, 173, 197, 0.22);
}

.alert-light {
  color: var(--fq-slate-700);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--fq-border);
}

table td,
table th {
  vertical-align: middle;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--fq-border-strong);
  background: var(--fq-surface-alt);
  color: var(--fq-slate-700);
}

.status-pill--pend {
  background: linear-gradient(135deg, var(--fq-blue-700), var(--fq-cyan-500));
  border-color: transparent;
  color: #fff;
}

.status-pill--prog {
  background: rgba(16, 173, 197, 0.16);
  border-color: rgba(16, 173, 197, 0.28);
  color: var(--fq-blue-900);
}

.status-pill--done {
  background: linear-gradient(135deg, var(--fq-green-600), var(--fq-green-500));
  border-color: transparent;
  color: #fff;
}

.status-pill--overdue {
  background: linear-gradient(135deg, var(--fq-danger), #e06761);
  border-color: transparent;
  color: #fff;
}

.dashboard-header,
.dashboard-latest-card {
  --fq-blue-700: var(--fq-operational-primary);
  --fq-cyan-500: var(--fq-operational-secondary);
  --bs-primary: var(--fq-operational-primary);
  --bs-info: var(--fq-operational-secondary);
}

.dashboard-header {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.dashboard-hero {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
}

.dashboard-title-block {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.dashboard-title-icon {
  align-items: center;
  background: #eaf2ff;
  border-radius: 8px;
  color: var(--fq-blue-700);
  display: inline-flex;
  flex: 0 0 auto;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.dashboard-title-icon svg,
.dashboard-action-btn svg,
.dashboard-summary-icon svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 28px;
}

.dashboard-title {
  color: #14243d;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.dashboard-subtitle {
  color: var(--fq-slate-500);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.dashboard-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.dashboard-action-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--fq-border-strong);
  border-radius: 8px;
  color: var(--fq-blue-700);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
}

.dashboard-action-btn svg {
  height: 22px;
  width: 22px;
}

.dashboard-action-btn:hover,
.dashboard-action-btn:focus {
  background: #eef6ff;
  border-color: rgba(15, 103, 196, 0.35);
  color: var(--fq-blue-700);
}

.dashboard-action-btn-primary,
.dashboard-action-btn-primary:hover,
.dashboard-action-btn-primary:focus {
  background: #075cc7;
  border-color: #075cc7;
  box-shadow: 0 12px 22px rgba(7, 92, 199, 0.22);
  color: #fff;
}

.brand-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

.print-logo {
  max-height: 56px;
  width: auto;
  display: block;
}

.navbar-logo {
  max-height: 36px;
  width: auto;
  display: block;
}

.navbar-logo--light {
  filter: none;
}

.brand-title {
  letter-spacing: 0.4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fq-slate-900);
}

.navbar-main {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: rgba(191, 210, 220, 0.82) !important;
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1030;
}

.header-inner {
  width: calc(100% - 100px);
  max-width: none;
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Shared application page geometry.
 *
 * The base template defaults to Wide. Focused and Special remain explicit so
 * short forms and workspace editors do not inherit a stretched layout by
 * accident. Module shells consume the same tokens below instead of keeping a
 * parallel width system.
 */
:root {
  --fq-page-inline-space: clamp(2rem, 6vw, 6rem);
  --fq-page-wide-max: none;
  --fq-page-focused-max: 960px;
}

.app-page,
.fast-response-main > nav[aria-label="breadcrumb"],
.fast-response-main > .mb-3 {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--fq-page-max, var(--fq-page-wide-max));
  min-width: 0;
  width: min(calc(100% - var(--fq-page-inline-space)), var(--fq-page-max, var(--fq-page-wide-max)));
}

.app-page--wide,
.app-page--focused {
  --fq-page-max: none;
  max-width: none;
  width: calc(100% - 100px);
}

.app-page--special {
  --fq-page-max: none;
  width: calc(100% - 100px);
}

.app-page--print {
  --fq-page-max: 1320px;
}

.app-page > *,
.app-page .table-responsive,
.app-page-host,
.fr-module-content {
  min-width: 0;
}
.navbar-actions {
  margin-left: auto;
}

.navbar-secondary-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(16, 173, 197, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 250, 251, 0.9));
}

.navbar-logo-secondary {
  max-height: 42px;
  width: auto;
  display: block;
}

.navbar .nav-link {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  color: var(--fq-slate-700);
  opacity: 0.92;
  transition: all 0.15s ease;
}

.navbar .nav-link:hover {
  opacity: 1;
  background: var(--fq-info-soft);
  color: var(--fq-blue-900);
}

.navbar .nav-link.active {
  opacity: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--fq-blue-700), var(--fq-cyan-500));
  box-shadow: var(--fq-glow);
}

.navbar .nav-primary {
  font-weight: 700;
}

.navbar .nav-primary.active {
  color: #fff;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

.pending-badge--alert {
  background: var(--fq-danger);
  color: #fff;
}

.pending-badge--neutral {
  background: var(--fq-surface-alt);
  color: var(--fq-slate-700);
}

.user-menu {
  opacity: 0.9;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.pending-page {
  padding-top: 0.25rem;
}

.pending-card {
  border-left: 4px solid transparent;
}

.pending-card--alert {
  border-left-color: var(--fq-danger);
  background: var(--fq-danger-soft);
}

.pending-card--approval {
  border-left-color: var(--fq-primary);
  background: rgba(13, 110, 253, 0.08);
}

.pending-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--fq-slate-500);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pending-table .card-header {
  background: linear-gradient(180deg, var(--fq-surface-alt), rgba(255, 255, 255, 0.92));
}

.pending-table .table thead th {
  font-weight: 600;
}

.pending-table .table td,
.pending-table .table th {
  padding: 0.75rem 0.8rem;
  vertical-align: middle;
}

.action-status {
  font-weight: 600;
}

.action-status--open {
  background: var(--fq-slate-700);
}

.action-status--progress {
  background: rgba(16, 173, 197, 0.18);
  color: var(--fq-blue-900);
}

.action-status--done {
  background: var(--fq-green-600);
}

.action-status--canceled {
  background: var(--fq-border-strong);
  color: var(--fq-slate-900);
}

.evidence-item {
  width: 140px;
}

.evidence-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.attachment-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--fq-border);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--fq-slate-500);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.attachment-link:hover {
  color: var(--fq-blue-700);
  border-color: rgba(16, 173, 197, 0.28);
  background: var(--fq-info-soft);
}

.attachment-link:focus-visible {
  outline: 2px solid var(--fq-blue-700);
  outline-offset: 2px;
}

.attachment-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.attachment-name {
  flex: 1;
  min-width: 0;
}

.ishikawa-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--fq-surface);
  border-color: var(--fq-border);
}

.ishikawa-item--selected {
  background: linear-gradient(180deg, rgba(46, 168, 61, 0.12), rgba(16, 173, 197, 0.08));
  border-left: 4px solid var(--fq-green-600);
  box-shadow: inset 0 0 0 1px rgba(46, 168, 61, 0.16);
}

.ishikawa-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ishikawa-item__attachments a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ishikawa-item__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 132px;
}

.stage-cause-page {
  --stage-cause-radius: 1rem;
}

.stage-cause-title {
  color: #071b3a;
  font-size: 1.85rem;
  font-weight: 750;
  line-height: 1.15;
}

.stage-cause-subtitle {
  color: var(--fq-slate-500);
  font-size: 0.9rem;
}

.stage-cause-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stage-cause-action-btn,
.stage-cause-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.stage-cause-action-btn {
  min-width: 116px;
  padding-inline: 1.05rem;
}

.stage-cause-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1;
  font-weight: 700;
}

.stage-cause-validation > .card {
  overflow: hidden;
  border: 1px solid var(--fq-border) !important;
  border-left: 4px solid var(--fq-green-600) !important;
  border-radius: var(--stage-cause-radius);
  box-shadow: 0 12px 30px rgba(31, 55, 82, 0.12) !important;
}

.stage-cause-validation > .card > .card-header {
  padding: 1rem 1.25rem 0;
  border-bottom: 0;
  background: #fff !important;
}

.stage-cause-validation > .card > .card-header strong {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #14243d;
}

.stage-cause-validation > .card > .card-header strong::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--fq-green-600), var(--fq-cyan-500));
}

.stage-cause-validation > .card > .card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.stage-cause-validation .badge.bg-light {
  color: #6f5413 !important;
  border: 1px solid rgba(220, 162, 37, 0.25);
  background: rgba(220, 162, 37, 0.16) !important;
}

.stage-cause-validation .btn-success {
  min-width: 112px;
}

.stage-cause-tabs-shell {
  overflow: hidden;
  border: 1px solid var(--fq-border) !important;
  border-radius: var(--stage-cause-radius);
  box-shadow: 0 12px 30px rgba(31, 55, 82, 0.10) !important;
}

.stage-cause-tabs {
  gap: 1.05rem;
  border-bottom: 0;
}

.stage-cause-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--fq-slate-700);
  background: transparent;
  font-weight: 650;
}

.stage-cause-tabs .nav-link:hover {
  color: var(--fq-blue-700);
  background: rgba(15, 103, 196, 0.05);
}

.stage-cause-tabs .nav-link.active {
  color: var(--fq-blue-700);
  border-bottom-color: var(--fq-blue-700);
  background: transparent;
  box-shadow: none;
}

.stage-cause-tabs .nav-link.stage-cause-tab-error:not(.active) {
  color: var(--fq-danger);
  border-bottom-color: var(--fq-danger);
  background: var(--fq-danger-soft);
}

.stage-cause-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--fq-blue-700);
  font-weight: 700;
}

.stage-cause-section-card {
  overflow: hidden;
  border: 1px solid var(--fq-border) !important;
  border-radius: var(--stage-cause-radius);
  box-shadow: 0 12px 30px rgba(31, 55, 82, 0.10) !important;
}

.stage-cause-section-card.is-complete {
  border-color: rgba(46, 168, 61, 0.9) !important;
  box-shadow:
    0 12px 30px rgba(31, 55, 82, 0.10),
    inset 0 0 0 1px rgba(46, 168, 61, 0.16) !important;
}

.stage-cause-section-card.is-complete .stage-cause-section-header {
  background: linear-gradient(180deg, rgba(46, 168, 61, 0.08), #fff) !important;
}

.stage-cause-section-card.is-complete .stage-cause-section-heading::after {
  content: "Concluída";
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: var(--fq-green-600);
  background: var(--fq-success-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.stage-cause-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom-color: var(--fq-border);
}

.stage-cause-section-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #14243d;
}

.stage-cause-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  color: var(--fq-blue-700);
  background: rgba(15, 103, 196, 0.10);
  font-weight: 700;
}

.stage-cause-section-chevron {
  color: var(--fq-slate-700);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.16s ease;
}

.stage-cause-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.6rem;
  color: var(--fq-slate-700);
  background: transparent;
}

.stage-cause-section-toggle:hover,
.stage-cause-section-toggle:focus {
  color: var(--fq-blue-700);
  background: rgba(15, 103, 196, 0.08);
}

.stage-cause-section-toggle:focus-visible {
  outline: 2px solid rgba(15, 103, 196, 0.35);
  outline-offset: 2px;
}

.stage-cause-section-card.is-collapsed .stage-cause-section-chevron {
  transform: rotate(180deg);
}

.stage-cause-page .form-label {
  color: var(--fq-slate-700);
  font-size: 0.84rem;
  font-weight: 650;
}

.stage-cause-page .form-control,
.stage-cause-page .form-select {
  border-radius: 0.65rem;
}

.stage-cause-inline-card {
  border: 1px solid var(--fq-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.76);
}

[data-stage-cause-section][hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .stage-cause-header {
    flex-direction: column;
  }

  .stage-cause-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .stage-cause-action-btn {
    flex: 1 1 auto;
  }

  .stage-cause-tabs {
    gap: 0.4rem;
  }
}

.complaint-table thead th {
  white-space: nowrap;
}

.complaint-table .th-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.complaint-table .filter-btn {
  padding: 0.15rem 0.35rem;
  line-height: 1;
}

.complaint-table .filter-menu {
  min-width: 260px;
  max-width: 340px;
  position: absolute;
  z-index: 1055;
  background: #fff;
  border: 1px solid var(--fq-border);
  border-radius: 0.25rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: none;
}

.complaint-table .filter-menu.show {
  display: block;
}

.complaint-table .filter-menu.floating {
  position: fixed;
  width: 300px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.filter-menu {
  min-width: 260px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--fq-border);
  border-radius: 0.25rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: none;
}

.filter-menu.show {
  display: block;
}

.filter-menu.floating {
  position: fixed;
  width: 300px;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.complaint-table .filter-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--fq-border);
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.complaint-table th.filter-active .filter-icon {
  color: var(--fq-blue-700);
  font-weight: 700;
}

.dashboard-table .th-wrap,
.dashboard-micro-table .th-wrap {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  justify-content: center;
  position: relative;
}

.dashboard-table .filter-btn,
.dashboard-micro-table .filter-btn {
  border-radius: 999px;
  line-height: 1;
  padding: 0.15rem 0.35rem;
}

.dashboard-table th.filter-active .filter-icon,
.dashboard-micro-table th.filter-active .filter-icon {
  color: var(--fq-blue-700);
  font-weight: 800;
}

.filter-menu .filter-list {
  border: 1px solid var(--fq-border);
  border-radius: 0.25rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
}
.legend-bar {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--fq-border);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20, 90, 126, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 2rem;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  color: #40516a;
  font-weight: 600;
  gap: 0.75rem;
}

.legend-note {
  color: var(--fq-slate-500);
  font-weight: 600;
  margin-left: auto;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: 0 0 auto;
  font-size: 0;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 35, 63, 0.08);
}

.dashboard-summary-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-summary-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--fq-border);
  border-radius: 8px;
  box-shadow: var(--fq-shadow);
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: auto 1fr;
  min-height: 132px;
  overflow: hidden;
  padding: 1.35rem 1.45rem 1.25rem;
  position: relative;
}

.dashboard-summary-icon {
  align-items: center;
  align-self: center;
  border-radius: 50%;
  display: inline-flex;
  grid-row: span 2;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.dashboard-summary-icon svg {
  height: 34px;
  width: 34px;
}

.dashboard-summary-label {
  color: var(--fq-slate-700);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-summary-value {
  color: #101d34;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 0.25rem;
}

.dashboard-summary-unit {
  color: var(--fq-slate-500);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0.2rem;
}

.dashboard-summary-bar {
  border-radius: 999px;
  bottom: 1rem;
  height: 5px;
  left: 1.45rem;
  position: absolute;
  right: 1.45rem;
}

.dashboard-summary-card-danger {
  --summary-color: #ff1529;
  --summary-soft: #ffe9eb;
}

.dashboard-summary-card-warning {
  --summary-color: #ffc20e;
  --summary-soft: #fff5d8;
}

.dashboard-summary-card-success {
  --summary-color: #22b94f;
  --summary-soft: #e8f8ed;
}

.dashboard-summary-card-info {
  --summary-color: #0b6bdc;
  --summary-soft: #e7f1ff;
}

.dashboard-summary-card .dashboard-summary-icon {
  background: var(--summary-soft);
  color: var(--summary-color);
}

.dashboard-summary-card .dashboard-summary-bar {
  background: var(--summary-color);
}

@media (max-width: 1199.98px) {
  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions {
    justify-content: flex-start;
    width: 100%;
  }

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

  .legend-note {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .dashboard-title-icon {
    height: 50px;
    width: 50px;
  }

  .dashboard-title {
    font-size: 1.55rem;
  }

  .dashboard-actions,
  .dashboard-action-btn {
    width: 100%;
  }

  .dashboard-action-btn {
    justify-content: center;
  }

  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-card {
    min-height: 120px;
  }

  .legend-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.dashboard-table-scroll {
  max-height: min(680px, calc(100vh - 220px));
  overflow: auto;
  scrollbar-gutter: stable;
}

.dashboard-latest-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 58px;
}

.dashboard-latest-header strong {
  color: #14243d;
  font-size: 1rem;
}

.dashboard-view-toggle {
  align-items: center;
  background: #eef4fb;
  border: 1px solid var(--fq-border);
  border-radius: 8px;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
}

.dashboard-view-toggle-btn {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--fq-slate-700);
  font-size: 0.86rem;
  font-weight: 750;
  min-width: 70px;
  padding: 0.4rem 0.75rem;
}

.dashboard-view-toggle-btn.active {
  background: #fff;
  box-shadow: 0 4px 10px rgba(20, 90, 126, 0.10);
  color: var(--fq-blue-700);
}

.dashboard-view-panel[hidden] {
  display: none !important;
}

.dashboard-table {
  table-layout: fixed;
  min-width: 100%;
  width: max-content !important;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0.85rem 0.7rem;
  font-size: 0.85rem;
  white-space: normal;
}

.dashboard-table th {
  vertical-align: bottom;
  min-height: 74px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-break: normal;
}

.dashboard-table-scroll .dashboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
}

.dashboard-micro-scroll {
  max-height: min(680px, calc(100vh - 220px));
  overflow: auto;
  scrollbar-gutter: stable;
}

.hub-main {
  padding-left: 0;
  padding-right: 0;
}

.hub-main > nav[aria-label="breadcrumb"],
.hub-page-container {
  width: calc(100% - 100px);
  max-width: none;
  margin-inline: auto;
}

.hub-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hub-page-title-block {
  min-width: 0;
}

.hub-module-grid {
  display: grid;
  gap: clamp(16px, 1.2vw, 24px);
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: stretch;
}

.hub-module-card {
  height: 100%;
  min-width: 0;
}

.hub-module-card .card-body {
  min-height: 100%;
}

.hub-module-card__header {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
}

.hub-module-card__badge {
  flex: 0 0 auto;
  letter-spacing: 0.02em;
}

.hub-module-card__title {
  color: #223044;
  font-size: 1rem;
  line-height: 1.2;
  min-width: 0;
}

.hub-module-card__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.45;
  margin-bottom: 0.9rem;
  min-height: calc(1em * 1.45 * 3);
  overflow: hidden;
}

.hub-module-card__summary {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-module-card__summary-item {
  min-width: 0;
}

.hub-module-card__action {
  margin-top: auto;
}

@media (min-width: 576px) {
  .hub-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hub-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .hub-module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 2560px) {
  .hub-module-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hub-main > nav[aria-label="breadcrumb"] {
    width: calc(100% - 1.5rem);
@media (max-width: 991.98px) {
  .hub-main > nav[aria-label="breadcrumb"],
  .hub-page-container {
    width: calc(100% - 1.5rem);
  }
}
  }

  .hub-page-container {
    width: calc(100% - 1.5rem);
  }
}

.dashboard-micro-table {
  min-width: 1080px;
}

.dashboard-micro-table thead th {
  color: #40516a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.85rem 0.7rem;
  position: sticky;
  top: 0;
  white-space: nowrap;
  z-index: 5;
}

.dashboard-micro-table tbody td {
  color: #40516a;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.8rem 0.7rem;
  vertical-align: middle;
}

.dashboard-micro-table tbody tr {
  border-bottom: 1px solid rgba(191, 210, 220, 0.7);
}

.dashboard-micro-table tbody tr:hover {
  background: rgba(15, 103, 196, 0.04);
}

.micro-case-number {
  color: #233649 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.micro-product-cell {
  min-width: 165px;
}

.micro-product-cell > div:first-child {
  font-size: 0.84rem;
  line-height: 1.15;
}

.micro-product-cell .small {
  display: block;
  font-size: 0.76rem !important;
  line-height: 1.2;
}

.micro-stage-name {
  color: #233649;
  font-weight: 750;
  line-height: 1.15;
  max-width: 130px;
  font-size: 0.84rem;
}

.micro-stage-status {
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.micro-stage-status-r { color: var(--fq-danger); }
.micro-stage-status-y { color: var(--fq-warning); }
.micro-stage-status-g { color: var(--fq-green-600); }
.micro-stage-status-b { color: var(--fq-blue-700); }
.micro-stage-status-k { color: var(--fq-slate-900); }
.micro-stage-status-muted { color: var(--fq-slate-500); }

.micro-responsible {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  white-space: nowrap;
}

.micro-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--fq-blue-700), var(--fq-blue-600));
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.micro-progress-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(26px, 1fr));
  min-width: 255px;
  padding-top: 0.1rem;
}

.micro-progress-step {
  align-items: center;
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  position: relative;
}

.micro-progress-step::before {
  background: #cfd9e6;
  content: "";
  height: 2px;
  left: -50%;
  position: absolute;
  top: 24px;
  width: 100%;
  z-index: 0;
}

.micro-progress-step:first-child::before {
  display: none;
}

.micro-progress-label {
  color: #63738a;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.micro-progress-dot {
  background: #9aa8bb;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 35, 63, 0.08);
  height: 10px;
  position: relative;
  width: 10px;
  z-index: 1;
}

.micro-progress-step-r::before,
.micro-progress-step-r .micro-progress-dot {
  background: #ff1f2d;
}

.micro-progress-step-y::before,
.micro-progress-step-y .micro-progress-dot {
  background: #ffc20e;
}

.micro-progress-step-g::before,
.micro-progress-step-g .micro-progress-dot {
  background: #1db84d;
}

.micro-progress-step-b::before,
.micro-progress-step-b .micro-progress-dot {
  background: var(--fq-blue-700);
}

.micro-progress-step-k::before,
.micro-progress-step-k .micro-progress-dot {
  background: var(--fq-slate-900);
}

.micro-row-action {
  align-items: center;
  border-radius: 50%;
  color: #1c2a3d;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 28px;
}

.micro-row-action:hover,
.micro-row-action:focus {
  background: rgba(15, 103, 196, 0.10);
  color: var(--fq-blue-700);
}

.stage-name {
  display: block;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}

.stage-deadline {
  display: block;
  font-size: 0.7rem;
  color: var(--fq-slate-500);
  line-height: 1.1;
}

.dashboard-table th.stage-head {
  min-width: 160px;
  width: 160px;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.dashboard-table th.stage-head-wide {
  min-width: 160px;
  width: 160px;
}

.dashboard-table col.col-id {
  width: 120px;
}

.dashboard-table col.col-client {
  width: 160px;
}

.dashboard-table col.col-product {
  width: 180px;
}

.dashboard-table col.col-origin {
  width: 140px;
}

.dashboard-table col.col-description {
  width: 240px;
}

.dashboard-table col.col-date {
  width: 110px;
}

.dashboard-table col.col-status {
  width: 130px;
}

.dashboard-table col.col-stage {
  width: 160px;
}

.dashboard-table td.stage-cell {
  min-width: 160px;
  width: 160px;
}

.dashboard-table col.col-action {
  width: 90px;
}

.stage-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.dashboard-table .stage-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-table .stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 26px;
  padding: 0 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid var(--fq-border-strong);
  background: var(--fq-surface-alt);
  color: var(--fq-slate-900);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.status-r {
  background: var(--fq-danger);
  color: #fff;
}

.status-y {
  background: #ffc107;
}

.status-g {
  background: var(--fq-green-600);
  color: #fff;
}

.validation-reject summary {
  list-style: none;
}

.validation-reject summary::-webkit-details-marker {
  display: none;
}

.status-b {
  background: var(--fq-blue-700);
  color: #fff;
}

.status-k {
  background: var(--fq-slate-900);
  color: #fff;
}

.kpi-section .kpi-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 251, 0.94));
}

.kpi-section .kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fq-slate-900);
}

.kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--fq-border);
  background: var(--fq-surface-alt);
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.kpi-metrics li + li {
  margin-top: 0.35rem;
}

.kpi-bars {
  display: grid;
  gap: 0.5rem;
}

.kpi-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 2.5fr 40px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
}

.kpi-bar-label {
  color: var(--fq-slate-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-bar-track {
  background: rgba(191, 210, 220, 0.55);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.kpi-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--fq-blue-700), var(--fq-cyan-500));
  border-radius: 999px;
}

.kpi-bar-value {
  text-align: right;
  color: var(--fq-slate-900);
  font-weight: 600;
}

.bar-r .kpi-bar-fill {
  background: #dc3545;
}

.bar-y .kpi-bar-fill {
  background: #ffc107;
}

.bar-g .kpi-bar-fill {
  background: linear-gradient(135deg, var(--fq-green-600), var(--fq-green-500));
}

.bar-b .kpi-bar-fill {
  background: linear-gradient(135deg, var(--fq-blue-700), var(--fq-blue-600));
}

.bar-k .kpi-bar-fill {
  background: linear-gradient(135deg, var(--fq-slate-900), var(--fq-slate-700));
}

.print-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--fq-border);
}

.print-footer {
  font-size: 0.85rem;
  color: var(--fq-slate-500);
}

.no-access-link {
  cursor: not-allowed;
  opacity: 0.6;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(82, 102, 121, 0.45);
}

.breadcrumb-item.active,
.breadcrumb-item a {
  color: var(--fq-slate-700);
}

.breadcrumb-item a:hover {
  color: var(--fq-blue-700);
}

.tabulator {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--fq-border);
  border-radius: 1rem;
  box-shadow: var(--fq-shadow);
  color: var(--fq-slate-900);
}

.tabulator .tabulator-header {
  border-bottom: 1px solid var(--fq-border);
  background: linear-gradient(180deg, var(--fq-surface-alt), rgba(255, 255, 255, 0.98));
  color: var(--fq-slate-700);
}

.tabulator .tabulator-header .tabulator-col,
.tabulator .tabulator-row {
  background: transparent;
}

.tabulator .tabulator-header .tabulator-col {
  border-right-color: rgba(191, 210, 220, 0.8);
}

.tabulator .tabulator-row {
  border-bottom-color: rgba(191, 210, 220, 0.55);
}

.tabulator .tabulator-row:nth-child(even) {
  background: rgba(16, 173, 197, 0.03);
}

.tabulator .tabulator-row.tabulator-selected {
  background: rgba(15, 103, 196, 0.1);
}

.tabulator .tabulator-cell {
  border-right-color: rgba(191, 210, 220, 0.5);
}

.tabulator .tabulator-cell:focus,
.tabulator .tabulator-row.tabulator-selectable:hover {
  outline: none;
  background: rgba(16, 173, 197, 0.08);
}

.tabulator .tabulator-col.tabulator-sortable:hover {
  background: rgba(16, 173, 197, 0.08);
}

.tabulator .tabulator-validation-fail,
.cell-invalid {
  background: var(--fq-danger-soft) !important;
}

.badge-dirty {
  background: var(--fq-warning);
  color: #1b1b1b;
}

.login-page {
  position: relative;
}

.login-shell {
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 229, 236, 0.9);
  box-shadow: 0 30px 60px rgba(20, 90, 126, 0.16);
}

.login-brand-panel {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(88, 191, 63, 0.22), transparent 38%),
    linear-gradient(160deg, rgba(10, 78, 164, 0.96), rgba(16, 173, 197, 0.92));
  color: #fff;
}

.login-brand-wrap {
  padding: 2.5rem 2.2rem;
}

.login-logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(6, 42, 77, 0.18);
}

.login-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  opacity: 0.75;
}

.login-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  filter: none;
}

.login-card {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
}

.login-card .card-body {
  padding: 2.25rem;
}

.login-helper {
  color: var(--fq-slate-500);
}

@media print {
  .no-print {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .header-inner {
    width: calc(100% - 1.5rem);
  }

  .navbar-actions {
    margin-left: 0;
    align-items: flex-start;
  }

  .navbar-logo-secondary {
    max-height: 34px;
  }

  .login-brand-panel {
    display: none !important;
  }
}

/* Fast Response module shell */
.fast-response-body {
  background: #f4f8fb !important;
}

.fast-response-main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.fast-response-main > nav[aria-label="breadcrumb"],
.fast-response-main > .mb-3 {
  --fq-page-max: none;
  max-width: none;
  width: calc(100% - 100px);
}

.fast-response-main > nav[aria-label="breadcrumb"] {
  margin-bottom: 0.8rem !important;
}

.fr-module-layout {
  align-items: start;
  display: grid;
  gap: clamp(1rem, 1.4vw, 1.5rem);
  grid-template-columns: 224px minmax(0, 1fr);
}

.fr-module-sidebar {
  min-width: 0;
  position: sticky;
  top: 84px;
  z-index: 20;
}

.fr-module-sidebar-inner {
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(28, 66, 98, 0.07);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 108px);
  min-height: min(620px, calc(100vh - 108px));
  overflow-y: auto;
  padding: 0.85rem;
}

.fr-module-brand,
.fr-module-mobile-brand {
  align-items: center;
  color: #152942;
  display: flex;
  gap: 0.7rem;
  text-decoration: none;
}

.fr-module-brand {
  border-bottom: 1px solid #e7edf4;
  padding: 0.2rem 0.25rem 1rem;
}

.fr-module-brand:hover,
.fr-module-brand:focus {
  color: #0f67c4;
}

.fr-module-brand-mark {
  align-items: center;
  background: #e9f2ff;
  border: 1px solid #cfe1fa;
  border-radius: 7px;
  color: #0f67c4;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 0.78rem;
  font-weight: 850;
  height: 38px;
  justify-content: center;
}

.fr-module-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fr-module-brand-copy strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.fr-module-brand-copy small {
  color: #6c7d91;
  font-size: 0.7rem;
  line-height: 1.3;
  margin-top: 0.1rem;
}

.fr-module-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 0.85rem;
}

.fr-module-nav-group {
  display: grid;
  gap: 0.22rem;
}

.fr-module-nav-group-secondary {
  border-top: 1px solid #e7edf4;
  margin-top: auto;
  padding-top: 0.85rem;
}

.fr-module-nav-label {
  color: #8a98a9;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem 0.35rem;
  text-transform: uppercase;
}

.fr-module-nav-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #53667c;
  display: flex;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.68rem;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fr-module-nav-link:hover,
.fr-module-nav-link:focus {
  background: #f2f7fc;
  border-color: #dbe8f5;
  color: #174f8c;
}

.fr-module-nav-link.active {
  background: #eaf3ff;
  border-color: #cbdff8;
  color: #0f67c4;
}

.fr-module-icon {
  flex: 0 0 19px;
  height: 19px;
  width: 19px;
}

.fr-module-content {
  min-width: 0;
  width: 100%;
}

.fr-module-mobile-bar {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  min-height: 54px;
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
}

.fr-module-mobile-brand {
  font-size: 0.9rem;
  font-weight: 800;
}

.fr-module-mobile-brand .fr-module-brand-mark {
  flex-basis: 34px;
  height: 34px;
}

.fr-module-menu-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d9e8;
  border-radius: 7px;
  color: #32506e;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.fr-page-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.fr-page-header-copy {
  min-width: 0;
}

.fr-page-title {
  color: #132640;
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.fr-page-subtitle {
  color: #687a8f;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
}

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

.fr-page-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
}

.fr-surface {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(25, 63, 94, 0.06);
  overflow: hidden;
}

.fr-surface-header {
  align-items: center;
  border-bottom: 1px solid #e4ebf2;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 54px;
  padding: 0.75rem 1rem;
}

.fr-surface-title {
  color: #1a2e48;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.fr-workspace-summary {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.fr-workspace-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 88px;
  padding: 0.85rem 1rem;
}

.fr-workspace-kpi-icon {
  align-items: center;
  background: var(--kpi-soft, #edf4fc);
  border-radius: 7px;
  color: var(--kpi-color, #0f67c4);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.fr-workspace-kpi-danger {
  --kpi-color: #d83d3d;
  --kpi-soft: #fff0f0;
}

.fr-workspace-kpi-warning {
  --kpi-color: #b87905;
  --kpi-soft: #fff6dd;
}

.fr-workspace-kpi-info {
  --kpi-color: #176fc5;
  --kpi-soft: #eaf4ff;
}

.fr-workspace-kpi-label {
  color: #64768b;
  font-size: 0.76rem;
  font-weight: 700;
}

.fr-workspace-kpi-value {
  color: #14253e;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
  margin-top: 0.15rem;
}

.fr-filter-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fr-filter-tab {
  background: #fff;
  border: 1px solid #cfddea;
  border-radius: 7px;
  color: #51657b;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
}

.fr-filter-tab:hover,
.fr-filter-tab:focus,
.fr-filter-tab.active {
  background: #eaf3ff;
  border-color: #bcd5f3;
  color: #0f67c4;
}

.fr-workspace-table-wrap {
  max-height: min(630px, calc(100vh - 300px));
  overflow: auto;
  scrollbar-gutter: stable;
}

.fr-workspace-table {
  min-width: 880px;
}

.fr-workspace-table thead th {
  font-size: 0.76rem;
  position: sticky;
  top: 0;
  z-index: 4;
}

.fr-workspace-table tbody td {
  font-size: 0.82rem;
  padding-bottom: 0.72rem;
  padding-top: 0.72rem;
}

.fr-status-dot {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  margin-right: 0.35rem;
  width: 9px;
}

.fr-status-dot-r { background: #dc3d3d; }
.fr-status-dot-y { background: #e7a817; }
.fr-status-dot-b { background: #2778c7; }
.fr-status-dot-k { background: #283342; }
.fr-status-dot-g { background: #24a653; }

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

.fr-resource-grid-single {
  grid-template-columns: minmax(280px, 1fr);
  max-width: 360px;
}

.fr-resource-card {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1rem;
}

.fr-resource-card-icon {
  align-items: center;
  background: #edf5ff;
  border-radius: 7px;
  color: #0f67c4;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.fr-resource-card h2 {
  color: #172b45;
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0.85rem 0 0.35rem;
}

.fr-resource-card p {
  color: #6b7d91;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.fr-resource-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.fr-resource-format {
  background: #f3f6f9;
  border: 1px solid #dce5ed;
  border-radius: 6px;
  color: #64758a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.45rem;
}

.fr-resource-card .btn {
  margin-top: auto;
}

.fr-help-section {
  margin-top: 1rem;
  padding: 1rem;
}

.fr-help-section h2 {
  color: #172b45;
  font-size: 1rem;
  font-weight: 800;
}

.complaint-list-card {
  border: 1px solid #dce6ef !important;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(25, 63, 94, 0.06) !important;
  overflow: hidden;
}

.complaint-list-card .table-responsive {
  max-height: min(700px, calc(100vh - 230px));
  overflow: auto;
}

.complaint-list-card .complaint-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
}

.fr-settings-header {
  align-items: center;
}

.fr-unsaved-warning {
  color: #9a6700;
  font-size: 0.78rem;
  font-weight: 700;
}

.fr-settings-tabs {
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 8px 8px 0 0;
  display: flex;
  overflow-x: auto;
  padding: 0 0.75rem;
}

.fr-settings-tab {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #536a83;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 0.9rem 1rem 0.75rem;
  white-space: nowrap;
}

.fr-settings-tab.active {
  border-bottom-color: #1677d2;
  color: #1267b5;
}

.fr-settings-panel {
  display: none;
}

.fr-settings-panel.active {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.fr-settings-section-copy {
  color: #6b7d91;
  font-size: 0.78rem;
  margin: 0.25rem 0 0;
}

.fr-settings-table-wrap {
  border-top: 1px solid #e4ebf2;
}

.fr-settings-table {
  color: #263d55;
  font-size: 0.78rem;
  min-width: 850px;
  vertical-align: middle;
}

.fr-stage-settings-table {
  min-width: 1100px;
}

.fr-settings-table > :not(caption) > * > * {
  padding: 0.72rem 0.8rem;
}

.fr-settings-table thead th {
  background: #f7fafc;
  color: #526981;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.fr-settings-editor-row:hover,
.fr-settings-editor-row td {
  background: #f8fbfe;
}

.fr-settings-editor {
  border-bottom: 1px solid #dce6ef;
  padding: 1rem;
}

.fr-settings-form-grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fr-settings-form-grid-opening {
  padding: 0 1rem 1rem;
}

.fr-field {
  min-width: 0;
}

.fr-field > label {
  color: #405870;
  display: block;
  font-size: 0.74rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.fr-field-wide {
  grid-column: 1 / -1;
}

.fr-field-checkbox {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.fr-field-checkbox > label {
  margin: 0;
}

.fr-field .errorlist,
.fr-settings-table .errorlist {
  color: #b42318;
  font-size: 0.7rem;
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.fr-settings-chip {
  background: #edf5fd;
  border: 1px solid #cfe3f6;
  border-radius: 6px;
  color: #236399;
  display: inline-block;
  font-size: 0.68rem;
  margin: 0.1rem;
  padding: 0.15rem 0.4rem;
}

.fr-opening-settings {
  padding-bottom: 0.1rem;
}

.fr-settings-access-header {
  gap: 1rem;
}

.fr-user-search {
  max-width: 300px;
}

.fr-access-table input[type="checkbox"],
.fr-deadline-table input[type="checkbox"] {
  height: 1rem;
  width: 1rem;
}

.fr-notification-control {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.fr-notification-preferences {
  margin-top: 0.35rem;
}

.fr-notification-preferences summary {
  color: #1671c4;
  cursor: pointer;
  font-size: 0.7rem;
}

.fr-notification-options {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  padding-top: 0.5rem;
}

.fr-notification-options label {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.fr-deadline-table input[type="number"] {
  min-width: 74px;
  width: 74px;
}

.fr-deadline-table select {
  min-width: 95px;
}

.fr-history-filters {
  align-items: end;
  gap: 1rem;
}

.fr-history-filter-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(5, minmax(125px, 1fr)) auto;
}

.fr-history-value {
  display: block;
  font-size: 0.68rem;
  max-width: 260px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.fr-history-pagination {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
}

.fr-select-filter {
  margin-bottom: 0.35rem;
}

.fr-selected-users {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  min-height: 1.9rem;
}

.fr-selected-user-chip {
  align-items: center;
  background: #edf5fd;
  border: 1px solid #b9d8f4;
  border-radius: 999px;
  color: #1f5f96;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
}

.fr-selected-user-chip:hover,
.fr-selected-user-chip:focus {
  background: #dfeefd;
  border-color: #7fb7ea;
  color: #0f4f86;
}

.fr-selected-user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fr-selected-user-chip strong {
  font-size: 0.9rem;
  line-height: 1;
}

.fr-selected-users-empty {
  color: #7a8da1;
  font-size: 0.72rem;
}

.user-editor-page {
  display: grid;
  gap: 1rem;
}

.user-editor-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-width: 0;
}

.user-editor-heading {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

.user-editor-heading-mark {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #d4e4f8;
  border-radius: 8px;
  color: var(--fq-operational-primary);
  display: inline-flex;
  flex: 0 0 46px;
  font-size: 0.88rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
}

.user-editor-heading h1 {
  color: #14243d;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.user-editor-heading p {
  color: var(--fq-slate-500);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.user-editor-account-status {
  align-items: center;
  background: #f0faf4;
  border: 1px solid #ccead8;
  border-radius: 999px;
  color: #20814b;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
}

.user-editor-account-status > span {
  background: #34ae68;
  border-radius: 50%;
  height: 0.48rem;
  width: 0.48rem;
}

.user-editor-account-status.is-inactive {
  background: #f5f7f9;
  border-color: #dce3e9;
  color: var(--fq-slate-700);
}

.user-editor-account-status.is-inactive > span {
  background: var(--fq-slate-500);
}

.user-editor-form {
  display: grid;
  gap: 1rem;
}

.user-editor-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dce6ef;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(25, 63, 94, 0.055);
  min-width: 0;
  overflow: hidden;
}

.user-editor-card-header {
  padding: 1rem 1.1rem 0.65rem;
}

.user-editor-card-header h2,
.user-editor-reset-header h2 {
  color: #1b2f49;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
}

.user-editor-card-header p,
.user-editor-reset-header p {
  color: var(--fq-slate-500);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.25rem 0 0;
}

.user-editor-card-body {
  padding: 0.65rem 1.1rem 1.1rem;
}

.user-editor-page .form-label {
  color: #344b63;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.user-editor-page .form-control,
.user-editor-page .form-select {
  border-color: #c9d8e4;
  border-radius: 6px;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
}

.user-editor-page .form-control:focus,
.user-editor-page .form-select:focus {
  border-color: #62a6e5;
  box-shadow: 0 0 0 0.2rem rgba(15, 103, 196, 0.12);
}

.user-editor-page .form-text {
  color: #718396;
  font-size: 0.75rem;
  line-height: 1.4;
}

.user-editor-active-switch {
  align-items: center;
  display: flex;
  min-height: 52px;
  padding-left: 3rem;
}

.user-editor-active-switch .form-check-input {
  height: 1.25rem;
  margin-left: -3rem;
  margin-right: 0.7rem;
  width: 2.25rem;
}

.user-editor-active-switch .form-check-label {
  display: grid;
  gap: 0.12rem;
}

.user-editor-active-switch .form-check-label strong {
  color: #344b63;
  font-size: 0.82rem;
}

.user-editor-active-switch .form-check-label span {
  color: #718396;
  font-size: 0.73rem;
  line-height: 1.35;
}

.user-editor-dual-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.user-editor-dual-grid > .user-editor-card {
  display: flex;
  flex-direction: column;
}

.user-editor-dual-grid > .user-editor-card > .user-editor-card-body {
  flex: 1 1 auto;
}

.user-editor-profile-card [data-standard-role-section].col-md-6 {
  width: 100%;
}

.user-editor-profile-card [data-standard-role-section] .row > div {
  width: 50%;
}

.user-editor-mfa-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  min-width: 0;
}

.user-editor-mfa-controls {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.user-editor-mfa-method {
  border-left: 3px solid #b9d8f4;
  padding-left: 0.8rem;
}

.user-editor-meta-label,
.user-editor-mfa-summary span {
  color: #718396;
  display: block;
  font-size: 0.73rem;
  line-height: 1.35;
  margin-bottom: 0.18rem;
}

.user-editor-mfa-method strong,
.user-editor-mfa-summary strong {
  color: #28435f;
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.user-editor-mfa-summary {
  align-content: start;
  background: #f7fafc;
  border-left: 3px solid var(--fq-operational-primary);
  border-radius: 0 6px 6px 0;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
}

.user-editor-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.user-editor-actions .btn {
  min-height: 42px;
  padding-inline: 1.15rem;
}

.user-editor-save {
  min-width: 150px;
}

.user-editor-reset-card {
  background: #fffafa;
  border: 1px solid #f0caca;
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.1rem 1.1rem;
}

.user-editor-reset-header h2 {
  color: #b32f2a;
}

.user-editor-reset-form {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.user-editor-reset-form textarea.form-control {
  min-height: 82px;
  resize: vertical;
}

.user-editor-reset-action {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.user-editor-reset-action .btn {
  min-height: 42px;
  white-space: nowrap;
}

.user-editor-reset-action small {
  color: #bc615d;
  font-size: 0.7rem;
}

@media (max-width: 1199.98px) {
  .fr-module-layout {
    grid-template-columns: 204px minmax(0, 1fr);
  }

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

@media (max-width: 991.98px) {
  .app-page,
  .app-page--special,
  .fast-response-main > nav[aria-label="breadcrumb"],
  .fast-response-main > .mb-3 {
    width: calc(100% - 1.5rem);
  }

  .user-editor-dual-grid {
    grid-template-columns: 1fr;
  }

  .fast-response-main > nav[aria-label="breadcrumb"],
  .fast-response-main > .mb-3,
  .fr-module-shell {
    width: calc(100% - 1.5rem);
  }

  .fr-module-layout {
    display: block;
  }

  .fr-module-sidebar {
    margin-bottom: 0.85rem;
    position: static;
  }

  .fr-module-sidebar-inner {
    max-height: none;
    min-height: 0;
  }

  .fr-module-brand {
    display: none;
  }

  .fr-module-nav {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .fr-module-nav-group-secondary {
    border-left: 1px solid #e7edf4;
    border-top: 0;
    margin-top: 0;
    padding-left: 0.75rem;
    padding-top: 0;
  }

  .fr-page-header {
    align-items: flex-start;
  }

  .fr-workspace-table-wrap {
    max-height: 560px;
  }

  .fr-history-filter-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .user-editor-mfa-grid,
  .user-editor-reset-form {
    grid-template-columns: 1fr;
  }

  .user-editor-reset-action {
    align-items: flex-start;
  }

  .fr-page-header {
    display: block;
  }

  .fr-page-actions {
    justify-content: flex-start;
    margin-top: 0.85rem;
  }

  .fr-workspace-summary,
  .fr-resource-grid {
    grid-template-columns: 1fr;
  }

  .fr-resource-card {
    min-height: 0;
  }

  .fr-settings-form-grid,
  .fr-notification-options,
  .fr-history-filter-grid {
    grid-template-columns: 1fr;
  }
  .fr-settings-access-header {
    align-items: stretch;
    display: grid;
  }

  .fr-user-search {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .app-page,
  .app-page--special,
  .fast-response-main > nav[aria-label="breadcrumb"],
  .fast-response-main > .mb-3 {
    width: calc(100% - 1rem);
  }

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

  .user-editor-heading {
    align-items: flex-start;
  }

  .user-editor-profile-card [data-standard-role-section] .row > div {
    width: 100%;
  }

  .user-editor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .user-editor-actions .btn,
  .user-editor-reset-action,
  .user-editor-reset-action .btn {
    width: 100%;
  }

  .fast-response-main > nav[aria-label="breadcrumb"],
  .fast-response-main > .mb-3,
  .fr-module-shell {
    width: calc(100% - 1rem);
  }

  .fr-module-nav {
    grid-template-columns: 1fr;
  }

  .fr-module-nav-group-secondary {
    border-left: 0;
    border-top: 1px solid #e7edf4;
    padding-left: 0;
    padding-top: 0.75rem;
  }
}

@media print {
  .fast-response-main > nav[aria-label="breadcrumb"],
  .fast-response-main > .mb-3,
  .fr-module-shell {
    max-width: none;
    width: 100%;
  }

  .fr-module-layout {
    display: block;
  }
}

/* Fast Response - rotina de Analise Critica */
.fr-critical-config-grid,
.fr-critical-filters {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.fr-critical-config-grid {
  padding: 1rem 1rem 0;
}

.fr-critical-config-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  padding-right: 0.2rem;
}

.fr-critical-create-pending {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.fr-critical-create-pending .fr-module-icon {
  height: 16px;
  width: 16px;
}

.fr-critical-active-switch {
  align-items: center;
  color: #2c435c;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.65rem;
  padding: 0.35rem 0.2rem;
}

.fr-critical-indicators {
  border-top: 1px solid #e2eaf1;
  margin-top: 1.25rem;
  padding: 1.15rem 1rem 1rem;
}

.fr-critical-indicators-heading h3 {
  color: #1a3048;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.fr-critical-indicators-heading p {
  color: #6a7f92;
  font-size: 0.78rem;
  margin: 0.25rem 0 0;
}

.fr-critical-indicator-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-top: 0.9rem;
}

.fr-critical-indicator-option {
  align-items: flex-start;
  background: #fbfdff;
  border: 1px solid #dbe6ef;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  min-height: 84px;
  padding: 0.9rem 1rem;
}

.fr-critical-indicator-option:has(input:checked) {
  background: #eef7ff;
  border-color: #76aee0;
}

.fr-critical-indicator-option input {
  flex: 0 0 auto;
  margin: 0.15rem 0 0 0.1rem;
}

.fr-critical-indicator-option span {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.fr-critical-indicator-option strong {
  color: #203a55;
  font-size: 0.8rem;
  line-height: 1.35;
}

.fr-critical-indicator-option small {
  color: #6b7f91;
  font-size: 0.72rem;
  line-height: 1.4;
}

.fr-critical-summary {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 1rem;
}

.fr-critical-summary-item {
  background: #fff;
  border: 1px solid #dce6ee;
  border-left: 4px solid #2d78bd;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 92px;
  padding: 0.9rem 1rem;
}

.fr-critical-summary-item:nth-child(2) {
  border-left-color: #d4941d;
}

.fr-critical-summary-item:nth-child(4) {
  border-left-color: #26955b;
}

.fr-critical-summary-item.is-overdue {
  border-left-color: #cc4646;
}

.fr-critical-summary-item span {
  color: #657b8e;
  font-size: 0.76rem;
  font-weight: 700;
}

.fr-critical-summary-item strong {
  color: #142d47;
  font-size: 1.65rem;
  line-height: 1;
}

.fr-critical-filters {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto;
  padding: 1rem;
}

.fr-critical-filter-check {
  align-items: center;
  color: #40566d;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.5rem;
  min-height: 42px;
  white-space: nowrap;
}

.fr-critical-filter-actions,
.fr-critical-row-actions,
.fr-critical-pagination {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.fr-critical-list-table {
  border-top: 1px solid #e2eaf1;
}

.fr-critical-list-table th {
  color: #526a80;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fr-critical-list-table td {
  color: #30485f;
  font-size: 0.8rem;
  vertical-align: middle;
}

.fr-critical-status,
.fr-critical-deadline {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 28px;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
}

.fr-critical-status.is-pending {
  background: #fff5dc;
  color: #8b6109;
}

.fr-critical-status.is-in_progress {
  background: #e9f3ff;
  color: #1762a6;
}

.fr-critical-status.is-completed,
.fr-critical-deadline.is-complete,
.fr-critical-deadline.is-on-time {
  background: #e8f7ee;
  color: #227849;
}

.fr-critical-deadline.is-overdue {
  background: #fdecec;
  color: #a62e2e;
}

.fr-critical-pagination {
  border-top: 1px solid #e2eaf1;
  color: #657b8e;
  font-size: 0.78rem;
  padding: 0.9rem 1rem;
}

.fr-critical-back {
  color: #1769b0;
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.fr-critical-meta {
  background: #fff;
  border: 1px solid #dce6ee;
  border-radius: 7px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 1rem;
}

.fr-critical-meta > div {
  border-right: 1px solid #e6edf3;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
}

.fr-critical-meta > div:last-child {
  border-right: 0;
}

.fr-critical-meta span,
.fr-critical-snapshot-meta span {
  color: #718497;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fr-critical-meta strong,
.fr-critical-snapshot-meta strong {
  color: #263f58;
  font-size: 0.82rem;
}

.fr-critical-manager-bar {
  margin-bottom: 1rem;
}

.fr-critical-manager-bar form {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(220px, 440px) auto;
}

.fr-critical-manager-bar label {
  align-self: center;
  color: #425a70;
  font-size: 0.78rem;
  font-weight: 800;
}

.fr-critical-analysis-form {
  display: grid;
  gap: 1rem;
}

.fr-critical-indicator-card {
  background: #fff;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.fr-critical-indicator-card.has-missing-fields,
.fr-critical-general.has-missing-fields {
  border-color: #d64a4a;
  box-shadow: 0 0 0 2px rgba(214, 74, 74, 0.09);
}

.fr-critical-validation-message {
  background: #fff2f2;
  border-bottom: 1px solid #efc7c7;
  color: #9f3030;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
}

.fr-critical-indicator-header {
  align-items: flex-start;
  border-bottom: 1px solid #e4ebf1;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.fr-critical-indicator-header > div:first-child {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.fr-critical-indicator-order {
  align-items: center;
  background: #eaf3fc;
  border-radius: 6px;
  color: #1764a8;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.72rem;
  font-weight: 800;
  height: 34px;
  justify-content: center;
}

.fr-critical-indicator-header h2 {
  color: #172f49;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.fr-critical-indicator-header p {
  color: #6a7e91;
  font-size: 0.76rem;
  line-height: 1.4;
  margin: 0.22rem 0 0;
}

.fr-critical-snapshot-meta {
  display: grid;
  flex: 0 0 auto;
  gap: 0.15rem;
  text-align: right;
}

.fr-critical-visual {
  height: 300px;
  min-width: 0;
  padding: 1rem 1.1rem;
}

.fr-critical-visual:has(.table-responsive),
.fr-critical-visual:has(.fr-critical-metrics),
.fr-critical-visual:has(.fr-critical-insights),
.fr-critical-visual:has(.fr-critical-empty) {
  height: auto;
  min-height: 150px;
}

.fr-critical-visual canvas {
  height: 100% !important;
  width: 100% !important;
}

.fr-critical-empty {
  align-items: center;
  color: #718497;
  display: flex;
  font-size: 0.8rem;
  justify-content: center;
  min-height: 120px;
}

.fr-critical-metrics {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.fr-critical-metrics > div {
  background: #f7fafc;
  border-left: 3px solid #2980bf;
  border-radius: 0 6px 6px 0;
  display: grid;
  gap: 0.3rem;
  min-height: 74px;
  padding: 0.75rem;
}

.fr-critical-metrics span {
  color: #687c8e;
  font-size: 0.7rem;
  font-weight: 700;
}

.fr-critical-metrics strong {
  color: #1b3854;
  font-size: 1.15rem;
}

.fr-critical-insights {
  color: #314a61;
  display: grid;
  font-size: 0.82rem;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.25rem;
}

.fr-critical-fields {
  background: #f8fbfd;
  border-top: 1px solid #e4ebf1;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem 1.1rem 1.1rem;
}

.fr-critical-fields textarea,
.fr-critical-general textarea {
  min-height: 132px;
  resize: vertical;
}

.fr-critical-readonly {
  background: #fff;
  border: 1px solid #dbe5ed;
  border-radius: 6px;
  color: #344d64;
  font-size: 0.82rem;
  line-height: 1.55;
  min-height: 76px;
  overflow-wrap: anywhere;
  padding: 0.75rem;
}

.fr-critical-general,
.fr-critical-audit,
.fr-critical-reopen {
  margin-top: 1rem;
}

.fr-critical-reopen {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
}

.fr-critical-reopen form {
  display: grid;
  gap: 0.7rem;
}

.fr-critical-reopen .btn {
  justify-self: start;
}

.fr-critical-audit-list {
  display: grid;
}

.fr-critical-audit-list > div {
  border-top: 1px solid #e5ecf2;
  display: grid;
  gap: 0.15rem;
  grid-template-columns: 130px 170px minmax(0, 1fr) 180px;
  padding: 0.75rem 0;
}

.fr-critical-audit-list span,
.fr-critical-audit-list small {
  color: #718497;
  font-size: 0.72rem;
}

.fr-critical-audit-list strong,
.fr-critical-audit-list p {
  color: #334d64;
  font-size: 0.78rem;
  margin: 0;
}

@media (max-width: 1199.98px) {
  .fr-critical-config-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .fr-critical-indicator-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .fr-critical-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fr-critical-fields .fr-field:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .fr-critical-filters {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .fr-critical-meta {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .fr-critical-meta > div:nth-child(2) {
    border-right: 0;
  }

  .fr-critical-meta > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e6edf3;
  }

  .fr-critical-audit-list > div {
    grid-template-columns: 120px 150px minmax(0, 1fr);
  }

  .fr-critical-audit-list small {
    grid-column: 3;
  }
}

@media (max-width: 767.98px) {
  .fr-critical-config-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fr-critical-config-actions {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .fr-critical-config-grid,
  .fr-critical-filters,
  .fr-critical-indicator-grid,
  .fr-critical-summary,
  .fr-critical-fields,
  .fr-critical-reopen {
    grid-template-columns: 1fr;
  }

  .fr-critical-fields .fr-field:last-child {
    grid-column: auto;
  }

  .fr-critical-filter-actions {
    justify-content: flex-start;
  }

  .fr-critical-indicator-header {
    display: grid;
  }

  .fr-critical-snapshot-meta {
    padding-left: 2.95rem;
    text-align: left;
  }

  .fr-critical-manager-bar form {
    grid-template-columns: 1fr;
  }

  .fr-critical-manager-bar label {
    align-self: auto;
  }

  .fr-critical-visual {
    height: 260px;
  }

  .fr-critical-audit-list > div {
    grid-template-columns: 1fr;
  }

  .fr-critical-audit-list small {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .fr-critical-meta {
    grid-template-columns: 1fr;
  }

  .fr-critical-meta > div {
    border-bottom: 1px solid #e6edf3;
    border-right: 0;
  }

  .fr-critical-meta > div:last-child {
    border-bottom: 0;
  }

  .fr-critical-detail-header .fr-page-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fr-critical-detail-header .btn {
    width: 100%;
  }
}
