:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #18191b;
  --muted: #667085;
  --line: #dde3ea;
  --charcoal: #171717;
  --wine: #9a302f;
  --wine-dark: #651412;
  --wine-soft: #fae8e6;
  --teal: #147d74;
  --teal-soft: #e7f5f2;
  --amber: #b7791f;
  --amber-soft: #fff4d7;
  --green: #2f7a55;
  --green-soft: #e6f4ec;
  --red: #b42318;
  --red-soft: #fde8e5;
  --qbiax-blue: #005cff;
  --qbiax-blue-dark: #0046c7;
  --qbiax-blue-soft: #eaf2ff;
  --qbiax-cloud: #e9eaee;
  --qbiax-stone: #cbbbbb;
  --shadow: 0 18px 44px rgba(24, 25, 27, 0.09);
  --dashboard-scale: 1;
  --app-header-height: 72px;
  --command-band-height: 130px;
  --sticky-gap: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

body {
  min-height: 100vh;
}

body.is-module-home {
  background:
    linear-gradient(90deg, rgba(0, 54, 128, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 54, 128, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, rgba(0, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 88%, rgba(20, 125, 116, 0.1), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7faff 52%, #ffffff 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 88%, rgba(20, 125, 116, 0.1), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7faff 52%, #ffffff 100%);
  color: #172033;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 54, 128, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 54, 128, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 86%);
  pointer-events: none;
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: -44px;
  z-index: 0;
  background: url("../img/login-background-soft.png") center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.62;
  transform: scale(1.04);
  pointer-events: none;
}

.login-screen > * {
  position: relative;
  z-index: 2;
}

.login-corner-logo {
  position: absolute;
  top: clamp(14px, 2.4vw, 28px);
  left: clamp(14px, 2.4vw, 28px);
  z-index: 2;
  width: min(260px, 36vw);
  height: auto;
  object-fit: contain;
}

.login-panel {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(91, 166, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 30, 58, 0.88), rgba(4, 10, 24, 0.92)),
    rgba(7, 14, 30, 0.92);
  box-shadow: 0 24px 64px rgba(15, 31, 61, 0.12);
  padding: clamp(28px, 5vw, 46px) clamp(24px, 5vw, 44px);
}

.login-panel-password {
  width: min(720px, 100%);
  padding-top: 36px;
  padding-bottom: 36px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.login-logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 32px;
}

.login-logo-stacked {
  flex-direction: column;
  gap: 12px;
}

.login-logo-lockup img {
  width: 92px;
  height: 82px;
  object-fit: contain;
  filter: none;
}

.login-logo-lockup strong,
.login-logo-lockup span {
  display: block;
}

.login-logo-lockup strong {
  color: #d9e6f8;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.login-logo-lockup span {
  margin-top: 4px;
  color: #d9e6f8;
  font-size: 15px;
  font-weight: 850;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-brand span {
  color: #d9e6f8;
}

.login-panel h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 30px;
  line-height: 1.05;
  text-align: left;
  text-shadow: none;
}

.login-copy {
  margin: 12px 0 32px;
  color: #aab6c9;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}

.startup-screen {
  --startup-progress-value: 0%;
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 32px 22px;
  background:
    radial-gradient(circle at 50% 32%, rgba(0, 92, 255, 0.08), transparent 34%),
    repeating-linear-gradient(90deg, rgba(0, 92, 255, 0.025) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(20, 125, 116, 0.022) 0 1px, transparent 1px 76px),
    #ffffff;
  color: #172033;
}

.startup-panel {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(480px, 100%);
  text-align: center;
}

.startup-icon-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 238px;
  aspect-ratio: 1;
  margin-bottom: 28px;
}

.startup-icon-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 238px;
  aspect-ratio: 1;
}

.startup-icon {
  position: absolute;
  width: 230px;
  height: 230px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.startup-icon.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.startup-percent {
  display: block;
  color: #1d2939;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.startup-progress {
  width: min(420px, 100%);
  height: 5px;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 999px;
  background: #dce7f7;
}

.startup-progress span {
  display: block;
  width: var(--startup-progress-value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #005cff, #47c9ff);
  box-shadow: 0 0 16px rgba(0, 92, 255, 0.38);
  transition: width 0.36s ease;
}

.startup-panel p {
  margin: 22px 0 0;
  color: #60708f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}

.startup-screen.is-error {
  --startup-progress-value: 100%;
}

.startup-screen.is-error .startup-progress span {
  background: var(--wine);
  box-shadow: 0 0 16px rgba(154, 48, 47, 0.22);
}

.startup-screen.is-error .startup-percent {
  color: var(--wine);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label,
.field-control,
.filter-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.login-form label {
  gap: 0;
  color: #e7eefc;
  font-size: 14px;
  font-weight: 800;
}

.login-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.login-form input,
.field-control input,
.user-form input,
.user-form select,
.filter-trigger,
.filter-search {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.login-input-shell {
  position: relative;
  display: grid;
  align-items: center;
}

.login-field-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #a8b4c8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-form input {
  height: 50px;
  border: 1px solid rgba(120, 151, 195, 0.38);
  border-radius: 10px;
  background: rgba(5, 14, 31, 0.72);
  color: #f6fbff;
  padding: 0 52px 0 46px;
  font-size: 14px;
  box-shadow: 0 0 0 1px rgba(11, 85, 187, 0.08) inset;
}

.login-form input::placeholder {
  color: #95a2b6;
  opacity: 1;
}

.field-control input::placeholder,
.user-form input::placeholder,
.filter-search::placeholder {
  color: #aab4c1;
  opacity: 1;
}

.login-form .field-hint {
  color: #aebbd0;
  font-size: 12px;
}

.login-form input:focus {
  border-color: #2a9dff;
  box-shadow:
    0 0 0 3px rgba(0, 92, 255, 0.18),
    0 0 22px rgba(0, 166, 255, 0.18);
}

.field-control input:focus,
.user-form input:focus,
.user-form select:focus,
.filter-trigger:focus,
.filter-search:focus {
  border-color: var(--qbiax-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.16);
}

.login-submit,
.export-button,
.ghost-button,
.filter-head button,
.pager button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.login-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background-color: var(--qbiax-blue);
  background-image: none;
  color: #fff;
  font-size: 15px;
  box-shadow:
    0 12px 26px rgba(0, 92, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.16s ease,
    filter 0.2s ease;
}

.login-submit svg {
  position: absolute;
  right: 18px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-submit:hover {
  background-color: var(--qbiax-blue-dark);
  background-image: none;
  box-shadow:
    0 16px 32px rgba(0, 92, 255, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.login-submit:active,
.login-submit.is-pressed {
  box-shadow:
    0 8px 18px rgba(0, 92, 255, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.18) inset;
  filter: brightness(0.98);
  transform: translateY(1px) scale(0.992);
}

.login-submit:focus-visible,
.password-toggle:focus-visible {
  box-shadow:
    0 0 0 4px rgba(0, 92, 255, 0.18),
    0 12px 26px rgba(0, 92, 255, 0.22);
  outline: none;
}

.login-submit[disabled] {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.login-submit[aria-busy="true"] span {
  transform: translateX(-8px);
}

.login-submit[aria-busy="true"]::after {
  content: "";
  position: absolute;
  right: calc(50% - 66px);
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.login-submit[aria-busy="true"] svg {
  opacity: 0;
}

.password-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b6c2d4;
  padding: 0;
}

.password-toggle:hover {
  color: #2bc4ff;
}

.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-error {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  margin: 0;
  color: #aab6c9;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
}

.login-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.forgot-password {
  border: 0;
  background: transparent;
  color: #8cc8ff;
  padding: 0;
  font-size: 12px;
  font-weight: 850;
}

.forgot-password:hover,
.forgot-password:focus-visible {
  color: #cde8ff;
  outline: none;
  text-decoration: underline;
}

.login-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 20, 0.56);
  backdrop-filter: blur(5px);
}

.login-dialog {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(120, 151, 195, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 30, 58, 0.96), rgba(4, 10, 24, 0.98)),
    rgba(7, 14, 30, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  color: #eef6ff;
  padding: 30px 28px 28px;
}

.login-dialog h2 {
  margin: 0 38px 12px 0;
  color: #f7fbff;
  font-size: 22px;
  line-height: 1.2;
}

.login-dialog p {
  margin: 0;
  color: #aab6c9;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.login-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(120, 151, 195, 0.26);
  border-radius: 9px;
  background: rgba(5, 14, 31, 0.6);
  color: #c5d3e8;
  padding: 0;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.login-dialog-close:hover,
.login-dialog-close:focus-visible {
  background: rgba(0, 92, 255, 0.16);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.login-dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  display: block;
  min-height: 100vh;
  overflow: visible;
  background: var(--bg);
  zoom: var(--dashboard-scale);
}

.app-shell.is-module-home {
  min-height: 100vh;
  zoom: 1;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 88%, rgba(20, 125, 116, 0.1), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7faff 52%, #ffffff 100%);
}

.admin-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #eef1f4;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(221, 227, 234, 0.86);
  background: #fff;
  backdrop-filter: none;
}

.main-dashboard-menu {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.company-menu {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.company-menu[hidden] {
  display: none;
}

.module-switch,
.company-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.module-switch-select,
.company-switch-select {
  min-width: 132px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 34px 0 12px;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}

.company-switch-select {
  min-width: 156px;
}

.module-switch-trigger,
.company-switch-trigger {
  min-width: 156px;
}

.filter-trigger b {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  font-size: 0;
  line-height: 0;
  justify-self: end;
}

.module-switch-trigger:focus-visible,
.module-switch-trigger[aria-expanded="true"],
.company-switch-trigger:focus-visible,
.company-switch-trigger[aria-expanded="true"] {
  border-color: var(--qbiax-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.14);
}

.module-switch-panel,
.company-switch-panel {
  right: 0;
  left: auto;
  z-index: 160;
  width: min(320px, calc(100vw - 24px));
  min-width: 218px;
  max-width: min(320px, calc(100vw - 24px));
}

.module-switch-panel[hidden],
.company-switch-panel[hidden] {
  display: none;
}

.module-switch-options,
.company-switch-options {
  max-height: 260px;
}

button.module-switch-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.module-switch-option.is-selected {
  background: #f4f8ff;
  color: var(--ink);
  font-weight: 850;
}

button.module-switch-option:focus-visible {
  outline: 2px solid rgba(0, 92, 255, 0.35);
  outline-offset: -2px;
}

.module-switch-option span,
.company-switch-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-switch-select:focus,
.company-switch-select:focus {
  border-color: var(--qbiax-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.14);
}

.main-dashboard-item {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.main-dashboard-item.active {
  border-color: rgba(0, 92, 255, 0.22);
  background: var(--qbiax-blue-soft);
  color: var(--qbiax-blue-dark);
}

.main-dashboard-item[data-module-home] {
  display: none;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-menu {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.admin-tabs {
  display: flex;
  justify-content: center;
}

.menu-item {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 15px;
  font-size: 13px;
  font-weight: 850;
}

.menu-item.active {
  border-color: rgba(0, 92, 255, 0.22);
  background: var(--qbiax-blue-soft);
  color: var(--qbiax-blue-dark);
}

.portal-admin-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  color: #526272;
  padding: 0;
}

.portal-admin-button[hidden] {
  display: none;
}

.portal-admin-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.portal-admin-button:hover {
  background: #eef5ff;
  color: var(--qbiax-blue);
}

.portal-admin-button:active {
  transform: scale(0.96);
}

.portal-admin-button:focus-visible {
  border-color: var(--qbiax-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.14);
  outline: none;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-header-actions {
  flex-wrap: wrap;
}

.admin-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.admin-back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.dashboard-home-button[hidden] {
  display: none;
}

.dashboard-home-button svg,
.dashboard-docs-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.data-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.data-pill {
  border-color: rgba(0, 92, 255, 0.2);
  color: var(--qbiax-blue-dark);
  background: var(--qbiax-blue-soft);
}

.dashboard-home {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 28px 28px 56px;
}

.module-home {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 38px 28px 64px;
}

.module-home-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.module-home-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.module-home-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.module-card,
.module-empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

.module-card {
  display: grid;
  gap: 22px;
  min-height: 360px;
  padding: 24px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.module-card:hover,
.module-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 92, 255, 0.34);
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.13);
}

.module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.module-card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 12px;
  background: #101828;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.module-card--qby .module-card-icon {
  background: var(--qbiax-blue);
}

.module-card-copy {
  display: grid;
  gap: 10px;
}

.module-card-copy h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.module-card-copy p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.module-card-preview {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.module-preview-bar,
.module-preview-line,
.module-preview-message {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--qbiax-blue), var(--teal));
}

.module-preview-bar {
  width: var(--w);
}

.module-preview-line {
  width: 74%;
}

.module-preview-line.wide {
  width: 88%;
}

.module-preview-line.short {
  width: 44%;
}

.module-preview-message {
  width: 62%;
  height: 28px;
  border-radius: 8px;
  background: var(--qbiax-blue-soft);
}

.module-card-action {
  justify-self: start;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--module-accent);
  color: #fff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
}

.module-home {
  width: min(1560px, 100%);
  padding-top: 34px;
}

.module-home-hero {
  max-width: 920px;
  margin-bottom: 26px;
}

.module-cards {
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 18px;
}

.module-card {
  --module-accent: var(--qbiax-blue);
  --module-accent-2: #00a3ff;
  --module-accent-soft: var(--qbiax-blue-soft);
  position: relative;
  gap: 0;
  min-height: 285px;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 92, 255, 0.1), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #ffffff 100%);
}

.module-card--qby {
  --module-accent: #00a3ff;
  --module-accent-2: var(--qbiax-blue);
  --module-accent-soft: #edf8ff;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--module-accent), var(--module-accent-2));
}

.module-card-copy {
  align-content: start;
  padding: 28px 30px 28px 34px;
}

.module-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--module-accent), var(--module-accent-2));
  box-shadow: 0 16px 32px rgba(0, 92, 255, 0.18);
  font-size: 24px;
}

.module-card-copy h2 {
  font-size: clamp(30px, 3.1vw, 46px);
}

.module-card-copy p {
  max-width: 40ch;
  font-size: 14px;
}

.module-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.module-card-chips span {
  border: 1px solid rgba(0, 92, 255, 0.16);
  border-radius: 999px;
  background: var(--module-accent-soft);
  color: var(--qbiax-blue-dark);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
}

.module-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 30px 28px 34px;
}

.module-card-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.module-empty-card {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.module-home {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  isolation: isolate;
  width: 100%;
  min-height: calc(100vh - var(--app-header-height));
  overflow: hidden;
  margin: 0;
  padding: clamp(18px, 2.8vw, 38px);
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at 90% 88%, rgba(20, 125, 116, 0.1), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7faff 52%, #ffffff 100%);
}

.module-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 54, 128, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 54, 128, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.module-home::after {
  content: "";
  position: absolute;
  inset: -44px;
  z-index: -2;
  background: url("../img/login-background-soft.png") center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.62;
  transform: scale(1.04);
  pointer-events: none;
}

.module-home-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(1320px, 100%);
  margin: 0 auto clamp(16px, 2.2vw, 28px);
  color: #172033;
  text-align: center;
}

.module-home-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.module-home-hero p {
  max-width: 760px;
  margin: 0;
  color: #44546a;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.module-cards {
  width: min(1320px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: clamp(18px, 2.6vw, 30px) clamp(32px, 4.6vw, 64px);
}

.module-card {
  --mx: 0;
  --my: 0;
  --module-accent: #28e5ff;
  --module-accent-2: #1a7dff;
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  min-height: clamp(430px, 53vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(99, 224, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(5, 24, 56, 0.86), rgba(3, 12, 32, 0.9)),
    radial-gradient(circle at 50% 44%, rgba(31, 191, 255, 0.16), transparent 23rem);
  box-shadow:
    0 28px 80px rgba(0, 32, 76, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(33, 188, 255, 0.16);
  color: #f4fbff;
  cursor: pointer;
  outline: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.module-card--qby {
  --module-accent: #7bffd7;
  --module-accent-2: #28e5ff;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(74, 232, 255, 0.56);
  box-shadow:
    0 32px 100px rgba(4, 38, 86, 0.34),
    0 0 42px rgba(41, 224, 255, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(33, 188, 255, 0.22);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  width: auto;
  pointer-events: none;
  opacity: 0.76;
  background:
    radial-gradient(circle at calc(50% + var(--mx) * 18%) calc(45% + var(--my) * 18%), rgba(80, 235, 255, 0.27), transparent 18rem),
    linear-gradient(100deg, transparent 7%, rgba(102, 224, 255, 0.08), transparent 36%);
  transition: opacity 180ms ease;
}

.module-card:hover::before,
.module-card:focus-visible::before {
  opacity: 1;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 16%, transparent 84%, rgba(21, 179, 255, 0.08));
  mix-blend-mode: screen;
}

.module-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 2vw, 22px);
  min-width: 0;
  padding: clamp(22px, 2.5vw, 34px);
}

.module-card-copy {
  padding: 0;
}

.module-card-kicker {
  color: #a9d7ef;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.module-card-copy h2 {
  margin: 0;
  color: #f4fbff;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.45), 0 0 28px rgba(50, 219, 255, 0.3);
}

.module-card-copy p {
  max-width: 620px;
  margin-top: 10px;
  color: #a9d7ef;
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 650;
  line-height: 1.34;
  text-shadow: 0 0 20px rgba(14, 185, 255, 0.2);
}

.module-hologram {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(84%, 390px);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 44px rgba(36, 221, 255, 0.22));
}

.module-dashboard-visual,
.module-chat-visual {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(162, 245, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(102, 225, 255, 0.18), rgba(19, 78, 175, 0.08)),
    rgba(1, 20, 51, 0.42);
  box-shadow:
    0 0 30px rgba(40, 229, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(40, 229, 255, 0.16);
  backdrop-filter: blur(12px);
}

.module-dashboard-visual {
  inset: 10% 2% 14%;
  display: grid;
  grid-template-columns: 48px 1fr;
  overflow: hidden;
  border-radius: 14px;
  animation: moduleFramePulse 6.4s ease-in-out infinite;
}

.module-dashboard-rail {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px 13px;
  border-right: 1px solid rgba(151, 240, 255, 0.14);
  background: rgba(1, 14, 36, 0.34);
}

.module-dashboard-rail span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(154, 245, 255, 0.26);
  border-radius: 6px;
  background: rgba(78, 218, 255, 0.12);
}

.module-dashboard-rail span:first-child {
  background: linear-gradient(180deg, rgba(121, 245, 255, 0.92), rgba(50, 133, 255, 0.56));
  box-shadow: 0 0 18px rgba(40, 229, 255, 0.28);
}

.module-dashboard-workspace {
  display: grid;
  grid-template-rows: 42px auto 1fr;
  gap: 13px;
  min-width: 0;
  padding: 14px;
}

.module-dashboard-topbar,
.module-dashboard-kpis,
.module-dashboard-body {
  min-width: 0;
}

.module-dashboard-topbar {
  display: grid;
  grid-template-columns: 1fr 18px 18px;
  align-items: center;
  gap: 8px;
}

.module-dashboard-topbar span {
  width: 58%;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 252, 255, 0.42), rgba(77, 215, 255, 0.1));
}

.module-dashboard-topbar i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(117, 238, 255, 0.26);
}

.module-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-dashboard-kpis strong,
.module-chart,
.module-table-lines {
  border: 1px solid rgba(155, 242, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 28, 67, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.module-dashboard-kpis strong {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  color: #f4ffff;
  font-size: 19px;
  line-height: 1;
  animation: modulePanelBuild 6.4s ease-in-out infinite both;
}

.module-dashboard-kpis small {
  overflow: hidden;
  color: rgba(177, 225, 240, 0.78);
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-dashboard-body {
  display: grid;
  grid-template-columns: 1.35fr 0.78fr;
  gap: 12px;
  min-height: 0;
}

.module-chart {
  overflow: hidden;
  padding: 12px;
}

.module-chart svg {
  width: 100%;
  height: 100%;
  min-height: 130px;
}

.module-chart-area {
  fill: rgba(37, 164, 255, 0.18);
  animation: moduleAreaReveal 6.4s ease-in-out infinite;
}

.module-chart-line {
  fill: none;
  stroke: rgba(123, 255, 219, 0.96);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(58, 232, 255, 0.7));
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: moduleLineDraw 6.4s ease-in-out infinite;
}

.module-chart rect {
  fill: var(--module-accent);
  transform-origin: bottom;
  animation: moduleBarGrow 6.4s ease-in-out infinite both;
}

.module-table-lines {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px 12px;
}

.module-table-lines span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(225, 255, 255, 0.78), rgba(79, 229, 255, 0.28), transparent);
  transform-origin: left;
  animation: moduleRowDraw 6.4s ease-in-out infinite both;
}

.module-table-lines span:nth-child(2) {
  width: 84%;
}

.module-table-lines span:nth-child(3) {
  width: 68%;
}

.module-table-lines span:nth-child(4) {
  width: 76%;
}

.module-chat-visual {
  left: 50%;
  top: 52%;
  display: grid;
  grid-template-rows: 24px 52px 1fr 38px;
  width: min(64%, 284px);
  height: min(88%, 420px);
  padding: 10px;
  border-radius: 32px;
  transform: translate(-50%, -50%);
  animation: moduleChatWake 5.8s ease-in-out infinite;
}

.module-phone-status,
.module-chat-header,
.module-chat-input {
  display: flex;
  align-items: center;
}

.module-phone-status {
  justify-content: space-between;
  padding: 0 12px;
  color: rgba(223, 251, 255, 0.82);
  font-size: 10px;
}

.module-phone-status i {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(223, 251, 255, 0.82) 0 22%, transparent 23% 32%, rgba(223, 251, 255, 0.82) 33% 56%, transparent 57% 66%, rgba(223, 251, 255, 0.82) 67% 100%);
}

.module-chat-header {
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(155, 242, 255, 0.14);
  border-radius: 22px 22px 12px 12px;
  background: rgba(5, 38, 82, 0.48);
}

.module-chat-header > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #dfffff, #51eaff);
  color: #052033;
  font-size: 14px;
  font-weight: 900;
}

.module-chat-header strong {
  display: grid;
  gap: 3px;
  color: #f4ffff;
  font-size: 13px;
  line-height: 1;
}

.module-chat-header small {
  color: rgba(160, 231, 217, 0.82);
  font-size: 9px;
}

.module-chat-messages {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  padding: 15px 8px 10px;
}

.module-chat-messages span {
  position: relative;
  justify-self: start;
  max-width: 82%;
  padding: 8px 10px 13px;
  border: 1px solid rgba(173, 250, 255, 0.32);
  border-radius: 16px 16px 16px 5px;
  background: linear-gradient(180deg, rgba(101, 234, 255, 0.42), rgba(21, 93, 204, 0.22));
  box-shadow: 0 0 22px rgba(40, 229, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: rgba(241, 253, 255, 0.96);
  font-size: 10px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
}

.module-chat-messages span.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: brightness(1.08);
}

.module-chat-messages span:nth-child(even) {
  justify-self: end;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(180deg, rgba(123, 255, 215, 0.46), rgba(28, 133, 255, 0.24));
}

.module-chat-messages em {
  position: absolute;
  right: 9px;
  bottom: 4px;
  color: rgba(205, 242, 250, 0.62);
  font-size: 7px;
  font-style: normal;
}

.module-chat-input {
  justify-content: space-between;
  gap: 10px;
  height: 34px;
  padding: 0 10px 0 13px;
  border: 1px solid rgba(173, 250, 255, 0.26);
  border-radius: 999px;
  background: rgba(4, 40, 91, 0.46);
}

.module-chat-input span {
  width: 70%;
  height: 5px;
  border-radius: 999px;
  background: rgba(220, 252, 255, 0.48);
}

.module-chat-input i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #dfffff, #4eeaff);
}

.module-card-footer {
  display: none;
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px);
}

.module-card-action {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--module-accent-2), var(--module-accent));
  color: #031426;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(40, 229, 255, 0.18);
}

.module-empty-card {
  width: min(760px, 100%);
  margin: 0 auto;
  border-color: rgba(99, 224, 255, 0.24);
  background: rgba(3, 18, 42, 0.78);
  color: #d9f7ff;
}

@keyframes moduleFramePulse {
  0%, 100% { opacity: 0.84; }
  20%, 78% { opacity: 1; }
}

@keyframes modulePanelBuild {
  0%, 12% { opacity: 0.48; }
  30%, 82% { opacity: 1; }
  100% { opacity: 0.78; }
}

@keyframes moduleLineDraw {
  0%, 18% { opacity: 0; stroke-dashoffset: 340; }
  42%, 86% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 0.72; stroke-dashoffset: 0; }
}

@keyframes moduleAreaReveal {
  0%, 24% { opacity: 0; }
  42%, 86% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes moduleBarGrow {
  0%, 20% { opacity: 0; transform: scaleY(0.08); }
  38%, 86% { opacity: 1; transform: scaleY(1); }
}

@keyframes moduleRowDraw {
  0%, 22% { opacity: 0; transform: scaleX(0); }
  42%, 86% { opacity: 1; transform: scaleX(1); }
}

@keyframes moduleChatWake {
  0%, 100% { opacity: 0.86; transform: translate(-50%, -50%); }
  20%, 84% { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes moduleBubbleIn {
  0%, 12% { opacity: 0; transform: translateY(8px) scale(0.96); }
  24%, 88% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.72; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .module-home {
    padding: 18px;
  }

  .module-card {
    min-height: 520px;
  }

  .module-card-content {
    min-height: 0;
  }

  .module-card-copy h2 {
    font-size: clamp(38px, 8vw, 58px);
  }
}

@media (max-width: 640px) {
  .module-home {
    padding: 14px;
  }

  .module-home-hero {
    display: grid;
    margin-bottom: 18px;
  }

  .module-home-hero h1 {
    font-size: 28px;
  }

  .module-home-hero p {
    font-size: 14px;
  }

  .module-card {
    min-height: 500px;
  }

  .module-card-content {
    gap: 14px;
    min-height: 0;
    padding: 20px;
  }

  .module-card-copy h2 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .module-card-copy p {
    max-width: 320px;
    font-size: 16px;
  }

  .module-hologram {
    width: 90%;
    max-width: 280px;
  }

  .module-dashboard-visual {
    inset: 4%;
    grid-template-columns: 40px 1fr;
  }

  .module-dashboard-rail {
    gap: 9px;
    padding: 14px 11px;
  }

  .module-dashboard-rail span {
    width: 18px;
    height: 18px;
  }

  .module-dashboard-workspace {
    grid-template-rows: 32px auto 1fr;
    gap: 8px;
    padding: 10px;
  }

  .module-dashboard-kpis {
    gap: 7px;
  }

  .module-dashboard-kpis strong {
    gap: 3px;
    padding: 7px;
    font-size: 15px;
  }

  .module-dashboard-kpis small {
    font-size: 8px;
  }

  .module-dashboard-body {
    gap: 8px;
  }

  .module-chart,
  .module-table-lines {
    padding: 8px;
  }

  .module-chart svg {
    min-height: 92px;
  }

  .module-table-lines {
    gap: 10px;
  }

  .module-chat-visual {
    width: min(88%, 260px);
    height: min(98%, 330px);
    grid-template-rows: 20px 45px 1fr 32px;
    padding: 8px;
    border-radius: 28px;
  }

  .module-chat-messages {
    gap: 6px;
    padding: 10px 5px 8px;
  }

  .module-chat-messages span {
    max-width: 88%;
    padding: 6px 8px 11px;
    font-size: 8.5px;
  }

  .module-chat-input {
    height: 30px;
  }

  .module-card-footer {
    display: none;
    padding: 0 22px 22px;
  }

  .module-card-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-card,
  .module-card::before,
  .module-dashboard-visual,
  .module-dashboard-kpis strong,
  .module-chart-area,
  .module-chart-line,
  .module-chart rect,
  .module-table-lines span,
  .module-chat-visual,
  .module-chat-messages span {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.dashboard-home-hero {
  display: grid;
  gap: 6px;
  margin: 2px 0 22px;
}

.dashboard-home-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
}

.dashboard-home-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 430px));
  align-items: start;
  gap: 38px;
}

.dashboard-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 92, 255, 0.34);
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.13);
}

.dashboard-card--with-tools {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #eef2f6;
}

.dashboard-empty-card {
  display: grid;
  min-height: 148px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.dashboard-menu-loading,
.dashboard-menu-error-card {
  grid-column: 1 / -1;
}

.dashboard-menu-loading {
  min-height: 180px;
  margin: 0;
}

.dashboard-card-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
}

.dashboard-card-tool {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.dashboard-card-tool svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-card-tool:hover,
.dashboard-card-tool:focus-visible {
  border-color: rgba(0, 92, 255, 0.28);
  background: var(--qbiax-blue-soft);
  color: var(--qbiax-blue-dark);
  outline: none;
}

.dashboard-card-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f8fafc;
}

.dashboard-card-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.dashboard-cover {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template:
    "top mark" 34px
    "copy mark" minmax(72px, 1fr)
    "visual visual" 78px
    "chips note" 36px / minmax(0, 1fr) 142px;
  gap: 10px 14px;
  padding: 18px 18px 14px;
  color: #fff;
}

.dashboard-cover::before,
.dashboard-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.dashboard-cover::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.56;
}

.dashboard-cover::after {
  right: -70px;
  bottom: -88px;
  width: 260px;
  height: 230px;
  transform: rotate(-14deg);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
}

.dashboard-cover--payables {
  background:
    linear-gradient(135deg, #1b1111 0%, #261111 47%, #651412 100%);
}

.dashboard-cover--receivables {
  background:
    linear-gradient(135deg, #061b22 0%, #082b2c 52%, #147d74 100%);
}

.dashboard-cover--accounting {
  background:
    linear-gradient(135deg, #101315 0%, #1a2025 52%, #355a52 100%);
}

.dashboard-cover--purchases {
  background:
    linear-gradient(135deg, #111827 0%, #172554 52%, #005cff 100%);
}

.dashboard-cover--inventory {
  background:
    linear-gradient(135deg, #0f1f1c 0%, #18382f 52%, #147d74 100%);
}

.dashboard-cover-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-cover-top span {
  color: rgba(227, 235, 248, 0.78);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-cover-top i {
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.48;
}

.dashboard-cover-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.dashboard-cover-copy strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-cover-copy em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.dashboard-cover-mark {
  grid-area: mark;
  align-self: start;
  justify-self: end;
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.dashboard-cover-mark span {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-cover-mark span:first-child {
  inset: 14px 13px auto;
  height: 6px;
}

.dashboard-cover-mark span:last-child {
  inset: auto 13px 14px;
  height: 22px;
  background: var(--cover-accent, rgba(255, 255, 255, 0.72));
}

.dashboard-cover-visual {
  grid-area: visual;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  min-width: 0;
}

.dashboard-cover-chips {
  grid-area: chips;
  display: flex;
  align-items: end;
  gap: 7px;
  min-width: 0;
}

.dashboard-cover-chips span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-cover small {
  grid-area: note;
  align-self: end;
  justify-self: end;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 820;
  text-align: right;
}

.cover-deadlines,
.cover-flow,
.cover-ledger,
.cover-risk,
.cover-pipeline,
.cover-waterfall {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cover-deadlines {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 12px;
}

.cover-deadlines span {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cover-deadlines span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 72%;
  border-radius: inherit;
  background: #ff7b61;
}

.cover-deadlines span:nth-child(2)::before {
  width: 48%;
  background: #f5b544;
}

.cover-deadlines span:nth-child(3)::before {
  width: 86%;
  background: #ef4444;
}

.cover-risk {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
}

.cover-risk i {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: #ef4444;
}

.cover-risk i:nth-child(1) {
  height: 32%;
}

.cover-risk i:nth-child(2) {
  height: 58%;
}

.cover-risk i:nth-child(3) {
  height: 84%;
}

.cover-risk i:nth-child(4) {
  height: 48%;
  background: #f97316;
}

.cover-flow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px;
}

.cover-flow::before {
  content: "";
  position: absolute;
  right: 25px;
  left: 25px;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(117, 229, 209, 0.36);
}

.cover-flow span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 4px solid #7ddfd1;
  border-radius: 50%;
  background: #083034;
}

.cover-flow span:nth-child(2) {
  transform: translateY(-14px);
}

.cover-flow span:nth-child(3) {
  transform: translateY(12px);
}

.cover-pipeline {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 12px;
}

.cover-pipeline i {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: #7ddfd1;
}

.cover-pipeline i:nth-child(2) {
  width: 72%;
  background: #37b9a7;
}

.cover-pipeline i:nth-child(3) {
  width: 46%;
  background: #e4f9f5;
}

.cover-ledger {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.cover-ledger span {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.cover-ledger span::before,
.cover-ledger span::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
}

.cover-ledger span::before {
  left: 0;
  width: 58%;
  background: #8fd3c4;
}

.cover-ledger span::after {
  right: 0;
  width: 22%;
  background: rgba(255, 255, 255, 0.48);
}

.cover-ledger span:nth-child(2)::before {
  width: 34%;
  background: #f87171;
}

.cover-ledger span:nth-child(3)::before {
  width: 76%;
}

.cover-ledger span:nth-child(4)::before {
  width: 48%;
  background: #d1d5db;
}

.cover-waterfall {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px;
}

.cover-waterfall i {
  flex: 1;
  border-radius: 5px;
  background: #8fd3c4;
}

.cover-waterfall i:nth-child(1) {
  height: 72%;
}

.cover-waterfall i:nth-child(2) {
  height: 38%;
  background: #f87171;
}

.cover-waterfall i:nth-child(3) {
  height: 58%;
}

.cover-waterfall i:nth-child(4) {
  height: 46%;
  background: #e5e7eb;
}

/* Restrained dashboard covers for the menu. */
.dashboard-cover {
  grid-template:
    "top mark" 18px
    "copy mark" minmax(54px, 1fr)
    "visual visual" 62px
    "chips note" 24px / minmax(0, 1fr) 112px;
  gap: 7px 10px;
  padding: 13px 14px 11px;
  background: #f8fafc;
  color: #172033;
}

.dashboard-cover::before {
  inset: 0 0 auto;
  height: 92px;
  background: linear-gradient(135deg, #151515 0%, var(--cover-hero, #171717) 100%);
  background-size: auto;
  opacity: 1;
}

.dashboard-cover::after {
  display: none;
}

.dashboard-cover--payables {
  --cover-accent: #b42318;
  --cover-accent-2: #b7791f;
  --cover-hero: #241313;
  --cover-soft: #fff4f2;
}

.dashboard-cover--receivables {
  --cover-accent: #147d74;
  --cover-accent-2: #2f7a55;
  --cover-hero: #102626;
  --cover-soft: #eefaf7;
}

.dashboard-cover--accounting {
  --cover-accent: #147d74;
  --cover-accent-2: #64748b;
  --cover-hero: #20262b;
  --cover-soft: #f1f5f9;
}

.dashboard-cover--purchases {
  --cover-accent: #005cff;
  --cover-accent-2: #0ea5e9;
  --cover-hero: #132141;
  --cover-soft: #eef5ff;
}

.dashboard-cover--inventory {
  --cover-accent: #147d74;
  --cover-accent-2: #7c9f2e;
  --cover-hero: #16362f;
  --cover-soft: #f1faf6;
}

.dashboard-cover-top span {
  color: #b8c5d8;
  font-size: 9px;
}

.dashboard-cover-top i {
  width: 34px;
  background: var(--cover-accent);
  opacity: 0.9;
}

.dashboard-cover-copy {
  gap: 4px;
}

.dashboard-cover-copy strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.06;
}

.dashboard-cover-copy em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.dashboard-cover-mark {
  align-self: stretch;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: none;
  width: 44px;
  height: 44px;
}

.dashboard-cover-mark span:first-child {
  inset: 12px 10px auto;
  height: 5px;
}

.dashboard-cover-mark span:last-child {
  inset: auto 10px 11px;
  height: 16px;
  background: var(--cover-accent);
}

.dashboard-cover-visual {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

.dashboard-cover-chips {
  gap: 5px;
}

.dashboard-cover-chips span {
  border-color: #d9e0ea;
  background: #fff;
  color: #667085;
  padding: 5px 7px;
  font-size: 9px;
}

.dashboard-cover small {
  color: #667085;
  font-size: 9px;
}

.cover-deadlines,
.cover-flow,
.cover-ledger,
.cover-risk,
.cover-pipeline,
.cover-waterfall {
  border-color: #d9e0ea;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.cover-deadlines {
  gap: 8px;
  padding: 11px;
}

.cover-deadlines span {
  height: 6px;
  background: #eef2f6;
}

.cover-deadlines span::before {
  background: var(--cover-accent);
}

.cover-deadlines span:nth-child(2)::before {
  background: var(--cover-accent-2);
}

.cover-deadlines span:nth-child(3)::before {
  background: var(--cover-accent);
}

.cover-risk {
  gap: 6px;
  padding: 11px;
}

.cover-risk i {
  background: var(--cover-accent);
}

.cover-risk i:nth-child(4) {
  background: var(--cover-accent-2);
}

.cover-flow::before {
  right: 18px;
  left: 18px;
  height: 3px;
  background: rgba(20, 125, 116, 0.22);
}

.cover-flow span {
  width: 14px;
  height: 14px;
  border-width: 3px;
  border-color: var(--cover-accent);
  background: #fff;
}

.cover-flow span:nth-child(2) {
  transform: translateY(-9px);
}

.cover-flow span:nth-child(3) {
  transform: translateY(8px);
}

.cover-pipeline {
  gap: 7px;
  padding: 11px;
}

.cover-pipeline i {
  height: 8px;
  background: var(--cover-accent);
}

.cover-pipeline i:nth-child(2) {
  background: var(--cover-accent-2);
}

.cover-pipeline i:nth-child(3) {
  background: #cbd5e1;
}

.cover-ledger {
  gap: 7px;
  padding: 11px;
}

.cover-ledger span {
  height: 7px;
  background: #eef2f6;
}

.cover-ledger span::before {
  background: var(--cover-accent);
}

.cover-ledger span::after {
  background: #cbd5e1;
}

.cover-ledger span:nth-child(2)::before {
  background: #b42318;
}

.cover-ledger span:nth-child(4)::before {
  background: var(--cover-accent-2);
}

.cover-waterfall {
  gap: 6px;
  padding: 11px;
}

.cover-waterfall i {
  background: var(--cover-accent);
}

.cover-waterfall i:nth-child(2) {
  background: #b42318;
}

.cover-waterfall i:nth-child(4) {
  background: var(--cover-accent-2);
}

/* Text-first dashboard cards. */
.dashboard-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 320px));
  gap: 22px;
}

.dashboard-company-groups {
  grid-column: 1 / -1;
  display: grid;
  width: 100%;
  gap: 30px;
}

.dashboard-company-group {
  display: grid;
  min-width: 0;
  gap: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  padding-top: 18px;
}

.dashboard-company-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.dashboard-company-group-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.dashboard-company-group-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.dashboard-company-group-logo {
  display: grid;
  width: 26px;
  height: 26px;
  min-width: 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dashboard-company-group-logo-bg, #fff);
  color: #475467;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.14);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-company-group-logo img {
  display: block;
  width: var(--dashboard-company-group-logo-img-size, 86%);
  height: var(--dashboard-company-group-logo-img-size, 86%);
  object-fit: contain;
}

.dashboard-company-group-logo--initials {
  background: #eef2f6;
}

.dashboard-company-group-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.12;
}

.dashboard-company-group-count {
  display: inline-grid;
  min-width: 34px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(0, 92, 255, 0.18);
  border-radius: 8px;
  background: var(--qbiax-blue-soft);
  color: var(--qbiax-blue-dark);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-company-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 320px));
  align-items: start;
  gap: 22px;
}

.dashboard-empty-card--compact {
  min-height: 112px;
  padding: 18px;
}

.dashboard-card--with-tools {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-card-tools {
  padding: 0;
}

.dashboard-card-preview {
  aspect-ratio: 4 / 3;
  background: #fff;
}

.dashboard-cover {
  display: grid;
  grid-template:
    "copy" 1fr / minmax(0, 1fr);
  gap: 0;
  padding: 24px 20px 18px;
  color: #101828;
  background: #fff;
}

.dashboard-cover::before {
  inset: 0 0 auto;
  height: 4px;
  background: var(--cover-accent, var(--qbiax-blue));
  opacity: 1;
}

.dashboard-cover::after,
.dashboard-cover-mark,
.dashboard-cover-visual,
.dashboard-cover-chips,
.dashboard-cover small {
  display: none;
}

.dashboard-cover-watermark {
  position: absolute;
  right: -10px;
  bottom: -8px;
  z-index: 0;
  width: 128px;
  height: 128px;
  color: var(--cover-accent, var(--qbiax-blue));
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.14;
  pointer-events: none;
}

.dashboard-cover--payables {
  --cover-accent: #9f3a44;
  --cover-soft: #fff7f7;
  background: linear-gradient(180deg, #fff5f6 0%, #fff 58%);
}

.dashboard-cover--receivables {
  --cover-accent: #0f8f7d;
  --cover-soft: #effbf8;
  background: linear-gradient(180deg, #effbf8 0%, #fff 58%);
}

.dashboard-cover--accounting {
  --cover-accent: #5b5f97;
  --cover-soft: #f5f6ff;
  background: linear-gradient(180deg, #f5f6ff 0%, #fff 58%);
}

.dashboard-cover--purchases {
  --cover-accent: #005cff;
  --cover-soft: #f4f8ff;
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 58%);
}

.dashboard-cover--operations {
  --cover-accent: #d6a300;
  --cover-soft: #fff9db;
  background: linear-gradient(180deg, #fff9db 0%, #fff 58%);
}

.dashboard-cover--transport {
  --cover-accent: #2563eb;
  --cover-soft: #eef6ff;
  background: linear-gradient(180deg, #eef6ff 0%, #fff 58%);
}

.dashboard-cover--maintenance {
  --cover-accent: #7c3aed;
  --cover-soft: #f7f2ff;
  background: linear-gradient(180deg, #f7f2ff 0%, #fff 58%);
}

.dashboard-cover--sales {
  --cover-accent: #e46f16;
  --cover-soft: #fff3e7;
  background: linear-gradient(180deg, #fff3e7 0%, #fff 58%);
}

.dashboard-cover--inventory {
  --cover-accent: #3f7d20;
  --cover-soft: #f3faef;
  background: linear-gradient(180deg, #f3faef 0%, #fff 58%);
}

.dashboard-cover-top {
  display: none;
}

.dashboard-cover-top span {
  color: #667085;
  font-size: 10px;
}

.dashboard-cover-top i {
  width: 28px;
  height: 2px;
  background: var(--cover-accent);
  opacity: 1;
}

.dashboard-cover-copy {
  position: relative;
  grid-area: copy;
  z-index: 1;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

.dashboard-cover-copy strong {
  color: #101828;
  font-size: 28px;
  line-height: 1.16;
  padding-bottom: 2px;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-cover-copy p {
  max-width: 28ch;
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.dashboard-card-caption {
  display: grid;
  gap: 4px;
  min-height: 58px;
  place-items: center;
  border-top: 1px solid var(--line);
  padding: 11px 12px 13px;
  text-align: center;
}

.dashboard-card-caption strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.dashboard-card-caption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-access-dialog {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.46);
}

.dashboard-access-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(220px, 1fr) auto auto;
  width: min(980px, 100%);
  min-height: min(640px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
  padding: 18px 0 0;
}

.dashboard-access-panel h2 {
  margin: 0 56px 10px 20px;
  color: #101828;
  font-size: 19px;
  font-weight: 750;
}

.dashboard-access-panel p {
  margin: 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-access-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}

.dashboard-access-toolbar,
.dashboard-access-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f8f9;
  padding: 12px 24px;
}

.dashboard-access-list-head {
  display: grid;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #d5d7db;
  background: #f3f3f4;
  color: #23252a;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 850;
}

.dashboard-access-current-head {
  grid-template-columns: 44px minmax(0, 1fr) 82px;
  gap: 12px;
}

.dashboard-access-picker-head {
  grid-template-columns: 34px 44px minmax(180px, 0.8fr) minmax(0, 1fr);
  gap: 10px;
  padding-left: 22px;
}

.dashboard-access-toolbar button {
  min-height: 38px;
  border: 1px solid rgba(154, 48, 47, 0.26);
  border-radius: 7px;
  background: #fff;
  color: #c4143d;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 850;
}

.dashboard-access-picker-toolbar input {
  width: min(440px, 100%);
  min-height: 38px;
  border: 1px solid #c9ced6;
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  color: #333;
  font-size: 14px;
}

.dashboard-access-users {
  display: grid;
  align-content: start;
  overflow: auto;
  margin: 0;
}

.dashboard-access-user {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid #d5d7db;
  background: #fff;
  padding: 10px 24px;
}

.dashboard-access-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: #7d7d7d;
  color: #fff;
}

.dashboard-access-avatar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-access-identity {
  min-width: 0;
}

.dashboard-access-identity strong,
.dashboard-access-identity em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-access-identity strong {
  color: #2b2d31;
  font-size: 15px;
  font-weight: 650;
}

.dashboard-access-identity em {
  margin-top: 2px;
  color: #70747c;
  font-size: 14px;
  font-style: normal;
}

.dashboard-access-user.locked {
  color: #777;
}

.dashboard-access-remove {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d5d7db;
  border-radius: 7px;
  background: #f6f6f7;
  color: #333;
  padding: 0;
}

.dashboard-access-remove svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-access-remove:hover,
.dashboard-access-remove:focus-visible {
  border-color: rgba(180, 35, 24, 0.28);
  background: var(--red-soft);
  color: var(--red);
  outline: none;
}

.dashboard-access-lock {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-access-loading,
.dashboard-access-message {
  display: grid;
  min-height: 44px;
  align-items: center;
  padding: 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-access-panel > .form-actions {
  justify-content: flex-end;
  border-top: 1px solid #d5d7db;
  background: #fff;
  padding: 14px 20px;
}

.dashboard-access-panel > .form-actions button {
  min-width: 160px;
  min-height: 42px;
  font-size: 14px;
}

.dashboard-access-picker-dialog {
  z-index: 190;
}

.dashboard-access-picker-panel {
  width: min(980px, 100%);
  grid-template-rows: auto auto auto minmax(260px, 1fr) auto auto;
}

.dashboard-access-picker-users {
  display: grid;
  align-content: start;
  overflow: auto;
}

.dashboard-access-picker-user {
  display: grid;
  grid-template-columns: 34px 44px minmax(180px, 0.8fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #d5d7db;
  background: #fff;
  padding: 6px 22px;
}

.dashboard-access-picker-user input {
  width: 19px;
  height: 19px;
  accent-color: #c4143d;
}

.dashboard-access-picker-user.is-locked {
  background: #fafafa;
  color: #767a82;
}

.dashboard-access-picker-user.is-locked .dashboard-access-avatar {
  background: #9a9a9a;
}

.dashboard-access-picker-user.is-locked input {
  opacity: 0.55;
}

.dashboard-access-picker-name,
.dashboard-access-picker-email {
  display: block;
  overflow: hidden;
  color: #2b2d31;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-access-picker-email {
  color: #666b73;
}

.dashboard-access-picker-panel > .form-actions button:first-child {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

#dashboardAccessPickerSelect {
  border-color: #c4143d;
  background: #c4143d;
  color: #fff;
}

#dashboardAccessPickerSelect:disabled {
  border-color: #d5d7db;
  background: #a9abb0;
  color: #fff;
  cursor: not-allowed;
}

.preview-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 20px 1fr;
  background: #f3f5f7;
}

.preview-rail {
  display: grid;
  align-content: start;
  gap: 6px;
  background: #7b1515;
  padding: 10px 5px;
}

.preview-shell--receipts .preview-rail {
  background: #0d5c70;
}

.preview-rail i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.88);
}

.preview-canvas {
  display: grid;
  grid-template-rows: 14px 34px 20px 30px 1fr;
  gap: 6px;
  padding: 8px;
}

.preview-topline,
.preview-filters,
.preview-insights,
.preview-body {
  min-width: 0;
}

.preview-topline {
  display: grid;
  grid-template-columns: 1fr 34px 34px 44px;
  gap: 5px;
  align-items: center;
}

.preview-topline span,
.preview-filters span,
.preview-list span {
  display: block;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid #d8dee8;
}

.preview-topline span {
  height: 9px;
}

.preview-hero {
  border-radius: 4px;
  background: #151515;
}

.preview-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.preview-filters span {
  height: 18px;
}

.preview-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.preview-insights span {
  position: relative;
  min-height: 26px;
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fff;
}

.preview-insights span::before,
.preview-insights span::after {
  content: "";
  position: absolute;
  left: 6px;
  border-radius: 999px;
}

.preview-insights span::before {
  top: 7px;
  width: var(--w);
  height: 4px;
  background: #c42119;
}

.preview-insights span::after {
  top: 15px;
  width: calc(var(--w) * 0.72);
  height: 3px;
  background: #dfe5ec;
}

.preview-shell--receipts .preview-insights span::before {
  background: #0a7f78;
}

.preview-body {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 6px;
}

.preview-chart,
.preview-list {
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fff;
}

.preview-chart {
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 12px 10px 8px;
}

.preview-chart i {
  flex: 1;
  height: var(--h);
  min-height: 12px;
  border-radius: 3px 3px 0 0;
  background: #8d221f;
}

.preview-shell--receipts .preview-chart i {
  background: #0d7880;
}

.preview-list {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 9px;
}

.preview-list span {
  height: 8px;
}

.preview-shell--accounting {
  background: #eef2f5;
}

.preview-shell--accounting .preview-rail {
  background: #26323d;
}

.preview-shell--accounting .preview-rail i:nth-child(1),
.preview-shell--accounting .preview-rail i:nth-child(4) {
  background: #8fd3c4;
}

.preview-accounting-canvas {
  display: grid;
  grid-template-rows: 14px 38px 30px 1fr;
  gap: 6px;
  min-width: 0;
  padding: 8px;
}

.preview-accounting-topline {
  display: grid;
  grid-template-columns: 1fr 42px 56px;
  gap: 5px;
  align-items: center;
}

.preview-accounting-topline span,
.preview-accounting-hero,
.preview-accounting-kpis span,
.preview-accounting-statement,
.preview-accounting-timeline {
  border: 1px solid #d8dee8;
  background: #fff;
}

.preview-accounting-topline span {
  height: 9px;
  border-radius: 3px;
}

.preview-accounting-hero {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #171717;
}

.preview-accounting-hero span,
.preview-accounting-hero strong,
.preview-accounting-hero em {
  position: absolute;
  left: 12px;
  display: block;
  border-radius: 999px;
}

.preview-accounting-hero span {
  top: 9px;
  width: 64px;
  height: 4px;
  background: #8fd3c4;
}

.preview-accounting-hero strong {
  top: 18px;
  width: 132px;
  height: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.preview-accounting-hero em {
  top: 29px;
  width: 88px;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
}

.preview-accounting-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.preview-accounting-kpis span {
  position: relative;
  min-width: 0;
  border-radius: 4px;
}

.preview-accounting-kpis span::before,
.preview-accounting-kpis span::after,
.preview-accounting-statement span::before,
.preview-accounting-statement span::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.preview-accounting-kpis span::before {
  top: 7px;
  left: 7px;
  width: 42%;
  height: 4px;
  background: #dce3eb;
}

.preview-accounting-kpis span::after {
  left: 7px;
  bottom: 7px;
  width: 68%;
  height: 6px;
}

.preview-accounting-kpis .revenue::after {
  background: #2f7a55;
}

.preview-accounting-kpis .expense::after {
  background: #b42318;
}

.preview-accounting-kpis .result::after {
  background: #147d74;
}

.preview-accounting-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6px;
  min-width: 0;
}

.preview-accounting-statement {
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 0;
  padding: 9px;
  border-radius: 4px;
}

.preview-accounting-statement span {
  position: relative;
  display: block;
  min-height: 10px;
}

.preview-accounting-statement span::before {
  top: 3px;
  left: 0;
  width: var(--w);
  height: 4px;
  background: #cfd7e1;
}

.preview-accounting-statement span::after {
  top: 2px;
  right: 0;
  width: 34px;
  height: 6px;
  background: #e9edf2;
}

.preview-accounting-statement .revenue::before {
  background: #2f7a55;
}

.preview-accounting-statement .deduction::before,
.preview-accounting-statement .expense::before {
  background: #b42318;
}

.preview-accounting-statement .subtotal::before {
  background: #b7791f;
}

.preview-accounting-statement .total::before {
  height: 6px;
  background: #147d74;
}

.preview-accounting-timeline {
  display: flex;
  align-items: end;
  gap: 6px;
  min-width: 0;
  padding: 12px 10px 8px;
  border-radius: 4px;
}

.preview-accounting-timeline i {
  flex: 1;
  height: var(--h);
  min-height: 14px;
  border-radius: 999px 999px 3px 3px;
  background: #147d74;
}

.preview-accounting-timeline i.negative {
  background: #b42318;
}

.export-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(0, 92, 255, 0.22);
  color: var(--qbiax-blue-dark);
  background: var(--qbiax-blue-soft);
}

.export-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.export-icon-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  justify-content: center;
  width: 38px;
  padding: 0;
}

.export-icon-button img {
  width: 24px;
  height: 24px;
}

.fullscreen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  padding: 0;
}

.fullscreen-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.fullscreen-collapse-icon {
  display: none;
}

.fullscreen-button.is-fullscreen .fullscreen-expand-icon {
  display: none;
}

.fullscreen-button.is-fullscreen .fullscreen-collapse-icon {
  display: inline;
}

.workspace {
  --workspace-padding: 16px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--sticky-gap);
  width: min(1680px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: var(--workspace-padding);
  overflow: visible;
  background: var(--bg);
}

.admin-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: min(1500px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 16px;
  overflow: hidden;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.admin-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-sticky-head {
  position: sticky;
  top: calc(var(--app-header-height) + var(--workspace-padding));
  z-index: 80;
  display: grid;
  gap: var(--sticky-gap);
  background: var(--bg);
  isolation: isolate;
}

.dashboard-sticky-head::before {
  content: "";
  position: absolute;
  top: calc(var(--workspace-padding) * -1);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: var(--bg);
  pointer-events: none;
}

.command-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--command-band-height);
  height: var(--command-band-height);
  padding: 22px;
  border-radius: 10px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: none;
}

.command-copy h1 {
  margin: 7px 0 0;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1;
}

.command-copy {
  min-width: 0;
}

.executive-insight-button {
  display: inline-grid;
  place-items: center;
  align-self: flex-end;
  flex: 0 0 auto;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transform: translate(8px, 8px);
}

.executive-insight-button:hover,
.executive-insight-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.executive-insight-button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.executive-insight-button img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.executive-insight-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.command-copy p {
  max-width: 780px;
  margin: 0;
  color: #d4dae2;
  font-size: 13px;
  line-height: 1.55;
}

.command-band .eyebrow,
.command-band .last-update {
  color: #aeb7c4;
}

.command-band .last-update {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  line-height: 1.2;
  text-align: left;
}

.command-band .last-update span {
  color: #8f9aaa;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-band .last-update strong {
  color: #fff;
  font-size: 12px;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.command-metrics article {
  display: grid;
  align-content: end;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.command-metrics span {
  color: #b9c2cf;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.command-metrics strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.command-metrics .risk strong {
  color: #ffb3aa;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: var(--sticky-gap);
  min-width: 0;
  min-height: auto;
  overflow: visible;
  background: var(--bg);
}

.dashboard-layout.filters-collapsed {
  grid-template-columns: 1fr;
}

.dashboard-content {
  min-width: 0;
  min-height: auto;
  overflow: visible;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 24px;
  background: var(--bg);
}

.filter-deck,
.panel,
.signal-card,
.insight-card,
.table-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.filter-deck {
  position: relative;
  align-self: start;
  overflow: visible;
  margin-bottom: 0;
  max-height: 520px;
  box-shadow: none;
  transition:
    max-height 0.28s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.filter-head {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px;
  border-bottom: 1px solid var(--line);
}

.filter-head,
.filters-form {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.18s ease,
    transform 0.24s ease;
}

.filter-head strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 14px 16px;
  padding: 14px 16px 16px;
}

.filter-item {
  min-width: 0;
  transition:
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.filter-item[draggable="true"] {
  cursor: grab;
}

.filter-item.is-dragging {
  opacity: 0.56;
  transform: scale(0.985);
}

.filter-item.is-drop-target {
  box-shadow: 0 0 0 2px rgba(20, 125, 116, 0.16);
}

.filter-item.is-drop-before {
  box-shadow: inset 0 3px 0 var(--teal), 0 0 0 2px rgba(20, 125, 116, 0.12);
}

.filter-item.is-drop-after {
  box-shadow: inset 0 -3px 0 var(--teal), 0 0 0 2px rgba(20, 125, 116, 0.12);
}

#clearFilters {
  grid-column: auto;
}

.filter-icon-button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 !important;
}

.filter-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.filter-toggle {
  appearance: none;
  position: absolute;
  left: 50%;
  top: -1px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 20px;
  height: 20px;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--line) !important;
  box-shadow: none;
  transform: translateX(-50%);
}

.filter-toggle svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}

.filter-toggle svg {
  transition: transform 0.16s ease;
}

.filters-collapsed .filter-toggle svg {
  transform: rotate(180deg);
}

.filters-collapsed .filter-toggle {
  top: 0;
}

.filter-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filters-collapsed .filter-deck {
  max-height: 22px;
  min-height: 22px;
  overflow: hidden;
  border-color: transparent;
  background: transparent;
}

.filters-collapsed .filter-head,
.filters-collapsed .filters-form {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.filters-collapsed #clearFilters {
  pointer-events: none;
}

.active-filter-summary {
  display: none;
}

.dashboard-layout.filters-layout-sidebar {
  grid-template-columns: minmax(260px, 288px) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
  gap: 16px;
  transition: grid-template-columns 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-layout.filters-layout-sidebar.filters-collapsed {
  grid-template-columns: 54px minmax(0, 1fr);
}

.dashboard-layout.filters-layout-sidebar .filter-deck {
  position: sticky;
  top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap));
  z-index: 70;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-self: stretch;
  width: 100%;
  height: var(--filter-sidebar-target-height, auto);
  min-height: var(--filter-sidebar-target-height, 0);
  max-height: var(--filter-sidebar-target-height, none);
  overflow: visible;
  border-color: #d5dde7;
  background: #fff;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.dashboard-layout.filters-layout-sidebar .filter-deck::after {
  content: "Filtros";
  position: absolute;
  top: 68px;
  left: 50%;
  opacity: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.14s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.dashboard-layout.filters-layout-sidebar .dashboard-content {
  position: relative;
  padding-bottom: 0;
}

.dashboard-layout.filters-layout-sidebar .filter-head {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 70px;
  padding: 14px 96px 12px 16px;
  background: #fff;
  transform-origin: left center;
  transition:
    opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-layout.filters-layout-sidebar .active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  transform-origin: left center;
  transition:
    opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-layout.filters-layout-sidebar .active-filter-summary[hidden] {
  display: none;
}

.dashboard-layout.filters-layout-sidebar .active-filter-summary span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #667085;
  padding: 0;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-layout.filters-layout-sidebar .filters-form {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 11px;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 16px;
  transform-origin: left center;
  transition:
    opacity 0.18s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-layout.filters-layout-sidebar .accounting-annual-scroll {
  height: var(--accounting-annual-scroll-height, max(360px, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 92px)));
  max-height: var(--accounting-annual-scroll-height, max(360px, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 92px)));
  min-height: 0;
  overflow: auto;
}

.dashboard-layout.filters-layout-sidebar .field-control input,
.dashboard-layout.filters-layout-sidebar .filter-trigger {
  height: 40px;
  background: #fff;
}

.dashboard-layout.filters-layout-sidebar .filter-toggle {
  left: auto;
  right: 16px;
  top: 17px;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff !important;
  color: #475467 !important;
  box-shadow: none;
  transform: none;
  transition:
    right 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.dashboard-layout.filters-layout-sidebar #clearFilters {
  position: absolute;
  top: 17px;
  right: 58px;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
}

.dashboard-layout.filters-layout-sidebar .filter-toggle svg {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transform: rotate(-90deg);
}

.dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck {
  position: sticky;
  top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap));
  align-self: start;
  width: 54px;
  height: var(--filter-sidebar-target-height, auto);
  min-height: var(--filter-sidebar-target-height, 180px);
  max-height: var(--filter-sidebar-target-height, none);
  overflow: visible;
  border-color: #d5dde7;
  background: #fff;
}

body.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck {
  height: min(var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 12px)), calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 12px));
  min-height: 180px;
  max-height: calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 12px);
}

.dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.14s;
}

.dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-toggle {
  right: 9px;
  top: 9px;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  height: 36px;
}

.dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-toggle svg {
  transform: rotate(90deg);
}

.dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-head,
.dashboard-layout.filters-layout-sidebar.filters-collapsed .filters-form,
.dashboard-layout.filters-layout-sidebar.filters-collapsed .active-filter-summary {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px) scaleX(0.96);
}

.dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filter-head,
.dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form,
.dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .active-filter-summary {
  transition-delay: 0.08s;
}

.dashboard-layout.filters-layout-sidebar .filter-popover {
  position: fixed;
  top: var(--filter-popover-top, auto);
  left: var(--filter-popover-fixed-left, 0);
  z-index: 190;
  width: var(--filter-popover-width, 280px);
  max-height: var(--filter-popover-max-height, calc(100vh - 20px));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

body.dashboard-contabilidade-active .dashboard-layout.filters-layout-sidebar .filter-popover {
  position: fixed !important;
  top: var(--filter-popover-top, auto) !important;
  right: auto;
  bottom: auto;
  left: var(--filter-popover-fixed-left, 0) !important;
  z-index: 240;
  width: var(--filter-popover-width, 280px);
  max-height: var(--filter-popover-max-height, calc(100vh - 20px));
  margin: 0 !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

body.dashboard-pagamentos-active .dashboard-layout.filters-layout-sidebar .filter-field > .filter-popover {
  position: fixed;
  top: var(--filter-popover-top, auto);
  right: auto;
  bottom: auto;
  left: var(--filter-popover-fixed-left, 0);
  z-index: 240;
  width: var(--filter-popover-width, 280px);
  max-height: var(--filter-popover-max-height, calc(100vh - 20px));
  margin: 0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

body.dashboard-recebimentos-active .dashboard-layout.filters-layout-sidebar .filter-field > .filter-popover {
  position: fixed;
  top: var(--filter-popover-top, auto);
  right: auto;
  bottom: auto;
  left: var(--filter-popover-fixed-left, 0);
  z-index: 240;
  width: var(--filter-popover-width, 280px);
  max-height: var(--filter-popover-max-height, calc(100vh - 20px));
  margin: 0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

body.dashboard-cco-active .dashboard-layout.filters-layout-sidebar .filter-field > .filter-popover,
body.dashboard-inventory-active .dashboard-layout.filters-layout-sidebar .filter-field > .filter-popover,
body.dashboard-movebuss-active .dashboard-layout.filters-layout-sidebar .filter-field > .filter-popover,
body.dashboard-vendas-active .dashboard-layout.filters-layout-sidebar .filter-field > .filter-popover {
  position: fixed;
  top: var(--filter-popover-top, auto);
  right: auto;
  bottom: auto;
  left: var(--filter-popover-fixed-left, 0);
  z-index: 240;
  width: var(--filter-popover-width, 280px);
  max-height: var(--filter-popover-max-height, calc(100vh - 20px));
  margin: 0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

body.dashboard-manutencao-active .dashboard-layout.filters-layout-sidebar .filter-field > .filter-popover {
  position: fixed;
  top: var(--filter-popover-top, auto);
  right: auto;
  bottom: auto;
  left: var(--filter-popover-fixed-left, 0);
  z-index: 240;
  width: var(--filter-popover-width, 280px);
  max-height: var(--filter-popover-max-height, calc(100vh - 20px));
  margin: 0;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

body.is-refreshing .dashboard-layout.filters-layout-sidebar .filter-deck {
  border-color: #d5dde7;
  box-shadow: none;
}

@media (min-width: 901px) {
  body.dashboard-filters-sidebar-active:not(.dashboard-filters-sidebar-page-scroll) {
    overflow-y: hidden;
  }

  body.dashboard-cco-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar,
  body.dashboard-contabilidade-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar,
  body.dashboard-compras-operacional-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar,
  body.dashboard-inventory-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar,
  body.dashboard-movebuss-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar,
  body.dashboard-vendas-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  body.dashboard-cco-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed,
  body.dashboard-contabilidade-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed,
  body.dashboard-compras-operacional-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed,
  body.dashboard-inventory-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed,
  body.dashboard-movebuss-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed,
  body.dashboard-vendas-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body.dashboard-manutencao-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  body.dashboard-manutencao-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body.dashboard-recebimentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  body.dashboard-recebimentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body.dashboard-pagamentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  body.dashboard-pagamentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body.dashboard-pagamentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 260px;
    height: var(--filter-sidebar-target-height, auto);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-pagamentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 54px;
    height: var(--filter-sidebar-target-height, auto);
    min-height: var(--filter-sidebar-target-height, 180px);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    overflow: visible;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-pagamentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content {
    grid-column: 2;
  }

  body.dashboard-pagamentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head {
    border-radius: 8px 8px 0 0;
  }

  body.dashboard-pagamentos-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-pagamentos-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
  }

  body.dashboard-pagamentos-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form {
    transform: none;
  }

  body.dashboard-cco-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck,
  body.dashboard-contabilidade-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck,
  body.dashboard-compras-operacional-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck,
  body.dashboard-inventory-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck,
  body.dashboard-movebuss-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck,
  body.dashboard-vendas-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 260px;
    height: var(--filter-sidebar-target-height, auto);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-cco-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck,
  body.dashboard-contabilidade-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck,
  body.dashboard-compras-operacional-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck,
  body.dashboard-inventory-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck,
  body.dashboard-movebuss-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck,
  body.dashboard-vendas-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 54px;
    height: var(--filter-sidebar-target-height, auto);
    min-height: var(--filter-sidebar-target-height, 180px);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    overflow: visible;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-cco-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head,
  body.dashboard-contabilidade-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head,
  body.dashboard-compras-operacional-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head,
  body.dashboard-inventory-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head,
  body.dashboard-movebuss-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head,
  body.dashboard-vendas-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head {
    border-radius: 8px 8px 0 0;
  }

  body.dashboard-cco-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-cco-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator,
  body.dashboard-contabilidade-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-contabilidade-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator,
  body.dashboard-compras-operacional-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-compras-operacional-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator,
  body.dashboard-inventory-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-inventory-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator,
  body.dashboard-movebuss-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-movebuss-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator,
  body.dashboard-vendas-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-vendas-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
  }

  body.dashboard-cco-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content,
  body.dashboard-contabilidade-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content,
  body.dashboard-compras-operacional-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content,
  body.dashboard-inventory-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content,
  body.dashboard-movebuss-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content,
  body.dashboard-vendas-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content {
    grid-column: 2;
  }

  body.dashboard-vendas-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content {
    padding-bottom: 0;
  }

  body.dashboard-contabilidade-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form {
    transform: none;
  }

  body.dashboard-compras-operacional-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form {
    transform: none;
  }

  body.dashboard-recebimentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 260px;
    height: var(--filter-sidebar-target-height, auto);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-recebimentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 54px;
    height: var(--filter-sidebar-target-height, auto);
    min-height: var(--filter-sidebar-target-height, 180px);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    overflow: visible;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-recebimentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content {
    grid-column: 2;
  }

  body.dashboard-recebimentos-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head {
    border-radius: 8px 8px 0 0;
  }

  body.dashboard-recebimentos-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-recebimentos-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
  }

  body.dashboard-manutencao-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 260px;
    height: var(--filter-sidebar-target-height, auto);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    overflow: visible;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-manutencao-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck {
    align-self: start;
    position: fixed;
    top: calc(var(--app-header-height) + var(--workspace-padding) + var(--command-band-height) + var(--sticky-gap) + 2px);
    left: var(--filter-sidebar-fixed-left, max(var(--workspace-padding), calc((100vw - 1680px) / 2 + var(--workspace-padding))));
    width: 54px;
    height: var(--filter-sidebar-target-height, auto);
    min-height: var(--filter-sidebar-target-height, 180px);
    max-height: var(--filter-sidebar-target-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px));
    overflow: visible;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.dashboard-manutencao-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .dashboard-content {
    grid-column: 2;
  }

  body.dashboard-manutencao-active.dashboard-filters-sidebar-page-scroll .dashboard-layout.filters-layout-sidebar .filter-head {
    border-radius: 8px 8px 0 0;
  }

  body.dashboard-manutencao-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"],
  body.dashboard-manutencao-active .dashboard-layout.filters-layout-sidebar .field-control input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
  }

  body.dashboard-cco-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form,
  body.dashboard-inventory-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form,
  body.dashboard-movebuss-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form,
  body.dashboard-vendas-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form {
    transform: none;
  }

  body.dashboard-cco-active .dashboard-layout.filters-layout-sidebar .filter-popover,
  body.dashboard-contabilidade-active .dashboard-layout.filters-layout-sidebar .filter-popover,
  body.dashboard-inventory-active .dashboard-layout.filters-layout-sidebar .filter-popover,
  body.dashboard-movebuss-active .dashboard-layout.filters-layout-sidebar .filter-popover,
  body.dashboard-vendas-active .dashboard-layout.filters-layout-sidebar .filter-popover {
    z-index: 190;
    max-height: calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 18px);
  }

  body.dashboard-recebimentos-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form {
    transform: none;
  }

  body.dashboard-recebimentos-active .dashboard-layout.filters-layout-sidebar .filter-popover {
    z-index: 210;
    max-height: var(--filter-popover-max-height, calc(100vh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 18px));
  }

  body.dashboard-manutencao-active .dashboard-layout.filters-layout-sidebar:not(.filters-collapsed) .filters-form {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-layout.filters-layout-sidebar,
  .dashboard-layout.filters-layout-sidebar .filter-deck,
  .dashboard-layout.filters-layout-sidebar .filter-deck::after,
  .dashboard-layout.filters-layout-sidebar .filter-head,
  .dashboard-layout.filters-layout-sidebar .filters-form,
  .dashboard-layout.filters-layout-sidebar .active-filter-summary,
  .dashboard-layout.filters-layout-sidebar .filter-toggle,
  .dashboard-layout.filters-layout-sidebar .filter-toggle svg {
    transition: none;
  }
}

.field-control,
.filter-field {
  position: relative;
}

.filter-field,
.field-control {
  gap: 7px;
  font-size: 11.5px;
}

.field-control input,
.filter-trigger {
  height: 38px;
}

.filter-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.filter-trigger span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-clear {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #7a8492;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.filter-clear:hover {
  background: #edf1f5;
  color: var(--wine);
}

.filter-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: var(--filter-popover-left, 0);
  z-index: 140;
  width: var(--filter-popover-width, min(360px, max(100%, 280px)));
  overflow: hidden;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.filter-search {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.filter-options {
  max-height: var(--filter-options-max-height, 260px);
  overflow: auto;
  color: var(--ink);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 650;
}

.filter-option:hover {
  background: var(--surface-2);
}

.filter-option.is-muted {
  color: var(--muted);
  cursor: default;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 850;
}

.loading-state[hidden] {
  display: none;
}

.loading-state::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid #dfe6ee;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-state--overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(244, 246, 248, 0.78);
  color: #667085;
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.loading-state--overlay::before {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: #d0d5dd;
  border-top-color: #667085;
}

.loading-state--overlay span {
  display: none;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #dfe6ee;
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@keyframes qbiax-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes qbiax-bars {
  0%,
  100% {
    height: 12px;
    opacity: 0.62;
  }

  50% {
    height: 40px;
    opacity: 1;
  }
}

@keyframes qbiax-scan {
  0% {
    transform: translateX(-100%);
  }

  52%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes qbiax-progress {
  0% {
    transform: translateX(-110%);
  }

  54%,
  100% {
    transform: translateX(240%);
  }
}

@keyframes qbiax-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.dashboard-grid,
.summary-view,
.base-view,
.users-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.dashboard-widget {
  cursor: grab;
  transition: box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.dashboard-widget:active {
  cursor: grabbing;
}

.dashboard-widget.is-dragging {
  opacity: 0.58;
  transform: scale(0.995);
}

.dashboard-widget.is-drop-target {
  box-shadow: 0 0 0 3px rgba(20, 125, 116, 0.22), 0 14px 32px rgba(24, 25, 27, 0.12);
}

.dashboard-widget.is-drop-before {
  box-shadow: inset 5px 0 0 var(--teal), 0 0 0 3px rgba(20, 125, 116, 0.18), 0 14px 32px rgba(24, 25, 27, 0.12);
}

.dashboard-widget.is-drop-after {
  box-shadow: inset -5px 0 0 var(--teal), 0 0 0 3px rgba(20, 125, 116, 0.18), 0 14px 32px rgba(24, 25, 27, 0.12);
}

.widget-drop-zone {
  display: none;
  grid-column: span 3;
  min-height: 112px;
  border: 2px dashed rgba(20, 125, 116, 0.45);
  border-radius: 8px;
  background: rgba(231, 245, 242, 0.72);
  color: var(--teal);
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.dashboard-grid.is-reordering .widget-drop-zone,
.accounting-dre-view.is-reordering .widget-drop-zone,
.cco-operations-view.is-reordering .widget-drop-zone,
.maintenance-view.is-reordering .widget-drop-zone,
.inventory-view.is-reordering .widget-drop-zone,
.sales-view.is-reordering .widget-drop-zone {
  display: grid;
}

.dashboard-grid.is-drop-end .widget-drop-zone,
.accounting-dre-view.is-drop-end .widget-drop-zone,
.cco-operations-view.is-drop-end .widget-drop-zone,
.maintenance-view.is-drop-end .widget-drop-zone,
.inventory-view.is-drop-end .widget-drop-zone,
.sales-view.is-drop-end .widget-drop-zone {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 2px rgba(20, 125, 116, 0.12);
}

.panel-span {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

.signal-grid {
  display: contents;
}

.signal-grid.payment-signal-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.signal-grid.payment-signal-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.payment-signal-grid .signal-card {
  grid-column: auto;
}

.insight-rail {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 6px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.insight-rail.danger {
  border-left-color: var(--red);
}

.insight-rail.good {
  border-left-color: var(--green);
}

.insight-main {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(244, 246, 248, 0.92), rgba(255, 255, 255, 0));
}

.insight-main strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.insight-main p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.insight-rail.danger .insight-main strong {
  color: var(--red);
}

.insight-rail.good .insight-main strong {
  color: var(--green);
}

.insight-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.insight-fact {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
}

.insight-fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-fact strong {
  display: block;
  min-width: 0;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-fact em {
  display: block;
  min-width: 0;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.signal-card {
  display: grid;
  grid-column: span 3;
  align-content: start;
  min-height: 116px;
  padding: 13px;
}

.signal-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  min-width: 0;
  margin-top: 13px;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.signal-card em {
  display: block;
  min-width: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.signal-card.good strong {
  color: var(--green);
}

.signal-card.warn strong,
.signal-card.focus strong {
  color: var(--amber);
}

.signal-card.danger {
  border-color: rgba(180, 35, 24, 0.24);
  background: var(--red);
  color: #fff;
}

.signal-card.danger span,
.signal-card.danger em {
  color: rgba(255, 255, 255, 0.78);
}

.payment-signal-card {
  min-height: 194px;
  padding: 16px;
}

.payment-signal-card strong {
  margin-top: 11px;
}

.payment-signal-stats {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 14px;
}

.payment-signal-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.payment-signal-stat span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: none;
}

.payment-signal-stat b {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}

.payment-signal-card.charges {
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff;
}

.payment-signal-card.charges strong,
.payment-signal-card.charges .payment-signal-stat b {
  color: var(--red);
}

.payment-signal-card.danger .payment-signal-stat {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.payment-signal-card.danger .payment-signal-stat span,
.payment-signal-card.danger .payment-signal-stat b {
  color: rgba(255, 255, 255, 0.88);
}

.panel {
  grid-column: span 4;
  overflow: hidden;
}

.dashboard-grid > .panel:not(.panel-xl) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.dashboard-grid > .panel:not(.panel-xl) > :not(header) {
  min-height: 0;
  overflow: auto;
}

.panel-xl {
  grid-column: span 8;
}

.panel-focus {
  grid-column: span 4;
}

.dashboard-grid > .dashboard-widget[data-widget-key="timeline"] {
  display: grid;
  grid-column: span 9;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.dashboard-grid > .dashboard-widget[data-widget-key="upcoming"] {
  display: grid;
  grid-column: span 3;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.dashboard-grid > .dashboard-widget[data-widget-key="suppliers"],
.dashboard-grid > .dashboard-widget[data-widget-key="projects"] {
  grid-column: span 6;
  height: 520px;
}

.panel header,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.panel h2,
.table-toolbar h2 {
  margin: 2px 0 0;
  font-size: 19px;
}

.panel-title-row {
  display: grid;
  gap: 3px;
}

.panel-title-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-chart {
  display: block;
  height: 260px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 6px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.timeline-chart.timeline-chart-payments {
  height: 100%;
  padding: 8px 6px 6px;
}

.timeline-stage {
  min-width: 100%;
  height: 100%;
}

.timeline-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.timeline-gridline line {
  stroke: #e7ecf2;
  stroke-width: 1;
}

.timeline-gridline text,
.timeline-x-label,
.timeline-value-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.timeline-gridline text {
  text-anchor: end;
}

.timeline-x-label {
  text-anchor: middle;
}

.timeline-value-label {
  fill: #4f5d6d;
  font-size: 12px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 4px;
  text-anchor: middle;
}

.timeline-chart-payments .timeline-value-label {
  font-size: 11px;
}

.timeline-area {
  fill: url(#timelineArea);
}

.timeline-line {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.timeline-point {
  fill: #fff;
  stroke: var(--red);
  stroke-width: 3;
}

.timeline-point-target {
  cursor: default;
}

.timeline-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.empty-chart {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.focus-list,
.branch-grid,
.bucket-list,
.matrix-list,
.aging-chart,
.summary-chart {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.dashboard-grid > [data-widget-key="suppliers"] > .focus-list,
.dashboard-grid > [data-widget-key="projects"] > .project-grid {
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.payment-ranking-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}

.bucket-list {
  gap: 6px;
}

.focus-summary {
  display: grid;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 0;
}

.payment-kpi-summary {
  min-height: 0;
}

.focus-summary span,
.focus-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.focus-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
  line-height: 1;
}

.payment-kpi-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.payment-kpi-summary-grid article {
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 7px;
  background: #f8fafc;
  padding: 6px 8px;
}

.payment-kpi-summary-grid span {
  display: block;
  margin: 0 0 3px;
  color: #667085;
  font-size: 9px;
}

.payment-kpi-summary-grid b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-kpi-summary-grid article.danger b {
  color: var(--red);
}

.focus-row,
.bucket-row,
.matrix-row,
.summary-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.focus-row div,
.bucket-row div,
.matrix-row div,
.summary-row div {
  min-width: 0;
}

.focus-row strong,
.summary-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-row span,
.summary-row span,
.matrix-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.focus-row span b {
  color: var(--ink);
  font-weight: 900;
}

.focus-row .payment-row-overdue,
.focus-row .payment-row-overdue b {
  color: var(--red);
  font-style: normal;
  font-weight: 950;
}

.focus-row b,
.bucket-row b,
.matrix-row b,
.summary-row b {
  font-size: 12px;
  white-space: nowrap;
}

.supplier-focus-row {
  min-height: 94px;
  padding: 12px;
}

.supplier-focus-row > i {
  display: none;
}

.kpi-row-value {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.kpi-row-value b {
  color: var(--ink);
  font-size: 13px;
}

.kpi-row-value em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.focus-row > i,
.bucket-row > i,
.summary-row > i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--teal);
}

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

.project-grid {
  grid-template-columns: 1fr;
  align-content: start;
}

.branch-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.branch-card span,
.branch-card em,
.bucket-row em,
.matrix-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.payment-risk-card span {
  display: -webkit-box;
  min-height: 30px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-transform: uppercase;
}

.branch-card strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.branch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.branch-card p b {
  color: var(--ink);
}

.branch-card p em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.risk-line,
.aging-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.risk-line i,
.aging-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.bucket-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
}

.bucket-row div {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bucket-row em {
  margin-top: 0;
}

.bucket-row.danger > i {
  background: var(--red);
}

.project-breakdown-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.project-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 12px;
  font-weight: 950;
}

.project-main {
  min-width: 0;
}

.project-main strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-main span,
.project-values span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-split {
  display: flex;
  height: 7px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 999px;
  background: #e8edf2;
}

.project-split i {
  display: block;
  height: 100%;
}

.project-split .paid {
  background: var(--teal);
}

.project-split .open {
  background: var(--red);
}

.project-values {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.project-values span {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #f6f8fb;
  padding: 6px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-values b {
  color: var(--ink);
  font-weight: 950;
}

.project-values .danger b {
  color: var(--red);
}

.project-risk-shell {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.project-risk-overview {
  display: grid;
  grid-template-columns: 0.7fr repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.project-risk-overview article {
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 7px;
  background: #f6f8fb;
  padding: 8px 9px;
}

.project-risk-overview span,
.project-risk-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-risk-overview strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-risk-overview .danger strong {
  color: var(--red);
}

.project-risk-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.project-risk-row {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid #edf1f5;
}

.project-risk-row:last-child {
  border-bottom: 0;
}

.project-risk-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.project-risk-head span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 11px;
  font-weight: 950;
}

.project-risk-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-risk-head b {
  font-size: 12px;
  white-space: nowrap;
}

.project-risk-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.project-risk-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #667085;
}

.project-risk-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.project-risk-meta span {
  overflow: hidden;
  border-radius: 6px;
  background: #f8fafc;
  padding: 5px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.project-risk-meta b {
  color: var(--ink);
  font-weight: 950;
}

.project-risk-meta .danger b {
  color: var(--red);
}

.matrix-row {
  min-height: 58px;
}

.aging-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.aging-row span,
.aging-row strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.aging-row strong {
  color: var(--ink);
  text-align: right;
}

.table-panel {
  grid-column: 1 / -1;
  overflow: hidden;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager button:disabled,
.export-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.table-scroll {
  max-height: 520px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

th,
td {
  overflow: hidden;
  padding: 11px 10px;
  border-bottom: 1px solid #edf0f3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 900;
}

th:first-child,
td:first-child {
  text-align: left;
}

.supplier-group-row td {
  background: #ffffff;
  font-weight: 850;
}

.supplier-group-row:hover td {
  background: #f7fbfa;
}

.supplier-group-row.is-expanded td {
  border-top: 1px solid rgba(20, 125, 116, 0.28);
  border-bottom-color: rgba(20, 125, 116, 0.2);
  background: #eaf7f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.supplier-group-row.is-expanded td:first-child {
  box-shadow:
    inset 4px 0 0 var(--teal),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.supplier-group-row td:first-child {
  white-space: normal;
}

.drilldown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border: 1px solid rgba(20, 125, 116, 0.26);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  vertical-align: middle;
}

.drilldown-toggle span {
  line-height: 1;
  font-size: 16px;
  font-weight: 950;
}

.supplier-group-row.is-expanded .drilldown-toggle {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.supplier-cell {
  display: inline-grid;
  gap: 4px;
  max-width: calc(100% - 42px);
  vertical-align: middle;
}

.supplier-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-cell span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-tooltip-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-row td {
  background: #fbfcfd;
  color: #3d4652;
}

.invoice-row:hover td {
  background: #f1f8f7;
}

.invoice-row td:first-child {
  padding-left: 46px;
}

.invoice-cell {
  display: grid;
  gap: 4px;
}

.invoice-cell strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.invoice-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.invoice-note td {
  background: #f7fbfa;
  color: var(--muted);
  padding: 14px 18px 14px 46px;
  text-align: left;
  font-weight: 850;
}

.invoice-note.danger td {
  color: var(--red);
  background: var(--red-soft);
}

.sort-header {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 900;
}

.sort-header.sorted::after {
  content: " v";
  color: var(--wine);
}

.inventory-sort-header.sorted::after,
.inventory-analysis-sort-header.sorted::after {
  color: var(--green);
}

.inventory-sort-header.sorted[data-sort-dir="asc"]::after,
.inventory-analysis-sort-header.sorted[data-sort-dir="asc"]::after {
  content: " \2191";
}

.inventory-sort-header.sorted[data-sort-dir="desc"]::after,
.inventory-analysis-sort-header.sorted[data-sort-dir="desc"]::after {
  content: " \2193";
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f4faf9;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.status-badge.ok {
  color: #0f766e;
  background: var(--teal-soft);
}

.status-badge.danger {
  color: var(--red);
  background: var(--red-soft);
}

.summary-view,
.base-view {
  grid-template-columns: 1fr;
}

.accounting-dre-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.accounting-warning {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid rgba(168, 113, 21, 0.28);
  border-radius: 8px;
  background: #fff8e7;
  color: #7c4c06;
  font-size: 12px;
  font-weight: 850;
}

.accounting-kpi-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.accounting-kpi {
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.accounting-kpi span,
.accounting-rank-row span,
.accounting-month span,
.accounting-line span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.accounting-kpi span {
  text-transform: uppercase;
}

.accounting-kpi strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.accounting-kpi em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
}

.accounting-kpi.revenue strong,
.accounting-line--revenue td:nth-child(2),
.accounting-rank-row.positive b,
.accounting-month.positive b,
.accounting-details-panel .positive,
.accounting-line-dialog .positive {
  color: var(--green);
}

.accounting-kpi.danger strong,
.accounting-line--deduction td:nth-child(2),
.accounting-line--cost td:nth-child(2),
.accounting-line--expense td:nth-child(2),
.accounting-rank-row.negative b,
.accounting-month.negative b,
.accounting-details-panel .negative,
.accounting-line-dialog .negative {
  color: var(--red);
}

.accounting-kpi.total {
  border-color: rgba(20, 125, 116, 0.28);
  background: var(--teal-soft);
}

.accounting-statement-panel {
  display: grid;
  grid-column: span 4;
  grid-template-rows: auto minmax(0, 1fr);
  height: 674px;
  min-width: 0;
}

.accounting-timeline-panel {
  grid-column: span 8;
  height: 674px;
}

.accounting-ranking-panel {
  display: grid;
  grid-column: span 4;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.accounting-details-panel {
  grid-column: 1 / -1;
}

.accounting-statement,
.accounting-ranking,
.accounting-timeline {
  min-height: 0;
  overflow: auto;
}

.accounting-statement {
  overflow: hidden;
}

.accounting-statement table {
  border-collapse: separate;
  border-spacing: 0;
}

.accounting-statement table th,
.accounting-statement table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.accounting-statement table td:nth-child(n + 2),
.accounting-statement table th:nth-child(n + 2),
.accounting-details-panel table td:last-child,
.accounting-details-panel table th:last-child {
  text-align: right;
}

.accounting-statement table .accounting-value-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, auto);
  justify-content: end;
  gap: 8px;
}

.accounting-statement table .accounting-value-heading span:last-child {
  justify-self: end;
}

.accounting-line--subtotal td,
.accounting-line--total td {
  border-top: 0;
  border-bottom: 1px solid #edf0f3;
  background: #f7f8fa;
  font-family: "Aptos Display", "Segoe UI Variable Display", Segoe UI, Inter, Arial, sans-serif;
  font-weight: 850;
}

.accounting-line--total td {
  border-top: 0;
  border-bottom: 1px solid #edf0f3;
  background: #f7f8fa;
}

.accounting-line td:first-child {
  white-space: normal;
}

.accounting-line strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.accounting-line:not(.accounting-line--subtotal):not(.accounting-line--total) strong {
  font-weight: 500;
}

.accounting-line--subtotal strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.accounting-line--total strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.accounting-line span {
  display: inline-block;
  margin-top: 3px;
}

.accounting-line .accounting-value-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, auto);
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.accounting-line .accounting-value-main {
  display: inline;
  justify-self: end;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.accounting-line .value-tone--positive {
  color: var(--green);
}

.accounting-line .value-tone--negative {
  color: var(--red);
}

.accounting-line .accounting-share-pill {
  justify-self: end;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7b8794;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  text-align: right;
}

.accounting-line .accounting-value-main,
.accounting-line .accounting-share-pill {
  margin-top: 0;
}

.accounting-line--subtotal .accounting-value-main,
.accounting-line--total .accounting-value-main {
  font-family: "Aptos Display", "Segoe UI Variable Display", Segoe UI, Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 850;
}

.accounting-line--total .accounting-value-main {
  font-size: 14px;
  font-weight: 900;
}

.accounting-line--subtotal .accounting-share-pill,
.accounting-line--total .accounting-share-pill {
  color: #7b8794;
  background: transparent;
}

.accounting-ranking,
.accounting-timeline {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.accounting-ranking {
  gap: 0;
  padding: 16px 14px;
}

.accounting-rank-row,
.accounting-month {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  gap: 18px;
  overflow: hidden;
  padding: 10px 0 12px;
  border-bottom: 1px solid #edf0f3;
}

.accounting-rank-row {
  align-items: center;
  min-height: 66px;
  padding: 15px 0 17px;
}

.accounting-rank-row strong,
.accounting-month strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-rank-row strong {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.35;
}

.accounting-rank-row span {
  line-height: 1.35;
}

.accounting-rank-row b,
.accounting-month b {
  min-width: 132px;
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.accounting-month i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.accounting-month.negative i {
  background: var(--red);
}

.accounting-dre-view > .widget-drop-zone {
  grid-column: 1 / -1;
}

.accounting-line[data-dre-line] {
  cursor: pointer;
}

.accounting-line[data-dre-line]:hover td {
  background: #eef8f6;
}

.accounting-hierarchy-row td:first-child {
  padding-left: calc(8px + var(--level, 0) * 18px);
}

.accounting-hierarchy-row.is-nested td {
  background: #fbfcfc;
}

.accounting-hierarchy-cell span {
  color: var(--muted);
  font-size: 11px;
}

.accounting-line-chart {
  display: block;
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 8px 6px 6px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  scrollbar-gutter: stable;
}

.accounting-line-chart-line {
  stroke: var(--teal);
}

.accounting-zero-line {
  stroke: rgba(102, 112, 133, 0.45);
  stroke-dasharray: 5 6;
  stroke-width: 1.5;
}

.accounting-line-point.positive {
  stroke: var(--teal);
}

.accounting-line-point.negative {
  stroke: var(--red);
}

.accounting-details-panel .table-scroll {
  max-height: 560px;
}

.accounting-details-panel table {
  min-width: 1060px;
}

.accounting-annual-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.accounting-annual-panel {
  min-width: 0;
}

.accounting-annual-toggle {
  min-height: 34px;
  border: 1px solid rgba(20, 125, 116, 0.24);
  border-radius: 7px;
  background: #fff;
  color: var(--teal);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.accounting-annual-toggle[aria-pressed="true"] {
  background: var(--teal-soft);
  border-color: rgba(20, 125, 116, 0.4);
}

.accounting-annual-scroll {
  max-height: calc(100vh - 290px);
  min-height: 560px;
  overflow: auto;
}

.accounting-annual-table {
  min-width: 2720px;
  table-layout: fixed;
}

.accounting-annual-view.is-quarter-expanded .accounting-annual-table {
  min-width: 1380px;
}

.accounting-annual-table th,
.accounting-annual-table td {
  overflow: visible;
  width: 180px;
  text-align: right;
  text-overflow: clip;
  white-space: nowrap;
}

.accounting-annual-table th {
  text-align: right;
}

.accounting-annual-table .accounting-annual-label-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  background: var(--surface);
  text-align: left;
}

.accounting-annual-table th.accounting-annual-label-col {
  z-index: 5;
  background: var(--surface-2);
}

.accounting-annual-table .is-annual {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  border-left: 1px solid #cfd8e3;
}

.accounting-annual-table .is-quarter {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
}

.accounting-annual-table th.is-annual,
.accounting-annual-table td.is-annual {
  box-shadow: inset 1px 0 0 #cfd8e3;
}

.accounting-annual-value {
  cursor: pointer;
}

.accounting-annual-value.is-ratio {
  cursor: default;
  font-size: 11px;
  font-weight: 750;
}

.accounting-annual-value:hover {
  background: #eef4f7;
}

.accounting-annual-value.is-ratio:hover {
  background: inherit;
}

.accounting-annual-row--group td {
  font-weight: 850;
}

.accounting-annual-row--child td:first-child {
  padding-left: 34px;
}

.accounting-annual-row--dfc.accounting-annual-row--child td:first-child {
  padding-left: 10px;
}

.accounting-annual-row--child td {
  color: #394452;
}

.accounting-annual-label-content {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 8px;
  padding-left: calc(var(--level, 0) * 18px);
  vertical-align: middle;
}

.accounting-dfc-toggle {
  width: 23px;
  min-width: 23px;
  height: 23px;
  margin-right: 0;
}

.accounting-dfc-toggle-spacer {
  display: inline-block;
  width: 23px;
  min-width: 23px;
  height: 23px;
}

.accounting-annual-label-content > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-annual-row--ratio td {
  background: #f7f8fa;
  color: #667085;
  font-size: 11px;
}

.accounting-annual-row--ratio .accounting-annual-label-col {
  background: #f7f8fa;
}

.accounting-annual-row--ratio .accounting-annual-label-col span {
  font-style: italic;
}

.accounting-annual-row--subtotal td,
.accounting-annual-row--total td {
  background: #f7f8fa;
  font-weight: 900;
  text-transform: uppercase;
}

.accounting-annual-row--subtotal td:first-child,
.accounting-annual-row--total td:first-child {
  background: #f7f8fa;
}

.accounting-annual-table .positive {
  color: var(--green);
}

.accounting-annual-table .negative {
  color: var(--red);
}

.accounting-entry-row {
  cursor: pointer;
}

.accounting-entry-row:hover td {
  background: #f7fbfa;
}

.accounting-line-dialog {
  width: min(1040px, 100%);
}

.accounting-line-dialog header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.accounting-line-dialog-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.accounting-line-dialog-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.accounting-line-dialog-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.accounting-line-dialog-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.accounting-line-dialog-table {
  max-height: none;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.accounting-line-dialog-table table {
  min-width: 0;
  table-layout: fixed;
}

.accounting-line-dialog-table td:first-child,
.accounting-line-dialog-table th:first-child {
  width: 74%;
  text-align: left;
}

.accounting-line-dialog-table td:last-child,
.accounting-line-dialog-table th:last-child {
  text-align: right;
}

.accounting-line-dialog-table td:nth-child(2),
.accounting-line-dialog-table th:nth-child(2) {
  width: 26%;
  text-align: right;
}

.accounting-line-account-cell {
  display: inline-flex;
  align-items: center;
  grid-template-columns: none;
  gap: 10px;
  max-width: 100%;
}

.accounting-line-account-cell strong {
  min-width: 0;
}

.accounting-entry-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 125, 116, 0.22);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

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

.base-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
}

.base-tile {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.base-tile span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.base-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.35;
}

.base-tile.wide {
  grid-column: span 4;
}

.nfe-manager-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.nfe-manager-view[hidden] {
  display: none;
}

.nfe-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}

.nfe-tab-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.nfe-tab-button:hover {
  border-color: rgba(0, 92, 255, 0.3);
  color: var(--qbiax-blue);
}

.nfe-tab-button.is-active {
  border-color: rgba(0, 92, 255, 0.4);
  background: var(--qbiax-blue-soft);
  color: var(--qbiax-blue);
}

.nfe-tab-button.is-loading::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border: 2px solid rgba(0, 92, 255, 0.2);
  border-top-color: var(--qbiax-blue);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.nfe-kpi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}

.nfe-kpi-card {
  min-width: 0;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  box-shadow: 0 14px 30px rgba(24, 25, 27, 0.06);
}

.nfe-kpi-card span,
.nfe-alert-strip span,
.nfe-status-pill {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.nfe-kpi-card span {
  display: block;
  color: var(--muted);
}

.nfe-kpi-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.nfe-kpi-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.nfe-kpi-card.good strong,
.nfe-comparison-panel .positive {
  color: var(--green);
}

.nfe-kpi-card.focus strong {
  color: var(--teal);
}

.nfe-kpi-card.warn strong {
  color: var(--amber);
}

.nfe-kpi-card.danger strong,
.nfe-kpi-card.charges strong,
.nfe-comparison-panel .negative {
  color: var(--red);
}

.nfe-alert-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.6fr);
  gap: 12px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(24, 25, 27, 0.07);
}

.nfe-alert-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: 24px;
  line-height: 1.05;
}

.nfe-alert-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.nfe-alert-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nfe-alert-facts article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.nfe-alert-facts article.danger {
  border-color: rgba(180, 35, 24, 0.22);
  background: var(--red-soft);
}

.nfe-alert-facts strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 22px;
}

.nfe-alert-facts article.danger strong {
  color: var(--red);
}

.nfe-alert-facts em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.nfe-comparison-panel,
.nfe-issues-panel {
  grid-column: 1 / -1;
}

.nfe-comparison-panel header,
.nfe-issues-panel header {
  align-items: center;
}

.nfe-table-scroll {
  max-height: 520px;
}

.nfe-table-scroll table {
  min-width: 1480px;
}

.nfe-table-scroll th,
.nfe-table-scroll td {
  vertical-align: top;
}

.nfe-loading-row {
  min-height: 86px;
}

.nfe-loading-row .loader {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: middle;
}

.nfe-table-scroll td:nth-child(3),
.nfe-table-scroll td:nth-child(4),
.nfe-table-scroll td:nth-child(5),
.nfe-table-scroll td:nth-child(6),
.nfe-table-scroll td:nth-child(7),
.nfe-table-scroll td:nth-child(8),
.nfe-table-scroll td:nth-child(9),
.nfe-table-scroll td:nth-child(10),
.nfe-table-scroll td:nth-child(11),
.nfe-table-scroll td:nth-child(12) {
  white-space: nowrap;
}

.nfe-key {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.nfe-observation {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.nfe-status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  min-height: 26px;
  border: 1px solid rgba(20, 125, 116, 0.2);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 4px 8px;
  line-height: 1.15;
  white-space: normal;
}

.status-warning .nfe-status-pill {
  border-color: rgba(191, 122, 27, 0.24);
  background: #fff7e8;
  color: var(--amber);
}

.status-danger .nfe-status-pill,
.nfe-status-pill.danger,
.nfe-issues-panel tr.is-critical .nfe-status-pill {
  border-color: rgba(180, 35, 24, 0.24);
  background: var(--red-soft);
  color: var(--red);
}

.nfe-issues-panel tr.is-critical td {
  background: #fffafa;
}

.nfe-manager-view .widget-drop-zone {
  grid-column: 1 / -1;
}

.cco-operations-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.cco-operations-view[hidden] {
  display: none;
}

.cco-view-loading {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid #e8edf3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.cco-view-loading .loader {
  margin-bottom: 12px;
}

.cco-view-loading strong,
.cco-view-loading em {
  display: block;
}

.cco-view-loading strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.cco-view-loading em {
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
  font-weight: 820;
}

.cco-kpi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.cco-kpi-card {
  min-width: 0;
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.cco-kpi-card span,
.cco-insight-facts span,
.cco-quality-grid span,
.cco-status-pill {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cco-kpi-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cco-kpi-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.cco-kpi-card.good strong {
  color: var(--green);
}

.cco-kpi-card.focus strong {
  color: var(--qbiax-blue);
}

.cco-kpi-card.warn strong {
  color: var(--amber);
}

.cco-kpi-card.danger strong {
  color: var(--red);
}

.cco-kpi-card.has-accent strong {
  color: var(--card-accent);
}

.cco-production-kpi-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(11, minmax(116px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.cco-production-kpi {
  display: grid;
  align-content: center;
  min-width: 116px;
  min-height: 66px;
  border: 1px solid #e8edf3;
  background: #fff;
  padding: 8px 10px;
  text-align: center;
}

.cco-production-kpi strong {
  color: #2f3237;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.cco-production-kpi span {
  margin-top: 7px;
  color: #7c828b;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.cco-production-mini-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.cco-production-mini-panel {
  grid-column: auto;
  min-width: 0;
  min-height: 300px;
}

.cco-production-mini-grid > .cco-production-mini-panel {
  grid-column: auto;
}

.cco-production-mini-panel > header,
.cco-production-area-panel > header {
  justify-content: center;
  min-height: 44px;
  border-bottom: 0;
  padding: 10px 12px 4px;
  text-align: center;
}

.cco-production-mini-panel > header h2,
.cco-production-area-panel > header h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.cco-production-bars {
  display: grid;
  gap: 8px;
  padding: 16px 14px 14px;
}

.cco-production-bar-row {
  display: grid;
  grid-template-columns: minmax(74px, 0.95fr) minmax(78px, 1.35fr) minmax(34px, auto);
  align-items: center;
  gap: 7px;
  min-height: 18px;
}

.cco-production-bar-row span {
  overflow: hidden;
  color: #858b94;
  font-size: 10px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cco-production-bar-row i {
  position: relative;
  display: block;
  height: 13px;
  background: transparent;
}

.cco-production-bar-row i b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  min-width: 0;
  background: #8b2d2b;
}

.cco-production-bars.neutral .cco-production-bar-row i b {
  background: #d4d0c8;
}

.cco-production-bar-row strong {
  color: #1f2933;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.cco-production-hour-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.cco-production-area-panel {
  grid-column: auto;
  min-width: 0;
  min-height: 310px;
}

.cco-production-hour-grid > .cco-production-area-panel {
  grid-column: auto;
}

.cco-hour-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 18px 12px;
}

.cco-hour-area-chart {
  min-width: 100%;
  height: 282px;
}

.cco-hour-grid-line {
  stroke: #eef1f4;
  stroke-width: 1;
}

.cco-hour-axis-label,
.cco-hour-x-label,
.cco-hour-value-label {
  fill: #7a818a;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.cco-hour-axis-label {
  text-anchor: end;
}

.cco-hour-x-label,
.cco-hour-value-label {
  text-anchor: middle;
}

.cco-hour-value-label {
  fill: #111827;
  font-size: 10px;
  font-weight: 900;
}

.cco-hour-area-fill {
  fill: rgba(139, 45, 43, 0.2);
}

.cco-hour-area-line {
  fill: none;
  stroke: #8b2d2b;
  stroke-width: 1.35;
}

.cco-hour-point {
  fill: #111827;
  stroke: #fff;
  stroke-width: 1.5;
  pointer-events: none;
}

.cco-hour-hit-area {
  fill: transparent;
  pointer-events: all;
}

.cco-hour-area-chart.neutral .cco-hour-area-fill {
  fill: rgba(189, 184, 174, 0.45);
}

.cco-hour-area-chart.neutral .cco-hour-area-line {
  stroke: #9d514f;
}

.cco-insight-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.7fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 6px solid var(--qbiax-blue);
  border-radius: 8px;
  background: #fff;
}

.cco-insight-main {
  display: grid;
  align-content: center;
  padding: 18px 20px;
  background: linear-gradient(90deg, #f7faff, #fff);
}

.cco-insight-main.good {
  border-left-color: var(--green);
}

.cco-insight-main.warn strong {
  color: var(--amber);
}

.cco-insight-main strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.06;
}

.cco-insight-main p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.4;
}

.cco-insight-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cco-insight-facts article {
  display: grid;
  align-content: center;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 16px;
}

.cco-insight-facts strong,
.cco-quality-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.cco-insight-facts em,
.cco-quality-grid em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.cco-insight-facts article.danger strong,
.cco-quality-grid article.danger strong {
  color: var(--red);
}

.cco-chart-panel {
  grid-column: span 5;
  min-height: 390px;
}

.cco-chart-panel--wide {
  grid-column: span 7;
}

.cco-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 10px 2px;
}

.cco-line-chart {
  min-width: 100%;
  height: 292px;
}

.cco-grid-line {
  stroke: #e7edf3;
  stroke-width: 1;
}

.cco-axis-label {
  fill: #667085;
  font-size: 10px;
  font-weight: 800;
  text-anchor: end;
}

.cco-x-label {
  text-anchor: middle;
}

.cco-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cco-line--tp,
.cco-point--tp,
.cco-chart-legend .tp i {
  stroke: var(--qbiax-blue);
  background: var(--qbiax-blue);
}

.cco-line--tt,
.cco-point--tt,
.cco-line--df,
.cco-point--df,
.cco-chart-legend .tt i,
.cco-chart-legend .df i {
  stroke: var(--teal);
  background: var(--teal);
}

.cco-line--tm,
.cco-point--tm,
.cco-chart-legend .tm i {
  stroke: var(--red);
  background: var(--red);
}

.cco-line--iu,
.cco-point--iu,
.cco-chart-legend .iu i {
  stroke: var(--amber);
  background: var(--amber);
}

.cco-line--eg,
.cco-point--eg,
.cco-chart-legend .eg i {
  stroke: var(--green);
  background: var(--green);
}

.cco-point {
  fill: #fff;
  stroke-width: 2.4;
}

.cco-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.cco-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cco-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.cco-ranking-panel {
  grid-column: span 4;
  min-height: 430px;
}

.cco-ranking-list,
.cco-group-list,
.cco-asset-list {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 14px;
}

.cco-rank-row,
.cco-group-list article,
.cco-asset-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  min-height: 62px;
  overflow: hidden;
  border-bottom: 1px solid #edf0f3;
  padding: 12px 0 14px;
}

.cco-rank-row strong,
.cco-group-list strong,
.cco-asset-list strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cco-rank-row span,
.cco-group-list span,
.cco-asset-list span,
.cco-rank-row em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.cco-rank-row b,
.cco-group-list b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.cco-rank-row i,
.cco-group-list i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--w);
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.cco-asset-list dl {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
  margin: 0;
  text-align: right;
}

.cco-asset-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.cco-asset-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.cco-quality-panel {
  grid-column: span 4;
}

.cco-quality-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.cco-quality-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.cco-quality-grid article.danger {
  border-color: rgba(180, 35, 24, 0.22);
  background: var(--red-soft);
}

.cco-details-panel {
  grid-column: 1 / -1;
}

.cco-table-scroll {
  max-height: 560px;
}

.cco-table-scroll table {
  min-width: 1320px;
}

.cco-table-scroll td {
  vertical-align: top;
}

.cco-table-scroll td strong,
.cco-table-scroll td span:not(.cco-status-pill) {
  display: block;
}

.cco-table-scroll td strong {
  color: var(--ink);
  font-size: 12px;
}

.cco-table-scroll td span:not(.cco-status-pill) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.cco-table-scroll td:nth-child(8),
.cco-table-scroll td:nth-child(9),
.cco-table-scroll td:nth-child(10),
.cco-table-scroll td:nth-child(11) {
  text-align: right;
  white-space: nowrap;
}

.cco-table-scroll tr.is-critical td {
  background: #fffafa;
}

.cco-status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  min-height: 24px;
  border: 1px solid rgba(20, 125, 116, 0.2);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 4px 8px;
  line-height: 1.1;
  white-space: normal;
}

.cco-status-pill.danger {
  border-color: rgba(180, 35, 24, 0.24);
  background: var(--red-soft);
  color: var(--red);
}

.cco-horizontal-bars {
  display: grid;
  gap: 0;
  padding: 14px;
}

.cco-horizontal-bars article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 58px;
  overflow: hidden;
  border-bottom: 1px solid #edf0f3;
  padding: 11px 0 14px;
}

.cco-horizontal-bars strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cco-horizontal-bars span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.cco-horizontal-bars b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.cco-horizontal-bars i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--w);
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.cco-horizontal-bars.focus i {
  background: var(--qbiax-blue);
}

.cco-horizontal-bars.danger i {
  background: var(--red);
}

.cco-horizontal-bars.neutral i {
  background: #cbc6bd;
}

.cco-column-chart {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(38px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 245px;
  overflow-x: auto;
  padding: 20px 20px 16px;
  border-top: 1px solid #f0f2f4;
}

.cco-column-chart article {
  display: grid;
  grid-template-rows: 24px 1fr 30px;
  align-items: end;
  min-width: 38px;
  height: 226px;
  text-align: center;
}

.cco-column-chart b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.cco-column-chart i {
  position: relative;
  display: block;
  width: 100%;
  height: 164px;
  border-bottom: 1px solid #dfe4ea;
}

.cco-column-chart i::before,
.cco-column-chart i::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid #eef1f4;
}

.cco-column-chart i::before {
  top: 33.33%;
}

.cco-column-chart i::after {
  top: 66.66%;
}

.cco-column-chart i span {
  position: absolute;
  right: 15%;
  bottom: 0;
  left: 15%;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--teal);
}

.cco-column-chart.wine i span {
  background: var(--wine);
}

.cco-column-chart.good i span {
  background: var(--green);
}

.cco-column-chart.neutral i span {
  background: #d2cdc5;
}

.cco-column-chart em {
  display: block;
  align-self: start;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cco-efficiency-block {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  max-height: 390px;
  overflow: hidden;
}

.cco-efficiency-chart .cco-column-chart {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 14px;
}

.cco-efficiency-chart .cco-column-chart article {
  position: relative;
  display: block;
  height: 280px;
}

.cco-efficiency-chart .cco-column-chart b {
  position: absolute;
  bottom: calc(34px + (210px * var(--bar-h, 0) / 100) + 6px);
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: 70px;
  transform: translateX(-50%);
}

.cco-efficiency-chart .cco-column-chart i {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  height: 210px;
  border-bottom: 0;
}

.cco-efficiency-chart .cco-column-chart em {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.cco-efficiency-chart .cco-column-chart i::before,
.cco-efficiency-chart .cco-column-chart i::after {
  content: none;
}

.cco-efficiency-scroll {
  flex: 1 1 auto;
  max-height: none;
}

.cco-efficiency-table,
.cco-production-table {
  min-width: 760px;
}

.cco-efficiency-table {
  min-width: 680px;
}

.cco-production-table {
  min-width: 1080px;
}

.cco-production-table th:nth-child(n + 2),
.cco-production-table td:nth-child(n + 2) {
  text-align: center;
  vertical-align: middle;
}

.cco-production-table th:first-child,
.cco-production-table td:first-child {
  text-align: left;
}

.cco-efficiency-table th:nth-child(n + 2),
.cco-efficiency-table td:nth-child(n + 2) {
  text-align: center;
  vertical-align: middle;
}

.cco-efficiency-table th:first-child,
.cco-efficiency-table td:first-child {
  text-align: left;
}

.cco-efficiency-table td:nth-child(n + 2) {
  white-space: nowrap;
}

.cco-production-table td:nth-child(n + 2) {
  white-space: nowrap;
}

.cco-production-sort-header,
.cco-efficiency-sort-header {
  justify-content: center;
  width: 100%;
  min-height: 28px;
  gap: 5px;
  color: inherit;
  text-align: center;
}

.cco-production-sort-header span,
.cco-efficiency-sort-header span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.cco-production-sort-header b,
.cco-efficiency-sort-header b {
  color: #7c8794;
  font-size: 11px;
  line-height: 1;
}

.cco-production-table th:first-child .cco-production-sort-header,
.cco-efficiency-table th:first-child .cco-efficiency-sort-header {
  justify-content: flex-start;
  text-align: left;
}

.cco-production-sort-header.sorted b,
.cco-efficiency-sort-header.sorted b {
  color: var(--teal);
}

.cco-production-sort-header.sorted::after,
.cco-efficiency-sort-header.sorted::after {
  content: none;
}

.cco-efficiency-table td strong,
.cco-production-table td strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.cco-efficiency-table td span,
.cco-production-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.cco-group-row td {
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.cco-production-group-row.is-expanded td,
.cco-efficiency-group-row.is-expanded td {
  background: #fff;
}

.cco-production-group-row td:first-child,
.cco-efficiency-group-row td:first-child {
  white-space: normal;
}

.cco-production-group-heading {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.cco-production-group-heading > div {
  min-width: 0;
}

.cco-production-group-row .drilldown-toggle,
.cco-efficiency-group-row .drilldown-toggle {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  flex: 0 0 auto;
}

.cco-production-stair-cell {
  position: relative;
  padding-left: 44px;
  background: #fff;
}

.cco-production-stair-cell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 50%;
  left: 22px;
  width: 14px;
  border-bottom: 1px solid #cad4dd;
  border-left: 1px solid #cad4dd;
}

.cco-production-stair-cell strong,
.cco-production-stair-cell em,
.cco-production-group-heading strong {
  max-width: 260px;
}

.cco-production-stair-cell em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.cco-production-child-row:hover td,
.cco-efficiency-child-row:hover td {
  background: #fff;
}

.cco-total-row td {
  border-top: 1px solid #9ea6ad;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.sales-view > .sales-kpi-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  order: 2 !important;
}

.sales-view > .sales-executive-panel,
.sales-view > .sales-executive-cockpit {
  grid-column: 1 / -1;
}

.sales-view > .sales-executive-panel:not([hidden]) {
  order: 4 !important;
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: contents !important;
  overflow: visible;
  padding: 0;
}

.sales-view > .sales-executive-panel > header {
  display: none;
}

.sales-view > .sales-weekly-comparison-panel,
.sales-view > .sales-annual-comparison-panel {
  grid-column: span 6;
  height: 370px;
}

.sales-view > .sales-timeline-panel {
  order: 6 !important;
}

.sales-view > .sales-details-panel {
  order: 8 !important;
}

.sales-view > .sales-executive-panel > .sales-executive-cockpit {
  display: contents !important;
  overflow: visible !important;
}

.sales-executive-cockpit {
  gap: 12px;
  padding: 0;
  min-height: 0;
}

.sales-executive-period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-gauge-grid {
  display: contents !important;
}

.sales-gauge-card {
  display: grid;
  order: 4 !important;
  grid-column: span 3;
  min-width: 0;
  grid-template-rows: auto auto 154px auto;
  gap: 8px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: grab;
  transition: box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.sales-gauge-card:active {
  cursor: grabbing;
}

.sales-gauge-card.is-dragging {
  opacity: 0.58;
  transform: scale(0.995);
}

.sales-gauge-card.is-drop-before {
  box-shadow: inset 5px 0 0 var(--teal), 0 0 0 3px rgba(20, 125, 116, 0.18), 0 14px 32px rgba(24, 25, 27, 0.12);
}

.sales-gauge-card.is-drop-after {
  box-shadow: inset -5px 0 0 var(--teal), 0 0 0 3px rgba(20, 125, 116, 0.18), 0 14px 32px rgba(24, 25, 27, 0.12);
}

.sales-executive-cockpit > .empty-chart {
  order: 4 !important;
  grid-column: 1 / -1;
}

.sales-gauge-card header {
  display: block;
  border: 0;
  padding: 0;
  text-align: center;
}

.sales-gauge-card header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.sales-gauge-card header strong {
  display: -webkit-box;
  min-height: 28px;
  color: var(--ink);
  font-size: clamp(10px, 0.78vw, 13px);
  font-weight: 950;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sales-gauge-percent {
  color: var(--teal);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.sales-gauge-svg {
  width: 100%;
  height: 154px;
}

.sales-gauge-track,
.sales-gauge-progress {
  fill: none;
  stroke-linecap: round;
  stroke-width: 14;
}

.sales-gauge-track {
  stroke: #edf1f5;
}

.sales-gauge-progress {
  stroke: #147d74;
}

.sales-gauge-card.warn .sales-gauge-progress {
  stroke: #f2c94c;
}

.sales-gauge-card.danger .sales-gauge-progress {
  stroke: #c84e4e;
}

.sales-gauge-needle {
  stroke: #344450;
  stroke-linecap: round;
  stroke-width: 5;
}

.sales-gauge-hub {
  fill: #344450;
}

.sales-gauge-card dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid #edf1f5;
}

.sales-gauge-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f1f4f7;
}

.sales-gauge-card dt,
.sales-gauge-card dd {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-gauge-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sales-gauge-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.sales-gauge-card .good dd {
  color: var(--teal);
}

.sales-gauge-card .danger dd {
  color: var(--red);
}

.sales-comparison-chart {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.sales-comparison-bars {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(46px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 0;
  overflow-x: auto;
  padding: 18px 18px 10px;
}

.sales-comparison-bars article {
  display: grid;
  grid-template-rows: 24px 1fr 24px;
  align-items: end;
  min-width: 46px;
  height: 270px;
  text-align: center;
}

.sales-comparison-bars b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.sales-comparison-bars i {
  position: relative;
  display: block;
  height: 206px;
  border-bottom: 0;
}

.sales-comparison-bars i::before,
.sales-comparison-bars i::after {
  content: none;
}

.sales-comparison-bars i::before {
  top: 33.33%;
}

.sales-comparison-bars i::after {
  top: 66.66%;
}

.sales-comparison-bars i span,
.sales-comparison-bars i em {
  position: absolute;
  bottom: 0;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.sales-comparison-bars i span {
  right: 48%;
  left: 10%;
  background: #2563eb;
}

.sales-comparison-bars i em {
  right: 10%;
  left: 48%;
  background: #f59e0b;
}

.sales-comparison-bars small {
  display: block;
  align-self: start;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-kpi-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  cursor: grab;
}

.sales-kpi-card.is-dragging {
  opacity: 0.55;
}

.sales-kpi-card.is-drop-before::before,
.sales-kpi-card.is-drop-after::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--qbiax-blue);
}

.sales-kpi-card.is-drop-before::before {
  left: -8px;
}

.sales-kpi-card.is-drop-after::after {
  right: -8px;
}

.sales-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.sales-kpi-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.sales-kpi-card em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.sales-kpi-card.good strong {
  color: var(--green);
}

.sales-kpi-card.focus strong {
  color: var(--qbiax-blue);
}

.sales-kpi-card.warn strong {
  color: var(--amber);
}

.sales-kpi-card.payment-signal-card {
  min-height: 194px;
  padding: 16px;
}

.sales-kpi-card .payment-signal-stats {
  margin-top: 14px;
}

.sales-kpi-card .payment-signal-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
}

.sales-kpi-card .payment-signal-stat b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.sales-view > .sales-timeline-panel {
  grid-column: 1 / -1;
  height: 430px;
}

.sales-view > .sales-map-panel {
  grid-column: span 4;
  height: 430px;
}

.sales-view > .sales-brazil-map-panel {
  grid-column: 1 / -1;
  height: 620px;
}

.sales-ranking-panel {
  grid-column: span 4;
  height: 430px;
}

.sales-view > .sales-ranking-panel[data-widget-key="sales-groups"],
.sales-view > .sales-ranking-panel[data-widget-key="sales-geography"] {
  order: 5 !important;
  grid-column: span 6;
}

.sales-details-panel {
  grid-column: 1 / -1;
}

.sales-analysis-customers-panel {
  --sales-full-table-height: calc(var(--filter-sidebar-target-height, calc(100dvh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px)) - 2px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-column: 1 / -1;
  height: var(--sales-full-table-height);
  max-height: var(--sales-full-table-height);
  min-height: 0;
  transform: translateY(1px);
}

.sales-analysis-customers-panel .table-toolbar {
  align-items: flex-start;
}

.sales-analysis-customers-panel .table-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-grid.sales-view > .sales-abc-panel {
  --sales-full-table-height: calc(var(--filter-sidebar-target-height, calc(100dvh - var(--app-header-height) - var(--workspace-padding) - var(--command-band-height) - var(--sticky-gap) - 14px)) - 2px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-column: 1 / -1;
  height: var(--sales-full-table-height);
  max-height: var(--sales-full-table-height);
  min-height: 0;
  transform: translateY(1px);
}

.sales-view > .sales-opportunities-panel {
  grid-column: span 5;
  height: 560px;
}

.sales-timeline-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.sales-timeline-toggle button {
  min-width: 68px;
  border: 0;
  background: transparent;
  color: #667085;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.sales-timeline-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.sales-timeline-chart {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.sales-finance-timeline {
  display: block;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 6px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.dashboard-grid.sales-view > .sales-timeline-panel > .sales-timeline-chart {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.dashboard-grid.sales-view > .sales-timeline-panel > .sales-timeline-chart .sales-comparison-combo {
  height: calc(100% - 34px);
  overflow-y: hidden;
}

.sales-finance-timeline .timeline-stage {
  min-width: 100%;
  height: 100%;
}

.sales-finance-timeline .sales-timeline-area {
  fill: url(#salesTimelineArea);
}

.sales-line-stage {
  min-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.sales-line-svg {
  display: block;
  width: max(100%, var(--stage-width));
  height: 100%;
  min-height: 286px;
}

.sales-line-area {
  fill: rgba(20, 125, 116, 0.08);
}

.sales-line-grid line {
  stroke: #e7ecf2;
  stroke-width: 1;
}

.sales-line-grid text,
.sales-line-x-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sales-line-grid text {
  text-anchor: end;
}

.sales-line-x-label {
  text-anchor: middle;
}

.sales-line-path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.sales-line-path--quantity {
  stroke: var(--qbiax-blue);
  stroke-dasharray: 6 5;
  stroke-width: 3;
}

.sales-line-hit {
  fill: transparent;
  pointer-events: all;
}

.sales-line-point {
  fill: #fff;
  stroke: var(--teal);
  stroke-width: 3;
}

.sales-timeline-bars {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(42px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 0;
  overflow-x: auto;
  padding: 18px 18px 10px;
}

.sales-timeline-bars article {
  display: grid;
  grid-template-rows: 26px 1fr 28px;
  align-items: end;
  min-width: 42px;
  height: 300px;
  text-align: center;
}

.sales-timeline-bars b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
}

.sales-timeline-bars i {
  position: relative;
  display: block;
  height: 222px;
  border-bottom: 1px solid #dfe4ea;
}

.sales-timeline-bars i::before,
.sales-timeline-bars i::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid #eef1f4;
}

.sales-timeline-bars i::before {
  top: 33.33%;
}

.sales-timeline-bars i::after {
  top: 66.66%;
}

.sales-timeline-bars i span,
.sales-timeline-bars i em {
  position: absolute;
  bottom: 0;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.sales-timeline-bars i span {
  right: 47%;
  left: 12%;
  background: var(--teal);
}

.sales-timeline-bars i em {
  right: 12%;
  left: 47%;
  background: var(--qbiax-blue);
}

.sales-timeline-bars small {
  display: block;
  align-self: start;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sales-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sales-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.sales-chart-legend .rlv {
  background: var(--teal);
}

.sales-chart-legend .quantity {
  background: var(--qbiax-blue);
}

.sales-comparison-combo {
  min-width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 0;
}

.sales-comparison-combo svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.sales-comparison-current {
  fill: #147d74;
}

.sales-comparison-previous-line {
  fill: none;
  stroke: #f59e0b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.sales-comparison-previous-point {
  fill: #fff;
  stroke: #f59e0b;
  stroke-width: 2;
}

.sales-comparison-hit {
  fill: transparent;
  pointer-events: all;
}

.sales-comparison-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-anchor: middle;
}

.sales-comparison-value-label {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
}

.sales-comparison-chart .sales-chart-legend .rlv {
  background: #147d74;
}

.sales-comparison-chart .sales-chart-legend .quantity {
  background: #f59e0b;
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.sales-timeline-chart .sales-chart-legend .rlv {
  background: #147d74;
}

.sales-timeline-chart .sales-chart-legend .quantity {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #f59e0b;
}

.sales-brazil-map {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  gap: 10px;
  padding: 14px;
}

.sales-brazil-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
  gap: 16px;
  min-height: 0;
}

.sales-brazil-map-stage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #d9e4ee;
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 48%, rgba(20, 125, 116, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 48%),
    #f8fbfd;
}

.sales-brazil-map-stage::before {
  content: "";
  position: absolute;
  inset: 30px 16% 22px 20%;
  border: 1px solid rgba(20, 125, 116, 0.22);
  border-radius: 48% 42% 44% 50%;
  background:
    linear-gradient(135deg, rgba(20, 125, 116, 0.18), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.64);
  clip-path: polygon(42% 0, 56% 3%, 69% 10%, 78% 22%, 89% 30%, 84% 42%, 92% 55%, 76% 63%, 74% 76%, 59% 82%, 49% 100%, 36% 88%, 25% 88%, 18% 73%, 6% 65%, 12% 50%, 4% 36%, 20% 27%, 25% 13%);
  pointer-events: none;
}

.sales-brazil-map-stage::after {
  content: "BRASIL";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.sales-state-table {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.sales-state-table-head,
.sales-state-table-body button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(88px, auto);
  gap: 8px;
  align-items: center;
}

.sales-state-table-head {
  border-bottom: 1px solid #edf0f3;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.sales-state-table-body {
  min-height: 0;
  overflow: auto;
}

.sales-state-table-body button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f0f3f7;
  background: transparent;
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.sales-state-table-body button.active {
  background: rgba(20, 125, 116, 0.08);
}

.sales-state-table-body strong,
.sales-state-table-body em {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-state-table-body strong {
  font-size: 12px;
  font-weight: 950;
}

.sales-state-table-body em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.sales-state-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  min-width: 28px;
  min-height: 28px;
  z-index: 1;
  border: 1px solid var(--state-border, rgba(20, 125, 116, 0.32));
  border-radius: 8px;
  background: var(--state-fill, rgba(20, 125, 116, 0.12));
  color: var(--state-ink, var(--ink));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.sales-state-node strong {
  font-size: 11px;
  font-weight: 950;
}

.sales-state-node.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 125, 116, 0.24);
}

.sales-state-node.muted {
  border-color: #e1e7ef;
  background: #f4f6f9;
  color: #98a2b3;
  cursor: default;
}

.sales-state-municipalities {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow: auto;
}

.sales-state-head,
.sales-municipality-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sales-state-head strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.sales-state-head button {
  border: 0;
  background: transparent;
  color: var(--qbiax-blue);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.sales-municipality-row {
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px 11px;
  text-align: left;
  cursor: pointer;
}

.sales-municipality-row span,
.sales-municipality-row em,
.sales-municipality-row b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-municipality-row span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.sales-municipality-row em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.sales-municipality-row b {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.sales-municipality-row i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--w);
  height: 3px;
  background: var(--teal);
}

.sales-ranking-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.sales-rank-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 58px;
  overflow: hidden;
  border-bottom: 1px solid #edf0f3;
  padding: 11px 0 14px;
}

.sales-rank-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-rank-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.sales-rank-row b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.sales-rank-row i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--w);
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.sales-payment-ranking-list {
  padding: 0;
}

.sales-focus-row > i {
  display: block;
  background: var(--teal);
}

.sales-map {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  padding: 14px;
  gap: 10px;
}

.sales-map-stage {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 125, 116, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 125, 116, 0.06) 1px, transparent 1px),
    #fbfcfd;
  background-size: 20% 20%;
}

.sales-map-point {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(20, 125, 116, 0.78);
  box-shadow: 0 8px 20px rgba(20, 125, 116, 0.22);
  transform: translate(-50%, -50%);
}

.sales-map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sales-map-list article {
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.sales-map-list strong,
.sales-map-list span,
.sales-map-list b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-map-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.sales-map-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.sales-map-list b {
  margin-top: 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.sales-table-scroll {
  max-height: 620px;
}

.sales-table-scroll table,
.sales-drill-table {
  min-width: 1120px;
  table-layout: fixed;
}

.sales-drill-table .sales-drill-col-group {
  width: auto;
}

.sales-drill-table .sales-drill-col-short {
  width: 11%;
}

.sales-drill-table .sales-drill-col-money {
  width: 13%;
}

.sales-table-scroll td,
.sales-drill-table td {
  vertical-align: middle;
}

.sales-table-scroll td strong,
.sales-table-scroll td span:not(.sales-opportunity-tag) {
  display: block;
}

.sales-table-scroll td strong {
  color: var(--ink);
  font-size: 12px;
}

.sales-table-scroll td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.sales-drill-table th:not(:first-child),
.sales-drill-table td:not(:first-child) {
  text-align: center;
}

.sales-drill-table th:first-child,
.sales-drill-table td:first-child {
  text-align: left;
}

.sales-drill-table td:nth-child(5),
.sales-drill-table td:nth-child(6),
.sales-drill-table td:nth-child(7) {
  text-align: center;
  white-space: nowrap;
}

.sales-drill-table th:last-child,
.sales-drill-table td:last-child {
  width: auto;
  min-width: 0;
  max-width: none;
}

.sales-drill-sort-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.sales-drill-sort-header::after,
.sales-drill-sort-header.sorted::after {
  content: none !important;
}

.sales-sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-1px);
}

.sales-drill-table tfoot td {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-weight: 400;
}

.sales-drill-table tfoot td:first-child {
  font-weight: 900;
}

.sales-drill-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sales-drill-control select {
  height: 32px;
  min-width: 260px;
  max-width: 320px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.sales-drill-row {
  cursor: default;
}

.sales-details-panel .sales-drill-control > span,
.sales-details-panel .pager[hidden],
.sales-details-panel #salesFilteredCount[hidden] {
  display: none !important;
}

.sales-drill-row.depth-1 .inventory-family-cell {
  padding-left: 20px;
}

.sales-drill-row.depth-2 .inventory-family-cell {
  padding-left: 40px;
}

.sales-drill-table .sales-drill-toggle {
  width: 16px;
  height: 16px;
  margin-right: 0;
  border: 0;
  background: transparent;
  color: #667085;
  padding: 0;
}

.sales-drill-table .sales-drill-toggle:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.sales-drill-row.depth-0 .inventory-family-cell strong {
  font-weight: 950;
}

.sales-drill-tag {
  max-width: 124px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-analysis-table-scroll {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.sales-analysis-table-scroll table {
  min-width: 1060px;
}

.sales-analysis-table-scroll th:nth-child(n+2),
.sales-analysis-table-scroll td:nth-child(n+2) {
  text-align: center;
  white-space: nowrap;
}

.sales-analysis-table-scroll td:first-child {
  text-align: left;
}

.sales-analysis-table-scroll tr {
  cursor: pointer;
}

.sales-analysis-table-scroll .danger {
  color: var(--red);
  font-weight: inherit;
}

.sales-analysis-table-scroll .good {
  color: var(--green);
  font-weight: inherit;
}

.sales-opportunity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.sales-opportunity-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.sales-opportunity-filters button.active {
  background: #eef2f7;
  border-color: #d7dee8;
  color: var(--ink);
}

.sales-opportunity-filters .sales-opportunity-filter-sem-compra {
  border-color: #ffd6d6;
  color: var(--red);
}

.sales-opportunity-filters .sales-opportunity-filter-sem-compra.active {
  background: #fff1f1;
  border-color: #ffd6d6;
  color: var(--red);
}

.sales-opportunity-filters .sales-opportunity-filter-queda {
  border-color: #fedf89;
  color: #b54708;
}

.sales-opportunity-filters .sales-opportunity-filter-queda.active {
  background: #fff7e6;
  border-color: #fedf89;
  color: #b54708;
}

.sales-opportunity-filters .sales-opportunity-filter-recorrente {
  border-color: #c7eee8;
  color: var(--teal);
}

.sales-opportunity-filters .sales-opportunity-filter-recorrente.active {
  background: #e9f7f5;
  border-color: #c7eee8;
  color: var(--teal);
}

.sales-opportunity-filters .sales-opportunity-filter-retomada {
  border-color: #c7d7fe;
  color: #175cd3;
}

.sales-opportunity-filters .sales-opportunity-filter-retomada.active {
  background: #eef4ff;
  border-color: #c7d7fe;
  color: #175cd3;
}

.sales-opportunity-filters .sales-opportunity-filter-monitorar {
  border-color: #d7dee8;
  color: #667085;
}

.sales-opportunity-filters .sales-opportunity-filter-monitorar.active {
  background: #eef2f7;
  border-color: #d7dee8;
  color: #667085;
}

.sales-opportunity-filters strong {
  color: inherit;
  font-size: 11px;
  font-weight: 950;
}

.sales-abc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: min(100%, 520px);
}

.sales-abc-grouping {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  padding: 5px 7px;
  cursor: help;
}

.sales-abc-grouping span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.sales-abc-grouping select {
  max-width: 132px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  outline: none;
}

.sales-abc-metric {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.sales-abc-metric button {
  min-width: 82px;
  border: 0;
  background: transparent;
  color: #667085;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.sales-abc-metric button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.sales-abc-bands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sales-abc-bands label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  padding: 5px 7px;
}

.sales-abc-bands span,
.sales-abc-bands strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.sales-abc-bands input {
  width: 46px;
  border: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  outline: none;
  text-align: center;
}

#salesAbcBandTotal {
  min-width: 44px;
  text-align: center;
}

.sales-abc-list,
.sales-opportunities {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.sales-abc-list {
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  padding: 14px 0 0;
}

.sales-abc-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px;
}

.sales-abc-summary article {
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.sales-abc-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.sales-abc-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-abc-class-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  padding: 0 14px;
}

.sales-abc-class-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.sales-abc-class-filters button.active {
  background: #eef2f7;
  border-color: #d7dee8;
  color: var(--ink);
}

.sales-abc-class-filters strong {
  color: inherit;
  font-size: 11px;
  font-weight: 950;
}

.sales-abc-class-filters .sales-abc-class-filter-A {
  border-color: #c7eee8;
  color: var(--teal);
}

.sales-abc-class-filters .sales-abc-class-filter-A.active {
  background: #e9f7f5;
  border-color: #c7eee8;
  color: var(--teal);
}

.sales-abc-class-filters .sales-abc-class-filter-B {
  border-color: #fedf89;
  color: var(--amber);
}

.sales-abc-class-filters .sales-abc-class-filter-B.active {
  background: #fff7e6;
  border-color: #fedf89;
  color: var(--amber);
}

.sales-abc-class-filters .sales-abc-class-filter-C {
  border-color: #d7dee8;
  color: #667085;
}

.sales-abc-class-filters .sales-abc-class-filter-C.active {
  background: #eef2f7;
  border-color: #d7dee8;
  color: #667085;
}

.sales-abc-table-scroll {
  height: 100%;
  max-height: none;
  min-height: 0;
  width: 100%;
  overflow: auto;
}

.sales-abc-table {
  width: 100%;
  min-width: 0;
}

.sales-abc-col-class {
  width: 64px;
}

.sales-abc-col-name {
  width: 46%;
}

.sales-abc-col-value {
  width: 150px;
}

.sales-abc-col-percent {
  width: 92px;
}

.sales-abc-col-small {
  width: 84px;
}

.sales-abc-table th,
.sales-abc-table td {
  text-align: center;
  vertical-align: middle;
}

.sales-abc-table th:nth-child(2),
.sales-abc-table td:nth-child(2) {
  text-align: left;
}

.sales-abc-table th:nth-child(3),
.sales-abc-table td:nth-child(3) {
  text-align: center;
}

.sales-abc-value {
  color: var(--ink);
  font-weight: 400;
}

.sales-abc-table .sales-abc-class {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e9f7f5;
  color: var(--teal);
  font-weight: 950;
}

.sales-abc-table .class-B .sales-abc-class {
  background: #fff7e6;
  color: var(--amber);
}

.sales-abc-table .class-C .sales-abc-class {
  background: #eef2f7;
  color: #667085;
}

.sales-abc-bar {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 160px;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f6f9;
  padding: 6px 8px;
}

.sales-abc-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: rgba(20, 125, 116, 0.16);
}

.sales-abc-bar strong {
  position: relative;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.sales-abc-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.sales-abc-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e9f7f5;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.sales-abc-row.class-B > span {
  background: #fff7e6;
  color: var(--amber);
}

.sales-abc-row.class-C > span {
  background: #eef2f7;
  color: #667085;
}

.sales-abc-row div {
  min-width: 0;
}

.sales-abc-row strong,
.sales-abc-row em,
.sales-abc-row b,
.sales-abc-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-abc-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.sales-abc-row em,
.sales-abc-row small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sales-abc-row b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: right;
}

.sales-opportunity-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sales-opportunity-tag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085 !important;
  padding: 4px 9px;
  font-size: 11px !important;
  font-style: normal;
  font-weight: 950 !important;
  line-height: 1.1;
  text-align: center;
}

.sales-opportunity-tag.danger {
  background: #fff1f1;
  color: var(--red) !important;
}

.sales-opportunity-tag.good {
  background: #e9f7f5;
  color: var(--teal) !important;
}

.sales-opportunity-tag.sem-compra {
  background: #fff1f1;
  color: var(--red) !important;
}

.sales-opportunity-tag.queda {
  background: #fff7e6;
  color: #b54708 !important;
}

.sales-opportunity-tag.recorrente {
  background: #e9f7f5;
  color: var(--teal) !important;
}

.sales-opportunity-tag.retomada {
  background: #eef4ff;
  color: #175cd3 !important;
}

.sales-opportunity-tag.monitorar {
  background: #eef2f7;
  color: #667085 !important;
}

.sales-opportunity-metrics article {
  min-width: 0;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.sales-opportunity-metrics span,
.sales-opportunity-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.sales-opportunity-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.sales-opportunity-metrics .muted strong {
  color: #98a2b3;
}

.sales-opportunity-list {
  display: grid;
  gap: 8px;
}

.sales-opportunity-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.sales-opportunity-list span,
.sales-opportunity-list em,
.sales-opportunity-list b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-opportunity-list span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.sales-opportunity-list b {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
}

.detail-drawer--sales .drawer-total strong {
  color: var(--teal);
}

.detail-drawer.detail-drawer--sales-analysis header {
  background: #66717d;
}

.detail-drawer.detail-drawer--sales-analysis header .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.detail-drawer.detail-drawer--sales-analysis header button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.detail-drawer--sales-analysis .drawer-fields {
  grid-template-columns: 1fr;
  padding: 18px 24px 24px;
}

.detail-drawer--sales-analysis .drawer-total,
.detail-drawer--sales-analysis .drawer-timeline,
.detail-drawer--sales-analysis .drawer-metrics:empty {
  display: none;
}

.detail-drawer--sales-analysis .drawer-fields article {
  min-height: 0;
}

.sales-analysis-product-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  min-height: 0 !important;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(24, 25, 27, 0.06);
}

.sales-analysis-product-summary-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sales-analysis-product-summary-head div {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px 12px;
}

.sales-analysis-product-summary-head span,
.sales-analysis-product-table-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-analysis-product-summary-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-analysis-product-summary-head .sales-opportunity-tag {
  justify-self: start;
  margin: 0;
  padding: 3px 7px;
  font-size: 10px !important;
  text-transform: none;
}

.sales-analysis-product-table-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 2px 2px 0;
}

.sales-analysis-product-table-title div {
  min-width: 0;
}

.sales-analysis-product-table-title h3 {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-analysis-product-table-title strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sales-analysis-product-table-scroll {
  max-height: min(520px, calc(100vh - 330px));
  overflow: auto;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  background: #fff;
}

.sales-analysis-product-table-scroll table {
  min-width: 680px;
}

.sales-analysis-product-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.sales-analysis-product-table-scroll th,
.sales-analysis-product-table-scroll td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  text-align: right;
  vertical-align: middle;
}

.sales-analysis-product-table-scroll th:first-child,
.sales-analysis-product-table-scroll td:first-child {
  width: 38%;
  text-align: left;
}

.sales-analysis-product-table-scroll th:last-child,
.sales-analysis-product-table-scroll td:last-child {
  width: 150px;
  text-align: center;
}

.sales-analysis-product-table-scroll td strong,
.sales-analysis-product-table-scroll td span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-analysis-product-table-scroll td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sales-analysis-product-table-scroll .sales-opportunity-tag {
  margin: 0 auto;
  color: inherit;
}

.sales-analysis-product-table-scroll td .sales-opportunity-tag {
  max-width: 112px;
  min-height: 22px;
  padding: 3px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1;
  text-transform: none;
}

.sales-analysis-product-table-scroll .muted-value {
  color: #98a2b3;
}

.sales-analysis-product-empty {
  height: 180px;
  color: var(--muted);
  text-align: center !important;
}

.sales-analysis-product-empty strong,
.sales-analysis-product-empty span {
  display: block;
  margin: 0 auto;
  white-space: normal !important;
}

.sales-analysis-product-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.sales-analysis-product-empty span {
  max-width: 360px;
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .sales-view > .sales-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sales-view > .sales-timeline-panel,
  .sales-view > .sales-weekly-comparison-panel,
  .sales-view > .sales-annual-comparison-panel,
  .sales-view > .sales-brazil-map-panel,
  .sales-view > .sales-map-panel,
  .sales-ranking-panel,
  .sales-abc-panel,
  .sales-opportunities-panel {
    grid-column: 1 / -1;
  }

  .sales-brazil-map-layout {
    grid-template-columns: 1fr;
  }

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

  .sales-gauge-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .sales-analysis-product-summary-head {
    grid-template-columns: 1fr;
  }

  .sales-analysis-product-table-title {
    align-items: start;
    flex-direction: column;
  }

  .sales-view > .sales-kpi-grid,
  .sales-gauge-grid,
  .sales-map-list {
    grid-template-columns: 1fr;
  }

  .sales-gauge-card {
    grid-column: 1 / -1;
  }

  .sales-kpi-card {
    min-height: 118px;
  }

  .sales-view > .sales-timeline-panel,
  .sales-view > .sales-weekly-comparison-panel,
  .sales-view > .sales-annual-comparison-panel,
  .sales-view > .sales-brazil-map-panel,
  .sales-view > .sales-map-panel,
  .sales-ranking-panel,
  .sales-abc-panel,
  .dashboard-grid.sales-view > .sales-abc-panel,
  .sales-analysis-customers-panel,
  .sales-opportunities-panel {
    height: auto;
    min-height: 360px;
  }

  .sales-opportunity-metrics,
  .sales-abc-summary,
  .sales-abc-row {
    grid-template-columns: 1fr;
  }

  .sales-abc-controls {
    justify-content: flex-start;
  }
}

.cco-events-panel {
  grid-column: 1 / -1;
  min-height: 620px;
}

.cco-events-panel > header {
  align-items: center;
}

.cco-event-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cco-event-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cco-event-legend i {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.cco-event-period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 16px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.cco-event-period span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.cco-event-scroll {
  overflow: auto;
  padding: 12px 14px 16px;
}

.cco-event-board {
  display: grid;
  grid-template-columns: 380px minmax(1160px, 1fr);
  min-width: 1540px;
  border: 1px solid #edf0f3;
  background: #fff;
}

.cco-event-left,
.cco-event-right {
  min-width: 0;
}

.cco-event-left {
  border-right: 1px solid #edf0f3;
}

.cco-event-left-head,
.cco-event-left-row,
.cco-event-left-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 0.95fr;
  align-items: center;
  min-height: var(--row-height, 42px);
}

.cco-event-left-head {
  min-height: 48px;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.cco-event-left-head span,
.cco-event-left-row > strong,
.cco-event-left-row > span,
.cco-event-left-row > div,
.cco-event-left-summary span {
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cco-event-left-summary {
  min-height: 64px;
  border-bottom: 1px solid #edf0f3;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cco-event-left-summary span {
  grid-column: 1 / -1;
}

.cco-event-left-row {
  border-bottom: 1px solid #f1f3f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.cco-event-left-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.cco-event-left-row .cco-event-fleet-cell,
.cco-event-left-row .cco-event-detail-cell,
.cco-event-left-row .cco-event-count-cell {
  min-width: 0;
}

.cco-event-left-row .cco-event-fleet-cell {
  display: grid;
  gap: 3px;
}

.cco-event-left-row .cco-event-fleet-cell strong,
.cco-event-left-row .cco-event-fleet-cell em,
.cco-event-left-row .cco-event-detail-cell .table-tooltip-text,
.cco-event-left-row .cco-event-count-cell .table-tooltip-text {
  padding: 0;
}

.cco-event-left-row .cco-event-fleet-cell em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.cco-event-time-head {
  position: relative;
  min-height: 48px;
  border-bottom: 1px solid #edf0f3;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(4.1667% - 1px), #f2f4f7 calc(4.1667% - 1px), #f2f4f7 4.1667%);
}

.cco-event-time-head span {
  position: absolute;
  bottom: 8px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.cco-event-time-head--spacer span {
  display: none;
}

.cco-event-hour-summary {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  min-height: 64px;
  border-bottom: 1px solid #edf0f3;
  background: #fbfcfd;
}

.cco-event-hour-summary article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 3px;
  min-width: 0;
  padding: 6px 3px 5px;
  border-right: 1px solid #edf0f3;
  color: var(--muted);
  text-align: center;
}

.cco-event-hour-summary span {
  font-size: 9px;
  font-weight: 900;
}

.cco-event-hour-summary strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.cco-event-hour-indicator {
  display: flex;
  gap: 1px;
  align-items: center;
  align-content: center;
  flex-wrap: nowrap;
  justify-content: center;
  height: 22px;
  min-width: 0;
  overflow: hidden;
  padding: 0 2px;
}

.cco-event-hour-dominant {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--event-color, #2563eb);
  box-shadow:
    0 0 0 1px rgba(16, 24, 40, 0.08),
    0 1px 3px rgba(16, 24, 40, 0.16);
}

.cco-event-track-row {
  position: relative;
  min-height: var(--row-height, 42px);
  border-bottom: 1px solid #f1f3f5;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(4.1667% - 1px), #f8f9fb calc(4.1667% - 1px), #f8f9fb 4.1667%);
}

.cco-event-bar {
  position: absolute;
  top: var(--bar-top, 14px);
  height: 14px;
  min-width: 5px;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(16, 24, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: filter 120ms ease, transform 120ms ease;
}

.cco-event-bar:hover {
  z-index: 2;
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.cco-event-bar.raw {
  background: var(--event-color, var(--teal));
}

.cco-event-bar.available,
.cco-event-legend i.available {
  background: #2563eb;
}

.cco-event-bar.worked,
.cco-event-legend i.worked {
  background: #2f7d7b;
}

.cco-event-bar.maintenance,
.cco-event-legend i.maintenance {
  background: #d04437;
}

.cco-event-bar.blocked,
.cco-event-legend i.blocked {
  background: #7c3aed;
}

.cco-event-limit {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cco-operations-view .widget-drop-zone {
  grid-column: 1 / -1;
}

.maintenance-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.maintenance-view[hidden] {
  display: none;
}

.maintenance-view.is-loading-compact {
  align-items: stretch;
}

.maintenance-kpi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.maintenance-loading-strip {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid #dce4ed;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(24, 25, 27, 0.05);
}

.maintenance-loading-strip strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.maintenance-loading-strip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.maintenance-loading-placeholder {
  width: 100%;
  height: 100%;
  min-height: 128px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)) 0 0 / 180px 100% no-repeat,
    linear-gradient(180deg, #f7fafc, #eef3f7);
  animation: maintenance-loading-sweep 1.2s linear infinite;
}

.maintenance-loading-table-cell {
  height: 118px;
  background: #fbfcfd;
}

@keyframes maintenance-loading-sweep {
  from {
    background-position: -180px 0, 0 0;
  }

  to {
    background-position: calc(100% + 180px) 0, 0 0;
  }
}

.maintenance-kpi {
  position: relative;
  grid-column: auto;
  min-width: 0;
  min-height: 194px;
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(24, 25, 27, 0.06);
}

.maintenance-kpi-grid .maintenance-kpi {
  grid-column: auto;
}

.maintenance-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #d9e2ec;
}

.maintenance-kpi > span,
.maintenance-scenario {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.maintenance-kpi > span {
  display: block;
  color: var(--muted);
}

.maintenance-kpi strong {
  display: block;
  margin-top: 11px;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.maintenance-kpi em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.maintenance-kpi .payment-signal-stats {
  margin-top: 15px;
}

.maintenance-kpi .payment-signal-stat span {
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
}

.maintenance-kpi.total strong {
  color: var(--qbiax-blue-dark);
}

.maintenance-kpi.total::before {
  background: var(--qbiax-blue);
}

.maintenance-kpi.fuel strong,
.maintenance-bar-fuel {
  color: var(--teal);
  fill: var(--teal);
}

.maintenance-kpi.fuel::before {
  background: var(--teal);
}

.maintenance-kpi.service strong,
.maintenance-bar-os {
  color: var(--amber);
  fill: var(--amber);
}

.maintenance-kpi.service::before,
.maintenance-kpi.focus::before {
  background: var(--amber);
}

.maintenance-kpi.focus strong {
  color: var(--wine);
}

.maintenance-timeline-panel {
  display: grid;
  grid-column: span 8;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.maintenance-timeline-panel header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.maintenance-timeline-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.maintenance-timeline-mode {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.maintenance-timeline-mode:hover,
.maintenance-timeline-mode:focus-visible {
  color: var(--qbiax-blue);
  outline: none;
}

.maintenance-timeline-mode.is-active {
  background: #fff;
  color: var(--qbiax-blue);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

@media (max-width: 680px) {
  .maintenance-timeline-actions {
    width: 100%;
  }

  .maintenance-timeline-mode {
    flex: 1 1 0;
  }
}

.maintenance-composition-panel {
  display: grid;
  grid-column: span 4;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.maintenance-ranking-panel {
  display: grid;
  grid-column: span 6;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.maintenance-details-panel {
  grid-column: 1 / -1;
}

.maintenance-timeline {
  height: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 6px 6px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.maintenance-ranking {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.maintenance-timeline-stage {
  position: relative;
  min-width: 100%;
  height: 100%;
  min-height: 344px;
}

.maintenance-timeline-svg {
  display: block;
  width: 100%;
  height: 318px;
}

.maintenance-x-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-anchor: middle;
}

.maintenance-timeline-area {
  fill: url(#maintenanceTimelineArea);
}

.maintenance-timeline-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.maintenance-timeline-line.fuel,
.maintenance-line-point.fuel {
  stroke: var(--teal);
}

.maintenance-timeline-line.os,
.maintenance-line-point.os {
  stroke: var(--amber);
}

.maintenance-line-point {
  fill: #fff;
  stroke-width: 3;
}

.maintenance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 4px 0 0 54px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.maintenance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.maintenance-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.maintenance-legend i.fuel {
  background: var(--teal);
}

.maintenance-legend i.os {
  background: var(--amber);
}

.maintenance-legend strong {
  color: var(--ink);
}

.maintenance-rank-row {
  min-height: 92px;
  border-color: #dce4ed;
  background: #fff;
  box-shadow: none;
}

.maintenance-rank-row + .maintenance-rank-row {
  margin-top: 0;
}

.maintenance-rank-row strong,
.maintenance-rank-value b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.maintenance-rank-row span,
.maintenance-rank-value span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.25;
}

.maintenance-rank-value {
  position: relative;
  z-index: 1;
  text-align: right;
}

.maintenance-rank-value em {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maintenance-rank-row > i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--teal);
}

.maintenance-composition-line {
  grid-column: 1 / -1;
  display: flex;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.maintenance-composition-line span {
  display: block;
  background: var(--teal);
}

.maintenance-composition-line b {
  display: block;
  background: var(--amber);
}

.maintenance-scenario {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  line-height: 1.1;
}

.maintenance-scenario.fuel {
  border: 1px solid rgba(20, 125, 116, 0.2);
  background: var(--teal-soft);
  color: var(--teal);
}

.maintenance-scenario.service {
  border: 1px solid rgba(183, 121, 31, 0.24);
  background: var(--amber-soft);
  color: var(--amber);
}

.maintenance-details-panel table {
  min-width: 1220px;
}

.maintenance-details-panel .table-scroll {
  max-height: 560px;
}

.maintenance-drill-row td {
  background: #fff;
  color: #344054;
  font-weight: 850;
}

.maintenance-drill-row:hover td {
  background: #f7fbfa;
}

.maintenance-drill-row.is-expanded td {
  border-top: 1px solid rgba(20, 125, 116, 0.24);
  border-bottom-color: rgba(20, 125, 116, 0.18);
  background: #edf8f6;
}

.maintenance-drill-row.is-expanded td:first-child {
  box-shadow:
    inset 4px 0 0 var(--teal),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.maintenance-type-row td {
  background: #f8fafc;
}

.maintenance-type-row td:first-child {
  padding-left: 34px;
}

.maintenance-type-row.is-expanded td {
  background: #fff8ed;
  border-top-color: rgba(183, 121, 31, 0.24);
  border-bottom-color: rgba(183, 121, 31, 0.18);
}

.maintenance-type-row.is-expanded td:first-child {
  box-shadow:
    inset 4px 0 0 var(--amber),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.maintenance-drill-cell {
  display: inline-grid;
  max-width: calc(100% - 42px);
  vertical-align: middle;
}

.maintenance-drill-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-tooltip-text {
  min-width: 0;
}

.maintenance-step-label {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-step-label--item {
  color: #475467;
}

.maintenance-item-row td:first-child {
  padding-left: 78px;
}

.maintenance-detail-row td {
  background: #fff;
}

.maintenance-detail-row:hover td {
  background: #fbfcfd;
}

.maintenance-details-panel td:nth-child(6),
.maintenance-details-panel td:nth-child(7),
.maintenance-details-panel td:nth-child(8),
.maintenance-details-panel td:nth-child(9) {
  white-space: nowrap;
}

.maintenance-view .widget-drop-zone {
  grid-column: 1 / -1;
}

.detail-drawer--maintenance header {
  background: linear-gradient(135deg, var(--qbiax-blue-dark), var(--teal));
}

.detail-drawer--maintenance .drawer-total {
  background: linear-gradient(135deg, #182636, #24364c);
}

.detail-drawer--finance.detail-drawer--maintenance .drawer-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-drawer--finance.detail-drawer--maintenance .drawer-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-drawer--maintenance .drawer-total em.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

@media (max-width: 1180px) {
  .maintenance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-timeline-panel,
  .maintenance-composition-panel,
  .maintenance-ranking-panel,
  .maintenance-details-panel {
    grid-column: 1 / -1;
  }

  .detail-drawer--finance.detail-drawer--maintenance .drawer-metrics,
  .detail-drawer--finance.detail-drawer--maintenance .drawer-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .maintenance-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.admin-workspace .users-view {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.admin-workspace .users-view > .panel-span {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-column: 1 / -1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.admin-workspace .users-view > .panel-span > header {
  flex-wrap: wrap;
  min-height: 76px;
  padding: 14px 18px;
}

.admin-shell.user-form-open,
.admin-shell.delete-confirm-open,
.admin-shell.reset-confirm-open,
.admin-shell.qby-tabs-open,
.admin-shell.user-dashboards-open,
.admin-shell.params-open {
  overflow: hidden;
}

.admin-shell.user-form-open::before,
.admin-shell.delete-confirm-open::before,
.admin-shell.reset-confirm-open::before,
.admin-shell.qby-tabs-open::before,
.admin-shell.user-dashboards-open::before,
.admin-shell.params-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
}

.users-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
}

.users-admin.form-open {
  flex-direction: column;
}

.user-form {
  display: grid;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.user-form:not([hidden]) {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
  padding: 0 0 20px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-shell .confirm-dialog:not([hidden]) {
  max-height: calc(100vh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
}

.user-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.user-form-header h3 {
  margin: 4px 0 0;
  color: #101828;
  font-size: 22px;
}

.user-form-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.user-form > .form-grid,
.user-form > .module-access-grid,
.user-form > .scope-grid,
.user-form > .form-actions {
  margin-right: 22px;
  margin-left: 22px;
}

.confirm-dialog:not([hidden]) {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: 18px;
  transform: translate(-50%, -50%);
}

.confirm-dialog h3,
.confirm-dialog p {
  margin: 0;
}

.confirm-dialog h3 {
  font-size: 22px;
}

.confirm-dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.confirm-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--qbiax-blue);
  padding: 0;
  font-size: 15px;
  font-weight: 850;
}

.confirm-dialog-close:hover,
.confirm-dialog-close:focus-visible {
  border-color: rgba(0, 92, 255, 0.28);
  outline: none;
}

.confirm-dialog.user-confirm-dialog .form-actions {
  flex-direction: row;
  justify-content: flex-end;
}

.confirm-dialog.user-confirm-dialog .form-actions button {
  width: 116px;
}

.user-form h3 {
  margin: 0;
  font-size: 20px;
}

.user-form-header h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.form-grid,
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.user-form input.is-invalid-pulse {
  border-color: rgba(180, 35, 24, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14) !important;
  animation: qbiax-field-alert 0.72s ease;
}

@keyframes qbiax-field-alert {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-2px);
  }
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.switch-field {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.switch-field input,
.module-switch-card > input,
.module-switch-inline > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-control {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  background: #e9eef5;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.switch-control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}

.switch-field input:checked + .switch-control,
.module-switch-card > input:checked + .switch-control,
.module-switch-inline > input:checked + .switch-control {
  border-color: var(--qbiax-blue);
  background: var(--qbiax-blue);
}

.module-switch-card.is-enabled .switch-control {
  border-color: var(--qbiax-blue);
  background: var(--qbiax-blue);
}

.switch-field input:checked + .switch-control::after,
.module-switch-card > input:checked + .switch-control::after,
.module-switch-inline > input:checked + .switch-control::after {
  transform: translate(20px, -50%);
}

.module-switch-card.is-enabled .switch-control::after {
  transform: translate(20px, -50%);
}

.switch-field input:focus-visible + .switch-control,
.module-switch-card > input:focus-visible + .switch-control,
.module-switch-inline > input:focus-visible + .switch-control {
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.18);
}

.user-active-switch {
  min-height: 34px;
  white-space: nowrap;
}

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

.params-config-block {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.params-config-block button {
  min-height: 36px;
  border: 1px solid var(--qbiax-blue);
  border-radius: 7px;
  background: rgba(0, 92, 255, 0.08);
  color: var(--qbiax-blue);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.module-access-grid {
  display: grid;
  gap: 10px;
}

.module-access-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-check-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px !important;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.module-switch-card {
  grid-template-columns: auto minmax(0, 1fr);
  cursor: pointer;
}

.module-switch-card--with-action {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-right: 56px;
}

.module-switch-inline {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px !important;
  min-width: 0;
  cursor: pointer;
}

.module-switch-card--with-action .qby-tabs-inline-summary {
  grid-column: 1 / -1;
}

.module-switch-card.is-enabled {
  border-color: rgba(0, 92, 255, 0.28);
  background: #f7faff;
}

.module-check-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.module-check-card strong,
.module-check-card small {
  display: block;
}

.module-check-card strong {
  color: #101828;
  font-size: 13px;
  font-weight: 900;
}

.module-check-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.module-check-card.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.qby-tabs-section {
  border: 1px solid rgba(0, 92, 255, 0.16);
  border-radius: 8px;
  background: #f7faff;
  padding: 12px;
}

.qby-tabs-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.module-config-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: none;
  padding: 0 !important;
}

.module-config-button:not(:disabled):hover,
.module-config-button:not(:disabled):focus-visible {
  border-color: rgba(0, 92, 255, 0.26) !important;
  color: var(--qbiax-blue) !important;
  outline: none;
}

.module-config-button:disabled {
  border-color: var(--line) !important;
  background: #fff !important;
  color: var(--ink) !important;
  cursor: not-allowed;
  opacity: 0.52;
}

.module-config-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.qby-tabs-dialog {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(560px, calc(100vw - 32px)) !important;
  max-width: 560px;
  max-height: min(620px, calc(100vh - 32px));
}

#userDashboardsDialog {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.params-dialog {
  width: min(680px, calc(100vw - 32px)) !important;
  max-width: 680px;
}

.params-dialog input {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.params-dialog input:focus {
  border-color: rgba(0, 92, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.1);
}

.modal-search-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.modal-search-field input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.modal-search-field input:focus {
  border-color: rgba(0, 92, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.1);
}

.qby-tabs-list {
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 0;
  max-height: min(390px, calc(100vh - 280px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

#userDashboardAccess {
  max-height: min(390px, calc(100vh - 310px));
}

.qby-tabs-list .module-check-card {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  align-items: center;
  border-color: rgba(0, 92, 255, 0.18);
  padding: 12px 14px;
}

.qby-tabs-list .module-check-card strong {
  font-size: 12px;
}

.qby-tabs-list .module-check-card small {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
}

.qby-tabs-dialog .form-actions {
  justify-content: flex-end;
}

.qby-tabs-dialog .form-actions button {
  width: 116px;
}

.scope-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scope-title button,
.param-row button {
  min-height: 34px;
  border: 1px solid rgba(20, 125, 116, 0.22);
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.params-list {
  display: grid;
  gap: 10px;
  max-height: min(330px, calc(100vh - 310px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.params-dialog-tools {
  display: flex;
  justify-content: flex-start;
}

.param-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.param-row button {
  border-color: rgba(180, 35, 24, 0.18);
  background: var(--red-soft);
  color: var(--red);
}

.params-dialog-tools button {
  min-height: 36px;
  border: 1px solid var(--qbiax-blue);
  border-radius: 7px;
  background: var(--qbiax-blue);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.params-dialog .form-actions {
  justify-content: flex-end;
}

.params-dialog .form-actions button {
  width: 116px;
}

.param-remove-button {
  display: inline-grid !important;
  place-items: center;
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  padding: 0 !important;
}

.param-remove-button svg {
  margin: 0;
}

.company-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-companies-list {
  min-height: 0;
  margin: 0;
  overflow-y: auto;
}

.dashboard-companies-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.dashboard-companies-message:empty {
  display: none;
}

.user-message {
  min-height: 18px;
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.user-message:empty {
  display: none;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.user-form > .form-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.form-actions button,
.table-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(29, 78, 216, 0.22);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: qbiax-button-spin 0.72s linear infinite;
}

.form-actions button:first-child .button-spinner,
.form-actions button.is-loading .button-spinner {
  border-color: rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
}

.inline-loading-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(0, 92, 255, 0.18);
  border-radius: 7px;
  background: var(--qbiax-blue-soft);
  color: var(--qbiax-blue-dark);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: wait;
}

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

.user-form > .form-actions button {
  width: 118px;
}

.action-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-chip,
.module-chip-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-chip {
  min-height: 24px;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-chip--success {
  border-color: rgba(20, 125, 116, 0.2);
  background: var(--teal-soft);
  color: var(--teal);
}

.admin-chip--muted {
  background: #f2f4f7;
  color: #667085;
}

.admin-chip--warning {
  margin-left: 6px;
  border-color: rgba(181, 71, 8, 0.2);
  background: #fff7ed;
  color: #b54708;
}

.admin-chip--role {
  border-color: rgba(0, 92, 255, 0.16);
  background: rgba(0, 92, 255, 0.08);
  color: var(--qbiax-blue);
}

.admin-chip--admin {
  border-color: rgba(29, 78, 216, 0.2);
  background: #eef4ff;
  color: #1d4ed8;
}

.admin-chip--module {
  border-color: rgba(0, 92, 255, 0.16);
  background: #f7faff;
  color: #1d4ed8;
}

.admin-chip--module-dashboards {
  border-color: rgba(0, 92, 255, 0.18);
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-chip--module-qby {
  border-color: rgba(2, 132, 199, 0.2);
  background: #eaf8ff;
  color: #0369a1;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.icon-action:not(.danger):not(:disabled):hover,
.icon-action:not(.danger):not(:disabled):focus-visible {
  border-color: rgba(0, 92, 255, 0.26);
  color: var(--qbiax-blue);
  outline: none;
}

.icon-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-action.danger {
  border-color: rgba(180, 35, 24, 0.22);
  background: var(--red-soft);
  color: var(--red);
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.action-tooltip {
  position: fixed;
  z-index: 130;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: #18191b;
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
  padding: 7px 9px;
  pointer-events: none;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.action-tooltip.rich {
  min-width: 160px;
  max-width: 260px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #1f2933);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  line-height: 1.2;
  white-space: normal;
}

.action-tooltip.rich.html {
  width: min(360px, calc(100vw - 24px));
  max-width: min(360px, calc(100vw - 24px));
  padding: 0;
}

.action-tooltip.subtle {
  max-width: 320px;
  border-color: var(--line);
  background: #fff;
  color: #344054;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  font-size: 11px;
  font-weight: 800;
  white-space: normal;
}

.action-tooltip-meta,
.action-tooltip-title,
.action-tooltip-value {
  display: block;
}

.action-tooltip-meta {
  color: #aeb7c4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.action-tooltip-title {
  margin-top: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.action-tooltip-value {
  margin-top: 5px;
  color: #f7d9d6;
  font-size: 17px;
  font-weight: 950;
}

.cco-event-tooltip {
  padding: 12px;
}

.cco-event-tooltip-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.cco-event-tooltip-head strong {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.18;
}

.cco-event-tooltip-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.cco-event-tooltip-head span.raw {
  max-width: 150px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.12);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cco-event-tooltip-head span.available {
  background: #2563eb;
}

.cco-event-tooltip-head span.worked {
  background: #2f7d7b;
}

.cco-event-tooltip-head span.maintenance {
  background: #d04437;
}

.cco-event-tooltip-head span.blocked {
  background: #7c3aed;
}

.cco-event-tooltip p {
  margin: 5px 0 0;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.cco-event-tooltip dl {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.cco-event-tooltip dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.cco-event-tooltip dt {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cco-event-tooltip dd {
  margin: 0;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 840;
  line-height: 1.22;
}

.cco-event-tooltip-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.cco-event-tooltip-times span {
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 7px;
  color: #e5e7eb;
  font-size: 10px;
  font-weight: 900;
}

.form-actions button:first-child {
  border-color: var(--qbiax-blue);
  background: var(--qbiax-blue);
  color: #fff;
}

.users-table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.panel header .users-table-toolbar {
  flex: 0 1 420px;
  margin-bottom: 0;
}

.users-table-toolbar label {
  display: grid;
  gap: 6px;
  width: min(420px, 100%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.users-table-toolbar input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.users-table-toolbar input:focus {
  border-color: rgba(0, 92, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.1);
}

.users-table {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.users-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.users-table th,
.users-table td {
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: middle;
}

.users-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.users-sort-button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.users-sort-button:hover,
.users-sort-button:focus-visible {
  color: var(--qbiax-blue);
  outline: none;
}

.users-sort-indicator {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
  line-height: 1;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
  width: 17%;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
  width: 21%;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
  width: 15%;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
  width: 12%;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
  width: 18%;
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) {
  width: 128px;
  text-align: right;
}

.users-table tbody tr {
  cursor: default;
}

.users-table td:first-child strong,
.users-table td:first-child span {
  display: block;
}

.users-table td:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.users-table .module-chip-row {
  max-width: 100%;
}

.users-table .action-cell {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.empty-row {
  height: 96px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.executive-dialog-open,
.data-docs-dialog-open {
  overflow: hidden;
}

.executive-dialog-backdrop:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 17, 23, 0.54);
  backdrop-filter: blur(3px);
}

.executive-dialog {
  display: grid;
  gap: 16px;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
  padding: 18px;
}

.executive-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.executive-dialog h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.executive-dialog-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.executive-dialog-body {
  display: grid;
  gap: 12px;
}

.data-docs-dialog {
  width: min(1080px, 100%);
}

.data-docs-dialog header p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.data-docs-body {
  display: grid;
  gap: 14px;
}

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

.data-docs-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.data-docs-card:first-child,
.data-docs-card:nth-child(3),
.data-docs-card:last-child {
  grid-column: 1 / -1;
}

.data-docs-card header {
  display: grid;
  gap: 4px;
}

.data-docs-card header p,
.data-docs-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.data-docs-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.data-docs-card dl div {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(221, 227, 234, 0.82);
  padding-top: 8px;
}

.data-docs-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.data-docs-card dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.executive-dialog-lead,
.executive-dialog-metrics article,
.executive-dialog-facts article,
.executive-report-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.executive-dialog-lead {
  display: grid;
  gap: 7px;
  border-left: 6px solid var(--line);
  padding: 18px;
}

.executive-dialog.danger .executive-dialog-lead {
  border-left-color: var(--red);
}

.executive-dialog.good .executive-dialog-lead {
  border-left-color: var(--green);
}

.executive-dialog-lead span,
.executive-dialog-metrics span,
.executive-dialog-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-dialog-lead strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.executive-dialog.danger .executive-dialog-lead strong {
  color: var(--red);
}

.executive-dialog.good .executive-dialog-lead strong {
  color: var(--green);
}

.executive-dialog-lead p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.executive-dialog-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.executive-dialog-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.executive-report {
  display: grid;
  gap: 10px;
}

.executive-report-section {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
}

.executive-report-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.executive-report-section p,
.executive-report-section li {
  margin: 0;
  color: #3b4554;
  font-size: 14px;
  line-height: 1.52;
}

.executive-report-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
}

.executive-report-section li::marker {
  color: var(--wine);
}

.executive-dialog-metrics article,
.executive-dialog-facts article {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
  padding: 11px 12px;
}

.executive-dialog-metrics strong,
.executive-dialog-facts strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.executive-dialog-facts strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.executive-dialog-metrics em,
.executive-dialog-facts em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 17, 23, 0.48);
  backdrop-filter: blur(2px);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(480px, 96vw);
  height: 100vh;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.32);
}

.detail-drawer header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  padding: 26px 24px 28px;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  color: #fff;
}

.detail-drawer h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.detail-drawer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.detail-drawer button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.detail-drawer--finance {
  top: 50%;
  left: 50%;
  right: auto;
  width: min(1080px, calc(100vw - 48px));
  height: auto;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 14px;
  background: #f4f7fa;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
  transform: translate(-50%, -50%);
}

.detail-drawer--finance header {
  padding: 22px 24px 24px;
}

.detail-drawer--finance h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.detail-drawer--finance p {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.35;
}

.detail-drawer--finance .drawer-total {
  padding: 18px 24px;
}

.detail-drawer--finance .drawer-total strong {
  font-size: clamp(28px, 3.2vw, 42px);
}

.detail-drawer--finance .drawer-timeline {
  padding: 26px 28px 10px;
}

.detail-drawer--finance .drawer-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  padding: 20px 28px 0;
}

.detail-drawer--finance .drawer-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  padding: 14px 28px 28px;
}

.detail-drawer--finance .drawer-metrics article,
.detail-drawer--finance .drawer-fields article {
  background: #fff;
}

.detail-drawer--finance .finance-summary-group,
.detail-drawer--finance .finance-field-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 226px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(24, 25, 27, 0.07);
}

.detail-drawer--finance .finance-summary-group h3,
.detail-drawer--finance .finance-field-group h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-drawer--finance .finance-summary-group dl,
.detail-drawer--finance .finance-field-group dl {
  display: grid;
  gap: 0;
  flex: 1;
  margin: 0;
}

.detail-drawer--finance .finance-summary-group dl div,
.detail-drawer--finance .finance-field-group dl div {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid #edf1f5;
}

.detail-drawer--finance .finance-summary-group dl div:first-child,
.detail-drawer--finance .finance-field-group dl div:first-child {
  border-top: 0;
}

.detail-drawer--finance .finance-summary-group dt,
.detail-drawer--finance .finance-field-group dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-drawer--finance .finance-summary-group dd,
.detail-drawer--finance .finance-field-group dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-drawer--finance .finance-summary-group .strong dd,
.detail-drawer--finance .finance-field-group .strong dd {
  font-weight: 950;
}

.detail-drawer--finance .finance-summary-group .danger dd,
.detail-drawer--finance .finance-field-group .danger dd {
  color: var(--wine);
}

.detail-drawer--finance .finance-summary-group .warn dd,
.detail-drawer--finance .finance-field-group .warn dd {
  color: var(--amber);
}

.detail-drawer--finance .finance-field-group .wide {
  grid-template-columns: 1fr;
  gap: 4px;
}

.detail-drawer--finance .finance-field-group .wide dd {
  text-align: left;
  white-space: normal;
}

.drawer-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 22px 24px;
  background: var(--charcoal);
  color: #fff;
}

.drawer-total span {
  display: block;
  color: #aab5c4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-metrics span,
.drawer-fields span,
.drawer-timeline span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-total strong {
  grid-column: 1;
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.drawer-total em {
  align-self: center;
  border-radius: 999px;
  background: rgba(20, 125, 116, 0.25);
  color: #bff8f1;
  padding: 9px 12px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.drawer-total em.danger {
  background: rgba(180, 35, 24, 0.25);
  color: #ffd2cc;
}

.drawer-timeline,
.drawer-metrics,
.drawer-fields {
  display: grid;
  gap: 10px;
  padding: 18px 24px 0;
}

.drawer-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.drawer-timeline {
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 26px 24px 8px;
}

.drawer-timeline::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 58px;
  right: 58px;
  height: 3px;
  border-radius: 999px;
  background: #dce4ed;
}

.drawer-fields {
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 24px;
}

.drawer-metrics article,
.drawer-fields article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(24, 25, 27, 0.06);
}

.drawer-timeline article {
  position: relative;
  min-width: 0;
  padding: 42px 8px 8px;
  text-align: center;
}

.drawer-timeline article::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid var(--teal);
  border-radius: 999px;
  background: var(--surface);
  transform: translateX(-50%);
}

.drawer-timeline article:first-child::before {
  border-color: var(--wine);
}

.drawer-timeline article:nth-child(2)::before {
  border-color: var(--amber);
}

.drawer-timeline article:last-child::before {
  border-color: var(--teal);
}

.drawer-timeline strong,
.drawer-metrics strong,
.drawer-fields strong {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-timeline strong {
  white-space: normal;
}

@media (max-width: 1280px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .filters-form {
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  }

  .executive-dialog-metrics,
  .executive-dialog-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-card,
  .widget-drop-zone {
    grid-column: span 4;
  }

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

  .panel,
  .panel-xl,
  .panel-focus {
    grid-column: span 6;
  }

  .payment-kpi-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nfe-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cco-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cco-production-kpi-strip {
    grid-template-columns: repeat(6, minmax(116px, 1fr));
  }

  .cco-chart-panel,
  .cco-chart-panel--wide,
  .cco-ranking-panel,
  .cco-quality-panel,
  .cco-efficiency-table-panel,
  .cco-efficiency-chart {
    grid-column: span 6;
  }

  .cco-efficiency-table-panel {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .login-screen {
    align-items: center;
  }

  .login-panel {
    border-radius: 24px;
  }

  .startup-panel {
    width: min(440px, 100%);
  }

  .startup-icon-stage {
    width: 218px;
  }

  .startup-progress {
    width: 100%;
  }

  .app-header {
    grid-template-columns: 1fr;
  }

  .brand-lockup,
  .dashboard-menu,
  .header-actions {
    grid-column: auto;
    justify-self: stretch;
  }

  .dashboard-menu {
    justify-content: center;
  }

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

  .module-cards,
  .module-access-list,
  .qby-tabs-list {
    grid-template-columns: 1fr;
  }

  .company-menu,
  .main-dashboard-menu,
  .header-actions,
  .admin-tabs {
    justify-content: flex-start;
  }

  .command-band,
  .command-metrics,
  .summary-chart,
  .base-info {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-band {
    height: auto;
  }

  .executive-insight-button {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .command-copy {
    padding-right: 50px;
  }

  .executive-dialog-metrics,
  .executive-dialog-facts,
  .data-docs-grid {
    grid-template-columns: 1fr;
  }

  .data-docs-card:first-child,
  .data-docs-card:nth-child(3),
  .data-docs-card:last-child {
    grid-column: auto;
  }

  .detail-drawer--finance {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .detail-drawer--finance .drawer-metrics,
  .detail-drawer--finance .drawer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout,
  .dashboard-layout.filters-collapsed {
    grid-template-columns: 1fr;
  }

  .dashboard-layout.filters-layout-sidebar,
  .dashboard-layout.filters-layout-sidebar.filters-collapsed {
    grid-template-columns: 1fr;
  }

  .dashboard-layout.filters-layout-sidebar .filter-deck {
    position: fixed;
    top: var(--app-header-height);
    bottom: 0;
    left: 0;
    z-index: 180;
    width: min(360px, calc(100vw - 32px));
    max-height: none;
    min-height: 0;
    border-radius: 0 10px 10px 0;
    transform: translateX(0);
    transition: transform 0.22s ease, box-shadow 0.18s ease;
  }

  .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-deck {
    width: min(360px, calc(100vw - 32px));
    max-height: none;
    min-height: 0;
    transform: translateX(calc(-100% + 54px));
  }

  .dashboard-layout.filters-layout-sidebar .filters-form {
    max-height: none;
  }

  .dashboard-layout.filters-layout-sidebar .filter-toggle,
  .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-toggle {
    right: 10px;
    top: 14px;
  }

  .dashboard-layout.filters-layout-sidebar.filters-collapsed .filter-toggle {
    top: 10px;
  }

  .filter-deck {
    max-height: 900px;
  }

  .filters-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .filter-popover {
    top: calc(100% + 6px);
    left: var(--filter-popover-left, 0);
  }

  .filters-collapsed .filter-head {
    min-height: auto;
  }

  .filters-collapsed #filtersToggle {
    width: 42px;
    min-height: 20px;
    padding: 0;
    writing-mode: horizontal-tb;
  }

  .panel,
  .panel-xl,
  .panel-focus,
  .signal-card,
  .widget-drop-zone {
    grid-column: 1 / -1;
  }

  .signal-grid.payment-signal-grid,
  .signal-grid.payment-signal-grid--five {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > .dashboard-widget[data-widget-key="timeline"],
  .dashboard-grid > .dashboard-widget[data-widget-key="upcoming"],
  .dashboard-grid > .dashboard-widget[data-widget-key="suppliers"],
  .dashboard-grid > .dashboard-widget[data-widget-key="projects"] {
    grid-column: 1 / -1;
  }

  .insight-rail,
  .insight-facts {
    grid-template-columns: 1fr;
  }

  .insight-fact {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .timeline-chart {
    grid-template-columns: repeat(12, minmax(72px, 1fr));
  }

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

  .payment-kpi-summary,
  .payment-kpi-summary-grid,
  .project-values,
  .project-risk-overview,
  .project-risk-meta,
  .nfe-alert-strip,
  .nfe-alert-facts {
    grid-template-columns: 1fr;
  }

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

  .cco-kpi-grid,
  .cco-insight-strip,
  .cco-insight-facts,
  .cco-asset-list dl {
    grid-template-columns: 1fr;
  }

  .cco-production-kpi-strip {
    grid-template-columns: repeat(2, minmax(116px, 1fr));
  }

  .cco-chart-panel,
  .cco-chart-panel--wide,
  .cco-ranking-panel,
  .cco-quality-panel,
  .cco-efficiency-table-panel,
  .cco-efficiency-chart,
  .cco-events-panel {
    grid-column: 1 / -1;
  }

  .cco-insight-facts article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cco-event-legend {
    justify-content: flex-start;
  }

  .cco-event-board {
    grid-template-columns: 320px minmax(980px, 1fr);
    min-width: 1300px;
  }

  .base-tile.wide {
    grid-column: span 1;
  }

  .admin-hero {
    display: grid;
  }

  .admin-workspace .users-view > .panel-span > header {
    align-items: flex-start;
  }

  .panel header .users-table-toolbar {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .users-table-toolbar label {
    width: 100%;
  }

  .users-admin,
  .users-admin.form-open,
  .form-grid,
  .scope-grid,
  .param-row {
    grid-template-columns: 1fr;
  }

  .user-form-header {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .login-screen {
    padding: 14px;
  }

  .login-corner-logo {
    top: 10px;
    left: 10px;
    width: min(190px, 54vw);
  }

  .login-panel {
    border-radius: 20px;
    padding: 28px 22px;
  }

  .login-panel h1 {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .login-copy {
    margin-bottom: 26px;
    font-size: 15px;
  }

  .login-form {
    gap: 16px;
  }

  .login-form label {
    font-size: 14px;
  }

  .login-form input {
    height: 50px;
    padding-left: 46px;
    padding-right: 52px;
    font-size: 14px;
  }

  .login-field-icon {
    left: 14px;
    width: 21px;
    height: 21px;
  }

  .login-submit {
    height: 50px;
    font-size: 15px;
  }

  .login-submit svg {
    right: 18px;
    width: 24px;
    height: 24px;
  }

  .user-form:not([hidden]) {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .user-form-header {
    display: grid;
    gap: 12px;
    padding: 18px 16px 14px;
  }

  .user-form-header-actions {
    justify-content: space-between;
  }

  .module-switch-card--with-action {
    grid-template-columns: 1fr;
  }

  .module-config-button {
    justify-self: start;
  }

  .user-form > .form-grid,
  .user-form > .module-access-grid,
  .user-form > .scope-grid,
  .user-form > .form-actions {
    margin-right: 16px;
    margin-left: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .startup-screen {
    padding: 18px;
  }

  .startup-panel {
    width: min(360px, 100%);
  }

  .startup-icon-stage {
    width: 178px;
    margin-bottom: 24px;
  }

  .startup-icon-core {
    width: 178px;
  }

  .startup-icon {
    width: 170px;
    height: 170px;
  }

  .startup-percent {
    font-size: 40px;
  }

  .startup-panel p {
    font-size: 12px;
  }

  .workspace {
    --workspace-padding: 10px;
  }

  .app-header,
  .command-band,
  .admin-hero {
    padding: 14px;
  }

  .filters-form,
  .filter-head,
  .table-toolbar,
  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .company-switch,
  .company-switch-select,
  .company-switch-trigger,
  .module-switch,
  .module-switch-select,
  .module-switch-trigger {
    width: 100%;
  }

  .module-switch-panel,
  .company-switch-panel {
    right: auto;
    left: 0;
    width: 100%;
    min-width: 100%;
  }

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

  .menu-item {
    width: 100%;
  }

  .drawer-timeline,
  .drawer-metrics,
  .drawer-fields {
    grid-template-columns: 1fr;
  }

  .detail-drawer--finance .drawer-metrics,
  .detail-drawer--finance .drawer-fields {
    grid-template-columns: 1fr;
  }

  .detail-drawer--finance .drawer-fields article:first-child {
    grid-column: auto;
  }

  .nfe-kpi-grid {
    grid-template-columns: 1fr;
  }

  .nfe-alert-strip {
    padding: 14px;
  }

  .nfe-kpi-card {
    min-height: 108px;
  }
}

.panel-xl[data-widget-key="timeline"] {
  grid-column: 1 / -1;
}

.inventory-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.inventory-view[hidden] {
  display: none;
}

.inventory-view-loading {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 280px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
}

.inventory-view-loading strong {
  color: var(--text);
  font-size: 18px;
}

.inventory-control-grid {
  grid-column: 1 / -1;
}

.inventory-control-grid .payment-signal-card {
  min-height: 194px;
}

.inventory-status-list span,
.inventory-status-list em,
.inventory-legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-pill.good {
  color: #147d74;
}

.inventory-pill.warn {
  color: #9a5c00;
}

.inventory-pill.danger {
  color: #b42318;
}

.inventory-view > .panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 430px;
}

.inventory-chart-panel--wide {
  grid-column: span 8;
}

.inventory-movement-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.inventory-movement-evolution-panel {
  grid-column: 1 / -1;
  height: 490px !important;
  min-width: 0;
}

.inventory-chart-panel header {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.inventory-timeline-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.inventory-timeline-mode {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.inventory-timeline-mode:hover,
.inventory-timeline-mode:focus-visible {
  color: var(--qbiax-blue);
  outline: none;
}

.inventory-timeline-mode.is-active {
  background: #fff;
  color: var(--qbiax-blue);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.inventory-ranking-panel {
  grid-column: span 6;
}

.inventory-details-panel {
  grid-column: 1 / -1;
}

.inventory-analysis-panel {
  grid-column: 1 / -1;
}

.inventory-analysis-scroll {
  max-height: 560px;
}

.inventory-analysis-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
}

.inventory-analysis-table .inventory-col-family {
  width: auto;
}

.inventory-analysis-table .inventory-col-quantity {
  width: 8%;
}

.inventory-analysis-table .inventory-col-short {
  width: 7%;
}

.inventory-analysis-table .inventory-col-money {
  width: 9%;
}

.inventory-analysis-table .inventory-col-date {
  width: 10%;
}

.inventory-analysis-table .inventory-col-tag {
  width: 138px;
}

.inventory-movement-table {
  min-width: 1120px;
}

.inventory-movement-table .inventory-movement-col-flow {
  width: 112px;
}

.inventory-movement-table .inventory-movement-col-date {
  width: 116px;
}

.inventory-movement-table .inventory-movement-col-group {
  width: 12%;
}

.inventory-movement-table .inventory-movement-col-product {
  width: auto;
}

.inventory-movement-table .inventory-movement-col-document {
  width: 132px;
}

.inventory-movement-table .inventory-movement-col-quantity {
  width: 8%;
}

.inventory-movement-table .inventory-movement-col-money {
  width: 9%;
}

.inventory-analysis-table th,
.inventory-analysis-table td {
  white-space: nowrap;
}

.inventory-analysis-table th:first-child,
.inventory-analysis-table td:first-child {
  min-width: 260px;
  text-align: left;
}

.inventory-analysis-table th:not(:first-child),
.inventory-analysis-table td:not(:first-child) {
  text-align: center;
}

.inventory-analysis-table th:last-child,
.inventory-analysis-table td:last-child {
  width: 138px;
  min-width: 138px;
  max-width: 138px;
  overflow: visible;
  text-overflow: clip;
}

.inventory-analysis-table tbody td:not(:first-child) {
  font-weight: 400 !important;
}

.inventory-movement-table th:first-child,
.inventory-movement-table td:first-child {
  min-width: 0;
  text-align: center;
}

.inventory-movement-table .invoice-row td:first-child {
  padding-inline: 12px;
}

.inventory-movement-table td:first-child .inventory-pill {
  min-width: 76px;
  justify-content: center;
}

.inventory-movement-table th:nth-child(4),
.inventory-movement-table td:nth-child(4) {
  text-align: left;
}

.inventory-movement-table th:nth-child(2),
.inventory-movement-table td:nth-child(2),
.inventory-movement-table th:nth-child(3),
.inventory-movement-table td:nth-child(3),
.inventory-movement-table th:nth-child(5),
.inventory-movement-table td:nth-child(5),
.inventory-movement-table th:nth-child(6),
.inventory-movement-table td:nth-child(6),
.inventory-movement-table th:nth-child(7),
.inventory-movement-table td:nth-child(7),
.inventory-movement-table th:nth-child(8),
.inventory-movement-table td:nth-child(8) {
  text-align: center;
}

.inventory-movement-table td:nth-child(4) .invoice-cell {
  min-width: 0;
}

.inventory-movement-table td:nth-child(4) .invoice-cell strong,
.inventory-movement-table td:nth-child(4) .invoice-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-movement-table td:nth-child(5) .invoice-cell {
  justify-items: center;
  text-align: center;
}

.inventory-movement-table th:last-child,
.inventory-movement-table td:last-child {
  width: auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
}

.inventory-analysis-tools {
  align-items: center;
  gap: 10px;
}

.inventory-analysis-filters {
  max-width: min(100%, 760px);
}

.inventory-analysis-filters .inventory-analysis-filter-necessidade-compra {
  border-color: #ffd6d6;
  color: var(--red);
}

.inventory-analysis-filters .inventory-analysis-filter-necessidade-compra.active {
  background: #fff1f1;
  border-color: #ffd6d6;
  color: var(--red);
}

.inventory-analysis-filters .inventory-analysis-filter-baixo-giro {
  border-color: #fedf89;
  color: #b54708;
}

.inventory-analysis-filters .inventory-analysis-filter-baixo-giro.active {
  background: #fff7e6;
  border-color: #fedf89;
  color: #b54708;
}

.inventory-analysis-filters .inventory-analysis-filter-estoque-alto {
  border-color: #c7d7fe;
  color: #175cd3;
}

.inventory-analysis-filters .inventory-analysis-filter-estoque-alto.active {
  background: #eef4ff;
  border-color: #c7d7fe;
  color: #175cd3;
}

.inventory-analysis-filters .inventory-analysis-filter-giro-saudavel {
  border-color: #c7eee8;
  color: var(--teal);
}

.inventory-analysis-filters .inventory-analysis-filter-giro-saudavel.active {
  background: #e9f7f5;
  border-color: #c7eee8;
  color: var(--teal);
}

.inventory-analysis-filters .inventory-analysis-filter-monitorar {
  border-color: #d7dee8;
  color: #667085;
}

.inventory-analysis-filters .inventory-analysis-filter-monitorar.active {
  background: #eef2f7;
  border-color: #d7dee8;
  color: #667085;
}

.inventory-tag.necessidade-compra {
  background: #fff1f1;
  color: var(--red) !important;
}

.inventory-tag {
  max-width: none;
  min-width: 0;
  overflow: visible;
  padding-left: 7px;
  padding-right: 7px;
  text-overflow: clip;
  white-space: nowrap;
}

.inventory-tag.baixo-giro {
  background: #fff7e6;
  color: #b54708 !important;
}

.inventory-tag.estoque-alto {
  background: #eef4ff;
  color: #175cd3 !important;
}

.inventory-tag.giro-saudavel {
  background: #e9f7f5;
  color: var(--teal) !important;
}

.inventory-tag.monitorar {
  background: #eef2f7;
  color: #667085 !important;
}

.inventory-analysis-table tfoot td {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-weight: 900;
}

.inventory-analysis-table tfoot td:first-child {
  font-weight: 900;
}

.inventory-family-cell {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.inventory-family-cell strong,
.inventory-family-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-family-cell strong {
  color: var(--text);
  font-size: 13px;
}

.inventory-family-cell span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.inventory-product-row .inventory-family-cell span {
  font-weight: 500;
}

.inventory-product-row .inventory-family-cell .inventory-product-name {
  margin-top: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.inventory-family-cell--product {
  padding-left: 20px;
}

.inventory-family-row {
  cursor: pointer;
}

.inventory-analysis-table .inventory-product-row td {
  border-top-color: var(--line);
  border-bottom-color: var(--line);
  background: #fff;
  box-shadow: none;
}

.inventory-product-row {
  cursor: default;
}

.inventory-detail-row {
  cursor: default;
}

.inventory-analysis-table .inventory-family-toggle {
  width: 16px;
  height: 16px;
  margin-right: 0;
  border: 0;
  background: transparent;
  color: #667085;
  padding: 0;
}

.inventory-analysis-table .inventory-family-toggle::before {
  content: none;
}

.inventory-analysis-table .inventory-family-toggle span {
  width: 5px;
  height: 5px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  font-size: 0;
  line-height: 0;
  transform: rotate(-45deg);
}

.inventory-analysis-table .inventory-family-row.is-expanded .inventory-family-toggle {
  background: transparent;
  color: var(--teal);
}

.inventory-analysis-table .inventory-family-row.is-expanded .inventory-family-toggle span {
  transform: rotate(45deg);
}

.inventory-analysis-table .inventory-family-toggle:disabled {
  cursor: default;
  opacity: 0.45;
}

.inventory-family-spacer {
  width: 18px;
  height: 1px;
}

.inventory-status-list {
  display: grid;
  gap: 10px;
}

.inventory-ranking-list {
  min-height: 0;
  padding: 12px;
}

.inventory-ranking-row {
  min-height: 72px;
}

.inventory-ranking-row .kpi-row-value b {
  color: var(--ink);
}

.inventory-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
  min-height: 220px;
  align-items: end;
}

.inventory-timeline article {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.inventory-timeline-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 150px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.04);
}

.inventory-timeline-bars i {
  width: 14px;
  min-height: 8px;
  border-radius: 999px 999px 3px 3px;
}

.inventory-timeline-bars .entrada,
.inventory-legend .entrada {
  background: #147d74;
}

.inventory-timeline-bars .saida,
.inventory-legend .saida {
  background: #d4860b;
}

.inventory-timeline strong,
.inventory-timeline span {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-timeline strong {
  color: var(--text);
  font-size: 12px;
}

.inventory-timeline span {
  color: var(--muted);
  font-size: 11px;
}

.inventory-line-chart {
  overflow-x: auto;
  padding-bottom: 4px;
}

.inventory-line-chart.timeline-chart {
  height: 100%;
  padding: 8px 6px 6px;
}

.inventory-flow-chart.timeline-chart {
  min-height: 0;
}

.inventory-line-stage {
  min-width: 100%;
  height: 100%;
}

.inventory-line-svg .inventory-zero-line {
  stroke: rgba(15, 23, 42, 0.34);
  stroke-dasharray: 4 5;
}

.inventory-line-area {
  fill: url(#inventoryTimelineArea);
}

.inventory-line-path {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.inventory-line-point.positive,
.inventory-line-point.negative {
  fill: #fff;
  stroke: var(--red);
  stroke-width: 3;
}

.inventory-flow-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.inventory-flow-line.entrada {
  stroke: #147d74;
}

.inventory-flow-line.saida {
  stroke: #d4860b;
}

.inventory-flow-line.preco {
  stroke: #175cd3;
}

.inventory-flow-point {
  fill: #fff;
  stroke-width: 2.6;
}

.inventory-flow-point.entrada {
  stroke: #147d74;
}

.inventory-flow-point.saida {
  stroke: #d4860b;
}

.inventory-flow-point.preco {
  stroke: #175cd3;
}

.inventory-bar-chart {
  padding-top: 10px;
}

.inventory-flow-bar {
  opacity: 0.92;
}

.inventory-flow-bar.entrada {
  fill: #147d74;
}

.inventory-flow-bar.saida {
  fill: #d4860b;
}

.inventory-bar-value {
  fill: var(--text);
  font-size: 10px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 4px;
  text-anchor: middle;
}

.inventory-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.inventory-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inventory-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.inventory-legend .saldo {
  background: var(--red);
}

.inventory-legend .preco {
  background: #175cd3;
}

.inventory-status-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.inventory-status-list strong {
  color: var(--text);
  font-size: 18px;
}

.inventory-status-list article.good {
  border-color: rgba(20, 125, 116, 0.28);
}

.inventory-status-list article.warn {
  border-color: rgba(212, 134, 11, 0.32);
}

.inventory-status-list article.danger {
  border-color: rgba(180, 35, 24, 0.28);
}

.inventory-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-pill.good {
  background: rgba(20, 125, 116, 0.1);
}

.inventory-pill.warn {
  background: rgba(212, 134, 11, 0.12);
}

.inventory-pill.danger {
  background: rgba(180, 35, 24, 0.1);
}

.inventory-table-scroll td {
  vertical-align: middle;
}

.inventory-table-scroll table:not(.inventory-movement-table) td:nth-child(7),
.inventory-table-scroll table:not(.inventory-movement-table) td:nth-child(8) {
  text-align: right;
  white-space: nowrap;
}

.inventory-view .widget-drop-zone {
  grid-column: span 4;
}

.movebuss-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.movebuss-loading {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 260px;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.movebuss-kpi-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.movebuss-kpi-card {
  min-width: 0;
  min-height: 122px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.movebuss-kpi-card span,
.movebuss-kpi-card em,
.movebuss-rank-row span,
.movebuss-rank-row em,
.movebuss-status-list span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.movebuss-kpi-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.movebuss-kpi-card em {
  display: block;
  margin-top: 8px;
  line-height: 1.3;
}

.movebuss-kpi-card.good {
  border-color: rgba(20, 125, 116, 0.28);
}

.movebuss-kpi-card.warn {
  border-color: rgba(183, 121, 31, 0.34);
}

.movebuss-kpi-card.danger {
  border-color: rgba(180, 35, 24, 0.32);
}

.movebuss-timeline-panel,
.movebuss-details-panel {
  grid-column: 1 / -1;
}

.movebuss-ranking-panel,
.movebuss-status-panel {
  grid-column: span 6;
  padding: 12px 14px;
}

.movebuss-ranking-panel > header,
.movebuss-status-panel > header {
  margin-bottom: 8px;
}

.movebuss-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(70px, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 224px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 22px 8px 4px;
}

.movebuss-timeline article {
  position: relative;
  display: grid;
  grid-template-rows: 174px 22px;
  gap: 6px;
  min-width: 70px;
  text-align: center;
}

.movebuss-timeline-date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movebuss-timeline-date {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.movebuss-timeline div {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.movebuss-timeline i {
  display: block;
  width: 24px;
  height: var(--h);
  min-height: 6px;
  border-radius: 6px 6px 0 0;
  background: var(--teal);
}

.movebuss-timeline-value {
  position: absolute;
  bottom: calc(var(--h) + 7px);
  left: 50%;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.movebuss-timeline strong:not(.movebuss-timeline-value) {
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.movebuss-timeline-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: normal;
}

.movebuss-timeline article:hover .movebuss-timeline-tooltip,
.movebuss-timeline article:focus-visible .movebuss-timeline-tooltip {
  opacity: 1;
}

.movebuss-table-scroll .positive {
  color: var(--teal);
}

.movebuss-table-scroll .negative {
  color: var(--red);
}

.movebuss-ranking-list,
.movebuss-status-list {
  display: grid;
  gap: 5px;
}

.movebuss-rank-row,
.movebuss-status-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.movebuss-rank-row strong,
.movebuss-status-list strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movebuss-rank-row b,
.movebuss-status-list b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.movebuss-rank-row i,
.movebuss-status-list i {
  display: none;
}

.movebuss-rank-row i::after,
.movebuss-status-list i::after {
  display: none;
}

.movebuss-status-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.movebuss-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.movebuss-pill.good {
  background: rgba(20, 125, 116, 0.1);
  color: var(--teal);
}

.movebuss-pill.warn {
  background: rgba(183, 121, 31, 0.12);
  color: var(--amber);
}

.movebuss-pill.danger {
  background: rgba(180, 35, 24, 0.1);
  color: var(--red);
}

.movebuss-table-scroll td {
  vertical-align: middle;
}

.movebuss-detail-row td:nth-child(2),
.movebuss-detail-row td:nth-child(3),
.movebuss-detail-row td:nth-child(4) {
  white-space: normal;
}

.movebuss-detail-row strong,
.movebuss-detail-row span {
  display: block;
}

.movebuss-detail-row .movebuss-pill {
  display: inline-flex;
}

.movebuss-table-scroll .movebuss-number-col,
.movebuss-table-scroll .movebuss-number-col .sort-header,
.movebuss-table-scroll .movebuss-number-cell {
  text-align: center;
}

.movebuss-table-scroll .movebuss-number-col .sort-header,
.movebuss-table-scroll .movebuss-status-col .sort-header {
  justify-content: center;
  width: 100%;
}

.movebuss-table-scroll .movebuss-number-cell,
.movebuss-table-scroll .movebuss-status-cell {
  white-space: nowrap;
}

.movebuss-table-scroll .movebuss-status-col,
.movebuss-table-scroll .movebuss-status-cell {
  text-align: center;
}

.movebuss-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.movebuss-status-tags button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.movebuss-status-tags button:hover,
.movebuss-status-tags button.active {
  border-color: rgba(17, 24, 39, 0.22);
  background: rgba(17, 24, 39, 0.06);
  color: var(--ink);
}

.movebuss-status-tags button.good {
  border-color: rgba(20, 125, 116, 0.2);
  background: rgba(20, 125, 116, 0.1);
  color: var(--teal);
}

.movebuss-status-tags button.warn {
  border-color: rgba(183, 121, 31, 0.22);
  background: rgba(183, 121, 31, 0.12);
  color: var(--amber);
}

.movebuss-status-tags button.danger {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.1);
  color: var(--red);
}

.movebuss-status-tags button.active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.movebuss-status-tags span {
  color: inherit;
  font-size: 10px;
  opacity: 0.78;
}

.movebuss-sort-header.sorted::after {
  color: var(--teal);
}

.detail-drawer--movebuss .good {
  color: var(--teal);
}

.detail-drawer--movebuss .warn {
  color: var(--amber);
}

.detail-drawer--movebuss .danger {
  color: var(--red);
}

.procurement-view {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.procurement-view[hidden] {
  display: none;
}

.procurement-kpi-grid,
.procurement-exception-grid {
  grid-column: 1 / -1;
}

.procurement-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.procurement-panel-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.procurement-panel {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 360px;
}

.procurement-panel--wide {
  grid-column: span 6;
}

.procurement-panel--compact {
  grid-column: span 4;
}

.procurement-panel--large {
  grid-column: span 8;
}

.procurement-panel--full,
.procurement-details-panel {
  grid-column: 1 / -1;
}

.procurement-details-panel {
  min-height: 520px;
}

.procurement-panel header {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.procurement-panel header > div:first-child {
  min-width: 0;
}

.procurement-panel-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.procurement-panel-grid--performance .procurement-panel {
  min-height: 330px;
}

.procurement-panel-grid--performance .procurement-panel--compact {
  min-height: 292px;
}

.procurement-panel-grid--performance .procurement-panel--full {
  min-height: 560px;
}

.procurement-delivery-board,
.procurement-delivery-summary-list,
.procurement-accuracy,
.procurement-bars {
  padding: 12px 16px 14px;
}

.procurement-delivery-board {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.procurement-delivery-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) minmax(76px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(214, 222, 232, 0.82);
}

.procurement-delivery-row:last-child {
  border-bottom: 0;
}

.procurement-delivery-row i {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.procurement-delivery-row.good i {
  background: #147d74;
  box-shadow: 0 0 0 4px rgba(20, 125, 116, 0.12);
}

.procurement-delivery-row.warn i {
  background: #c17f26;
  box-shadow: 0 0 0 4px rgba(193, 127, 38, 0.14);
}

.procurement-delivery-row.danger i {
  background: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.procurement-delivery-row div {
  min-width: 0;
}

.procurement-delivery-row span,
.procurement-delivery-row em,
.procurement-delivery-summary-list span,
.procurement-delivery-summary-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-delivery-row em,
.procurement-delivery-summary-list em {
  display: block;
  margin-top: 4px;
  text-transform: none;
}

.procurement-delivery-row strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

.procurement-delivery-summary-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.procurement-delivery-summary-list article {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.procurement-delivery-summary-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
}

.procurement-traffic-light {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 0;
}

.procurement-light-stack {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1f2937;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.procurement-light-stack span {
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6b7280;
  opacity: 0.45;
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.22);
}

.procurement-light-stack span.good {
  background: #147d74;
  color: #147d74;
}

.procurement-light-stack span.warn {
  background: #c17f26;
  color: #c17f26;
}

.procurement-light-stack span.danger {
  background: #b42318;
  color: #b42318;
}

.procurement-light-stack span.is-on {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 18px currentColor;
}

.procurement-light-rows {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.procurement-light-rows article {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(70px, auto);
  gap: 4px 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(214, 222, 232, 0.78);
}

.procurement-light-rows article:last-child {
  border-bottom: 0;
}

.procurement-light-rows span,
.procurement-light-rows em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-light-rows strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.procurement-light-rows em {
  grid-column: 1 / -1;
  text-transform: none;
}

.procurement-farol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.procurement-farol-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.procurement-farol-item span,
.procurement-farol-item em,
.procurement-accuracy-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-farol-item strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.procurement-farol-item div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf2;
}

.procurement-farol-item b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.procurement-farol-item.good {
  border-color: rgba(20, 125, 116, 0.26);
  color: var(--teal);
}

.procurement-farol-item.warn {
  border-color: rgba(183, 121, 31, 0.32);
  color: var(--amber);
}

.procurement-farol-item.danger {
  border-color: rgba(180, 35, 24, 0.32);
  color: var(--red);
}

.procurement-accuracy {
  display: grid;
  grid-template-columns: minmax(112px, 0.52fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.procurement-accuracy-gauge {
  --accuracy: 0%;
  display: grid;
  place-items: center;
  align-content: center;
  width: min(134px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#147d74 var(--accuracy), #e5ebf2 0);
}

.procurement-accuracy-gauge strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.procurement-accuracy-gauge span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-accuracy-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.procurement-accuracy-metrics article {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.procurement-accuracy-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.procurement-team-table {
  max-height: 460px;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.procurement-team-table .procurement-mini-table {
  min-width: 940px;
}

.procurement-team-table--buyers {
  max-height: 520px;
}

.procurement-team-table--single {
  max-height: 560px;
}

.procurement-order-table .procurement-mini-table {
  min-width: 1240px;
}

.procurement-order-table td:first-child {
  max-width: 150px;
}

.procurement-order-table td:nth-child(3),
.procurement-order-table td:nth-child(4) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.procurement-team-table td:first-child {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.procurement-team-table td:not(:first-child),
.procurement-team-table th:not(:first-child) {
  text-align: right;
}

.procurement-order-table th:nth-child(2),
.procurement-order-table td:nth-child(2),
.procurement-order-table th:nth-child(3),
.procurement-order-table td:nth-child(3),
.procurement-order-table th:nth-child(4),
.procurement-order-table td:nth-child(4),
.procurement-order-table th:nth-child(10),
.procurement-order-table td:nth-child(10) {
  text-align: left;
}

.procurement-order-table th:nth-child(5),
.procurement-order-table td:nth-child(5),
.procurement-order-table th:nth-child(6),
.procurement-order-table td:nth-child(6),
.procurement-order-table th:nth-child(7),
.procurement-order-table td:nth-child(7),
.procurement-order-table th:nth-child(8),
.procurement-order-table td:nth-child(8),
.procurement-order-table th:nth-child(9),
.procurement-order-table td:nth-child(9) {
  text-align: right;
}

.procurement-table-switcher {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.procurement-table-view-menu {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-table-view-menu select {
  min-width: 220px;
  height: 36px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  text-transform: none;
}

.procurement-table-view-menu select:focus {
  outline: none;
  border-color: rgba(17, 24, 39, 0.24);
  box-shadow: 0 0 0 3px rgba(20, 125, 116, 0.1);
}

.procurement-timeline-bars,
.procurement-comparison-bars,
.procurement-bars,
.procurement-ranking-list {
  display: grid;
  gap: 0;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.procurement-timeline-bars article,
.procurement-comparison-bars article,
.procurement-bars article,
.procurement-ranking-list article {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 2.2fr) minmax(78px, auto);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(214, 222, 232, 0.78);
}

.procurement-ranking-list article {
  grid-template-columns: 28px minmax(0, 1fr) minmax(92px, auto);
}

.procurement-timeline-bars span,
.procurement-comparison-bars span,
.procurement-bars span,
.procurement-ranking-list strong,
.procurement-ranking-list em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.procurement-timeline-bars span,
.procurement-comparison-bars span,
.procurement-bars span,
.procurement-ranking-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.procurement-timeline-bars div,
.procurement-comparison-bars .procurement-pair-bar,
.procurement-bars div {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.procurement-timeline-bars b,
.procurement-bars b,
.procurement-pair-bar b,
.procurement-pair-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.procurement-timeline-bars b,
.procurement-bars b {
  background: #147d74;
}

.procurement-pair-bar b {
  background: #fedf89;
}

.procurement-pair-bar i {
  height: 5px;
  margin-block: auto;
  background: #16a394;
}

.procurement-timeline-bars strong,
.procurement-comparison-bars strong,
.procurement-bars strong,
.procurement-ranking-list b {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.procurement-ranking-list article > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
}

.procurement-ranking-list article > div {
  min-width: 0;
}

.procurement-ranking-list em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.procurement-table-wrap {
  min-width: 0;
  overflow: auto;
}

.procurement-mini-table,
.procurement-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.procurement-mini-table {
  min-width: 760px;
}

.procurement-detail-table {
  min-width: 1180px;
}

.procurement-mini-table th,
.procurement-mini-table td,
.procurement-detail-table th,
.procurement-detail-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.procurement-mini-table th,
.procurement-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-mini-table td:not(:first-child),
.procurement-detail-table td:nth-child(2),
.procurement-detail-table td:nth-child(6),
.procurement-detail-table td:nth-child(9) {
  text-align: right;
}

.procurement-order-table .procurement-mini-table th:nth-child(2),
.procurement-order-table .procurement-mini-table td:nth-child(2),
.procurement-order-table .procurement-mini-table th:nth-child(3),
.procurement-order-table .procurement-mini-table td:nth-child(3),
.procurement-order-table .procurement-mini-table th:nth-child(4),
.procurement-order-table .procurement-mini-table td:nth-child(4),
.procurement-order-table .procurement-mini-table th:nth-child(10),
.procurement-order-table .procurement-mini-table td:nth-child(10) {
  text-align: left;
}

.procurement-order-table .procurement-mini-table th:nth-child(5),
.procurement-order-table .procurement-mini-table td:nth-child(5),
.procurement-order-table .procurement-mini-table th:nth-child(6),
.procurement-order-table .procurement-mini-table td:nth-child(6),
.procurement-order-table .procurement-mini-table th:nth-child(7),
.procurement-order-table .procurement-mini-table td:nth-child(7),
.procurement-order-table .procurement-mini-table th:nth-child(8),
.procurement-order-table .procurement-mini-table td:nth-child(8),
.procurement-order-table .procurement-mini-table th:nth-child(9),
.procurement-order-table .procurement-mini-table td:nth-child(9) {
  text-align: right;
}

.procurement-detail-table td:first-child strong,
.procurement-detail-table td:first-child small,
.procurement-detail-table td:nth-child(3) small,
.procurement-detail-table td:nth-child(5) small {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.procurement-detail-table small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.procurement-clickable-row {
  cursor: pointer;
}

.procurement-clickable-row:hover td {
  background: #f6fbfb;
}

.procurement-sort-header {
  width: 100%;
  justify-content: flex-start;
  color: inherit;
}

.procurement-sort-header.sorted::after {
  color: #175cd3;
}

.procurement-nf-exception {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.procurement-nf-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.procurement-nf-summary article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.procurement-nf-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-nf-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.procurement-panel-grid--buyers .procurement-panel {
  min-height: 342px;
}

.procurement-panel-grid--buyers .procurement-panel--full {
  min-height: 560px;
}

.procurement-panel-grid--timeline .procurement-panel {
  min-height: 392px;
}

.procurement-panel-grid--timeline .procurement-panel--full {
  min-height: 128px;
}

.procurement-timeline-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 38px minmax(160px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px 16px;
}

.procurement-timeline-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 38px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.procurement-timeline-search-field > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--muted);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.procurement-timeline-search input {
  min-width: 0;
  height: 100%;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.procurement-timeline-search input:focus {
  outline: none;
}

.procurement-timeline-search-field:focus-within {
  border-color: rgba(17, 24, 39, 0.24);
  box-shadow: 0 0 0 3px rgba(20, 125, 116, 0.1);
}

.procurement-timeline-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.procurement-timeline-icon-button:hover {
  border-color: rgba(20, 125, 116, 0.34);
  background: #f1fbf9;
  color: #147d74;
}

.procurement-timeline-icon-button.primary {
  border-color: #147d74;
  background: #147d74;
  color: #fff;
}

.procurement-timeline-icon-button.primary:hover {
  background: #0f6b63;
  color: #fff;
}

.procurement-timeline-icon-button.inside {
  width: 28px;
  height: 28px;
  border-color: transparent;
  background: transparent;
}

.procurement-timeline-icon-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.procurement-timeline-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.procurement-search-results {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  max-height: 430px;
  padding: 14px 16px 16px;
  overflow: auto;
}

.procurement-search-result {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.procurement-search-result:hover,
.procurement-search-result.active {
  border-color: rgba(20, 125, 116, 0.34);
  background: #f1fbf9;
}

.procurement-search-result.nf {
  border-color: rgba(193, 127, 38, 0.28);
}

.procurement-search-result.disabled {
  cursor: default;
  opacity: 0.72;
}

.procurement-search-result strong,
.procurement-search-result span,
.procurement-search-result em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.procurement-search-result strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.procurement-search-result span,
.procurement-search-result em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.procurement-order-timeline {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px 16px;
}

.procurement-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.procurement-timeline-head div {
  min-width: 0;
}

.procurement-timeline-head strong,
.procurement-timeline-head em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.procurement-timeline-head strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.procurement-timeline-head em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.procurement-timeline-steps {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.procurement-timeline-steps article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(214, 222, 232, 0.76);
}

.procurement-timeline-steps article:last-child {
  border-bottom: 0;
}

.procurement-timeline-steps i {
  width: 11px;
  aspect-ratio: 1;
  margin-top: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(203, 213, 225, 0.22);
}

.procurement-timeline-steps article.done i {
  background: #147d74;
  box-shadow: 0 0 0 4px rgba(20, 125, 116, 0.12);
}

.procurement-timeline-steps span,
.procurement-timeline-steps strong,
.procurement-timeline-steps em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.procurement-timeline-steps span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.procurement-timeline-steps strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.procurement-timeline-steps em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.detail-drawer--procurement .drawer-metrics article:nth-child(2) strong {
  font-size: 13px;
}

.detail-drawer--procurement .procurement-drawer-table {
  grid-column: 1 / -1;
}

.detail-drawer--procurement .procurement-table-wrap {
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-drawer--procurement .procurement-mini-table {
  min-width: 840px;
}

@media (max-width: 1180px) {
  .movebuss-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .movebuss-ranking-panel,
  .movebuss-status-panel {
    grid-column: span 6;
  }

  .procurement-panel,
  .procurement-panel--wide,
  .procurement-panel--compact,
  .procurement-panel--large {
    grid-column: span 6;
  }

  .inventory-chart-panel--wide,
  .inventory-ranking-panel {
    grid-column: 1 / -1;
  }

  .inventory-movement-evolution-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .movebuss-kpi-grid,
  .movebuss-status-columns {
    grid-template-columns: 1fr;
  }

  .movebuss-ranking-panel,
  .movebuss-status-panel {
    grid-column: 1 / -1;
  }

  .procurement-panel,
  .procurement-panel--wide,
  .procurement-panel--compact,
  .procurement-panel--large,
  .procurement-panel--full {
    grid-column: 1 / -1;
  }

  .procurement-kpi-grid {
    grid-template-columns: 1fr;
  }

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

  .procurement-panel-header-actions,
  .procurement-table-view-menu,
  .procurement-table-view-menu select {
    width: 100%;
  }

  .procurement-farol,
  .procurement-traffic-light,
  .procurement-accuracy,
  .procurement-accuracy-metrics {
    grid-template-columns: 1fr;
  }

  .procurement-light-stack {
    grid-template-columns: repeat(3, 44px);
    justify-content: center;
    width: max-content;
    border-radius: 999px;
    justify-self: center;
  }

  .procurement-timeline-bars article,
  .procurement-comparison-bars article,
  .procurement-bars article,
  .procurement-ranking-list article {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .procurement-timeline-bars strong,
  .procurement-comparison-bars strong,
  .procurement-bars strong,
  .procurement-ranking-list b {
    text-align: left;
  }

  .procurement-timeline-search {
    grid-template-columns: 1fr;
  }

  .procurement-timeline-search span {
    text-align: left;
    white-space: normal;
  }

  .procurement-timeline-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .inventory-movement-toolbar-actions {
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
  }

  .inventory-movement-evolution-panel,
  .inventory-ranking-panel {
    grid-column: 1 / -1;
  }

  .inventory-timeline-actions {
    width: 100%;
  }

.inventory-timeline-mode {
    flex: 1 1 0;
  }
}

/* Unified portal shell and product catalog. */
.app-header {
  grid-template-columns: minmax(190px, auto) auto minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 64px;
  padding: 10px 24px;
}

.brand-lockup {
  grid-column: 1;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
}

.main-dashboard-menu {
  grid-column: 2;
  justify-self: start;
}

.dashboard-menu {
  grid-column: 3;
  min-width: 0;
}

.header-actions {
  grid-column: 4;
  gap: 8px;
}

.product-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  min-width: 238px;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f4f6f8;
  padding: 3px;
}

.product-switch-item {
  display: inline-flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #667085;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.product-switch-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.product-switch-item:hover {
  color: #344054;
}

.product-switch-item.is-selected {
  background: #fff;
  color: var(--qbiax-blue-dark);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.product-switch-item:focus-visible {
  outline: 2px solid rgba(0, 92, 255, 0.4);
  outline-offset: -2px;
}

.app-shell.is-module-home {
  background: #f3f5f8;
}

.app-shell.is-module-home .module-home {
  background: transparent;
}

.module-home {
  position: relative;
  width: min(1240px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: 40px 28px 64px;
  color: var(--ink);
}

.module-home::before,
.module-home::after {
  display: none;
}

.module-home-hero {
  position: static;
  display: grid;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
}

.app-shell.is-module-home .module-home-hero {
  position: static;
  justify-items: start;
  margin: 0 0 24px;
  text-align: left;
}

.module-home-hero > span {
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-home-hero h1 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: none;
}

.module-home-hero p {
  max-width: none;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.module-cards {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.module-card,
.module-card--qby {
  --module-accent: var(--qbiax-blue);
  --module-accent-soft: #edf4ff;
  position: relative;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07);
  color: var(--ink);
  transform: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.module-card--qby {
  --module-accent: #0b887a;
  --module-accent-soft: #eaf8f5;
}

.module-card.module-card--qby .module-card-icon {
  background: var(--module-accent-soft);
  color: var(--module-accent);
}

.module-card::before {
  inset: 0 auto 0 0;
  width: 4px;
  height: auto;
  border: 0;
  border-radius: 0;
  background: var(--module-accent);
  opacity: 1;
  filter: none;
}

.module-card::after {
  display: none;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--module-accent) 34%, #d0d5dd);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.11);
  outline: none;
}

.module-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon copy"
    "icon footer";
  grid-template-rows: 1fr auto;
  min-height: 236px;
  align-content: start;
  gap: 20px 18px;
  padding: 28px;
}

.module-card-icon {
  grid-area: icon;
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0;
  place-items: center;
  border-radius: 8px;
  background: var(--module-accent-soft);
  color: var(--module-accent);
}

.module-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.module-card-copy {
  grid-area: copy;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0;
}

.module-card-kicker {
  color: var(--module-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-card-copy h2 {
  margin: 0;
  color: #101828;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: none;
}

.module-card-copy p {
  max-width: 46ch;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.module-card-footer {
  grid-area: footer;
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.module-card-open,
.dashboard-card-open {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--module-accent-soft, #edf4ff);
  color: var(--module-accent, var(--qbiax-blue));
}

.module-card-open svg,
.dashboard-card-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-home {
  width: min(1600px, 100%);
  padding: 26px 28px 56px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.dashboard-catalog-head {
  grid-column: 1 / -1;
  display: flex;
  min-height: 66px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  padding-bottom: 16px;
}

.dashboard-catalog-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.dashboard-catalog-title > span {
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-catalog-title > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.dashboard-catalog-title h1 {
  margin: 0;
  color: #101828;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.dashboard-catalog-title strong {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.dashboard-catalog-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  width: min(320px, 100%);
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  padding: 0 11px;
  color: #667085;
}

.dashboard-catalog-search:focus-within {
  border-color: var(--qbiax-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.12);
}

.dashboard-catalog-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-catalog-search input {
  min-width: 0;
  min-height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101828;
  font: inherit;
  font-size: 13px;
}

.dashboard-company-groups {
  gap: 28px;
}

.dashboard-company-group {
  gap: 12px;
  padding-top: 18px;
}

.dashboard-company-group-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
  gap: 16px;
}

.dashboard-card {
  min-width: 0;
  overflow: visible;
  border-color: #dfe3e8;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
}

.dashboard-card:hover,
.dashboard-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 92, 255, 0.34);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
  outline: none;
}

.dashboard-card-content {
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.dashboard-card-preview {
  aspect-ratio: 16 / 10;
}

.dashboard-cover {
  padding: 22px 18px 16px;
}

.dashboard-cover-copy {
  gap: 8px;
}

.dashboard-cover-copy strong {
  font-size: 22px;
  line-height: 1.16;
}

.dashboard-cover-copy p {
  max-width: 30ch;
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-cover-watermark {
  width: 104px;
  height: 104px;
}

.dashboard-card-meta {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eaecf0;
  background: #fff;
  padding: 7px 10px 7px 13px;
}

.dashboard-card-context {
  overflow: hidden;
  color: #475467;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-card-open {
  --module-accent: var(--qbiax-blue);
  --module-accent-soft: #edf4ff;
  width: 28px;
  height: 28px;
}

.dashboard-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
}

.dashboard-card-action-trigger {
  display: grid;
  width: 30px;
  height: 30px;
  list-style: none;
  place-items: center;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: #475467;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.dashboard-card-action-trigger::-webkit-details-marker {
  display: none;
}

.dashboard-card-action-trigger svg,
.dashboard-card-action-menu svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-card-action-trigger:hover,
.dashboard-card-action-trigger:focus-visible,
.dashboard-card-actions[open] .dashboard-card-action-trigger {
  border-color: rgba(0, 92, 255, 0.3);
  background: #fff;
  color: var(--qbiax-blue-dark);
  outline: none;
}

.dashboard-card-action-menu {
  position: absolute;
  top: 36px;
  right: 0;
  display: grid;
  width: 148px;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
  padding: 4px;
}

.dashboard-card-action-menu button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #344054;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.dashboard-card-action-menu button:hover,
.dashboard-card-action-menu button:focus-visible {
  background: #f2f6ff;
  color: var(--qbiax-blue-dark);
  outline: none;
}

.dashboard-search-empty {
  grid-column: 1 / -1;
  min-height: 132px;
}

@media (max-width: 1080px) {
  .app-header {
    grid-template-columns: minmax(180px, auto) auto minmax(0, 1fr);
  }

  .main-dashboard-menu {
    grid-column: 2;
  }

  .dashboard-menu {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions {
    grid-column: 3;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 10px 14px;
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand-lockup span {
    display: none;
  }

  .main-dashboard-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .product-switch {
    width: 100%;
    min-width: 0;
  }

  .dashboard-menu {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-self: stretch;
    justify-content: flex-end;
  }

  .company-menu,
  .company-switch,
  .company-switch-trigger {
    width: auto;
  }

  .module-home,
  .dashboard-home {
    padding: 24px 16px 42px;
  }

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

  .module-card,
  .module-card--qby {
    min-height: 218px;
  }

  .module-card-content {
    min-height: 216px;
    padding: 22px;
  }

  .dashboard-catalog-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .dashboard-catalog-search {
    width: 100%;
  }

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

@media (max-width: 420px) {
  .module-card-content {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px 14px;
    padding: 20px 18px;
  }

  .module-card-icon {
    width: 42px;
    height: 42px;
  }

  .dashboard-catalog-title > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
